diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index a2120e330..7132f10fb 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -8,7 +8,7 @@ Tip! Don't write this stuff manually. --> -**Prettier 1.7.0** +**Prettier 1.7.1** [Playground link](https://prettier.io/playground/#.....) ```sh # Options (if any): diff --git a/CHANGELOG.md b/CHANGELOG.md index 263beca17..98aafc5a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,32 @@ +# 1.7.1 + +[link](https://github.com/jlongster/prettier/compare/1.7.0...1.7.1) + +* Enable cosmiconfig rcExtensions (#2749 by elektronik2k5) +* Keep original empty lines in argument list (#2763 by jackyho112) +* Upgrade prettier dependency to 1.7.0, fix lint (#2821 by josephfrazier) +* Fix different precedence binary expression when inlining (#2827 by duailibe) +* Bump Babylon (#2831 by existentialism) +* Don't lowercase Less variables when parsed with SCSS parser (#2833 by lydell) +* Don't lowercase `&class` in SCSS/Less selectors (#2834 by lydell) +* Add support for ClassPrivateProperty (#2837 by existentialism) +* Upgrade cosmiconfig to v3, remove hardcoded combinatoric problem (#2843 by azz) +* Split Less and SCSS parsing into different parsers (#2844 by lydell) +* feat: support detailed `--help` (#2847 by ikatyang) +* Update cosmiconfig to 3.0.1 to avoid memory leak (#2848 by danez) +* chore: add prettier-stylelint to the related projects (#2859 by hugomrdias) +* Don't lowercase SCSS placeholder selectors (#2876 by lydell) +* Fix line break in test declarations with 2nd argument as a function (#2877 by duailibe) +* Use semicolons in Flow interface-like bodies (#2593) (#2888 by motiz88) +* We do not need to have a reference to the toolbox-companion since we (#2892 by mitermayer) +* fix(cli): validate options for every `config-precedence` (#2894 by ikatyang) +* fix: do not print stack trace for invalid option (#2895 by ikatyang) +* refactor: use custom error (#2896 by ikatyang) +* fix(typescript): allow symbol type (#2899 by ikatyang) +* Support fit(), xit(), it.only(), etc (#2900 by azz) +* Fix editor styling on empty editors (#2904 by jakegavin) +* Fix printing of comments between decorators and method names (#2906 by azz) + # 1.7.0 [link](https://github.com/jlongster/prettier/compare/1.6.1...1.7.0) diff --git a/README.md b/README.md index 0d50b0f5d..f6e31165a 100644 --- a/README.md +++ b/README.md @@ -699,8 +699,7 @@ Default | CLI Override | API Override Prettier uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for configuration file support. This means you can configure prettier via: - -* A `.prettierrc` file, written in YAML or JSON. +* A `.prettierrc` file, written in YAML or JSON, with optional extensions: `.yaml/.yml/.json/.js`. * A `prettier.config.js` file that exports an object. * A `"prettier"` key in your `package.json` file. @@ -839,7 +838,7 @@ The minimum version of TypeScript supported is 2.1.3 as it introduces the abilit - [`prettier-eslint`](https://github.com/prettier/prettier-eslint) passes `prettier` output to `eslint --fix` - [`prettier-stylelint`](https://github.com/hugomrdias/prettier-stylelint) -passes `prettier` output to `stylelint --fix` +passes `prettier` output to `stylelint --fix` - [`prettier-standard`](https://github.com/sheerun/prettier-standard) uses `prettier` and `prettier-eslint` to format code with standard rules - [`prettier-standard-formatter`](https://github.com/dtinth/prettier-standard-formatter) diff --git a/package.json b/package.json index 2a839b4d7..cb30674a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prettier", - "version": "1.7.0", + "version": "1.7.1", "description": "Prettier is an opinionated code formatter", "bin": { "prettier": "./bin/prettier.js" diff --git a/website/static/lib/index.js b/website/static/lib/index.js index e5575cf9c..973027d4b 100644 --- a/website/static/lib/index.js +++ b/website/static/lib/index.js @@ -54,7 +54,7 @@ if(isDirectiveLiteral){if(canChangeDirectiveQuotes){return enclosingQuote+rawCon // is enclosed with `enclosingQuote`, but it isn't. The string could contain // unnecessary escapes (such as in `"\'"`). Always using `makeString` makes // sure that we consistently output the minimum amount of escaped quotes. -return makeString(rawContent,enclosingQuote,options.parser!=="postcss");}function makeString(rawContent,enclosingQuote,unescapeUnnecessaryEscapes){var otherQuote=enclosingQuote==='"'?"'":'"';// Matches _any_ escape and unescaped quotes (both single and double). +return makeString(rawContent,enclosingQuote,!(options.parser==="css"||options.parser==="less"||options.parser==="scss"));}function makeString(rawContent,enclosingQuote,unescapeUnnecessaryEscapes){var otherQuote=enclosingQuote==='"'?"'":'"';// Matches _any_ escape and unescaped quotes (both single and double). var regex=/\\([\s\S])|(['"])/g;// Escape and unescape single and double quotes as needed to be able to // enclose `rawContent` with `enclosingQuote`. var newContent=rawContent.replace(regex,function(match,escaped,quote){// If we matched an escape, and the escaped character is a quote of the @@ -91,7 +91,7 @@ followingNode=child;right=middle;continue;}/* istanbul ignore next */throw new E // template literal to move to another expression. if(comment.enclosingNode&&comment.enclosingNode.type==="TemplateLiteral"){var quasis=comment.enclosingNode.quasis;var commentIndex=findExpressionIndexForComment(quasis,comment);if(precedingNode&&findExpressionIndexForComment(quasis,precedingNode)!==commentIndex){precedingNode=null;}if(followingNode&&findExpressionIndexForComment(quasis,followingNode)!==commentIndex){followingNode=null;}}if(precedingNode){comment.precedingNode=precedingNode;}if(followingNode){comment.followingNode=followingNode;}}function attach(comments,ast,text){if(!Array.isArray(comments)){return;}var tiesToBreak=[];comments.forEach(function(comment,i){decorateComment(ast,comment,text);var precedingNode=comment.precedingNode;var enclosingNode=comment.enclosingNode;var followingNode=comment.followingNode;var isLastComment=comments.length-1===i;if(util$2.hasNewline(text,locStart(comment),{backwards:true})){// If a comment exists on its own line, prefer a leading comment. // We also need to check if it's the first line of the file. -if(handleLastFunctionArgComments(text,precedingNode,enclosingNode,followingNode,comment)||handleMemberExpressionComments(enclosingNode,followingNode,comment)||handleIfStatementComments(text,precedingNode,enclosingNode,followingNode,comment)||handleTryStatementComments(enclosingNode,followingNode,comment)||handleClassComments(enclosingNode,precedingNode,followingNode,comment)||handleImportSpecifierComments(enclosingNode,comment)||handleObjectPropertyComments(enclosingNode,comment)||handleForComments(enclosingNode,precedingNode,comment)||handleUnionTypeComments(precedingNode,enclosingNode,followingNode,comment)||handleOnlyComments(enclosingNode,ast,comment,isLastComment)||handleImportDeclarationComments(text,enclosingNode,precedingNode,comment)||handleAssignmentPatternComments(enclosingNode,comment)){// We're good +if(handleLastFunctionArgComments(text,precedingNode,enclosingNode,followingNode,comment)||handleMemberExpressionComments(enclosingNode,followingNode,comment)||handleIfStatementComments(text,precedingNode,enclosingNode,followingNode,comment)||handleTryStatementComments(enclosingNode,followingNode,comment)||handleClassComments(enclosingNode,precedingNode,followingNode,comment)||handleImportSpecifierComments(enclosingNode,comment)||handleObjectPropertyComments(enclosingNode,comment)||handleForComments(enclosingNode,precedingNode,comment)||handleUnionTypeComments(precedingNode,enclosingNode,followingNode,comment)||handleOnlyComments(enclosingNode,ast,comment,isLastComment)||handleImportDeclarationComments(text,enclosingNode,precedingNode,comment)||handleAssignmentPatternComments(enclosingNode,comment)||handleMethodNameComments(text,enclosingNode,precedingNode,comment)){// We're good }else if(followingNode){// Always a leading comment. addLeadingComment(followingNode,comment);}else if(precedingNode){addTrailingComment(precedingNode,comment);}else if(enclosingNode){addDanglingComment(enclosingNode,comment);}else{// There are no nodes, let's attach it to the root of the ast /* istanbul ignore next */addDanglingComment(ast,comment);}}else if(util$2.hasNewline(text,locEnd(comment))){if(handleLastFunctionArgComments(text,precedingNode,enclosingNode,followingNode,comment)||handleConditionalExpressionComments(enclosingNode,precedingNode,followingNode,comment,text)||handleImportSpecifierComments(enclosingNode,comment)||handleIfStatementComments(text,precedingNode,enclosingNode,followingNode,comment)||handleClassComments(enclosingNode,precedingNode,followingNode,comment)||handleLabeledStatementComments(enclosingNode,comment)||handleCallExpressionComments(precedingNode,enclosingNode,comment)||handlePropertyComments(enclosingNode,comment)||handleExportNamedDeclarationComments(enclosingNode,comment)||handleOnlyComments(enclosingNode,ast,comment,isLastComment)||handleClassMethodComments(enclosingNode,comment)||handleTypeAliasComments(enclosingNode,followingNode,comment)||handleVariableDeclaratorComments(enclosingNode,followingNode,comment)){// We're good @@ -150,7 +150,9 @@ function handleTryStatementComments(enclosingNode,followingNode,comment){if(!enc // obj = { fn /*comment*/() {} }; if(enclosingNode&&precedingNode&&(enclosingNode.type==="Property"||enclosingNode.type==="MethodDefinition")&&precedingNode.type==="Identifier"&&enclosingNode.key===precedingNode&&// special Property case: { key: /*comment*/(value) }; // comment should be attached to value instead of key -getNextNonSpaceNonCommentCharacter(text,precedingNode)!==":"){addTrailingComment(precedingNode,comment);return true;}return false;}function handleCommentInEmptyParens(text,enclosingNode,comment){if(getNextNonSpaceNonCommentCharacter(text,comment)!==")"){return false;}// Only add dangling comments to fix the case when no params are present, +getNextNonSpaceNonCommentCharacter(text,precedingNode)!==":"){addTrailingComment(precedingNode,comment);return true;}// Print comments between decorators and class methods as a trailing comment +// on the decorator node instead of the method node +if(precedingNode&&enclosingNode&&precedingNode.type==="Decorator"&&(enclosingNode.type==="ClassMethod"||enclosingNode.type==="MethodDefinition")){addTrailingComment(precedingNode,comment);return true;}return false;}function handleCommentInEmptyParens(text,enclosingNode,comment){if(getNextNonSpaceNonCommentCharacter(text,comment)!==")"){return false;}// Only add dangling comments to fix the case when no params are present, // i.e. a function without any argument. if(enclosingNode&&((enclosingNode.type==="FunctionDeclaration"||enclosingNode.type==="FunctionExpression"||enclosingNode.type==="ArrowFunctionExpression"||enclosingNode.type==="ClassMethod"||enclosingNode.type==="ObjectMethod")&&enclosingNode.params.length===0||enclosingNode.type==="CallExpression"&&enclosingNode.arguments.length===0)){addDanglingComment(enclosingNode,comment);return true;}if(enclosingNode&&enclosingNode.type==="MethodDefinition"&&enclosingNode.value.params.length===0){addDanglingComment(enclosingNode.value,comment);return true;}return false;}function handleLastFunctionArgComments(text,precedingNode,enclosingNode,followingNode,comment){// Type definitions functions if(precedingNode&&precedingNode.type==="FunctionTypeParam"&&enclosingNode&&enclosingNode.type==="FunctionTypeAnnotation"&&followingNode&&followingNode.type!=="FunctionTypeParam"){addTrailingComment(precedingNode,comment);return true;}// Real functions @@ -174,7 +176,7 @@ if(isBlock){return concat([contents,util$2.hasNewline(options.originalText,locEn // if this a comment on its own line; normal trailing comments are // always at the end of another expression. var isLineBeforeEmpty=util$2.isPreviousLineEmpty(options.originalText,comment);return lineSuffix(concat([hardline,isLineBeforeEmpty?hardline:"",contents]));}else if(isBlock){// Trailing block comments never need a newline -return concat([" ",contents]);}return concat([lineSuffix(" "+contents),!isBlock?breakParent:""]);}function printDanglingComments(path,options,sameIndent){var parts=[];var node=path.getValue();if(!node||!node.comments){return"";}path.each(function(commentPath){var comment=commentPath.getValue();if(comment&&!comment.leading&&!comment.trailing){parts.push(printComment(commentPath,options));}},"comments");if(parts.length===0){return"";}if(sameIndent){return join(hardline,parts);}return indent(concat([hardline,join(hardline,parts)]));}function prependCursorPlaceholder(path,options,printed){if(path.getNode()===options.cursorNode&&path.getValue()){return concat([cursor,printed]);}return printed;}function printComments(path,print,options,needsSemi){var value=path.getValue();var printed=print(path);var comments=value&&value.comments;if(!comments||comments.length===0){return prependCursorPlaceholder(path,options,printed);}var leadingParts=[];var trailingParts=[needsSemi?";":"",printed];path.each(function(commentPath){var comment=commentPath.getValue();var leading=comment.leading;var trailing=comment.trailing;if(leading){var contents=printLeadingComment(commentPath,print,options);if(!contents){return;}leadingParts.push(contents);var text=options.originalText;if(util$2.hasNewline(text,util$2.skipNewline(text,util$2.locEnd(comment)))){leadingParts.push(hardline);}}else if(trailing){trailingParts.push(printTrailingComment(commentPath,print,options));}},"comments");return prependCursorPlaceholder(path,options,concat(leadingParts.concat(trailingParts)));}var comments$1={attach:attach,printComments:printComments,printDanglingComments:printDanglingComments,getSortedChildNodes:getSortedChildNodes};var name="prettier";var version$1="1.7.0";var description="Prettier is an opinionated code formatter";var bin={"prettier":"./bin/prettier.js"};var repository="prettier/prettier";var homepage="https://prettier.io";var author="James Long";var license="MIT";var main="./index.js";var dependencies={"babel-code-frame":"7.0.0-alpha.12","babylon":"7.0.0-beta.22","chalk":"2.1.0","cosmiconfig":"git://github.com/davidtheclark/cosmiconfig.git#6eb3cc85d3a435e6b9e252b341e601960312f410","dashify":"0.2.2","diff":"3.2.0","esutils":"2.0.2","flow-parser":"0.51.0","get-stream":"3.0.0","globby":"^6.1.0","graphql":"0.10.1","ignore":"^3.3.3","jest-docblock":"21.1.0","jest-validate":"21.1.0","minimatch":"3.0.4","minimist":"1.2.0","parse5":"3.0.2","postcss":"^6.0.1","postcss-less":"^1.0.0","postcss-media-query-parser":"0.2.3","postcss-scss":"1.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"git://github.com/lydell/postcss-values-parser.git#af2c80b2bb558a6e7d61540d97f068f9fa162b38","strip-bom":"3.0.0","typescript":"2.5.1","typescript-eslint-parser":"git://github.com/eslint/typescript-eslint-parser.git#5576fb48c89165967557e867b9462d43431dcb10"};var devDependencies={"babel-cli":"6.24.1","babel-preset-es2015":"6.24.1","codecov":"2.2.0","cross-env":"5.0.1","eslint":"4.1.1","eslint-friendly-formatter":"3.0.0","eslint-plugin-import":"2.6.1","eslint-plugin-prettier":"2.1.2","eslint-plugin-react":"7.1.0","jest":"21.1.0","markdown-toc":"1.1.0","mkdirp":"^0.5.1","prettier":"1.6.0","rimraf":"2.6.1","rollup":"0.41.1","rollup-plugin-commonjs":"7.0.0","rollup-plugin-json":"2.1.0","rollup-plugin-node-builtins":"2.0.0","rollup-plugin-node-globals":"1.1.0","rollup-plugin-node-resolve":"2.0.0","rollup-plugin-replace":"1.1.1","shelljs":"0.7.8","sw-toolbox":"3.6.0","uglify-es":"3.0.15","webpack":"2.6.1"};var scripts={"test":"jest","test-integration":"jest tests_integration","lint":"cross-env EFF_NO_LINK_RULES=true eslint . --format node_modules/eslint-friendly-formatter","build":"node ./scripts/build/build.js","toc":"node ./scripts/table-of-contents.js"};var _package={name:name,version:version$1,description:description,bin:bin,repository:repository,homepage:homepage,author:author,license:license,main:main,dependencies:dependencies,devDependencies:devDependencies,scripts:scripts};var _package$1=Object.freeze({name:name,version:version$1,description:description,bin:bin,repository:repository,homepage:homepage,author:author,license:license,main:main,dependencies:dependencies,devDependencies:devDependencies,scripts:scripts,default:_package});var assert$2=require$$0;var util$6=util$3;var startsWithNoLookaheadToken$1=util$6.startsWithNoLookaheadToken;function FastPath$1(value){assert$2.ok(this instanceof FastPath$1);this.stack=[value];}// The name of the current property is always the penultimate element of +return concat([" ",contents]);}return concat([lineSuffix(" "+contents),!isBlock?breakParent:""]);}function printDanglingComments(path,options,sameIndent){var parts=[];var node=path.getValue();if(!node||!node.comments){return"";}path.each(function(commentPath){var comment=commentPath.getValue();if(comment&&!comment.leading&&!comment.trailing){parts.push(printComment(commentPath,options));}},"comments");if(parts.length===0){return"";}if(sameIndent){return join(hardline,parts);}return indent(concat([hardline,join(hardline,parts)]));}function prependCursorPlaceholder(path,options,printed){if(path.getNode()===options.cursorNode&&path.getValue()){return concat([cursor,printed]);}return printed;}function printComments(path,print,options,needsSemi){var value=path.getValue();var printed=print(path);var comments=value&&value.comments;if(!comments||comments.length===0){return prependCursorPlaceholder(path,options,printed);}var leadingParts=[];var trailingParts=[needsSemi?";":"",printed];path.each(function(commentPath){var comment=commentPath.getValue();var leading=comment.leading;var trailing=comment.trailing;if(leading){var contents=printLeadingComment(commentPath,print,options);if(!contents){return;}leadingParts.push(contents);var text=options.originalText;if(util$2.hasNewline(text,util$2.skipNewline(text,util$2.locEnd(comment)))){leadingParts.push(hardline);}}else if(trailing){trailingParts.push(printTrailingComment(commentPath,print,options));}},"comments");return prependCursorPlaceholder(path,options,concat(leadingParts.concat(trailingParts)));}var comments$1={attach:attach,printComments:printComments,printDanglingComments:printDanglingComments,getSortedChildNodes:getSortedChildNodes};var name="prettier";var version$1="1.7.1";var description="Prettier is an opinionated code formatter";var bin={"prettier":"./bin/prettier.js"};var repository="prettier/prettier";var homepage="https://prettier.io";var author="James Long";var license="MIT";var main="./index.js";var engines={"node":">=4"};var dependencies={"babel-code-frame":"7.0.0-alpha.12","babylon":"7.0.0-beta.23","camelcase":"4.1.0","chalk":"2.1.0","cosmiconfig":"3.0.1","dashify":"0.2.2","diff":"3.2.0","esutils":"2.0.2","flow-parser":"0.51.0","get-stream":"3.0.0","globby":"^6.1.0","graphql":"0.10.1","ignore":"^3.3.3","jest-docblock":"21.1.0","jest-validate":"21.1.0","leven":"2.1.0","mem":"1.1.0","minimatch":"3.0.4","minimist":"1.2.0","parse5":"3.0.2","postcss-less":"^1.0.0","postcss-media-query-parser":"0.2.3","postcss-scss":"1.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"git://github.com/lydell/postcss-values-parser.git#af2c80b2bb558a6e7d61540d97f068f9fa162b38","strip-bom":"3.0.0","typescript":"2.5.3","typescript-eslint-parser":"git://github.com/eslint/typescript-eslint-parser.git#9c71a627da36e97da52ed2731d58509c952b67ae"};var devDependencies={"babel-cli":"6.24.1","babel-preset-es2015":"6.24.1","codecov":"2.2.0","cross-env":"5.0.1","eslint":"4.1.1","eslint-friendly-formatter":"3.0.0","eslint-plugin-import":"2.6.1","eslint-plugin-prettier":"2.1.2","eslint-plugin-react":"7.1.0","jest":"21.1.0","markdown-toc":"1.1.0","mkdirp":"^0.5.1","prettier":"1.7.0","rimraf":"2.6.1","rollup":"0.41.1","rollup-plugin-commonjs":"7.0.0","rollup-plugin-json":"2.1.0","rollup-plugin-node-builtins":"2.0.0","rollup-plugin-node-globals":"1.1.0","rollup-plugin-node-resolve":"2.0.0","rollup-plugin-replace":"1.1.1","shelljs":"0.7.8","sw-toolbox":"3.6.0","uglify-es":"3.0.15","webpack":"2.6.1"};var scripts={"test":"jest","test-integration":"jest tests_integration","lint":"cross-env EFF_NO_LINK_RULES=true eslint . --format node_modules/eslint-friendly-formatter","build":"node ./scripts/build/build.js","toc":"node ./scripts/table-of-contents.js"};var _package={name:name,version:version$1,description:description,bin:bin,repository:repository,homepage:homepage,author:author,license:license,main:main,engines:engines,dependencies:dependencies,devDependencies:devDependencies,scripts:scripts};var _package$1=Object.freeze({name:name,version:version$1,description:description,bin:bin,repository:repository,homepage:homepage,author:author,license:license,main:main,engines:engines,dependencies:dependencies,devDependencies:devDependencies,scripts:scripts,default:_package});var assert$2=require$$0;var util$6=util$3;var startsWithNoLookaheadToken$1=util$6.startsWithNoLookaheadToken;function FastPath$1(value){assert$2.ok(this instanceof FastPath$1);this.stack=[value];}// The name of the current property is always the penultimate element of // this.stack, and always a String. FastPath$1.prototype.getName=function getName(){var s=this.stack;var len=s.length;if(len>1){return s[len-2];}// Since the name is always a string, null is a safe sentinel value to // return if we do not know the name of the (root) value. @@ -223,13 +225,13 @@ case"AwaitExpression":switch(parent.type){case"TaggedTemplateExpression":case"Bi options.parser!=="typescript"&&!parent.directive||options.parser==="typescript"&&options.originalText.substr(util$6.locStart(node)-1,1)==="(")){// To avoid becoming a directive var _grandParent=this.getParentNode(1);return _grandParent.type==="Program"||_grandParent.type==="BlockStatement";}return parent.type==="MemberExpression"&&typeof node.value==="number"&&name==="object"&&parent.object===node;case"AssignmentExpression":{var _grandParent2=this.getParentNode(1);if(parent.type==="ArrowFunctionExpression"&&parent.body===node){return true;}else if(parent.type==="ClassProperty"&&parent.key===node&&parent.computed){return false;}else if(parent.type==="TSPropertySignature"&&parent.name===node){return false;}else if(parent.type==="ForStatement"&&(parent.init===node||parent.update===node)){return false;}else if(parent.type==="ExpressionStatement"){return node.left.type==="ObjectPattern";}else if(parent.type==="TSPropertySignature"&&parent.key===node){return false;}else if(parent.type==="AssignmentExpression"){return false;}else if(parent.type==="SequenceExpression"&&_grandParent2&&_grandParent2.type==="ForStatement"&&(_grandParent2.init===parent||_grandParent2.update===parent)){return false;}return true;}case"ConditionalExpression":switch(parent.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertionExpression":case"TSAsExpression":case"TSNonNullExpression":return true;case"NewExpression":case"CallExpression":return name==="callee"&&parent.callee===node;case"ConditionalExpression":return name==="test"&&parent.test===node;case"MemberExpression":return name==="object"&&parent.object===node;default:return false;}case"FunctionExpression":switch(parent.type){case"CallExpression":return name==="callee";// Not strictly necessary, but it's clearer to the reader if IIFEs are wrapped in parentheses. case"TaggedTemplateExpression":return true;// This is basically a kind of IIFE. -case"ExportDefaultDeclaration":return true;default:return false;}case"ArrowFunctionExpression":switch(parent.type){case"CallExpression":return name==="callee";case"NewExpression":return name==="callee";case"MemberExpression":return name==="object";case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"BinaryExpression":case"AwaitExpression":case"TSTypeAssertionExpression":return true;case"ConditionalExpression":return name==="test";default:return false;}case"ClassExpression":return parent.type==="ExportDefaultDeclaration";}return false;};function isStatement(node){return node.type==="BlockStatement"||node.type==="BreakStatement"||node.type==="ClassBody"||node.type==="ClassDeclaration"||node.type==="ClassMethod"||node.type==="ClassProperty"||node.type==="ContinueStatement"||node.type==="DebuggerStatement"||node.type==="DeclareClass"||node.type==="DeclareExportAllDeclaration"||node.type==="DeclareExportDeclaration"||node.type==="DeclareFunction"||node.type==="DeclareInterface"||node.type==="DeclareModule"||node.type==="DeclareModuleExports"||node.type==="DeclareVariable"||node.type==="DoWhileStatement"||node.type==="ExportAllDeclaration"||node.type==="ExportDefaultDeclaration"||node.type==="ExportNamedDeclaration"||node.type==="ExpressionStatement"||node.type==="ForAwaitStatement"||node.type==="ForInStatement"||node.type==="ForOfStatement"||node.type==="ForStatement"||node.type==="FunctionDeclaration"||node.type==="IfStatement"||node.type==="ImportDeclaration"||node.type==="InterfaceDeclaration"||node.type==="LabeledStatement"||node.type==="MethodDefinition"||node.type==="ReturnStatement"||node.type==="SwitchStatement"||node.type==="ThrowStatement"||node.type==="TryStatement"||node.type==="TSAbstractClassDeclaration"||node.type==="TSEnumDeclaration"||node.type==="TSImportEqualsDeclaration"||node.type==="TSInterfaceDeclaration"||node.type==="TSModuleDeclaration"||node.type==="TSNamespaceExportDeclaration"||node.type==="TSNamespaceFunctionDeclaration"||node.type==="TypeAlias"||node.type==="VariableDeclaration"||node.type==="WhileStatement"||node.type==="WithStatement";}var fastPath=FastPath$1;function traverseDoc(doc,onEnter,onExit,shouldTraverseConditionalGroups){function traverseDocRec(doc){var shouldRecurse=true;if(onEnter){if(onEnter(doc)===false){shouldRecurse=false;}}if(shouldRecurse){if(doc.type==="concat"||doc.type==="fill"){for(var _i17=0;_i170){var parentGroup=groupStack[groupStack.length-1];// Breaks are not propagated through conditional groups because +case"ExportDefaultDeclaration":return true;default:return false;}case"ArrowFunctionExpression":switch(parent.type){case"CallExpression":return name==="callee";case"NewExpression":return name==="callee";case"MemberExpression":return name==="object";case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"BinaryExpression":case"AwaitExpression":case"TSTypeAssertionExpression":return true;case"ConditionalExpression":return name==="test";default:return false;}case"ClassExpression":return parent.type==="ExportDefaultDeclaration";}return false;};function isStatement(node){return node.type==="BlockStatement"||node.type==="BreakStatement"||node.type==="ClassBody"||node.type==="ClassDeclaration"||node.type==="ClassMethod"||node.type==="ClassProperty"||node.type==="ClassPrivateProperty"||node.type==="ContinueStatement"||node.type==="DebuggerStatement"||node.type==="DeclareClass"||node.type==="DeclareExportAllDeclaration"||node.type==="DeclareExportDeclaration"||node.type==="DeclareFunction"||node.type==="DeclareInterface"||node.type==="DeclareModule"||node.type==="DeclareModuleExports"||node.type==="DeclareVariable"||node.type==="DoWhileStatement"||node.type==="ExportAllDeclaration"||node.type==="ExportDefaultDeclaration"||node.type==="ExportNamedDeclaration"||node.type==="ExpressionStatement"||node.type==="ForAwaitStatement"||node.type==="ForInStatement"||node.type==="ForOfStatement"||node.type==="ForStatement"||node.type==="FunctionDeclaration"||node.type==="IfStatement"||node.type==="ImportDeclaration"||node.type==="InterfaceDeclaration"||node.type==="LabeledStatement"||node.type==="MethodDefinition"||node.type==="ReturnStatement"||node.type==="SwitchStatement"||node.type==="ThrowStatement"||node.type==="TryStatement"||node.type==="TSAbstractClassDeclaration"||node.type==="TSEnumDeclaration"||node.type==="TSImportEqualsDeclaration"||node.type==="TSInterfaceDeclaration"||node.type==="TSModuleDeclaration"||node.type==="TSNamespaceExportDeclaration"||node.type==="TSNamespaceFunctionDeclaration"||node.type==="TypeAlias"||node.type==="VariableDeclaration"||node.type==="WhileStatement"||node.type==="WithStatement";}var fastPath=FastPath$1;function traverseDoc(doc,onEnter,onExit,shouldTraverseConditionalGroups){function traverseDocRec(doc){var shouldRecurse=true;if(onEnter){if(onEnter(doc)===false){shouldRecurse=false;}}if(shouldRecurse){if(doc.type==="concat"||doc.type==="fill"){for(var _i17=0;_i170){var parentGroup=groupStack[groupStack.length-1];// Breaks are not propagated through conditional groups because // the user is expected to manually handle what breaks. if(!parentGroup.expandedStates){parentGroup.break=true;}}return null;}function propagateBreaks(doc){var alreadyVisited=new Map();var groupStack=[];traverseDoc(doc,function(doc){if(doc.type==="break-parent"){breakParentGroup(groupStack);}if(doc.type==="group"){groupStack.push(doc);if(alreadyVisited.has(doc)){return false;}alreadyVisited.set(doc,true);}},function(doc){if(doc.type==="group"){var _group=groupStack.pop();if(_group.break){breakParentGroup(groupStack);}}},/* shouldTraverseConditionalGroups */true);}function removeLines(doc){// Force this doc into flat mode by statically converting all // lines into spaces (or soft lines into nothing). Hard lines // should still output because there's too great of a chance // of breaking existing assumptions otherwise. -return mapDoc(doc,function(d){if(d.type==="line"&&!d.hard){return d.soft?"":" ";}else if(d.type==="if-break"){return d.flatContents||"";}return d;});}function rawText$1(node){return node.extra?node.extra.raw:node.raw;}var docUtils$2={isEmpty:isEmpty$1,willBreak:willBreak$1,isLineNext:isLineNext$1,traverseDoc:traverseDoc,mapDoc:mapDoc,propagateBreaks:propagateBreaks,removeLines:removeLines,rawText:rawText$1};function commonjsRequire(){throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');}function createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports;}var index$6=createCommonjsModule(function(module,exports){// Copyright 2014, 2015, 2016, 2017 Simon Lydell +return mapDoc(doc,function(d){if(d.type==="line"&&!d.hard){return d.soft?"":" ";}else if(d.type==="if-break"){return d.flatContents||"";}return d;});}function rawText$1(node){return node.extra?node.extra.raw:node.raw;}var docUtils$2={isEmpty:isEmpty$1,willBreak:willBreak$1,isLineNext:isLineNext$1,traverseDoc:traverseDoc,mapDoc:mapDoc,propagateBreaks:propagateBreaks,removeLines:removeLines,rawText:rawText$1};var ConfigError$1=function(_Error){_inherits(ConfigError$1,_Error);function ConfigError$1(){_classCallCheck(this,ConfigError$1);return _possibleConstructorReturn(this,(ConfigError$1.__proto__||Object.getPrototypeOf(ConfigError$1)).apply(this,arguments));}return ConfigError$1;}(Error);var DebugError=function(_Error2){_inherits(DebugError,_Error2);function DebugError(){_classCallCheck(this,DebugError);return _possibleConstructorReturn(this,(DebugError.__proto__||Object.getPrototypeOf(DebugError)).apply(this,arguments));}return DebugError;}(Error);var errors={ConfigError:ConfigError$1,DebugError:DebugError};function commonjsRequire(){throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');}function createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports;}var index$6=createCommonjsModule(function(module,exports){// Copyright 2014, 2015, 2016, 2017 Simon Lydell // License: MIT. (See LICENSE.) Object.defineProperty(exports,"__esModule",{value:true});// This regex comes from regex.coffee, and is inserted here by generate-index.js // (run `npm run build`). @@ -359,10 +361,10 @@ var originalDim=ansiStyles.dim.open;if(isSimpleWindowsTerm&&(nestedStyles.indexO // otherwise only the part of the string until said closing code // will be colored, and the rest will simply be 'plain'. str=code.open+str.replace(code.closeRe,code.open)+code.close;}// Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue. -ansiStyles.dim.open=originalDim;return str;}function init(){var ret={};Object.keys(styles).forEach(function(name){ret[name]={get:function get(){return build.call(this,[name]);}};});return ret;}defineProps(Chalk.prototype,init());var index$8=new Chalk();var styles_1=ansiStyles;var hasColor=hasAnsi;var stripColor=stripAnsi;var supportsColor_1=supportsColor;index$8.styles=styles_1;index$8.hasColor=hasColor;index$8.stripColor=stripColor;index$8.supportsColor=supportsColor_1;var index$4=createCommonjsModule(function(module,exports){"use strict";exports.__esModule=true;exports.codeFrameColumns=codeFrameColumns;exports.default=function(rawLines,lineNumber,colNumber){var opts=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(!deprecationWarningShown){deprecationWarningShown=true;var deprecationError=new Error("Passing lineNumber and colNumber is deprecated to babel-code-frame. Please use `codeFrameColumns`.");deprecationError.name="DeprecationWarning";if(process.emitWarning){process.emitWarning(deprecationError);}else{console.warn(deprecationError);}}colNumber=Math.max(colNumber,0);var location={start:{column:colNumber,line:lineNumber}};return codeFrameColumns(rawLines,location,opts);};var _jsTokens=index$6;var _jsTokens2=_interopRequireDefault(_jsTokens);var _esutils=utils;var _esutils2=_interopRequireDefault(_esutils);var _chalk=index$8;var _chalk2=_interopRequireDefault(_chalk);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deprecationWarningShown=false;function getDefs(chalk){return{keyword:chalk.cyan,capitalized:chalk.yellow,jsx_tag:chalk.yellow,punctuator:chalk.yellow,number:chalk.magenta,string:chalk.green,regex:chalk.magenta,comment:chalk.grey,invalid:chalk.white.bgRed.bold,gutter:chalk.grey,marker:chalk.red.bold};}var NEWLINE=/\r\n|[\n\r\u2028\u2029]/;var JSX_TAG=/^[a-z][\w-]*$/i;var BRACKET=/^[()\[\]{}]$/;function getTokenType(match){var _match$slice=match.slice(-2),offset=_match$slice[0],text=_match$slice[1];var token=(0,_jsTokens.matchToToken)(match);if(token.type==="name"){if(_esutils2.default.keyword.isReservedWordES6(token.value)){return"keyword";}if(JSX_TAG.test(token.value)&&(text[offset-1]==="<"||text.substr(offset-2,2)=="2&&arguments[2]!==undefined?arguments[2]:{};var highlighted=opts.highlightCode&&_chalk2.default.supportsColor||opts.forceColor;var chalk=_chalk2.default;if(opts.forceColor){chalk=new _chalk2.default.constructor({enabled:true});}var maybeHighlight=function maybeHighlight(chalkFn,string){return highlighted?chalkFn(string):string;};var defs=getDefs(chalk);if(highlighted)rawLines=highlight(defs,rawLines);var lines=rawLines.split(NEWLINE);var _getMarkerLines=getMarkerLines(loc,lines,opts),start=_getMarkerLines.start,end=_getMarkerLines.end,markerLines=_getMarkerLines.markerLines;var numberMaxWidth=String(end).length;var frame=lines.slice(start,end).map(function(line,index){var number=start+1+index;var paddedNumber=(" "+number).slice(-numberMaxWidth);var gutter=" "+paddedNumber+" | ";var hasMarker=markerLines[number];if(hasMarker){var markerLine="";if(Array.isArray(hasMarker)){var markerSpacing=line.slice(0,Math.max(hasMarker[0]-1,0)).replace(/[^\t]/g," ");var numberOfMarkers=hasMarker[1]||1;markerLine=["\n ",maybeHighlight(defs.gutter,gutter.replace(/\d/g," ")),markerSpacing,maybeHighlight(defs.marker,"^").repeat(numberOfMarkers)].join("");}return[maybeHighlight(defs.marker,">"),maybeHighlight(defs.gutter,gutter),line,markerLine].join("");}else{return" "+maybeHighlight(defs.gutter,gutter)+line;}}).join("\n");if(highlighted){return chalk.reset(frame);}else{return frame;}}});var path=require$$0$1;var parsers={get flow(){return eval("require")("./parser-flow");},get graphql(){return eval("require")("./parser-graphql");},get parse5(){return eval("require")("./parser-parse5");},get babylon(){return eval("require")("./parser-babylon");},get typescript(){return eval("require")("./parser-typescript");},get postcss(){return eval("require")("./parser-postcss");},get json(){return eval("require")("./parser-babylon");}};function resolveParseFunction(opts){if(typeof opts.parser==="function"){return opts.parser;}if(typeof opts.parser==="string"){if(parsers.hasOwnProperty(opts.parser)){return parsers[opts.parser];}try{return eval("require")(path.resolve(process.cwd(),opts.parser));}catch(err){/* istanbul ignore next */throw new Error('Couldn\'t resolve parser "'+opts.parser+'"');}}/* istanbul ignore next */return parsers.babylon;}function parse(text,opts){var parseFunction=resolveParseFunction(opts);try{return parseFunction(text,parsers,opts);}catch(error){var loc=error.loc;if(loc){var codeFrame=index$4;error.codeFrame=codeFrame.codeFrameColumns(text,loc,{highlightCode:true});error.message+="\n"+error.codeFrame;throw error;}/* istanbul ignore next */throw error.stack;}}var parser$1={parse:parse};var util$7=util$3;var docUtils$1=docUtils$2;var docBuilders$4=docBuilders$1;var comments$4=comments$1;var indent$3=docBuilders$4.indent;var hardline$3=docBuilders$4.hardline;var softline$2=docBuilders$4.softline;var concat$3=docBuilders$4.concat;function printSubtree(subtreeParser,path,print,options){var next=Object.assign({},{transformDoc:function transformDoc(doc){return doc;}},subtreeParser);next.options=Object.assign({},options,next.options,{originalText:next.text});var ast=parser$1.parse(next.text,next.options);var astComments=ast.comments;delete ast.comments;comments$4.attach(astComments,ast,next.text,next.options);var nextDoc=printer.printAstToDoc(ast,next.options);return next.transformDoc(nextDoc,{path:path,print:print});}/** +ansiStyles.dim.open=originalDim;return str;}function init(){var ret={};Object.keys(styles).forEach(function(name){ret[name]={get:function get(){return build.call(this,[name]);}};});return ret;}defineProps(Chalk.prototype,init());var index$8=new Chalk();var styles_1=ansiStyles;var hasColor=hasAnsi;var stripColor=stripAnsi;var supportsColor_1=supportsColor;index$8.styles=styles_1;index$8.hasColor=hasColor;index$8.stripColor=stripColor;index$8.supportsColor=supportsColor_1;var index$4=createCommonjsModule(function(module,exports){"use strict";exports.__esModule=true;exports.codeFrameColumns=codeFrameColumns;exports.default=function(rawLines,lineNumber,colNumber){var opts=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(!deprecationWarningShown){deprecationWarningShown=true;var deprecationError=new Error("Passing lineNumber and colNumber is deprecated to babel-code-frame. Please use `codeFrameColumns`.");deprecationError.name="DeprecationWarning";if(process.emitWarning){process.emitWarning(deprecationError);}else{console.warn(deprecationError);}}colNumber=Math.max(colNumber,0);var location={start:{column:colNumber,line:lineNumber}};return codeFrameColumns(rawLines,location,opts);};var _jsTokens=index$6;var _jsTokens2=_interopRequireDefault(_jsTokens);var _esutils=utils;var _esutils2=_interopRequireDefault(_esutils);var _chalk=index$8;var _chalk2=_interopRequireDefault(_chalk);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deprecationWarningShown=false;function getDefs(chalk){return{keyword:chalk.cyan,capitalized:chalk.yellow,jsx_tag:chalk.yellow,punctuator:chalk.yellow,number:chalk.magenta,string:chalk.green,regex:chalk.magenta,comment:chalk.grey,invalid:chalk.white.bgRed.bold,gutter:chalk.grey,marker:chalk.red.bold};}var NEWLINE=/\r\n|[\n\r\u2028\u2029]/;var JSX_TAG=/^[a-z][\w-]*$/i;var BRACKET=/^[()\[\]{}]$/;function getTokenType(match){var _match$slice=match.slice(-2),offset=_match$slice[0],text=_match$slice[1];var token=(0,_jsTokens.matchToToken)(match);if(token.type==="name"){if(_esutils2.default.keyword.isReservedWordES6(token.value)){return"keyword";}if(JSX_TAG.test(token.value)&&(text[offset-1]==="<"||text.substr(offset-2,2)=="2&&arguments[2]!==undefined?arguments[2]:{};var highlighted=opts.highlightCode&&_chalk2.default.supportsColor||opts.forceColor;var chalk=_chalk2.default;if(opts.forceColor){chalk=new _chalk2.default.constructor({enabled:true});}var maybeHighlight=function maybeHighlight(chalkFn,string){return highlighted?chalkFn(string):string;};var defs=getDefs(chalk);if(highlighted)rawLines=highlight(defs,rawLines);var lines=rawLines.split(NEWLINE);var _getMarkerLines=getMarkerLines(loc,lines,opts),start=_getMarkerLines.start,end=_getMarkerLines.end,markerLines=_getMarkerLines.markerLines;var numberMaxWidth=String(end).length;var frame=lines.slice(start,end).map(function(line,index){var number=start+1+index;var paddedNumber=(" "+number).slice(-numberMaxWidth);var gutter=" "+paddedNumber+" | ";var hasMarker=markerLines[number];if(hasMarker){var markerLine="";if(Array.isArray(hasMarker)){var markerSpacing=line.slice(0,Math.max(hasMarker[0]-1,0)).replace(/[^\t]/g," ");var numberOfMarkers=hasMarker[1]||1;markerLine=["\n ",maybeHighlight(defs.gutter,gutter.replace(/\d/g," ")),markerSpacing,maybeHighlight(defs.marker,"^").repeat(numberOfMarkers)].join("");}return[maybeHighlight(defs.marker,">"),maybeHighlight(defs.gutter,gutter),line,markerLine].join("");}else{return" "+maybeHighlight(defs.gutter,gutter)+line;}}).join("\n");if(highlighted){return chalk.reset(frame);}else{return frame;}}});var path=require$$0$1;var ConfigError=errors.ConfigError;var parsers={get flow(){return eval("require")("./parser-flow");},get graphql(){return eval("require")("./parser-graphql");},get parse5(){return eval("require")("./parser-parse5");},get babylon(){return eval("require")("./parser-babylon");},get typescript(){return eval("require")("./parser-typescript");},get css(){return eval("require")("./parser-postcss");},get less(){return eval("require")("./parser-postcss");},get scss(){return eval("require")("./parser-postcss");},get json(){return eval("require")("./parser-babylon");}};function resolveParseFunction(opts){if(typeof opts.parser==="function"){return opts.parser;}if(typeof opts.parser==="string"){if(parsers.hasOwnProperty(opts.parser)){return parsers[opts.parser];}try{return eval("require")(path.resolve(process.cwd(),opts.parser));}catch(err){/* istanbul ignore next */throw new ConfigError('Couldn\'t resolve parser "'+opts.parser+'"');}}/* istanbul ignore next */return parsers.babylon;}function parse(text,opts){var parseFunction=resolveParseFunction(opts);try{return parseFunction(text,parsers,opts);}catch(error){var loc=error.loc;if(loc){var codeFrame=index$4;error.codeFrame=codeFrame.codeFrameColumns(text,loc,{highlightCode:true});error.message+="\n"+error.codeFrame;throw error;}/* istanbul ignore next */throw error.stack;}}var parser$1={parse:parse};var util$7=util$3;var docUtils$1=docUtils$2;var docBuilders$4=docBuilders$1;var comments$4=comments$1;var indent$3=docBuilders$4.indent;var hardline$3=docBuilders$4.hardline;var softline$2=docBuilders$4.softline;var concat$3=docBuilders$4.concat;function printSubtree(subtreeParser,path,print,options){var next=Object.assign({},{transformDoc:function transformDoc(doc){return doc;}},subtreeParser);next.options=Object.assign({},options,next.options,{originalText:next.text});var ast=parser$1.parse(next.text,next.options);var astComments=ast.comments;delete ast.comments;comments$4.attach(astComments,ast,next.text,next.options);var nextDoc=printer.printAstToDoc(ast,next.options);return next.transformDoc(nextDoc,{path:path,print:print});}/** * @returns {{ text, options?, transformDoc? } | void} */function getSubtreeParser(path,options){switch(options.parser){case"parse5":return fromHtmlParser2(path,options);case"babylon":case"flow":case"typescript":return fromBabylonFlowOrTypeScript(path,options);}}function fromBabylonFlowOrTypeScript(path){var node=path.getValue();switch(node.type){case"TemplateLiteral":{var isCss=[isStyledJsx,isStyledComponents].some(function(isIt){return isIt(path);});if(isCss){// Get full template literal with expressions replaced by placeholders -var rawQuasis=node.quasis.map(function(q){return q.value.raw;});var text=rawQuasis.join("@prettier-placeholder");return{options:{parser:"postcss"},transformDoc:transformCssDoc,text:text};}break;}case"TemplateElement":{var parent=path.getParentNode();var parentParent=path.getParentNode(1);/* +var rawQuasis=node.quasis.map(function(q){return q.value.raw;});var text=rawQuasis.join("@prettier-placeholder");return{options:{parser:"css"},transformDoc:transformCssDoc,text:text};}break;}case"TemplateElement":{var parent=path.getParentNode();var parentParent=path.getParentNode(1);/* * react-relay and graphql-tag * graphql`...` * graphql.experimental`...` @@ -370,7 +372,7 @@ var rawQuasis=node.quasis.map(function(q){return q.value.raw;});var text=rawQuas */if(parentParent&&(parentParent.type==="TaggedTemplateExpression"&&parent.quasis.length===1&&(parentParent.tag.type==="MemberExpression"&&parentParent.tag.object.name==="graphql"&&parentParent.tag.property.name==="experimental"||parentParent.tag.type==="Identifier"&&(parentParent.tag.name==="gql"||parentParent.tag.name==="graphql"))||parentParent.type==="CallExpression"&&parentParent.callee.type==="Identifier"&&parentParent.callee.name==="graphql")){return{options:{parser:"graphql"},transformDoc:function transformDoc(doc){return concat$3([indent$3(concat$3([softline$2,stripTrailingHardline(doc)])),softline$2]);},text:parent.quasis[0].value.raw};}break;}}}function fromHtmlParser2(path,options){var node=path.getValue();switch(node.type){case"text":{var parent=path.getParentNode();// Inline JavaScript if(parent.type==="script"&&(!parent.attribs.lang&&!parent.attribs.lang||parent.attribs.type==="text/javascript"||parent.attribs.type==="application/javascript")){var _parser=options.parser==="flow"?"flow":"babylon";return{options:{parser:_parser},transformDoc:function transformDoc(doc){return concat$3([hardline$3,doc]);},text:getText(options,node)};}// Inline TypeScript if(parent.type==="script"&&(parent.attribs.type==="application/x-typescript"||parent.attribs.lang==="ts")){return{options:{parser:"typescript"},transformDoc:function transformDoc(doc){return concat$3([hardline$3,doc]);},text:getText(options,node)};}// Inline Styles -if(parent.type==="style"){return{options:{parser:"postcss"},transformDoc:function transformDoc(doc){return concat$3([hardline$3,stripTrailingHardline(doc)]);},text:getText(options,node)};}break;}case"attribute":{/* +if(parent.type==="style"){return{options:{parser:"css"},transformDoc:function transformDoc(doc){return concat$3([hardline$3,stripTrailingHardline(doc)]);},text:getText(options,node)};}break;}case"attribute":{/* * Vue binding sytax: JS expressions * :class="{ 'some-key': value }" * v-bind:id="'list-' + id" @@ -407,14 +409,17 @@ if(text.indexOf(_rawText)===-1){if(n.raws.inline){return concat$6(["// ",_rawTex // it will put a space after `:` and break it. Ideally we should parse // less files with less, but we can hardcode this to work with scss as // well. -var isValueExtend=n.value.type==="value-root"&&n.value.group.type==="value-value"&&n.value.group.group.type==="value-func"&&n.value.group.group.value==="extend";var isComposed=n.value.type==="value-root"&&n.value.group.type==="value-value"&&n.prop==="composes";return concat$6([n.raws.before.replace(/[\s;]/g,""),n.prop.startsWith("--")?n.prop:maybeToLowerCase(n.prop),":",isValueExtend?"":" ",isComposed?removeLines$1(path.call(print,"value")):path.call(print,"value"),n.important?" !important":"",n.nodes?concat$6([" {",indent$6(concat$6([softline$5,printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}case"css-atrule":{var hasParams=n.params&&!(n.params.type==="media-query-list"&&n.params.value==="");var isDetachedRulesetCall=hasParams&&n.params.type==="media-query-list"&&/^\(\s*\)$/.test(n.params.value);return concat$6(["@",isDetachedRulesetCall?n.name:maybeToLowerCase(n.name),hasParams?concat$6([isDetachedRulesetCall?"":" ",path.call(print,"params")]):"",n.nodes?concat$6([" {",indent$6(concat$6([n.nodes.length>0?softline$5:"",printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}case"css-import":{return concat$6(["@",maybeToLowerCase(n.name)," ",n.directives?concat$6([n.directives," "]):"",adjustStrings(n.importPath,options),n.nodes.length>0?concat$6([" {",indent$6(concat$6([softline$5,printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}// postcss-media-query-parser +var isValueExtend=n.value.type==="value-root"&&n.value.group.type==="value-value"&&n.value.group.group.type==="value-func"&&n.value.group.group.value==="extend";var isComposed=n.value.type==="value-root"&&n.value.group.type==="value-value"&&n.prop==="composes";return concat$6([n.raws.before.replace(/[\s;]/g,""),maybeToLowerCase(n.prop),":",isValueExtend?"":" ",isComposed?removeLines$1(path.call(print,"value")):path.call(print,"value"),n.important?" !important":"",n.nodes?concat$6([" {",indent$6(concat$6([softline$5,printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}case"css-atrule":{var hasParams=n.params&&!(n.params.type==="media-query-list"&&n.params.value==="");var isDetachedRulesetCall=hasParams&&n.params.type==="media-query-list"&&/^\(\s*\)$/.test(n.params.value);return concat$6(["@",// If a Less file ends up being parsed with the SCSS parser, Less +// variable declarations will be parsed as atrules with names ending +// with a colon, so keep the original case then. +isDetachedRulesetCall||n.name.endsWith(":")?n.name:maybeToLowerCase(n.name),hasParams?concat$6([isDetachedRulesetCall?"":" ",path.call(print,"params")]):"",n.nodes?concat$6([" {",indent$6(concat$6([n.nodes.length>0?softline$5:"",printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}case"css-import":{return concat$6(["@",maybeToLowerCase(n.name)," ",n.directives?concat$6([n.directives," "]):"",adjustStrings(n.importPath,options),n.nodes.length>0?concat$6([" {",indent$6(concat$6([softline$5,printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}// postcss-media-query-parser case"media-query-list":{var parts=[];path.each(function(childPath){var node=childPath.getValue();if(node.type==="media-query"&&node.value===""){return;}parts.push(childPath.call(print));},"nodes");return group$4(indent$6(join$5(concat$6([",",line$4]),parts)));}case"media-query":{return join$5(" ",path.map(print,"nodes"));}case"media-type":{var parent=path.getParentNode(2);if(parent.type==="css-atrule"&&parent.name.toLowerCase()==="charset"){return n.value;}return adjustNumbers(adjustStrings(n.value,options));}case"media-feature-expression":{if(!n.nodes){return n.value;}return concat$6(["(",concat$6(path.map(print,"nodes")),")"]);}case"media-feature":{return maybeToLowerCase(adjustStrings(n.value.replace(/ +/g," "),options));}case"media-colon":{return concat$6([n.value," "]);}case"media-value":{return adjustNumbers(adjustStrings(n.value,options));}case"media-keyword":{return adjustStrings(n.value,options);}case"media-url":{return adjustStrings(n.value,options);}case"media-unknown":{return adjustStrings(n.value,options);}// postcss-selector-parser case"selector-root-invalid":{// This is likely a SCSS nested property: `background: { color: red; }`. -return adjustNumbers(adjustStrings(maybeToLowerCase(n.value),options));}case"selector-root":{return group$4(join$5(concat$6([",",hardline$6]),path.map(print,"nodes")));}case"selector-comment":{return n.value;}case"selector-string":{return adjustStrings(n.value,options);}case"selector-tag":{return maybeToLowerCase(n.value);}case"selector-id":{return concat$6(["#",n.value]);}case"selector-class":{return concat$6([".",adjustNumbers(adjustStrings(n.value,options))]);}case"selector-attribute":{return concat$6(["[",maybeToLowerCase(n.attribute),n.operator?n.operator:"",n.value?quoteAttributeValue(adjustStrings(n.value,options),options):"",n.insensitive?" i":"","]"]);}case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"){var _parent2=path.getParentNode();var _leading=_parent2.type==="selector-selector"&&_parent2.nodes[0]===n?"":line$4;return concat$6([_leading,n.value," "]);}var leading=n.value.trim().startsWith("(")?line$4:"";var value=adjustNumbers(adjustStrings(n.value.trim(),options))||line$4;return concat$6([leading,value]);}case"selector-universal":{return n.value;}case"selector-selector":{return group$4(indent$6(concat$6(path.map(print,"nodes"))));}case"selector-pseudo":{return concat$6([maybeToLowerCase(n.value),n.nodes&&n.nodes.length>0?concat$6(["(",join$5(", ",path.map(print,"nodes")),")"]):""]);}case"selector-nesting":{return printValue(n.value);}// postcss-values-parser -case"value-root":{return path.call(print,"group");}case"value-comma_group":{var printed=path.map(print,"groups");var _parts=[];for(var _i18=0;_i180&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value==="data")){return concat$6([n.open?path.call(print,"open"):"",join$5(",",path.map(print,"groups")),n.close?path.call(print,"close"):""]);}if(!n.open){var _printed=path.map(print,"groups");var res=[];for(var _i19=0;_i19<_printed.length;_i19++){if(_i19!==0){res.push(concat$6([",",line$4]));}res.push(_printed[_i19]);}return group$4(indent$6(fill$2(res)));}return group$4(concat$6([n.open?path.call(print,"open"):"",indent$6(concat$6([softline$5,join$5(concat$6([",",line$4]),path.map(print,"groups"))])),softline$5,n.close?path.call(print,"close"):""]));}case"value-value":{return path.call(print,"group");}case"value-func":{return concat$6([n.value,path.call(print,"group")]);}case"value-paren":{if(n.raws.before!==""){return concat$6([line$4,n.value]);}return n.value;}case"value-number":{return concat$6([printNumber$1(n.value),maybeToLowerCase(n.unit)]);}case"value-operator":{return n.value;}case"value-word":{if(n.isColor&&n.isHex){return n.value.toLowerCase();}return n.value;}case"value-colon":{return n.value;}case"value-comma":{return concat$6([n.value," "]);}case"value-string":{return util$9.printString(n.raws.quote+n.value+n.raws.quote,options);}case"value-atword":{return concat$6(["@",n.value]);}default:/* istanbul ignore next */throw new Error("unknown postcss type: "+JSON.stringify(n.type));}}function printNodeSequence(path,options,print){var node=path.getValue();var parts=[];var i=0;path.map(function(pathChild){var prevNode=node.nodes[i-1];if(prevNode&&prevNode.type==="css-comment"&&prevNode.text.trim()==="prettier-ignore"){var childNode=pathChild.getValue();parts.push(options.originalText.slice(util$9.locStart(childNode),util$9.locEnd(childNode)));}else{parts.push(pathChild.call(print));}if(i!==node.nodes.length-1){if(node.nodes[i+1].type==="css-comment"&&!util$9.hasNewline(options.originalText,util$9.locStart(node.nodes[i+1]),{backwards:true})||node.nodes[i+1].type==="css-atrule"&&node.nodes[i+1].name==="else"&&node.nodes[i].type!=="css-comment"){parts.push(" ");}else{parts.push(hardline$6);if(util$9.isNextLineEmpty(options.originalText,pathChild.getValue())){parts.push(hardline$6);}}}i++;},"nodes");return concat$6(parts);}function printValue(value){return value;}var STRING_REGEX=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g;var NUMBER_REGEX=/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g;var STANDARD_UNIT_REGEX=/[a-zA-Z]+/g;var WORD_PART_REGEX=/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g;var ADJUST_NUMBERS_REGEX=RegExp(STRING_REGEX.source+'|'+('('+WORD_PART_REGEX.source+')?')+('('+NUMBER_REGEX.source+')')+('('+STANDARD_UNIT_REGEX.source+')?'),"g");function adjustStrings(value,options){return value.replace(STRING_REGEX,function(match){return util$9.printString(match,options);});}function quoteAttributeValue(value,options){var quote=options.singleQuote?"'":'"';return value.includes('"')||value.includes("'")?value:quote+value+quote;}function adjustNumbers(value){return value.replace(ADJUST_NUMBERS_REGEX,function(match,quote,wordPart,number,unit){return!wordPart&&number?(wordPart||"")+printNumber$1(number)+maybeToLowerCase(unit||""):match;});}function printNumber$1(rawNumber){return util$9.printNumber(rawNumber// Remove trailing `.0`. -).replace(/\.0(?=$|e)/,"");}function maybeToLowerCase(value){return value.includes("$")||value.includes("@")||value.includes("#")?value:value.toLowerCase();}var printerPostcss=genericPrint$3;var assert$1=require$$0;var comments$3=comments$1;var FastPath=fastPath;var multiparser=multiparser$1;var util$5=util$3;var isIdentifierName=utils.keyword.isIdentifierNameES6;var docBuilders$3=docBuilders$1;var concat$2=docBuilders$3.concat;var join$2=docBuilders$3.join;var line$1=docBuilders$3.line;var hardline$2=docBuilders$3.hardline;var softline$1=docBuilders$3.softline;var literalline$1=docBuilders$3.literalline;var group$1=docBuilders$3.group;var indent$2=docBuilders$3.indent;var align$1=docBuilders$3.align;var conditionalGroup$1=docBuilders$3.conditionalGroup;var fill$1=docBuilders$3.fill;var ifBreak$1=docBuilders$3.ifBreak;var breakParent$2=docBuilders$3.breakParent;var lineSuffixBoundary$1=docBuilders$3.lineSuffixBoundary;var addAlignmentToDoc$1=docBuilders$3.addAlignmentToDoc;var docUtils=docUtils$2;var willBreak=docUtils.willBreak;var isLineNext=docUtils.isLineNext;var isEmpty=docUtils.isEmpty;var rawText=docUtils.rawText;function shouldPrintComma(options,level){level=level||"es5";switch(options.trailingComma){case"all":if(level==="all"){return true;}// fallthrough +return adjustNumbers(adjustStrings(maybeToLowerCase(n.value),options));}case"selector-root":{return group$4(join$5(concat$6([",",hardline$6]),path.map(print,"nodes")));}case"selector-comment":{return n.value;}case"selector-string":{return adjustStrings(n.value,options);}case"selector-tag":{var _parent2=path.getParentNode();var _index=_parent2.nodes.indexOf(n);var previous=_index>0?_parent2.nodes[_index-1]:null;return previous&&previous.type==="selector-nesting"?n.value:maybeToLowerCase(n.value);}case"selector-id":{return concat$6(["#",n.value]);}case"selector-class":{return concat$6([".",adjustNumbers(adjustStrings(n.value,options))]);}case"selector-attribute":{return concat$6(["[",maybeToLowerCase(n.attribute),n.operator?n.operator:"",n.value?quoteAttributeValue(adjustStrings(n.value,options),options):"",n.insensitive?" i":"","]"]);}case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"){var _parent3=path.getParentNode();var _leading=_parent3.type==="selector-selector"&&_parent3.nodes[0]===n?"":line$4;return concat$6([_leading,n.value," "]);}var leading=n.value.trim().startsWith("(")?line$4:"";var value=adjustNumbers(adjustStrings(n.value.trim(),options))||line$4;return concat$6([leading,value]);}case"selector-universal":{return n.value;}case"selector-selector":{return group$4(indent$6(concat$6(path.map(print,"nodes"))));}case"selector-pseudo":{return concat$6([maybeToLowerCase(n.value),n.nodes&&n.nodes.length>0?concat$6(["(",join$5(", ",path.map(print,"nodes")),")"]):""]);}case"selector-nesting":{return printValue(n.value);}// postcss-values-parser +case"value-root":{return path.call(print,"group");}case"value-comma_group":{var printed=path.map(print,"groups");var _parts=[];for(var _i18=0;_i180&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value==="data")){return concat$6([n.open?path.call(print,"open"):"",join$5(",",path.map(print,"groups")),n.close?path.call(print,"close"):""]);}if(!n.open){var _printed=path.map(print,"groups");var res=[];for(var _i19=0;_i19<_printed.length;_i19++){if(_i19!==0){res.push(concat$6([",",line$4]));}res.push(_printed[_i19]);}return group$4(indent$6(fill$2(res)));}return group$4(concat$6([n.open?path.call(print,"open"):"",indent$6(concat$6([softline$5,join$5(concat$6([",",line$4]),path.map(print,"groups"))])),softline$5,n.close?path.call(print,"close"):""]));}case"value-value":{return path.call(print,"group");}case"value-func":{return concat$6([n.value,path.call(print,"group")]);}case"value-paren":{if(n.raws.before!==""){return concat$6([line$4,n.value]);}return n.value;}case"value-number":{return concat$6([printNumber$1(n.value),maybeToLowerCase(n.unit)]);}case"value-operator":{return n.value;}case"value-word":{if(n.isColor&&n.isHex){return n.value.toLowerCase();}return n.value;}case"value-colon":{return n.value;}case"value-comma":{return concat$6([n.value," "]);}case"value-string":{return util$9.printString(n.raws.quote+n.value+n.raws.quote,options);}case"value-atword":{return concat$6(["@",n.value]);}default:/* istanbul ignore next */throw new Error("unknown postcss type: "+JSON.stringify(n.type));}}function printNodeSequence(path,options,print){var node=path.getValue();var parts=[];var i=0;path.map(function(pathChild){var prevNode=node.nodes[i-1];if(prevNode&&prevNode.type==="css-comment"&&prevNode.text.trim()==="prettier-ignore"){var childNode=pathChild.getValue();parts.push(options.originalText.slice(util$9.locStart(childNode),util$9.locEnd(childNode)));}else{parts.push(pathChild.call(print));}if(i!==node.nodes.length-1){if(node.nodes[i+1].type==="css-comment"&&!util$9.hasNewline(options.originalText,util$9.locStart(node.nodes[i+1]),{backwards:true})||node.nodes[i+1].type==="css-atrule"&&node.nodes[i+1].name==="else"&&node.nodes[i].type!=="css-comment"){parts.push(" ");}else{parts.push(hardline$6);if(util$9.isNextLineEmpty(options.originalText,pathChild.getValue())){parts.push(hardline$6);}}}i++;},"nodes");return concat$6(parts);}function printValue(value){return value;}var STRING_REGEX=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g;var NUMBER_REGEX=/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g;var STANDARD_UNIT_REGEX=/[a-zA-Z]+/g;var WORD_PART_REGEX=/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g;var ADJUST_NUMBERS_REGEX=RegExp(STRING_REGEX.source+'|'+('('+WORD_PART_REGEX.source+')?')+('('+NUMBER_REGEX.source+')')+('('+STANDARD_UNIT_REGEX.source+')?'),"g");function adjustStrings(value,options){return value.replace(STRING_REGEX,function(match){return util$9.printString(match,options);});}function quoteAttributeValue(value,options){var quote=options.singleQuote?"'":'"';return value.includes('"')||value.includes("'")?value:quote+value+quote;}function adjustNumbers(value){return value.replace(ADJUST_NUMBERS_REGEX,function(match,quote,wordPart,number,unit){return!wordPart&&number?(wordPart||"")+printNumber$1(number)+maybeToLowerCase(unit||""):match;});}function printNumber$1(rawNumber){return util$9.printNumber(rawNumber// Remove trailing `.0`. +).replace(/\.0(?=$|e)/,"");}function maybeToLowerCase(value){return value.includes("$")||value.includes("@")||value.includes("#")||value.startsWith("%")||value.startsWith("--")?value:value.toLowerCase();}var printerPostcss=genericPrint$3;var assert$1=require$$0;var comments$3=comments$1;var FastPath=fastPath;var multiparser=multiparser$1;var util$5=util$3;var isIdentifierName=utils.keyword.isIdentifierNameES6;var docBuilders$3=docBuilders$1;var concat$2=docBuilders$3.concat;var join$2=docBuilders$3.join;var line$1=docBuilders$3.line;var hardline$2=docBuilders$3.hardline;var softline$1=docBuilders$3.softline;var literalline$1=docBuilders$3.literalline;var group$1=docBuilders$3.group;var indent$2=docBuilders$3.indent;var align$1=docBuilders$3.align;var conditionalGroup$1=docBuilders$3.conditionalGroup;var fill$1=docBuilders$3.fill;var ifBreak$1=docBuilders$3.ifBreak;var breakParent$2=docBuilders$3.breakParent;var lineSuffixBoundary$1=docBuilders$3.lineSuffixBoundary;var addAlignmentToDoc$1=docBuilders$3.addAlignmentToDoc;var docUtils=docUtils$2;var willBreak=docUtils.willBreak;var isLineNext=docUtils.isLineNext;var isEmpty=docUtils.isEmpty;var rawText=docUtils.rawText;function shouldPrintComma(options,level){level=level||"es5";switch(options.trailingComma){case"all":if(level==="all"){return true;}// fallthrough case"es5":if(level==="es5"){return true;}// fallthrough -case"none":default:return false;}}function getPrintFunction(options){switch(options.parser){case"graphql":return printerGraphql;case"parse5":return printerHtmlparser2;case"postcss":return printerPostcss;default:return genericPrintNoParens;}}function hasIgnoreComment(path){var node=path.getValue();return hasNodeIgnoreComment(node)||hasJsxIgnoreComment(path);}function hasNodeIgnoreComment(node){return node&&node.comments&&node.comments.length>0&&node.comments.some(function(comment){return comment.value.trim()==="prettier-ignore";});}function hasJsxIgnoreComment(path){var node=path.getValue();var parent=path.getParentNode();if(!parent||!node||node.type!=="JSXElement"||parent.type!=="JSXElement"){return false;}// Lookup the previous sibling, ignoring any empty JSXText elements +case"none":default:return false;}}function getPrintFunction(options){switch(options.parser){case"graphql":return printerGraphql;case"parse5":return printerHtmlparser2;case"css":case"less":case"scss":return printerPostcss;default:return genericPrintNoParens;}}function hasIgnoreComment(path){var node=path.getValue();return hasNodeIgnoreComment(node)||hasJsxIgnoreComment(path);}function hasNodeIgnoreComment(node){return node&&node.comments&&node.comments.length>0&&node.comments.some(function(comment){return comment.value.trim()==="prettier-ignore";});}function hasJsxIgnoreComment(path){var node=path.getValue();var parent=path.getParentNode();if(!parent||!node||node.type!=="JSXElement"||parent.type!=="JSXElement"){return false;}// Lookup the previous sibling, ignoring any empty JSXText elements var index=parent.children.indexOf(node);var prevSibling=null;for(var _i20=index;_i20>0;_i20--){var candidate=parent.children[_i20-1];if(candidate.type==="JSXText"&&!isMeaningfulJSXText(candidate)){continue;}prevSibling=candidate;break;}return prevSibling&&prevSibling.type==="JSXExpressionContainer"&&prevSibling.expression.type==="JSXEmptyExpression"&&prevSibling.expression.comments&&prevSibling.expression.comments.find(function(comment){return comment.value.trim()==="prettier-ignore";});}function genericPrint(path,options,printPath,args){assert$1.ok(path instanceof FastPath);var node=path.getValue();// Escape hatch if(hasIgnoreComment(path)){return options.originalText.slice(util$5.locStart(node),util$5.locEnd(node));}if(node){// Potentially switch to a different parser var next=multiparser.getSubtreeParser(path,options);if(next){try{return multiparser.printSubtree(next,path,printPath,options);}catch(error){/* istanbul ignore if */if(process.env.PRETTIER_DEBUG){var e=new Error(error);e.parser=next.options.parser;throw e;}// Continue with current parser @@ -445,7 +450,7 @@ case"ParenthesizedExpression":return concat$2(["(",path.call(print,"expression") // ) { if(isInsideParenthesis){return concat$2(_parts2);}if(parent.type==="UnaryExpression"){return group$1(concat$2([indent$2(concat$2([softline$1,concat$2(_parts2)])),softline$1]));}// Avoid indenting sub-expressions in some cases where the first sub-expression is already // idented accordingly. We should ident sub-expressions where the first case isn't idented. -var shouldNotIdent=parent.type==="ReturnStatement"||parent.type==="JSXExpressionContainer"&&parentParent.type==="JSXAttribute"||n===parent.body&&parent.type==="ArrowFunctionExpression"||n!==parent.body&&parent.type==="ForStatement"||parent.type==="ConditionalExpression"&&parentParent.type!=="ReturnStatement";var shouldIdentIfInlining=parent.type==="AssignmentExpression"||parent.type==="VariableDeclarator"||parent.type==="ObjectProperty"||parent.type==="Property";var logicalSubExpression=n.left.type==="LogicalExpression";if(shouldNotIdent||shouldInlineLogicalExpression(n)&&!logicalSubExpression||!shouldInlineLogicalExpression(n)&&shouldIdentIfInlining){return group$1(concat$2(_parts2));}var rest=concat$2(_parts2.slice(1));// Break the closing paren to keep the chain right after it: +var shouldNotIdent=parent.type==="ReturnStatement"||parent.type==="JSXExpressionContainer"&&parentParent.type==="JSXAttribute"||n===parent.body&&parent.type==="ArrowFunctionExpression"||n!==parent.body&&parent.type==="ForStatement"||parent.type==="ConditionalExpression"&&parentParent.type!=="ReturnStatement";var shouldIdentIfInlining=parent.type==="AssignmentExpression"||parent.type==="VariableDeclarator"||parent.type==="ObjectProperty"||parent.type==="Property";var samePrecedenceSubExpression=isBinaryish(n.left)&&util$5.shouldFlatten(n.operator,n.left.operator);if(shouldNotIdent||shouldInlineLogicalExpression(n)&&!samePrecedenceSubExpression||!shouldInlineLogicalExpression(n)&&shouldIdentIfInlining){return group$1(concat$2(_parts2));}var rest=concat$2(_parts2.slice(1));// Break the closing paren to keep the chain right after it: // (a && // b && // c @@ -453,7 +458,7 @@ var shouldNotIdent=parent.type==="ReturnStatement"||parent.type==="JSXExpression var breakClosingParen=parent.type==="MemberExpression"&&!parent.computed;return group$1(concat$2([// Don't include the initial expression in the indentation // level. The first item is guaranteed to be the first // left-most expression. -_parts2.length>0?_parts2[0]:"",indent$2(rest),breakClosingParen?softline$1:""]));}case"AssignmentPattern":return concat$2([path.call(print,"left")," = ",path.call(print,"right")]);case"TSTypeAssertionExpression":return concat$2(["<",path.call(print,"typeAnnotation"),">",path.call(print,"expression")]);case"MemberExpression":{var _parent4=path.getParentNode();var firstNonMemberParent=void 0;var _i21=0;do{firstNonMemberParent=path.getParentNode(_i21);_i21++;}while(firstNonMemberParent&&firstNonMemberParent.type==="MemberExpression");var shouldInline=firstNonMemberParent&&(firstNonMemberParent.type==="VariableDeclarator"&&firstNonMemberParent.id.type!=="Identifier"||firstNonMemberParent.type==="AssignmentExpression"&&firstNonMemberParent.left.type!=="Identifier")||n.computed||n.object.type==="Identifier"&&n.property.type==="Identifier"&&_parent4.type!=="MemberExpression";return concat$2([path.call(print,"object"),shouldInline?printMemberLookup(path,options,print):group$1(indent$2(concat$2([softline$1,printMemberLookup(path,options,print)])))]);}case"MetaProperty":return concat$2([path.call(print,"meta"),".",path.call(print,"property")]);case"BindExpression":if(n.object){parts.push(path.call(print,"object"));}parts.push(printBindExpressionCallee(path,options,print));return concat$2(parts);case"Identifier":{var parentNode=path.getParentNode();var isFunctionDeclarationIdentifier=parentNode.type==="DeclareFunction"&&parentNode.id===n;return concat$2([n.name,printOptionalToken(path),n.typeAnnotation&&!isFunctionDeclarationIdentifier?": ":"",path.call(print,"typeAnnotation")]);}case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"ExperimentalRestProperty":case"ExperimentalSpreadProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return concat$2(["...",path.call(print,"argument"),n.typeAnnotation?": ":"",path.call(print,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSNamespaceFunctionDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push(printFunctionDeclaration(path,print,options));if(!n.body){parts.push(semi);}return concat$2(parts);case"ArrowFunctionExpression":{if(n.async){parts.push("async ");}if(canPrintParamsWithoutParens(n)){parts.push(path.call(print,"params",0));}else{parts.push(group$1(concat$2([printFunctionParams(path,print,options,/* expandLast */args&&(args.expandLastArg||args.expandFirstArg),/* printTypeParams */true),printReturnType(path,print)])));}parts.push(" =>");var body=path.call(function(bodyPath){return print(bodyPath,args);},"body");// We want to always keep these types of nodes on the same line +_parts2.length>0?_parts2[0]:"",indent$2(rest),breakClosingParen?softline$1:""]));}case"AssignmentPattern":return concat$2([path.call(print,"left")," = ",path.call(print,"right")]);case"TSTypeAssertionExpression":return concat$2(["<",path.call(print,"typeAnnotation"),">",path.call(print,"expression")]);case"MemberExpression":{var _parent5=path.getParentNode();var firstNonMemberParent=void 0;var _i21=0;do{firstNonMemberParent=path.getParentNode(_i21);_i21++;}while(firstNonMemberParent&&firstNonMemberParent.type==="MemberExpression");var shouldInline=firstNonMemberParent&&(firstNonMemberParent.type==="VariableDeclarator"&&firstNonMemberParent.id.type!=="Identifier"||firstNonMemberParent.type==="AssignmentExpression"&&firstNonMemberParent.left.type!=="Identifier")||n.computed||n.object.type==="Identifier"&&n.property.type==="Identifier"&&_parent5.type!=="MemberExpression";return concat$2([path.call(print,"object"),shouldInline?printMemberLookup(path,options,print):group$1(indent$2(concat$2([softline$1,printMemberLookup(path,options,print)])))]);}case"MetaProperty":return concat$2([path.call(print,"meta"),".",path.call(print,"property")]);case"BindExpression":if(n.object){parts.push(path.call(print,"object"));}parts.push(printBindExpressionCallee(path,options,print));return concat$2(parts);case"Identifier":{var parentNode=path.getParentNode();var isFunctionDeclarationIdentifier=parentNode.type==="DeclareFunction"&&parentNode.id===n;return concat$2([n.name,printOptionalToken(path),n.typeAnnotation&&!isFunctionDeclarationIdentifier?": ":"",path.call(print,"typeAnnotation")]);}case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"ExperimentalRestProperty":case"ExperimentalSpreadProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return concat$2(["...",path.call(print,"argument"),n.typeAnnotation?": ":"",path.call(print,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSNamespaceFunctionDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push(printFunctionDeclaration(path,print,options));if(!n.body){parts.push(semi);}return concat$2(parts);case"ArrowFunctionExpression":{if(n.async){parts.push("async ");}if(canPrintParamsWithoutParens(n)){parts.push(path.call(print,"params",0));}else{parts.push(group$1(concat$2([printFunctionParams(path,print,options,/* expandLast */args&&(args.expandLastArg||args.expandFirstArg),/* printTypeParams */true),printReturnType(path,print)])));}parts.push(" =>");var body=path.call(function(bodyPath){return print(bodyPath,args);},"body");// We want to always keep these types of nodes on the same line // as the arrow. if(!hasLeadingOwnLineComment(options.originalText,n.body)&&(n.body.type==="ArrayExpression"||n.body.type==="ObjectExpression"||n.body.type==="BlockStatement"||n.body.type==="JSXElement"||isTemplateOnItsOwnLine(n.body,options.originalText)||n.body.type==="ArrowFunctionExpression")){return group$1(concat$2([concat$2(parts)," ",body]));}// We handle sequence expressions as the body of arrows specially, // so that the required parentheses end up on their own lines. @@ -464,20 +469,20 @@ var shouldAddSoftLine=args&&args.expandLastArg;// In order to avoid confusion be // a => a ? a : a // a <= a ? a : a var shouldAddParens=n.body.type==="ConditionalExpression"&&!util$5.startsWithNoLookaheadToken(n.body,/* forbidFunctionAndClass */false);return group$1(concat$2([concat$2(parts),group$1(concat$2([indent$2(concat$2([line$1,shouldAddParens?ifBreak$1("","("):"",body,shouldAddParens?ifBreak$1("",")"):""])),shouldAddSoftLine?concat$2([ifBreak$1(shouldPrintComma(options,"all")?",":""),softline$1]):""]))]));}case"MethodDefinition":case"TSAbstractMethodDefinition":if(n.accessibility){parts.push(n.accessibility+" ");}if(n.static){parts.push("static ");}if(n.type==="TSAbstractMethodDefinition"){parts.push("abstract ");}parts.push(printMethod(path,options,print));return concat$2(parts);case"YieldExpression":parts.push("yield");if(n.delegate){parts.push("*");}if(n.argument){parts.push(" ",path.call(print,"argument"));}return concat$2(parts);case"AwaitExpression":return concat$2(["await ",path.call(print,"argument")]);case"ImportSpecifier":if(n.importKind){parts.push(path.call(print,"importKind")," ");}parts.push(path.call(print,"imported"));if(n.local&&n.local.name!==n.imported.name){parts.push(" as ",path.call(print,"local"));}return concat$2(parts);case"ExportSpecifier":parts.push(path.call(print,"local"));if(n.exported&&n.exported.name!==n.local.name){parts.push(" as ",path.call(print,"exported"));}return concat$2(parts);case"ImportNamespaceSpecifier":parts.push("* as ");if(n.local){parts.push(path.call(print,"local"));}else if(n.id){parts.push(path.call(print,"id"));}return concat$2(parts);case"ImportDefaultSpecifier":if(n.local){return path.call(print,"local");}return path.call(print,"id");case"TSExportAssignment":return concat$2(["export = ",path.call(print,"expression"),semi]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return printExportDeclaration(path,options,print);case"ExportAllDeclaration":parts.push("export ");if(n.exportKind==="type"){parts.push("type ");}parts.push("* from ",path.call(print,"source"),semi);return concat$2(parts);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return path.call(print,"exported");case"ImportDeclaration":{parts.push("import ");if(n.importKind&&n.importKind!=="value"){parts.push(n.importKind+" ");}var standalones=[];var grouped=[];if(n.specifiers&&n.specifiers.length>0){path.each(function(specifierPath){var value=specifierPath.getValue();if(value.type==="ImportDefaultSpecifier"||value.type==="ImportNamespaceSpecifier"){standalones.push(print(specifierPath));}else{grouped.push(print(specifierPath));}},"specifiers");if(standalones.length>0){parts.push(join$2(", ",standalones));}if(standalones.length>0&&grouped.length>0){parts.push(", ");}if(grouped.length===1&&standalones.length===0&&n.specifiers&&!n.specifiers.some(function(node){return node.comments;})){parts.push(concat$2(["{",options.bracketSpacing?" ":"",concat$2(grouped),options.bracketSpacing?" ":"","}"]));}else if(grouped.length>=1){parts.push(group$1(concat$2(["{",indent$2(concat$2([options.bracketSpacing?line$1:softline$1,join$2(concat$2([",",line$1]),grouped)])),ifBreak$1(shouldPrintComma(options)?",":""),options.bracketSpacing?line$1:softline$1,"}"])));}parts.push(" from ");}else if(n.importKind&&n.importKind==="type"||// import {} from 'x' -/{\s*}/.test(options.originalText.slice(util$5.locStart(n),util$5.locStart(n.source)))){parts.push("{} from ");}parts.push(path.call(print,"source"),semi);return concat$2(parts);}case"Import":return"import";case"BlockStatement":{var naked=path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body");var hasContent=n.body.find(function(node){return node.type!=="EmptyStatement";});var hasDirectives=n.directives&&n.directives.length>0;var _parent5=path.getParentNode();var _parentParent=path.getParentNode(1);if(!hasContent&&!hasDirectives&&!n.comments&&(_parent5.type==="ArrowFunctionExpression"||_parent5.type==="FunctionExpression"||_parent5.type==="FunctionDeclaration"||_parent5.type==="ObjectMethod"||_parent5.type==="ClassMethod"||_parent5.type==="ForStatement"||_parent5.type==="WhileStatement"||_parent5.type==="DoWhileStatement"||_parent5.type==="CatchClause"&&!_parentParent.finalizer)){return"{}";}parts.push("{");// Babel 6 -if(hasDirectives){path.each(function(childPath){parts.push(indent$2(concat$2([hardline$2,print(childPath),semi])));if(util$5.isNextLineEmpty(options.originalText,childPath.getValue())){parts.push(hardline$2);}},"directives");}if(hasContent){parts.push(indent$2(concat$2([hardline$2,naked])));}parts.push(comments$3.printDanglingComments(path,options));parts.push(hardline$2,"}");return concat$2(parts);}case"ReturnStatement":parts.push("return");if(n.argument){if(returnArgumentHasLeadingComment(options,n.argument)){parts.push(concat$2([" (",indent$2(concat$2([softline$1,path.call(print,"argument")])),line$1,")"]));}else if(n.argument.type==="LogicalExpression"||n.argument.type==="BinaryExpression"||n.argument.type==="SequenceExpression"){parts.push(group$1(concat$2([ifBreak$1(" ("," "),indent$2(concat$2([softline$1,path.call(print,"argument")])),softline$1,ifBreak$1(")")])));}else{parts.push(" ",path.call(print,"argument"));}}if(hasDanglingComments(n)){parts.push(" ",comments$3.printDanglingComments(path,options,/* sameIndent */true));}parts.push(semi);return concat$2(parts);case"NewExpression":case"CallExpression":{var isNew=n.type==="NewExpression";var optional=printOptionalToken(path);if(// We want to keep require calls as a unit +/{\s*}/.test(options.originalText.slice(util$5.locStart(n),util$5.locStart(n.source)))){parts.push("{} from ");}parts.push(path.call(print,"source"),semi);return concat$2(parts);}case"Import":return"import";case"BlockStatement":{var naked=path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body");var hasContent=n.body.find(function(node){return node.type!=="EmptyStatement";});var hasDirectives=n.directives&&n.directives.length>0;var _parent6=path.getParentNode();var _parentParent=path.getParentNode(1);if(!hasContent&&!hasDirectives&&!n.comments&&(_parent6.type==="ArrowFunctionExpression"||_parent6.type==="FunctionExpression"||_parent6.type==="FunctionDeclaration"||_parent6.type==="ObjectMethod"||_parent6.type==="ClassMethod"||_parent6.type==="ForStatement"||_parent6.type==="WhileStatement"||_parent6.type==="DoWhileStatement"||_parent6.type==="CatchClause"&&!_parentParent.finalizer)){return"{}";}parts.push("{");// Babel 6 +if(hasDirectives){path.each(function(childPath){parts.push(indent$2(concat$2([hardline$2,print(childPath),semi])));if(util$5.isNextLineEmpty(options.originalText,childPath.getValue())){parts.push(hardline$2);}},"directives");}if(hasContent){parts.push(indent$2(concat$2([hardline$2,naked])));}parts.push(comments$3.printDanglingComments(path,options));parts.push(hardline$2,"}");return concat$2(parts);}case"ReturnStatement":parts.push("return");if(n.argument){if(returnArgumentHasLeadingComment(options,n.argument)){parts.push(concat$2([" (",indent$2(concat$2([softline$1,path.call(print,"argument")])),line$1,")"]));}else if(n.argument.type==="LogicalExpression"||n.argument.type==="BinaryExpression"||n.argument.type==="SequenceExpression"){parts.push(group$1(concat$2([ifBreak$1(" ("," "),indent$2(concat$2([softline$1,path.call(print,"argument")])),softline$1,ifBreak$1(")")])));}else{parts.push(" ",path.call(print,"argument"));}}if(hasDanglingComments(n)){parts.push(" ",comments$3.printDanglingComments(path,options,/* sameIndent */true));}parts.push(semi);return concat$2(parts);case"NewExpression":case"CallExpression":{var isNew=n.type==="NewExpression";var unitTestRe=/^(f|x)?(it|describe|test)$/;var isTestDeclaration=!isNew&&(n.callee.type==="Identifier"&&unitTestRe.test(n.callee.name)||n.callee.type==="MemberExpression"&&n.callee.object.type==="Identifier"&&n.callee.property.type==="Identifier"&&unitTestRe.test(n.callee.object.name)&&(n.callee.property.name==="only"||n.callee.property.name==="skip"))&&n.arguments.length===2&&(n.arguments[0].type==="StringLiteral"||n.arguments[0].type==="TemplateLiteral"||n.arguments[0].type==="Literal"&&typeof n.arguments[0].value==="string")&&(n.arguments[1].type==="FunctionExpression"||n.arguments[1].type==="ArrowFunctionExpression")&&n.arguments[1].params.length<=1;var optional=printOptionalToken(path);if(// We want to keep require calls as a unit !isNew&&n.callee.type==="Identifier"&&n.callee.name==="require"||n.callee.type==="Import"||// Template literals as single arguments n.arguments.length===1&&isTemplateOnItsOwnLine(n.arguments[0],options.originalText)||// Keep test declarations on a single line // e.g. `it('long name', () => {` -!isNew&&n.callee.type==="Identifier"&&(n.callee.name==="it"||n.callee.name==="test"||n.callee.name==="describe")&&n.arguments.length===2&&(n.arguments[0].type==="StringLiteral"||n.arguments[0].type==="TemplateLiteral"||n.arguments[0].type==="Literal"&&typeof n.arguments[0].value==="string")&&(n.arguments[1].type==="FunctionExpression"||n.arguments[1].type==="ArrowFunctionExpression")&&n.arguments[1].params.length<=1){return concat$2([isNew?"new ":"",path.call(print,"callee"),optional,path.call(print,"typeParameters"),concat$2(["(",join$2(", ",path.map(print,"arguments")),")"])]);}// We detect calls on member lookups and possibly print them in a +isTestDeclaration){var printedArgs=path.map(print,"arguments");if(isTestDeclaration){printedArgs=printedArgs.map(docUtils.removeLines);}return concat$2([isNew?"new ":"",path.call(print,"callee"),optional,path.call(print,"typeParameters"),concat$2(["(",join$2(", ",printedArgs),")"])]);}// We detect calls on member lookups and possibly print them in a // special chain format. See `printMemberChain` for more info. -if(!isNew&&isMemberish(n.callee)){return printMemberChain(path,options,print);}return concat$2([isNew?"new ":"",path.call(print,"callee"),optional,printFunctionTypeParameters(path,options,print),printArgumentsList(path,options,print)]);}case"TSInterfaceDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push(n.abstract?"abstract ":"",printTypeScriptModifiers(path,options,print),"interface ",path.call(print,"id"),n.typeParameters?path.call(print,"typeParameters"):""," ");if(n.heritage.length){parts.push(group$1(indent$2(concat$2([softline$1,"extends ",indent$2(join$2(concat$2([",",line$1]),path.map(print,"heritage")))," "]))));}parts.push(path.call(print,"body"));return concat$2(parts);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":{var isTypeAnnotation=n.type==="ObjectTypeAnnotation";var shouldBreak=n.type==="TSInterfaceBody"||n.type!=="ObjectPattern"&&util$5.hasNewlineInRange(options.originalText,util$5.locStart(n),util$5.locEnd(n));var separator=n.type==="TSInterfaceBody"||n.type==="TSTypeLiteral"?ifBreak$1(semi,";"):",";var fields=[];var leftBrace=n.exact?"{|":"{";var rightBrace=n.exact?"|}":"}";var _parent6=path.getParentNode(0);var propertiesField=void 0;if(n.type==="TSTypeLiteral"){propertiesField="members";}else if(n.type==="TSInterfaceBody"){propertiesField="body";}else{propertiesField="properties";}if(isTypeAnnotation){fields.push("indexers","callProperties");}fields.push(propertiesField);// Unfortunately, things are grouped together in the ast can be +if(!isNew&&isMemberish(n.callee)){return printMemberChain(path,options,print);}return concat$2([isNew?"new ":"",path.call(print,"callee"),optional,printFunctionTypeParameters(path,options,print),printArgumentsList(path,options,print)]);}case"TSInterfaceDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push(n.abstract?"abstract ":"",printTypeScriptModifiers(path,options,print),"interface ",path.call(print,"id"),n.typeParameters?path.call(print,"typeParameters"):""," ");if(n.heritage.length){parts.push(group$1(indent$2(concat$2([softline$1,"extends ",indent$2(join$2(concat$2([",",line$1]),path.map(print,"heritage")))," "]))));}parts.push(path.call(print,"body"));return concat$2(parts);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":{var isTypeAnnotation=n.type==="ObjectTypeAnnotation";var shouldBreak=n.type==="TSInterfaceBody"||n.type!=="ObjectPattern"&&util$5.hasNewlineInRange(options.originalText,util$5.locStart(n),util$5.locEnd(n));var _parent7=path.getParentNode(0);var isFlowInterfaceLikeBody=isTypeAnnotation&&_parent7&&(_parent7.type==="InterfaceDeclaration"||_parent7.type==="DeclareInterface"||_parent7.type==="DeclareClass")&&path.getName()==="body";var separator=isFlowInterfaceLikeBody?";":n.type==="TSInterfaceBody"||n.type==="TSTypeLiteral"?ifBreak$1(semi,";"):",";var fields=[];var leftBrace=n.exact?"{|":"{";var rightBrace=n.exact?"|}":"}";var propertiesField=void 0;if(n.type==="TSTypeLiteral"){propertiesField="members";}else if(n.type==="TSInterfaceBody"){propertiesField="body";}else{propertiesField="properties";}if(isTypeAnnotation){fields.push("indexers","callProperties");}fields.push(propertiesField);// Unfortunately, things are grouped together in the ast can be // interleaved in the source code. So we need to reorder them before // printing them. var propsAndLoc=[];fields.forEach(function(field){path.each(function(childPath){var node=childPath.getValue();propsAndLoc.push({node:node,printed:print(childPath),loc:util$5.locStart(node)});},field);});var separatorParts=[];var props=propsAndLoc.sort(function(a,b){return a.loc-b.loc;}).map(function(prop){var result=concat$2(separatorParts.concat(group$1(prop.printed)));separatorParts=[separator,line$1];if(util$5.isNextLineEmpty(options.originalText,prop.node)){separatorParts.push(hardline$2);}return result;});var lastElem=util$5.getLast(n[propertiesField]);var canHaveTrailingSeparator=!(lastElem&&(lastElem.type==="RestProperty"||lastElem.type==="RestElement"));var content=void 0;if(props.length===0&&!n.typeAnnotation){if(!hasDanglingComments(n)){return concat$2([leftBrace,rightBrace]);}content=group$1(concat$2([leftBrace,comments$3.printDanglingComments(path,options),softline$1,rightBrace,printOptionalToken(path)]));}else{content=concat$2([leftBrace,indent$2(concat$2([options.bracketSpacing?line$1:softline$1,concat$2(props)])),ifBreak$1(canHaveTrailingSeparator&&(separator!==","||shouldPrintComma(options))?separator:""),concat$2([options.bracketSpacing?line$1:softline$1,rightBrace]),printOptionalToken(path),n.typeAnnotation?": ":"",path.call(print,"typeAnnotation")]);}// If we inline the object as first argument of the parent, we don't want // to create another group so that the object breaks before the return // type -var parentParentParent=path.getParentNode(2);if(n.type==="ObjectPattern"&&_parent6&&shouldHugArguments(_parent6)&&_parent6.params[0]===n||shouldHugType(n)&&parentParentParent&&shouldHugArguments(parentParentParent)&&parentParentParent.params[0].typeAnnotation.typeAnnotation===n){return content;}return group$1(content,{shouldBreak:shouldBreak});}// Babel 6 +var parentParentParent=path.getParentNode(2);if(n.type==="ObjectPattern"&&_parent7&&shouldHugArguments(_parent7)&&_parent7.params[0]===n||shouldHugType(n)&&parentParentParent&&shouldHugArguments(parentParentParent)&&parentParentParent.params[0].typeAnnotation.typeAnnotation===n){return content;}return group$1(content,{shouldBreak:shouldBreak});}// Babel 6 case"ObjectProperty":// Non-standard AST node type. case"Property":if(n.method||n.kind==="get"||n.kind==="set"){return printMethod(path,options,print);}if(n.shorthand){parts.push(path.call(print,"value"));}else{var printedLeft=void 0;if(n.computed){printedLeft=concat$2(["[",path.call(print,"key"),"]"]);}else{printedLeft=printPropertyKey(path,options,print);}parts.push(printAssignment(n.key,printedLeft,":",n.value,path.call(print,"value"),options));}return concat$2(parts);// Babel 6 case"ClassMethod":if(n.static){parts.push("static ");}parts=parts.concat(printObjectMethod(path,options,print));return concat$2(parts);// Babel 6 @@ -491,7 +496,7 @@ case"ObjectMethod":return printObjectMethod(path,options,print);case"Decorator": // // Note that util.getLast returns null if the array is empty, but // we already check for an empty array just above so we are safe -var needsForcedTrailingComma=canHaveTrailingComma&&_lastElem===null;parts.push(group$1(concat$2(["[",indent$2(concat$2([softline$1,printArrayItems(path,options,"elements",print)])),needsForcedTrailingComma?",":"",ifBreak$1(canHaveTrailingComma&&!needsForcedTrailingComma&&shouldPrintComma(options)?",":""),comments$3.printDanglingComments(path,options,/* sameIndent */true),softline$1,"]"])));}parts.push(printOptionalToken(path));if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}return concat$2(parts);case"SequenceExpression":{var _parent7=path.getParentNode(0);if(_parent7.type==="ExpressionStatement"||_parent7.type==="ForStatement"){// For ExpressionStatements and for-loop heads, which are among +var needsForcedTrailingComma=canHaveTrailingComma&&_lastElem===null;parts.push(group$1(concat$2(["[",indent$2(concat$2([softline$1,printArrayItems(path,options,"elements",print)])),needsForcedTrailingComma?",":"",ifBreak$1(canHaveTrailingComma&&!needsForcedTrailingComma&&shouldPrintComma(options)?",":""),comments$3.printDanglingComments(path,options,/* sameIndent */true),softline$1,"]"])));}parts.push(printOptionalToken(path));if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}return concat$2(parts);case"SequenceExpression":{var _parent8=path.getParentNode(0);if(_parent8.type==="ExpressionStatement"||_parent8.type==="ForStatement"){// For ExpressionStatements and for-loop heads, which are among // the few places a SequenceExpression appears unparenthesized, we want // to indent expressions after the first. var _parts3=[];path.each(function(p){if(p.getName()===0){_parts3.push(print(p));}else{_parts3.push(",",indent$2(concat$2([line$1,print(p)])));}},"expressions");return group$1(concat$2(_parts3));}return group$1(concat$2([join$2(concat$2([",",line$1]),path.map(print,"expressions"))]));}case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":// Babel 6 Literal split @@ -504,10 +509,10 @@ case"Literal":{if(n.regex){return printRegex(n.regex);}if(typeof n.value==="numb var grandParent=path.getParentNode(1);var isTypeScriptDirective=options.parser==="typescript"&&typeof n.value==="string"&&grandParent&&(grandParent.type==="Program"||grandParent.type==="BlockStatement");return nodeStr(n,options,isTypeScriptDirective);}case"Directive":return path.call(print,"value");// Babel 6 case"DirectiveLiteral":return nodeStr(n,options);case"UnaryExpression":parts.push(n.operator);if(/[a-z]$/.test(n.operator)){parts.push(" ");}parts.push(path.call(print,"argument"));return concat$2(parts);case"UpdateExpression":parts.push(path.call(print,"argument"),n.operator);if(n.prefix){parts.reverse();}return concat$2(parts);case"ConditionalExpression":{// We print a ConditionalExpression in either "JSX mode" or "normal mode". // See tests/jsx/conditional-expression.js for more info. -var jsxMode=false;var _parent8=path.getParentNode();var forceNoIndent=_parent8.type==="ConditionalExpression";// Find the outermost non-ConditionalExpression parent, and the outermost +var jsxMode=false;var _parent9=path.getParentNode();var forceNoIndent=_parent9.type==="ConditionalExpression";// Find the outermost non-ConditionalExpression parent, and the outermost // ConditionalExpression parent. We'll use these to determine if we should // print in JSX mode. -var currentParent=void 0;var previousParent=void 0;var _i22=0;do{previousParent=currentParent||n;currentParent=path.getParentNode(_i22);_i22++;}while(currentParent&¤tParent.type==="ConditionalExpression");var firstNonConditionalParent=currentParent||_parent8;var lastConditionalParent=previousParent;if(n.test.type==="JSXElement"||n.consequent.type==="JSXElement"||n.alternate.type==="JSXElement"||conditionalExpressionChainContainsJSX(lastConditionalParent)){jsxMode=true;forceNoIndent=true;// Even though they don't need parens, we wrap (almost) everything in +var currentParent=void 0;var previousParent=void 0;var _i22=0;do{previousParent=currentParent||n;currentParent=path.getParentNode(_i22);_i22++;}while(currentParent&¤tParent.type==="ConditionalExpression");var firstNonConditionalParent=currentParent||_parent9;var lastConditionalParent=previousParent;if(n.test.type==="JSXElement"||n.consequent.type==="JSXElement"||n.alternate.type==="JSXElement"||conditionalExpressionChainContainsJSX(lastConditionalParent)){jsxMode=true;forceNoIndent=true;// Even though they don't need parens, we wrap (almost) everything in // parens when using ?: within JSX, because the parens are analagous to // curly braces in an if statement. var wrap=function wrap(doc){return concat$2([ifBreak$1("(",""),indent$2(concat$2([softline$1,doc])),softline$1,ifBreak$1(")","")]);};// The only things we don't wrap are: @@ -517,13 +522,13 @@ var _isNull=function _isNull(node){return node.type==="NullLiteral"||node.type== parts.push(line$1,"? ",n.consequent.type==="ConditionalExpression"?ifBreak$1("","("):"",align$1(2,path.call(print,"consequent")),n.consequent.type==="ConditionalExpression"?ifBreak$1("",")"):"",line$1,": ",align$1(2,path.call(print,"alternate")));}// In JSX mode, we want a whole chain of ConditionalExpressions to all // break if any of them break. That means we should only group around the // outer-most ConditionalExpression. -var maybeGroup=function maybeGroup(doc){return jsxMode?_parent8===firstNonConditionalParent?group$1(doc):doc:group$1(doc);};// Always group in normal mode. +var maybeGroup=function maybeGroup(doc){return jsxMode?_parent9===firstNonConditionalParent?group$1(doc):doc:group$1(doc);};// Always group in normal mode. // Break the closing paren to keep the chain right after it: // (a // ? b // : c // ).call() -var _breakClosingParen=!jsxMode&&_parent8.type==="MemberExpression"&&!_parent8.computed;return maybeGroup(concat$2([path.call(print,"test"),forceNoIndent?concat$2(parts):indent$2(concat$2(parts)),_breakClosingParen?softline$1:""]));}case"VariableDeclaration":{var printed=path.map(function(childPath){return print(childPath);},"declarations");// We generally want to terminate all variable declarations with a +var _breakClosingParen=!jsxMode&&_parent9.type==="MemberExpression"&&!_parent9.computed;return maybeGroup(concat$2([path.call(print,"test"),forceNoIndent?concat$2(parts):indent$2(concat$2(parts)),_breakClosingParen?softline$1:""]));}case"VariableDeclaration":{var printed=path.map(function(childPath){return print(childPath);},"declarations");// We generally want to terminate all variable declarations with a // semicolon, except when they in the () part of for loops. var _parentNode=path.getParentNode();var isParentForLoop=_parentNode.type==="ForStatement"||_parentNode.type==="ForInStatement"||_parentNode.type==="ForOfStatement"||_parentNode.type==="ForAwaitStatement";var hasValue=n.declarations.some(function(decl){return decl.init;});var firstVariable=void 0;if(printed.length===1){firstVariable=printed[0];}else if(printed.length>1){// Indent first var to comply with eslint one-var rule firstVariable=indent$2(printed[0]);}parts=[isNodeStartingWithDeclare(n,options)?"declare ":"",n.kind,firstVariable?concat$2([" ",firstVariable]):"",indent$2(concat$2(printed.slice(1).map(function(p){return concat$2([",",hasValue&&!isParentForLoop?hardline$2:line$1,p]);})))];if(!(isParentForLoop&&_parentNode.body!==n)){parts.push(semi);}return group$1(concat$2(parts));}case"VariableDeclarator":return printAssignment(n.id,concat$2([path.call(print,"id"),path.call(print,"typeParameters")])," =",n.init,n.init&&path.call(print,"init"),options);case"WithStatement":return group$1(concat$2(["with (",path.call(print,"object"),")",adjustClause(n.body,path.call(print,"body"))]));case"IfStatement":{var con=adjustClause(n.consequent,path.call(print,"consequent"));var opening=group$1(concat$2(["if (",group$1(concat$2([indent$2(concat$2([softline$1,path.call(print,"test")])),softline$1])),")",con]));parts.push(opening);if(n.alternate){if(n.consequent.type==="BlockStatement"){parts.push(" else");}else{parts.push(hardline$2,"else");}parts.push(group$1(adjustClause(n.alternate,path.call(print,"alternate"),n.alternate.type==="IfStatement")));}return concat$2(parts);}case"ForStatement":{var _body=adjustClause(n.body,path.call(print,"body"));// We want to keep dangling comments above the loop to stay consistent. @@ -537,8 +542,8 @@ var isAwait=n.type==="ForAwaitStatement"||n.await;return group$1(concat$2(["for" case"SwitchStatement":return concat$2(["switch (",path.call(print,"discriminant"),") {",n.cases.length>0?indent$2(concat$2([hardline$2,join$2(hardline$2,path.map(function(casePath){var caseNode=casePath.getValue();return concat$2([casePath.call(print),n.cases.indexOf(caseNode)!==n.cases.length-1&&util$5.isNextLineEmpty(options.originalText,caseNode)?hardline$2:""]);},"cases"))])):"",hardline$2,"}"]);case"SwitchCase":{if(n.test){parts.push("case ",path.call(print,"test"),":");}else{parts.push("default:");}var consequent=n.consequent.filter(function(node){return node.type!=="EmptyStatement";});if(consequent.length>0){var cons=path.call(function(consequentPath){return printStatementSequence(consequentPath,options,print);},"consequent");parts.push(consequent.length===1&&consequent[0].type==="BlockStatement"?concat$2([" ",cons]):indent$2(concat$2([hardline$2,cons])));}return concat$2(parts);}// JSX extensions below. case"DebuggerStatement":return concat$2(["debugger",semi]);case"JSXAttribute":parts.push(path.call(print,"name"));if(n.value){var res=void 0;if(isStringLiteral(n.value)){var value=rawText(n.value);res='"'+value.slice(1,-1).replace(/"/g,""")+'"';}else{res=path.call(print,"value");}parts.push("=",res);}return concat$2(parts);case"JSXIdentifier":// Can be removed when this is fixed: // https://github.com/eslint/typescript-eslint-parser/issues/337 -if(!n.name){return"this";}return""+n.name;case"JSXNamespacedName":return join$2(":",[path.call(print,"namespace"),path.call(print,"name")]);case"JSXMemberExpression":return join$2(".",[path.call(print,"object"),path.call(print,"property")]);case"TSQualifiedName":return join$2(".",[path.call(print,"left"),path.call(print,"right")]);case"JSXSpreadAttribute":return concat$2(["{...",path.call(print,"argument"),"}"]);case"JSXExpressionContainer":{var _parent9=path.getParentNode(0);var _shouldInline=n.expression.type==="ArrayExpression"||n.expression.type==="ObjectExpression"||n.expression.type==="ArrowFunctionExpression"||n.expression.type==="CallExpression"||n.expression.type==="FunctionExpression"||n.expression.type==="JSXEmptyExpression"||n.expression.type==="TemplateLiteral"||n.expression.type==="TaggedTemplateExpression"||_parent9.type==="JSXElement"&&(n.expression.type==="ConditionalExpression"||isBinaryish(n.expression));if(_shouldInline){return group$1(concat$2(["{",path.call(print,"expression"),lineSuffixBoundary$1,"}"]));}return group$1(concat$2(["{",indent$2(concat$2([softline$1,path.call(print,"expression")])),softline$1,lineSuffixBoundary$1,"}"]));}case"JSXElement":{var elem=comments$3.printComments(path,function(){return printJSXElement(path,options,print);},options);return maybeWrapJSXElementInParens(path,elem);}case"JSXOpeningElement":{var _n=path.getValue();// don't break up opening elements with a single long text attribute -if(_n.attributes.length===1&&_n.attributes[0].value&&isStringLiteral(_n.attributes[0].value)){return group$1(concat$2(["<",path.call(print,"name")," ",concat$2(path.map(print,"attributes")),_n.selfClosing?" />":">"]));}return group$1(concat$2(["<",path.call(print,"name"),concat$2([indent$2(concat$2(path.map(function(attr){return concat$2([line$1,print(attr)]);},"attributes"))),_n.selfClosing?line$1:options.jsxBracketSameLine?">":softline$1]),_n.selfClosing?"/>":options.jsxBracketSameLine?"":">"]));}case"JSXClosingElement":return concat$2([""]);case"JSXText":/* istanbul ignore next */throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{var requiresHardline=n.comments&&!n.comments.every(util$5.isBlockComment);return concat$2([comments$3.printDanglingComments(path,options,/* sameIndent */!requiresHardline),requiresHardline?hardline$2:""]);}case"ClassBody":if(!n.comments&&n.body.length===0){return"{}";}return concat$2(["{",n.body.length>0?indent$2(concat$2([hardline$2,path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body")])):comments$3.printDanglingComments(path,options),hardline$2,"}"]);case"ClassProperty":case"TSAbstractClassProperty":{if(n.accessibility){parts.push(n.accessibility+" ");}if(n.static){parts.push("static ");}if(n.type==="TSAbstractClassProperty"){parts.push("abstract ");}if(n.readonly){parts.push("readonly ");}var variance=getFlowVariance(n);if(variance){parts.push(variance);}if(n.computed){parts.push("[",path.call(print,"key"),"]");}else{parts.push(printPropertyKey(path,options,print));}if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}if(n.value){parts.push(" =",printAssignmentRight(n.value,path.call(print,"value"),false,// canBreak +if(!n.name){return"this";}return""+n.name;case"JSXNamespacedName":return join$2(":",[path.call(print,"namespace"),path.call(print,"name")]);case"JSXMemberExpression":return join$2(".",[path.call(print,"object"),path.call(print,"property")]);case"TSQualifiedName":return join$2(".",[path.call(print,"left"),path.call(print,"right")]);case"JSXSpreadAttribute":return concat$2(["{...",path.call(print,"argument"),"}"]);case"JSXExpressionContainer":{var _parent10=path.getParentNode(0);var _shouldInline=n.expression.type==="ArrayExpression"||n.expression.type==="ObjectExpression"||n.expression.type==="ArrowFunctionExpression"||n.expression.type==="CallExpression"||n.expression.type==="FunctionExpression"||n.expression.type==="JSXEmptyExpression"||n.expression.type==="TemplateLiteral"||n.expression.type==="TaggedTemplateExpression"||_parent10.type==="JSXElement"&&(n.expression.type==="ConditionalExpression"||isBinaryish(n.expression));if(_shouldInline){return group$1(concat$2(["{",path.call(print,"expression"),lineSuffixBoundary$1,"}"]));}return group$1(concat$2(["{",indent$2(concat$2([softline$1,path.call(print,"expression")])),softline$1,lineSuffixBoundary$1,"}"]));}case"JSXElement":{var elem=comments$3.printComments(path,function(){return printJSXElement(path,options,print);},options);return maybeWrapJSXElementInParens(path,elem);}case"JSXOpeningElement":{var _n=path.getValue();// don't break up opening elements with a single long text attribute +if(_n.attributes.length===1&&_n.attributes[0].value&&isStringLiteral(_n.attributes[0].value)){return group$1(concat$2(["<",path.call(print,"name")," ",concat$2(path.map(print,"attributes")),_n.selfClosing?" />":">"]));}return group$1(concat$2(["<",path.call(print,"name"),concat$2([indent$2(concat$2(path.map(function(attr){return concat$2([line$1,print(attr)]);},"attributes"))),_n.selfClosing?line$1:options.jsxBracketSameLine?">":softline$1]),_n.selfClosing?"/>":options.jsxBracketSameLine?"":">"]));}case"JSXClosingElement":return concat$2([""]);case"JSXText":/* istanbul ignore next */throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{var requiresHardline=n.comments&&!n.comments.every(util$5.isBlockComment);return concat$2([comments$3.printDanglingComments(path,options,/* sameIndent */!requiresHardline),requiresHardline?hardline$2:""]);}case"ClassBody":if(!n.comments&&n.body.length===0){return"{}";}return concat$2(["{",n.body.length>0?indent$2(concat$2([hardline$2,path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body")])):comments$3.printDanglingComments(path,options),hardline$2,"}"]);case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":{if(n.accessibility){parts.push(n.accessibility+" ");}if(n.static){parts.push("static ");}if(n.type==="TSAbstractClassProperty"){parts.push("abstract ");}if(n.readonly){parts.push("readonly ");}var variance=getFlowVariance(n);if(variance){parts.push(variance);}if(n.computed){parts.push("[",path.call(print,"key"),"]");}else{parts.push(printPropertyKey(path,options,print));}if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}if(n.value){parts.push(" =",printAssignmentRight(n.value,path.call(print,"value"),false,// canBreak options));}parts.push(semi);return concat$2(parts);}case"ClassDeclaration":case"ClassExpression":case"TSAbstractClassDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push(concat$2(printClass(path,options,print)));return concat$2(parts);case"TSInterfaceHeritage":parts.push(path.call(print,"id"));if(n.typeParameters){parts.push(path.call(print,"typeParameters"));}return concat$2(parts);case"TemplateElement":return join$2(literalline$1,n.value.raw.split(/\r?\n/g));case"TemplateLiteral":{var expressions=path.map(print,"expressions");parts.push("`");path.each(function(childPath){var i=childPath.getName();parts.push(print(childPath));if(i void; -var _parent10=path.getParentNode(0);var _parentParent2=path.getParentNode(1);var _parentParentParent=path.getParentNode(2);var isArrowFunctionTypeAnnotation=n.type==="TSFunctionType"||!(_parent10.type==="ObjectTypeProperty"&&!getFlowVariance(_parent10)&&!_parent10.optional&&util$5.locStart(_parent10)===util$5.locStart(n)||_parent10.type==="ObjectTypeCallProperty"||_parentParentParent&&_parentParentParent.type==="DeclareFunction");var needsColon=isArrowFunctionTypeAnnotation&&_parent10.type==="TypeAnnotation";// Sadly we can't put it inside of FastPath::needsColon because we are +var _parent11=path.getParentNode(0);var _parentParent2=path.getParentNode(1);var _parentParentParent=path.getParentNode(2);var isArrowFunctionTypeAnnotation=n.type==="TSFunctionType"||!(_parent11.type==="ObjectTypeProperty"&&!getFlowVariance(_parent11)&&!_parent11.optional&&util$5.locStart(_parent11)===util$5.locStart(n)||_parent11.type==="ObjectTypeCallProperty"||_parentParentParent&&_parentParentParent.type==="DeclareFunction");var needsColon=isArrowFunctionTypeAnnotation&&_parent11.type==="TypeAnnotation";// Sadly we can't put it inside of FastPath::needsColon because we are // printing ":" as part of the expression and it would put parenthesis // around :( -var needsParens=needsColon&&isArrowFunctionTypeAnnotation&&_parent10.type==="TypeAnnotation"&&_parentParent2.type==="ArrowFunctionExpression";if(isObjectTypePropertyAFunction(_parent10)){isArrowFunctionTypeAnnotation=true;needsColon=true;}if(needsParens){parts.push("(");}parts.push(printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true));// The returnType is not wrapped in a TypeAnnotation, so the colon +var needsParens=needsColon&&isArrowFunctionTypeAnnotation&&_parent11.type==="TypeAnnotation"&&_parentParent2.type==="ArrowFunctionExpression";if(isObjectTypePropertyAFunction(_parent11)){isArrowFunctionTypeAnnotation=true;needsColon=true;}if(needsParens){parts.push("(");}parts.push(printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true));// The returnType is not wrapped in a TypeAnnotation, so the colon // needs to be added separately. if(n.returnType||n.predicate||n.typeAnnotation){parts.push(isArrowFunctionTypeAnnotation?" => ":": ",path.call(print,"returnType"),path.call(print,"predicate"),path.call(print,"typeAnnotation"));}if(needsParens){parts.push(")");}return group$1(concat$2(parts));}case"FunctionTypeParam":return concat$2([path.call(print,"name"),printOptionalToken(path),n.name?": ":"",path.call(print,"typeAnnotation")]);case"GenericTypeAnnotation":return concat$2([path.call(print,"id"),path.call(print,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":{if(n.type==="DeclareInterface"||isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push("interface ",path.call(print,"id"),path.call(print,"typeParameters"));if(n["extends"].length>0){parts.push(group$1(indent$2(concat$2([line$1,"extends ",join$2(", ",path.map(print,"extends"))]))));}parts.push(" ");parts.push(path.call(print,"body"));return group$1(concat$2(parts));}case"ClassImplements":case"InterfaceExtends":return concat$2([path.call(print,"id"),path.call(print,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{var types=path.map(print,"types");var result=[];for(var _i23=0;_i231?indent$2(types[_i23]):types[_i23]);}}return group$1(con // | A // | B // | C -var _parent11=path.getParentNode();// If there's a leading comment, the parent is doing the indentation -var shouldIndent=_parent11.type!=="TypeParameterInstantiation"&&_parent11.type!=="GenericTypeAnnotation"&&_parent11.type!=="TSTypeReference"&&!((_parent11.type==="TypeAlias"||_parent11.type==="VariableDeclarator")&&hasLeadingOwnLineComment(options.originalText,n));// { +var _parent12=path.getParentNode();// If there's a leading comment, the parent is doing the indentation +var shouldIndent=_parent12.type!=="TypeParameterInstantiation"&&_parent12.type!=="GenericTypeAnnotation"&&_parent12.type!=="TSTypeReference"&&!((_parent12.type==="TypeAlias"||_parent12.type==="VariableDeclarator")&&hasLeadingOwnLineComment(options.originalText,n));// { // a: string // } | null | void // should be inlined and not be printed in the multi-line variant @@ -588,9 +593,9 @@ var _printed2=path.map(function(typePath){var printedType=typePath.call(print);i // be either left alone or desugared into AST types that are fully // supported by the pretty-printer. case"DeclaredPredicate":return concat$2(["%checks(",path.call(print,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSVoidKeyword":return"void";case"TSAsExpression":return concat$2([path.call(print,"expression")," as ",path.call(print,"typeAnnotation")]);case"TSArrayType":return concat$2([path.call(print,"elementType"),"[]"]);case"TSPropertySignature":{if(n.export){parts.push("export ");}if(n.accessibility){parts.push(n.accessibility+" ");}if(n.static){parts.push("static ");}if(n.readonly){parts.push("readonly ");}if(n.computed){parts.push("[");}parts.push(printPropertyKey(path,options,print));if(n.computed){parts.push("]");}parts.push(printOptionalToken(path));if(n.typeAnnotation){parts.push(": ");parts.push(path.call(print,"typeAnnotation"));}// This isn't valid semantically, but it's in the AST so we can print it. -if(n.initializer){parts.push(" = ",path.call(print,"initializer"));}return concat$2(parts);}case"TSParameterProperty":if(n.accessibility){parts.push(n.accessibility+" ");}if(n.export){parts.push("export ");}if(n.static){parts.push("static ");}if(n.readonly){parts.push("readonly ");}parts.push(path.call(print,"parameter"));return concat$2(parts);case"TSTypeReference":return concat$2([path.call(print,"typeName"),printTypeParameters(path,options,print,"typeParameters")]);case"TSTypeQuery":return concat$2(["typeof ",path.call(print,"exprName")]);case"TSParenthesizedType":{return path.call(print,"typeAnnotation");}case"TSIndexSignature":{var _parent12=path.getParentNode();return concat$2([n.export?"export ":"",n.accessibility?concat$2([n.accessibility," "]):"",n.static?"static ":"",n.readonly?"readonly ":"","[",path.call(print,"index"),"]: ",path.call(print,"typeAnnotation"),_parent12.type==="ClassBody"?semi:""]);}case"TSTypePredicate":return concat$2([path.call(print,"parameterName")," is ",path.call(print,"typeAnnotation")]);case"TSNonNullExpression":return concat$2([path.call(print,"expression"),"!"]);case"TSThisType":return"this";case"TSLastTypeNode":return path.call(print,"literal");case"TSIndexedAccessType":return concat$2([path.call(print,"objectType"),"[",path.call(print,"indexType"),"]"]);case"TSConstructSignature":case"TSConstructorType":case"TSCallSignature":{if(n.type!=="TSCallSignature"){parts.push("new ");}parts.push(group$1(printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true)));if(n.typeAnnotation){var isType=n.type==="TSConstructorType";parts.push(isType?" => ":": ",path.call(print,"typeAnnotation"));}return concat$2(parts);}case"TSTypeOperator":return concat$2(["keyof ",path.call(print,"typeAnnotation")]);case"TSMappedType":return group$1(concat$2(["{",indent$2(concat$2([options.bracketSpacing?line$1:softline$1,n.readonlyToken?concat$2([path.call(print,"readonlyToken")," "]):"",printTypeScriptModifiers(path,options,print),"[",path.call(print,"typeParameter"),"]",n.questionToken?"?":"",": ",path.call(print,"typeAnnotation")])),comments$3.printDanglingComments(path,options,/* sameIndent */true),options.bracketSpacing?line$1:softline$1,"}"]));case"TSTypeParameter":parts.push(path.call(print,"name"));if(n.constraint){parts.push(" in ",path.call(print,"constraint"));}return concat$2(parts);case"TSMethodSignature":parts.push(n.accessibility?concat$2([n.accessibility," "]):"",n.export?"export ":"",n.static?"static ":"",n.readonly?"readonly ":"",n.computed?"[":"",path.call(print,"key"),n.computed?"]":"",printOptionalToken(path),printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true));if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}return group$1(concat$2(parts));case"TSNamespaceExportDeclaration":parts.push("export as namespace ",path.call(print,"name"));if(options.semi){parts.push(";");}return group$1(concat$2(parts));case"TSEnumDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}if(n.modifiers){parts.push(printTypeScriptModifiers(path,options,print));}if(n.const){parts.push("const ");}parts.push("enum ",path.call(print,"id")," ");if(n.members.length===0){parts.push(group$1(concat$2(["{",comments$3.printDanglingComments(path,options),softline$1,"}"])));}else{parts.push(group$1(concat$2(["{",indent$2(concat$2([hardline$2,printArrayItems(path,options,"members",print),shouldPrintComma(options,"es5")?",":""])),comments$3.printDanglingComments(path,options,/* sameIndent */true),hardline$2,"}"])));}return concat$2(parts);case"TSEnumMember":parts.push(path.call(print,"id"));if(n.initializer){parts.push(" = ",path.call(print,"initializer"));}return concat$2(parts);case"TSImportEqualsDeclaration":parts.push(printTypeScriptModifiers(path,options,print),"import ",path.call(print,"name")," = ",path.call(print,"moduleReference"));if(options.semi){parts.push(";");}return group$1(concat$2(parts));case"TSExternalModuleReference":return concat$2(["require(",path.call(print,"expression"),")"]);case"TSModuleDeclaration":{var _parent13=path.getParentNode();var isExternalModule=isLiteral(n.id);var parentIsDeclaration=_parent13.type==="TSModuleDeclaration";var bodyIsDeclaration=n.body&&n.body.type==="TSModuleDeclaration";if(parentIsDeclaration){parts.push(".");}else{if(n.declare===true){parts.push("declare ");}parts.push(printTypeScriptModifiers(path,options,print));// Global declaration looks like this: +if(n.initializer){parts.push(" = ",path.call(print,"initializer"));}return concat$2(parts);}case"TSParameterProperty":if(n.accessibility){parts.push(n.accessibility+" ");}if(n.export){parts.push("export ");}if(n.static){parts.push("static ");}if(n.readonly){parts.push("readonly ");}parts.push(path.call(print,"parameter"));return concat$2(parts);case"TSTypeReference":return concat$2([path.call(print,"typeName"),printTypeParameters(path,options,print,"typeParameters")]);case"TSTypeQuery":return concat$2(["typeof ",path.call(print,"exprName")]);case"TSParenthesizedType":{return path.call(print,"typeAnnotation");}case"TSIndexSignature":{var _parent13=path.getParentNode();return concat$2([n.export?"export ":"",n.accessibility?concat$2([n.accessibility," "]):"",n.static?"static ":"",n.readonly?"readonly ":"","[",path.call(print,"index"),"]: ",path.call(print,"typeAnnotation"),_parent13.type==="ClassBody"?semi:""]);}case"TSTypePredicate":return concat$2([path.call(print,"parameterName")," is ",path.call(print,"typeAnnotation")]);case"TSNonNullExpression":return concat$2([path.call(print,"expression"),"!"]);case"TSThisType":return"this";case"TSLastTypeNode":return path.call(print,"literal");case"TSIndexedAccessType":return concat$2([path.call(print,"objectType"),"[",path.call(print,"indexType"),"]"]);case"TSConstructSignature":case"TSConstructorType":case"TSCallSignature":{if(n.type!=="TSCallSignature"){parts.push("new ");}parts.push(group$1(printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true)));if(n.typeAnnotation){var isType=n.type==="TSConstructorType";parts.push(isType?" => ":": ",path.call(print,"typeAnnotation"));}return concat$2(parts);}case"TSTypeOperator":return concat$2(["keyof ",path.call(print,"typeAnnotation")]);case"TSMappedType":return group$1(concat$2(["{",indent$2(concat$2([options.bracketSpacing?line$1:softline$1,n.readonlyToken?concat$2([path.call(print,"readonlyToken")," "]):"",printTypeScriptModifiers(path,options,print),"[",path.call(print,"typeParameter"),"]",n.questionToken?"?":"",": ",path.call(print,"typeAnnotation")])),comments$3.printDanglingComments(path,options,/* sameIndent */true),options.bracketSpacing?line$1:softline$1,"}"]));case"TSTypeParameter":parts.push(path.call(print,"name"));if(n.constraint){parts.push(" in ",path.call(print,"constraint"));}return concat$2(parts);case"TSMethodSignature":parts.push(n.accessibility?concat$2([n.accessibility," "]):"",n.export?"export ":"",n.static?"static ":"",n.readonly?"readonly ":"",n.computed?"[":"",path.call(print,"key"),n.computed?"]":"",printOptionalToken(path),printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true));if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}return group$1(concat$2(parts));case"TSNamespaceExportDeclaration":parts.push("export as namespace ",path.call(print,"name"));if(options.semi){parts.push(";");}return group$1(concat$2(parts));case"TSEnumDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}if(n.modifiers){parts.push(printTypeScriptModifiers(path,options,print));}if(n.const){parts.push("const ");}parts.push("enum ",path.call(print,"id")," ");if(n.members.length===0){parts.push(group$1(concat$2(["{",comments$3.printDanglingComments(path,options),softline$1,"}"])));}else{parts.push(group$1(concat$2(["{",indent$2(concat$2([hardline$2,printArrayItems(path,options,"members",print),shouldPrintComma(options,"es5")?",":""])),comments$3.printDanglingComments(path,options,/* sameIndent */true),hardline$2,"}"])));}return concat$2(parts);case"TSEnumMember":parts.push(path.call(print,"id"));if(n.initializer){parts.push(" = ",path.call(print,"initializer"));}return concat$2(parts);case"TSImportEqualsDeclaration":parts.push(printTypeScriptModifiers(path,options,print),"import ",path.call(print,"name")," = ",path.call(print,"moduleReference"));if(options.semi){parts.push(";");}return group$1(concat$2(parts));case"TSExternalModuleReference":return concat$2(["require(",path.call(print,"expression"),")"]);case"TSModuleDeclaration":{var _parent14=path.getParentNode();var isExternalModule=isLiteral(n.id);var parentIsDeclaration=_parent14.type==="TSModuleDeclaration";var bodyIsDeclaration=n.body&&n.body.type==="TSModuleDeclaration";if(parentIsDeclaration){parts.push(".");}else{if(n.declare===true){parts.push("declare ");}parts.push(printTypeScriptModifiers(path,options,print));// Global declaration looks like this: // (declare)? global { ... } -var isGlobalDeclaration=n.id.type==="Identifier"&&n.id.name==="global"&&!/namespace|module/.test(options.originalText.slice(util$5.locStart(n),util$5.locStart(n.id)));if(!isGlobalDeclaration){parts.push(isExternalModule?"module ":"namespace ");}}parts.push(path.call(print,"id"));if(bodyIsDeclaration){parts.push(path.call(print,"body"));}else if(n.body){parts.push(" {",indent$2(concat$2([line$1,path.call(function(bodyPath){return comments$3.printDanglingComments(bodyPath,options,true);},"body"),group$1(path.call(print,"body"))])),line$1,"}");}else{parts.push(semi);}return concat$2(parts);}case"TSModuleBlock":return path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body");default:/* istanbul ignore next */throw new Error("unknown type: "+JSON.stringify(n.type));}}function printStatementSequence(path,options,print){var printed=[];var bodyNode=path.getNode();var isClass=bodyNode.type==="ClassBody";path.map(function(stmtPath,i){var stmt=stmtPath.getValue();// Just in case the AST has been modified to contain falsy +var isGlobalDeclaration=n.id.type==="Identifier"&&n.id.name==="global"&&!/namespace|module/.test(options.originalText.slice(util$5.locStart(n),util$5.locStart(n.id)));if(!isGlobalDeclaration){parts.push(isExternalModule?"module ":"namespace ");}}parts.push(path.call(print,"id"));if(bodyIsDeclaration){parts.push(path.call(print,"body"));}else if(n.body){parts.push(" {",indent$2(concat$2([line$1,path.call(function(bodyPath){return comments$3.printDanglingComments(bodyPath,options,true);},"body"),group$1(path.call(print,"body"))])),line$1,"}");}else{parts.push(semi);}return concat$2(parts);}case"TSModuleBlock":return path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body");case"PrivateName":return concat$2(["#",path.call(print,"id")]);default:/* istanbul ignore next */throw new Error("unknown type: "+JSON.stringify(n.type));}}function printStatementSequence(path,options,print){var printed=[];var bodyNode=path.getNode();var isClass=bodyNode.type==="ClassBody";path.map(function(stmtPath,i){var stmt=stmtPath.getValue();// Just in case the AST has been modified to contain falsy // "statements," it's safer simply to skip them. /* istanbul ignore if */if(!stmt){return;}// Skip printing EmptyStatement nodes to avoid leaving stray // semicolons lying around. @@ -600,11 +605,12 @@ if(!options.semi&&!isClass&&stmtNeedsASIProtection(stmtPath)){if(stmt.comments&& parts.push(print(stmtPath,{needsSemi:true}));}else{parts.push(";",stmtPrinted);}}else{parts.push(stmtPrinted);}if(!options.semi&&isClass){if(classPropMayCauseASIProblems(stmtPath)){parts.push(";");}else if(stmt.type==="ClassProperty"){var nextChild=bodyNode.body[i+1];if(classChildNeedsASIProtection(nextChild)){parts.push(";");}}}if(util$5.isNextLineEmpty(text,stmt)&&!isLastStatement(stmtPath)){parts.push(hardline$2);}printed.push(concat$2(parts));});return join$2(hardline$2,printed);}function printPropertyKey(path,options,print){var node=path.getNode();var key=node.key;if(isStringLiteral(key)&&isIdentifierName(key.value)&&!node.computed&&options.parser!=="json"){// 'a' -> a return path.call(function(keyPath){return comments$3.printComments(keyPath,function(){return key.value;},options);},"key");}return path.call(print,"key");}function printMethod(path,options,print){var node=path.getNode();var semi=options.semi?";":"";var kind=node.kind;var parts=[];if(node.type==="ObjectMethod"||node.type==="ClassMethod"){node.value=node;}if(node.value.async){parts.push("async ");}if(!kind||kind==="init"||kind==="method"||kind==="constructor"){if(node.value.generator){parts.push("*");}}else{assert$1.ok(kind==="get"||kind==="set");parts.push(kind," ");}var key=printPropertyKey(path,options,print);if(node.computed){key=concat$2(["[",key,"]"]);}parts.push(key,concat$2(path.call(function(valuePath){return[printFunctionTypeParameters(valuePath,options,print),group$1(concat$2([printFunctionParams(valuePath,print,options),printReturnType(valuePath,print)]))];},"value")));if(!node.value.body||node.value.body.length===0){parts.push(semi);}else{parts.push(" ",path.call(print,"value","body"));}return concat$2(parts);}function couldGroupArg(arg){return arg.type==="ObjectExpression"&&(arg.properties.length>0||arg.comments)||arg.type==="ArrayExpression"&&(arg.elements.length>0||arg.comments)||arg.type==="TSTypeAssertionExpression"||arg.type==="TSAsExpression"||arg.type==="FunctionExpression"||arg.type==="ArrowFunctionExpression"&&(arg.body.type==="BlockStatement"||arg.body.type==="ArrowFunctionExpression"||arg.body.type==="ObjectExpression"||arg.body.type==="ArrayExpression"||arg.body.type==="CallExpression"||arg.body.type==="JSXElement");}function shouldGroupLastArg(args){var lastArg=util$5.getLast(args);var penultimateArg=util$5.getPenultimate(args);return!hasLeadingComment(lastArg)&&!hasTrailingComment(lastArg)&&couldGroupArg(lastArg)&&(// If the last two arguments are of the same type, // disable last element expansion. -!penultimateArg||penultimateArg.type!==lastArg.type);}function shouldGroupFirstArg(args){if(args.length!==2){return false;}var firstArg=args[0];var secondArg=args[1];return(!firstArg.comments||!firstArg.comments.length)&&(firstArg.type==="FunctionExpression"||firstArg.type==="ArrowFunctionExpression"&&firstArg.body.type==="BlockStatement")&&!couldGroupArg(secondArg);}function printArgumentsList(path,options,print){var printed=path.map(print,"arguments");if(printed.length===0){return concat$2(["(",comments$3.printDanglingComments(path,options,/* sameIndent */true),")"]);}var args=path.getValue().arguments;// This is just an optimization; I think we could return the +!penultimateArg||penultimateArg.type!==lastArg.type);}function shouldGroupFirstArg(args){if(args.length!==2){return false;}var firstArg=args[0];var secondArg=args[1];return(!firstArg.comments||!firstArg.comments.length)&&(firstArg.type==="FunctionExpression"||firstArg.type==="ArrowFunctionExpression"&&firstArg.body.type==="BlockStatement")&&!couldGroupArg(secondArg);}function printArgumentsList(path,options,print){var args=path.getValue().arguments;if(args.length===0){return concat$2(["(",comments$3.printDanglingComments(path,options,/* sameIndent */true),")"]);}var anyArgEmptyLine=false;var hasEmptyLineFollowingFirstArg=false;var lastArgIndex=args.length-1;var printedArguments=path.map(function(argPath,index){var arg=argPath.getNode();var parts=[print(argPath)];if(index===lastArgIndex){// do nothing +}else if(util$5.isNextLineEmpty(options.originalText,arg)){if(index===0){hasEmptyLineFollowingFirstArg=true;}anyArgEmptyLine=true;parts.push(",",hardline$2,hardline$2);}else{parts.push(",",line$1);}return concat$2(parts);},"arguments");// This is just an optimization; I think we could return the // conditional group for all function calls, but it's more expensive // so only do it for specific forms. -var shouldGroupFirst=shouldGroupFirstArg(args);var shouldGroupLast=shouldGroupLastArg(args);if(shouldGroupFirst||shouldGroupLast){var shouldBreak=shouldGroupFirst?printed.slice(1).some(willBreak):printed.slice(0,-1).some(willBreak);// We want to print the last argument with a special flag -var printedExpanded=void 0;var _i24=0;path.each(function(argPath){if(shouldGroupFirst&&_i24===0){printedExpanded=[argPath.call(function(p){return print(p,{expandFirstArg:true});})].concat(printed.slice(1));}if(shouldGroupLast&&_i24===args.length-1){printedExpanded=printed.slice(0,-1).concat(argPath.call(function(p){return print(p,{expandLastArg:true});}));}_i24++;},"arguments");return concat$2([printed.some(willBreak)?breakParent$2:"",conditionalGroup$1([concat$2(["(",join$2(concat$2([", "]),printedExpanded),")"]),shouldGroupFirst?concat$2(["(",group$1(printedExpanded[0],{shouldBreak:true}),printed.length>1?", ":"",join$2(concat$2([",",line$1]),printed.slice(1)),")"]):concat$2(["(",join$2(concat$2([",",line$1]),printed.slice(0,-1)),printed.length>1?", ":"",group$1(util$5.getLast(printedExpanded),{shouldBreak:true}),")"]),group$1(concat$2(["(",indent$2(concat$2([line$1,join$2(concat$2([",",line$1]),printed)])),shouldPrintComma(options,"all")?",":"",line$1,")"]),{shouldBreak:true})],{shouldBreak:shouldBreak})]);}return group$1(concat$2(["(",indent$2(concat$2([softline$1,join$2(concat$2([",",line$1]),printed)])),ifBreak$1(shouldPrintComma(options,"all")?",":""),softline$1,")"]),{shouldBreak:printed.some(willBreak)});}function printFunctionTypeParameters(path,options,print){var fun=path.getValue();if(fun.typeParameters){return path.call(print,"typeParameters");}return"";}function printFunctionParams(path,print,options,expandArg,printTypeParams){var fun=path.getValue();var paramsField=fun.parameters?"parameters":"params";var typeParams=printTypeParams?printFunctionTypeParameters(path,options,print):"";var printed=[];if(fun[paramsField]){printed=path.map(print,paramsField);}if(fun.rest){printed.push(concat$2(["...",path.call(print,"rest")]));}if(printed.length===0){return concat$2([typeParams,"(",comments$3.printDanglingComments(path,options,/* sameIndent */true),")"]);}var lastParam=util$5.getLast(fun[paramsField]);// If the parent is a call with the first/last argument expansion and this is the +var shouldGroupFirst=shouldGroupFirstArg(args);var shouldGroupLast=shouldGroupLastArg(args);if(shouldGroupFirst||shouldGroupLast){var shouldBreak=(shouldGroupFirst?printedArguments.slice(1).some(willBreak):printedArguments.slice(0,-1).some(willBreak))||anyArgEmptyLine;// We want to print the last argument with a special flag +var printedExpanded=void 0;var _i24=0;path.each(function(argPath){if(shouldGroupFirst&&_i24===0){printedExpanded=[concat$2([argPath.call(function(p){return print(p,{expandFirstArg:true});}),printedArguments.length>1?",":"",hasEmptyLineFollowingFirstArg?hardline$2:line$1,hasEmptyLineFollowingFirstArg?hardline$2:""])].concat(printedArguments.slice(1));}if(shouldGroupLast&&_i24===args.length-1){printedExpanded=printedArguments.slice(0,-1).concat(argPath.call(function(p){return print(p,{expandLastArg:true});}));}_i24++;},"arguments");return concat$2([printedArguments.some(willBreak)?breakParent$2:"",conditionalGroup$1([concat$2(["(",concat$2(printedExpanded),")"]),shouldGroupFirst?concat$2(["(",group$1(printedExpanded[0],{shouldBreak:true}),concat$2(printedExpanded.slice(1)),")"]):concat$2(["(",concat$2(printedArguments.slice(0,-1)),group$1(util$5.getLast(printedExpanded),{shouldBreak:true}),")"]),group$1(concat$2(["(",indent$2(concat$2([line$1,concat$2(printedArguments)])),shouldPrintComma(options,"all")?",":"",line$1,")"]),{shouldBreak:true})],{shouldBreak:shouldBreak})]);}return group$1(concat$2(["(",indent$2(concat$2([softline$1,concat$2(printedArguments)])),ifBreak$1(shouldPrintComma(options,"all")?",":""),softline$1,")"]),{shouldBreak:printedArguments.some(willBreak)||anyArgEmptyLine});}function printFunctionTypeParameters(path,options,print){var fun=path.getValue();if(fun.typeParameters){return path.call(print,"typeParameters");}return"";}function printFunctionParams(path,print,options,expandArg,printTypeParams){var fun=path.getValue();var paramsField=fun.parameters?"parameters":"params";var typeParams=printTypeParams?printFunctionTypeParameters(path,options,print):"";var printed=[];if(fun[paramsField]){printed=path.map(print,paramsField);}if(fun.rest){printed.push(concat$2(["...",path.call(print,"rest")]));}if(printed.length===0){return concat$2([typeParams,"(",comments$3.printDanglingComments(path,options,/* sameIndent */true),")"]);}var lastParam=util$5.getLast(fun[paramsField]);// If the parent is a call with the first/last argument expansion and this is the // params of the first/last argument, we dont want the arguments to break and instead // want the whole expression to be on a new line. // @@ -1159,7 +1165,7 @@ var start=0;while(start=","");var currentVersion=process.version.replace("v","");if(currentVersion","Suhas Karanth "];var license$1="MIT";var bugs={"url":"https://github.com/davidtheclark/cosmiconfig/issues"};var homepage$1="https://github.com/davidtheclark/cosmiconfig#readme";var prettier={"trailingComma":"es5","singleQuote":true,"printWidth":80,"tabWidth":2};var jest={"testEnvironment":"node"};var dependencies$1={"is-directory":"^0.3.1","is-promise":"^2.1.0","js-yaml":"^3.9.0","minimist":"^1.2.0","os-homedir":"^1.0.1","parse-json":"^2.2.0","please-upgrade-node":"^3.0.1","require-from-string":"^1.1.0"};var devDependencies$1={"eslint":"^4.5.0","eslint-config-davidtheclark-node":"^0.2.0","eslint-config-prettier":"^2.3.0","eslint-plugin-node":"^3.0.5","husky":"^0.14.3","jest":"^20.0.4","lint-staged":"^4.0.4","prettier":"^1.6.1"};var engines={"node":">=4"};var _package$2={name:name$1,version:version$2,description:description$1,main:main$1,files:files,scripts:scripts$1,repository:repository$1,keywords:keywords,author:author$1,contributors:contributors,license:license$1,bugs:bugs,homepage:homepage$1,prettier:prettier,jest:jest,dependencies:dependencies$1,devDependencies:devDependencies$1,engines:engines,"lint-staged":{"*.js":["eslint --fix","prettier --write","git add"]}};var _package$3=Object.freeze({name:name$1,version:version$2,description:description$1,main:main$1,files:files,scripts:scripts$1,repository:repository$1,keywords:keywords,author:author$1,contributors:contributors,license:license$1,bugs:bugs,homepage:homepage$1,prettier:prettier,jest:jest,dependencies:dependencies$1,devDependencies:devDependencies$1,engines:engines,default:_package$2});var os$2=os;function homedir(){var env=process.env;var home=env.HOME;var user=env.LOGNAME||env.USER||env.LNAME||env.USERNAME;if(process.platform==='win32'){return env.USERPROFILE||env.HOMEDRIVE+env.HOMEPATH||home||null;}if(process.platform==='darwin'){return home||(user?'/Users/'+user:null);}if(process.platform==='linux'){return home||(process.getuid()===0?'/root':user?'/home/'+user:null);}return home||null;}var index$50=typeof os$2.homedir==='function'?os$2.homedir:homedir;var index$52=function index$52(args,opts){if(!opts)opts={};var flags={bools:{},strings:{},unknownFn:null};if(typeof opts['unknown']==='function'){flags.unknownFn=opts['unknown'];}if(typeof opts['boolean']==='boolean'&&opts['boolean']){flags.allBools=true;}else{[].concat(opts['boolean']).filter(Boolean).forEach(function(key){flags.bools[key]=true;});}var aliases={};Object.keys(opts.alias||{}).forEach(function(key){aliases[key]=[].concat(opts.alias[key]);aliases[key].forEach(function(x){aliases[x]=[key].concat(aliases[key].filter(function(y){return x!==y;}));});});[].concat(opts.string).filter(Boolean).forEach(function(key){flags.strings[key]=true;if(aliases[key]){flags.strings[aliases[key]]=true;}});var defaults=opts['default']||{};var argv={_:[]};Object.keys(flags.bools).forEach(function(key){setArg(key,defaults[key]===undefined?false:defaults[key]);});var notFlags=[];if(args.indexOf('--')!==-1){notFlags=args.slice(args.indexOf('--')+1);args=args.slice(0,args.indexOf('--'));}function argDefined(key,arg){return flags.allBools&&/^--[^=]+$/.test(arg)||flags.strings[key]||flags.bools[key]||aliases[key];}function setArg(key,val,arg){if(arg&&flags.unknownFn&&!argDefined(key,arg)){if(flags.unknownFn(arg)===false)return;}var value=!flags.strings[key]&&isNumber(val)?Number(val):val;setKey(argv,key.split('.'),value);(aliases[key]||[]).forEach(function(x){setKey(argv,x.split('.'),value);});}function setKey(obj,keys,value){var o=obj;keys.slice(0,-1).forEach(function(key){if(o[key]===undefined)o[key]={};o=o[key];});var key=keys[keys.length-1];if(o[key]===undefined||flags.bools[key]||typeof o[key]==='boolean'){o[key]=value;}else if(Array.isArray(o[key])){o[key].push(value);}else{o[key]=[o[key],value];}}function aliasIsBoolean(key){return aliases[key].some(function(x){return flags.bools[x];});}for(var i=0;i=0&&obj.splice instanceof Function;};var util$10=util;var isArrayish=index$60;var errorEx$1=function errorEx(name,properties){if(!name||name.constructor!==String){properties=name||{};name=Error.name;}var errorExError=function ErrorEXError(message){if(!this){return new ErrorEXError(message);}message=message instanceof Error?message.message:message||this.message;Error.call(this,message);Error.captureStackTrace(this,errorExError);this.name=name;Object.defineProperty(this,'message',{configurable:true,enumerable:false,get:function get(){var newMessage=message.split(/\r?\n/g);for(var key in properties){if(!properties.hasOwnProperty(key)){continue;}var modifier=properties[key];if('message'in modifier){newMessage=modifier.message(this[key],newMessage)||newMessage;if(!isArrayish(newMessage)){newMessage=[newMessage];}}}return newMessage.join('\n');},set:function set(v){message=v;}});var stackDescriptor=Object.getOwnPropertyDescriptor(this,'stack');var stackGetter=stackDescriptor.get;var stackValue=stackDescriptor.value;delete stackDescriptor.value;delete stackDescriptor.writable;stackDescriptor.get=function(){var stack=stackGetter?stackGetter.call(this).split(/\r?\n+/g):stackValue.split(/\r?\n+/g);// starting in Node 7, the stack builder caches the message. +/* istanbul ignore if */if("useFlowParser"in normalized){normalized.parser=normalized.useFlowParser?"flow":"babylon";delete normalized.useFlowParser;}Object.keys(defaults).forEach(function(k){if(normalized[k]==null){normalized[k]=defaults[k];}});return normalized;}var options={normalize:normalize,defaults:defaults};function flattenDoc(doc){if(doc.type==="concat"){var res=[];for(var _i33=0;_i33=0&&obj.splice instanceof Function;};var util$10=util;var isArrayish=index$52;var errorEx$1=function errorEx(name,properties){if(!name||name.constructor!==String){properties=name||{};name=Error.name;}var errorExError=function ErrorEXError(message){if(!this){return new ErrorEXError(message);}message=message instanceof Error?message.message:message||this.message;Error.call(this,message);Error.captureStackTrace(this,errorExError);this.name=name;Object.defineProperty(this,'message',{configurable:true,enumerable:false,get:function get(){var newMessage=message.split(/\r?\n/g);for(var key in properties){if(!properties.hasOwnProperty(key)){continue;}var modifier=properties[key];if('message'in modifier){newMessage=modifier.message(this[key],newMessage)||newMessage;if(!isArrayish(newMessage)){newMessage=[newMessage];}}}return newMessage.join('\n');},set:function set(v){message=v;}});var stackDescriptor=Object.getOwnPropertyDescriptor(this,'stack');var stackGetter=stackDescriptor.get;var stackValue=stackDescriptor.value;delete stackDescriptor.value;delete stackDescriptor.writable;stackDescriptor.get=function(){var stack=stackGetter?stackGetter.call(this).split(/\r?\n+/g):stackValue.split(/\r?\n+/g);// starting in Node 7, the stack builder caches the message. // just replace it. -stack[0]=this.name+': '+this.message;var lineCount=1;for(var key in properties){if(!properties.hasOwnProperty(key)){continue;}var modifier=properties[key];if('line'in modifier){var line=modifier.line(this[key]);if(line){stack.splice(lineCount++,0,' '+line);}}if('stack'in modifier){modifier.stack(this[key],stack);}}return stack.join('\n');};Object.defineProperty(this,'stack',stackDescriptor);};if(Object.setPrototypeOf){Object.setPrototypeOf(errorExError.prototype,Error.prototype);Object.setPrototypeOf(errorExError,Error);}else{util$10.inherits(errorExError,Error);}return errorExError;};errorEx$1.append=function(str,def){return{message:function message(v,_message){v=v||def;if(v){_message[0]+=' '+str.replace('%s',v.toString());}return _message;}};};errorEx$1.line=function(str,def){return{line:function line(v){v=v||def;if(v){return str.replace('%s',v.toString());}return null;}};};var index$58=errorEx$1;var unicode=createCommonjsModule(function(module){// This is autogenerated with esprima tools, see: +stack[0]=this.name+': '+this.message;var lineCount=1;for(var key in properties){if(!properties.hasOwnProperty(key)){continue;}var modifier=properties[key];if('line'in modifier){var line=modifier.line(this[key]);if(line){stack.splice(lineCount++,0,' '+line);}}if('stack'in modifier){modifier.stack(this[key],stack);}}return stack.join('\n');};Object.defineProperty(this,'stack',stackDescriptor);};if(Object.setPrototypeOf){Object.setPrototypeOf(errorExError.prototype,Error.prototype);Object.setPrototypeOf(errorExError,Error);}else{util$10.inherits(errorExError,Error);}return errorExError;};errorEx$1.append=function(str,def){return{message:function message(v,_message){v=v||def;if(v){_message[0]+=' '+str.replace('%s',v.toString());}return _message;}};};errorEx$1.line=function(str,def){return{line:function line(v){v=v||def;if(v){return str.replace('%s',v.toString());}return null;}};};var index$50=errorEx$1;var unicode=createCommonjsModule(function(module){// This is autogenerated with esprima tools, see: // https://github.com/ariya/esprima/blob/master/esprima.js // // PS: oh God, I hate Unicode @@ -1339,7 +1336,7 @@ return undefined;}// JSON.parse compat if(typeof input!=='string')input=String(input);if(options==null)options={};if(options.reserved_keys==null)options.reserved_keys='ignore';if(options.reserved_keys==='throw'||options.reserved_keys==='ignore'){if(options.null_prototype==null){options.null_prototype=true;}}try{return parse(input,options);}catch(err){// jju is a recursive parser, so JSON.parse("{{{{{{{") could blow up the stack // // this catch is used to skip all those internal calls -if(err instanceof SyntaxError&&err.row!=null&&err.column!=null){var old_err=err;err=SyntaxError(old_err.message);err.column=old_err.column;err.row=old_err.row;}throw err;}};module.exports.tokenize=function tokenizeJSON(input,options){if(options==null)options={};options._tokenize=function(smth){if(options._addstack)smth.stack.unshift.apply(smth.stack,options._addstack);tokens.push(smth);};var tokens=[];tokens.data=module.exports.parse(input,options);return tokens;};});var errorEx=index$58;var fallback=parse_1;var JSONError=errorEx('JSONError',{fileName:errorEx.append('in %s')});var index$56=function index$56(x,reviver,filename){if(typeof reviver==='string'){filename=reviver;reviver=null;}try{try{return JSON.parse(x,reviver);}catch(err){fallback.parse(x,{mode:'json',reviver:reviver});throw err;}}catch(err){var jsonErr=new JSONError(err);if(filename){jsonErr.fileName=filename;}throw jsonErr;}};var parseJson$1=index$56;var parseJson_1=function parseJsonWrapper(json,filepath){try{return parseJson$1(json);}catch(err){err.message='JSON Error in '+filepath+':\n'+err.message;throw err;}};var path$3=require$$0$1;var readFile=readFile_1;var parseJson=parseJson_1;var loadPackageProp$1=function loadPackageProp(packageDir,options){var packagePath=path$3.join(packageDir,'package.json');function parseContent(content){if(!content)return null;var parsedContent=parseJson(content,packagePath);var packagePropValue=parsedContent[options.packageProp];if(!packagePropValue)return null;return{config:packagePropValue,filepath:packagePath};}return!options.sync?readFile(packagePath).then(parseContent):parseContent(readFile.sync(packagePath));};function isNothing(subject){return typeof subject==='undefined'||subject===null;}function isObject(subject){return(typeof subject==='undefined'?'undefined':_typeof(subject))==='object'&&subject!==null;}function toArray(sequence){if(Array.isArray(sequence))return sequence;else if(isNothing(sequence))return[];return[sequence];}function extend(target,source){var index,length,key,sourceKeys;if(source){sourceKeys=Object.keys(source);for(index=0,length=sourceKeys.length;indexlevel;}var objectOrArray=type==='[object Object]'||type==='[object Array]',duplicateIndex,duplicate;if(objectOrArray){duplicateIndex=state.duplicates.indexOf(object);duplicate=duplicateIndex!==-1;}if(state.tag!==null&&state.tag!=='?'||duplicate||state.indent!==2&&level>0){compact=false;}if(duplicate&&state.usedDuplicates[duplicateIndex]){state.dump='*ref_'+duplicateIndex;}else{if(objectOrArray&&duplicate&&!state.usedDuplicates[duplicateIndex]){state.usedDuplicates[duplicateIndex]=true;}if(type==='[object Object]'){if(block&&Object.keys(state.dump).length!==0){writeBlockMapping(state,level,state.dump,compact);if(duplicate){state.dump='&ref_'+duplicateIndex+state.dump;}}else{writeFlowMapping(state,level,state.dump);if(duplicate){state.dump='&ref_'+duplicateIndex+' '+state.dump;}}}else if(type==='[object Array]'){if(block&&state.dump.length!==0){writeBlockSequence(state,level,state.dump,compact);if(duplicate){state.dump='&ref_'+duplicateIndex+state.dump;}}else{writeFlowSequence(state,level,state.dump);if(duplicate){state.dump='&ref_'+duplicateIndex+' '+state.dump;}}}else if(type==='[object String]'){if(state.tag!=='?'){writeScalar(state,state.dump,level,iskey);}}else{if(state.skipInvalid)return false;throw new YAMLException$5('unacceptable kind of an object to dump '+type);}if(state.tag!==null&&state.tag!=='?'){state.dump='!<'+state.tag+'> '+state.dump;}}return true;}function getDuplicateReferences(object,state){var objects=[],duplicatesIndexes=[],index,length;inspectNode(object,objects,duplicatesIndexes);for(index=0,length=duplicatesIndexes.length;index} funcs - * @returns {Promise<*> | *} - A promise if `init` was one, otherwise result of function - * chain execution. - */var funcRunner$2=function funcRunner(init,funcs){var isAsync=isPromise(init);return funcs.reduce(isAsync===true?chainFuncsAsync:chainFuncsSync,init);};var yaml=index$62;var requireFromString=index$64;var readFile$2=readFile_1;var parseJson$2=parseJson_1;var funcRunner$1=funcRunner$2;var loadRc$1=function loadRc(filepath,options){function afterLoadExtensionlessRc(result){if(result)return result;if(options.rcExtensions)return loadRcWithExtensions();return null;}return!options.sync?loadExtensionlessRc().then(afterLoadExtensionlessRc):afterLoadExtensionlessRc(loadExtensionlessRc());function loadExtensionlessRc(){function parseExtensionlessRcFile(content){if(!content)return null;var pasedConfig=options.rcStrictJson?parseJson$2(content,filepath):yaml.safeLoad(content,{filename:filepath});return{config:pasedConfig,filepath:filepath};}return!options.sync?readRcFile().then(parseExtensionlessRcFile):parseExtensionlessRcFile(readRcFile());}function loadRcWithExtensions(){function makeRcFileParser(parse,extn,nextExtn){return function parseRcFile(content){if(content){// If the previous check returned an object with a config -// property, then it succeeded and this step can be skipped -if(content.config)return content;// If it just returned a string, then *this* check succeeded -var successFilepath=filepath+'.'+extn;return{config:parse(content,successFilepath),filepath:successFilepath};}// If not content was found in the file with extension, -// try the next possible extension -return nextExtn?readRcFile(nextExtn):null;};}var parseJsonRcFile=makeRcFileParser(parseJson$2,'json','yaml');var parseYaml=function parseYaml(content,filepath){return yaml.safeLoad(content,{filename:filepath});};var parseYamlRcFile=makeRcFileParser(parseYaml,'yaml','yml');var parseYmlRcFile=makeRcFileParser(parseYaml,'yml','js');var parseJsRcFile=makeRcFileParser(requireFromString,'js');return funcRunner$1(readRcFile('json'),[parseJsonRcFile,parseYamlRcFile,parseYmlRcFile,parseJsRcFile]);}function readRcFile(extension){var filepathWithExtension=extension?filepath+'.'+extension:filepath;return!options.sync?readFile$2(filepathWithExtension):readFile$2.sync(filepathWithExtension);}};var requireFromString$1=index$64;var readFile$3=readFile_1;var loadJs$1=function loadJs(filepath,options){function parseJsFile(content){if(!content)return null;return{config:requireFromString$1(content,filepath),filepath:filepath};}return!options.sync?readFile$3(filepath).then(parseJsFile):parseJsFile(readFile$3.sync(filepath));};var yaml$2=index$62;var requireFromString$2=index$64;var readFile$4=readFile_1;var parseJson$3=parseJson_1;var loadDefinedFile$1=function loadDefinedFile(filepath,options){function parseContent(content){if(!content){throw new Error('Config file is empty! Filepath - "'+filepath+'".');}var parsedConfig=function(){switch(options.format){case'json':return parseJson$3(content,filepath);case'yaml':return yaml$2.safeLoad(content,{filename:filepath});case'js':return requireFromString$2(content,filepath);default:return tryAllParsing(content,filepath);}}();if(!parsedConfig){throw new Error('Failed to parse "'+filepath+'" as JSON, JS, or YAML.');}return{config:parsedConfig,filepath:filepath};}return!options.sync?readFile$4(filepath,{throwNotFound:true}).then(parseContent):parseContent(readFile$4.sync(filepath,{throwNotFound:true}));};function tryAllParsing(content,filepath){return tryYaml(content,filepath,function(){return tryRequire(content,filepath,function(){return null;});});}function tryYaml(content,filepath,cb){try{var result=yaml$2.safeLoad(content,{filename:filepath});if(typeof result==='string'){return cb();}return result;}catch(e){return cb();}}function tryRequire(content,filepath,cb){try{return requireFromString$2(content,filepath);}catch(e){return cb();}}var path$2=require$$0$1;var isDir=index$54;var loadPackageProp=loadPackageProp$1;var loadRc=loadRc$1;var loadJs=loadJs$1;var loadDefinedFile=loadDefinedFile$1;var funcRunner=funcRunner$2;var createExplorer$1=function createExplorer(options){// When `options.sync` is `false` (default), + */var funcRunner$2=function funcRunner(init,funcs){var isAsync=init instanceof Promise;return funcs.reduce(isAsync===true?chainFuncsAsync:chainFuncsSync,init);};var yaml=index$54;var requireFromString=index$56;var readFile$2=readFile_1;var parseJson$2=parseJson_1;var funcRunner$1=funcRunner$2;var loadRc$1=function loadRc(filepath,options){if(!options.sync){return readFile$2(filepath).then(parseExtensionlessRcFile).then(checkExtensionlessRcResult);}else{return checkExtensionlessRcResult(parseExtensionlessRcFile(readFile$2.sync(filepath)));}function checkExtensionlessRcResult(result){if(result)return result;if(options.rcExtensions)return loadRcWithExtensions();return null;}function parseExtensionlessRcFile(content){if(!content)return null;var pasedConfig=options.rcStrictJson?parseJson$2(content,filepath):yaml.safeLoad(content,{filename:filepath});return{config:pasedConfig,filepath:filepath};}function loadRcWithExtensions(){var foundConfig=null;return funcRunner$1(readRcFile('json'),[function(jsonContent){// Since this is the first try, config cannot have been found, so don't +// check `if (foundConfig)`. +if(jsonContent){var successFilepath=filepath+'.json';foundConfig={config:parseJson$2(jsonContent,successFilepath),filepath:successFilepath};}else{return readRcFile('yaml');}},function(yamlContent){if(foundConfig){return;}else if(yamlContent){var successFilepath=filepath+'.yaml';foundConfig={config:yaml.safeLoad(yamlContent,{filename:successFilepath}),filepath:successFilepath};}else{return readRcFile('yml');}},function(ymlContent){if(foundConfig){return;}else if(ymlContent){var successFilepath=filepath+'.yml';foundConfig={config:yaml.safeLoad(ymlContent,{filename:successFilepath}),filepath:successFilepath};}else{return readRcFile('js');}},function(jsContent){if(foundConfig){return;}else if(jsContent){var successFilepath=filepath+'.js';foundConfig={config:requireFromString(jsContent,successFilepath),filepath:successFilepath};}else{return;}},function(){return foundConfig;}]);}function readRcFile(extension){var filepathWithExtension=filepath+'.'+extension;return!options.sync?readFile$2(filepathWithExtension):readFile$2.sync(filepathWithExtension);}};var requireFromString$1=index$56;var readFile$3=readFile_1;var loadJs$1=function loadJs(filepath,options){function parseJsFile(content){if(!content)return null;return{config:requireFromString$1(content,filepath),filepath:filepath};}return!options.sync?readFile$3(filepath).then(parseJsFile):parseJsFile(readFile$3.sync(filepath));};var yaml$2=index$54;var requireFromString$2=index$56;var readFile$4=readFile_1;var parseJson$3=parseJson_1;var loadDefinedFile$1=function loadDefinedFile(filepath,options){function parseContent(content){if(!content){throw new Error('Config file is empty! Filepath - "'+filepath+'".');}var parsedConfig=void 0;switch(options.format){case'json':parsedConfig=parseJson$3(content,filepath);break;case'yaml':parsedConfig=yaml$2.safeLoad(content,{filename:filepath});break;case'js':parsedConfig=requireFromString$2(content,filepath);break;default:parsedConfig=tryAllParsing(content,filepath);}if(!parsedConfig){throw new Error('Failed to parse "'+filepath+'" as JSON, JS, or YAML.');}return{config:parsedConfig,filepath:filepath};}return!options.sync?readFile$4(filepath,{throwNotFound:true}).then(parseContent):parseContent(readFile$4.sync(filepath,{throwNotFound:true}));};function tryAllParsing(content,filepath){return tryYaml(content,filepath,function(){return tryRequire(content,filepath,function(){return null;});});}function tryYaml(content,filepath,cb){try{var result=yaml$2.safeLoad(content,{filename:filepath});if(typeof result==='string'){return cb();}return result;}catch(e){return cb();}}function tryRequire(content,filepath,cb){try{return requireFromString$2(content,filepath);}catch(e){return cb();}}var fs$2=fs;/** + * async + */function isDirectory$1(filepath,cb){if(typeof cb!=='function'){throw new Error('expected a callback function');}if(typeof filepath!=='string'){cb(new Error('expected filepath to be a string'));return;}fs$2.stat(filepath,function(err,stats){if(err){if(err.code==='ENOENT'){cb(null,false);return;}cb(err);return;}cb(null,stats.isDirectory());});}/** + * sync + */isDirectory$1.sync=function isDirectorySync(filepath){if(typeof filepath!=='string'){throw new Error('expected filepath to be a string');}try{var stat=fs$2.statSync(filepath);return stat.isDirectory();}catch(err){if(err.code==='ENOENT'){return false;}else{throw err;}}return false;};/** + * Expose `isDirectory` + */var index$58=isDirectory$1;var path$3=require$$0$1;var isDirectory=index$58;var getDirectory$1=function getDirectory(filepath,sync){if(sync===true){return isDirectory.sync(filepath)?filepath:path$3.dirname(filepath);}return new Promise(function(resolve,reject){return isDirectory(filepath,function(err,filepathIsDirectory){if(err){return reject(err);}return resolve(filepathIsDirectory?filepath:path$3.dirname(filepath));});});};var path$1=require$$0$1;var loadPackageProp=loadPackageProp$1;var loadRc=loadRc$1;var loadJs=loadJs$1;var loadDefinedFile=loadDefinedFile$1;var funcRunner=funcRunner$2;var getDirectory=getDirectory$1;var createExplorer$1=function createExplorer(options){// When `options.sync` is `false` (default), // these cache Promises that resolve with results, not the results themselves. -var fileCache=options.cache?new Map():null;var directoryCache=options.cache?new Map():null;var transform=options.transform||identity;function clearFileCache(){if(fileCache)fileCache.clear();}function clearDirectoryCache(){if(directoryCache)directoryCache.clear();}function clearCaches(){clearFileCache();clearDirectoryCache();}function load(searchPath,configPath){if(!configPath&&options.configPath){configPath=options.configPath;}if(configPath){var absoluteConfigPath=path$2.resolve(process.cwd(),configPath);if(fileCache&&fileCache.has(absoluteConfigPath)){return fileCache.get(absoluteConfigPath);}var result=!options.sync?loadDefinedFile(absoluteConfigPath,options).then(transform):transform(loadDefinedFile(absoluteConfigPath,options));if(fileCache)fileCache.set(absoluteConfigPath,result);return result;}if(!searchPath)return!options.sync?Promise.resolve(null):null;var absoluteSearchPath=path$2.resolve(process.cwd(),searchPath);var searchPathDir=resolveDir(absoluteSearchPath,options.sync);return!options.sync?searchPathDir.then(searchDirectory):searchDirectory(searchPathDir);}function searchDirectory(directory){if(directoryCache&&directoryCache.has(directory)){return directoryCache.get(directory);}var result=funcRunner(!options.sync?Promise.resolve():undefined,[function(){if(!options.packageProp)return;return loadPackageProp(directory,options);},function(result){if(result||!options.rc)return result;return loadRc(path$2.join(directory,options.rc),options);},function(result){if(result||!options.js)return result;return loadJs(path$2.join(directory,options.js),options);},function(result){if(result)return result;var splitPath=directory.split(path$2.sep);var nextDirectory=splitPath.length>1?splitPath.slice(0,-1).join(path$2.sep):null;if(!nextDirectory||directory===options.stopDir)return null;return searchDirectory(nextDirectory);},transform]);if(directoryCache)directoryCache.set(directory,result);return result;}return{load:load,clearFileCache:clearFileCache,clearDirectoryCache:clearDirectoryCache,clearCaches:clearCaches};};function resolveDir(searchPath,sync){var dirForPath=function dirForPath(pathIsDir){return pathIsDir?searchPath:path$2.dirname(searchPath);};if(sync===true){return dirForPath(isDir.sync(searchPath));}return new Promise(function(resolve,reject){return isDir(searchPath,function(err,pathIsDir){if(err)return reject(err);return resolve(dirForPath(pathIsDir));});});}function identity(x){return x;}var require$$1$22=_package$3&&_package$3['default']||_package$3;index$48(require$$1$22);var path$1=require$$0$1;var oshomedir=index$50;var minimist=index$52;var createExplorer=createExplorer$1;var parsedCliArgs=minimist(process.argv);var index$46=function cosmiconfig(moduleName,options){options=Object.assign({packageProp:moduleName,rc:'.'+moduleName+'rc',js:moduleName+'.config.js',argv:'config',rcStrictJson:false,stopDir:oshomedir(),cache:true,sync:false},options);if(options.argv&&parsedCliArgs[options.argv]){options.configPath=path$1.resolve(parsedCliArgs[options.argv]);}return createExplorer(options);};var index$70=function index$70(xs,fn){var res=[];for(var i=0;i=0&&bi>0){begs=[];left=str.length;while(i>=0&&!result){if(i==ai){begs.push(i);ai=str.indexOf(a,i+1);}else if(begs.length==1){result=[begs.pop(),bi];}else{beg=begs.pop();if(beg=0?ai:bi;}if(begs.length){result=[left,right];}}return result;}var concatMap=index$70;var balanced=index$72;var index$68=expandTop;var escSlash='\0SLASH'+Math.random()+'\0';var escOpen='\0OPEN'+Math.random()+'\0';var escClose='\0CLOSE'+Math.random()+'\0';var escComma='\0COMMA'+Math.random()+'\0';var escPeriod='\0PERIOD'+Math.random()+'\0';function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0);}function escapeBraces(str){return str.split('\\\\').join(escSlash).split('\\{').join(escOpen).split('\\}').join(escClose).split('\\,').join(escComma).split('\\.').join(escPeriod);}function unescapeBraces(str){return str.split(escSlash).join('\\').split(escOpen).join('{').split(escClose).join('}').split(escComma).join(',').split(escPeriod).join('.');}// Basically just str.split(","), but handling cases +var fileCache=options.cache?new Map():null;var directoryCache=options.cache?new Map():null;var transform=options.transform||identity;var packageProp=options.packageProp;function clearFileCache(){if(fileCache)fileCache.clear();}function clearDirectoryCache(){if(directoryCache)directoryCache.clear();}function clearCaches(){clearFileCache();clearDirectoryCache();}function throwError(error){if(options.sync){throw error;}else{return Promise.reject(error);}}function load(searchPath,configPath){if(!configPath&&options.configPath){configPath=options.configPath;}if(configPath){var absoluteConfigPath=path$1.resolve(process.cwd(),configPath);if(fileCache&&fileCache.has(absoluteConfigPath)){return fileCache.get(absoluteConfigPath);}var _load=void 0;if(path$1.basename(absoluteConfigPath)==='package.json'){if(!packageProp){return throwError(new Error('Please specify the packageProp option. The configPath argument cannot point to a package.json file if packageProp is false.'));}_load=function _load(){return loadPackageProp(path$1.dirname(absoluteConfigPath),{packageProp:packageProp,sync:options.sync});};}else{_load=function _load(){return loadDefinedFile(absoluteConfigPath,{sync:options.sync,format:options.format});};}var loadResult=_load();var result=loadResult instanceof Promise?loadResult.then(transform):transform(loadResult);if(fileCache)fileCache.set(absoluteConfigPath,result);return result;}if(!searchPath)return!options.sync?Promise.resolve(null):null;var absoluteSearchPath=path$1.resolve(process.cwd(),searchPath);var searchPathDir=getDirectory(absoluteSearchPath,options.sync);return searchPathDir instanceof Promise?searchPathDir.then(searchDirectory):searchDirectory(searchPathDir);}function searchDirectory(directory){if(directoryCache&&directoryCache.has(directory)){return directoryCache.get(directory);}var result=funcRunner(!options.sync?Promise.resolve():undefined,[function(){if(!packageProp)return;return loadPackageProp(directory,{packageProp:packageProp,sync:options.sync});},function(result){if(result||!options.rc)return result;return loadRc(path$1.join(directory,options.rc),{sync:options.sync,rcStrictJson:options.rcStrictJson,rcExtensions:options.rcExtensions});},function(result){if(result||!options.js)return result;return loadJs(path$1.join(directory,options.js),{sync:options.sync});},function(result){if(result)return result;var nextDirectory=path$1.dirname(directory);if(nextDirectory===directory||directory===options.stopDir)return null;return searchDirectory(nextDirectory);},transform]);if(directoryCache)directoryCache.set(directory,result);return result;}return{load:load,clearFileCache:clearFileCache,clearDirectoryCache:clearDirectoryCache,clearCaches:clearCaches};};function identity(x){return x;}var os$2=os;var createExplorer=createExplorer$1;var homedir=os$2.homedir();var index$46=function cosmiconfig(moduleName,options){options=Object.assign({},{packageProp:moduleName,rc:'.'+moduleName+'rc',js:moduleName+'.config.js',rcStrictJson:false,stopDir:homedir,cache:true,sync:false},options);return createExplorer(options);};var index$62=function index$62(xs,fn){var res=[];for(var i=0;i=0&&bi>0){begs=[];left=str.length;while(i>=0&&!result){if(i==ai){begs.push(i);ai=str.indexOf(a,i+1);}else if(begs.length==1){result=[begs.pop(),bi];}else{beg=begs.pop();if(beg=0?ai:bi;}if(begs.length){result=[left,right];}}return result;}var concatMap=index$62;var balanced=index$64;var index$60=expandTop;var escSlash='\0SLASH'+Math.random()+'\0';var escOpen='\0OPEN'+Math.random()+'\0';var escClose='\0CLOSE'+Math.random()+'\0';var escComma='\0COMMA'+Math.random()+'\0';var escPeriod='\0PERIOD'+Math.random()+'\0';function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0);}function escapeBraces(str){return str.split('\\\\').join(escSlash).split('\\{').join(escOpen).split('\\}').join(escClose).split('\\,').join(escComma).split('\\.').join(escPeriod);}function unescapeBraces(str){return str.split(escSlash).join('\\').split(escOpen).join('{').split(escClose).join('}').split(escComma).join(',').split(escPeriod).join('.');}// Basically just str.split(","), but handling cases // where we have nested braced sections, which should be // treated as individual members, like {a,{b,c},d} function parseCommaParts(str){if(!str)return[''];var parts=[];var m=balanced('{','}',str);if(!m)return str.split(',');var pre=m.pre;var body=m.body;var post=m.post;var p=pre.split(',');p[p.length-1]+='{'+body+'}';var postParts=parseCommaParts(post);if(post.length){p[p.length-1]+=postParts.shift();p.push.apply(p,postParts);}parts.push.apply(parts,p);return parts;}function expandTop(str){if(!str)return[];// I don't know why Bash 4.3 does this, but it does. @@ -1612,7 +1608,7 @@ if(m.post.match(/,.*\}/)){str=m.pre+'{'+m.body+escClose+m.post;return expand$1(s n=expand$1(n[0],false).map(embrace);if(n.length===1){var post=m.post.length?expand$1(m.post,false):[''];return post.map(function(p){return m.pre+n[0]+p;});}}}// at this point, n is the parts, and we know it's not a comma set // with a single entry. // no need to expand pre, since it is guaranteed to be free of brace-sets -var pre=m.pre;var post=m.post.length?expand$1(m.post,false):[''];var N;if(isSequence){var x=numeric(n[0]);var y=numeric(n[1]);var width=Math.max(n[0].length,n[1].length);var incr=n.length==3?Math.abs(numeric(n[2])):1;var test=lte;var reverse=y0){var z=new Array(need+1).join('0');if(i<0)c='-'+z+c.slice(1);else c=z+c;}}}N.push(c);}}else{N=concatMap(n,function(el){return expand$1(el,false);});}for(var j=0;j0){var z=new Array(need+1).join('0');if(i<0)c='-'+z+c.slice(1);else c=z+c;}}}N.push(c);}}else{N=concatMap(n,function(el){return expand$1(el,false);});}for(var j=0;j any number of characters var star=qmark+'*?';// ** when dots are allowed. Anything goes, except .. and . @@ -1838,12 +1834,14 @@ return partial;}else if(pi===pl){// ran out of pattern, still have file left. // a/* should match a/b/ var emptyFileEnd=fi===fl-1&&file[fi]==='';return emptyFileEnd;}// should be unreachable. throw new Error('wtf?');};// replace stuff like \* with * -function globUnescape(s){return s.replace(/\\(.)/g,'$1');}function regExpEscape(s){return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&');}var cosmiconfig=index$46;var minimatch=minimatch_1;var asyncWithCache=cosmiconfig("prettier");var asyncNoCache=cosmiconfig("prettier",{cache:false});var syncWithCache=cosmiconfig("prettier",{sync:true});var syncNoCache=cosmiconfig("prettier",{cache:false,sync:true});function resolveConfig(filePath,opts){var useCache=!(opts&&opts.useCache===false);return(useCache?asyncWithCache:asyncNoCache).load(filePath).then(function(result){return!result?null:mergeOverrides(result.config,filePath);});}resolveConfig.sync=function(filePath,opts){var useCache=!(opts&&opts.useCache===false);var result=(useCache?syncWithCache:syncNoCache).load(filePath);return!result?null:mergeOverrides(result.config,filePath);};function clearCache(){syncWithCache.clearCaches();asyncWithCache.clearCaches();}function resolveConfigFile(filePath){return asyncNoCache.load(filePath).then(function(result){return result?result.filepath:null;});}resolveConfigFile.sync=function(filePath){var result=syncNoCache.load(filePath);return result?result.filepath:null;};function mergeOverrides(config,filePath){var options=Object.assign({},config);if(filePath&&options.overrides){var _iteratorNormalCompletion13=true;var _didIteratorError13=false;var _iteratorError13=undefined;try{for(var _iterator13=options.overrides[Symbol.iterator](),_step13;!(_iteratorNormalCompletion13=(_step13=_iterator13.next()).done);_iteratorNormalCompletion13=true){var override=_step13.value;if(pathMatchesGlobs(filePath,override.files,override.excludeFiles)){Object.assign(options,override.options);}}}catch(err){_didIteratorError13=true;_iteratorError13=err;}finally{try{if(!_iteratorNormalCompletion13&&_iterator13.return){_iterator13.return();}}finally{if(_didIteratorError13){throw _iteratorError13;}}}}delete options.overrides;return options;}// Based on eslint: https://github.com/eslint/eslint/blob/master/lib/config/config-ops.js +function globUnescape(s){return s.replace(/\\(.)/g,'$1');}function regExpEscape(s){return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&');}var index$68=function index$68(to,from){// TODO: use `Reflect.ownKeys()` when targeting Node.js 6 +var _iteratorNormalCompletion13=true;var _didIteratorError13=false;var _iteratorError13=undefined;try{for(var _iterator13=Object.getOwnPropertyNames(from).concat(Object.getOwnPropertySymbols(from))[Symbol.iterator](),_step13;!(_iteratorNormalCompletion13=(_step13=_iterator13.next()).done);_iteratorNormalCompletion13=true){var prop=_step13.value;Object.defineProperty(to,prop,Object.getOwnPropertyDescriptor(from,prop));}}catch(err){_didIteratorError13=true;_iteratorError13=err;}finally{try{if(!_iteratorNormalCompletion13&&_iterator13.return){_iterator13.return();}}finally{if(_didIteratorError13){throw _iteratorError13;}}}};var mimicFn=index$68;var cacheStore=new WeakMap();var defaultCacheKey=function defaultCacheKey(x){if(arguments.length===1&&(x===null||x===undefined||typeof x!=='function'&&(typeof x==='undefined'?'undefined':_typeof(x))!=='object')){return x;}return JSON.stringify(arguments);};var index$66=function index$66(fn,opts){opts=Object.assign({cacheKey:defaultCacheKey,cache:new Map()},opts);var memoized=function memoized(){var cache=cacheStore.get(memoized);var key=opts.cacheKey.apply(null,arguments);if(cache.has(key)){var c=cache.get(key);if(typeof opts.maxAge!=='number'||Date.now()=0&&text.charAt(index-1)==="\r"){return"\r\n";}return"\n";}function attachComments(text,ast,opts){var astComments=ast.comments;if(astComments){delete ast.comments;comments.attach(astComments,ast,text,opts);}ast.tokens=[];opts.originalText=text.trimRight();return astComments;}function hasPragma(text){var pragmas=Object.keys(docblock.parse(docblock.extract(text)));return pragmas.indexOf("prettier")!==-1||pragmas.indexOf("format")!==-1;}function ensureAllCommentsPrinted(astComments){if(!astComments){return;}for(var _i34=0;_i34=0&&text.charAt(index-1)==="\r"){return"\r\n";}return"\n";}function attachComments(text,ast,opts){var astComments=ast.comments;if(astComments){delete ast.comments;comments.attach(astComments,ast,text,opts);}ast.tokens=[];opts.originalText=text.trimRight();return astComments;}function hasPragma(text){var pragmas=Object.keys(docblock.parse(docblock.extract(text)));return pragmas.indexOf("prettier")!==-1||pragmas.indexOf("format")!==-1;}function ensureAllCommentsPrinted(astComments){if(!astComments){return;}for(var _i34=0;_i34=0){var cursorNodeAndParents=findNodeAtOffset(ast,opts.cursorOffset);var cursorNode=cursorNodeAndParents.node;if(cursorNode){cursorOffset=opts.cursorOffset-util$1.locStart(cursorNode);opts.cursorNode=cursorNode;}}var astComments=attachComments(text,ast,opts);var doc=printAstToDoc(ast,opts,addAlignmentSize);opts.newLine=guessLineEnding(text);var toStringResult=_printDocToString(doc,opts);var str=toStringResult.formatted;var cursorOffsetResult=toStringResult.cursor;ensureAllCommentsPrinted(astComments);// Remove extra leading indentation as well as the added indentation after last newline -if(addAlignmentSize>0){return{formatted:str.trim()+opts.newLine};}if(cursorOffset!==undefined){return{formatted:str,cursorOffset:cursorOffsetResult+cursorOffset};}return{formatted:str};}function _format(text,opts,addAlignmentSize){return _formatWithCursor(text,opts,addAlignmentSize).formatted;}function findSiblingAncestors(startNodeAndParents,endNodeAndParents){var resultStartNode=startNodeAndParents.node;var resultEndNode=endNodeAndParents.node;if(resultStartNode===resultEndNode){return{startNode:resultStartNode,endNode:resultEndNode};}var _iteratorNormalCompletion14=true;var _didIteratorError14=false;var _iteratorError14=undefined;try{for(var _iterator14=endNodeAndParents.parentNodes[Symbol.iterator](),_step14;!(_iteratorNormalCompletion14=(_step14=_iterator14.next()).done);_iteratorNormalCompletion14=true){var endParent=_step14.value;if(endParent.type!=="Program"&&endParent.type!=="File"&&util$1.locStart(endParent)>=util$1.locStart(startNodeAndParents.node)){resultEndNode=endParent;}else{break;}}}catch(err){_didIteratorError14=true;_iteratorError14=err;}finally{try{if(!_iteratorNormalCompletion14&&_iterator14.return){_iterator14.return();}}finally{if(_didIteratorError14){throw _iteratorError14;}}}var _iteratorNormalCompletion15=true;var _didIteratorError15=false;var _iteratorError15=undefined;try{for(var _iterator15=startNodeAndParents.parentNodes[Symbol.iterator](),_step15;!(_iteratorNormalCompletion15=(_step15=_iterator15.next()).done);_iteratorNormalCompletion15=true){var startParent=_step15.value;if(startParent.type!=="Program"&&startParent.type!=="File"&&util$1.locEnd(startParent)<=util$1.locEnd(endNodeAndParents.node)){resultStartNode=startParent;}else{break;}}}catch(err){_didIteratorError15=true;_iteratorError15=err;}finally{try{if(!_iteratorNormalCompletion15&&_iterator15.return){_iterator15.return();}}finally{if(_didIteratorError15){throw _iteratorError15;}}}return{startNode:resultStartNode,endNode:resultEndNode};}function findNodeAtOffset(node,offset,predicate,parentNodes){predicate=predicate||function(){return true;};parentNodes=parentNodes||[];var start=util$1.locStart(node);var end=util$1.locEnd(node);if(start<=offset&&offset<=end){var _iteratorNormalCompletion16=true;var _didIteratorError16=false;var _iteratorError16=undefined;try{for(var _iterator16=comments.getSortedChildNodes(node)[Symbol.iterator](),_step16;!(_iteratorNormalCompletion16=(_step16=_iterator16.next()).done);_iteratorNormalCompletion16=true){var childNode=_step16.value;var childResult=findNodeAtOffset(childNode,offset,predicate,[node].concat(parentNodes));if(childResult){return childResult;}}}catch(err){_didIteratorError16=true;_iteratorError16=err;}finally{try{if(!_iteratorNormalCompletion16&&_iterator16.return){_iterator16.return();}}finally{if(_didIteratorError16){throw _iteratorError16;}}}if(predicate(node)){return{node:node,parentNodes:parentNodes};}}}// See https://www.ecma-international.org/ecma-262/5.1/#sec-A.5 +if(addAlignmentSize>0){return{formatted:str.trim()+opts.newLine};}if(cursorOffset!==undefined){return{formatted:str,cursorOffset:cursorOffsetResult+cursorOffset};}return{formatted:str};}function _format(text,opts,addAlignmentSize){return _formatWithCursor(text,opts,addAlignmentSize).formatted;}function findSiblingAncestors(startNodeAndParents,endNodeAndParents){var resultStartNode=startNodeAndParents.node;var resultEndNode=endNodeAndParents.node;if(resultStartNode===resultEndNode){return{startNode:resultStartNode,endNode:resultEndNode};}var _iteratorNormalCompletion15=true;var _didIteratorError15=false;var _iteratorError15=undefined;try{for(var _iterator15=endNodeAndParents.parentNodes[Symbol.iterator](),_step15;!(_iteratorNormalCompletion15=(_step15=_iterator15.next()).done);_iteratorNormalCompletion15=true){var endParent=_step15.value;if(endParent.type!=="Program"&&endParent.type!=="File"&&util$1.locStart(endParent)>=util$1.locStart(startNodeAndParents.node)){resultEndNode=endParent;}else{break;}}}catch(err){_didIteratorError15=true;_iteratorError15=err;}finally{try{if(!_iteratorNormalCompletion15&&_iterator15.return){_iterator15.return();}}finally{if(_didIteratorError15){throw _iteratorError15;}}}var _iteratorNormalCompletion16=true;var _didIteratorError16=false;var _iteratorError16=undefined;try{for(var _iterator16=startNodeAndParents.parentNodes[Symbol.iterator](),_step16;!(_iteratorNormalCompletion16=(_step16=_iterator16.next()).done);_iteratorNormalCompletion16=true){var startParent=_step16.value;if(startParent.type!=="Program"&&startParent.type!=="File"&&util$1.locEnd(startParent)<=util$1.locEnd(endNodeAndParents.node)){resultStartNode=startParent;}else{break;}}}catch(err){_didIteratorError16=true;_iteratorError16=err;}finally{try{if(!_iteratorNormalCompletion16&&_iterator16.return){_iterator16.return();}}finally{if(_didIteratorError16){throw _iteratorError16;}}}return{startNode:resultStartNode,endNode:resultEndNode};}function findNodeAtOffset(node,offset,predicate,parentNodes){predicate=predicate||function(){return true;};parentNodes=parentNodes||[];var start=util$1.locStart(node);var end=util$1.locEnd(node);if(start<=offset&&offset<=end){var _iteratorNormalCompletion17=true;var _didIteratorError17=false;var _iteratorError17=undefined;try{for(var _iterator17=comments.getSortedChildNodes(node)[Symbol.iterator](),_step17;!(_iteratorNormalCompletion17=(_step17=_iterator17.next()).done);_iteratorNormalCompletion17=true){var childNode=_step17.value;var childResult=findNodeAtOffset(childNode,offset,predicate,[node].concat(parentNodes));if(childResult){return childResult;}}}catch(err){_didIteratorError17=true;_iteratorError17=err;}finally{try{if(!_iteratorNormalCompletion17&&_iterator17.return){_iterator17.return();}}finally{if(_didIteratorError17){throw _iteratorError17;}}}if(predicate(node)){return{node:node,parentNodes:parentNodes};}}}// See https://www.ecma-international.org/ecma-262/5.1/#sec-A.5 function isSourceElement(opts,node){if(node==null){return false;}switch(node.type||node.kind){case"ObjectExpression":// JSON case"ArrayExpression":// JSON case"StringLiteral":// JSON diff --git a/website/static/lib/parser-babylon.js b/website/static/lib/parser-babylon.js index d3c28fcad..453258369 100644 --- a/website/static/lib/parser-babylon.js +++ b/website/static/lib/parser-babylon.js @@ -17,7 +17,7 @@ var babylon = function () { return e = { exports: {} }, t(e, e.exports), e.exports; }function parse(t, e, s) { var i = index, - r = { sourceType: "module", allowImportExportEverywhere: !0, allowReturnOutsideFunction: !0, plugins: ["jsx", "flow", "doExpressions", "objectRestSpread", "decorators", "classProperties", "exportExtensions", "asyncGenerators", "functionBind", "functionSent", "dynamicImport", "numericSeparator", "importMeta", "optionalCatchBinding", "optionalChaining"] }, + r = { sourceType: "module", allowImportExportEverywhere: !0, allowReturnOutsideFunction: !0, plugins: ["jsx", "flow", "doExpressions", "objectRestSpread", "decorators", "classProperties", "exportExtensions", "asyncGenerators", "functionBind", "functionSent", "dynamicImport", "numericSeparator", "importMeta", "optionalCatchBinding", "optionalChaining", "classPrivateProperties"] }, a = s && "json" === s.parser ? "parseExpression" : "parse";var n = void 0;try { n = i[a](t, r); } catch (e) { @@ -114,22 +114,22 @@ var babylon = function () { t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e; }, w = !0, - k = function k(t, e) { + N = function N(t, e) { void 0 === e && (e = {}), this.label = t, this.keyword = e.keyword, this.beforeExpr = !!e.beforeExpr, this.startsExpr = !!e.startsExpr, this.rightAssociative = !!e.rightAssociative, this.isLoop = !!e.isLoop, this.isAssign = !!e.isAssign, this.prefix = !!e.prefix, this.postfix = !!e.postfix, this.binop = e.binop || null, this.updateContext = null; }, - N = function (t) { + k = function (t) { function e(e, s) { return void 0 === s && (s = {}), s.keyword = e, t.call(this, e, s) || this; }return A(e, t), e; - }(k), - E = function (t) { + }(N), + C = function (t) { function e(e, s) { return t.call(this, e, { beforeExpr: w, binop: s }) || this; }return A(e, t), e; - }(k), - C = { num: new k("num", { startsExpr: !0 }), bigint: new k("bigint", { startsExpr: !0 }), regexp: new k("regexp", { startsExpr: !0 }), string: new k("string", { startsExpr: !0 }), name: new k("name", { startsExpr: !0 }), eof: new k("eof"), bracketL: new k("[", { beforeExpr: w, startsExpr: !0 }), bracketR: new k("]"), braceL: new k("{", { beforeExpr: w, startsExpr: !0 }), braceBarL: new k("{|", { beforeExpr: w, startsExpr: !0 }), braceR: new k("}"), braceBarR: new k("|}"), parenL: new k("(", { beforeExpr: w, startsExpr: !0 }), parenR: new k(")"), comma: new k(",", { beforeExpr: w }), semi: new k(";", { beforeExpr: w }), colon: new k(":", { beforeExpr: w }), doubleColon: new k("::", { beforeExpr: w }), dot: new k("."), question: new k("?", { beforeExpr: w }), questionDot: new k("?."), arrow: new k("=>", { beforeExpr: w }), template: new k("template"), ellipsis: new k("...", { beforeExpr: w }), backQuote: new k("`", { startsExpr: !0 }), dollarBraceL: new k("${", { beforeExpr: w, startsExpr: !0 }), at: new k("@"), hash: new k("#"), eq: new k("=", { beforeExpr: w, isAssign: !0 }), assign: new k("_=", { beforeExpr: w, isAssign: !0 }), incDec: new k("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }), bang: new k("!", { beforeExpr: w, prefix: !0, startsExpr: !0 }), tilde: new k("~", { beforeExpr: w, prefix: !0, startsExpr: !0 }), logicalOR: new E("||", 1), logicalAND: new E("&&", 2), bitwiseOR: new E("|", 3), bitwiseXOR: new E("^", 4), bitwiseAND: new E("&", 5), equality: new E("==/!=", 6), relational: new E("", 7), bitShift: new E("<>", 8), plusMin: new k("+/-", { beforeExpr: w, binop: 9, prefix: !0, startsExpr: !0 }), modulo: new E("%", 10), star: new E("*", 10), slash: new E("/", 10), exponent: new k("**", { beforeExpr: w, binop: 11, rightAssociative: !0 }) }, - S = { break: new N("break"), case: new N("case", { beforeExpr: w }), catch: new N("catch"), continue: new N("continue"), debugger: new N("debugger"), default: new N("default", { beforeExpr: w }), do: new N("do", { isLoop: !0, beforeExpr: w }), else: new N("else", { beforeExpr: w }), finally: new N("finally"), for: new N("for", { isLoop: !0 }), function: new N("function", { startsExpr: !0 }), if: new N("if"), return: new N("return", { beforeExpr: w }), switch: new N("switch"), throw: new N("throw", { beforeExpr: w }), try: new N("try"), var: new N("var"), let: new N("let"), const: new N("const"), while: new N("while", { isLoop: !0 }), with: new N("with"), new: new N("new", { beforeExpr: w, startsExpr: !0 }), this: new N("this", { startsExpr: !0 }), super: new N("super", { startsExpr: !0 }), class: new N("class"), extends: new N("extends", { beforeExpr: w }), export: new N("export"), import: new N("import", { startsExpr: !0 }), yield: new N("yield", { beforeExpr: w, startsExpr: !0 }), null: new N("null", { startsExpr: !0 }), true: new N("true", { startsExpr: !0 }), false: new N("false", { startsExpr: !0 }), in: new N("in", { beforeExpr: w, binop: 7 }), instanceof: new N("instanceof", { beforeExpr: w, binop: 7 }), typeof: new N("typeof", { beforeExpr: w, prefix: !0, startsExpr: !0 }), void: new N("void", { beforeExpr: w, prefix: !0, startsExpr: !0 }), delete: new N("delete", { beforeExpr: w, prefix: !0, startsExpr: !0 }) };Object.keys(S).forEach(function (t) { - C["_" + t] = S[t]; + }(N), + E = { num: new N("num", { startsExpr: !0 }), bigint: new N("bigint", { startsExpr: !0 }), regexp: new N("regexp", { startsExpr: !0 }), string: new N("string", { startsExpr: !0 }), name: new N("name", { startsExpr: !0 }), eof: new N("eof"), bracketL: new N("[", { beforeExpr: w, startsExpr: !0 }), bracketR: new N("]"), braceL: new N("{", { beforeExpr: w, startsExpr: !0 }), braceBarL: new N("{|", { beforeExpr: w, startsExpr: !0 }), braceR: new N("}"), braceBarR: new N("|}"), parenL: new N("(", { beforeExpr: w, startsExpr: !0 }), parenR: new N(")"), comma: new N(",", { beforeExpr: w }), semi: new N(";", { beforeExpr: w }), colon: new N(":", { beforeExpr: w }), doubleColon: new N("::", { beforeExpr: w }), dot: new N("."), question: new N("?", { beforeExpr: w }), questionDot: new N("?."), arrow: new N("=>", { beforeExpr: w }), template: new N("template"), ellipsis: new N("...", { beforeExpr: w }), backQuote: new N("`", { startsExpr: !0 }), dollarBraceL: new N("${", { beforeExpr: w, startsExpr: !0 }), at: new N("@"), hash: new N("#"), eq: new N("=", { beforeExpr: w, isAssign: !0 }), assign: new N("_=", { beforeExpr: w, isAssign: !0 }), incDec: new N("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }), bang: new N("!", { beforeExpr: w, prefix: !0, startsExpr: !0 }), tilde: new N("~", { beforeExpr: w, prefix: !0, startsExpr: !0 }), logicalOR: new C("||", 1), logicalAND: new C("&&", 2), bitwiseOR: new C("|", 3), bitwiseXOR: new C("^", 4), bitwiseAND: new C("&", 5), equality: new C("==/!=", 6), relational: new C("", 7), bitShift: new C("<>", 8), plusMin: new N("+/-", { beforeExpr: w, binop: 9, prefix: !0, startsExpr: !0 }), modulo: new C("%", 10), star: new C("*", 10), slash: new C("/", 10), exponent: new N("**", { beforeExpr: w, binop: 11, rightAssociative: !0 }) }, + S = { break: new k("break"), case: new k("case", { beforeExpr: w }), catch: new k("catch"), continue: new k("continue"), debugger: new k("debugger"), default: new k("default", { beforeExpr: w }), do: new k("do", { isLoop: !0, beforeExpr: w }), else: new k("else", { beforeExpr: w }), finally: new k("finally"), for: new k("for", { isLoop: !0 }), function: new k("function", { startsExpr: !0 }), if: new k("if"), return: new k("return", { beforeExpr: w }), switch: new k("switch"), throw: new k("throw", { beforeExpr: w }), try: new k("try"), var: new k("var"), let: new k("let"), const: new k("const"), while: new k("while", { isLoop: !0 }), with: new k("with"), new: new k("new", { beforeExpr: w, startsExpr: !0 }), this: new k("this", { startsExpr: !0 }), super: new k("super", { startsExpr: !0 }), class: new k("class"), extends: new k("extends", { beforeExpr: w }), export: new k("export"), import: new k("import", { startsExpr: !0 }), yield: new k("yield", { beforeExpr: w, startsExpr: !0 }), null: new k("null", { startsExpr: !0 }), true: new k("true", { startsExpr: !0 }), false: new k("false", { startsExpr: !0 }), in: new k("in", { beforeExpr: w, binop: 7 }), instanceof: new k("instanceof", { beforeExpr: w, binop: 7 }), typeof: new k("typeof", { beforeExpr: w, prefix: !0, startsExpr: !0 }), void: new k("void", { beforeExpr: w, prefix: !0, startsExpr: !0 }), delete: new k("delete", { beforeExpr: w, prefix: !0, startsExpr: !0 }) };Object.keys(S).forEach(function (t) { + E["_" + t] = S[t]; });var L = { 6: i("enum await"), strict: i("implements interface let package private protected public static yield"), strictBind: i("eval arguments") }, I = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this let const class extends export import yield super"), M = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", @@ -145,21 +145,21 @@ var babylon = function () { }, U = { braceStatement: new V("{", !1), braceExpression: new V("{", !0), templateQuasi: new V("${", !0), parenStatement: new V("(", !1), parenExpression: new V("(", !0), template: new V("`", !0, !0, function (t) { return t.readTmplToken(); - }), functionExpression: new V("function", !0) };C.parenR.updateContext = C.braceR.updateContext = function () { + }), functionExpression: new V("function", !0) };E.parenR.updateContext = E.braceR.updateContext = function () { if (1 !== this.state.context.length) { var t = this.state.context.pop();t === U.braceStatement && this.curContext() === U.functionExpression ? (this.state.context.pop(), this.state.exprAllowed = !1) : t === U.templateQuasi ? this.state.exprAllowed = !0 : this.state.exprAllowed = !t.isExpr; } else this.state.exprAllowed = !0; - }, C.name.updateContext = function (t) { - "of" !== this.state.value || this.curContext() !== U.parenStatement ? (this.state.exprAllowed = !1, t !== C._let && t !== C._const && t !== C._var || F.test(this.input.slice(this.state.end)) && (this.state.exprAllowed = !0)) : this.state.exprAllowed = !t.beforeExpr; - }, C.braceL.updateContext = function (t) { + }, E.name.updateContext = function (t) { + "of" !== this.state.value || this.curContext() !== U.parenStatement ? (this.state.exprAllowed = !1, t !== E._let && t !== E._const && t !== E._var || F.test(this.input.slice(this.state.end)) && (this.state.exprAllowed = !0)) : this.state.exprAllowed = !t.beforeExpr; + }, E.braceL.updateContext = function (t) { this.state.context.push(this.braceIsBlock(t) ? U.braceStatement : U.braceExpression), this.state.exprAllowed = !0; - }, C.dollarBraceL.updateContext = function () { + }, E.dollarBraceL.updateContext = function () { this.state.context.push(U.templateQuasi), this.state.exprAllowed = !0; - }, C.parenL.updateContext = function (t) { - var e = t === C._if || t === C._for || t === C._with || t === C._while;this.state.context.push(e ? U.parenStatement : U.parenExpression), this.state.exprAllowed = !0; - }, C.incDec.updateContext = function () {}, C._function.updateContext = function () { + }, E.parenL.updateContext = function (t) { + var e = t === E._if || t === E._for || t === E._with || t === E._while;this.state.context.push(e ? U.parenStatement : U.parenExpression), this.state.exprAllowed = !0; + }, E.incDec.updateContext = function () {}, E._function.updateContext = function () { this.curContext() !== U.braceStatement && this.state.context.push(U.functionExpression), this.state.exprAllowed = !1; - }, C.backQuote.updateContext = function () { + }, E.backQuote.updateContext = function () { this.curContext() === U.template ? this.state.context.pop() : this.state.context.push(U.template), this.state.exprAllowed = !1; };var W = function W(t, e) { this.line = t, this.column = e; @@ -223,7 +223,7 @@ var babylon = function () { }())), G = function () { function t() {}return t.prototype.init = function (t, e) { - this.strict = !1 !== t.strictMode && "module" === t.sourceType, this.input = e, this.potentialArrowAt = -1, this.inMethod = this.inFunction = this.inGenerator = this.inAsync = this.inPropertyName = this.inType = this.inClassProperty = this.noAnonFunctionType = !1, this.classLevel = 0, this.labels = [], this.decoratorStack = [[]], this.tokens = [], this.comments = [], this.trailingComments = [], this.leadingComments = [], this.commentStack = [], this.commentPreviousNode = null, this.pos = this.lineStart = 0, this.curLine = t.startLine, this.type = C.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = [U.braceStatement], this.exprAllowed = !0, this.containsEsc = this.containsOctal = !1, this.octalPosition = null, this.invalidTemplateEscapePosition = null, this.exportedIdentifiers = []; + this.strict = !1 !== t.strictMode && "module" === t.sourceType, this.input = e, this.potentialArrowAt = -1, this.inMethod = this.inFunction = this.inGenerator = this.inAsync = this.inPropertyName = this.inType = this.inClassProperty = this.noAnonFunctionType = !1, this.classLevel = 0, this.labels = [], this.decoratorStack = [[]], this.tokens = [], this.comments = [], this.trailingComments = [], this.leadingComments = [], this.commentStack = [], this.commentPreviousNode = null, this.pos = this.lineStart = 0, this.curLine = t.startLine, this.type = E.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = [U.braceStatement], this.exprAllowed = !0, this.containsEsc = this.containsOctal = !1, this.octalPosition = null, this.invalidTemplateEscapePosition = null, this.exportedIdentifiers = []; }, t.prototype.curPosition = function () { return new W(this.curLine, this.pos - this.lineStart); }, t.prototype.clone = function (e) { @@ -242,35 +242,35 @@ var babylon = function () { }return A(e, t), e.prototype.addExtra = function (t, e, s) { t && ((t.extra = t.extra || {})[e] = s); }, e.prototype.isRelational = function (t) { - return this.match(C.relational) && this.state.value === t; + return this.match(E.relational) && this.state.value === t; }, e.prototype.expectRelational = function (t) { - this.isRelational(t) ? this.next() : this.unexpected(null, C.relational); + this.isRelational(t) ? this.next() : this.unexpected(null, E.relational); }, e.prototype.eatRelational = function (t) { return !!this.isRelational(t) && (this.next(), !0); }, e.prototype.isContextual = function (t) { - return this.match(C.name) && this.state.value === t; + return this.match(E.name) && this.state.value === t; }, e.prototype.eatContextual = function (t) { - return this.state.value === t && this.eat(C.name); + return this.state.value === t && this.eat(E.name); }, e.prototype.expectContextual = function (t, e) { this.eatContextual(t) || this.unexpected(null, e); }, e.prototype.canInsertSemicolon = function () { - return this.match(C.eof) || this.match(C.braceR) || this.hasPrecedingLineBreak(); + return this.match(E.eof) || this.match(E.braceR) || this.hasPrecedingLineBreak(); }, e.prototype.hasPrecedingLineBreak = function () { return F.test(this.input.slice(this.state.lastTokEnd, this.state.start)); }, e.prototype.isLineTerminator = function () { - return this.eat(C.semi) || this.canInsertSemicolon(); + return this.eat(E.semi) || this.canInsertSemicolon(); }, e.prototype.semicolon = function () { - this.isLineTerminator() || this.unexpected(null, C.semi); + this.isLineTerminator() || this.unexpected(null, E.semi); }, e.prototype.expect = function (t, e) { this.eat(t) || this.unexpected(e, t); }, e.prototype.unexpected = function (t, e) { throw void 0 === e && (e = "Unexpected token"), "string" != typeof e && (e = "Unexpected token, expected " + e.label), this.raise(null != t ? t : this.state.start, e); - }, e.prototype.expectPlugin = function (t) { - if (!this.hasPlugin(t)) throw this.raise(this.state.start, "This experimental syntax requires enabling the parser plugin: '" + t + "'", [t]); - }, e.prototype.expectOnePlugin = function (t) { - var e = this;if (!t.some(function (t) { - return e.hasPlugin(t); - })) throw this.raise(this.state.start, "This experimental syntax requires enabling one of the following parser plugin(s): '" + t.join(", ") + "'", t); + }, e.prototype.expectPlugin = function (t, e) { + if (!this.hasPlugin(t)) throw this.raise(null != e ? e : this.state.start, "This experimental syntax requires enabling the parser plugin: '" + t + "'", [t]); + }, e.prototype.expectOnePlugin = function (t, e) { + var s = this;if (!t.some(function (t) { + return s.hasPlugin(t); + })) throw this.raise(null != e ? e : this.state.start, "This experimental syntax requires enabling one of the following parser plugin(s): '" + t.join(", ") + "'", t); }, e; }(function (t) { function e(e, s) { @@ -286,7 +286,7 @@ var babylon = function () { }, e.prototype.lookahead = function () { var t = this.state;this.state = t.clone(!0), this.isLookahead = !0, this.next(), this.isLookahead = !1;var e = this.state;return this.state = t, e; }, e.prototype.setStrict = function (t) { - if (this.state.strict = t, this.match(C.num) || this.match(C.string)) { + if (this.state.strict = t, this.match(E.num) || this.match(E.string)) { for (this.state.pos = this.state.start; this.state.pos < this.state.lineStart;) { this.state.lineStart = this.input.lastIndexOf("\n", this.state.lineStart - 2) + 1, --this.state.curLine; }this.nextToken(); @@ -294,7 +294,7 @@ var babylon = function () { }, e.prototype.curContext = function () { return this.state.context[this.state.context.length - 1]; }, e.prototype.nextToken = function () { - var t = this.curContext();return t && t.preserveSpace || this.skipSpace(), this.state.containsOctal = !1, this.state.octalPosition = null, this.state.start = this.state.pos, this.state.startLoc = this.state.curPosition(), this.state.pos >= this.input.length ? this.finishToken(C.eof) : t.override ? t.override(this) : this.readToken(this.fullCharCodeAtPos()); + var t = this.curContext();return t && t.preserveSpace || this.skipSpace(), this.state.containsOctal = !1, this.state.octalPosition = null, this.state.start = this.state.pos, this.state.startLoc = this.state.curPosition(), this.state.pos >= this.input.length ? this.finishToken(E.eof) : t.override ? t.override(this) : this.readToken(this.fullCharCodeAtPos()); }, e.prototype.readToken = function (t) { return a(t) || 92 === t ? this.readWord() : this.getTokenFromCode(t); }, e.prototype.fullCharCodeAtPos = function () { @@ -328,43 +328,43 @@ var babylon = function () { }, e.prototype.finishToken = function (t, e) { this.state.end = this.state.pos, this.state.endLoc = this.state.curPosition();var s = this.state.type;this.state.type = t, this.state.value = e, this.updateContext(s); }, e.prototype.readToken_dot = function () { - var t = this.input.charCodeAt(this.state.pos + 1);if (t >= 48 && t <= 57) return this.readNumber(!0);var e = this.input.charCodeAt(this.state.pos + 2);return 46 === t && 46 === e ? (this.state.pos += 3, this.finishToken(C.ellipsis)) : (++this.state.pos, this.finishToken(C.dot)); + var t = this.input.charCodeAt(this.state.pos + 1);if (t >= 48 && t <= 57) return this.readNumber(!0);var e = this.input.charCodeAt(this.state.pos + 2);return 46 === t && 46 === e ? (this.state.pos += 3, this.finishToken(E.ellipsis)) : (++this.state.pos, this.finishToken(E.dot)); }, e.prototype.readToken_slash = function () { - return this.state.exprAllowed ? (++this.state.pos, this.readRegexp()) : 61 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(C.assign, 2) : this.finishOp(C.slash, 1); + return this.state.exprAllowed ? (++this.state.pos, this.readRegexp()) : 61 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(E.assign, 2) : this.finishOp(E.slash, 1); }, e.prototype.readToken_mult_modulo = function (t) { - var e = 42 === t ? C.star : C.modulo, + var e = 42 === t ? E.star : E.modulo, s = 1, - i = this.input.charCodeAt(this.state.pos + 1);return 42 === t && 42 === i && (s++, i = this.input.charCodeAt(this.state.pos + 2), e = C.exponent), 61 === i && (s++, e = C.assign), this.finishOp(e, s); + i = this.input.charCodeAt(this.state.pos + 1);return 42 === t && 42 === i && (s++, i = this.input.charCodeAt(this.state.pos + 2), e = E.exponent), 61 === i && (s++, e = E.assign), this.finishOp(e, s); }, e.prototype.readToken_pipe_amp = function (t) { - var e = this.input.charCodeAt(this.state.pos + 1);return e === t ? this.finishOp(124 === t ? C.logicalOR : C.logicalAND, 2) : 61 === e ? this.finishOp(C.assign, 2) : 124 === t && 125 === e && this.hasPlugin("flow") ? this.finishOp(C.braceBarR, 2) : this.finishOp(124 === t ? C.bitwiseOR : C.bitwiseAND, 1); + var e = this.input.charCodeAt(this.state.pos + 1);return e === t ? this.finishOp(124 === t ? E.logicalOR : E.logicalAND, 2) : 61 === e ? this.finishOp(E.assign, 2) : 124 === t && 125 === e && this.hasPlugin("flow") ? this.finishOp(E.braceBarR, 2) : this.finishOp(124 === t ? E.bitwiseOR : E.bitwiseAND, 1); }, e.prototype.readToken_caret = function () { - return 61 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(C.assign, 2) : this.finishOp(C.bitwiseXOR, 1); + return 61 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(E.assign, 2) : this.finishOp(E.bitwiseXOR, 1); }, e.prototype.readToken_plus_min = function (t) { - var e = this.input.charCodeAt(this.state.pos + 1);return e === t ? 45 === e && !this.inModule && 62 === this.input.charCodeAt(this.state.pos + 2) && F.test(this.input.slice(this.state.lastTokEnd, this.state.pos)) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(C.incDec, 2) : 61 === e ? this.finishOp(C.assign, 2) : this.finishOp(C.plusMin, 1); + var e = this.input.charCodeAt(this.state.pos + 1);return e === t ? 45 === e && !this.inModule && 62 === this.input.charCodeAt(this.state.pos + 2) && F.test(this.input.slice(this.state.lastTokEnd, this.state.pos)) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(E.incDec, 2) : 61 === e ? this.finishOp(E.assign, 2) : this.finishOp(E.plusMin, 1); }, e.prototype.readToken_lt_gt = function (t) { var e = this.input.charCodeAt(this.state.pos + 1), - s = 1;return e === t ? (s = 62 === t && 62 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2, 61 === this.input.charCodeAt(this.state.pos + s) ? this.finishOp(C.assign, s + 1) : this.finishOp(C.bitShift, s)) : 33 !== e || 60 !== t || this.inModule || 45 !== this.input.charCodeAt(this.state.pos + 2) || 45 !== this.input.charCodeAt(this.state.pos + 3) ? (61 === e && (s = 2), this.finishOp(C.relational, s)) : (this.skipLineComment(4), this.skipSpace(), this.nextToken()); + s = 1;return e === t ? (s = 62 === t && 62 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2, 61 === this.input.charCodeAt(this.state.pos + s) ? this.finishOp(E.assign, s + 1) : this.finishOp(E.bitShift, s)) : 33 !== e || 60 !== t || this.inModule || 45 !== this.input.charCodeAt(this.state.pos + 2) || 45 !== this.input.charCodeAt(this.state.pos + 3) ? (61 === e && (s = 2), this.finishOp(E.relational, s)) : (this.skipLineComment(4), this.skipSpace(), this.nextToken()); }, e.prototype.readToken_eq_excl = function (t) { - var e = this.input.charCodeAt(this.state.pos + 1);return 61 === e ? this.finishOp(C.equality, 61 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2) : 61 === t && 62 === e ? (this.state.pos += 2, this.finishToken(C.arrow)) : this.finishOp(61 === t ? C.eq : C.bang, 1); + var e = this.input.charCodeAt(this.state.pos + 1);return 61 === e ? this.finishOp(E.equality, 61 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2) : 61 === t && 62 === e ? (this.state.pos += 2, this.finishToken(E.arrow)) : this.finishOp(61 === t ? E.eq : E.bang, 1); }, e.prototype.readToken_question = function () { var t = this.input.charCodeAt(this.state.pos + 1), - e = this.input.charCodeAt(this.state.pos + 2);return 46 !== t || e >= 48 && e <= 57 ? (++this.state.pos, this.finishToken(C.question)) : (this.state.pos += 2, this.finishToken(C.questionDot)); + e = this.input.charCodeAt(this.state.pos + 2);return 46 !== t || e >= 48 && e <= 57 ? (++this.state.pos, this.finishToken(E.question)) : (this.state.pos += 2, this.finishToken(E.questionDot)); }, e.prototype.getTokenFromCode = function (t) { switch (t) {case 35: - if (this.hasPlugin("classPrivateProperties") && this.state.classLevel > 0) return ++this.state.pos, this.finishToken(C.hash);this.raise(this.state.pos, "Unexpected character '" + c(t) + "'");case 46: + if ((this.hasPlugin("classPrivateProperties") || this.hasPlugin("classPrivateMethods")) && this.state.classLevel > 0) return ++this.state.pos, this.finishToken(E.hash);this.raise(this.state.pos, "Unexpected character '" + c(t) + "'");case 46: return this.readToken_dot();case 40: - return ++this.state.pos, this.finishToken(C.parenL);case 41: - return ++this.state.pos, this.finishToken(C.parenR);case 59: - return ++this.state.pos, this.finishToken(C.semi);case 44: - return ++this.state.pos, this.finishToken(C.comma);case 91: - return ++this.state.pos, this.finishToken(C.bracketL);case 93: - return ++this.state.pos, this.finishToken(C.bracketR);case 123: - return this.hasPlugin("flow") && 124 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(C.braceBarL, 2) : (++this.state.pos, this.finishToken(C.braceL));case 125: - return ++this.state.pos, this.finishToken(C.braceR);case 58: - return this.hasPlugin("functionBind") && 58 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(C.doubleColon, 2) : (++this.state.pos, this.finishToken(C.colon));case 63: + return ++this.state.pos, this.finishToken(E.parenL);case 41: + return ++this.state.pos, this.finishToken(E.parenR);case 59: + return ++this.state.pos, this.finishToken(E.semi);case 44: + return ++this.state.pos, this.finishToken(E.comma);case 91: + return ++this.state.pos, this.finishToken(E.bracketL);case 93: + return ++this.state.pos, this.finishToken(E.bracketR);case 123: + return this.hasPlugin("flow") && 124 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(E.braceBarL, 2) : (++this.state.pos, this.finishToken(E.braceL));case 125: + return ++this.state.pos, this.finishToken(E.braceR);case 58: + return this.hasPlugin("functionBind") && 58 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(E.doubleColon, 2) : (++this.state.pos, this.finishToken(E.colon));case 63: return this.readToken_question();case 64: - return ++this.state.pos, this.finishToken(C.at);case 96: - return ++this.state.pos, this.finishToken(C.backQuote);case 48: + return ++this.state.pos, this.finishToken(E.at);case 96: + return ++this.state.pos, this.finishToken(E.backQuote);case 48: var e = this.input.charCodeAt(this.state.pos + 1);if (120 === e || 88 === e) return this.readRadixNumber(16);if (111 === e || 79 === e) return this.readRadixNumber(8);if (98 === e || 66 === e) return this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57: return this.readNumber(!1);case 34:case 39: return this.readString(t);case 47: @@ -375,7 +375,7 @@ var babylon = function () { return this.readToken_plus_min(t);case 60:case 62: return this.readToken_lt_gt(t);case 61:case 33: return this.readToken_eq_excl(t);case 126: - return this.finishOp(C.tilde, 1);}this.raise(this.state.pos, "Unexpected character '" + c(t) + "'"); + return this.finishOp(E.tilde, 1);}this.raise(this.state.pos, "Unexpected character '" + c(t) + "'"); }, e.prototype.finishOp = function (t, e) { var s = this.input.slice(this.state.pos, this.state.pos + e);return this.state.pos += e, this.finishToken(t, s); }, e.prototype.readRegexp = function () { @@ -383,7 +383,7 @@ var babylon = function () { this.state.pos >= this.input.length && this.raise(t, "Unterminated regular expression");var i = this.input.charAt(this.state.pos);if (F.test(i) && this.raise(t, "Unterminated regular expression"), e) e = !1;else { if ("[" === i) s = !0;else if ("]" === i && s) s = !1;else if ("/" === i && !s) break;e = "\\" === i; }++this.state.pos; - }var r = this.input.slice(t, this.state.pos);++this.state.pos;var a = this.readWord1();return a && (/^[gmsiyu]*$/.test(a) || this.raise(t, "Invalid regular expression flag")), this.finishToken(C.regexp, { pattern: r, flags: a }); + }var r = this.input.slice(t, this.state.pos);++this.state.pos;var a = this.readWord1();return a && (/^[gmsiyu]*$/.test(a) || this.raise(t, "Invalid regular expression flag")), this.finishToken(E.regexp, { pattern: r, flags: a }); }, e.prototype.readInt = function (t, e) { for (var s = this.state.pos, i = 16 === t ? H.hex : H.decBinOct, r = 0, a = 0, n = null == e ? 1 / 0 : e; a < n; ++a) { var o = this.input.charCodeAt(this.state.pos), @@ -397,13 +397,13 @@ var babylon = function () { }, e.prototype.readRadixNumber = function (t) { var e = this.state.pos, s = !1;this.state.pos += 2;var i = this.readInt(t);if (null == i && this.raise(this.state.start + 2, "Expected number in radix " + t), this.hasPlugin("bigInt") && 110 === this.input.charCodeAt(this.state.pos) && (++this.state.pos, s = !0), a(this.fullCharCodeAtPos()) && this.raise(this.state.pos, "Identifier directly after number"), s) { - var r = this.input.slice(e, this.state.pos).replace(/[_n]/g, "");return this.finishToken(C.bigint, r); - }return this.finishToken(C.num, i); + var r = this.input.slice(e, this.state.pos).replace(/[_n]/g, "");return this.finishToken(E.bigint, r); + }return this.finishToken(E.num, i); }, e.prototype.readNumber = function (t) { var e = this.state.pos, s = 48 === this.input.charCodeAt(e), i = !1, - r = !1;t || null !== this.readInt(10) || this.raise(e, "Invalid number"), s && this.state.pos == e + 1 && (s = !1);var n = this.input.charCodeAt(this.state.pos);46 !== n || s || (++this.state.pos, this.readInt(10), i = !0, n = this.input.charCodeAt(this.state.pos)), 69 !== n && 101 !== n || s || (43 !== (n = this.input.charCodeAt(++this.state.pos)) && 45 !== n || ++this.state.pos, null === this.readInt(10) && this.raise(e, "Invalid number"), i = !0, n = this.input.charCodeAt(this.state.pos)), this.hasPlugin("bigInt") && 110 === n && ((i || s) && this.raise(e, "Invalid BigIntLiteral"), ++this.state.pos, r = !0), a(this.fullCharCodeAtPos()) && this.raise(this.state.pos, "Identifier directly after number");var o = this.input.slice(e, this.state.pos).replace(/[_n]/g, "");if (r) return this.finishToken(C.bigint, o);var h = void 0;return i ? h = parseFloat(o) : s && 1 !== o.length ? this.state.strict ? this.raise(e, "Invalid number") : h = /[89]/.test(o) ? parseInt(o, 10) : parseInt(o, 8) : h = parseInt(o, 10), this.finishToken(C.num, h); + r = !1;t || null !== this.readInt(10) || this.raise(e, "Invalid number"), s && this.state.pos == e + 1 && (s = !1);var n = this.input.charCodeAt(this.state.pos);46 !== n || s || (++this.state.pos, this.readInt(10), i = !0, n = this.input.charCodeAt(this.state.pos)), 69 !== n && 101 !== n || s || (43 !== (n = this.input.charCodeAt(++this.state.pos)) && 45 !== n || ++this.state.pos, null === this.readInt(10) && this.raise(e, "Invalid number"), i = !0, n = this.input.charCodeAt(this.state.pos)), this.hasPlugin("bigInt") && 110 === n && ((i || s) && this.raise(e, "Invalid BigIntLiteral"), ++this.state.pos, r = !0), a(this.fullCharCodeAtPos()) && this.raise(this.state.pos, "Identifier directly after number");var o = this.input.slice(e, this.state.pos).replace(/[_n]/g, "");if (r) return this.finishToken(E.bigint, o);var h = void 0;return i ? h = parseFloat(o) : s && 1 !== o.length ? this.state.strict ? this.raise(e, "Invalid number") : h = /[89]/.test(o) ? parseInt(o, 10) : parseInt(o, 8) : h = parseInt(o, 10), this.finishToken(E.num, h); }, e.prototype.readCodePoint = function (t) { var e = void 0;if (123 === this.input.charCodeAt(this.state.pos)) { var s = ++this.state.pos;if (e = this.readHexChar(this.input.indexOf("}", this.state.pos) - this.state.pos, t), ++this.state.pos, null === e) --this.state.invalidTemplateEscapePosition;else if (e > 1114111) { @@ -413,10 +413,10 @@ var babylon = function () { }, e.prototype.readString = function (t) { for (var e = "", s = ++this.state.pos;;) { this.state.pos >= this.input.length && this.raise(this.state.start, "Unterminated string constant");var i = this.input.charCodeAt(this.state.pos);if (i === t) break;92 === i ? (e += this.input.slice(s, this.state.pos), e += this.readEscapedChar(!1), s = this.state.pos) : (o(i) && this.raise(this.state.start, "Unterminated string constant"), ++this.state.pos); - }return e += this.input.slice(s, this.state.pos++), this.finishToken(C.string, e); + }return e += this.input.slice(s, this.state.pos++), this.finishToken(E.string, e); }, e.prototype.readTmplToken = function () { for (var t = "", e = this.state.pos, s = !1;;) { - this.state.pos >= this.input.length && this.raise(this.state.start, "Unterminated template");var i = this.input.charCodeAt(this.state.pos);if (96 === i || 36 === i && 123 === this.input.charCodeAt(this.state.pos + 1)) return this.state.pos === this.state.start && this.match(C.template) ? 36 === i ? (this.state.pos += 2, this.finishToken(C.dollarBraceL)) : (++this.state.pos, this.finishToken(C.backQuote)) : (t += this.input.slice(e, this.state.pos), this.finishToken(C.template, s ? null : t));if (92 === i) { + this.state.pos >= this.input.length && this.raise(this.state.start, "Unterminated template");var i = this.input.charCodeAt(this.state.pos);if (96 === i || 36 === i && 123 === this.input.charCodeAt(this.state.pos + 1)) return this.state.pos === this.state.start && this.match(E.template) ? 36 === i ? (this.state.pos += 2, this.finishToken(E.dollarBraceL)) : (++this.state.pos, this.finishToken(E.backQuote)) : (t += this.input.slice(e, this.state.pos), this.finishToken(E.template, s ? null : t));if (92 === i) { t += this.input.slice(e, this.state.pos);var r = this.readEscapedChar(!0);null === r ? s = !0 : t += r, e = this.state.pos; } else if (o(i)) { switch (t += this.input.slice(e, this.state.pos), ++this.state.pos, i) {case 13: @@ -456,14 +456,14 @@ var babylon = function () { }return t + this.input.slice(s, this.state.pos); }, e.prototype.readWord = function () { var t = this.readWord1(), - e = C.name;return this.isKeyword(t) && (this.state.containsEsc && this.raise(this.state.pos, "Escape sequence in keyword " + t), e = S[t]), this.finishToken(e, t); + e = E.name;return this.isKeyword(t) && (this.state.containsEsc && this.raise(this.state.pos, "Escape sequence in keyword " + t), e = S[t]), this.finishToken(e, t); }, e.prototype.braceIsBlock = function (t) { - if (t === C.colon) { + if (t === E.colon) { var e = this.curContext();if (e === U.braceStatement || e === U.braceExpression) return !e.isExpr; - }return t === C._return ? F.test(this.input.slice(this.state.lastTokEnd, this.state.start)) : t === C._else || t === C.semi || t === C.eof || t === C.parenR || (t === C.braceL ? this.curContext() === U.braceStatement : t === C.relational || !this.state.exprAllowed); + }return t === E._return ? F.test(this.input.slice(this.state.lastTokEnd, this.state.start)) : t === E._else || t === E.semi || t === E.eof || t === E.parenR || (t === E.braceL ? this.curContext() === U.braceStatement : t === E.relational || !this.state.exprAllowed); }, e.prototype.updateContext = function (t) { var e = this.state.type, - s = void 0;!e.keyword || t !== C.dot && t !== C.questionDot ? (s = e.updateContext) ? s.call(this, t) : this.state.exprAllowed = e.beforeExpr : this.state.exprAllowed = !1; + s = void 0;!e.keyword || t !== E.dot && t !== E.questionDot ? (s = e.updateContext) ? s.call(this, t) : this.state.exprAllowed = e.beforeExpr : this.state.exprAllowed = !1; }, e; }(X)), Q = ["leadingComments", "trailingComments", "innerComments"], @@ -491,7 +491,7 @@ var babylon = function () { function e() { return t.apply(this, arguments) || this; }return A(e, t), e.prototype.parseTopLevel = function (t, e) { - return e.sourceType = this.options.sourceType, this.parseBlockBody(e, !0, !0, C.eof), t.program = this.finishNode(e, "Program"), t.comments = this.state.comments, this.options.tokens && (t.tokens = this.state.tokens), this.finishNode(t, "File"); + return e.sourceType = this.options.sourceType, this.parseBlockBody(e, !0, !0, E.eof), t.program = this.finishNode(e, "Program"), t.comments = this.state.comments, this.options.tokens && (t.tokens = this.state.tokens), this.finishNode(t, "File"); }, e.prototype.stmtToDirective = function (t) { var e = t.expression, s = this.startNodeAt(e.start, e.loc.start), @@ -499,50 +499,50 @@ var babylon = function () { r = this.input.slice(e.start, e.end), a = s.value = r.slice(1, -1);return this.addExtra(s, "raw", r), this.addExtra(s, "rawValue", a), i.value = this.finishNodeAt(s, "DirectiveLiteral", e.end, e.loc.end), this.finishNodeAt(i, "Directive", t.end, t.loc.end); }, e.prototype.parseStatement = function (t, e) { - return this.match(C.at) && this.parseDecorators(!0), this.parseStatementContent(t, e); + return this.match(E.at) && this.parseDecorators(!0), this.parseStatementContent(t, e); }, e.prototype.parseStatementContent = function (t, e) { var s = this.state.type, - i = this.startNode();switch (s) {case C._break:case C._continue: - return this.parseBreakContinueStatement(i, s.keyword);case C._debugger: - return this.parseDebuggerStatement(i);case C._do: - return this.parseDoStatement(i);case C._for: - return this.parseForStatement(i);case C._function: - if (this.lookahead().type === C.dot) break;return t || this.unexpected(), this.parseFunctionStatement(i);case C._class: - return t || this.unexpected(), this.parseClass(i, !0);case C._if: - return this.parseIfStatement(i);case C._return: - return this.parseReturnStatement(i);case C._switch: - return this.parseSwitchStatement(i);case C._throw: - return this.parseThrowStatement(i);case C._try: - return this.parseTryStatement(i);case C._let:case C._const: - t || this.unexpected();case C._var: - return this.parseVarStatement(i, s);case C._while: - return this.parseWhileStatement(i);case C._with: - return this.parseWithStatement(i);case C.braceL: - return this.parseBlock();case C.semi: - return this.parseEmptyStatement(i);case C._export:case C._import: - if (this.hasPlugin("dynamicImport") && this.lookahead().type === C.parenL || this.hasPlugin("importMeta") && this.lookahead().type === C.dot) break;return this.options.allowImportExportEverywhere || (e || this.raise(this.state.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.state.start, "'import' and 'export' may appear only with 'sourceType: \"module\"'")), this.next(), s == C._import ? this.parseImport(i) : this.parseExport(i);case C.name: + i = this.startNode();switch (s) {case E._break:case E._continue: + return this.parseBreakContinueStatement(i, s.keyword);case E._debugger: + return this.parseDebuggerStatement(i);case E._do: + return this.parseDoStatement(i);case E._for: + return this.parseForStatement(i);case E._function: + if (this.lookahead().type === E.dot) break;return t || this.unexpected(), this.parseFunctionStatement(i);case E._class: + return t || this.unexpected(), this.parseClass(i, !0);case E._if: + return this.parseIfStatement(i);case E._return: + return this.parseReturnStatement(i);case E._switch: + return this.parseSwitchStatement(i);case E._throw: + return this.parseThrowStatement(i);case E._try: + return this.parseTryStatement(i);case E._let:case E._const: + t || this.unexpected();case E._var: + return this.parseVarStatement(i, s);case E._while: + return this.parseWhileStatement(i);case E._with: + return this.parseWithStatement(i);case E.braceL: + return this.parseBlock();case E.semi: + return this.parseEmptyStatement(i);case E._export:case E._import: + if (this.hasPlugin("dynamicImport") && this.lookahead().type === E.parenL || this.hasPlugin("importMeta") && this.lookahead().type === E.dot) break;return this.options.allowImportExportEverywhere || (e || this.raise(this.state.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.state.start, "'import' and 'export' may appear only with 'sourceType: \"module\"'")), this.next(), s == E._import ? this.parseImport(i) : this.parseExport(i);case E.name: if ("async" === this.state.value) { - var r = this.state.clone();if (this.next(), this.match(C._function) && !this.canInsertSemicolon()) return this.expect(C._function), this.parseFunction(i, !0, !1, !0);this.state = r; + var r = this.state.clone();if (this.next(), this.match(E._function) && !this.canInsertSemicolon()) return this.expect(E._function), this.parseFunction(i, !0, !1, !0);this.state = r; }}var a = this.state.value, - n = this.parseExpression();return s === C.name && "Identifier" === n.type && this.eat(C.colon) ? this.parseLabeledStatement(i, a, n) : this.parseExpressionStatement(i, n); + n = this.parseExpression();return s === E.name && "Identifier" === n.type && this.eat(E.colon) ? this.parseLabeledStatement(i, a, n) : this.parseExpressionStatement(i, n); }, e.prototype.takeDecorators = function (t) { var e = this.state.decoratorStack[this.state.decoratorStack.length - 1];e.length && (t.decorators = e, this.resetStartLocationFromNode(t, e[0]), this.state.decoratorStack[this.state.decoratorStack.length - 1] = []); }, e.prototype.parseDecorators = function (t) { - this.hasPlugin("decorators2") && (t = !1);for (var e = this.state.decoratorStack[this.state.decoratorStack.length - 1]; this.match(C.at);) { + this.hasPlugin("decorators2") && (t = !1);for (var e = this.state.decoratorStack[this.state.decoratorStack.length - 1]; this.match(E.at);) { var s = this.parseDecorator();e.push(s); - }if (this.match(C._export)) { + }if (this.match(E._export)) { if (t) return;this.raise(this.state.start, "Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead"); - }this.match(C._class) || this.raise(this.state.start, "Leading decorators must be attached to a class declaration"); + }this.match(E._class) || this.raise(this.state.start, "Leading decorators must be attached to a class declaration"); }, e.prototype.parseDecorator = function () { this.expectOnePlugin(["decorators", "decorators2"]);var t = this.startNode();if (this.next(), this.hasPlugin("decorators2")) { - for (var e = this.state.start, s = this.state.startLoc, i = this.parseIdentifier(!1); this.eat(C.dot);) { + for (var e = this.state.start, s = this.state.startLoc, i = this.parseIdentifier(!1); this.eat(E.dot);) { var r = this.startNodeAt(e, s);r.object = i, r.property = this.parseIdentifier(!0), r.computed = !1, i = this.finishNode(r, "MemberExpression"); - }if (this.eat(C.parenL)) { - var a = this.startNodeAt(e, s);a.callee = i, this.state.decoratorStack.push([]), a.arguments = this.parseCallExpressionArguments(C.parenR, !1), this.state.decoratorStack.pop(), i = this.finishNode(a, "CallExpression"), this.toReferencedList(i.arguments); + }if (this.eat(E.parenL)) { + var a = this.startNodeAt(e, s);a.callee = i, this.state.decoratorStack.push([]), a.arguments = this.parseCallExpressionArguments(E.parenR, !1), this.state.decoratorStack.pop(), i = this.finishNode(a, "CallExpression"), this.toReferencedList(i.arguments); }t.expression = i; } else t.expression = this.parseMaybeAssign();return this.finishNode(t, "Decorator"); }, e.prototype.parseBreakContinueStatement = function (t, e) { - var s = "break" === e;this.next(), this.isLineTerminator() ? t.label = null : this.match(C.name) ? (t.label = this.parseIdentifier(), this.semicolon()) : this.unexpected();var i = void 0;for (i = 0; i < this.state.labels.length; ++i) { + var s = "break" === e;this.next(), this.isLineTerminator() ? t.label = null : this.match(E.name) ? (t.label = this.parseIdentifier(), this.semicolon()) : this.unexpected();var i = void 0;for (i = 0; i < this.state.labels.length; ++i) { var r = this.state.labels[i];if (null == t.label || r.name === t.label.name) { if (null != r.kind && (s || "loop" === r.kind)) break;if (t.label && s) break; } @@ -550,33 +550,33 @@ var babylon = function () { }, e.prototype.parseDebuggerStatement = function (t) { return this.next(), this.semicolon(), this.finishNode(t, "DebuggerStatement"); }, e.prototype.parseDoStatement = function (t) { - return this.next(), this.state.labels.push(Z), t.body = this.parseStatement(!1), this.state.labels.pop(), this.expect(C._while), t.test = this.parseParenExpression(), this.eat(C.semi), this.finishNode(t, "DoWhileStatement"); + return this.next(), this.state.labels.push(Z), t.body = this.parseStatement(!1), this.state.labels.pop(), this.expect(E._while), t.test = this.parseParenExpression(), this.eat(E.semi), this.finishNode(t, "DoWhileStatement"); }, e.prototype.parseForStatement = function (t) { - this.next(), this.state.labels.push(Z);var e = !1;if (this.state.inAsync && this.isContextual("await") && (this.expectPlugin("asyncGenerators"), e = !0, this.next()), this.expect(C.parenL), this.match(C.semi)) return e && this.unexpected(), this.parseFor(t, null);if (this.match(C._var) || this.match(C._let) || this.match(C._const)) { + this.next(), this.state.labels.push(Z);var e = !1;if (this.state.inAsync && this.isContextual("await") && (this.expectPlugin("asyncGenerators"), e = !0, this.next()), this.expect(E.parenL), this.match(E.semi)) return e && this.unexpected(), this.parseFor(t, null);if (this.match(E._var) || this.match(E._let) || this.match(E._const)) { var s = this.startNode(), - i = this.state.type;return this.next(), this.parseVar(s, !0, i), this.finishNode(s, "VariableDeclaration"), !this.match(C._in) && !this.isContextual("of") || 1 !== s.declarations.length || s.declarations[0].init ? (e && this.unexpected(), this.parseFor(t, s)) : this.parseForIn(t, s, e); + i = this.state.type;return this.next(), this.parseVar(s, !0, i), this.finishNode(s, "VariableDeclaration"), !this.match(E._in) && !this.isContextual("of") || 1 !== s.declarations.length || s.declarations[0].init ? (e && this.unexpected(), this.parseFor(t, s)) : this.parseForIn(t, s, e); }var r = { start: 0 }, - a = this.parseExpression(!0, r);if (this.match(C._in) || this.isContextual("of")) { + a = this.parseExpression(!0, r);if (this.match(E._in) || this.isContextual("of")) { var n = this.isContextual("of") ? "for-of statement" : "for-in statement";return this.toAssignable(a, void 0, n), this.checkLVal(a, void 0, void 0, n), this.parseForIn(t, a, e); }return r.start && this.unexpected(r.start), e && this.unexpected(), this.parseFor(t, a); }, e.prototype.parseFunctionStatement = function (t) { return this.next(), this.parseFunction(t, !0); }, e.prototype.parseIfStatement = function (t) { - return this.next(), t.test = this.parseParenExpression(), t.consequent = this.parseStatement(!1), t.alternate = this.eat(C._else) ? this.parseStatement(!1) : null, this.finishNode(t, "IfStatement"); + return this.next(), t.test = this.parseParenExpression(), t.consequent = this.parseStatement(!1), t.alternate = this.eat(E._else) ? this.parseStatement(!1) : null, this.finishNode(t, "IfStatement"); }, e.prototype.parseReturnStatement = function (t) { return this.state.inFunction || this.options.allowReturnOutsideFunction || this.raise(this.state.start, "'return' outside of function"), this.next(), this.isLineTerminator() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement"); }, e.prototype.parseSwitchStatement = function (t) { - this.next(), t.discriminant = this.parseParenExpression();var e = t.cases = [];this.expect(C.braceL), this.state.labels.push(tt);for (var s, i = void 0; !this.match(C.braceR);) { - if (this.match(C._case) || this.match(C._default)) { - var r = this.match(C._case);i && this.finishNode(i, "SwitchCase"), e.push(i = this.startNode()), i.consequent = [], this.next(), r ? i.test = this.parseExpression() : (s && this.raise(this.state.lastTokStart, "Multiple default clauses"), s = !0, i.test = null), this.expect(C.colon); + this.next(), t.discriminant = this.parseParenExpression();var e = t.cases = [];this.expect(E.braceL), this.state.labels.push(tt);for (var s, i = void 0; !this.match(E.braceR);) { + if (this.match(E._case) || this.match(E._default)) { + var r = this.match(E._case);i && this.finishNode(i, "SwitchCase"), e.push(i = this.startNode()), i.consequent = [], this.next(), r ? i.test = this.parseExpression() : (s && this.raise(this.state.lastTokStart, "Multiple default clauses"), s = !0, i.test = null), this.expect(E.colon); } else i ? i.consequent.push(this.parseStatement(!0)) : this.unexpected(); }return i && this.finishNode(i, "SwitchCase"), this.next(), this.state.labels.pop(), this.finishNode(t, "SwitchStatement"); }, e.prototype.parseThrowStatement = function (t) { return this.next(), F.test(this.input.slice(this.state.lastTokEnd, this.state.start)) && this.raise(this.state.lastTokEnd, "Illegal newline after throw"), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement"); }, e.prototype.parseTryStatement = function (t) { - if (this.next(), t.block = this.parseBlock(), t.handler = null, this.match(C._catch)) { - var e = this.startNode();this.next(), this.match(C.parenL) ? (this.expect(C.parenL), e.param = this.parseBindingAtom(), this.checkLVal(e.param, !0, Object.create(null), "catch clause"), this.expect(C.parenR)) : (this.expectPlugin("optionalCatchBinding"), e.param = null), e.body = this.parseBlock(), t.handler = this.finishNode(e, "CatchClause"); - }return t.guardedHandlers = $, t.finalizer = this.eat(C._finally) ? this.parseBlock() : null, t.handler || t.finalizer || this.raise(t.start, "Missing catch or finally clause"), this.finishNode(t, "TryStatement"); + if (this.next(), t.block = this.parseBlock(), t.handler = null, this.match(E._catch)) { + var e = this.startNode();this.next(), this.match(E.parenL) ? (this.expect(E.parenL), e.param = this.parseBindingAtom(), this.checkLVal(e.param, !0, Object.create(null), "catch clause"), this.expect(E.parenR)) : (this.expectPlugin("optionalCatchBinding"), e.param = null), e.body = this.parseBlock(), t.handler = this.finishNode(e, "CatchClause"); + }return t.guardedHandlers = $, t.finalizer = this.eat(E._finally) ? this.parseBlock() : null, t.handler || t.finalizer || this.raise(t.start, "Missing catch or finally clause"), this.finishNode(t, "TryStatement"); }, e.prototype.parseVarStatement = function (t, e) { return this.next(), this.parseVar(t, !1, e), this.semicolon(), this.finishNode(t, "VariableDeclaration"); }, e.prototype.parseWhileStatement = function (t) { @@ -592,13 +592,13 @@ var babylon = function () { } else { if ((a = i.next()).done) break;n = a.value; }n.name === e && this.raise(s.start, "Label '" + e + "' is already declared"); - }for (var o = this.state.type.isLoop ? "loop" : this.match(C._switch) ? "switch" : null, h = this.state.labels.length - 1; h >= 0; h--) { + }for (var o = this.state.type.isLoop ? "loop" : this.match(E._switch) ? "switch" : null, h = this.state.labels.length - 1; h >= 0; h--) { var p = this.state.labels[h];if (p.statementStart !== t.start) break;p.statementStart = this.state.start, p.kind = o; }return this.state.labels.push({ name: e, kind: o, statementStart: this.state.start }), t.body = this.parseStatement(!0), ("ClassDeclaration" == t.body.type || "VariableDeclaration" == t.body.type && "var" !== t.body.kind || "FunctionDeclaration" == t.body.type && (this.state.strict || t.body.generator || t.body.async)) && this.raise(t.body.start, "Invalid labeled declaration"), this.state.labels.pop(), t.label = s, this.finishNode(t, "LabeledStatement"); }, e.prototype.parseExpressionStatement = function (t, e) { return t.expression = e, this.semicolon(), this.finishNode(t, "ExpressionStatement"); }, e.prototype.parseBlock = function (t) { - var e = this.startNode();return this.expect(C.braceL), this.parseBlockBody(e, t, !1, C.braceR), this.finishNode(e, "BlockStatement"); + var e = this.startNode();return this.expect(E.braceL), this.parseBlockBody(e, t, !1, E.braceR), this.finishNode(e, "BlockStatement"); }, e.prototype.isValidDirective = function (t) { return "ExpressionStatement" === t.type && "StringLiteral" === t.expression.type && !t.expression.extra.parenthesized; }, e.prototype.parseBlockBody = function (t, e, s, i) { @@ -611,32 +611,32 @@ var babylon = function () { } else r = !0, t.push(o); }!1 === a && this.setStrict(!1); }, e.prototype.parseFor = function (t, e) { - return t.init = e, this.expect(C.semi), t.test = this.match(C.semi) ? null : this.parseExpression(), this.expect(C.semi), t.update = this.match(C.parenR) ? null : this.parseExpression(), this.expect(C.parenR), t.body = this.parseStatement(!1), this.state.labels.pop(), this.finishNode(t, "ForStatement"); + return t.init = e, this.expect(E.semi), t.test = this.match(E.semi) ? null : this.parseExpression(), this.expect(E.semi), t.update = this.match(E.parenR) ? null : this.parseExpression(), this.expect(E.parenR), t.body = this.parseStatement(!1), this.state.labels.pop(), this.finishNode(t, "ForStatement"); }, e.prototype.parseForIn = function (t, e, s) { - var i = this.match(C._in) ? "ForInStatement" : "ForOfStatement";return s ? this.eatContextual("of") : this.next(), "ForOfStatement" === i && (t.await = !!s), t.left = e, t.right = this.parseExpression(), this.expect(C.parenR), t.body = this.parseStatement(!1), this.state.labels.pop(), this.finishNode(t, i); + var i = this.match(E._in) ? "ForInStatement" : "ForOfStatement";return s ? this.eatContextual("of") : this.next(), "ForOfStatement" === i && (t.await = !!s), t.left = e, t.right = this.parseExpression(), this.expect(E.parenR), t.body = this.parseStatement(!1), this.state.labels.pop(), this.finishNode(t, i); }, e.prototype.parseVar = function (t, e, s) { var i = t.declarations = [];for (t.kind = s.keyword;;) { - var r = this.startNode();if (this.parseVarHead(r), this.eat(C.eq) ? r.init = this.parseMaybeAssign(e) : (s !== C._const || this.match(C._in) || this.isContextual("of") ? "Identifier" === r.id.type || e && (this.match(C._in) || this.isContextual("of")) || this.raise(this.state.lastTokEnd, "Complex binding patterns require an initialization value") : this.hasPlugin("typescript") || this.unexpected(), r.init = null), i.push(this.finishNode(r, "VariableDeclarator")), !this.eat(C.comma)) break; + var r = this.startNode();if (this.parseVarHead(r), this.eat(E.eq) ? r.init = this.parseMaybeAssign(e) : (s !== E._const || this.match(E._in) || this.isContextual("of") ? "Identifier" === r.id.type || e && (this.match(E._in) || this.isContextual("of")) || this.raise(this.state.lastTokEnd, "Complex binding patterns require an initialization value") : this.hasPlugin("typescript") || this.unexpected(), r.init = null), i.push(this.finishNode(r, "VariableDeclarator")), !this.eat(E.comma)) break; }return t; }, e.prototype.parseVarHead = function (t) { t.id = this.parseBindingAtom(), this.checkLVal(t.id, !0, void 0, "variable declaration"); }, e.prototype.parseFunction = function (t, e, s, i, r) { - var a = this.state.inMethod;return this.state.inMethod = !1, this.initFunction(t, i), this.match(C.star) && (t.async && this.expectPlugin("asyncGenerators"), t.generator = !0, this.next()), !e || r || this.match(C.name) || this.match(C._yield) || this.unexpected(), (this.match(C.name) || this.match(C._yield)) && (t.id = this.parseBindingIdentifier()), this.parseFunctionParams(t), this.parseFunctionBodyAndFinish(t, e ? "FunctionDeclaration" : "FunctionExpression", s), this.state.inMethod = a, t; + var a = this.state.inMethod;return this.state.inMethod = !1, this.initFunction(t, i), this.match(E.star) && (t.async && this.expectPlugin("asyncGenerators"), t.generator = !0, this.next()), !e || r || this.match(E.name) || this.match(E._yield) || this.unexpected(), (this.match(E.name) || this.match(E._yield)) && (t.id = this.parseBindingIdentifier()), this.parseFunctionParams(t), this.parseFunctionBodyAndFinish(t, e ? "FunctionDeclaration" : "FunctionExpression", s), this.state.inMethod = a, t; }, e.prototype.parseFunctionParams = function (t) { - this.expect(C.parenL), t.params = this.parseBindingList(C.parenR); + this.expect(E.parenL), t.params = this.parseBindingList(E.parenR); }, e.prototype.parseClass = function (t, e, s) { return this.next(), this.takeDecorators(t), this.parseClassId(t, e, s), this.parseClassSuper(t), this.parseClassBody(t), this.finishNode(t, e ? "ClassDeclaration" : "ClassExpression"); }, e.prototype.isClassProperty = function () { - return this.match(C.eq) || this.match(C.semi) || this.match(C.braceR); + return this.match(E.eq) || this.match(E.semi) || this.match(E.braceR); }, e.prototype.isClassMethod = function () { - return this.match(C.parenL); + return this.match(E.parenL); }, e.prototype.isNonstaticConstructor = function (t) { return !(t.computed || t.static || "constructor" !== t.key.name && "constructor" !== t.key.value); }, e.prototype.parseClassBody = function (t) { var e = this.state.strict;this.state.strict = !0, this.state.classLevel++;var s = { hadConstructor: !1 }, i = [], - r = this.startNode();for (r.body = [], this.expect(C.braceL); !this.eat(C.braceR);) { - if (this.eat(C.semi)) i.length > 0 && this.raise(this.state.lastTokEnd, "Decorators must not be followed by a semicolon");else if (this.match(C.at)) i.push(this.parseDecorator());else { + r = this.startNode();for (r.body = [], this.expect(E.braceL); !this.eat(E.braceR);) { + if (this.eat(E.semi)) i.length > 0 && this.raise(this.state.lastTokEnd, "Decorators must not be followed by a semicolon");else if (this.match(E.at)) i.push(this.parseDecorator());else { var a = this.startNode();i.length && (a.decorators = i, this.resetStartLocationFromNode(a, i[0]), i = []), this.parseClassMember(r, a, s), this.hasPlugin("decorators2") && "method" != a.kind && a.decorators && a.decorators.length > 0 && this.raise(a.start, "Stage 2 decorators may only be used with a class or a class method"); } }i.length && this.raise(this.state.start, "You have trailing decorators with no method"), t.body = this.finishNode(r, "ClassBody"), this.state.classLevel--, this.state.strict = e; @@ -644,64 +644,67 @@ var babylon = function () { var i = e, r = i, a = i, - n = !1;if (this.match(C.name) && "static" === this.state.value) { - var o = this.parseIdentifier(!0);if (this.isClassMethod()) return r.kind = "method", r.computed = !1, r.key = o, r.static = !1, void this.parseClassMethod(t, r, !1, !1, !1);if (this.isClassProperty()) return a.computed = !1, a.key = o, a.static = !1, void t.body.push(this.parseClassProperty(a));n = !0; - }if (this.match(C.hash)) { - this.expectPlugin("classPrivateProperties"), this.next();var h = i;return h.key = this.parseIdentifier(!0), h.static = n, void t.body.push(this.parsePrivateClassProperty(h)); + n = !1;if (this.match(E.name) && "static" === this.state.value) { + var o = this.parseIdentifier(!0);if (this.isClassMethod()) return r.kind = "method", r.computed = !1, r.key = o, r.static = !1, void this.pushClassMethod(t, r, !1, !1, !1);if (this.isClassProperty()) return a.computed = !1, a.key = o, a.static = !1, void t.body.push(this.parseClassProperty(a));n = !0; }this.parseClassMemberWithIsStatic(t, e, s, n); }, e.prototype.parseClassMemberWithIsStatic = function (t, e, s, i) { var r = e, a = r, n = r, - o = r;if (a.static = i, this.eat(C.star)) return n.kind = "method", this.parsePropertyName(n), this.isNonstaticConstructor(n) && this.raise(n.key.start, "Constructor can't be a generator"), n.computed || !n.static || "prototype" !== n.key.name && "prototype" !== n.key.value || this.raise(n.key.start, "Classes may not have static property named prototype"), void this.parseClassMethod(t, n, !0, !1, !1);var h = this.match(C.name), - p = this.parseClassPropertyName(a);if (this.parsePostMemberNameModifiers(a), this.isClassMethod()) { - var c = this.isNonstaticConstructor(n);n.kind = c ? "constructor" : "method", c && (n.decorators && this.raise(n.start, "You can't attach decorators to a class constructor"), s.hadConstructor && !this.hasPlugin("typescript") && this.raise(p.start, "Duplicate constructor in the same class"), s.hadConstructor = !0), this.parseClassMethod(t, n, !1, !1, c); - } else if (this.isClassProperty()) this.pushClassProperty(t, o);else if (h && "async" === p.name && !this.isLineTerminator()) { - var l = !1;this.match(C.star) && (this.expectPlugin("asyncGenerators"), this.next(), l = !0), n.kind = "method", this.parsePropertyName(n), this.isNonstaticConstructor(n) && this.raise(n.key.start, "Constructor can't be an async function"), this.parseClassMethod(t, n, l, !0, !1); - } else !h || "get" !== p.name && "set" !== p.name || this.isLineTerminator() && this.match(C.star) ? this.isLineTerminator() ? (this.isNonstaticConstructor(o) && this.raise(o.key.start, "Classes may not have a non-static field named 'constructor'"), t.body.push(this.parseClassProperty(o))) : this.unexpected() : (n.kind = p.name, this.parsePropertyName(n), this.isNonstaticConstructor(n) && this.raise(n.key.start, "Constructor can't have get/set modifier"), this.parseClassMethod(t, n, !1, !1, !1), this.checkGetterSetterParamCount(n)); + o = r;if (a.static = i, this.eat(E.star)) return n.kind = "method", this.parseClassPropertyName(n), "PrivateName" === n.key.type ? void this.pushClassPrivateMethod(t, n, !0, !1) : (this.isNonstaticConstructor(n) && this.raise(n.key.start, "Constructor can't be a generator"), void this.pushClassMethod(t, n, !0, !1, !1));var h = this.parseClassPropertyName(a), + p = "PrivateName" === h.type, + c = "Identifier" === h.type;if (this.parsePostMemberNameModifiers(a), this.isClassMethod()) { + if (n.kind = "method", p) return void this.pushClassPrivateMethod(t, n, !1, !1);var l = this.isNonstaticConstructor(n);l && (n.kind = "constructor", n.decorators && this.raise(n.start, "You can't attach decorators to a class constructor"), s.hadConstructor && !this.hasPlugin("typescript") && this.raise(h.start, "Duplicate constructor in the same class"), s.hadConstructor = !0), this.pushClassMethod(t, n, !1, !1, l); + } else if (this.isClassProperty()) p ? this.pushClassPrivateProperty(t, o) : this.pushClassProperty(t, o);else if (c && "async" === h.name && !this.isLineTerminator()) { + var u = this.match(E.star);u && (this.expectPlugin("asyncGenerators"), this.next()), n.kind = "method", this.parseClassPropertyName(n), "PrivateName" === n.key.type ? this.pushClassPrivateMethod(t, n, u, !0) : (this.isNonstaticConstructor(n) && this.raise(n.key.start, "Constructor can't be an async function"), this.pushClassMethod(t, n, u, !0, !1)); + } else !c || "get" !== h.name && "set" !== h.name || this.isLineTerminator() && this.match(E.star) ? this.isLineTerminator() ? p ? this.pushClassPrivateProperty(t, o) : this.pushClassProperty(t, o) : this.unexpected() : (n.kind = h.name, this.parseClassPropertyName(n), "PrivateName" === n.key.type ? this.pushClassPrivateMethod(t, n, !1, !1) : (this.isNonstaticConstructor(n) && this.raise(n.key.start, "Constructor can't have get/set modifier"), this.pushClassMethod(t, n, !1, !1, !1)), this.checkGetterSetterParamCount(n)); }, e.prototype.parseClassPropertyName = function (t) { - var e = this.parsePropertyName(t);return t.computed || !t.static || "prototype" !== t.key.name && "prototype" !== t.key.value || this.raise(t.key.start, "Classes may not have static property named prototype"), e; + var e = this.parsePropertyName(t);return t.computed || !t.static || "prototype" !== e.name && "prototype" !== e.value || this.raise(e.start, "Classes may not have static property named prototype"), "PrivateName" === e.type && "constructor" === e.id.name && this.raise(e.start, "Classes may not have a private field named '#constructor'"), e; }, e.prototype.pushClassProperty = function (t, e) { this.isNonstaticConstructor(e) && this.raise(e.key.start, "Classes may not have a non-static field named 'constructor'"), t.body.push(this.parseClassProperty(e)); - }, e.prototype.parsePostMemberNameModifiers = function (t) {}, e.prototype.parseAccessModifier = function () {}, e.prototype.parsePrivateClassProperty = function (t) { - return this.state.inClassProperty = !0, this.match(C.eq) ? (this.next(), t.value = this.parseMaybeAssign()) : t.value = null, this.semicolon(), this.state.inClassProperty = !1, this.finishNode(t, "ClassPrivateProperty"); - }, e.prototype.parseClassProperty = function (t) { - return t.typeAnnotation || this.expectPlugin("classProperties"), this.state.inClassProperty = !0, this.match(C.eq) ? (this.expectPlugin("classProperties"), this.next(), t.value = this.parseMaybeAssign()) : t.value = null, this.semicolon(), this.state.inClassProperty = !1, this.finishNode(t, "ClassProperty"); - }, e.prototype.parseClassMethod = function (t, e, s, i, r) { + }, e.prototype.pushClassPrivateProperty = function (t, e) { + this.expectPlugin("classPrivateProperties", e.key.start), t.body.push(this.parseClassPrivateProperty(e)); + }, e.prototype.pushClassMethod = function (t, e, s, i, r) { t.body.push(this.parseMethod(e, s, i, r, "ClassMethod")); + }, e.prototype.pushClassPrivateMethod = function (t, e, s, i) { + this.expectPlugin("classPrivateMethods", e.key.start), t.body.push(this.parseMethod(e, s, i, !1, "ClassPrivateMethod")); + }, e.prototype.parsePostMemberNameModifiers = function (t) {}, e.prototype.parseAccessModifier = function () {}, e.prototype.parseClassPrivateProperty = function (t) { + return this.state.inClassProperty = !0, t.value = this.eat(E.eq) ? this.parseMaybeAssign() : null, this.semicolon(), this.state.inClassProperty = !1, this.finishNode(t, "ClassPrivateProperty"); + }, e.prototype.parseClassProperty = function (t) { + return t.typeAnnotation || this.expectPlugin("classProperties"), this.state.inClassProperty = !0, this.match(E.eq) ? (this.expectPlugin("classProperties"), this.next(), t.value = this.parseMaybeAssign()) : t.value = null, this.semicolon(), this.state.inClassProperty = !1, this.finishNode(t, "ClassProperty"); }, e.prototype.parseClassId = function (t, e, s) { - this.match(C.name) ? t.id = this.parseIdentifier() : s || !e ? t.id = null : this.unexpected(null, "A class name is required"); + this.match(E.name) ? t.id = this.parseIdentifier() : s || !e ? t.id = null : this.unexpected(null, "A class name is required"); }, e.prototype.parseClassSuper = function (t) { - t.superClass = this.eat(C._extends) ? this.parseExprSubscripts() : null; + t.superClass = this.eat(E._extends) ? this.parseExprSubscripts() : null; }, e.prototype.parseExport = function (t) { if (this.shouldParseExportStar()) { if (this.parseExportStar(t, this.hasPlugin("exportExtensions")), "ExportAllDeclaration" === t.type) return t; } else if (this.hasPlugin("exportExtensions") && this.isExportDefaultSpecifier()) { - var e = this.startNode();e.exported = this.parseIdentifier(!0);var s = [this.finishNode(e, "ExportDefaultSpecifier")];if (t.specifiers = s, this.match(C.comma) && this.lookahead().type === C.star) { - this.expect(C.comma);var i = this.startNode();this.expect(C.star), this.expectContextual("as"), i.exported = this.parseIdentifier(), s.push(this.finishNode(i, "ExportNamespaceSpecifier")); + var e = this.startNode();e.exported = this.parseIdentifier(!0);var s = [this.finishNode(e, "ExportDefaultSpecifier")];if (t.specifiers = s, this.match(E.comma) && this.lookahead().type === E.star) { + this.expect(E.comma);var i = this.startNode();this.expect(E.star), this.expectContextual("as"), i.exported = this.parseIdentifier(), s.push(this.finishNode(i, "ExportNamespaceSpecifier")); } else this.parseExportSpecifiersMaybe(t);this.parseExportFrom(t, !0); } else { - if (this.eat(C._default)) { + if (this.eat(E._default)) { var r = this.startNode(), - a = !1;return this.eat(C._function) ? r = this.parseFunction(r, !0, !1, !1, !0) : this.isContextual("async") && this.lookahead().type === C._function ? (this.eatContextual("async"), this.eat(C._function), r = this.parseFunction(r, !0, !1, !0, !0)) : this.match(C._class) ? r = this.parseClass(r, !0, !0) : (a = !0, r = this.parseMaybeAssign()), t.declaration = r, a && this.semicolon(), this.checkExport(t, !0, !0), this.finishNode(t, "ExportDefaultDeclaration"); + a = !1;return this.eat(E._function) ? r = this.parseFunction(r, !0, !1, !1, !0) : this.isContextual("async") && this.lookahead().type === E._function ? (this.eatContextual("async"), this.eat(E._function), r = this.parseFunction(r, !0, !1, !0, !0)) : this.match(E._class) ? r = this.parseClass(r, !0, !0) : (a = !0, r = this.parseMaybeAssign()), t.declaration = r, a && this.semicolon(), this.checkExport(t, !0, !0), this.finishNode(t, "ExportDefaultDeclaration"); }if (this.shouldParseExportDeclaration()) { if (this.isContextual("async")) { - var n = this.lookahead();n.type !== C._function && this.unexpected(n.start, "Unexpected token, expected function"); + var n = this.lookahead();n.type !== E._function && this.unexpected(n.start, "Unexpected token, expected function"); }t.specifiers = [], t.source = null, t.declaration = this.parseExportDeclaration(t); } else t.declaration = null, t.specifiers = this.parseExportSpecifiers(), this.parseExportFrom(t); }return this.checkExport(t, !0), this.finishNode(t, "ExportNamedDeclaration"); }, e.prototype.parseExportDeclaration = function (t) { return this.parseStatement(!0); }, e.prototype.isExportDefaultSpecifier = function () { - if (this.match(C.name)) return "async" !== this.state.value;if (!this.match(C._default)) return !1;var t = this.lookahead();return t.type === C.comma || t.type === C.name && "from" === t.value; + if (this.match(E.name)) return "async" !== this.state.value;if (!this.match(E._default)) return !1;var t = this.lookahead();return t.type === E.comma || t.type === E.name && "from" === t.value; }, e.prototype.parseExportSpecifiersMaybe = function (t) { - this.eat(C.comma) && (t.specifiers = t.specifiers.concat(this.parseExportSpecifiers())); + this.eat(E.comma) && (t.specifiers = t.specifiers.concat(this.parseExportSpecifiers())); }, e.prototype.parseExportFrom = function (t, e) { - this.eatContextual("from") ? (t.source = this.match(C.string) ? this.parseExprAtom() : this.unexpected(), this.checkExport(t)) : e ? this.unexpected() : t.source = null, this.semicolon(); + this.eatContextual("from") ? (t.source = this.match(E.string) ? this.parseExprAtom() : this.unexpected(), this.checkExport(t)) : e ? this.unexpected() : t.source = null, this.semicolon(); }, e.prototype.shouldParseExportStar = function () { - return this.match(C.star); + return this.match(E.star); }, e.prototype.parseExportStar = function (t, e) { - if (this.expect(C.star), e && this.isContextual("as")) { + if (this.expect(E.star), e && this.isContextual("as")) { var s = this.startNodeAt(this.state.lastTokStart, this.state.lastTokStartLoc);this.next(), s.exported = this.parseIdentifier(!0), t.specifiers = [this.finishNode(s, "ExportNamespaceSpecifier")], this.parseExportSpecifiersMaybe(t), this.parseExportFrom(t, !0); } else this.parseExportFrom(t, !0), this.finishNode(t, "ExportAllDeclaration"); }, e.prototype.shouldParseExportDeclaration = function () { @@ -743,19 +746,19 @@ var babylon = function () { }, e.prototype.parseExportSpecifiers = function () { var t = [], e = !0, - s = void 0;for (this.expect(C.braceL); !this.eat(C.braceR);) { - if (e) e = !1;else if (this.expect(C.comma), this.eat(C.braceR)) break;var i = this.match(C._default);i && !s && (s = !0);var r = this.startNode();r.local = this.parseIdentifier(i), r.exported = this.eatContextual("as") ? this.parseIdentifier(!0) : r.local.__clone(), t.push(this.finishNode(r, "ExportSpecifier")); + s = void 0;for (this.expect(E.braceL); !this.eat(E.braceR);) { + if (e) e = !1;else if (this.expect(E.comma), this.eat(E.braceR)) break;var i = this.match(E._default);i && !s && (s = !0);var r = this.startNode();r.local = this.parseIdentifier(i), r.exported = this.eatContextual("as") ? this.parseIdentifier(!0) : r.local.__clone(), t.push(this.finishNode(r, "ExportSpecifier")); }return s && !this.isContextual("from") && this.unexpected(), t; }, e.prototype.parseImport = function (t) { - return this.match(C.string) ? (t.specifiers = [], t.source = this.parseExprAtom()) : (t.specifiers = [], this.parseImportSpecifiers(t), this.expectContextual("from"), t.source = this.match(C.string) ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(t, "ImportDeclaration"); + return this.match(E.string) ? (t.specifiers = [], t.source = this.parseExprAtom()) : (t.specifiers = [], this.parseImportSpecifiers(t), this.expectContextual("from"), t.source = this.match(E.string) ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(t, "ImportDeclaration"); }, e.prototype.parseImportSpecifiers = function (t) { - var e = !0;if (this.match(C.name)) { + var e = !0;if (this.match(E.name)) { var s = this.state.start, - i = this.state.startLoc;if (t.specifiers.push(this.parseImportSpecifierDefault(this.parseIdentifier(), s, i)), !this.eat(C.comma)) return; - }if (this.match(C.star)) { + i = this.state.startLoc;if (t.specifiers.push(this.parseImportSpecifierDefault(this.parseIdentifier(), s, i)), !this.eat(E.comma)) return; + }if (this.match(E.star)) { var r = this.startNode();return this.next(), this.expectContextual("as"), r.local = this.parseIdentifier(), this.checkLVal(r.local, !0, void 0, "import namespace specifier"), void t.specifiers.push(this.finishNode(r, "ImportNamespaceSpecifier")); - }for (this.expect(C.braceL); !this.eat(C.braceR);) { - if (e) e = !1;else if (this.eat(C.colon) && this.unexpected(null, "ES2015 named imports do not destructure. Use another statement for destructuring after the import."), this.expect(C.comma), this.eat(C.braceR)) break;this.parseImportSpecifier(t); + }for (this.expect(E.braceL); !this.eat(E.braceR);) { + if (e) e = !1;else if (this.eat(E.colon) && this.unexpected(null, "ES2015 named imports do not destructure. Use another statement for destructuring after the import."), this.expect(E.comma), this.eat(E.braceR)) break;this.parseImportSpecifier(t); } }, e.prototype.parseImportSpecifier = function (t) { var e = this.startNode();e.imported = this.parseIdentifier(!0), this.eatContextual("as") ? e.local = this.parseIdentifier() : (this.checkReservedWord(e.imported.name, e.start, !0, !0), e.local = e.imported.__clone()), this.checkLVal(e.local, !0, void 0, "import specifier"), t.specifiers.push(this.finishNode(e, "ImportSpecifier")); @@ -770,21 +773,21 @@ var babylon = function () { var s = t.key;"__proto__" === ("Identifier" === s.type ? s.name : String(s.value)) && (e.proto && this.raise(s.start, "Redefinition of __proto__ property"), e.proto = !0); } }, e.prototype.getExpression = function () { - this.nextToken();var t = this.parseExpression();return this.match(C.eof) || this.unexpected(), t.comments = this.state.comments, t; + this.nextToken();var t = this.parseExpression();return this.match(E.eof) || this.unexpected(), t.comments = this.state.comments, t; }, e.prototype.parseExpression = function (t, e) { var s = this.state.start, i = this.state.startLoc, - r = this.parseMaybeAssign(t, e);if (this.match(C.comma)) { - var a = this.startNodeAt(s, i);for (a.expressions = [r]; this.eat(C.comma);) { + r = this.parseMaybeAssign(t, e);if (this.match(E.comma)) { + var a = this.startNodeAt(s, i);for (a.expressions = [r]; this.eat(E.comma);) { a.expressions.push(this.parseMaybeAssign(t, e)); }return this.toReferencedList(a.expressions), this.finishNode(a, "SequenceExpression"); }return r; }, e.prototype.parseMaybeAssign = function (t, e, s, i) { var r = this.state.start, - a = this.state.startLoc;if (this.match(C._yield) && this.state.inGenerator) { + a = this.state.startLoc;if (this.match(E._yield) && this.state.inGenerator) { var n = this.parseYield();return s && (n = s.call(this, n, r, a)), n; - }var o = void 0;e ? o = !1 : (e = { start: 0 }, o = !0), (this.match(C.parenL) || this.match(C.name)) && (this.state.potentialArrowAt = this.state.start);var h = this.parseMaybeConditional(t, e, i);if (s && (h = s.call(this, h, r, a)), this.state.type.isAssign) { - var p = this.startNodeAt(r, a);if (p.operator = this.state.value, p.left = this.match(C.eq) ? this.toAssignable(h, void 0, "assignment expression") : h, e.start = 0, this.checkLVal(h, void 0, void 0, "assignment expression"), h.extra && h.extra.parenthesized) { + }var o = void 0;e ? o = !1 : (e = { start: 0 }, o = !0), (this.match(E.parenL) || this.match(E.name)) && (this.state.potentialArrowAt = this.state.start);var h = this.parseMaybeConditional(t, e, i);if (s && (h = s.call(this, h, r, a)), this.state.type.isAssign) { + var p = this.startNodeAt(r, a);if (p.operator = this.state.value, p.left = this.match(E.eq) ? this.toAssignable(h, void 0, "assignment expression") : h, e.start = 0, this.checkLVal(h, void 0, void 0, "assignment expression"), h.extra && h.extra.parenthesized) { var c = void 0;"ObjectPattern" === h.type ? c = "`({a}) = 0` use `({a} = 0)`" : "ArrayPattern" === h.type && (c = "`([a]) = 0` use `([a] = 0)`"), c && this.raise(h.start, "You're trying to assign to a parenthesized expression, eg. instead of " + c); }return this.next(), p.right = this.parseMaybeAssign(t), this.finishNode(p, "AssignmentExpression"); }return o && e.start && this.unexpected(e.start), h; @@ -794,8 +797,8 @@ var babylon = function () { a = this.state.potentialArrowAt, n = this.parseExprOps(t, e);return "ArrowFunctionExpression" === n.type && n.start === a ? n : e && e.start ? n : this.parseConditional(n, t, i, r, s); }, e.prototype.parseConditional = function (t, e, s, i, r) { - if (this.eat(C.question)) { - var a = this.startNodeAt(s, i);return a.test = t, a.consequent = this.parseMaybeAssign(), this.expect(C.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(a, "ConditionalExpression"); + if (this.eat(E.question)) { + var a = this.startNodeAt(s, i);return a.test = t, a.consequent = this.parseMaybeAssign(), this.expect(E.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(a, "ConditionalExpression"); }return t; }, e.prototype.parseExprOps = function (t, e) { var s = this.state.start, @@ -803,14 +806,14 @@ var babylon = function () { r = this.state.potentialArrowAt, a = this.parseMaybeUnary(e);return "ArrowFunctionExpression" === a.type && a.start === r ? a : e && e.start ? a : this.parseExprOp(a, s, i, -1, t); }, e.prototype.parseExprOp = function (t, e, s, i, r) { - var a = this.state.type.binop;if (!(null == a || r && this.match(C._in)) && a > i) { + var a = this.state.type.binop;if (!(null == a || r && this.match(E._in)) && a > i) { var n = this.startNodeAt(e, s);n.left = t, n.operator = this.state.value, "**" !== n.operator || "UnaryExpression" !== t.type || !t.extra || t.extra.parenthesizedArgument || t.extra.parenthesized || this.raise(t.argument.start, "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var o = this.state.type;this.next();var h = this.state.start, - p = this.state.startLoc;return n.right = this.parseExprOp(this.parseMaybeUnary(), h, p, o.rightAssociative ? a - 1 : a, r), this.finishNode(n, o === C.logicalOR || o === C.logicalAND ? "LogicalExpression" : "BinaryExpression"), this.parseExprOp(n, e, s, i, r); + p = this.state.startLoc;return n.right = this.parseExprOp(this.parseMaybeUnary(), h, p, o.rightAssociative ? a - 1 : a, r), this.finishNode(n, o === E.logicalOR || o === E.logicalAND ? "LogicalExpression" : "BinaryExpression"), this.parseExprOp(n, e, s, i, r); }return t; }, e.prototype.parseMaybeUnary = function (t) { if (this.state.type.prefix) { var e = this.startNode(), - s = this.match(C.incDec);e.operator = this.state.value, e.prefix = !0, this.next();var i = this.state.type;if (e.argument = this.parseMaybeUnary(), this.addExtra(e, "parenthesizedArgument", !(i !== C.parenL || e.argument.extra && e.argument.extra.parenthesized)), t && t.start && this.unexpected(t.start), s) this.checkLVal(e.argument, void 0, void 0, "prefix operation");else if (this.state.strict && "delete" === e.operator) { + s = this.match(E.incDec);e.operator = this.state.value, e.prefix = !0, this.next();var i = this.state.type;if (e.argument = this.parseMaybeUnary(), this.addExtra(e, "parenthesizedArgument", !(i !== E.parenL || e.argument.extra && e.argument.extra.parenthesized)), t && t.start && this.unexpected(t.start), s) this.checkLVal(e.argument, void 0, void 0, "prefix operation");else if (this.state.strict && "delete" === e.operator) { var r = e.argument;"Identifier" === r.type ? this.raise(e.start, "Deleting local variable in strict mode") : this.hasPlugin("classPrivateProperties") && "MemberExpression" === r.type && "PrivateName" === r.property.type && this.raise(e.start, "Deleting a private field is not allowed"); }return this.finishNode(e, s ? "UpdateExpression" : "UnaryExpression"); }var a = this.state.start, @@ -828,19 +831,19 @@ var babylon = function () { t = this.parseSubscript(t, e, s, i, r); } while (!r.stop);return t; }, e.prototype.parseSubscript = function (t, e, s, i, r) { - if (!i && this.eat(C.doubleColon)) { + if (!i && this.eat(E.doubleColon)) { var a = this.startNodeAt(e, s);return a.object = t, a.callee = this.parseNoCallExpr(), r.stop = !0, this.parseSubscripts(this.finishNode(a, "BindExpression"), e, s, i); - }if (this.match(C.questionDot)) { - if (this.expectPlugin("optionalChaining"), i && this.lookahead().type == C.parenL) return r.stop = !0, t;this.next();var n = this.startNodeAt(e, s);if (this.eat(C.bracketL)) return n.object = t, n.property = this.parseExpression(), n.computed = !0, n.optional = !0, this.expect(C.bracketR), this.finishNode(n, "MemberExpression");if (this.eat(C.parenL)) { - var o = this.atPossibleAsync(t);return n.callee = t, n.arguments = this.parseCallExpressionArguments(C.parenR, o), n.optional = !0, this.finishNode(n, "CallExpression"); + }if (this.match(E.questionDot)) { + if (this.expectPlugin("optionalChaining"), i && this.lookahead().type == E.parenL) return r.stop = !0, t;this.next();var n = this.startNodeAt(e, s);if (this.eat(E.bracketL)) return n.object = t, n.property = this.parseExpression(), n.computed = !0, n.optional = !0, this.expect(E.bracketR), this.finishNode(n, "MemberExpression");if (this.eat(E.parenL)) { + var o = this.atPossibleAsync(t);return n.callee = t, n.arguments = this.parseCallExpressionArguments(E.parenR, o), n.optional = !0, this.finishNode(n, "CallExpression"); }return n.object = t, n.property = this.parseIdentifier(!0), n.computed = !1, n.optional = !0, this.finishNode(n, "MemberExpression"); - }if (this.eat(C.dot)) { + }if (this.eat(E.dot)) { var h = this.startNodeAt(e, s);return h.object = t, h.property = this.hasPlugin("classPrivateProperties") ? this.parseMaybePrivateName() : this.parseIdentifier(!0), h.computed = !1, this.finishNode(h, "MemberExpression"); - }if (this.eat(C.bracketL)) { - var p = this.startNodeAt(e, s);return p.object = t, p.property = this.parseExpression(), p.computed = !0, this.expect(C.bracketR), this.finishNode(p, "MemberExpression"); - }if (!i && this.match(C.parenL)) { - var c = this.atPossibleAsync(t);this.next();var l = this.startNodeAt(e, s);l.callee = t;var u = { start: -1 };return l.arguments = this.parseCallExpressionArguments(C.parenR, c, u), this.finishCallExpression(l), c && this.shouldParseAsyncArrow() ? (r.stop = !0, u.start > -1 && this.raise(u.start, "A trailing comma is not permitted after the rest element"), this.parseAsyncArrowFromCallExpression(this.startNodeAt(e, s), l)) : (this.toReferencedList(l.arguments), l); - }if (this.match(C.backQuote)) { + }if (this.eat(E.bracketL)) { + var p = this.startNodeAt(e, s);return p.object = t, p.property = this.parseExpression(), p.computed = !0, this.expect(E.bracketR), this.finishNode(p, "MemberExpression"); + }if (!i && this.match(E.parenL)) { + var c = this.atPossibleAsync(t);this.next();var l = this.startNodeAt(e, s);l.callee = t;var u = { start: -1 };return l.arguments = this.parseCallExpressionArguments(E.parenR, c, u), this.finishCallExpression(l), c && this.shouldParseAsyncArrow() ? (r.stop = !0, u.start > -1 && this.raise(u.start, "A trailing comma is not permitted after the rest element"), this.parseAsyncArrowFromCallExpression(this.startNodeAt(e, s), l)) : (this.toReferencedList(l.arguments), l); + }if (this.match(E.backQuote)) { var d = this.startNodeAt(e, s);return d.tag = t, d.quasi = this.parseTemplate(!0), this.finishNode(d, "TaggedTemplateExpression"); }return r.stop = !0, t; }, e.prototype.atPossibleAsync = function (t) { @@ -851,79 +854,79 @@ var babylon = function () { }return this.finishNode(t, "CallExpression"); }, e.prototype.parseCallExpressionArguments = function (t, e, s) { for (var i = [], r = void 0, a = !0; !this.eat(t);) { - if (a) a = !1;else if (this.expect(C.comma), this.eat(t)) break;this.match(C.parenL) && !r && (r = this.state.start), i.push(this.parseExprListItem(!1, e ? { start: 0 } : void 0, e ? { start: 0 } : void 0, e ? s : void 0)); + if (a) a = !1;else if (this.expect(E.comma), this.eat(t)) break;this.match(E.parenL) && !r && (r = this.state.start), i.push(this.parseExprListItem(!1, e ? { start: 0 } : void 0, e ? { start: 0 } : void 0, e ? s : void 0)); }return e && r && this.shouldParseAsyncArrow() && this.unexpected(), i; }, e.prototype.shouldParseAsyncArrow = function () { - return this.match(C.arrow); + return this.match(E.arrow); }, e.prototype.parseAsyncArrowFromCallExpression = function (t, e) { - return this.expect(C.arrow), this.parseArrowExpression(t, e.arguments, !0); + return this.expect(E.arrow), this.parseArrowExpression(t, e.arguments, !0); }, e.prototype.parseNoCallExpr = function () { var t = this.state.start, e = this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(), t, e, !0); }, e.prototype.parseExprAtom = function (t) { var e = this.state.potentialArrowAt === this.state.start, - s = void 0;switch (this.state.type) {case C._super: - return this.state.inMethod || this.state.inClassProperty || this.options.allowSuperOutsideMethod || this.raise(this.state.start, "'super' outside of function or class"), s = this.startNode(), this.next(), this.match(C.parenL) || this.match(C.bracketL) || this.match(C.dot) || this.unexpected(), this.match(C.parenL) && "constructor" !== this.state.inMethod && !this.options.allowSuperOutsideMethod && this.raise(s.start, "super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'."), this.finishNode(s, "Super");case C._import: - return this.lookahead().type === C.dot ? this.parseImportMetaProperty() : (this.expectPlugin("dynamicImport"), s = this.startNode(), this.next(), this.match(C.parenL) || this.unexpected(null, C.parenL), this.finishNode(s, "Import"));case C._this: - return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");case C._yield: - this.state.inGenerator && this.unexpected();case C.name: + s = void 0;switch (this.state.type) {case E._super: + return this.state.inMethod || this.state.inClassProperty || this.options.allowSuperOutsideMethod || this.raise(this.state.start, "'super' outside of function or class"), s = this.startNode(), this.next(), this.match(E.parenL) || this.match(E.bracketL) || this.match(E.dot) || this.unexpected(), this.match(E.parenL) && "constructor" !== this.state.inMethod && !this.options.allowSuperOutsideMethod && this.raise(s.start, "super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'."), this.finishNode(s, "Super");case E._import: + return this.lookahead().type === E.dot ? this.parseImportMetaProperty() : (this.expectPlugin("dynamicImport"), s = this.startNode(), this.next(), this.match(E.parenL) || this.unexpected(null, E.parenL), this.finishNode(s, "Import"));case E._this: + return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");case E._yield: + this.state.inGenerator && this.unexpected();case E.name: s = this.startNode();var i = "await" === this.state.value && this.state.inAsync, r = this.shouldAllowYieldIdentifier(), a = this.parseIdentifier(i || r);if ("await" === a.name) { if (this.state.inAsync || this.inModule) return this.parseAwait(s); } else { - if ("async" === a.name && this.match(C._function) && !this.canInsertSemicolon()) return this.next(), this.parseFunction(s, !1, !1, !0);if (e && "async" === a.name && this.match(C.name)) { - var n = [this.parseIdentifier()];return this.expect(C.arrow), this.parseArrowExpression(s, n, !0); + if ("async" === a.name && this.match(E._function) && !this.canInsertSemicolon()) return this.next(), this.parseFunction(s, !1, !1, !0);if (e && "async" === a.name && this.match(E.name)) { + var n = [this.parseIdentifier()];return this.expect(E.arrow), this.parseArrowExpression(s, n, !0); } - }return e && !this.canInsertSemicolon() && this.eat(C.arrow) ? this.parseArrowExpression(s, [a]) : a;case C._do: + }return e && !this.canInsertSemicolon() && this.eat(E.arrow) ? this.parseArrowExpression(s, [a]) : a;case E._do: this.expectPlugin("doExpressions");var o = this.startNode();this.next();var h = this.state.inFunction, - p = this.state.labels;return this.state.labels = [], this.state.inFunction = !1, o.body = this.parseBlock(!1), this.state.inFunction = h, this.state.labels = p, this.finishNode(o, "DoExpression");case C.regexp: - var c = this.state.value;return s = this.parseLiteral(c.value, "RegExpLiteral"), s.pattern = c.pattern, s.flags = c.flags, s;case C.num: - return this.parseLiteral(this.state.value, "NumericLiteral");case C.bigint: - return this.parseLiteral(this.state.value, "BigIntLiteral");case C.string: - return this.parseLiteral(this.state.value, "StringLiteral");case C._null: - return s = this.startNode(), this.next(), this.finishNode(s, "NullLiteral");case C._true:case C._false: - return this.parseBooleanLiteral();case C.parenL: - return this.parseParenAndDistinguishExpression(e);case C.bracketL: - return s = this.startNode(), this.next(), s.elements = this.parseExprList(C.bracketR, !0, t), this.toReferencedList(s.elements), this.finishNode(s, "ArrayExpression");case C.braceL: - return this.parseObj(!1, t);case C._function: - return this.parseFunctionExpression();case C.at: - this.parseDecorators();case C._class: - return s = this.startNode(), this.takeDecorators(s), this.parseClass(s, !1);case C._new: - return this.parseNew();case C.backQuote: - return this.parseTemplate(!1);case C.doubleColon: + p = this.state.labels;return this.state.labels = [], this.state.inFunction = !1, o.body = this.parseBlock(!1), this.state.inFunction = h, this.state.labels = p, this.finishNode(o, "DoExpression");case E.regexp: + var c = this.state.value;return s = this.parseLiteral(c.value, "RegExpLiteral"), s.pattern = c.pattern, s.flags = c.flags, s;case E.num: + return this.parseLiteral(this.state.value, "NumericLiteral");case E.bigint: + return this.parseLiteral(this.state.value, "BigIntLiteral");case E.string: + return this.parseLiteral(this.state.value, "StringLiteral");case E._null: + return s = this.startNode(), this.next(), this.finishNode(s, "NullLiteral");case E._true:case E._false: + return this.parseBooleanLiteral();case E.parenL: + return this.parseParenAndDistinguishExpression(e);case E.bracketL: + return s = this.startNode(), this.next(), s.elements = this.parseExprList(E.bracketR, !0, t), this.toReferencedList(s.elements), this.finishNode(s, "ArrayExpression");case E.braceL: + return this.parseObj(!1, t);case E._function: + return this.parseFunctionExpression();case E.at: + this.parseDecorators();case E._class: + return s = this.startNode(), this.takeDecorators(s), this.parseClass(s, !1);case E._new: + return this.parseNew();case E.backQuote: + return this.parseTemplate(!1);case E.doubleColon: s = this.startNode(), this.next(), s.object = null;var l = s.callee = this.parseNoCallExpr();if ("MemberExpression" === l.type) return this.finishNode(s, "BindExpression");throw this.raise(l.start, "Binding should be performed on object property.");default: throw this.unexpected();} }, e.prototype.parseBooleanLiteral = function () { - var t = this.startNode();return t.value = this.match(C._true), this.next(), this.finishNode(t, "BooleanLiteral"); + var t = this.startNode();return t.value = this.match(E._true), this.next(), this.finishNode(t, "BooleanLiteral"); }, e.prototype.parseMaybePrivateName = function () { - if (this.eat(C.hash)) { + if (this.eat(E.hash)) { var t = this.startNode();return t.id = this.parseIdentifier(!0), this.finishNode(t, "PrivateName"); }return this.parseIdentifier(!0); }, e.prototype.parseFunctionExpression = function () { var t = this.startNode(), - e = this.parseIdentifier(!0);return this.state.inGenerator && this.eat(C.dot) ? this.parseMetaProperty(t, e, "sent") : this.parseFunction(t, !1); + e = this.parseIdentifier(!0);return this.state.inGenerator && this.eat(E.dot) ? this.parseMetaProperty(t, e, "sent") : this.parseFunction(t, !1); }, e.prototype.parseMetaProperty = function (t, e, s) { return t.meta = e, "function" === e.name && "sent" === s && (this.isContextual(s) ? this.expectPlugin("functionSent") : this.hasPlugin("functionSent") || this.unexpected()), t.property = this.parseIdentifier(!0), t.property.name !== s && this.raise(t.property.start, "The only valid meta property for " + e.name + " is " + e.name + "." + s), this.finishNode(t, "MetaProperty"); }, e.prototype.parseImportMetaProperty = function () { var t = this.startNode(), - e = this.parseIdentifier(!0);return this.expect(C.dot), "import" === e.name && (this.isContextual("meta") ? this.expectPlugin("importMeta") : this.hasPlugin("importMeta") || this.raise(e.start, "Dynamic imports require a parameter: import('a.js').then")), this.inModule || this.raise(e.start, "import.meta may appear only with 'sourceType: \"module\"'"), this.parseMetaProperty(t, e, "meta"); + e = this.parseIdentifier(!0);return this.expect(E.dot), "import" === e.name && (this.isContextual("meta") ? this.expectPlugin("importMeta") : this.hasPlugin("importMeta") || this.raise(e.start, "Dynamic imports require a parameter: import('a.js').then")), this.inModule || this.raise(e.start, "import.meta may appear only with 'sourceType: \"module\"'"), this.parseMetaProperty(t, e, "meta"); }, e.prototype.parseLiteral = function (t, e, s, i) { s = s || this.state.start, i = i || this.state.startLoc;var r = this.startNodeAt(s, i);return this.addExtra(r, "rawValue", t), this.addExtra(r, "raw", this.input.slice(s, this.state.end)), r.value = t, this.next(), this.finishNode(r, e); }, e.prototype.parseParenExpression = function () { - this.expect(C.parenL);var t = this.parseExpression();return this.expect(C.parenR), t; + this.expect(E.parenL);var t = this.parseExpression();return this.expect(E.parenR), t; }, e.prototype.parseParenAndDistinguishExpression = function (t) { var e = this.state.start, s = this.state.startLoc, - i = void 0;this.expect(C.parenL);for (var r = this.state.start, a = this.state.startLoc, n = [], o = { start: 0 }, h = { start: 0 }, p = !0, c = void 0, l = void 0; !this.match(C.parenR);) { - if (p) p = !1;else if (this.expect(C.comma, h.start || null), this.match(C.parenR)) { + i = void 0;this.expect(E.parenL);for (var r = this.state.start, a = this.state.startLoc, n = [], o = { start: 0 }, h = { start: 0 }, p = !0, c = void 0, l = void 0; !this.match(E.parenR);) { + if (p) p = !1;else if (this.expect(E.comma, h.start || null), this.match(E.parenR)) { l = this.state.start;break; - }if (this.match(C.ellipsis)) { + }if (this.match(E.ellipsis)) { var u = this.state.start, - d = this.state.startLoc;c = this.state.start, n.push(this.parseParenItem(this.parseRest(), u, d)), this.match(C.comma) && this.lookahead().type === C.parenR && this.raise(this.state.start, "A trailing comma is not permitted after the rest element");break; + d = this.state.startLoc;c = this.state.start, n.push(this.parseParenItem(this.parseRest(), u, d)), this.match(E.comma) && this.lookahead().type === E.parenR && this.raise(this.state.start, "A trailing comma is not permitted after the rest element");break; }n.push(this.parseMaybeAssign(!1, o, this.parseParenItem, h)); }var f = this.state.start, - y = this.state.startLoc;this.expect(C.parenR);var m = this.startNodeAt(e, s);if (t && this.shouldParseArrow() && (m = this.parseArrow(m))) { + y = this.state.startLoc;this.expect(E.parenR);var m = this.startNodeAt(e, s);if (t && this.shouldParseArrow() && (m = this.parseArrow(m))) { for (var x = 0; x < n.length; x++) { var v = n[x];v.extra && v.extra.parenthesized && this.unexpected(v.extra.parenStart); }return this.parseArrowExpression(m, n); @@ -931,65 +934,65 @@ var babylon = function () { }, e.prototype.shouldParseArrow = function () { return !this.canInsertSemicolon(); }, e.prototype.parseArrow = function (t) { - if (this.eat(C.arrow)) return t; + if (this.eat(E.arrow)) return t; }, e.prototype.parseParenItem = function (t, e, s) { return t; }, e.prototype.parseNew = function () { var t = this.startNode(), - e = this.parseIdentifier(!0);if (this.eat(C.dot)) { + e = this.parseIdentifier(!0);if (this.eat(E.dot)) { var s = this.parseMetaProperty(t, e, "target");return this.state.inFunction || this.raise(s.property.start, "new.target can only be used in functions"), s; - }return t.callee = this.parseNoCallExpr(), this.eat(C.questionDot) && (t.optional = !0), this.parseNewArguments(t), this.finishNode(t, "NewExpression"); + }return t.callee = this.parseNoCallExpr(), this.eat(E.questionDot) && (t.optional = !0), this.parseNewArguments(t), this.finishNode(t, "NewExpression"); }, e.prototype.parseNewArguments = function (t) { - if (this.eat(C.parenL)) { - var e = this.parseExprList(C.parenR);this.toReferencedList(e), t.arguments = e; + if (this.eat(E.parenL)) { + var e = this.parseExprList(E.parenR);this.toReferencedList(e), t.arguments = e; } else t.arguments = []; }, e.prototype.parseTemplateElement = function (t) { - var e = this.startNode();return null === this.state.value && (t ? this.state.invalidTemplateEscapePosition = null : this.raise(this.state.invalidTemplateEscapePosition || 0, "Invalid escape sequence in template")), e.value = { raw: this.input.slice(this.state.start, this.state.end).replace(/\r\n?/g, "\n"), cooked: this.state.value }, this.next(), e.tail = this.match(C.backQuote), this.finishNode(e, "TemplateElement"); + var e = this.startNode();return null === this.state.value && (t ? this.state.invalidTemplateEscapePosition = null : this.raise(this.state.invalidTemplateEscapePosition || 0, "Invalid escape sequence in template")), e.value = { raw: this.input.slice(this.state.start, this.state.end).replace(/\r\n?/g, "\n"), cooked: this.state.value }, this.next(), e.tail = this.match(E.backQuote), this.finishNode(e, "TemplateElement"); }, e.prototype.parseTemplate = function (t) { var e = this.startNode();this.next(), e.expressions = [];var s = this.parseTemplateElement(t);for (e.quasis = [s]; !s.tail;) { - this.expect(C.dollarBraceL), e.expressions.push(this.parseExpression()), this.expect(C.braceR), e.quasis.push(s = this.parseTemplateElement(t)); + this.expect(E.dollarBraceL), e.expressions.push(this.parseExpression()), this.expect(E.braceR), e.quasis.push(s = this.parseTemplateElement(t)); }return this.next(), this.finishNode(e, "TemplateLiteral"); }, e.prototype.parseObj = function (t, e) { var s = [], i = Object.create(null), r = !0, - a = this.startNode();a.properties = [], this.next();for (var n = null; !this.eat(C.braceR);) { - if (r) r = !1;else if (this.expect(C.comma), this.eat(C.braceR)) break;if (this.match(C.at)) if (this.hasPlugin("decorators2")) this.raise(this.state.start, "Stage 2 decorators disallow object literal property decorators");else for (; this.match(C.at);) { + a = this.startNode();a.properties = [], this.next();for (var n = null; !this.eat(E.braceR);) { + if (r) r = !1;else if (this.expect(E.comma), this.eat(E.braceR)) break;if (this.match(E.at)) if (this.hasPlugin("decorators2")) this.raise(this.state.start, "Stage 2 decorators disallow object literal property decorators");else for (; this.match(E.at);) { s.push(this.parseDecorator()); }var o = this.startNode(), h = !1, p = !1, c = void 0, - l = void 0;if (s.length && (o.decorators = s, s = []), this.match(C.ellipsis)) { + l = void 0;if (s.length && (o.decorators = s, s = []), this.match(E.ellipsis)) { if (this.expectPlugin("objectRestSpread"), o = this.parseSpread(t ? { start: 0 } : void 0), t && this.toAssignable(o, !0, "object pattern"), a.properties.push(o), !t) continue;var u = this.state.start;if (null !== n) this.unexpected(n, "Cannot have multiple rest elements when destructuring");else { - if (this.eat(C.braceR)) break;if (!this.match(C.comma) || this.lookahead().type !== C.braceR) { + if (this.eat(E.braceR)) break;if (!this.match(E.comma) || this.lookahead().type !== E.braceR) { n = u;continue; }this.unexpected(u, "A trailing comma is not permitted after the rest element"); } - }if (o.method = !1, (t || e) && (c = this.state.start, l = this.state.startLoc), t || (h = this.eat(C.star)), !t && this.isContextual("async")) { - h && this.unexpected();var d = this.parseIdentifier();this.match(C.colon) || this.match(C.parenL) || this.match(C.braceR) || this.match(C.eq) || this.match(C.comma) ? (o.key = d, o.computed = !1) : (p = !0, this.match(C.star) && (this.expectPlugin("asyncGenerators"), this.next(), h = !0), this.parsePropertyName(o)); + }if (o.method = !1, (t || e) && (c = this.state.start, l = this.state.startLoc), t || (h = this.eat(E.star)), !t && this.isContextual("async")) { + h && this.unexpected();var d = this.parseIdentifier();this.match(E.colon) || this.match(E.parenL) || this.match(E.braceR) || this.match(E.eq) || this.match(E.comma) ? (o.key = d, o.computed = !1) : (p = !0, this.match(E.star) && (this.expectPlugin("asyncGenerators"), this.next(), h = !0), this.parsePropertyName(o)); } else this.parsePropertyName(o);this.parseObjPropValue(o, c, l, h, p, t, e), this.checkPropClash(o, i), o.shorthand && this.addExtra(o, "shorthand", !0), a.properties.push(o); }return null !== n && this.unexpected(n, "The rest element has to be the last element when destructuring"), s.length && this.raise(this.state.start, "You have trailing decorators with no property"), this.finishNode(a, t ? "ObjectPattern" : "ObjectExpression"); }, e.prototype.isGetterOrSetterMethod = function (t, e) { - return !e && !t.computed && "Identifier" === t.key.type && ("get" === t.key.name || "set" === t.key.name) && (this.match(C.string) || this.match(C.num) || this.match(C.bracketL) || this.match(C.name) || !!this.state.type.keyword); + return !e && !t.computed && "Identifier" === t.key.type && ("get" === t.key.name || "set" === t.key.name) && (this.match(E.string) || this.match(E.num) || this.match(E.bracketL) || this.match(E.name) || !!this.state.type.keyword); }, e.prototype.checkGetterSetterParamCount = function (t) { var e = "get" === t.kind ? 0 : 1;if (t.params.length !== e) { var s = t.start;"get" === t.kind ? this.raise(s, "getter should have no params") : this.raise(s, "setter should have exactly one param"); } }, e.prototype.parseObjectMethod = function (t, e, s, i) { - return s || e || this.match(C.parenL) ? (i && this.unexpected(), t.kind = "method", t.method = !0, this.parseMethod(t, e, s, !1, "ObjectMethod")) : this.isGetterOrSetterMethod(t, i) ? ((e || s) && this.unexpected(), t.kind = t.key.name, this.parsePropertyName(t), this.parseMethod(t, !1, !1, !1, "ObjectMethod"), this.checkGetterSetterParamCount(t), t) : void 0; + return s || e || this.match(E.parenL) ? (i && this.unexpected(), t.kind = "method", t.method = !0, this.parseMethod(t, e, s, !1, "ObjectMethod")) : this.isGetterOrSetterMethod(t, i) ? ((e || s) && this.unexpected(), t.kind = t.key.name, this.parsePropertyName(t), this.parseMethod(t, !1, !1, !1, "ObjectMethod"), this.checkGetterSetterParamCount(t), t) : void 0; }, e.prototype.parseObjectProperty = function (t, e, s, i, r) { - return t.shorthand = !1, this.eat(C.colon) ? (t.value = i ? this.parseMaybeDefault(this.state.start, this.state.startLoc) : this.parseMaybeAssign(!1, r), this.finishNode(t, "ObjectProperty")) : t.computed || "Identifier" !== t.key.type ? void 0 : (this.checkReservedWord(t.key.name, t.key.start, !0, !0), i ? t.value = this.parseMaybeDefault(e, s, t.key.__clone()) : this.match(C.eq) && r ? (r.start || (r.start = this.state.start), t.value = this.parseMaybeDefault(e, s, t.key.__clone())) : t.value = t.key.__clone(), t.shorthand = !0, this.finishNode(t, "ObjectProperty")); + return t.shorthand = !1, this.eat(E.colon) ? (t.value = i ? this.parseMaybeDefault(this.state.start, this.state.startLoc) : this.parseMaybeAssign(!1, r), this.finishNode(t, "ObjectProperty")) : t.computed || "Identifier" !== t.key.type ? void 0 : (this.checkReservedWord(t.key.name, t.key.start, !0, !0), i ? t.value = this.parseMaybeDefault(e, s, t.key.__clone()) : this.match(E.eq) && r ? (r.start || (r.start = this.state.start), t.value = this.parseMaybeDefault(e, s, t.key.__clone())) : t.value = t.key.__clone(), t.shorthand = !0, this.finishNode(t, "ObjectProperty")); }, e.prototype.parseObjPropValue = function (t, e, s, i, r, a, n) { var o = this.parseObjectMethod(t, i, r, a) || this.parseObjectProperty(t, e, s, a, n);return o || this.unexpected(), o; }, e.prototype.parsePropertyName = function (t) { - if (this.eat(C.bracketL)) t.computed = !0, t.key = this.parseMaybeAssign(), this.expect(C.bracketR);else { - t.computed = !1;var e = this.state.inPropertyName;this.state.inPropertyName = !0, t.key = this.match(C.num) || this.match(C.string) ? this.parseExprAtom() : this.parseIdentifier(!0), this.state.inPropertyName = e; + if (this.eat(E.bracketL)) t.computed = !0, t.key = this.parseMaybeAssign(), this.expect(E.bracketR);else { + var e = this.state.inPropertyName;this.state.inPropertyName = !0, t.key = this.match(E.num) || this.match(E.string) ? this.parseExprAtom() : this.parseMaybePrivateName(), "PrivateName" !== t.key.type && (t.computed = !1), this.state.inPropertyName = e; }return t.key; }, e.prototype.initFunction = function (t, e) { t.id = null, t.generator = !1, t.expression = !1, t.async = !!e; }, e.prototype.parseMethod = function (t, e, s, i, r) { - var a = this.state.inMethod;this.state.inMethod = t.kind || !0, this.initFunction(t, s), this.expect(C.parenL);var n = i;return t.params = this.parseBindingList(C.parenR, !1, n), t.generator = !!e, this.parseFunctionBodyAndFinish(t, r), this.state.inMethod = a, t; + var a = this.state.inMethod;this.state.inMethod = t.kind || !0, this.initFunction(t, s), this.expect(E.parenL);var n = i;return t.params = this.parseBindingList(E.parenR, !1, n), t.generator = !!e, this.parseFunctionBodyAndFinish(t, r), this.state.inMethod = a, t; }, e.prototype.parseArrowExpression = function (t, e, s) { return this.initFunction(t, s), t.params = this.toAssignableList(e, !0, "arrow function parameters"), this.parseFunctionBody(t, !0), this.finishNode(t, "ArrowFunctionExpression"); }, e.prototype.isStrictBody = function (t, e) { @@ -1003,7 +1006,7 @@ var babylon = function () { }, e.prototype.parseFunctionBodyAndFinish = function (t, e, s) { this.parseFunctionBody(t, s), this.finishNode(t, e); }, e.prototype.parseFunctionBody = function (t, e) { - var s = e && !this.match(C.braceL), + var s = e && !this.match(E.braceL), i = this.state.inAsync;if (this.state.inAsync = t.async, s) t.body = this.parseMaybeAssign(), t.expression = !0;else { var r = this.state.inFunction, a = this.state.inGenerator, @@ -1021,23 +1024,23 @@ var babylon = function () { } }, e.prototype.parseExprList = function (t, e, s) { for (var i = [], r = !0; !this.eat(t);) { - if (r) r = !1;else if (this.expect(C.comma), this.eat(t)) break;i.push(this.parseExprListItem(e, s)); + if (r) r = !1;else if (this.expect(E.comma), this.eat(t)) break;i.push(this.parseExprListItem(e, s)); }return i; }, e.prototype.parseExprListItem = function (t, e, s, i) { - var r = void 0;return t && this.match(C.comma) ? r = null : this.match(C.ellipsis) ? (r = this.parseSpread(e), i && this.match(C.comma) && (i.start = this.state.start)) : r = this.parseMaybeAssign(!1, e, this.parseParenItem, s), r; + var r = void 0;return t && this.match(E.comma) ? r = null : this.match(E.ellipsis) ? (r = this.parseSpread(e), i && this.match(E.comma) && (i.start = this.state.start)) : r = this.parseMaybeAssign(!1, e, this.parseParenItem, s), r; }, e.prototype.parseIdentifier = function (t) { var e = this.startNode(), s = this.parseIdentifierName(e.start, t);return e.name = s, e.loc.identifierName = s, this.finishNode(e, "Identifier"); }, e.prototype.parseIdentifierName = function (t, e) { - e || this.checkReservedWord(this.state.value, this.state.start, !!this.state.type.keyword, !1);var s = void 0;if (this.match(C.name)) s = this.state.value;else { + e || this.checkReservedWord(this.state.value, this.state.start, !!this.state.type.keyword, !1);var s = void 0;if (this.match(E.name)) s = this.state.value;else { if (!this.state.type.keyword) throw this.unexpected();s = this.state.type.keyword; }return !e && "await" === s && this.state.inAsync && this.raise(t, "invalid use of await inside of an async function"), this.next(), s; }, e.prototype.checkReservedWord = function (t, e, s, i) { (this.isReservedWord(t) || s && this.isKeyword(t)) && this.raise(e, t + " is a reserved word"), this.state.strict && (L.strict(t) || i && L.strictBind(t)) && this.raise(e, t + " is a reserved word in strict mode"); }, e.prototype.parseAwait = function (t) { - return this.state.inAsync || this.unexpected(), this.match(C.star) && this.raise(t.start, "await* has been removed from the async functions proposal. Use Promise.all() instead."), t.argument = this.parseMaybeUnary(), this.finishNode(t, "AwaitExpression"); + return this.state.inAsync || this.unexpected(), this.match(E.star) && this.raise(t.start, "await* has been removed from the async functions proposal. Use Promise.all() instead."), t.argument = this.parseMaybeUnary(), this.finishNode(t, "AwaitExpression"); }, e.prototype.parseYield = function () { - var t = this.startNode();return this.next(), this.match(C.semi) || this.canInsertSemicolon() || !this.match(C.star) && !this.state.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(C.star), t.argument = this.parseMaybeAssign()), this.finishNode(t, "YieldExpression"); + var t = this.startNode();return this.next(), this.match(E.semi) || this.canInsertSemicolon() || !this.match(E.star) && !this.state.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(E.star), t.argument = this.parseMaybeAssign()), this.finishNode(t, "YieldExpression"); }, e; }(function (t) { function e() { @@ -1079,21 +1082,21 @@ var babylon = function () { }, e.prototype.parseRest = function () { var t = this.startNode();return this.next(), t.argument = this.parseBindingAtom(), this.finishNode(t, "RestElement"); }, e.prototype.shouldAllowYieldIdentifier = function () { - return this.match(C._yield) && !this.state.strict && !this.state.inGenerator; + return this.match(E._yield) && !this.state.strict && !this.state.inGenerator; }, e.prototype.parseBindingIdentifier = function () { return this.parseIdentifier(this.shouldAllowYieldIdentifier()); }, e.prototype.parseBindingAtom = function () { - switch (this.state.type) {case C._yield:case C.name: - return this.parseBindingIdentifier();case C.bracketL: - var t = this.startNode();return this.next(), t.elements = this.parseBindingList(C.bracketR, !0), this.finishNode(t, "ArrayPattern");case C.braceL: + switch (this.state.type) {case E._yield:case E.name: + return this.parseBindingIdentifier();case E.bracketL: + var t = this.startNode();return this.next(), t.elements = this.parseBindingList(E.bracketR, !0), this.finishNode(t, "ArrayPattern");case E.braceL: return this.parseObj(!0);default: throw this.unexpected();} }, e.prototype.parseBindingList = function (t, e, s) { for (var i = [], r = !0; !this.eat(t);) { - if (r ? r = !1 : this.expect(C.comma), e && this.match(C.comma)) i.push(null);else { - if (this.eat(t)) break;if (this.match(C.ellipsis)) { + if (r ? r = !1 : this.expect(E.comma), e && this.match(E.comma)) i.push(null);else { + if (this.eat(t)) break;if (this.match(E.ellipsis)) { i.push(this.parseAssignableListItemTypes(this.parseRest())), this.expect(t);break; - }var a = [];for (this.match(C.at) && this.hasPlugin("decorators2") && this.raise(this.state.start, "Stage 2 decorators cannot be used to decorate parameters"); this.match(C.at);) { + }var a = [];for (this.match(E.at) && this.hasPlugin("decorators2") && this.raise(this.state.start, "Stage 2 decorators cannot be used to decorate parameters"); this.match(E.at);) { a.push(this.parseDecorator()); }i.push(this.parseAssignableListItem(s, a)); } @@ -1103,7 +1106,7 @@ var babylon = function () { }, e.prototype.parseAssignableListItemTypes = function (t) { return t; }, e.prototype.parseMaybeDefault = function (t, e, s) { - if (e = e || this.state.startLoc, t = t || this.state.start, s = s || this.parseBindingAtom(), !this.eat(C.eq)) return s;var i = this.startNodeAt(t, e);return i.left = s, i.right = this.parseMaybeAssign(), this.finishNode(i, "AssignmentPattern"); + if (e = e || this.state.startLoc, t = t || this.state.start, s = s || this.parseBindingAtom(), !this.eat(E.eq)) return s;var i = this.startNodeAt(t, e);return i.left = s, i.right = this.parseMaybeAssign(), this.finishNode(i, "AssignmentPattern"); }, e.prototype.checkLVal = function (t, e, s, i) { switch (t.type) {case "Identifier": if (this.checkReservedWord(t.name, t.start, !1, !0), s) { @@ -1196,14 +1199,14 @@ var babylon = function () { var a = this;t.prototype.parseBlockBody.call(this, e, s, i, r);var n = e.directives.map(function (t) { return a.directiveToStmt(t); });e.body = n.concat(e.body), delete e.directives; - }, e.prototype.parseClassMethod = function (t, e, s, i, r) { + }, e.prototype.pushClassMethod = function (t, e, s, i, r) { this.parseMethod(e, s, i, r, "MethodDefinition"), e.typeParameters && (e.value.typeParameters = e.typeParameters, delete e.typeParameters), t.body.push(e); }, e.prototype.parseExprAtom = function (e) { - switch (this.state.type) {case C.regexp: - return this.estreeParseRegExpLiteral(this.state.value);case C.num:case C.string: - return this.estreeParseLiteral(this.state.value);case C._null: - return this.estreeParseLiteral(null);case C._true: - return this.estreeParseLiteral(!0);case C._false: + switch (this.state.type) {case E.regexp: + return this.estreeParseRegExpLiteral(this.state.value);case E.num:case E.string: + return this.estreeParseLiteral(this.state.value);case E._null: + return this.estreeParseLiteral(null);case E._true: + return this.estreeParseLiteral(!0);case E._false: return this.estreeParseLiteral(!1);default: return t.prototype.parseExprAtom.call(this, e);} }, e.prototype.parseLiteral = function (e, s, i, r) { @@ -1228,42 +1231,42 @@ var babylon = function () { function e() { return t.apply(this, arguments) || this; }return A(e, t), e.prototype.flowParseTypeInitialiser = function (t) { - var e = this.state.inType;this.state.inType = !0, this.expect(t || C.colon);var s = this.flowParseType();return this.state.inType = e, s; + var e = this.state.inType;this.state.inType = !0, this.expect(t || E.colon);var s = this.flowParseType();return this.state.inType = e, s; }, e.prototype.flowParsePredicate = function () { var t = this.startNode(), e = this.state.startLoc, - s = this.state.start;this.expect(C.modulo);var i = this.state.startLoc;return this.expectContextual("checks"), e.line === i.line && e.column === i.column - 1 || this.raise(s, "Spaces between ´%´ and ´checks´ are not allowed here."), this.eat(C.parenL) ? (t.value = this.parseExpression(), this.expect(C.parenR), this.finishNode(t, "DeclaredPredicate")) : this.finishNode(t, "InferredPredicate"); + s = this.state.start;this.expect(E.modulo);var i = this.state.startLoc;return this.expectContextual("checks"), e.line === i.line && e.column === i.column - 1 || this.raise(s, "Spaces between ´%´ and ´checks´ are not allowed here."), this.eat(E.parenL) ? (t.value = this.parseExpression(), this.expect(E.parenR), this.finishNode(t, "DeclaredPredicate")) : this.finishNode(t, "InferredPredicate"); }, e.prototype.flowParseTypeAndPredicateInitialiser = function () { - var t = this.state.inType;this.state.inType = !0, this.expect(C.colon);var e = null, - s = null;return this.match(C.modulo) ? (this.state.inType = t, s = this.flowParsePredicate()) : (e = this.flowParseType(), this.state.inType = t, this.match(C.modulo) && (s = this.flowParsePredicate())), [e, s]; + var t = this.state.inType;this.state.inType = !0, this.expect(E.colon);var e = null, + s = null;return this.match(E.modulo) ? (this.state.inType = t, s = this.flowParsePredicate()) : (e = this.flowParseType(), this.state.inType = t, this.match(E.modulo) && (s = this.flowParsePredicate())), [e, s]; }, e.prototype.flowParseDeclareClass = function (t) { return this.next(), this.flowParseInterfaceish(t), this.finishNode(t, "DeclareClass"); }, e.prototype.flowParseDeclareFunction = function (t) { this.next();var e = t.id = this.parseIdentifier(), s = this.startNode(), - i = this.startNode();this.isRelational("<") ? s.typeParameters = this.flowParseTypeParameterDeclaration() : s.typeParameters = null, this.expect(C.parenL);var r = this.flowParseFunctionTypeParams();s.params = r.params, s.rest = r.rest, this.expect(C.parenR);var a = this.flowParseTypeAndPredicateInitialiser();return s.returnType = a[0], t.predicate = a[1], i.typeAnnotation = this.finishNode(s, "FunctionTypeAnnotation"), e.typeAnnotation = this.finishNode(i, "TypeAnnotation"), this.finishNode(e, e.type), this.semicolon(), this.finishNode(t, "DeclareFunction"); + i = this.startNode();this.isRelational("<") ? s.typeParameters = this.flowParseTypeParameterDeclaration() : s.typeParameters = null, this.expect(E.parenL);var r = this.flowParseFunctionTypeParams();s.params = r.params, s.rest = r.rest, this.expect(E.parenR);var a = this.flowParseTypeAndPredicateInitialiser();return s.returnType = a[0], t.predicate = a[1], i.typeAnnotation = this.finishNode(s, "FunctionTypeAnnotation"), e.typeAnnotation = this.finishNode(i, "TypeAnnotation"), this.finishNode(e, e.type), this.semicolon(), this.finishNode(t, "DeclareFunction"); }, e.prototype.flowParseDeclare = function (t, e) { - if (this.match(C._class)) return this.flowParseDeclareClass(t);if (this.match(C._function)) return this.flowParseDeclareFunction(t);if (this.match(C._var)) return this.flowParseDeclareVariable(t);if (this.isContextual("module")) return this.lookahead().type === C.dot ? this.flowParseDeclareModuleExports(t) : (e && this.unexpected(null, "`declare module` cannot be used inside another `declare module`"), this.flowParseDeclareModule(t));if (this.isContextual("type")) return this.flowParseDeclareTypeAlias(t);if (this.isContextual("opaque")) return this.flowParseDeclareOpaqueType(t);if (this.isContextual("interface")) return this.flowParseDeclareInterface(t);if (this.match(C._export)) return this.flowParseDeclareExportDeclaration(t, e);throw this.unexpected(); + if (this.match(E._class)) return this.flowParseDeclareClass(t);if (this.match(E._function)) return this.flowParseDeclareFunction(t);if (this.match(E._var)) return this.flowParseDeclareVariable(t);if (this.isContextual("module")) return this.lookahead().type === E.dot ? this.flowParseDeclareModuleExports(t) : (e && this.unexpected(null, "`declare module` cannot be used inside another `declare module`"), this.flowParseDeclareModule(t));if (this.isContextual("type")) return this.flowParseDeclareTypeAlias(t);if (this.isContextual("opaque")) return this.flowParseDeclareOpaqueType(t);if (this.isContextual("interface")) return this.flowParseDeclareInterface(t);if (this.match(E._export)) return this.flowParseDeclareExportDeclaration(t, e);throw this.unexpected(); }, e.prototype.flowParseDeclareVariable = function (t) { - return this.next(), t.id = this.flowParseTypeAnnotatableIdentifier(), this.semicolon(), this.finishNode(t, "DeclareVariable"); + return this.next(), t.id = this.flowParseTypeAnnotatableIdentifier(!0), this.semicolon(), this.finishNode(t, "DeclareVariable"); }, e.prototype.flowParseDeclareModule = function (t) { - var e = this;this.next(), this.match(C.string) ? t.id = this.parseExprAtom() : t.id = this.parseIdentifier();var s = t.body = this.startNode(), - i = s.body = [];for (this.expect(C.braceL); !this.match(C.braceR);) { - var r = this.startNode();if (this.match(C._import)) { + var e = this;this.next(), this.match(E.string) ? t.id = this.parseExprAtom() : t.id = this.parseIdentifier();var s = t.body = this.startNode(), + i = s.body = [];for (this.expect(E.braceL); !this.match(E.braceR);) { + var r = this.startNode();if (this.match(E._import)) { var a = this.lookahead();"type" !== a.value && "typeof" !== a.value && this.unexpected(null, "Imports within a `declare module` body must always be `import type` or `import typeof`"), this.next(), this.parseImport(r); } else this.expectContextual("declare", "Only declares and type imports are allowed inside declare module"), r = this.flowParseDeclare(r, !0);i.push(r); - }this.expect(C.braceR), this.finishNode(s, "BlockStatement");var n = null, + }this.expect(E.braceR), this.finishNode(s, "BlockStatement");var n = null, o = !1, h = "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module";return i.forEach(function (t) { d(t) ? ("CommonJS" === n && e.unexpected(t.start, h), n = "ES") : "DeclareModuleExports" === t.type && (o && e.unexpected(t.start, "Duplicate `declare module.exports` statement"), "ES" === n && e.unexpected(t.start, h), n = "CommonJS", o = !0); }), t.kind = n || "CommonJS", this.finishNode(t, "DeclareModule"); }, e.prototype.flowParseDeclareExportDeclaration = function (t, e) { - if (this.expect(C._export), this.eat(C._default)) return this.match(C._function) || this.match(C._class) ? t.declaration = this.flowParseDeclare(this.startNode()) : (t.declaration = this.flowParseType(), this.semicolon()), t.default = !0, this.finishNode(t, "DeclareExportDeclaration");if (this.match(C._const) || this.match(C._let) || (this.isContextual("type") || this.isContextual("interface")) && !e) { + if (this.expect(E._export), this.eat(E._default)) return this.match(E._function) || this.match(E._class) ? t.declaration = this.flowParseDeclare(this.startNode()) : (t.declaration = this.flowParseType(), this.semicolon()), t.default = !0, this.finishNode(t, "DeclareExportDeclaration");if (this.match(E._const) || this.match(E._let) || (this.isContextual("type") || this.isContextual("interface")) && !e) { var s = this.state.value, i = at[s];this.unexpected(this.state.start, "`declare export " + s + "` is not supported. Use `" + i + "` instead"); - }if (this.match(C._var) || this.match(C._function) || this.match(C._class) || this.isContextual("opaque")) return t.declaration = this.flowParseDeclare(this.startNode()), t.default = !1, this.finishNode(t, "DeclareExportDeclaration");if (this.match(C.star) || this.match(C.braceL) || this.isContextual("interface") || this.isContextual("type") || this.isContextual("opaque")) return "ExportNamedDeclaration" === (t = this.parseExport(t)).type && (t.type = "ExportDeclaration", t.default = !1, delete t.exportKind), t.type = "Declare" + t.type, t;throw this.unexpected(); + }if (this.match(E._var) || this.match(E._function) || this.match(E._class) || this.isContextual("opaque")) return t.declaration = this.flowParseDeclare(this.startNode()), t.default = !1, this.finishNode(t, "DeclareExportDeclaration");if (this.match(E.star) || this.match(E.braceL) || this.isContextual("interface") || this.isContextual("type") || this.isContextual("opaque")) return "ExportNamedDeclaration" === (t = this.parseExport(t)).type && (t.type = "ExportDeclaration", t.default = !1, delete t.exportKind), t.type = "Declare" + t.type, t;throw this.unexpected(); }, e.prototype.flowParseDeclareModuleExports = function (t) { - return this.expectContextual("module"), this.expect(C.dot), this.expectContextual("exports"), t.typeAnnotation = this.flowParseTypeAnnotation(), this.semicolon(), this.finishNode(t, "DeclareModuleExports"); + return this.expectContextual("module"), this.expect(E.dot), this.expectContextual("exports"), t.typeAnnotation = this.flowParseTypeAnnotation(), this.semicolon(), this.finishNode(t, "DeclareModuleExports"); }, e.prototype.flowParseDeclareTypeAlias = function (t) { return this.next(), this.flowParseTypeAlias(t), this.finishNode(t, "DeclareTypeAlias"); }, e.prototype.flowParseDeclareOpaqueType = function (t) { @@ -1271,12 +1274,12 @@ var babylon = function () { }, e.prototype.flowParseDeclareInterface = function (t) { return this.next(), this.flowParseInterfaceish(t), this.finishNode(t, "DeclareInterface"); }, e.prototype.flowParseInterfaceish = function (t) { - if (t.id = this.parseIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterDeclaration() : t.typeParameters = null, t.extends = [], t.mixins = [], this.eat(C._extends)) do { + if (t.id = this.parseIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterDeclaration() : t.typeParameters = null, t.extends = [], t.mixins = [], this.eat(E._extends)) do { t.extends.push(this.flowParseInterfaceExtends()); - } while (this.eat(C.comma));if (this.isContextual("mixins")) { + } while (this.eat(E.comma));if (this.isContextual("mixins")) { this.next();do { t.mixins.push(this.flowParseInterfaceExtends()); - } while (this.eat(C.comma)); + } while (this.eat(E.comma)); }t.body = this.flowParseObjectType(!0, !1, !1); }, e.prototype.flowParseInterfaceExtends = function () { var t = this.startNode();return t.id = this.flowParseQualifiedTypeIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterInstantiation() : t.typeParameters = null, this.finishNode(t, "InterfaceExtends"); @@ -1285,75 +1288,75 @@ var babylon = function () { }, e.prototype.flowParseRestrictedIdentifier = function (t) { return rt.indexOf(this.state.value) > -1 && this.raise(this.state.start, "Cannot overwrite primitive type " + this.state.value), this.parseIdentifier(t); }, e.prototype.flowParseTypeAlias = function (t) { - return t.id = this.flowParseRestrictedIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterDeclaration() : t.typeParameters = null, t.right = this.flowParseTypeInitialiser(C.eq), this.semicolon(), this.finishNode(t, "TypeAlias"); + return t.id = this.flowParseRestrictedIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterDeclaration() : t.typeParameters = null, t.right = this.flowParseTypeInitialiser(E.eq), this.semicolon(), this.finishNode(t, "TypeAlias"); }, e.prototype.flowParseOpaqueType = function (t, e) { - return this.expectContextual("type"), t.id = this.flowParseRestrictedIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterDeclaration() : t.typeParameters = null, t.supertype = null, this.match(C.colon) && (t.supertype = this.flowParseTypeInitialiser(C.colon)), t.impltype = null, e || (t.impltype = this.flowParseTypeInitialiser(C.eq)), this.semicolon(), this.finishNode(t, "OpaqueType"); + return this.expectContextual("type"), t.id = this.flowParseRestrictedIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterDeclaration() : t.typeParameters = null, t.supertype = null, this.match(E.colon) && (t.supertype = this.flowParseTypeInitialiser(E.colon)), t.impltype = null, e || (t.impltype = this.flowParseTypeInitialiser(E.eq)), this.semicolon(), this.finishNode(t, "OpaqueType"); }, e.prototype.flowParseTypeParameter = function () { var t = this.startNode(), e = this.flowParseVariance(), - s = this.flowParseTypeAnnotatableIdentifier();return t.name = s.name, t.variance = e, t.bound = s.typeAnnotation, this.match(C.eq) && (this.eat(C.eq), t.default = this.flowParseType()), this.finishNode(t, "TypeParameter"); + s = this.flowParseTypeAnnotatableIdentifier();return t.name = s.name, t.variance = e, t.bound = s.typeAnnotation, this.match(E.eq) && (this.eat(E.eq), t.default = this.flowParseType()), this.finishNode(t, "TypeParameter"); }, e.prototype.flowParseTypeParameterDeclaration = function () { var t = this.state.inType, - e = this.startNode();e.params = [], this.state.inType = !0, this.isRelational("<") || this.match(C.jsxTagStart) ? this.next() : this.unexpected();do { - e.params.push(this.flowParseTypeParameter()), this.isRelational(">") || this.expect(C.comma); + e = this.startNode();e.params = [], this.state.inType = !0, this.isRelational("<") || this.match(E.jsxTagStart) ? this.next() : this.unexpected();do { + e.params.push(this.flowParseTypeParameter()), this.isRelational(">") || this.expect(E.comma); } while (!this.isRelational(">"));return this.expectRelational(">"), this.state.inType = t, this.finishNode(e, "TypeParameterDeclaration"); }, e.prototype.flowParseTypeParameterInstantiation = function () { var t = this.startNode(), e = this.state.inType;for (t.params = [], this.state.inType = !0, this.expectRelational("<"); !this.isRelational(">");) { - t.params.push(this.flowParseType()), this.isRelational(">") || this.expect(C.comma); + t.params.push(this.flowParseType()), this.isRelational(">") || this.expect(E.comma); }return this.expectRelational(">"), this.state.inType = e, this.finishNode(t, "TypeParameterInstantiation"); }, e.prototype.flowParseObjectPropertyKey = function () { - return this.match(C.num) || this.match(C.string) ? this.parseExprAtom() : this.parseIdentifier(!0); + return this.match(E.num) || this.match(E.string) ? this.parseExprAtom() : this.parseIdentifier(!0); }, e.prototype.flowParseObjectTypeIndexer = function (t, e, s) { - return t.static = e, this.expect(C.bracketL), this.lookahead().type === C.colon ? (t.id = this.flowParseObjectPropertyKey(), t.key = this.flowParseTypeInitialiser()) : (t.id = null, t.key = this.flowParseType()), this.expect(C.bracketR), t.value = this.flowParseTypeInitialiser(), t.variance = s, this.finishNode(t, "ObjectTypeIndexer"); + return t.static = e, this.expect(E.bracketL), this.lookahead().type === E.colon ? (t.id = this.flowParseObjectPropertyKey(), t.key = this.flowParseTypeInitialiser()) : (t.id = null, t.key = this.flowParseType()), this.expect(E.bracketR), t.value = this.flowParseTypeInitialiser(), t.variance = s, this.finishNode(t, "ObjectTypeIndexer"); }, e.prototype.flowParseObjectTypeMethodish = function (t) { - for (t.params = [], t.rest = null, t.typeParameters = null, this.isRelational("<") && (t.typeParameters = this.flowParseTypeParameterDeclaration()), this.expect(C.parenL); !this.match(C.parenR) && !this.match(C.ellipsis);) { - t.params.push(this.flowParseFunctionTypeParam()), this.match(C.parenR) || this.expect(C.comma); - }return this.eat(C.ellipsis) && (t.rest = this.flowParseFunctionTypeParam()), this.expect(C.parenR), t.returnType = this.flowParseTypeInitialiser(), this.finishNode(t, "FunctionTypeAnnotation"); + for (t.params = [], t.rest = null, t.typeParameters = null, this.isRelational("<") && (t.typeParameters = this.flowParseTypeParameterDeclaration()), this.expect(E.parenL); !this.match(E.parenR) && !this.match(E.ellipsis);) { + t.params.push(this.flowParseFunctionTypeParam()), this.match(E.parenR) || this.expect(E.comma); + }return this.eat(E.ellipsis) && (t.rest = this.flowParseFunctionTypeParam()), this.expect(E.parenR), t.returnType = this.flowParseTypeInitialiser(), this.finishNode(t, "FunctionTypeAnnotation"); }, e.prototype.flowParseObjectTypeCallProperty = function (t, e) { var s = this.startNode();return t.static = e, t.value = this.flowParseObjectTypeMethodish(s), this.finishNode(t, "ObjectTypeCallProperty"); }, e.prototype.flowParseObjectType = function (t, e, s) { var i = this.state.inType;this.state.inType = !0;var r = this.startNode();r.callProperties = [], r.properties = [], r.indexers = [];var a = void 0, - n = void 0;for (e && this.match(C.braceBarL) ? (this.expect(C.braceBarL), a = C.braceBarR, n = !0) : (this.expect(C.braceL), a = C.braceR, n = !1), r.exact = n; !this.match(a);) { + n = void 0;for (e && this.match(E.braceBarL) ? (this.expect(E.braceBarL), a = E.braceBarR, n = !0) : (this.expect(E.braceL), a = E.braceR, n = !1), r.exact = n; !this.match(a);) { var o = !1, - h = this.startNode();t && this.isContextual("static") && this.lookahead().type !== C.colon && (this.next(), o = !0);var p = this.flowParseVariance();if (this.match(C.bracketL)) r.indexers.push(this.flowParseObjectTypeIndexer(h, o, p));else if (this.match(C.parenL) || this.isRelational("<")) p && this.unexpected(p.start), r.callProperties.push(this.flowParseObjectTypeCallProperty(h, o));else { + h = this.startNode();t && this.isContextual("static") && this.lookahead().type !== E.colon && (this.next(), o = !0);var p = this.flowParseVariance();if (this.match(E.bracketL)) r.indexers.push(this.flowParseObjectTypeIndexer(h, o, p));else if (this.match(E.parenL) || this.isRelational("<")) p && this.unexpected(p.start), r.callProperties.push(this.flowParseObjectTypeCallProperty(h, o));else { var c = "init";if (this.isContextual("get") || this.isContextual("set")) { - var l = this.lookahead();l.type !== C.name && l.type !== C.string && l.type !== C.num || (c = this.state.value, this.next()); + var l = this.lookahead();l.type !== E.name && l.type !== E.string && l.type !== E.num || (c = this.state.value, this.next()); }r.properties.push(this.flowParseObjectTypeProperty(h, o, p, c, s)); }this.flowObjectTypeSemicolon(); }this.expect(a);var u = this.finishNode(r, "ObjectTypeAnnotation");return this.state.inType = i, u; }, e.prototype.flowParseObjectTypeProperty = function (t, e, s, i, r) { - if (this.match(C.ellipsis)) return r || this.unexpected(null, "Spread operator cannot appear in class or interface definitions"), s && this.unexpected(s.start, "Spread properties cannot have variance"), this.expect(C.ellipsis), t.argument = this.flowParseType(), this.finishNode(t, "ObjectTypeSpreadProperty");t.key = this.flowParseObjectPropertyKey(), t.static = e, t.kind = i;var a = !1;return this.isRelational("<") || this.match(C.parenL) ? (s && this.unexpected(s.start), t.value = this.flowParseObjectTypeMethodish(this.startNodeAt(t.start, t.loc.start)), "get" !== i && "set" !== i || this.flowCheckGetterSetterParamCount(t)) : ("init" !== i && this.unexpected(), this.eat(C.question) && (a = !0), t.value = this.flowParseTypeInitialiser(), t.variance = s), t.optional = a, this.finishNode(t, "ObjectTypeProperty"); + if (this.match(E.ellipsis)) return r || this.unexpected(null, "Spread operator cannot appear in class or interface definitions"), s && this.unexpected(s.start, "Spread properties cannot have variance"), this.expect(E.ellipsis), t.argument = this.flowParseType(), this.finishNode(t, "ObjectTypeSpreadProperty");t.key = this.flowParseObjectPropertyKey(), t.static = e, t.kind = i;var a = !1;return this.isRelational("<") || this.match(E.parenL) ? (s && this.unexpected(s.start), t.value = this.flowParseObjectTypeMethodish(this.startNodeAt(t.start, t.loc.start)), "get" !== i && "set" !== i || this.flowCheckGetterSetterParamCount(t)) : ("init" !== i && this.unexpected(), this.eat(E.question) && (a = !0), t.value = this.flowParseTypeInitialiser(), t.variance = s), t.optional = a, this.finishNode(t, "ObjectTypeProperty"); }, e.prototype.flowCheckGetterSetterParamCount = function (t) { var e = "get" === t.kind ? 0 : 1;if (t.value.params.length !== e) { var s = t.start;"get" === t.kind ? this.raise(s, "getter should have no params") : this.raise(s, "setter should have exactly one param"); } }, e.prototype.flowObjectTypeSemicolon = function () { - this.eat(C.semi) || this.eat(C.comma) || this.match(C.braceR) || this.match(C.braceBarR) || this.unexpected(); + this.eat(E.semi) || this.eat(E.comma) || this.match(E.braceR) || this.match(E.braceBarR) || this.unexpected(); }, e.prototype.flowParseQualifiedTypeIdentifier = function (t, e, s) { - t = t || this.state.start, e = e || this.state.startLoc;for (var i = s || this.parseIdentifier(); this.eat(C.dot);) { + t = t || this.state.start, e = e || this.state.startLoc;for (var i = s || this.parseIdentifier(); this.eat(E.dot);) { var r = this.startNodeAt(t, e);r.qualification = i, r.id = this.parseIdentifier(), i = this.finishNode(r, "QualifiedTypeIdentifier"); }return i; }, e.prototype.flowParseGenericType = function (t, e, s) { var i = this.startNodeAt(t, e);return i.typeParameters = null, i.id = this.flowParseQualifiedTypeIdentifier(t, e, s), this.isRelational("<") && (i.typeParameters = this.flowParseTypeParameterInstantiation()), this.finishNode(i, "GenericTypeAnnotation"); }, e.prototype.flowParseTypeofType = function () { - var t = this.startNode();return this.expect(C._typeof), t.argument = this.flowParsePrimaryType(), this.finishNode(t, "TypeofTypeAnnotation"); + var t = this.startNode();return this.expect(E._typeof), t.argument = this.flowParsePrimaryType(), this.finishNode(t, "TypeofTypeAnnotation"); }, e.prototype.flowParseTupleType = function () { - var t = this.startNode();for (t.types = [], this.expect(C.bracketL); this.state.pos < this.input.length && !this.match(C.bracketR) && (t.types.push(this.flowParseType()), !this.match(C.bracketR));) { - this.expect(C.comma); - }return this.expect(C.bracketR), this.finishNode(t, "TupleTypeAnnotation"); + var t = this.startNode();for (t.types = [], this.expect(E.bracketL); this.state.pos < this.input.length && !this.match(E.bracketR) && (t.types.push(this.flowParseType()), !this.match(E.bracketR));) { + this.expect(E.comma); + }return this.expect(E.bracketR), this.finishNode(t, "TupleTypeAnnotation"); }, e.prototype.flowParseFunctionTypeParam = function () { var t = null, e = !1, s = null, i = this.startNode(), - r = this.lookahead();return r.type === C.colon || r.type === C.question ? (t = this.parseIdentifier(), this.eat(C.question) && (e = !0), s = this.flowParseTypeInitialiser()) : s = this.flowParseType(), i.name = t, i.optional = e, i.typeAnnotation = s, this.finishNode(i, "FunctionTypeParam"); + r = this.lookahead();return r.type === E.colon || r.type === E.question ? (t = this.parseIdentifier(), this.eat(E.question) && (e = !0), s = this.flowParseTypeInitialiser()) : s = this.flowParseType(), i.name = t, i.optional = e, i.typeAnnotation = s, this.finishNode(i, "FunctionTypeParam"); }, e.prototype.reinterpretTypeAsFunctionTypeParam = function (t) { var e = this.startNodeAt(t.start, t.loc.start);return e.name = null, e.optional = !1, e.typeAnnotation = t, this.finishNode(e, "FunctionTypeParam"); }, e.prototype.flowParseFunctionTypeParams = function (t) { - void 0 === t && (t = []);for (var e = null; !this.match(C.parenR) && !this.match(C.ellipsis);) { - t.push(this.flowParseFunctionTypeParam()), this.match(C.parenR) || this.expect(C.comma); - }return this.eat(C.ellipsis) && (e = this.flowParseFunctionTypeParam()), { params: t, rest: e }; + void 0 === t && (t = []);for (var e = null; !this.match(E.parenR) && !this.match(E.ellipsis);) { + t.push(this.flowParseFunctionTypeParam()), this.match(E.parenR) || this.expect(E.comma); + }return this.eat(E.ellipsis) && (e = this.flowParseFunctionTypeParam()), { params: t, rest: e }; }, e.prototype.flowIdentToTypeAnnotation = function (t, e, s, i) { switch (i.name) {case "any": return this.finishNode(s, "AnyTypeAnnotation");case "void": @@ -1371,74 +1374,74 @@ var babylon = function () { i = void 0, r = void 0, a = !1, - n = this.state.noAnonFunctionType;switch (this.state.type) {case C.name: - return this.flowIdentToTypeAnnotation(t, e, s, this.parseIdentifier());case C.braceL: - return this.flowParseObjectType(!1, !1, !0);case C.braceBarL: - return this.flowParseObjectType(!1, !0, !0);case C.bracketL: - return this.flowParseTupleType();case C.relational: - if ("<" === this.state.value) return s.typeParameters = this.flowParseTypeParameterDeclaration(), this.expect(C.parenL), i = this.flowParseFunctionTypeParams(), s.params = i.params, s.rest = i.rest, this.expect(C.parenR), this.expect(C.arrow), s.returnType = this.flowParseType(), this.finishNode(s, "FunctionTypeAnnotation");break;case C.parenL: - if (this.next(), !this.match(C.parenR) && !this.match(C.ellipsis)) if (this.match(C.name)) { - var o = this.lookahead().type;a = o !== C.question && o !== C.colon; + n = this.state.noAnonFunctionType;switch (this.state.type) {case E.name: + return this.flowIdentToTypeAnnotation(t, e, s, this.parseIdentifier());case E.braceL: + return this.flowParseObjectType(!1, !1, !0);case E.braceBarL: + return this.flowParseObjectType(!1, !0, !0);case E.bracketL: + return this.flowParseTupleType();case E.relational: + if ("<" === this.state.value) return s.typeParameters = this.flowParseTypeParameterDeclaration(), this.expect(E.parenL), i = this.flowParseFunctionTypeParams(), s.params = i.params, s.rest = i.rest, this.expect(E.parenR), this.expect(E.arrow), s.returnType = this.flowParseType(), this.finishNode(s, "FunctionTypeAnnotation");break;case E.parenL: + if (this.next(), !this.match(E.parenR) && !this.match(E.ellipsis)) if (this.match(E.name)) { + var o = this.lookahead().type;a = o !== E.question && o !== E.colon; } else a = !0;if (a) { - if (this.state.noAnonFunctionType = !1, r = this.flowParseType(), this.state.noAnonFunctionType = n, this.state.noAnonFunctionType || !(this.match(C.comma) || this.match(C.parenR) && this.lookahead().type === C.arrow)) return this.expect(C.parenR), r;this.eat(C.comma); - }return i = r ? this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]) : this.flowParseFunctionTypeParams(), s.params = i.params, s.rest = i.rest, this.expect(C.parenR), this.expect(C.arrow), s.returnType = this.flowParseType(), s.typeParameters = null, this.finishNode(s, "FunctionTypeAnnotation");case C.string: - return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation");case C._true:case C._false: - return s.value = this.match(C._true), this.next(), this.finishNode(s, "BooleanLiteralTypeAnnotation");case C.plusMin: - if ("-" === this.state.value) return this.next(), this.match(C.num) || this.unexpected(null, "Unexpected token, expected number"), this.parseLiteral(-this.state.value, "NumberLiteralTypeAnnotation", s.start, s.loc.start);this.unexpected();case C.num: - return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation");case C._null: - return this.next(), this.finishNode(s, "NullLiteralTypeAnnotation");case C._this: - return this.next(), this.finishNode(s, "ThisTypeAnnotation");case C.star: + if (this.state.noAnonFunctionType = !1, r = this.flowParseType(), this.state.noAnonFunctionType = n, this.state.noAnonFunctionType || !(this.match(E.comma) || this.match(E.parenR) && this.lookahead().type === E.arrow)) return this.expect(E.parenR), r;this.eat(E.comma); + }return i = r ? this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]) : this.flowParseFunctionTypeParams(), s.params = i.params, s.rest = i.rest, this.expect(E.parenR), this.expect(E.arrow), s.returnType = this.flowParseType(), s.typeParameters = null, this.finishNode(s, "FunctionTypeAnnotation");case E.string: + return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation");case E._true:case E._false: + return s.value = this.match(E._true), this.next(), this.finishNode(s, "BooleanLiteralTypeAnnotation");case E.plusMin: + if ("-" === this.state.value) return this.next(), this.match(E.num) || this.unexpected(null, "Unexpected token, expected number"), this.parseLiteral(-this.state.value, "NumberLiteralTypeAnnotation", s.start, s.loc.start);this.unexpected();case E.num: + return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation");case E._null: + return this.next(), this.finishNode(s, "NullLiteralTypeAnnotation");case E._this: + return this.next(), this.finishNode(s, "ThisTypeAnnotation");case E.star: return this.next(), this.finishNode(s, "ExistsTypeAnnotation");default: if ("typeof" === this.state.type.keyword) return this.flowParseTypeofType();}throw this.unexpected(); }, e.prototype.flowParsePostfixType = function () { - for (var t = this.state.start, e = this.state.startLoc, s = this.flowParsePrimaryType(); !this.canInsertSemicolon() && this.match(C.bracketL);) { - var i = this.startNodeAt(t, e);i.elementType = s, this.expect(C.bracketL), this.expect(C.bracketR), s = this.finishNode(i, "ArrayTypeAnnotation"); + for (var t = this.state.start, e = this.state.startLoc, s = this.flowParsePrimaryType(); !this.canInsertSemicolon() && this.match(E.bracketL);) { + var i = this.startNodeAt(t, e);i.elementType = s, this.expect(E.bracketL), this.expect(E.bracketR), s = this.finishNode(i, "ArrayTypeAnnotation"); }return s; }, e.prototype.flowParsePrefixType = function () { - var t = this.startNode();return this.eat(C.question) ? (t.typeAnnotation = this.flowParsePrefixType(), this.finishNode(t, "NullableTypeAnnotation")) : this.flowParsePostfixType(); + var t = this.startNode();return this.eat(E.question) ? (t.typeAnnotation = this.flowParsePrefixType(), this.finishNode(t, "NullableTypeAnnotation")) : this.flowParsePostfixType(); }, e.prototype.flowParseAnonFunctionWithoutParens = function () { - var t = this.flowParsePrefixType();if (!this.state.noAnonFunctionType && this.eat(C.arrow)) { + var t = this.flowParsePrefixType();if (!this.state.noAnonFunctionType && this.eat(E.arrow)) { var e = this.startNodeAt(t.start, t.loc.start);return e.params = [this.reinterpretTypeAsFunctionTypeParam(t)], e.rest = null, e.returnType = this.flowParseType(), e.typeParameters = null, this.finishNode(e, "FunctionTypeAnnotation"); }return t; }, e.prototype.flowParseIntersectionType = function () { - var t = this.startNode();this.eat(C.bitwiseAND);var e = this.flowParseAnonFunctionWithoutParens();for (t.types = [e]; this.eat(C.bitwiseAND);) { + var t = this.startNode();this.eat(E.bitwiseAND);var e = this.flowParseAnonFunctionWithoutParens();for (t.types = [e]; this.eat(E.bitwiseAND);) { t.types.push(this.flowParseAnonFunctionWithoutParens()); }return 1 === t.types.length ? e : this.finishNode(t, "IntersectionTypeAnnotation"); }, e.prototype.flowParseUnionType = function () { - var t = this.startNode();this.eat(C.bitwiseOR);var e = this.flowParseIntersectionType();for (t.types = [e]; this.eat(C.bitwiseOR);) { + var t = this.startNode();this.eat(E.bitwiseOR);var e = this.flowParseIntersectionType();for (t.types = [e]; this.eat(E.bitwiseOR);) { t.types.push(this.flowParseIntersectionType()); }return 1 === t.types.length ? e : this.finishNode(t, "UnionTypeAnnotation"); }, e.prototype.flowParseType = function () { var t = this.state.inType;this.state.inType = !0;var e = this.flowParseUnionType();return this.state.inType = t, this.state.exprAllowed = this.state.exprAllowed || this.state.noAnonFunctionType, e; }, e.prototype.flowParseTypeAnnotation = function () { var t = this.startNode();return t.typeAnnotation = this.flowParseTypeInitialiser(), this.finishNode(t, "TypeAnnotation"); - }, e.prototype.flowParseTypeAnnotatableIdentifier = function () { - var t = this.flowParseRestrictedIdentifier();return this.match(C.colon) && (t.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(t, t.type)), t; + }, e.prototype.flowParseTypeAnnotatableIdentifier = function (t) { + var e = t ? this.parseIdentifier() : this.flowParseRestrictedIdentifier();return this.match(E.colon) && (e.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(e, e.type)), e; }, e.prototype.typeCastToParameter = function (t) { return t.expression.typeAnnotation = t.typeAnnotation, this.finishNodeAt(t.expression, t.expression.type, t.typeAnnotation.end, t.typeAnnotation.loc.end); }, e.prototype.flowParseVariance = function () { - var t = null;return this.match(C.plusMin) && (t = this.startNode(), "+" === this.state.value ? t.kind = "plus" : t.kind = "minus", this.next(), this.finishNode(t, "Variance")), t; + var t = null;return this.match(E.plusMin) && (t = this.startNode(), "+" === this.state.value ? t.kind = "plus" : t.kind = "minus", this.next(), this.finishNode(t, "Variance")), t; }, e.prototype.parseFunctionBodyAndFinish = function (e, s, i) { - if (!i && this.match(C.colon)) { + if (!i && this.match(E.colon)) { var r = this.startNode(), a = this.flowParseTypeAndPredicateInitialiser();r.typeAnnotation = a[0], e.predicate = a[1], e.returnType = r.typeAnnotation ? this.finishNode(r, "TypeAnnotation") : null; }t.prototype.parseFunctionBodyAndFinish.call(this, e, s, i); }, e.prototype.parseStatement = function (e, s) { - if (this.state.strict && this.match(C.name) && "interface" === this.state.value) { + if (this.state.strict && this.match(E.name) && "interface" === this.state.value) { var i = this.startNode();return this.next(), this.flowParseInterface(i); }return t.prototype.parseStatement.call(this, e, s); }, e.prototype.parseExpressionStatement = function (e, s) { if ("Identifier" === s.type) if ("declare" === s.name) { - if (this.match(C._class) || this.match(C.name) || this.match(C._function) || this.match(C._var) || this.match(C._export)) return this.flowParseDeclare(e); - } else if (this.match(C.name)) { + if (this.match(E._class) || this.match(E.name) || this.match(E._function) || this.match(E._var) || this.match(E._export)) return this.flowParseDeclare(e); + } else if (this.match(E.name)) { if ("interface" === s.name) return this.flowParseInterface(e);if ("type" === s.name) return this.flowParseTypeAlias(e);if ("opaque" === s.name) return this.flowParseOpaqueType(e, !1); }return t.prototype.parseExpressionStatement.call(this, e, s); }, e.prototype.shouldParseExportDeclaration = function () { return this.isContextual("type") || this.isContextual("interface") || this.isContextual("opaque") || t.prototype.shouldParseExportDeclaration.call(this); }, e.prototype.isExportDefaultSpecifier = function () { - return (!this.match(C.name) || "type" !== this.state.value && "interface" !== this.state.value && "opaque" != this.state.value) && t.prototype.isExportDefaultSpecifier.call(this); + return (!this.match(E.name) || "type" !== this.state.value && "interface" !== this.state.value && "opaque" != this.state.value) && t.prototype.isExportDefaultSpecifier.call(this); }, e.prototype.parseConditional = function (e, s, i, r, a) { - if (a && this.match(C.question)) { + if (a && this.match(E.question)) { var n = this.state.clone();try { return t.prototype.parseConditional.call(this, e, s, i, r); } catch (t) { @@ -1446,21 +1449,21 @@ var babylon = function () { } }return t.prototype.parseConditional.call(this, e, s, i, r); }, e.prototype.parseParenItem = function (e, s, i) { - if (e = t.prototype.parseParenItem.call(this, e, s, i), this.eat(C.question) && (e.optional = !0), this.match(C.colon)) { + if (e = t.prototype.parseParenItem.call(this, e, s, i), this.eat(E.question) && (e.optional = !0), this.match(E.colon)) { var r = this.startNodeAt(s, i);return r.expression = e, r.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(r, "TypeCastExpression"); }return e; }, e.prototype.parseExport = function (e) { return "ExportNamedDeclaration" !== (e = t.prototype.parseExport.call(this, e)).type && "ExportAllDeclaration" !== e.type || (e.exportKind = e.exportKind || "value"), e; }, e.prototype.parseExportDeclaration = function (e) { if (this.isContextual("type")) { - e.exportKind = "type";var s = this.startNode();return this.next(), this.match(C.braceL) ? (e.specifiers = this.parseExportSpecifiers(), this.parseExportFrom(e), null) : this.flowParseTypeAlias(s); + e.exportKind = "type";var s = this.startNode();return this.next(), this.match(E.braceL) ? (e.specifiers = this.parseExportSpecifiers(), this.parseExportFrom(e), null) : this.flowParseTypeAlias(s); }if (this.isContextual("opaque")) { e.exportKind = "type";var i = this.startNode();return this.next(), this.flowParseOpaqueType(i, !1); }if (this.isContextual("interface")) { e.exportKind = "type";var r = this.startNode();return this.next(), this.flowParseInterface(r); }return t.prototype.parseExportDeclaration.call(this, e); }, e.prototype.shouldParseExportStar = function () { - return t.prototype.shouldParseExportStar.call(this) || this.isContextual("type") && this.lookahead().type === C.star; + return t.prototype.shouldParseExportStar.call(this) || this.isContextual("type") && this.lookahead().type === E.star; }, e.prototype.parseExportStar = function (e, s) { return this.eatContextual("type") && (e.exportKind = "type", s = !1), t.prototype.parseExportStar.call(this, e, s); }, e.prototype.parseClassId = function (e, s, i) { @@ -1468,7 +1471,7 @@ var babylon = function () { }, e.prototype.isKeyword = function (e) { return (!this.state.inType || "void" !== e) && t.prototype.isKeyword.call(this, e); }, e.prototype.readToken = function (e) { - return !this.state.inType || 62 !== e && 60 !== e ? t.prototype.readToken.call(this, e) : this.finishOp(C.relational, 1); + return !this.state.inType || 62 !== e && 60 !== e ? t.prototype.readToken.call(this, e) : this.finishOp(E.relational, 1); }, e.prototype.toAssignable = function (e, s, i) { return "TypeCastExpression" === e.type ? t.prototype.toAssignable.call(this, this.typeCastToParameter(e), s, i) : t.prototype.toAssignable.call(this, e, s, i); }, e.prototype.toAssignableList = function (e, s, i) { @@ -1481,59 +1484,61 @@ var babylon = function () { }return t; }, e.prototype.parseExprListItem = function (e, s, i) { var r = this.startNode(), - a = t.prototype.parseExprListItem.call(this, e, s, i);return this.match(C.colon) ? (r._exprListItem = !0, r.expression = a, r.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(r, "TypeCastExpression")) : a; + a = t.prototype.parseExprListItem.call(this, e, s, i);return this.match(E.colon) ? (r._exprListItem = !0, r.expression = a, r.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(r, "TypeCastExpression")) : a; }, e.prototype.checkLVal = function (e, s, i, r) { if ("TypeCastExpression" !== e.type) return t.prototype.checkLVal.call(this, e, s, i, r); }, e.prototype.parseClassProperty = function (e) { - return this.match(C.colon) && (e.typeAnnotation = this.flowParseTypeAnnotation()), t.prototype.parseClassProperty.call(this, e); + return this.match(E.colon) && (e.typeAnnotation = this.flowParseTypeAnnotation()), t.prototype.parseClassProperty.call(this, e); }, e.prototype.isClassMethod = function () { return this.isRelational("<") || t.prototype.isClassMethod.call(this); }, e.prototype.isClassProperty = function () { - return this.match(C.colon) || t.prototype.isClassProperty.call(this); + return this.match(E.colon) || t.prototype.isClassProperty.call(this); }, e.prototype.isNonstaticConstructor = function (e) { - return !this.match(C.colon) && t.prototype.isNonstaticConstructor.call(this, e); - }, e.prototype.parseClassMethod = function (e, s, i, r, a) { - s.variance && this.unexpected(s.variance.start), delete s.variance, this.isRelational("<") && (s.typeParameters = this.flowParseTypeParameterDeclaration()), t.prototype.parseClassMethod.call(this, e, s, i, r, a); + return !this.match(E.colon) && t.prototype.isNonstaticConstructor.call(this, e); + }, e.prototype.pushClassMethod = function (e, s, i, r, a) { + s.variance && this.unexpected(s.variance.start), delete s.variance, this.isRelational("<") && (s.typeParameters = this.flowParseTypeParameterDeclaration()), t.prototype.pushClassMethod.call(this, e, s, i, r, a); + }, e.prototype.pushClassPrivateMethod = function (e, s, i, r) { + s.variance && this.unexpected(s.variance.start), delete s.variance, this.isRelational("<") && (s.typeParameters = this.flowParseTypeParameterDeclaration()), t.prototype.pushClassPrivateMethod.call(this, e, s, i, r); }, e.prototype.parseClassSuper = function (e) { if (t.prototype.parseClassSuper.call(this, e), e.superClass && this.isRelational("<") && (e.superTypeParameters = this.flowParseTypeParameterInstantiation()), this.isContextual("implements")) { this.next();var s = e.implements = [];do { var i = this.startNode();i.id = this.parseIdentifier(), this.isRelational("<") ? i.typeParameters = this.flowParseTypeParameterInstantiation() : i.typeParameters = null, s.push(this.finishNode(i, "ClassImplements")); - } while (this.eat(C.comma)); + } while (this.eat(E.comma)); } }, e.prototype.parsePropertyName = function (e) { var s = this.flowParseVariance(), i = t.prototype.parsePropertyName.call(this, e);return e.variance = s, i; }, e.prototype.parseObjPropValue = function (e, s, i, r, a, n, o) { - e.variance && this.unexpected(e.variance.start), delete e.variance;var h = void 0;this.isRelational("<") && (h = this.flowParseTypeParameterDeclaration(), this.match(C.parenL) || this.unexpected()), t.prototype.parseObjPropValue.call(this, e, s, i, r, a, n, o), h && ((e.value || e).typeParameters = h); + e.variance && this.unexpected(e.variance.start), delete e.variance;var h = void 0;this.isRelational("<") && (h = this.flowParseTypeParameterDeclaration(), this.match(E.parenL) || this.unexpected()), t.prototype.parseObjPropValue.call(this, e, s, i, r, a, n, o), h && ((e.value || e).typeParameters = h); }, e.prototype.parseAssignableListItemTypes = function (t) { - if (this.eat(C.question)) { + if (this.eat(E.question)) { if ("Identifier" !== t.type) throw this.raise(t.start, "A binding pattern parameter cannot be optional in an implementation signature.");t.optional = !0; - }return this.match(C.colon) && (t.typeAnnotation = this.flowParseTypeAnnotation()), this.finishNode(t, t.type), t; + }return this.match(E.colon) && (t.typeAnnotation = this.flowParseTypeAnnotation()), this.finishNode(t, t.type), t; }, e.prototype.parseMaybeDefault = function (e, s, i) { var r = t.prototype.parseMaybeDefault.call(this, e, s, i);return "AssignmentPattern" === r.type && r.typeAnnotation && r.right.start < r.typeAnnotation.start && this.raise(r.typeAnnotation.start, "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`"), r; }, e.prototype.parseImportSpecifiers = function (e) { - e.importKind = "value";var s = null;if (this.match(C._typeof) ? s = "typeof" : this.isContextual("type") && (s = "type"), s) { - var i = this.lookahead();(i.type === C.name && "from" !== i.value || i.type === C.braceL || i.type === C.star) && (this.next(), e.importKind = s); + e.importKind = "value";var s = null;if (this.match(E._typeof) ? s = "typeof" : this.isContextual("type") && (s = "type"), s) { + var i = this.lookahead();(i.type === E.name && "from" !== i.value || i.type === E.braceL || i.type === E.star) && (this.next(), e.importKind = s); }t.prototype.parseImportSpecifiers.call(this, e); }, e.prototype.parseImportSpecifier = function (t) { var e = this.startNode(), s = this.state.start, i = this.parseIdentifier(!0), r = null;"type" === i.name ? r = "type" : "typeof" === i.name && (r = "typeof");var a = !1;if (this.isContextual("as")) { - var n = this.parseIdentifier(!0);null === r || this.match(C.name) || this.state.type.keyword ? (e.imported = i, e.importKind = null, e.local = this.parseIdentifier()) : (e.imported = n, e.importKind = r, e.local = n.__clone()); - } else null !== r && (this.match(C.name) || this.state.type.keyword) ? (e.imported = this.parseIdentifier(!0), e.importKind = r, this.eatContextual("as") ? e.local = this.parseIdentifier() : (a = !0, e.local = e.imported.__clone())) : (a = !0, e.imported = i, e.importKind = null, e.local = e.imported.__clone());"type" !== t.importKind && "typeof" !== t.importKind || "type" !== e.importKind && "typeof" !== e.importKind || this.raise(s, "`The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements`"), a && this.checkReservedWord(e.local.name, e.start, !0, !0), this.checkLVal(e.local, !0, void 0, "import specifier"), t.specifiers.push(this.finishNode(e, "ImportSpecifier")); + var n = this.parseIdentifier(!0);null === r || this.match(E.name) || this.state.type.keyword ? (e.imported = i, e.importKind = null, e.local = this.parseIdentifier()) : (e.imported = n, e.importKind = r, e.local = n.__clone()); + } else null !== r && (this.match(E.name) || this.state.type.keyword) ? (e.imported = this.parseIdentifier(!0), e.importKind = r, this.eatContextual("as") ? e.local = this.parseIdentifier() : (a = !0, e.local = e.imported.__clone())) : (a = !0, e.imported = i, e.importKind = null, e.local = e.imported.__clone());"type" !== t.importKind && "typeof" !== t.importKind || "type" !== e.importKind && "typeof" !== e.importKind || this.raise(s, "`The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements`"), a && this.checkReservedWord(e.local.name, e.start, !0, !0), this.checkLVal(e.local, !0, void 0, "import specifier"), t.specifiers.push(this.finishNode(e, "ImportSpecifier")); }, e.prototype.parseFunctionParams = function (e) { this.isRelational("<") && (e.typeParameters = this.flowParseTypeParameterDeclaration()), t.prototype.parseFunctionParams.call(this, e); }, e.prototype.parseVarHead = function (e) { - t.prototype.parseVarHead.call(this, e), this.match(C.colon) && (e.id.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(e.id, e.id.type)); + t.prototype.parseVarHead.call(this, e), this.match(E.colon) && (e.id.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(e.id, e.id.type)); }, e.prototype.parseAsyncArrowFromCallExpression = function (e, s) { - if (this.match(C.colon)) { + if (this.match(E.colon)) { var i = this.state.noAnonFunctionType;this.state.noAnonFunctionType = !0, e.returnType = this.flowParseTypeAnnotation(), this.state.noAnonFunctionType = i; }return t.prototype.parseAsyncArrowFromCallExpression.call(this, e, s); }, e.prototype.shouldParseAsyncArrow = function () { - return this.match(C.colon) || t.prototype.shouldParseAsyncArrow.call(this); + return this.match(E.colon) || t.prototype.shouldParseAsyncArrow.call(this); }, e.prototype.parseMaybeAssign = function (e, s, i, r) { - var a = null;if (C.jsxTagStart && this.match(C.jsxTagStart)) { + var a = null;if (E.jsxTagStart && this.match(E.jsxTagStart)) { var n = this.state.clone();try { return t.prototype.parseMaybeAssign.call(this, e, s, i, r); } catch (t) { @@ -1548,25 +1553,25 @@ var babylon = function () { }if ("ArrowFunctionExpression" === o.type) return o;if (null != a) throw a;this.raise(h.start, "Expected an arrow function after this type parameter declaration"); }return t.prototype.parseMaybeAssign.call(this, e, s, i, r); }, e.prototype.parseArrow = function (e) { - if (this.match(C.colon)) { + if (this.match(E.colon)) { var s = this.state.clone();try { var i = this.state.noAnonFunctionType;this.state.noAnonFunctionType = !0;var r = this.startNode(), - a = this.flowParseTypeAndPredicateInitialiser();r.typeAnnotation = a[0], e.predicate = a[1], this.state.noAnonFunctionType = i, this.canInsertSemicolon() && this.unexpected(), this.match(C.arrow) || this.unexpected(), e.returnType = r.typeAnnotation ? this.finishNode(r, "TypeAnnotation") : null; + a = this.flowParseTypeAndPredicateInitialiser();r.typeAnnotation = a[0], e.predicate = a[1], this.state.noAnonFunctionType = i, this.canInsertSemicolon() && this.unexpected(), this.match(E.arrow) || this.unexpected(), e.returnType = r.typeAnnotation ? this.finishNode(r, "TypeAnnotation") : null; } catch (t) { if (!(t instanceof SyntaxError)) throw t;this.state = s; } }return t.prototype.parseArrow.call(this, e); }, e.prototype.shouldParseArrow = function () { - return this.match(C.colon) || t.prototype.shouldParseArrow.call(this); + return this.match(E.colon) || t.prototype.shouldParseArrow.call(this); }, e; }(t); }, ot = { quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: " ", iexcl: "¡", cent: "¢", pound: "£", curren: "¤", yen: "¥", brvbar: "¦", sect: "§", uml: "¨", copy: "©", ordf: "ª", laquo: "«", not: "¬", shy: "­", reg: "®", macr: "¯", deg: "°", plusmn: "±", sup2: "²", sup3: "³", acute: "´", micro: "µ", para: "¶", middot: "·", cedil: "¸", sup1: "¹", ordm: "º", raquo: "»", frac14: "¼", frac12: "½", frac34: "¾", iquest: "¿", Agrave: "À", Aacute: "Á", Acirc: "Â", Atilde: "Ã", Auml: "Ä", Aring: "Å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", Eacute: "É", Ecirc: "Ê", Euml: "Ë", Igrave: "Ì", Iacute: "Í", Icirc: "Î", Iuml: "Ï", ETH: "Ð", Ntilde: "Ñ", Ograve: "Ò", Oacute: "Ó", Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", times: "×", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", Ucirc: "Û", Uuml: "Ü", Yacute: "Ý", THORN: "Þ", szlig: "ß", agrave: "à", aacute: "á", acirc: "â", atilde: "ã", auml: "ä", aring: "å", aelig: "æ", ccedil: "ç", egrave: "è", eacute: "é", ecirc: "ê", euml: "ë", igrave: "ì", iacute: "í", icirc: "î", iuml: "ï", eth: "ð", ntilde: "ñ", ograve: "ò", oacute: "ó", ocirc: "ô", otilde: "õ", ouml: "ö", divide: "÷", oslash: "ø", ugrave: "ù", uacute: "ú", ucirc: "û", uuml: "ü", yacute: "ý", thorn: "þ", yuml: "ÿ", OElig: "Œ", oelig: "œ", Scaron: "Š", scaron: "š", Yuml: "Ÿ", fnof: "ƒ", circ: "ˆ", tilde: "˜", Alpha: "Α", Beta: "Β", Gamma: "Γ", Delta: "Δ", Epsilon: "Ε", Zeta: "Ζ", Eta: "Η", Theta: "Θ", Iota: "Ι", Kappa: "Κ", Lambda: "Λ", Mu: "Μ", Nu: "Ν", Xi: "Ξ", Omicron: "Ο", Pi: "Π", Rho: "Ρ", Sigma: "Σ", Tau: "Τ", Upsilon: "Υ", Phi: "Φ", Chi: "Χ", Psi: "Ψ", Omega: "Ω", alpha: "α", beta: "β", gamma: "γ", delta: "δ", epsilon: "ε", zeta: "ζ", eta: "η", theta: "θ", iota: "ι", kappa: "κ", lambda: "λ", mu: "μ", nu: "ν", xi: "ξ", omicron: "ο", pi: "π", rho: "ρ", sigmaf: "ς", sigma: "σ", tau: "τ", upsilon: "υ", phi: "φ", chi: "χ", psi: "ψ", omega: "ω", thetasym: "ϑ", upsih: "ϒ", piv: "ϖ", ensp: " ", emsp: " ", thinsp: " ", zwnj: "‌", zwj: "‍", lrm: "‎", rlm: "‏", ndash: "–", mdash: "—", lsquo: "‘", rsquo: "’", sbquo: "‚", ldquo: "“", rdquo: "”", bdquo: "„", dagger: "†", Dagger: "‡", bull: "•", hellip: "…", permil: "‰", prime: "′", Prime: "″", lsaquo: "‹", rsaquo: "›", oline: "‾", frasl: "⁄", euro: "€", image: "ℑ", weierp: "℘", real: "ℜ", trade: "™", alefsym: "ℵ", larr: "←", uarr: "↑", rarr: "→", darr: "↓", harr: "↔", crarr: "↵", lArr: "⇐", uArr: "⇑", rArr: "⇒", dArr: "⇓", hArr: "⇔", forall: "∀", part: "∂", exist: "∃", empty: "∅", nabla: "∇", isin: "∈", notin: "∉", ni: "∋", prod: "∏", sum: "∑", minus: "−", lowast: "∗", radic: "√", prop: "∝", infin: "∞", ang: "∠", and: "∧", or: "∨", cap: "∩", cup: "∪", int: "∫", there4: "∴", sim: "∼", cong: "≅", asymp: "≈", ne: "≠", equiv: "≡", le: "≤", ge: "≥", sub: "⊂", sup: "⊃", nsub: "⊄", sube: "⊆", supe: "⊇", oplus: "⊕", otimes: "⊗", perp: "⊥", sdot: "⋅", lceil: "⌈", rceil: "⌉", lfloor: "⌊", rfloor: "⌋", lang: "〈", rang: "〉", loz: "◊", spades: "♠", clubs: "♣", hearts: "♥", diams: "♦" }, ht = /^[\da-fA-F]+$/, - pt = /^\d+$/;U.j_oTag = new V("...", !0, !0), C.jsxName = new k("jsxName"), C.jsxText = new k("jsxText", { beforeExpr: !0 }), C.jsxTagStart = new k("jsxTagStart", { startsExpr: !0 }), C.jsxTagEnd = new k("jsxTagEnd"), C.jsxTagStart.updateContext = function () { + pt = /^\d+$/;U.j_oTag = new V("...", !0, !0), E.jsxName = new N("jsxName"), E.jsxText = new N("jsxText", { beforeExpr: !0 }), E.jsxTagStart = new N("jsxTagStart", { startsExpr: !0 }), E.jsxTagEnd = new N("jsxTagEnd"), E.jsxTagStart.updateContext = function () { this.state.context.push(U.j_expr), this.state.context.push(U.j_oTag), this.state.exprAllowed = !1; - }, C.jsxTagEnd.updateContext = function (t) { - var e = this.state.context.pop();e === U.j_oTag && t === C.slash || e === U.j_cTag ? (this.state.context.pop(), this.state.exprAllowed = this.curContext() === U.j_expr) : this.state.exprAllowed = !0; + }, E.jsxTagEnd.updateContext = function (t) { + var e = this.state.context.pop();e === U.j_oTag && t === E.slash || e === U.j_cTag ? (this.state.context.pop(), this.state.exprAllowed = this.curContext() === U.j_expr) : this.state.exprAllowed = !0; };var ct = function ct(t) { return function (t) { function e() { @@ -1574,7 +1579,7 @@ var babylon = function () { }return A(e, t), e.prototype.jsxReadToken = function () { for (var t = "", e = this.state.pos;;) { this.state.pos >= this.input.length && this.raise(this.state.start, "Unterminated JSX contents");var s = this.input.charCodeAt(this.state.pos);switch (s) {case 60:case 123: - return this.state.pos === this.state.start ? 60 === s && this.state.exprAllowed ? (++this.state.pos, this.finishToken(C.jsxTagStart)) : this.getTokenFromCode(s) : (t += this.input.slice(e, this.state.pos), this.finishToken(C.jsxText, t));case 38: + return this.state.pos === this.state.start ? 60 === s && this.state.exprAllowed ? (++this.state.pos, this.finishToken(E.jsxTagStart)) : this.getTokenFromCode(s) : (t += this.input.slice(e, this.state.pos), this.finishToken(E.jsxText, t));case 38: t += this.input.slice(e, this.state.pos), t += this.jsxReadEntity(), e = this.state.pos;break;default: o(s) ? (t += this.input.slice(e, this.state.pos), t += this.jsxReadNewLine(!0), e = this.state.pos) : ++this.state.pos;} } @@ -1584,7 +1589,7 @@ var babylon = function () { }, e.prototype.jsxReadString = function (t) { for (var e = "", s = ++this.state.pos;;) { this.state.pos >= this.input.length && this.raise(this.state.start, "Unterminated string constant");var i = this.input.charCodeAt(this.state.pos);if (i === t) break;38 === i ? (e += this.input.slice(s, this.state.pos), e += this.jsxReadEntity(), s = this.state.pos) : o(i) ? (e += this.input.slice(s, this.state.pos), e += this.jsxReadNewLine(!1), s = this.state.pos) : ++this.state.pos; - }return e += this.input.slice(s, this.state.pos++), this.finishToken(C.string, e); + }return e += this.input.slice(s, this.state.pos++), this.finishToken(E.string, e); }, e.prototype.jsxReadEntity = function () { for (var t = "", e = 0, s = void 0, i = this.input[this.state.pos], r = ++this.state.pos; this.state.pos < this.input.length && e++ < 10;) { if (";" === (i = this.input[this.state.pos++])) { @@ -1595,65 +1600,65 @@ var babylon = function () { var t = void 0, e = this.state.pos;do { t = this.input.charCodeAt(++this.state.pos); - } while (n(t) || 45 === t);return this.finishToken(C.jsxName, this.input.slice(e, this.state.pos)); + } while (n(t) || 45 === t);return this.finishToken(E.jsxName, this.input.slice(e, this.state.pos)); }, e.prototype.jsxParseIdentifier = function () { - var t = this.startNode();return this.match(C.jsxName) ? t.name = this.state.value : this.state.type.keyword ? t.name = this.state.type.keyword : this.unexpected(), this.next(), this.finishNode(t, "JSXIdentifier"); + var t = this.startNode();return this.match(E.jsxName) ? t.name = this.state.value : this.state.type.keyword ? t.name = this.state.type.keyword : this.unexpected(), this.next(), this.finishNode(t, "JSXIdentifier"); }, e.prototype.jsxParseNamespacedName = function () { var t = this.state.start, e = this.state.startLoc, - s = this.jsxParseIdentifier();if (!this.eat(C.colon)) return s;var i = this.startNodeAt(t, e);return i.namespace = s, i.name = this.jsxParseIdentifier(), this.finishNode(i, "JSXNamespacedName"); + s = this.jsxParseIdentifier();if (!this.eat(E.colon)) return s;var i = this.startNodeAt(t, e);return i.namespace = s, i.name = this.jsxParseIdentifier(), this.finishNode(i, "JSXNamespacedName"); }, e.prototype.jsxParseElementName = function () { - for (var t = this.state.start, e = this.state.startLoc, s = this.jsxParseNamespacedName(); this.eat(C.dot);) { + for (var t = this.state.start, e = this.state.startLoc, s = this.jsxParseNamespacedName(); this.eat(E.dot);) { var i = this.startNodeAt(t, e);i.object = s, i.property = this.jsxParseIdentifier(), s = this.finishNode(i, "JSXMemberExpression"); }return s; }, e.prototype.jsxParseAttributeValue = function () { - var t = void 0;switch (this.state.type) {case C.braceL: - if ("JSXEmptyExpression" === (t = this.jsxParseExpressionContainer()).expression.type) throw this.raise(t.start, "JSX attributes must only be assigned a non-empty expression");return t;case C.jsxTagStart:case C.string: + var t = void 0;switch (this.state.type) {case E.braceL: + if ("JSXEmptyExpression" === (t = this.jsxParseExpressionContainer()).expression.type) throw this.raise(t.start, "JSX attributes must only be assigned a non-empty expression");return t;case E.jsxTagStart:case E.string: return this.parseExprAtom();default: throw this.raise(this.state.start, "JSX value should be either an expression or a quoted JSX text");} }, e.prototype.jsxParseEmptyExpression = function () { var t = this.startNodeAt(this.state.lastTokEnd, this.state.lastTokEndLoc);return this.finishNodeAt(t, "JSXEmptyExpression", this.state.start, this.state.startLoc); }, e.prototype.jsxParseSpreadChild = function () { - var t = this.startNode();return this.expect(C.braceL), this.expect(C.ellipsis), t.expression = this.parseExpression(), this.expect(C.braceR), this.finishNode(t, "JSXSpreadChild"); + var t = this.startNode();return this.expect(E.braceL), this.expect(E.ellipsis), t.expression = this.parseExpression(), this.expect(E.braceR), this.finishNode(t, "JSXSpreadChild"); }, e.prototype.jsxParseExpressionContainer = function () { - var t = this.startNode();return this.next(), this.match(C.braceR) ? t.expression = this.jsxParseEmptyExpression() : t.expression = this.parseExpression(), this.expect(C.braceR), this.finishNode(t, "JSXExpressionContainer"); + var t = this.startNode();return this.next(), this.match(E.braceR) ? t.expression = this.jsxParseEmptyExpression() : t.expression = this.parseExpression(), this.expect(E.braceR), this.finishNode(t, "JSXExpressionContainer"); }, e.prototype.jsxParseAttribute = function () { - var t = this.startNode();return this.eat(C.braceL) ? (this.expect(C.ellipsis), t.argument = this.parseMaybeAssign(), this.expect(C.braceR), this.finishNode(t, "JSXSpreadAttribute")) : (t.name = this.jsxParseNamespacedName(), t.value = this.eat(C.eq) ? this.jsxParseAttributeValue() : null, this.finishNode(t, "JSXAttribute")); + var t = this.startNode();return this.eat(E.braceL) ? (this.expect(E.ellipsis), t.argument = this.parseMaybeAssign(), this.expect(E.braceR), this.finishNode(t, "JSXSpreadAttribute")) : (t.name = this.jsxParseNamespacedName(), t.value = this.eat(E.eq) ? this.jsxParseAttributeValue() : null, this.finishNode(t, "JSXAttribute")); }, e.prototype.jsxParseOpeningElementAt = function (t, e) { - var s = this.startNodeAt(t, e);for (s.attributes = [], s.name = this.jsxParseElementName(); !this.match(C.slash) && !this.match(C.jsxTagEnd);) { + var s = this.startNodeAt(t, e);for (s.attributes = [], s.name = this.jsxParseElementName(); !this.match(E.slash) && !this.match(E.jsxTagEnd);) { s.attributes.push(this.jsxParseAttribute()); - }return s.selfClosing = this.eat(C.slash), this.expect(C.jsxTagEnd), this.finishNode(s, "JSXOpeningElement"); + }return s.selfClosing = this.eat(E.slash), this.expect(E.jsxTagEnd), this.finishNode(s, "JSXOpeningElement"); }, e.prototype.jsxParseClosingElementAt = function (t, e) { - var s = this.startNodeAt(t, e);return s.name = this.jsxParseElementName(), this.expect(C.jsxTagEnd), this.finishNode(s, "JSXClosingElement"); + var s = this.startNodeAt(t, e);return s.name = this.jsxParseElementName(), this.expect(E.jsxTagEnd), this.finishNode(s, "JSXClosingElement"); }, e.prototype.jsxParseElementAt = function (t, e) { var s = this.startNodeAt(t, e), i = [], r = this.jsxParseOpeningElementAt(t, e), a = null;if (!r.selfClosing) { t: for (;;) { - switch (this.state.type) {case C.jsxTagStart: - if (t = this.state.start, e = this.state.startLoc, this.next(), this.eat(C.slash)) { + switch (this.state.type) {case E.jsxTagStart: + if (t = this.state.start, e = this.state.startLoc, this.next(), this.eat(E.slash)) { a = this.jsxParseClosingElementAt(t, e);break t; - }i.push(this.jsxParseElementAt(t, e));break;case C.jsxText: - i.push(this.parseExprAtom());break;case C.braceL: - this.lookahead().type === C.ellipsis ? i.push(this.jsxParseSpreadChild()) : i.push(this.jsxParseExpressionContainer());break;default: + }i.push(this.jsxParseElementAt(t, e));break;case E.jsxText: + i.push(this.parseExprAtom());break;case E.braceL: + this.lookahead().type === E.ellipsis ? i.push(this.jsxParseSpreadChild()) : i.push(this.jsxParseExpressionContainer());break;default: throw this.unexpected();} }f(a.name) !== f(r.name) && this.raise(a.start, "Expected corresponding JSX closing tag for <" + f(r.name) + ">"); - }return s.openingElement = r, s.closingElement = a, s.children = i, this.match(C.relational) && "<" === this.state.value && this.raise(this.state.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(s, "JSXElement"); + }return s.openingElement = r, s.closingElement = a, s.children = i, this.match(E.relational) && "<" === this.state.value && this.raise(this.state.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(s, "JSXElement"); }, e.prototype.jsxParseElement = function () { var t = this.state.start, e = this.state.startLoc;return this.next(), this.jsxParseElementAt(t, e); }, e.prototype.parseExprAtom = function (e) { - return this.match(C.jsxText) ? this.parseLiteral(this.state.value, "JSXText") : this.match(C.jsxTagStart) ? this.jsxParseElement() : t.prototype.parseExprAtom.call(this, e); + return this.match(E.jsxText) ? this.parseLiteral(this.state.value, "JSXText") : this.match(E.jsxTagStart) ? this.jsxParseElement() : t.prototype.parseExprAtom.call(this, e); }, e.prototype.readToken = function (e) { if (this.state.inPropertyName) return t.prototype.readToken.call(this, e);var s = this.curContext();if (s === U.j_expr) return this.jsxReadToken();if (s === U.j_oTag || s === U.j_cTag) { - if (a(e)) return this.jsxReadWord();if (62 === e) return ++this.state.pos, this.finishToken(C.jsxTagEnd);if ((34 === e || 39 === e) && s === U.j_oTag) return this.jsxReadString(e); - }return 60 === e && this.state.exprAllowed ? (++this.state.pos, this.finishToken(C.jsxTagStart)) : t.prototype.readToken.call(this, e); + if (a(e)) return this.jsxReadWord();if (62 === e) return ++this.state.pos, this.finishToken(E.jsxTagEnd);if ((34 === e || 39 === e) && s === U.j_oTag) return this.jsxReadString(e); + }return 60 === e && this.state.exprAllowed ? (++this.state.pos, this.finishToken(E.jsxTagStart)) : t.prototype.readToken.call(this, e); }, e.prototype.updateContext = function (e) { - if (this.match(C.braceL)) { + if (this.match(E.braceL)) { var s = this.curContext();s === U.j_oTag ? this.state.context.push(U.braceExpression) : s === U.j_expr ? this.state.context.push(U.templateQuasi) : t.prototype.updateContext.call(this, e), this.state.exprAllowed = !0; } else { - if (!this.match(C.slash) || e !== C.jsxTagStart) return t.prototype.updateContext.call(this, e);this.state.context.length -= 2, this.state.context.push(U.j_cTag), this.state.exprAllowed = !1; + if (!this.match(E.slash) || e !== E.jsxTagStart) return t.prototype.updateContext.call(this, e);this.state.context.length -= 2, this.state.context.push(U.j_cTag), this.state.exprAllowed = !1; } }, e; }(t); @@ -1663,18 +1668,18 @@ var babylon = function () { function e() { return t.apply(this, arguments) || this; }return A(e, t), e.prototype.tsIsIdentifier = function () { - return this.match(C.name); + return this.match(E.name); }, e.prototype.tsNextTokenCanFollowModifier = function () { - return this.next(), !(this.hasPrecedingLineBreak() || this.match(C.parenL) || this.match(C.colon) || this.match(C.eq) || this.match(C.question)); + return this.next(), !(this.hasPrecedingLineBreak() || this.match(E.parenL) || this.match(E.colon) || this.match(E.eq) || this.match(E.question)); }, e.prototype.tsParseModifier = function (t) { - if (this.match(C.name)) { + if (this.match(E.name)) { var e = this.state.value;return -1 !== t.indexOf(e) && this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)) ? e : void 0; } }, e.prototype.tsIsListTerminator = function (t) { switch (t) {case "EnumMembers":case "TypeMembers": - return this.match(C.braceR);case "HeritageClauseElement": - return this.match(C.braceL);case "TupleElementTypes": - return this.match(C.bracketR);case "TypeParametersOrArguments": + return this.match(E.braceR);case "HeritageClauseElement": + return this.match(E.braceL);case "TupleElementTypes": + return this.match(E.bracketR);case "TypeParametersOrArguments": return this.isRelational(">");}throw new Error("Unreachable"); }, e.prototype.tsParseList = function (t, e) { for (var s = []; !this.tsIsListTerminator(t);) { @@ -1686,14 +1691,14 @@ var babylon = function () { return this.tsParseDelimitedListWorker(t, e, !1); }, e.prototype.tsParseDelimitedListWorker = function (t, e, s) { for (var i = [];;) { - if (this.tsIsListTerminator(t)) break;var r = e();if (null == r) return;if (i.push(r), !this.eat(C.comma)) { - if (this.tsIsListTerminator(t)) break;return void (s && this.expect(C.comma)); + if (this.tsIsListTerminator(t)) break;var r = e();if (null == r) return;if (i.push(r), !this.eat(E.comma)) { + if (this.tsIsListTerminator(t)) break;return void (s && this.expect(E.comma)); } }return i; }, e.prototype.tsParseBracketedList = function (t, e, s, i) { - i || (s ? this.expect(C.bracketL) : this.expectRelational("<"));var r = this.tsParseDelimitedList(t, e);return s ? this.expect(C.bracketR) : this.expectRelational(">"), r; + i || (s ? this.expect(E.bracketL) : this.expectRelational("<"));var r = this.tsParseDelimitedList(t, e);return s ? this.expect(E.bracketR) : this.expectRelational(">"), r; }, e.prototype.tsParseEntityName = function (t) { - for (var e = this.parseIdentifier(); this.eat(C.dot);) { + for (var e = this.parseIdentifier(); this.eat(E.dot);) { var s = this.startNodeAtNode(e);s.left = e, s.right = this.parseIdentifier(t), e = this.finishNode(s, "TSQualifiedName"); }return e; }, e.prototype.tsParseTypeReference = function () { @@ -1703,84 +1708,84 @@ var babylon = function () { }, e.prototype.tsParseThisTypeNode = function () { var t = this.startNode();return this.next(), this.finishNode(t, "TSThisType"); }, e.prototype.tsParseTypeQuery = function () { - var t = this.startNode();return this.expect(C._typeof), t.exprName = this.tsParseEntityName(!0), this.finishNode(t, "TSTypeQuery"); + var t = this.startNode();return this.expect(E._typeof), t.exprName = this.tsParseEntityName(!0), this.finishNode(t, "TSTypeQuery"); }, e.prototype.tsParseTypeParameter = function () { - var t = this.startNode();return t.name = this.parseIdentifierName(t.start), this.eat(C._extends) && (t.constraint = this.tsParseType()), this.eat(C.eq) && (t.default = this.tsParseType()), this.finishNode(t, "TypeParameter"); + var t = this.startNode();return t.name = this.parseIdentifierName(t.start), this.eat(E._extends) && (t.constraint = this.tsParseType()), this.eat(E.eq) && (t.default = this.tsParseType()), this.finishNode(t, "TypeParameter"); }, e.prototype.tsTryParseTypeParameters = function () { if (this.isRelational("<")) return this.tsParseTypeParameters(); }, e.prototype.tsParseTypeParameters = function () { - var t = this.startNode();return this.isRelational("<") || this.match(C.jsxTagStart) ? this.next() : this.unexpected(), t.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this), !1, !0), this.finishNode(t, "TypeParameterDeclaration"); + var t = this.startNode();return this.isRelational("<") || this.match(E.jsxTagStart) ? this.next() : this.unexpected(), t.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this), !1, !0), this.finishNode(t, "TypeParameterDeclaration"); }, e.prototype.tsFillSignature = function (t, e) { - var s = t === C.arrow;e.typeParameters = this.tsTryParseTypeParameters(), this.expect(C.parenL), e.parameters = this.tsParseBindingListForSignature(), s ? e.typeAnnotation = this.tsParseTypeOrTypePredicateAnnotation(t) : this.match(t) && (e.typeAnnotation = this.tsParseTypeOrTypePredicateAnnotation(t)); + var s = t === E.arrow;e.typeParameters = this.tsTryParseTypeParameters(), this.expect(E.parenL), e.parameters = this.tsParseBindingListForSignature(), s ? e.typeAnnotation = this.tsParseTypeOrTypePredicateAnnotation(t) : this.match(t) && (e.typeAnnotation = this.tsParseTypeOrTypePredicateAnnotation(t)); }, e.prototype.tsParseBindingListForSignature = function () { - var t = this;return this.parseBindingList(C.parenR).map(function (e) { + var t = this;return this.parseBindingList(E.parenR).map(function (e) { if ("Identifier" !== e.type && "RestElement" !== e.type) throw t.unexpected(e.start, "Name in a signature must be an Identifier.");return e; }); }, e.prototype.tsParseTypeMemberSemicolon = function () { - this.eat(C.comma) || this.semicolon(); + this.eat(E.comma) || this.semicolon(); }, e.prototype.tsParseSignatureMember = function (t) { - var e = this.startNode();return "TSConstructSignatureDeclaration" === t && this.expect(C._new), this.tsFillSignature(C.colon, e), this.tsParseTypeMemberSemicolon(), this.finishNode(e, t); + var e = this.startNode();return "TSConstructSignatureDeclaration" === t && this.expect(E._new), this.tsFillSignature(E.colon, e), this.tsParseTypeMemberSemicolon(), this.finishNode(e, t); }, e.prototype.tsIsUnambiguouslyIndexSignature = function () { - return this.next(), this.eat(C.name) && this.match(C.colon); + return this.next(), this.eat(E.name) && this.match(E.colon); }, e.prototype.tsTryParseIndexSignature = function (t) { - if (this.match(C.bracketL) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))) { - this.expect(C.bracketL);var e = this.parseIdentifier();this.expect(C.colon), e.typeAnnotation = this.tsParseTypeAnnotation(!1), this.expect(C.bracketR), t.parameters = [e];var s = this.tsTryParseTypeAnnotation();return s && (t.typeAnnotation = s), this.tsParseTypeMemberSemicolon(), this.finishNode(t, "TSIndexSignature"); + if (this.match(E.bracketL) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))) { + this.expect(E.bracketL);var e = this.parseIdentifier();this.expect(E.colon), e.typeAnnotation = this.tsParseTypeAnnotation(!1), this.expect(E.bracketR), t.parameters = [e];var s = this.tsTryParseTypeAnnotation();return s && (t.typeAnnotation = s), this.tsParseTypeMemberSemicolon(), this.finishNode(t, "TSIndexSignature"); } }, e.prototype.tsParsePropertyOrMethodSignature = function (t, e) { - this.parsePropertyName(t), this.eat(C.question) && (t.optional = !0);var s = t;if (e || !this.match(C.parenL) && !this.isRelational("<")) { + this.parsePropertyName(t), this.eat(E.question) && (t.optional = !0);var s = t;if (e || !this.match(E.parenL) && !this.isRelational("<")) { var i = s;e && (i.readonly = !0);var r = this.tsTryParseTypeAnnotation();return r && (i.typeAnnotation = r), this.tsParseTypeMemberSemicolon(), this.finishNode(i, "TSPropertySignature"); - }var a = s;return this.tsFillSignature(C.colon, a), this.tsParseTypeMemberSemicolon(), this.finishNode(a, "TSMethodSignature"); + }var a = s;return this.tsFillSignature(E.colon, a), this.tsParseTypeMemberSemicolon(), this.finishNode(a, "TSMethodSignature"); }, e.prototype.tsParseTypeMember = function () { - if (this.match(C.parenL) || this.isRelational("<")) return this.tsParseSignatureMember("TSCallSignatureDeclaration");if (this.match(C._new) && this.tsLookAhead(this.tsIsStartOfConstructSignature.bind(this))) return this.tsParseSignatureMember("TSConstructSignatureDeclaration");var t = this.startNode(), + if (this.match(E.parenL) || this.isRelational("<")) return this.tsParseSignatureMember("TSCallSignatureDeclaration");if (this.match(E._new) && this.tsLookAhead(this.tsIsStartOfConstructSignature.bind(this))) return this.tsParseSignatureMember("TSConstructSignatureDeclaration");var t = this.startNode(), e = !!this.tsParseModifier(["readonly"]), s = this.tsTryParseIndexSignature(t);return s ? (e && (t.readonly = !0), s) : this.tsParsePropertyOrMethodSignature(t, e); }, e.prototype.tsIsStartOfConstructSignature = function () { - return this.next(), this.match(C.parenL) || this.isRelational("<"); + return this.next(), this.match(E.parenL) || this.isRelational("<"); }, e.prototype.tsParseTypeLiteral = function () { var t = this.startNode();return t.members = this.tsParseObjectTypeMembers(), this.finishNode(t, "TSTypeLiteral"); }, e.prototype.tsParseObjectTypeMembers = function () { - this.expect(C.braceL);var t = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this));return this.expect(C.braceR), t; + this.expect(E.braceL);var t = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this));return this.expect(E.braceR), t; }, e.prototype.tsIsStartOfMappedType = function () { - return this.next(), this.isContextual("readonly") && this.next(), !!this.match(C.bracketL) && (this.next(), !!this.tsIsIdentifier() && (this.next(), this.match(C._in))); + return this.next(), this.isContextual("readonly") && this.next(), !!this.match(E.bracketL) && (this.next(), !!this.tsIsIdentifier() && (this.next(), this.match(E._in))); }, e.prototype.tsParseMappedTypeParameter = function () { - var t = this.startNode();return t.name = this.parseIdentifierName(t.start), this.expect(C._in), t.constraint = this.tsParseType(), this.finishNode(t, "TypeParameter"); + var t = this.startNode();return t.name = this.parseIdentifierName(t.start), this.expect(E._in), t.constraint = this.tsParseType(), this.finishNode(t, "TypeParameter"); }, e.prototype.tsParseMappedType = function () { - var t = this.startNode();return this.expect(C.braceL), this.eatContextual("readonly") && (t.readonly = !0), this.expect(C.bracketL), t.typeParameter = this.tsParseMappedTypeParameter(), this.expect(C.bracketR), this.eat(C.question) && (t.optional = !0), t.typeAnnotation = this.tsTryParseType(), this.semicolon(), this.expect(C.braceR), this.finishNode(t, "TSMappedType"); + var t = this.startNode();return this.expect(E.braceL), this.eatContextual("readonly") && (t.readonly = !0), this.expect(E.bracketL), t.typeParameter = this.tsParseMappedTypeParameter(), this.expect(E.bracketR), this.eat(E.question) && (t.optional = !0), t.typeAnnotation = this.tsTryParseType(), this.semicolon(), this.expect(E.braceR), this.finishNode(t, "TSMappedType"); }, e.prototype.tsParseTupleType = function () { var t = this.startNode();return t.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseType.bind(this), !0, !1), this.finishNode(t, "TSTupleType"); }, e.prototype.tsParseParenthesizedType = function () { - var t = this.startNode();return this.expect(C.parenL), t.typeAnnotation = this.tsParseType(), this.expect(C.parenR), this.finishNode(t, "TSParenthesizedType"); + var t = this.startNode();return this.expect(E.parenL), t.typeAnnotation = this.tsParseType(), this.expect(E.parenR), this.finishNode(t, "TSParenthesizedType"); }, e.prototype.tsParseFunctionOrConstructorType = function (t) { - var e = this.startNode();return "TSConstructorType" === t && this.expect(C._new), this.tsFillSignature(C.arrow, e), this.finishNode(e, t); + var e = this.startNode();return "TSConstructorType" === t && this.expect(E._new), this.tsFillSignature(E.arrow, e), this.finishNode(e, t); }, e.prototype.tsParseLiteralTypeNode = function () { var t = this, e = this.startNode();return e.literal = function () { - switch (t.state.type) {case C.num: - return t.parseLiteral(t.state.value, "NumericLiteral");case C.string: - return t.parseLiteral(t.state.value, "StringLiteral");case C._true:case C._false: + switch (t.state.type) {case E.num: + return t.parseLiteral(t.state.value, "NumericLiteral");case E.string: + return t.parseLiteral(t.state.value, "StringLiteral");case E._true:case E._false: return t.parseBooleanLiteral();default: throw t.unexpected();} }(), this.finishNode(e, "TSLiteralType"); }, e.prototype.tsParseNonArrayType = function () { - switch (this.state.type) {case C.name:case C._void:case C._null: - var t = this.match(C._void) ? "TSVoidKeyword" : this.match(C._null) ? "TSNullKeyword" : x(this.state.value);if (void 0 !== t && this.lookahead().type !== C.dot) { + switch (this.state.type) {case E.name:case E._void:case E._null: + var t = this.match(E._void) ? "TSVoidKeyword" : this.match(E._null) ? "TSNullKeyword" : x(this.state.value);if (void 0 !== t && this.lookahead().type !== E.dot) { var e = this.startNode();return this.next(), this.finishNode(e, t); - }return this.tsParseTypeReference();case C.string:case C.num:case C._true:case C._false: - return this.tsParseLiteralTypeNode();case C.plusMin: + }return this.tsParseTypeReference();case E.string:case E.num:case E._true:case E._false: + return this.tsParseLiteralTypeNode();case E.plusMin: if ("-" === this.state.value) { - var s = this.startNode();if (this.next(), !this.match(C.num)) throw this.unexpected();return s.literal = this.parseLiteral(-this.state.value, "NumericLiteral", s.start, s.loc.start), this.finishNode(s, "TSLiteralType"); - }break;case C._this: - var i = this.tsParseThisTypeNode();return this.isContextual("is") && !this.hasPrecedingLineBreak() ? this.tsParseThisTypePredicate(i) : i;case C._typeof: - return this.tsParseTypeQuery();case C.braceL: - return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral();case C.bracketL: - return this.tsParseTupleType();case C.parenL: + var s = this.startNode();if (this.next(), !this.match(E.num)) throw this.unexpected();return s.literal = this.parseLiteral(-this.state.value, "NumericLiteral", s.start, s.loc.start), this.finishNode(s, "TSLiteralType"); + }break;case E._this: + var i = this.tsParseThisTypeNode();return this.isContextual("is") && !this.hasPrecedingLineBreak() ? this.tsParseThisTypePredicate(i) : i;case E._typeof: + return this.tsParseTypeQuery();case E.braceL: + return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral();case E.bracketL: + return this.tsParseTupleType();case E.parenL: return this.tsParseParenthesizedType();}throw this.unexpected(); }, e.prototype.tsParseArrayTypeOrHigher = function () { - for (var t = this.tsParseNonArrayType(); !this.hasPrecedingLineBreak() && this.eat(C.bracketL);) { - if (this.match(C.bracketR)) { - var e = this.startNodeAtNode(t);e.elementType = t, this.expect(C.bracketR), t = this.finishNode(e, "TSArrayType"); + for (var t = this.tsParseNonArrayType(); !this.hasPrecedingLineBreak() && this.eat(E.bracketL);) { + if (this.match(E.bracketR)) { + var e = this.startNodeAtNode(t);e.elementType = t, this.expect(E.bracketR), t = this.finishNode(e, "TSArrayType"); } else { - var s = this.startNodeAtNode(t);s.objectType = t, s.indexType = this.tsParseType(), this.expect(C.bracketR), t = this.finishNode(s, "TSIndexedAccessType"); + var s = this.startNodeAtNode(t);s.objectType = t, s.indexType = this.tsParseType(), this.expect(E.bracketR), t = this.finishNode(s, "TSIndexedAccessType"); } }return t; }, e.prototype.tsParseTypeOperator = function (t) { @@ -1794,33 +1799,33 @@ var babylon = function () { }var a = this.startNodeAtNode(i);a.types = r, i = this.finishNode(a, t); }return i; }, e.prototype.tsParseIntersectionTypeOrHigher = function () { - return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), C.bitwiseAND); + return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), E.bitwiseAND); }, e.prototype.tsParseUnionTypeOrHigher = function () { - return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), C.bitwiseOR); + return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), E.bitwiseOR); }, e.prototype.tsIsStartOfFunctionType = function () { - return !!this.isRelational("<") || this.match(C.parenL) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this)); + return !!this.isRelational("<") || this.match(E.parenL) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this)); }, e.prototype.tsSkipParameterStart = function () { - return !(!this.match(C.name) && !this.match(C._this)) && (this.next(), !0); + return !(!this.match(E.name) && !this.match(E._this)) && (this.next(), !0); }, e.prototype.tsIsUnambiguouslyStartOfFunctionType = function () { - if (this.next(), this.match(C.parenR) || this.match(C.ellipsis)) return !0;if (this.tsSkipParameterStart()) { - if (this.match(C.colon) || this.match(C.comma) || this.match(C.question) || this.match(C.eq)) return !0;if (this.match(C.parenR) && (this.next(), this.match(C.arrow))) return !0; + if (this.next(), this.match(E.parenR) || this.match(E.ellipsis)) return !0;if (this.tsSkipParameterStart()) { + if (this.match(E.colon) || this.match(E.comma) || this.match(E.question) || this.match(E.eq)) return !0;if (this.match(E.parenR) && (this.next(), this.match(E.arrow))) return !0; }return !1; }, e.prototype.tsParseTypeOrTypePredicateAnnotation = function (t) { var e = this.startNode();this.expect(t);var s = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if (!s) return this.tsParseTypeAnnotation(!1, e);var i = this.tsParseTypeAnnotation(!1), r = this.startNodeAtNode(s);return r.parameterName = s, r.typeAnnotation = i, e.typeAnnotation = this.finishNode(r, "TSTypePredicate"), this.finishNode(e, "TypeAnnotation"); }, e.prototype.tsTryParseTypeOrTypePredicateAnnotation = function () { - return this.match(C.colon) ? this.tsParseTypeOrTypePredicateAnnotation(C.colon) : void 0; + return this.match(E.colon) ? this.tsParseTypeOrTypePredicateAnnotation(E.colon) : void 0; }, e.prototype.tsTryParseTypeAnnotation = function () { - return this.match(C.colon) ? this.tsParseTypeAnnotation() : void 0; + return this.match(E.colon) ? this.tsParseTypeAnnotation() : void 0; }, e.prototype.tsTryParseType = function () { - return this.eat(C.colon) ? this.tsParseType() : void 0; + return this.eat(E.colon) ? this.tsParseType() : void 0; }, e.prototype.tsParseTypePredicatePrefix = function () { var t = this.parseIdentifier();if (this.isContextual("is") && !this.hasPrecedingLineBreak()) return this.next(), t; }, e.prototype.tsParseTypeAnnotation = function (t, e) { - return void 0 === t && (t = !0), void 0 === e && (e = this.startNode()), t && this.expect(C.colon), e.typeAnnotation = this.tsParseType(), this.finishNode(e, "TypeAnnotation"); + return void 0 === t && (t = !0), void 0 === e && (e = this.startNode()), t && this.expect(E.colon), e.typeAnnotation = this.tsParseType(), this.finishNode(e, "TypeAnnotation"); }, e.prototype.tsParseType = function () { var t = this.state.inType;this.state.inType = !0;try { - return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(C._new) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.tsParseUnionTypeOrHigher(); + return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(E._new) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.tsParseUnionTypeOrHigher(); } finally { this.state.inType = t; } @@ -1828,36 +1833,36 @@ var babylon = function () { var t = this.startNode();return t.typeAnnotation = this.tsParseType(), this.expectRelational(">"), t.expression = this.parseMaybeUnary(), this.finishNode(t, "TSTypeAssertion"); }, e.prototype.tsTryParseTypeArgumentsInExpression = function () { var t = this;return this.tsTryParseAndCatch(function () { - var e = t.startNode();t.expectRelational("<");var s = t.tsParseDelimitedList("TypeParametersOrArguments", t.tsParseType.bind(t));return t.expectRelational(">"), e.params = s, t.finishNode(e, "TypeParameterInstantiation"), t.expect(C.parenL), e; + var e = t.startNode();t.expectRelational("<");var s = t.tsParseDelimitedList("TypeParametersOrArguments", t.tsParseType.bind(t));return t.expectRelational(">"), e.params = s, t.finishNode(e, "TypeParameterInstantiation"), t.expect(E.parenL), e; }); }, e.prototype.tsParseHeritageClause = function () { return this.tsParseDelimitedList("HeritageClauseElement", this.tsParseExpressionWithTypeArguments.bind(this)); }, e.prototype.tsParseExpressionWithTypeArguments = function () { var t = this.startNode();return t.expression = this.tsParseEntityName(!1), this.isRelational("<") && (t.typeParameters = this.tsParseTypeArguments()), this.finishNode(t, "TSExpressionWithTypeArguments"); }, e.prototype.tsParseInterfaceDeclaration = function (t) { - t.id = this.parseIdentifier(), t.typeParameters = this.tsTryParseTypeParameters(), this.eat(C._extends) && (t.extends = this.tsParseHeritageClause());var e = this.startNode();return e.body = this.tsParseObjectTypeMembers(), t.body = this.finishNode(e, "TSInterfaceBody"), this.finishNode(t, "TSInterfaceDeclaration"); + t.id = this.parseIdentifier(), t.typeParameters = this.tsTryParseTypeParameters(), this.eat(E._extends) && (t.extends = this.tsParseHeritageClause());var e = this.startNode();return e.body = this.tsParseObjectTypeMembers(), t.body = this.finishNode(e, "TSInterfaceBody"), this.finishNode(t, "TSInterfaceDeclaration"); }, e.prototype.tsParseTypeAliasDeclaration = function (t) { - return t.id = this.parseIdentifier(), t.typeParameters = this.tsTryParseTypeParameters(), this.expect(C.eq), t.typeAnnotation = this.tsParseType(), this.semicolon(), this.finishNode(t, "TSTypeAliasDeclaration"); + return t.id = this.parseIdentifier(), t.typeParameters = this.tsTryParseTypeParameters(), this.expect(E.eq), t.typeAnnotation = this.tsParseType(), this.semicolon(), this.finishNode(t, "TSTypeAliasDeclaration"); }, e.prototype.tsParseEnumMember = function () { - var t = this.startNode();return t.id = this.match(C.string) ? this.parseLiteral(this.state.value, "StringLiteral") : this.parseIdentifier(!0), this.eat(C.eq) && (t.initializer = this.parseMaybeAssign()), this.finishNode(t, "TSEnumMember"); + var t = this.startNode();return t.id = this.match(E.string) ? this.parseLiteral(this.state.value, "StringLiteral") : this.parseIdentifier(!0), this.eat(E.eq) && (t.initializer = this.parseMaybeAssign()), this.finishNode(t, "TSEnumMember"); }, e.prototype.tsParseEnumDeclaration = function (t, e) { - return e && (t.const = !0), t.id = this.parseIdentifier(), this.expect(C.braceL), t.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)), this.expect(C.braceR), this.finishNode(t, "TSEnumDeclaration"); + return e && (t.const = !0), t.id = this.parseIdentifier(), this.expect(E.braceL), t.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)), this.expect(E.braceR), this.finishNode(t, "TSEnumDeclaration"); }, e.prototype.tsParseModuleBlock = function () { - var t = this.startNode();return this.expect(C.braceL), this.parseBlockOrModuleBlockBody(t.body = [], void 0, !0, C.braceR), this.finishNode(t, "TSModuleBlock"); + var t = this.startNode();return this.expect(E.braceL), this.parseBlockOrModuleBlockBody(t.body = [], void 0, !0, E.braceR), this.finishNode(t, "TSModuleBlock"); }, e.prototype.tsParseModuleOrNamespaceDeclaration = function (t) { - if (t.id = this.parseIdentifier(), this.eat(C.dot)) { + if (t.id = this.parseIdentifier(), this.eat(E.dot)) { var e = this.startNode();this.tsParseModuleOrNamespaceDeclaration(e), t.body = e; } else t.body = this.tsParseModuleBlock();return this.finishNode(t, "TSModuleDeclaration"); }, e.prototype.tsParseAmbientExternalModuleDeclaration = function (t) { - return this.isContextual("global") ? (t.global = !0, t.id = this.parseIdentifier()) : this.match(C.string) ? t.id = this.parseExprAtom() : this.unexpected(), this.match(C.braceL) ? t.body = this.tsParseModuleBlock() : this.semicolon(), this.finishNode(t, "TSModuleDeclaration"); + return this.isContextual("global") ? (t.global = !0, t.id = this.parseIdentifier()) : this.match(E.string) ? t.id = this.parseExprAtom() : this.unexpected(), this.match(E.braceL) ? t.body = this.tsParseModuleBlock() : this.semicolon(), this.finishNode(t, "TSModuleDeclaration"); }, e.prototype.tsParseImportEqualsDeclaration = function (t, e) { - return t.isExport = e || !1, t.id = this.parseIdentifier(), this.expect(C.eq), t.moduleReference = this.tsParseModuleReference(), this.semicolon(), this.finishNode(t, "TSImportEqualsDeclaration"); + return t.isExport = e || !1, t.id = this.parseIdentifier(), this.expect(E.eq), t.moduleReference = this.tsParseModuleReference(), this.semicolon(), this.finishNode(t, "TSImportEqualsDeclaration"); }, e.prototype.tsIsExternalModuleReference = function () { - return this.isContextual("require") && this.lookahead().type === C.parenL; + return this.isContextual("require") && this.lookahead().type === E.parenL; }, e.prototype.tsParseModuleReference = function () { return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(!1); }, e.prototype.tsParseExternalModuleReference = function () { - var t = this.startNode();if (this.expectContextual("require"), this.expect(C.parenL), !this.match(C.string)) throw this.unexpected();return t.expression = this.parseLiteral(this.state.value, "StringLiteral"), this.expect(C.parenR), this.finishNode(t, "TSExternalModuleReference"); + var t = this.startNode();if (this.expectContextual("require"), this.expect(E.parenL), !this.match(E.string)) throw this.unexpected();return t.expression = this.parseLiteral(this.state.value, "StringLiteral"), this.expect(E.parenR), this.finishNode(t, "TSExternalModuleReference"); }, e.prototype.tsLookAhead = function (t) { var e = this.state.clone(), s = t();return this.state = e, s; @@ -1873,79 +1878,79 @@ var babylon = function () { }, e.prototype.nodeWithSamePosition = function (t, e) { var s = this.startNodeAtNode(t);return s.type = e, s.end = t.end, s.loc.end = t.loc.end, t.leadingComments && (s.leadingComments = t.leadingComments), t.trailingComments && (s.trailingComments = t.trailingComments), t.innerComments && (s.innerComments = t.innerComments), s; }, e.prototype.tsTryParseDeclare = function (t) { - switch (this.state.type) {case C._function: - return this.next(), this.parseFunction(t, !0);case C._class: - return this.parseClass(t, !0, !1);case C._const: - if (this.match(C._const) && this.lookaheadIsContextual("enum")) return this.expect(C._const), this.expectContextual("enum"), this.tsParseEnumDeclaration(t, !0);case C._var:case C._let: - return this.parseVarStatement(t, this.state.type);case C.name: + switch (this.state.type) {case E._function: + return this.next(), this.parseFunction(t, !0);case E._class: + return this.parseClass(t, !0, !1);case E._const: + if (this.match(E._const) && this.lookaheadIsContextual("enum")) return this.expect(E._const), this.expectContextual("enum"), this.tsParseEnumDeclaration(t, !0);case E._var:case E._let: + return this.parseVarStatement(t, this.state.type);case E.name: var e = this.state.value;return "global" === e ? this.tsParseAmbientExternalModuleDeclaration(t) : this.tsParseDeclaration(t, e, !0);} }, e.prototype.lookaheadIsContextual = function (t) { - var e = this.lookahead();return e.type === C.name && e.value === t; + var e = this.lookahead();return e.type === E.name && e.value === t; }, e.prototype.tsTryParseExportDeclaration = function () { return this.tsParseDeclaration(this.startNode(), this.state.value, !0); }, e.prototype.tsParseExpressionStatement = function (t, e) { switch (e.name) {case "declare": var s = this.tsTryParseDeclare(t);if (s) return s.declare = !0, s;break;case "global": - if (this.match(C.braceL)) { + if (this.match(E.braceL)) { var i = t;return i.global = !0, i.id = e, i.body = this.tsParseModuleBlock(), this.finishNode(i, "TSModuleDeclaration"); }break;default: return this.tsParseDeclaration(t, e.name, !1);} }, e.prototype.tsParseDeclaration = function (t, e, s) { switch (e) {case "abstract": - if (s || this.match(C._class)) { + if (s || this.match(E._class)) { var i = t;return i.abstract = !0, s && this.next(), this.parseClass(i, !0, !1); }break;case "enum": - if (s || this.match(C.name)) return s && this.next(), this.tsParseEnumDeclaration(t, !1);break;case "interface": - if (s || this.match(C.name)) return s && this.next(), this.tsParseInterfaceDeclaration(t);break;case "module": - if (s && this.next(), this.match(C.string)) return this.tsParseAmbientExternalModuleDeclaration(t);if (s || this.match(C.name)) return this.tsParseModuleOrNamespaceDeclaration(t);break;case "namespace": - if (s || this.match(C.name)) return s && this.next(), this.tsParseModuleOrNamespaceDeclaration(t);break;case "type": - if (s || this.match(C.name)) return s && this.next(), this.tsParseTypeAliasDeclaration(t);} + if (s || this.match(E.name)) return s && this.next(), this.tsParseEnumDeclaration(t, !1);break;case "interface": + if (s || this.match(E.name)) return s && this.next(), this.tsParseInterfaceDeclaration(t);break;case "module": + if (s && this.next(), this.match(E.string)) return this.tsParseAmbientExternalModuleDeclaration(t);if (s || this.match(E.name)) return this.tsParseModuleOrNamespaceDeclaration(t);break;case "namespace": + if (s || this.match(E.name)) return s && this.next(), this.tsParseModuleOrNamespaceDeclaration(t);break;case "type": + if (s || this.match(E.name)) return s && this.next(), this.tsParseTypeAliasDeclaration(t);} }, e.prototype.tsTryParseGenericAsyncArrowFunction = function (e, s) { var i = this, r = this.tsTryParseAndCatch(function () { - var r = i.startNodeAt(e, s);return r.typeParameters = i.tsParseTypeParameters(), t.prototype.parseFunctionParams.call(i, r), r.returnType = i.tsTryParseTypeOrTypePredicateAnnotation(), i.expect(C.arrow), r; + var r = i.startNodeAt(e, s);return r.typeParameters = i.tsParseTypeParameters(), t.prototype.parseFunctionParams.call(i, r), r.returnType = i.tsTryParseTypeOrTypePredicateAnnotation(), i.expect(E.arrow), r; });if (r) return r.id = null, r.generator = !1, r.expression = !0, r.async = !0, this.parseFunctionBody(r, !0), this.finishNode(r, "ArrowFunctionExpression"); }, e.prototype.tsParseTypeArguments = function () { var t = this.startNode();return this.expectRelational("<"), t.params = this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this)), this.expectRelational(">"), this.finishNode(t, "TypeParameterInstantiation"); }, e.prototype.isExportDefaultSpecifier = function () { - return (!this.match(C.name) || "type" !== this.state.value && "interface" !== this.state.value && "enum" !== this.state.value) && t.prototype.isExportDefaultSpecifier.call(this); + return (!this.match(E.name) || "type" !== this.state.value && "interface" !== this.state.value && "enum" !== this.state.value) && t.prototype.isExportDefaultSpecifier.call(this); }, e.prototype.parseAssignableListItem = function (t, e) { var s = void 0, i = !1;t && (s = this.parseAccessModifier(), i = !!this.tsParseModifier(["readonly"]));var r = this.parseMaybeDefault();this.parseAssignableListItemTypes(r);var a = this.parseMaybeDefault(r.start, r.loc.start, r);if (s || i) { var n = this.startNodeAtNode(a);if (e.length && (n.decorators = e), s && (n.accessibility = s), i && (n.readonly = i), "Identifier" !== a.type && "AssignmentPattern" !== a.type) throw this.raise(n.start, "A parameter property may not be declared using a binding pattern.");return n.parameter = a, this.finishNode(n, "TSParameterProperty"); }return e.length && (r.decorators = e), a; }, e.prototype.parseFunctionBodyAndFinish = function (e, s, i) { - !i && this.match(C.colon) && (e.returnType = this.tsParseTypeOrTypePredicateAnnotation(C.colon));var r = "FunctionDeclaration" === s ? "TSDeclareFunction" : "ClassMethod" === s ? "TSDeclareMethod" : void 0;r && !this.match(C.braceL) && this.isLineTerminator() ? this.finishNode(e, r) : t.prototype.parseFunctionBodyAndFinish.call(this, e, s, i); + !i && this.match(E.colon) && (e.returnType = this.tsParseTypeOrTypePredicateAnnotation(E.colon));var r = "FunctionDeclaration" === s ? "TSDeclareFunction" : "ClassMethod" === s ? "TSDeclareMethod" : void 0;r && !this.match(E.braceL) && this.isLineTerminator() ? this.finishNode(e, r) : t.prototype.parseFunctionBodyAndFinish.call(this, e, s, i); }, e.prototype.parseSubscript = function (e, s, i, r, a) { - if (this.eat(C.bang)) { + if (this.eat(E.bang)) { var n = this.startNodeAt(s, i);return n.expression = e, this.finishNode(n, "TSNonNullExpression"); }if (!r && this.isRelational("<")) { if (this.atPossibleAsync(e)) { var o = this.tsTryParseGenericAsyncArrowFunction(s, i);if (o) return o; - }var h = this.startNodeAt(s, i);h.callee = e;var p = this.tsTryParseTypeArgumentsInExpression();if (p) return h.arguments = this.parseCallExpressionArguments(C.parenR, !1), h.typeParameters = p, this.finishCallExpression(h); + }var h = this.startNodeAt(s, i);h.callee = e;var p = this.tsTryParseTypeArgumentsInExpression();if (p) return h.arguments = this.parseCallExpressionArguments(E.parenR, !1), h.typeParameters = p, this.finishCallExpression(h); }return t.prototype.parseSubscript.call(this, e, s, i, r, a); }, e.prototype.parseNewArguments = function (e) { var s = this;if (this.isRelational("<")) { var i = this.tsTryParseAndCatch(function () { - var t = s.tsParseTypeArguments();return s.match(C.parenL) || s.unexpected(), t; + var t = s.tsParseTypeArguments();return s.match(E.parenL) || s.unexpected(), t; });i && (e.typeParameters = i); }t.prototype.parseNewArguments.call(this, e); }, e.prototype.parseExprOp = function (e, s, i, r, a) { - if (y(C._in.binop) > r && !this.hasPrecedingLineBreak() && this.eatContextual("as")) { + if (y(E._in.binop) > r && !this.hasPrecedingLineBreak() && this.eatContextual("as")) { var n = this.startNodeAt(s, i);return n.expression = e, n.typeAnnotation = this.tsParseType(), this.finishNode(n, "TSAsExpression"), this.parseExprOp(n, s, i, r, a); }return t.prototype.parseExprOp.call(this, e, s, i, r, a); }, e.prototype.checkReservedWord = function (t, e, s, i) {}, e.prototype.checkDuplicateExports = function () {}, e.prototype.parseImport = function (e) { - return this.match(C.name) && this.lookahead().type === C.eq ? this.tsParseImportEqualsDeclaration(e) : t.prototype.parseImport.call(this, e); + return this.match(E.name) && this.lookahead().type === E.eq ? this.tsParseImportEqualsDeclaration(e) : t.prototype.parseImport.call(this, e); }, e.prototype.parseExport = function (e) { - if (this.match(C._import)) return this.expect(C._import), this.tsParseImportEqualsDeclaration(e, !0);if (this.eat(C.eq)) { + if (this.match(E._import)) return this.expect(E._import), this.tsParseImportEqualsDeclaration(e, !0);if (this.eat(E.eq)) { var s = e;return s.expression = this.parseExpression(), this.semicolon(), this.finishNode(s, "TSExportAssignment"); }if (this.eatContextual("as")) { var i = e;return this.expectContextual("namespace"), i.id = this.parseIdentifier(), this.semicolon(), this.finishNode(i, "TSNamespaceExportDeclaration"); }return t.prototype.parseExport.call(this, e); }, e.prototype.parseStatementContent = function (e, s) { - if (this.state.type === C._const) { - var i = this.lookahead();if (i.type === C.name && "enum" === i.value) { - var r = this.startNode();return this.expect(C._const), this.expectContextual("enum"), this.tsParseEnumDeclaration(r, !0); + if (this.state.type === E._const) { + var i = this.lookahead();if (i.type === E.name && "enum" === i.value) { + var r = this.startNode();return this.expect(E._const), this.expectContextual("enum"), this.tsParseEnumDeclaration(r, !0); } }return t.prototype.parseStatementContent.call(this, e, s); }, e.prototype.parseAccessModifier = function () { @@ -1963,33 +1968,35 @@ var babylon = function () { var c = this.tsTryParseIndexSignature(s);if (c) return void e.body.push(c); }if (p) return a.static = r, this.parseClassPropertyName(n), this.parsePostMemberNameModifiers(a), void this.pushClassProperty(e, n);t.prototype.parseClassMemberWithIsStatic.call(this, e, s, i, r); }, e.prototype.parsePostMemberNameModifiers = function (t) { - this.eat(C.question) && (t.optional = !0); + this.eat(E.question) && (t.optional = !0); }, e.prototype.parseExpressionStatement = function (e, s) { return ("Identifier" === s.type ? this.tsParseExpressionStatement(e, s) : void 0) || t.prototype.parseExpressionStatement.call(this, e, s); }, e.prototype.shouldParseExportDeclaration = function () { - if (this.match(C.name)) switch (this.state.value) {case "abstract":case "declare":case "enum":case "interface":case "module":case "namespace":case "type": + if (this.match(E.name)) switch (this.state.value) {case "abstract":case "declare":case "enum":case "interface":case "module":case "namespace":case "type": return !0;}return t.prototype.shouldParseExportDeclaration.call(this); }, e.prototype.parseConditional = function (e, s, i, r, a) { - if (!a || !this.match(C.question)) return t.prototype.parseConditional.call(this, e, s, i, r, a);var n = this.state.clone();try { + if (!a || !this.match(E.question)) return t.prototype.parseConditional.call(this, e, s, i, r, a);var n = this.state.clone();try { return t.prototype.parseConditional.call(this, e, s, i, r); } catch (t) { if (!(t instanceof SyntaxError)) throw t;return this.state = n, a.start = t.pos || this.state.start, e; } }, e.prototype.parseParenItem = function (e, s, i) { - if (e = t.prototype.parseParenItem.call(this, e, s, i), this.eat(C.question) && (e.optional = !0), this.match(C.colon)) { + if (e = t.prototype.parseParenItem.call(this, e, s, i), this.eat(E.question) && (e.optional = !0), this.match(E.colon)) { var r = this.startNodeAt(s, i);return r.expression = e, r.typeAnnotation = this.tsParseTypeAnnotation(), this.finishNode(r, "TypeCastExpression"); }return e; }, e.prototype.parseExportDeclaration = function (e) { var s = this.eatContextual("declare"), - i = void 0;return this.match(C.name) && (i = this.tsTryParseExportDeclaration()), i || (i = t.prototype.parseExportDeclaration.call(this, e)), i && s && (i.declare = !0), i; + i = void 0;return this.match(E.name) && (i = this.tsTryParseExportDeclaration()), i || (i = t.prototype.parseExportDeclaration.call(this, e)), i && s && (i.declare = !0), i; }, e.prototype.parseClassId = function (e, s, i) { var r;if (s && !i || !this.isContextual("implements")) { (r = t.prototype.parseClassId).call.apply(r, [this].concat(Array.prototype.slice.call(arguments)));var a = this.tsTryParseTypeParameters();a && (e.typeParameters = a); } }, e.prototype.parseClassProperty = function (e) { var s = this.tsTryParseTypeAnnotation();return s && (e.typeAnnotation = s), t.prototype.parseClassProperty.call(this, e); - }, e.prototype.parseClassMethod = function (e, s, i, r, a) { - var n = this.tsTryParseTypeParameters();n && (s.typeParameters = n), t.prototype.parseClassMethod.call(this, e, s, i, r, a); + }, e.prototype.pushClassMethod = function (e, s, i, r, a) { + var n = this.tsTryParseTypeParameters();n && (s.typeParameters = n), t.prototype.pushClassMethod.call(this, e, s, i, r, a); + }, e.prototype.pushClassPrivateMethod = function (e, s, i, r) { + var a = this.tsTryParseTypeParameters();a && (s.typeParameters = a), t.prototype.pushClassPrivateMethod.call(this, e, s, i, r); }, e.prototype.parseClassSuper = function (e) { t.prototype.parseClassSuper.call(this, e), e.superClass && this.isRelational("<") && (e.superTypeParameters = this.tsParseTypeArguments()), this.eatContextual("implements") && (e.implements = this.tsParseHeritageClause()); }, e.prototype.parseObjPropValue = function (e) { @@ -2001,11 +2008,11 @@ var babylon = function () { }, e.prototype.parseVarHead = function (e) { t.prototype.parseVarHead.call(this, e);var s = this.tsTryParseTypeAnnotation();s && (e.id.typeAnnotation = s, this.finishNode(e.id, e.id.type)); }, e.prototype.parseAsyncArrowFromCallExpression = function (e, s) { - return this.match(C.colon) && (e.returnType = this.tsParseTypeAnnotation()), t.prototype.parseAsyncArrowFromCallExpression.call(this, e, s); + return this.match(E.colon) && (e.returnType = this.tsParseTypeAnnotation()), t.prototype.parseAsyncArrowFromCallExpression.call(this, e, s); }, e.prototype.parseMaybeAssign = function () { for (var e = void 0, s = arguments.length, i = Array(s), r = 0; r < s; r++) { i[r] = arguments[r]; - }if (this.match(C.jsxTagStart)) { + }if (this.match(E.jsxTagStart)) { m(this.curContext() === U.j_oTag), m(this.state.context[this.state.context.length - 2] === U.j_expr);var a = this.state.clone();try { var n;return (n = t.prototype.parseMaybeAssign).call.apply(n, [this].concat(i)); } catch (t) { @@ -2023,15 +2030,15 @@ var babylon = function () { }, e.prototype.parseMaybeUnary = function (e) { return !this.hasPlugin("jsx") && this.eatRelational("<") ? this.tsParseTypeAssertion() : t.prototype.parseMaybeUnary.call(this, e); }, e.prototype.parseArrow = function (e) { - if (this.match(C.colon)) { + if (this.match(E.colon)) { var s = this.state.clone();try { - var i = this.tsParseTypeOrTypePredicateAnnotation(C.colon);this.canInsertSemicolon() && this.unexpected(), this.match(C.arrow) || this.unexpected(), e.returnType = i; + var i = this.tsParseTypeOrTypePredicateAnnotation(E.colon);this.canInsertSemicolon() && this.unexpected(), this.match(E.arrow) || this.unexpected(), e.returnType = i; } catch (t) { if (!(t instanceof SyntaxError)) throw t;this.state = s; } }return t.prototype.parseArrow.call(this, e); }, e.prototype.parseAssignableListItemTypes = function (t) { - if (this.eat(C.question)) { + if (this.eat(E.question)) { if ("Identifier" !== t.type) throw this.raise(t.start, "A binding pattern parameter cannot be optional in an implementation signature.");t.optional = !0; }var e = this.tsTryParseTypeAnnotation();return e && (t.typeAnnotation = e), this.finishNode(t, t.type); }, e.prototype.toAssignable = function (e, s, i) { @@ -2044,19 +2051,19 @@ var babylon = function () { return void this.checkLVal(e.parameter, s, i, "parameter property");default: return void t.prototype.checkLVal.call(this, e, s, i, r);} }, e.prototype.parseBindingAtom = function () { - switch (this.state.type) {case C._this: + switch (this.state.type) {case E._this: return this.parseIdentifier(!0);default: return t.prototype.parseBindingAtom.call(this);} }, e.prototype.isClassMethod = function () { return this.isRelational("<") || t.prototype.isClassMethod.call(this); }, e.prototype.isClassProperty = function () { - return this.match(C.colon) || t.prototype.isClassProperty.call(this); + return this.match(E.colon) || t.prototype.isClassProperty.call(this); }, e.prototype.parseMaybeDefault = function () { for (var e, s = arguments.length, i = Array(s), r = 0; r < s; r++) { i[r] = arguments[r]; }var a = (e = t.prototype.parseMaybeDefault).call.apply(e, [this].concat(i));return "AssignmentPattern" === a.type && a.typeAnnotation && a.right.start < a.typeAnnotation.start && this.raise(a.typeAnnotation.start, "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`"), a; }, e.prototype.readToken = function (e) { - return !this.state.inType || 62 !== e && 60 !== e ? t.prototype.readToken.call(this, e) : this.finishOp(C.relational, 1); + return !this.state.inType || 62 !== e && 60 !== e ? t.prototype.readToken.call(this, e) : this.finishOp(E.relational, 1); }, e.prototype.toAssignableList = function (e, s, i) { for (var r = 0; r < e.length; r++) { var a = e[r];a && "TypeCastExpression" === a.type && (e[r] = this.typeCastToParameter(a)); @@ -2068,12 +2075,12 @@ var babylon = function () { var s = t[e];s && s._exprListItem && "TypeCastExpression" === s.type && this.raise(s.start, "Did not expect a type annotation here."); }return t; }, e.prototype.shouldParseArrow = function () { - return this.match(C.colon) || t.prototype.shouldParseArrow.call(this); + return this.match(E.colon) || t.prototype.shouldParseArrow.call(this); }, e.prototype.shouldParseAsyncArrow = function () { - return this.match(C.colon) || t.prototype.shouldParseAsyncArrow.call(this); + return this.match(E.colon) || t.prototype.shouldParseAsyncArrow.call(this); }, e; }(t); - };et.estree = it, et.flow = nt, et.jsx = ct, et.typescript = lt;var ut = {};e.parse = v, e.parseExpression = P, e.tokTypes = C; + };et.estree = it, et.flow = nt, et.jsx = ct, et.typescript = lt;var ut = {};e.parse = v, e.parseExpression = P, e.tokTypes = E; });var createError = parserCreateError;var parserBabylon = parse;module.exports = parserBabylon; }); diff --git a/website/static/lib/parser-postcss.js b/website/static/lib/parser-postcss.js index b0373e019..7934a8bb9 100644 --- a/website/static/lib/parser-postcss.js +++ b/website/static/lib/parser-postcss.js @@ -104,7 +104,7 @@ var UNIVERSAL = exports.UNIVERSAL = 'universal'; "use strict"; -const Node = __webpack_require__(4); +const Node = __webpack_require__(3); class Container extends Node { @@ -363,27 +363,6 @@ var hashColorPattern = exports.hashColorPattern = /^#[0-9a-fA-F]{6}$|^#[0-9a-fA- "use strict"; -exports.__esModule = true; -exports.default = warnOnce; -var printed = {}; - -function warnOnce(message) { - if (printed[message]) return; - printed[message] = true; - - if (typeof console !== 'undefined' && console.warn) console.warn(message); -} -module.exports = exports['default']; - - - -/***/ }), -/* 4 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - let cloneNode = function (obj, parent) { let cloned = new obj.constructor(); @@ -598,6 +577,27 @@ module.exports = class Node { }; +/***/ }), +/* 4 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.default = warnOnce; +var printed = {}; + +function warnOnce(message) { + if (printed[message]) return; + printed[message] = true; + + if (typeof console !== 'undefined' && console.warn) console.warn(message); +} +module.exports = exports['default']; + + + /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { @@ -1153,15 +1153,66 @@ exports.__esModule = true; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _container = __webpack_require__(18); +var _node = __webpack_require__(6); + +var _node2 = _interopRequireDefault(_node); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Namespace = function (_Node) { + _inherits(Namespace, _Node); + + function Namespace() { + _classCallCheck(this, Namespace); + + return _possibleConstructorReturn(this, _Node.apply(this, arguments)); + } + + Namespace.prototype.toString = function toString() { + return [this.spaces.before, this.ns, String(this.value), this.spaces.after].join(''); + }; + + _createClass(Namespace, [{ + key: 'ns', + get: function get() { + var n = this.namespace; + return n ? (typeof n === 'string' ? n : '') + '|' : ''; + } + }]); + + return Namespace; +}(_node2.default); + +exports.default = Namespace; + +module.exports = exports['default']; + +/***/ }), +/* 10 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _container = __webpack_require__(25); var _container2 = _interopRequireDefault(_container); -var _warnOnce = __webpack_require__(3); +var _warnOnce = __webpack_require__(4); var _warnOnce2 = _interopRequireDefault(_warnOnce); -var _list = __webpack_require__(118); +var _list = __webpack_require__(142); var _list2 = _interopRequireDefault(_list); @@ -1285,57 +1336,6 @@ module.exports = exports['default']; -/***/ }), -/* 10 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Namespace = function (_Node) { - _inherits(Namespace, _Node); - - function Namespace() { - _classCallCheck(this, Namespace); - - return _possibleConstructorReturn(this, _Node.apply(this, arguments)); - } - - Namespace.prototype.toString = function toString() { - return [this.spaces.before, this.ns, String(this.value), this.spaces.after].join(''); - }; - - _createClass(Namespace, [{ - key: 'ns', - get: function get() { - var n = this.namespace; - return n ? (typeof n === 'string' ? n : '') + '|' : ''; - } - }]); - - return Namespace; -}(_node2.default); - -exports.default = Namespace; - -module.exports = exports['default']; - /***/ }), /* 11 */ /***/ (function(module, exports) { @@ -1770,15 +1770,15 @@ exports.__esModule = true; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _declaration = __webpack_require__(71); +var _declaration = __webpack_require__(40); var _declaration2 = _interopRequireDefault(_declaration); -var _comment = __webpack_require__(24); +var _comment = __webpack_require__(17); var _comment2 = _interopRequireDefault(_comment); -var _node = __webpack_require__(26); +var _node = __webpack_require__(19); var _node2 = _interopRequireDefault(_node); @@ -2505,7 +2505,7 @@ var Container = function (_Node) { var _this2 = this; if (typeof nodes === 'string') { - var parse = __webpack_require__(73); + var parse = __webpack_require__(42); nodes = cleanSource(parse(nodes).nodes); } else if (Array.isArray(nodes)) { nodes = nodes.slice(0); @@ -2553,10 +2553,10 @@ var Container = function (_Node) { } nodes = [new _declaration2.default(nodes)]; } else if (nodes.selector) { - var Rule = __webpack_require__(27); + var Rule = __webpack_require__(20); nodes = [new Rule(nodes)]; } else if (nodes.name) { - var AtRule = __webpack_require__(23); + var AtRule = __webpack_require__(16); nodes = [new AtRule(nodes)]; } else if (nodes.text) { nodes = [new _comment2.default(nodes)]; @@ -2585,13 +2585,13 @@ var Container = function (_Node) { var fix = void 0; if (node.type === 'root') { - var Root = __webpack_require__(75); + var Root = __webpack_require__(44); fix = new Root(); } else if (node.type === 'atrule') { - var AtRule = __webpack_require__(23); + var AtRule = __webpack_require__(16); fix = new AtRule(); } else if (node.type === 'rule') { - var Rule = __webpack_require__(27); + var Rule = __webpack_require__(20); fix = new Rule(); } else if (node.type === 'decl') { fix = new _declaration2.default(); @@ -4518,13 +4518,1872 @@ module.exports = exports['default']; exports.__esModule = true; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _container = __webpack_require__(18); +var _container = __webpack_require__(12); var _container2 = _interopRequireDefault(_container); -var _warnOnce = __webpack_require__(3); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +/** + * Represents an at-rule. + * + * If it’s followed in the CSS by a {} block, this node will have + * a nodes property representing its children. + * + * @extends Container + * + * @example + * const root = postcss.parse('@charset "UTF-8"; @media print {}'); + * + * const charset = root.first; + * charset.type //=> 'atrule' + * charset.nodes //=> undefined + * + * const media = root.last; + * media.nodes //=> [] + */ +var AtRule = function (_Container) { + _inherits(AtRule, _Container); + + function AtRule(defaults) { + _classCallCheck(this, AtRule); + + var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); + + _this.type = 'atrule'; + return _this; + } + + AtRule.prototype.append = function append() { + var _Container$prototype$; + + if (!this.nodes) this.nodes = []; + + for (var _len = arguments.length, children = Array(_len), _key = 0; _key < _len; _key++) { + children[_key] = arguments[_key]; + } + + return (_Container$prototype$ = _Container.prototype.append).call.apply(_Container$prototype$, [this].concat(children)); + }; + + AtRule.prototype.prepend = function prepend() { + var _Container$prototype$2; + + if (!this.nodes) this.nodes = []; + + for (var _len2 = arguments.length, children = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + children[_key2] = arguments[_key2]; + } + + return (_Container$prototype$2 = _Container.prototype.prepend).call.apply(_Container$prototype$2, [this].concat(children)); + }; + + /** + * @memberof AtRule# + * @member {string} name - the at-rule’s name immediately follows the `@` + * + * @example + * const root = postcss.parse('@media print {}'); + * media.name //=> 'media' + * const media = root.first; + */ + + /** + * @memberof AtRule# + * @member {string} params - the at-rule’s parameters, the values + * that follow the at-rule’s name but precede + * any {} block + * + * @example + * const root = postcss.parse('@media print, screen {}'); + * const media = root.first; + * media.params //=> 'print, screen' + */ + + /** + * @memberof AtRule# + * @member {object} raws - Information to generate byte-to-byte equal + * node string as it was in the origin input. + * + * Every parser saves its own properties, + * but the default CSS parser uses: + * + * * `before`: the space symbols before the node. It also stores `*` + * and `_` symbols before the declaration (IE hack). + * * `after`: the space symbols after the last child of the node + * to the end of the node. + * * `between`: the symbols between the property and value + * for declarations, selector and `{` for rules, or last parameter + * and `{` for at-rules. + * * `semicolon`: contains true if the last child has + * an (optional) semicolon. + * * `afterName`: the space between the at-rule name and its parameters. + * + * PostCSS cleans at-rule parameters from comments and extra spaces, + * but it stores origin content in raws properties. + * As such, if you don’t change a declaration’s value, + * PostCSS will use the raw value with comments. + * + * @example + * const root = postcss.parse(' @media\nprint {\n}') + * root.first.first.raws //=> { before: ' ', + * // between: ' ', + * // afterName: '\n', + * // after: '\n' } + */ + + + return AtRule; +}(_container2.default); + +exports.default = AtRule; +module.exports = exports['default']; + + + +/***/ }), +/* 17 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _node = __webpack_require__(19); + +var _node2 = _interopRequireDefault(_node); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +/** + * Represents a comment between declarations or statements (rule and at-rules). + * + * Comments inside selectors, at-rule parameters, or declaration values + * will be stored in the `raws` properties explained above. + * + * @extends Node + */ +var Comment = function (_Node) { + _inherits(Comment, _Node); + + function Comment(defaults) { + _classCallCheck(this, Comment); + + var _this = _possibleConstructorReturn(this, _Node.call(this, defaults)); + + _this.type = 'comment'; + return _this; + } + + /** + * @memberof Comment# + * @member {string} text - the comment’s text + */ + + /** + * @memberof Comment# + * @member {object} raws - Information to generate byte-to-byte equal + * node string as it was in the origin input. + * + * Every parser saves its own properties, + * but the default CSS parser uses: + * + * * `before`: the space symbols before the node. + * * `left`: the space symbols between `/*` and the comment’s text. + * * `right`: the space symbols between the comment’s text. + */ + + + return Comment; +}(_node2.default); + +exports.default = Comment; +module.exports = exports['default']; + + + +/***/ }), +/* 18 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _cssSyntaxError = __webpack_require__(39); + +var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); + +var _previousMap = __webpack_require__(127); + +var _previousMap2 = _interopRequireDefault(_previousMap); + +var _path = __webpack_require__(5); + +var _path2 = _interopRequireDefault(_path); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var sequence = 0; + +/** + * Represents the source CSS. + * + * @example + * const root = postcss.parse(css, { from: file }); + * const input = root.source.input; + */ + +var Input = function () { + + /** + * @param {string} css - input CSS source + * @param {object} [opts] - {@link Processor#process} options + */ + function Input(css) { + var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + _classCallCheck(this, Input); + + /** + * @member {string} - input CSS source + * + * @example + * const input = postcss.parse('a{}', { from: file }).input; + * input.css //=> "a{}"; + */ + this.css = css.toString(); + + if (this.css[0] === '\uFEFF' || this.css[0] === '\uFFFE') { + this.css = this.css.slice(1); + } + + if (opts.from) { + if (/^\w+:\/\//.test(opts.from)) { + /** + * @member {string} - The absolute path to the CSS source file + * defined with the `from` option. + * + * @example + * const root = postcss.parse(css, { from: 'a.css' }); + * root.source.input.file //=> '/home/ai/a.css' + */ + this.file = opts.from; + } else { + this.file = _path2.default.resolve(opts.from); + } + } + + var map = new _previousMap2.default(this.css, opts); + if (map.text) { + /** + * @member {PreviousMap} - The input source map passed from + * a compilation step before PostCSS + * (for example, from Sass compiler). + * + * @example + * root.source.input.map.consumer().sources //=> ['a.sass'] + */ + this.map = map; + var file = map.consumer().file; + if (!this.file && file) this.file = this.mapResolve(file); + } + + if (!this.file) { + sequence += 1; + /** + * @member {string} - The unique ID of the CSS source. It will be + * created if `from` option is not provided + * (because PostCSS does not know the file path). + * + * @example + * const root = postcss.parse(css); + * root.source.input.file //=> undefined + * root.source.input.id //=> "" + */ + this.id = ''; + } + if (this.map) this.map.file = this.from; + } + + Input.prototype.error = function error(message, line, column) { + var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + + var result = void 0; + var origin = this.origin(line, column); + if (origin) { + result = new _cssSyntaxError2.default(message, origin.line, origin.column, origin.source, origin.file, opts.plugin); + } else { + result = new _cssSyntaxError2.default(message, line, column, this.css, this.file, opts.plugin); + } + + result.input = { line: line, column: column, source: this.css }; + if (this.file) result.input.file = this.file; + + return result; + }; + + /** + * Reads the input source map and returns a symbol position + * in the input source (e.g., in a Sass file that was compiled + * to CSS before being passed to PostCSS). + * + * @param {number} line - line in input CSS + * @param {number} column - column in input CSS + * + * @return {filePosition} position in input source + * + * @example + * root.source.input.origin(1, 1) //=> { file: 'a.css', line: 3, column: 1 } + */ + + + Input.prototype.origin = function origin(line, column) { + if (!this.map) return false; + var consumer = this.map.consumer(); + + var from = consumer.originalPositionFor({ line: line, column: column }); + if (!from.source) return false; + + var result = { + file: this.mapResolve(from.source), + line: from.line, + column: from.column + }; + + var source = consumer.sourceContentFor(from.source); + if (source) result.source = source; + + return result; + }; + + Input.prototype.mapResolve = function mapResolve(file) { + if (/^\w+:\/\//.test(file)) { + return file; + } else { + return _path2.default.resolve(this.map.consumer().sourceRoot || '.', file); + } + }; + + /** + * The CSS source identifier. Contains {@link Input#file} if the user + * set the `from` option, or {@link Input#id} if they did not. + * @type {string} + * + * @example + * const root = postcss.parse(css, { from: 'a.css' }); + * root.source.input.from //=> "/home/ai/a.css" + * + * const root = postcss.parse(css); + * root.source.input.from //=> "" + */ + + + _createClass(Input, [{ + key: 'from', + get: function get() { + return this.file || this.id; + } + }]); + + return Input; +}(); + +exports.default = Input; + +/** + * @typedef {object} filePosition + * @property {string} file - path to file + * @property {number} line - source line in file + * @property {number} column - source column in file + */ + +module.exports = exports['default']; + + + +/***/ }), +/* 19 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _cssSyntaxError = __webpack_require__(39); + +var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); + +var _stringifier = __webpack_require__(21); + +var _stringifier2 = _interopRequireDefault(_stringifier); + +var _stringify = __webpack_require__(45); + +var _stringify2 = _interopRequireDefault(_stringify); + +var _warnOnce = __webpack_require__(131); + +var _warnOnce2 = _interopRequireDefault(_warnOnce); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var cloneNode = function cloneNode(obj, parent) { + var cloned = new obj.constructor(); + + for (var i in obj) { + if (!obj.hasOwnProperty(i)) continue; + var value = obj[i]; + var type = typeof value === 'undefined' ? 'undefined' : _typeof(value); + + if (i === 'parent' && type === 'object') { + if (parent) cloned[i] = parent; + } else if (i === 'source') { + cloned[i] = value; + } else if (value instanceof Array) { + cloned[i] = value.map(function (j) { + return cloneNode(j, cloned); + }); + } else { + if (type === 'object' && value !== null) value = cloneNode(value); + cloned[i] = value; + } + } + + return cloned; +}; + +/** + * All node classes inherit the following common methods. + * + * @abstract + */ + +var Node = function () { + + /** + * @param {object} [defaults] - value for node properties + */ + function Node() { + var defaults = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + _classCallCheck(this, Node); + + this.raws = {}; + if ((typeof defaults === 'undefined' ? 'undefined' : _typeof(defaults)) !== 'object' && typeof defaults !== 'undefined') { + throw new Error('PostCSS nodes constructor accepts object, not ' + JSON.stringify(defaults)); + } + for (var name in defaults) { + this[name] = defaults[name]; + } + } + + /** + * Returns a CssSyntaxError instance containing the original position + * of the node in the source, showing line and column numbers and also + * a small excerpt to facilitate debugging. + * + * If present, an input source map will be used to get the original position + * of the source, even from a previous compilation step + * (e.g., from Sass compilation). + * + * This method produces very useful error messages. + * + * @param {string} message - error description + * @param {object} [opts] - options + * @param {string} opts.plugin - plugin name that created this error. + * PostCSS will set it automatically. + * @param {string} opts.word - a word inside a node’s string that should + * be highlighted as the source of the error + * @param {number} opts.index - an index inside a node’s string that should + * be highlighted as the source of the error + * + * @return {CssSyntaxError} error object to throw it + * + * @example + * if ( !variables[name] ) { + * throw decl.error('Unknown variable ' + name, { word: name }); + * // CssSyntaxError: postcss-vars:a.sass:4:3: Unknown variable $black + * // color: $black + * // a + * // ^ + * // background: white + * } + */ + + + Node.prototype.error = function error(message) { + var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + if (this.source) { + var pos = this.positionBy(opts); + return this.source.input.error(message, pos.line, pos.column, opts); + } else { + return new _cssSyntaxError2.default(message); + } + }; + + /** + * This method is provided as a convenience wrapper for {@link Result#warn}. + * + * @param {Result} result - the {@link Result} instance + * that will receive the warning + * @param {string} text - warning message + * @param {object} [opts] - options + * @param {string} opts.plugin - plugin name that created this warning. + * PostCSS will set it automatically. + * @param {string} opts.word - a word inside a node’s string that should + * be highlighted as the source of the warning + * @param {number} opts.index - an index inside a node’s string that should + * be highlighted as the source of the warning + * + * @return {Warning} created warning object + * + * @example + * const plugin = postcss.plugin('postcss-deprecated', () => { + * return (root, result) => { + * root.walkDecls('bad', decl => { + * decl.warn(result, 'Deprecated property bad'); + * }); + * }; + * }); + */ + + + Node.prototype.warn = function warn(result, text, opts) { + var data = { node: this }; + for (var i in opts) { + data[i] = opts[i]; + }return result.warn(text, data); + }; + + /** + * Removes the node from its parent and cleans the parent properties + * from the node and its children. + * + * @example + * if ( decl.prop.match(/^-webkit-/) ) { + * decl.remove(); + * } + * + * @return {Node} node to make calls chain + */ + + + Node.prototype.remove = function remove() { + if (this.parent) { + this.parent.removeChild(this); + } + this.parent = undefined; + return this; + }; + + /** + * Returns a CSS string representing the node. + * + * @param {stringifier|syntax} [stringifier] - a syntax to use + * in string generation + * + * @return {string} CSS string of this node + * + * @example + * postcss.rule({ selector: 'a' }).toString() //=> "a {}" + */ + + + Node.prototype.toString = function toString() { + var stringifier = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _stringify2.default; + + if (stringifier.stringify) stringifier = stringifier.stringify; + var result = ''; + stringifier(this, function (i) { + result += i; + }); + return result; + }; + + /** + * Returns a clone of the node. + * + * The resulting cloned node and its (cloned) children will have + * a clean parent and code style properties. + * + * @param {object} [overrides] - new properties to override in the clone. + * + * @example + * const cloned = decl.clone({ prop: '-moz-' + decl.prop }); + * cloned.raws.before //=> undefined + * cloned.parent //=> undefined + * cloned.toString() //=> -moz-transform: scale(0) + * + * @return {Node} clone of the node + */ + + + Node.prototype.clone = function clone() { + var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var cloned = cloneNode(this); + for (var name in overrides) { + cloned[name] = overrides[name]; + } + return cloned; + }; + + /** + * Shortcut to clone the node and insert the resulting cloned node + * before the current node. + * + * @param {object} [overrides] - new properties to override in the clone. + * + * @example + * decl.cloneBefore({ prop: '-moz-' + decl.prop }); + * + * @return {Node} - new node + */ + + + Node.prototype.cloneBefore = function cloneBefore() { + var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var cloned = this.clone(overrides); + this.parent.insertBefore(this, cloned); + return cloned; + }; + + /** + * Shortcut to clone the node and insert the resulting cloned node + * after the current node. + * + * @param {object} [overrides] - new properties to override in the clone. + * + * @return {Node} - new node + */ + + + Node.prototype.cloneAfter = function cloneAfter() { + var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var cloned = this.clone(overrides); + this.parent.insertAfter(this, cloned); + return cloned; + }; + + /** + * Inserts node(s) before the current node and removes the current node. + * + * @param {...Node} nodes - node(s) to replace current one + * + * @example + * if ( atrule.name == 'mixin' ) { + * atrule.replaceWith(mixinRules[atrule.params]); + * } + * + * @return {Node} current node to methods chain + */ + + + Node.prototype.replaceWith = function replaceWith() { + if (this.parent) { + for (var _len = arguments.length, nodes = Array(_len), _key = 0; _key < _len; _key++) { + nodes[_key] = arguments[_key]; + } + + for (var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + var _ref; + + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } + + var node = _ref; + + this.parent.insertBefore(this, node); + } + + this.remove(); + } + + return this; + }; + + Node.prototype.moveTo = function moveTo(newParent) { + (0, _warnOnce2.default)('Node#moveTo was deprecated. Use Container#append.'); + this.cleanRaws(this.root() === newParent.root()); + this.remove(); + newParent.append(this); + return this; + }; + + Node.prototype.moveBefore = function moveBefore(otherNode) { + (0, _warnOnce2.default)('Node#moveBefore was deprecated. Use Node#before.'); + this.cleanRaws(this.root() === otherNode.root()); + this.remove(); + otherNode.parent.insertBefore(otherNode, this); + return this; + }; + + Node.prototype.moveAfter = function moveAfter(otherNode) { + (0, _warnOnce2.default)('Node#moveAfter was deprecated. Use Node#after.'); + this.cleanRaws(this.root() === otherNode.root()); + this.remove(); + otherNode.parent.insertAfter(otherNode, this); + return this; + }; + + /** + * Returns the next child of the node’s parent. + * Returns `undefined` if the current node is the last child. + * + * @return {Node|undefined} next node + * + * @example + * if ( comment.text === 'delete next' ) { + * const next = comment.next(); + * if ( next ) { + * next.remove(); + * } + * } + */ + + + Node.prototype.next = function next() { + var index = this.parent.index(this); + return this.parent.nodes[index + 1]; + }; + + /** + * Returns the previous child of the node’s parent. + * Returns `undefined` if the current node is the first child. + * + * @return {Node|undefined} previous node + * + * @example + * const annotation = decl.prev(); + * if ( annotation.type == 'comment' ) { + * readAnnotation(annotation.text); + * } + */ + + + Node.prototype.prev = function prev() { + var index = this.parent.index(this); + return this.parent.nodes[index - 1]; + }; + + /** + * Insert new node before current node to current node’s parent. + * + * Just alias for `node.parent.insertBefore(node, add)`. + * + * @param {Node|object|string|Node[]} add - new node + * + * @return {Node} this node for methods chain. + * + * @example + * decl.before('content: ""'); + */ + + + Node.prototype.before = function before(add) { + this.parent.insertBefore(this, add); + return this; + }; + + /** + * Insert new node after current node to current node’s parent. + * + * Just alias for `node.parent.insertAfter(node, add)`. + * + * @param {Node|object|string|Node[]} add - new node + * + * @return {Node} this node for methods chain. + * + * @example + * decl.after('color: black'); + */ + + + Node.prototype.after = function after(add) { + this.parent.insertAfter(this, add); + return this; + }; + + Node.prototype.toJSON = function toJSON() { + var fixed = {}; + + for (var name in this) { + if (!this.hasOwnProperty(name)) continue; + if (name === 'parent') continue; + var value = this[name]; + + if (value instanceof Array) { + fixed[name] = value.map(function (i) { + if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && i.toJSON) { + return i.toJSON(); + } else { + return i; + } + }); + } else if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.toJSON) { + fixed[name] = value.toJSON(); + } else { + fixed[name] = value; + } + } + + return fixed; + }; + + /** + * Returns a {@link Node#raws} value. If the node is missing + * the code style property (because the node was manually built or cloned), + * PostCSS will try to autodetect the code style property by looking + * at other nodes in the tree. + * + * @param {string} prop - name of code style property + * @param {string} [defaultType] - name of default value, it can be missed + * if the value is the same as prop + * + * @example + * const root = postcss.parse('a { background: white }'); + * root.nodes[0].append({ prop: 'color', value: 'black' }); + * root.nodes[0].nodes[1].raws.before //=> undefined + * root.nodes[0].nodes[1].raw('before') //=> ' ' + * + * @return {string} code style value + */ + + + Node.prototype.raw = function raw(prop, defaultType) { + var str = new _stringifier2.default(); + return str.raw(this, prop, defaultType); + }; + + /** + * Finds the Root instance of the node’s tree. + * + * @example + * root.nodes[0].nodes[0].root() === root + * + * @return {Root} root parent + */ + + + Node.prototype.root = function root() { + var result = this; + while (result.parent) { + result = result.parent; + }return result; + }; + + Node.prototype.cleanRaws = function cleanRaws(keepBetween) { + delete this.raws.before; + delete this.raws.after; + if (!keepBetween) delete this.raws.between; + }; + + Node.prototype.positionInside = function positionInside(index) { + var string = this.toString(); + var column = this.source.start.column; + var line = this.source.start.line; + + for (var i = 0; i < index; i++) { + if (string[i] === '\n') { + column = 1; + line += 1; + } else { + column += 1; + } + } + + return { line: line, column: column }; + }; + + Node.prototype.positionBy = function positionBy(opts) { + var pos = this.source.start; + if (opts.index) { + pos = this.positionInside(opts.index); + } else if (opts.word) { + var index = this.toString().indexOf(opts.word); + if (index !== -1) pos = this.positionInside(index); + } + return pos; + }; + + /** + * @memberof Node# + * @member {string} type - String representing the node’s type. + * Possible values are `root`, `atrule`, `rule`, + * `decl`, or `comment`. + * + * @example + * postcss.decl({ prop: 'color', value: 'black' }).type //=> 'decl' + */ + + /** + * @memberof Node# + * @member {Container} parent - the node’s parent node. + * + * @example + * root.nodes[0].parent == root; + */ + + /** + * @memberof Node# + * @member {source} source - the input source of the node + * + * The property is used in source map generation. + * + * If you create a node manually (e.g., with `postcss.decl()`), + * that node will not have a `source` property and will be absent + * from the source map. For this reason, the plugin developer should + * consider cloning nodes to create new ones (in which case the new node’s + * source will reference the original, cloned node) or setting + * the `source` property manually. + * + * ```js + * // Bad + * const prefixed = postcss.decl({ + * prop: '-moz-' + decl.prop, + * value: decl.value + * }); + * + * // Good + * const prefixed = decl.clone({ prop: '-moz-' + decl.prop }); + * ``` + * + * ```js + * if ( atrule.name == 'add-link' ) { + * const rule = postcss.rule({ selector: 'a', source: atrule.source }); + * atrule.parent.insertBefore(atrule, rule); + * } + * ``` + * + * @example + * decl.source.input.from //=> '/home/ai/a.sass' + * decl.source.start //=> { line: 10, column: 2 } + * decl.source.end //=> { line: 10, column: 12 } + */ + + /** + * @memberof Node# + * @member {object} raws - Information to generate byte-to-byte equal + * node string as it was in the origin input. + * + * Every parser saves its own properties, + * but the default CSS parser uses: + * + * * `before`: the space symbols before the node. It also stores `*` + * and `_` symbols before the declaration (IE hack). + * * `after`: the space symbols after the last child of the node + * to the end of the node. + * * `between`: the symbols between the property and value + * for declarations, selector and `{` for rules, or last parameter + * and `{` for at-rules. + * * `semicolon`: contains true if the last child has + * an (optional) semicolon. + * * `afterName`: the space between the at-rule name and its parameters. + * * `left`: the space symbols between `/*` and the comment’s text. + * * `right`: the space symbols between the comment’s text + * and */. + * * `important`: the content of the important statement, + * if it is not just `!important`. + * + * PostCSS cleans selectors, declaration values and at-rule parameters + * from comments and extra spaces, but it stores origin content in raws + * properties. As such, if you don’t change a declaration’s value, + * PostCSS will use the raw value with comments. + * + * @example + * const root = postcss.parse('a {\n color:black\n}') + * root.first.first.raws //=> { before: '\n ', between: ':' } + */ + + return Node; +}(); + +exports.default = Node; + +/** + * @typedef {object} position + * @property {number} line - source line in file + * @property {number} column - source column in file + */ + +/** + * @typedef {object} source + * @property {Input} input - {@link Input} with input file + * @property {position} start - The starting position of the node’s source + * @property {position} end - The ending position of the node’s source + */ + +module.exports = exports['default']; + + + +/***/ }), +/* 20 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _container = __webpack_require__(12); + +var _container2 = _interopRequireDefault(_container); + +var _list = __webpack_require__(125); + +var _list2 = _interopRequireDefault(_list); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +/** + * Represents a CSS rule: a selector followed by a declaration block. + * + * @extends Container + * + * @example + * const root = postcss.parse('a{}'); + * const rule = root.first; + * rule.type //=> 'rule' + * rule.toString() //=> 'a{}' + */ +var Rule = function (_Container) { + _inherits(Rule, _Container); + + function Rule(defaults) { + _classCallCheck(this, Rule); + + var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); + + _this.type = 'rule'; + if (!_this.nodes) _this.nodes = []; + return _this; + } + + /** + * An array containing the rule’s individual selectors. + * Groups of selectors are split at commas. + * + * @type {string[]} + * + * @example + * const root = postcss.parse('a, b { }'); + * const rule = root.first; + * + * rule.selector //=> 'a, b' + * rule.selectors //=> ['a', 'b'] + * + * rule.selectors = ['a', 'strong']; + * rule.selector //=> 'a, strong' + */ + + + _createClass(Rule, [{ + key: 'selectors', + get: function get() { + return _list2.default.comma(this.selector); + }, + set: function set(values) { + var match = this.selector ? this.selector.match(/,\s*/) : null; + var sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen'); + this.selector = values.join(sep); + } + + /** + * @memberof Rule# + * @member {string} selector - the rule’s full selector represented + * as a string + * + * @example + * const root = postcss.parse('a, b { }'); + * const rule = root.first; + * rule.selector //=> 'a, b' + */ + + /** + * @memberof Rule# + * @member {object} raws - Information to generate byte-to-byte equal + * node string as it was in the origin input. + * + * Every parser saves its own properties, + * but the default CSS parser uses: + * + * * `before`: the space symbols before the node. It also stores `*` + * and `_` symbols before the declaration (IE hack). + * * `after`: the space symbols after the last child of the node + * to the end of the node. + * * `between`: the symbols between the property and value + * for declarations, selector and `{` for rules, or last parameter + * and `{` for at-rules. + * * `semicolon`: contains true if the last child has + * an (optional) semicolon. + * + * PostCSS cleans selectors from comments and extra spaces, + * but it stores origin content in raws properties. + * As such, if you don’t change a declaration’s value, + * PostCSS will use the raw value with comments. + * + * @example + * const root = postcss.parse('a {\n color:black\n}') + * root.first.first.raws //=> { before: '', between: ' ', after: '\n' } + */ + + }]); + + return Rule; +}(_container2.default); + +exports.default = Rule; +module.exports = exports['default']; + + + +/***/ }), +/* 21 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var defaultRaw = { + colon: ': ', + indent: ' ', + beforeDecl: '\n', + beforeRule: '\n', + beforeOpen: ' ', + beforeClose: '\n', + beforeComment: '\n', + after: '\n', + emptyBody: '', + commentLeft: ' ', + commentRight: ' ' +}; + +function capitalize(str) { + return str[0].toUpperCase() + str.slice(1); +} + +var Stringifier = function () { + function Stringifier(builder) { + _classCallCheck(this, Stringifier); + + this.builder = builder; + } + + Stringifier.prototype.stringify = function stringify(node, semicolon) { + this[node.type](node, semicolon); + }; + + Stringifier.prototype.root = function root(node) { + this.body(node); + if (node.raws.after) this.builder(node.raws.after); + }; + + Stringifier.prototype.comment = function comment(node) { + var left = this.raw(node, 'left', 'commentLeft'); + var right = this.raw(node, 'right', 'commentRight'); + this.builder('/*' + left + node.text + right + '*/', node); + }; + + Stringifier.prototype.decl = function decl(node, semicolon) { + var between = this.raw(node, 'between', 'colon'); + var string = node.prop + between + this.rawValue(node, 'value'); + + if (node.important) { + string += node.raws.important || ' !important'; + } + + if (semicolon) string += ';'; + this.builder(string, node); + }; + + Stringifier.prototype.rule = function rule(node) { + this.block(node, this.rawValue(node, 'selector')); + if (node.raws.ownSemicolon) { + this.builder(node.raws.ownSemicolon, node, 'end'); + } + }; + + Stringifier.prototype.atrule = function atrule(node, semicolon) { + var name = '@' + node.name; + var params = node.params ? this.rawValue(node, 'params') : ''; + + if (typeof node.raws.afterName !== 'undefined') { + name += node.raws.afterName; + } else if (params) { + name += ' '; + } + + if (node.nodes) { + this.block(node, name + params); + } else { + var end = (node.raws.between || '') + (semicolon ? ';' : ''); + this.builder(name + params + end, node); + } + }; + + Stringifier.prototype.body = function body(node) { + var last = node.nodes.length - 1; + while (last > 0) { + if (node.nodes[last].type !== 'comment') break; + last -= 1; + } + + var semicolon = this.raw(node, 'semicolon'); + for (var i = 0; i < node.nodes.length; i++) { + var child = node.nodes[i]; + var before = this.raw(child, 'before'); + if (before) this.builder(before); + this.stringify(child, last !== i || semicolon); + } + }; + + Stringifier.prototype.block = function block(node, start) { + var between = this.raw(node, 'between', 'beforeOpen'); + this.builder(start + between + '{', node, 'start'); + + var after = void 0; + if (node.nodes && node.nodes.length) { + this.body(node); + after = this.raw(node, 'after'); + } else { + after = this.raw(node, 'after', 'emptyBody'); + } + + if (after) this.builder(after); + this.builder('}', node, 'end'); + }; + + Stringifier.prototype.raw = function raw(node, own, detect) { + var value = void 0; + if (!detect) detect = own; + + // Already had + if (own) { + value = node.raws[own]; + if (typeof value !== 'undefined') return value; + } + + var parent = node.parent; + + // Hack for first rule in CSS + if (detect === 'before') { + if (!parent || parent.type === 'root' && parent.first === node) { + return ''; + } + } + + // Floating child without parent + if (!parent) return defaultRaw[detect]; + + // Detect style by other nodes + var root = node.root(); + if (!root.rawCache) root.rawCache = {}; + if (typeof root.rawCache[detect] !== 'undefined') { + return root.rawCache[detect]; + } + + if (detect === 'before' || detect === 'after') { + return this.beforeAfter(node, detect); + } else { + var method = 'raw' + capitalize(detect); + if (this[method]) { + value = this[method](root, node); + } else { + root.walk(function (i) { + value = i.raws[own]; + if (typeof value !== 'undefined') return false; + }); + } + } + + if (typeof value === 'undefined') value = defaultRaw[detect]; + + root.rawCache[detect] = value; + return value; + }; + + Stringifier.prototype.rawSemicolon = function rawSemicolon(root) { + var value = void 0; + root.walk(function (i) { + if (i.nodes && i.nodes.length && i.last.type === 'decl') { + value = i.raws.semicolon; + if (typeof value !== 'undefined') return false; + } + }); + return value; + }; + + Stringifier.prototype.rawEmptyBody = function rawEmptyBody(root) { + var value = void 0; + root.walk(function (i) { + if (i.nodes && i.nodes.length === 0) { + value = i.raws.after; + if (typeof value !== 'undefined') return false; + } + }); + return value; + }; + + Stringifier.prototype.rawIndent = function rawIndent(root) { + if (root.raws.indent) return root.raws.indent; + var value = void 0; + root.walk(function (i) { + var p = i.parent; + if (p && p !== root && p.parent && p.parent === root) { + if (typeof i.raws.before !== 'undefined') { + var parts = i.raws.before.split('\n'); + value = parts[parts.length - 1]; + value = value.replace(/[^\s]/g, ''); + return false; + } + } + }); + return value; + }; + + Stringifier.prototype.rawBeforeComment = function rawBeforeComment(root, node) { + var value = void 0; + root.walkComments(function (i) { + if (typeof i.raws.before !== 'undefined') { + value = i.raws.before; + if (value.indexOf('\n') !== -1) { + value = value.replace(/[^\n]+$/, ''); + } + return false; + } + }); + if (typeof value === 'undefined') { + value = this.raw(node, null, 'beforeDecl'); + } + return value; + }; + + Stringifier.prototype.rawBeforeDecl = function rawBeforeDecl(root, node) { + var value = void 0; + root.walkDecls(function (i) { + if (typeof i.raws.before !== 'undefined') { + value = i.raws.before; + if (value.indexOf('\n') !== -1) { + value = value.replace(/[^\n]+$/, ''); + } + return false; + } + }); + if (typeof value === 'undefined') { + value = this.raw(node, null, 'beforeRule'); + } + return value; + }; + + Stringifier.prototype.rawBeforeRule = function rawBeforeRule(root) { + var value = void 0; + root.walk(function (i) { + if (i.nodes && (i.parent !== root || root.first !== i)) { + if (typeof i.raws.before !== 'undefined') { + value = i.raws.before; + if (value.indexOf('\n') !== -1) { + value = value.replace(/[^\n]+$/, ''); + } + return false; + } + } + }); + return value; + }; + + Stringifier.prototype.rawBeforeClose = function rawBeforeClose(root) { + var value = void 0; + root.walk(function (i) { + if (i.nodes && i.nodes.length > 0) { + if (typeof i.raws.after !== 'undefined') { + value = i.raws.after; + if (value.indexOf('\n') !== -1) { + value = value.replace(/[^\n]+$/, ''); + } + return false; + } + } + }); + return value; + }; + + Stringifier.prototype.rawBeforeOpen = function rawBeforeOpen(root) { + var value = void 0; + root.walk(function (i) { + if (i.type !== 'decl') { + value = i.raws.between; + if (typeof value !== 'undefined') return false; + } + }); + return value; + }; + + Stringifier.prototype.rawColon = function rawColon(root) { + var value = void 0; + root.walkDecls(function (i) { + if (typeof i.raws.between !== 'undefined') { + value = i.raws.between.replace(/[^\s:]/g, ''); + return false; + } + }); + return value; + }; + + Stringifier.prototype.beforeAfter = function beforeAfter(node, detect) { + var value = void 0; + if (node.type === 'decl') { + value = this.raw(node, null, 'beforeDecl'); + } else if (node.type === 'comment') { + value = this.raw(node, null, 'beforeComment'); + } else if (detect === 'before') { + value = this.raw(node, null, 'beforeRule'); + } else { + value = this.raw(node, null, 'beforeClose'); + } + + var buf = node.parent; + var depth = 0; + while (buf && buf.type !== 'root') { + depth += 1; + buf = buf.parent; + } + + if (value.indexOf('\n') !== -1) { + var indent = this.raw(node, null, 'indent'); + if (indent.length) { + for (var step = 0; step < depth; step++) { + value += indent; + } + } + } + + return value; + }; + + Stringifier.prototype.rawValue = function rawValue(node, prop) { + var value = node[prop]; + var raw = node.raws[prop]; + if (raw && raw.value === value) { + return raw.raw; + } else { + return value; + } + }; + + return Stringifier; +}(); + +exports.default = Stringifier; +module.exports = exports['default']; + + + +/***/ }), +/* 22 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _node = __webpack_require__(6); + +var _node2 = _interopRequireDefault(_node); + +var _types = __webpack_require__(0); + +var types = _interopRequireWildcard(_types); + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Container = function (_Node) { + _inherits(Container, _Node); + + function Container(opts) { + _classCallCheck(this, Container); + + var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); + + if (!_this.nodes) { + _this.nodes = []; + } + return _this; + } + + Container.prototype.append = function append(selector) { + selector.parent = this; + this.nodes.push(selector); + return this; + }; + + Container.prototype.prepend = function prepend(selector) { + selector.parent = this; + this.nodes.unshift(selector); + return this; + }; + + Container.prototype.at = function at(index) { + return this.nodes[index]; + }; + + Container.prototype.index = function index(child) { + if (typeof child === 'number') { + return child; + } + return this.nodes.indexOf(child); + }; + + Container.prototype.removeChild = function removeChild(child) { + child = this.index(child); + this.at(child).parent = undefined; + this.nodes.splice(child, 1); + + var index = void 0; + for (var id in this.indexes) { + index = this.indexes[id]; + if (index >= child) { + this.indexes[id] = index - 1; + } + } + + return this; + }; + + Container.prototype.removeAll = function removeAll() { + for (var _iterator = this.nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + var _ref; + + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } + + var node = _ref; + + node.parent = undefined; + } + this.nodes = []; + return this; + }; + + Container.prototype.empty = function empty() { + return this.removeAll(); + }; + + Container.prototype.insertAfter = function insertAfter(oldNode, newNode) { + var oldIndex = this.index(oldNode); + this.nodes.splice(oldIndex + 1, 0, newNode); + + var index = void 0; + for (var id in this.indexes) { + index = this.indexes[id]; + if (oldIndex <= index) { + this.indexes[id] = index + this.nodes.length; + } + } + + return this; + }; + + Container.prototype.insertBefore = function insertBefore(oldNode, newNode) { + var oldIndex = this.index(oldNode); + this.nodes.splice(oldIndex, 0, newNode); + + var index = void 0; + for (var id in this.indexes) { + index = this.indexes[id]; + if (oldIndex <= index) { + this.indexes[id] = index + this.nodes.length; + } + } + + return this; + }; + + Container.prototype.each = function each(callback) { + if (!this.lastEach) { + this.lastEach = 0; + } + if (!this.indexes) { + this.indexes = {}; + } + + this.lastEach++; + var id = this.lastEach; + this.indexes[id] = 0; + + if (!this.length) { + return undefined; + } + + var index = void 0, + result = void 0; + while (this.indexes[id] < this.length) { + index = this.indexes[id]; + result = callback(this.at(index), index); + if (result === false) { + break; + } + + this.indexes[id] += 1; + } + + delete this.indexes[id]; + + if (result === false) { + return false; + } + }; + + Container.prototype.walk = function walk(callback) { + return this.each(function (node, i) { + var result = callback(node, i); + + if (result !== false && node.length) { + result = node.walk(callback); + } + + if (result === false) { + return false; + } + }); + }; + + Container.prototype.walkAttributes = function walkAttributes(callback) { + var _this2 = this; + + return this.walk(function (selector) { + if (selector.type === types.ATTRIBUTE) { + return callback.call(_this2, selector); + } + }); + }; + + Container.prototype.walkClasses = function walkClasses(callback) { + var _this3 = this; + + return this.walk(function (selector) { + if (selector.type === types.CLASS) { + return callback.call(_this3, selector); + } + }); + }; + + Container.prototype.walkCombinators = function walkCombinators(callback) { + var _this4 = this; + + return this.walk(function (selector) { + if (selector.type === types.COMBINATOR) { + return callback.call(_this4, selector); + } + }); + }; + + Container.prototype.walkComments = function walkComments(callback) { + var _this5 = this; + + return this.walk(function (selector) { + if (selector.type === types.COMMENT) { + return callback.call(_this5, selector); + } + }); + }; + + Container.prototype.walkIds = function walkIds(callback) { + var _this6 = this; + + return this.walk(function (selector) { + if (selector.type === types.ID) { + return callback.call(_this6, selector); + } + }); + }; + + Container.prototype.walkNesting = function walkNesting(callback) { + var _this7 = this; + + return this.walk(function (selector) { + if (selector.type === types.NESTING) { + return callback.call(_this7, selector); + } + }); + }; + + Container.prototype.walkPseudos = function walkPseudos(callback) { + var _this8 = this; + + return this.walk(function (selector) { + if (selector.type === types.PSEUDO) { + return callback.call(_this8, selector); + } + }); + }; + + Container.prototype.walkTags = function walkTags(callback) { + var _this9 = this; + + return this.walk(function (selector) { + if (selector.type === types.TAG) { + return callback.call(_this9, selector); + } + }); + }; + + Container.prototype.walkUniversals = function walkUniversals(callback) { + var _this10 = this; + + return this.walk(function (selector) { + if (selector.type === types.UNIVERSAL) { + return callback.call(_this10, selector); + } + }); + }; + + Container.prototype.split = function split(callback) { + var _this11 = this; + + var current = []; + return this.reduce(function (memo, node, index) { + var split = callback.call(_this11, node); + current.push(node); + if (split) { + memo.push(current); + current = []; + } else if (index === _this11.length - 1) { + memo.push(current); + } + return memo; + }, []); + }; + + Container.prototype.map = function map(callback) { + return this.nodes.map(callback); + }; + + Container.prototype.reduce = function reduce(callback, memo) { + return this.nodes.reduce(callback, memo); + }; + + Container.prototype.every = function every(callback) { + return this.nodes.every(callback); + }; + + Container.prototype.some = function some(callback) { + return this.nodes.some(callback); + }; + + Container.prototype.filter = function filter(callback) { + return this.nodes.filter(callback); + }; + + Container.prototype.sort = function sort(callback) { + return this.nodes.sort(callback); + }; + + Container.prototype.toString = function toString() { + return this.map(String).join(''); + }; + + _createClass(Container, [{ + key: 'first', + get: function get() { + return this.at(0); + } + }, { + key: 'last', + get: function get() { + return this.at(this.length - 1); + } + }, { + key: 'length', + get: function get() { + return this.nodes.length; + } + }]); + + return Container; +}(_node2.default); + +exports.default = Container; +module.exports = exports['default']; + +/***/ }), +/* 23 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _container = __webpack_require__(25); + +var _container2 = _interopRequireDefault(_container); + +var _warnOnce = __webpack_require__(4); var _warnOnce2 = _interopRequireDefault(_warnOnce); @@ -4676,7 +6535,7 @@ module.exports = exports['default']; /***/ }), -/* 17 */ +/* 24 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4686,11 +6545,11 @@ exports.__esModule = true; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _warnOnce = __webpack_require__(3); +var _warnOnce = __webpack_require__(4); var _warnOnce2 = _interopRequireDefault(_warnOnce); -var _node = __webpack_require__(20); +var _node = __webpack_require__(27); var _node2 = _interopRequireDefault(_node); @@ -4772,7 +6631,7 @@ module.exports = exports['default']; /***/ }), -/* 18 */ +/* 25 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4782,19 +6641,19 @@ exports.__esModule = true; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _declaration = __webpack_require__(38); +var _declaration = __webpack_require__(71); var _declaration2 = _interopRequireDefault(_declaration); -var _warnOnce = __webpack_require__(3); +var _warnOnce = __webpack_require__(4); var _warnOnce2 = _interopRequireDefault(_warnOnce); -var _comment = __webpack_require__(17); +var _comment = __webpack_require__(24); var _comment2 = _interopRequireDefault(_comment); -var _node = __webpack_require__(20); +var _node = __webpack_require__(27); var _node2 = _interopRequireDefault(_node); @@ -5531,7 +7390,7 @@ var Container = function (_Node) { var _this2 = this; if (typeof nodes === 'string') { - var parse = __webpack_require__(40); + var parse = __webpack_require__(73); nodes = cleanSource(parse(nodes).nodes); } else if (!Array.isArray(nodes)) { if (nodes.type === 'root') { @@ -5546,10 +7405,10 @@ var Container = function (_Node) { } nodes = [new _declaration2.default(nodes)]; } else if (nodes.selector) { - var Rule = __webpack_require__(9); + var Rule = __webpack_require__(10); nodes = [new Rule(nodes)]; } else if (nodes.name) { - var AtRule = __webpack_require__(16); + var AtRule = __webpack_require__(23); nodes = [new AtRule(nodes)]; } else if (nodes.text) { nodes = [new _comment2.default(nodes)]; @@ -5579,13 +7438,13 @@ var Container = function (_Node) { var fix = void 0; if (node.type === 'root') { - var Root = __webpack_require__(42); + var Root = __webpack_require__(75); fix = new Root(); } else if (node.type === 'atrule') { - var AtRule = __webpack_require__(16); + var AtRule = __webpack_require__(23); fix = new AtRule(); } else if (node.type === 'rule') { - var Rule = __webpack_require__(9); + var Rule = __webpack_require__(10); fix = new Rule(); } else if (node.type === 'decl') { fix = new _declaration2.default(); @@ -5714,7 +7573,7 @@ module.exports = exports['default']; /***/ }), -/* 19 */ +/* 26 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5724,11 +7583,11 @@ exports.__esModule = true; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _cssSyntaxError = __webpack_require__(37); +var _cssSyntaxError = __webpack_require__(70); var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); -var _previousMap = __webpack_require__(120); +var _previousMap = __webpack_require__(144); var _previousMap2 = _interopRequireDefault(_previousMap); @@ -5919,7 +7778,7 @@ module.exports = exports['default']; /***/ }), -/* 20 */ +/* 27 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5931,19 +7790,19 @@ var _createClass = function () { function defineProperties(target, props) { for var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; -var _cssSyntaxError = __webpack_require__(37); +var _cssSyntaxError = __webpack_require__(70); var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); -var _stringifier = __webpack_require__(21); +var _stringifier = __webpack_require__(28); var _stringifier2 = _interopRequireDefault(_stringifier); -var _stringify = __webpack_require__(43); +var _stringify = __webpack_require__(76); var _stringify2 = _interopRequireDefault(_stringify); -var _warnOnce = __webpack_require__(3); +var _warnOnce = __webpack_require__(4); var _warnOnce2 = _interopRequireDefault(_warnOnce); @@ -6597,1862 +8456,6 @@ module.exports = exports['default']; -/***/ }), -/* 21 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var defaultRaw = { - colon: ': ', - indent: ' ', - beforeDecl: '\n', - beforeRule: '\n', - beforeOpen: ' ', - beforeClose: '\n', - beforeComment: '\n', - after: '\n', - emptyBody: '', - commentLeft: ' ', - commentRight: ' ' -}; - -function capitalize(str) { - return str[0].toUpperCase() + str.slice(1); -} - -var Stringifier = function () { - function Stringifier(builder) { - _classCallCheck(this, Stringifier); - - this.builder = builder; - } - - Stringifier.prototype.stringify = function stringify(node, semicolon) { - this[node.type](node, semicolon); - }; - - Stringifier.prototype.root = function root(node) { - this.body(node); - if (node.raws.after) this.builder(node.raws.after); - }; - - Stringifier.prototype.comment = function comment(node) { - var left = this.raw(node, 'left', 'commentLeft'); - var right = this.raw(node, 'right', 'commentRight'); - this.builder('/*' + left + node.text + right + '*/', node); - }; - - Stringifier.prototype.decl = function decl(node, semicolon) { - var between = this.raw(node, 'between', 'colon'); - var string = node.prop + between + this.rawValue(node, 'value'); - - if (node.important) { - string += node.raws.important || ' !important'; - } - - if (semicolon) string += ';'; - this.builder(string, node); - }; - - Stringifier.prototype.rule = function rule(node) { - this.block(node, this.rawValue(node, 'selector')); - }; - - Stringifier.prototype.atrule = function atrule(node, semicolon) { - var name = '@' + node.name; - var params = node.params ? this.rawValue(node, 'params') : ''; - - if (typeof node.raws.afterName !== 'undefined') { - name += node.raws.afterName; - } else if (params) { - name += ' '; - } - - if (node.nodes) { - this.block(node, name + params); - } else { - var end = (node.raws.between || '') + (semicolon ? ';' : ''); - this.builder(name + params + end, node); - } - }; - - Stringifier.prototype.body = function body(node) { - var last = node.nodes.length - 1; - while (last > 0) { - if (node.nodes[last].type !== 'comment') break; - last -= 1; - } - - var semicolon = this.raw(node, 'semicolon'); - for (var i = 0; i < node.nodes.length; i++) { - var child = node.nodes[i]; - var before = this.raw(child, 'before'); - if (before) this.builder(before); - this.stringify(child, last !== i || semicolon); - } - }; - - Stringifier.prototype.block = function block(node, start) { - var between = this.raw(node, 'between', 'beforeOpen'); - this.builder(start + between + '{', node, 'start'); - - var after = void 0; - if (node.nodes && node.nodes.length) { - this.body(node); - after = this.raw(node, 'after'); - } else { - after = this.raw(node, 'after', 'emptyBody'); - } - - if (after) this.builder(after); - this.builder('}', node, 'end'); - }; - - Stringifier.prototype.raw = function raw(node, own, detect) { - var value = void 0; - if (!detect) detect = own; - - // Already had - if (own) { - value = node.raws[own]; - if (typeof value !== 'undefined') return value; - } - - var parent = node.parent; - - // Hack for first rule in CSS - if (detect === 'before') { - if (!parent || parent.type === 'root' && parent.first === node) { - return ''; - } - } - - // Floating child without parent - if (!parent) return defaultRaw[detect]; - - // Detect style by other nodes - var root = node.root(); - if (!root.rawCache) root.rawCache = {}; - if (typeof root.rawCache[detect] !== 'undefined') { - return root.rawCache[detect]; - } - - if (detect === 'before' || detect === 'after') { - return this.beforeAfter(node, detect); - } else { - var method = 'raw' + capitalize(detect); - if (this[method]) { - value = this[method](root, node); - } else { - root.walk(function (i) { - value = i.raws[own]; - if (typeof value !== 'undefined') return false; - }); - } - } - - if (typeof value === 'undefined') value = defaultRaw[detect]; - - root.rawCache[detect] = value; - return value; - }; - - Stringifier.prototype.rawSemicolon = function rawSemicolon(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length && i.last.type === 'decl') { - value = i.raws.semicolon; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawEmptyBody = function rawEmptyBody(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length === 0) { - value = i.raws.after; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawIndent = function rawIndent(root) { - if (root.raws.indent) return root.raws.indent; - var value = void 0; - root.walk(function (i) { - var p = i.parent; - if (p && p !== root && p.parent && p.parent === root) { - if (typeof i.raws.before !== 'undefined') { - var parts = i.raws.before.split('\n'); - value = parts[parts.length - 1]; - value = value.replace(/[^\s]/g, ''); - return false; - } - } - }); - return value; - }; - - Stringifier.prototype.rawBeforeComment = function rawBeforeComment(root, node) { - var value = void 0; - root.walkComments(function (i) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - }); - if (typeof value === 'undefined') { - value = this.raw(node, null, 'beforeDecl'); - } - return value; - }; - - Stringifier.prototype.rawBeforeDecl = function rawBeforeDecl(root, node) { - var value = void 0; - root.walkDecls(function (i) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - }); - if (typeof value === 'undefined') { - value = this.raw(node, null, 'beforeRule'); - } - return value; - }; - - Stringifier.prototype.rawBeforeRule = function rawBeforeRule(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && (i.parent !== root || root.first !== i)) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - } - }); - return value; - }; - - Stringifier.prototype.rawBeforeClose = function rawBeforeClose(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length > 0) { - if (typeof i.raws.after !== 'undefined') { - value = i.raws.after; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - } - }); - return value; - }; - - Stringifier.prototype.rawBeforeOpen = function rawBeforeOpen(root) { - var value = void 0; - root.walk(function (i) { - if (i.type !== 'decl') { - value = i.raws.between; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawColon = function rawColon(root) { - var value = void 0; - root.walkDecls(function (i) { - if (typeof i.raws.between !== 'undefined') { - value = i.raws.between.replace(/[^\s:]/g, ''); - return false; - } - }); - return value; - }; - - Stringifier.prototype.beforeAfter = function beforeAfter(node, detect) { - var value = void 0; - if (node.type === 'decl') { - value = this.raw(node, null, 'beforeDecl'); - } else if (node.type === 'comment') { - value = this.raw(node, null, 'beforeComment'); - } else if (detect === 'before') { - value = this.raw(node, null, 'beforeRule'); - } else { - value = this.raw(node, null, 'beforeClose'); - } - - var buf = node.parent; - var depth = 0; - while (buf && buf.type !== 'root') { - depth += 1; - buf = buf.parent; - } - - if (value.indexOf('\n') !== -1) { - var indent = this.raw(node, null, 'indent'); - if (indent.length) { - for (var step = 0; step < depth; step++) { - value += indent; - } - } - } - - return value; - }; - - Stringifier.prototype.rawValue = function rawValue(node, prop) { - var value = node[prop]; - var raw = node.raws[prop]; - if (raw && raw.value === value) { - return raw.raw; - } else { - return value; - } - }; - - return Stringifier; -}(); - -exports.default = Stringifier; -module.exports = exports['default']; - - - -/***/ }), -/* 22 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -var _types = __webpack_require__(0); - -var types = _interopRequireWildcard(_types); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Container = function (_Node) { - _inherits(Container, _Node); - - function Container(opts) { - _classCallCheck(this, Container); - - var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); - - if (!_this.nodes) { - _this.nodes = []; - } - return _this; - } - - Container.prototype.append = function append(selector) { - selector.parent = this; - this.nodes.push(selector); - return this; - }; - - Container.prototype.prepend = function prepend(selector) { - selector.parent = this; - this.nodes.unshift(selector); - return this; - }; - - Container.prototype.at = function at(index) { - return this.nodes[index]; - }; - - Container.prototype.index = function index(child) { - if (typeof child === 'number') { - return child; - } - return this.nodes.indexOf(child); - }; - - Container.prototype.removeChild = function removeChild(child) { - child = this.index(child); - this.at(child).parent = undefined; - this.nodes.splice(child, 1); - - var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (index >= child) { - this.indexes[id] = index - 1; - } - } - - return this; - }; - - Container.prototype.removeAll = function removeAll() { - for (var _iterator = this.nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var node = _ref; - - node.parent = undefined; - } - this.nodes = []; - return this; - }; - - Container.prototype.empty = function empty() { - return this.removeAll(); - }; - - Container.prototype.insertAfter = function insertAfter(oldNode, newNode) { - var oldIndex = this.index(oldNode); - this.nodes.splice(oldIndex + 1, 0, newNode); - - var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (oldIndex <= index) { - this.indexes[id] = index + this.nodes.length; - } - } - - return this; - }; - - Container.prototype.insertBefore = function insertBefore(oldNode, newNode) { - var oldIndex = this.index(oldNode); - this.nodes.splice(oldIndex, 0, newNode); - - var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (oldIndex <= index) { - this.indexes[id] = index + this.nodes.length; - } - } - - return this; - }; - - Container.prototype.each = function each(callback) { - if (!this.lastEach) { - this.lastEach = 0; - } - if (!this.indexes) { - this.indexes = {}; - } - - this.lastEach++; - var id = this.lastEach; - this.indexes[id] = 0; - - if (!this.length) { - return undefined; - } - - var index = void 0, - result = void 0; - while (this.indexes[id] < this.length) { - index = this.indexes[id]; - result = callback(this.at(index), index); - if (result === false) { - break; - } - - this.indexes[id] += 1; - } - - delete this.indexes[id]; - - if (result === false) { - return false; - } - }; - - Container.prototype.walk = function walk(callback) { - return this.each(function (node, i) { - var result = callback(node, i); - - if (result !== false && node.length) { - result = node.walk(callback); - } - - if (result === false) { - return false; - } - }); - }; - - Container.prototype.walkAttributes = function walkAttributes(callback) { - var _this2 = this; - - return this.walk(function (selector) { - if (selector.type === types.ATTRIBUTE) { - return callback.call(_this2, selector); - } - }); - }; - - Container.prototype.walkClasses = function walkClasses(callback) { - var _this3 = this; - - return this.walk(function (selector) { - if (selector.type === types.CLASS) { - return callback.call(_this3, selector); - } - }); - }; - - Container.prototype.walkCombinators = function walkCombinators(callback) { - var _this4 = this; - - return this.walk(function (selector) { - if (selector.type === types.COMBINATOR) { - return callback.call(_this4, selector); - } - }); - }; - - Container.prototype.walkComments = function walkComments(callback) { - var _this5 = this; - - return this.walk(function (selector) { - if (selector.type === types.COMMENT) { - return callback.call(_this5, selector); - } - }); - }; - - Container.prototype.walkIds = function walkIds(callback) { - var _this6 = this; - - return this.walk(function (selector) { - if (selector.type === types.ID) { - return callback.call(_this6, selector); - } - }); - }; - - Container.prototype.walkNesting = function walkNesting(callback) { - var _this7 = this; - - return this.walk(function (selector) { - if (selector.type === types.NESTING) { - return callback.call(_this7, selector); - } - }); - }; - - Container.prototype.walkPseudos = function walkPseudos(callback) { - var _this8 = this; - - return this.walk(function (selector) { - if (selector.type === types.PSEUDO) { - return callback.call(_this8, selector); - } - }); - }; - - Container.prototype.walkTags = function walkTags(callback) { - var _this9 = this; - - return this.walk(function (selector) { - if (selector.type === types.TAG) { - return callback.call(_this9, selector); - } - }); - }; - - Container.prototype.walkUniversals = function walkUniversals(callback) { - var _this10 = this; - - return this.walk(function (selector) { - if (selector.type === types.UNIVERSAL) { - return callback.call(_this10, selector); - } - }); - }; - - Container.prototype.split = function split(callback) { - var _this11 = this; - - var current = []; - return this.reduce(function (memo, node, index) { - var split = callback.call(_this11, node); - current.push(node); - if (split) { - memo.push(current); - current = []; - } else if (index === _this11.length - 1) { - memo.push(current); - } - return memo; - }, []); - }; - - Container.prototype.map = function map(callback) { - return this.nodes.map(callback); - }; - - Container.prototype.reduce = function reduce(callback, memo) { - return this.nodes.reduce(callback, memo); - }; - - Container.prototype.every = function every(callback) { - return this.nodes.every(callback); - }; - - Container.prototype.some = function some(callback) { - return this.nodes.some(callback); - }; - - Container.prototype.filter = function filter(callback) { - return this.nodes.filter(callback); - }; - - Container.prototype.sort = function sort(callback) { - return this.nodes.sort(callback); - }; - - Container.prototype.toString = function toString() { - return this.map(String).join(''); - }; - - _createClass(Container, [{ - key: 'first', - get: function get() { - return this.at(0); - } - }, { - key: 'last', - get: function get() { - return this.at(this.length - 1); - } - }, { - key: 'length', - get: function get() { - return this.nodes.length; - } - }]); - - return Container; -}(_node2.default); - -exports.default = Container; -module.exports = exports['default']; - -/***/ }), -/* 23 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(12); - -var _container2 = _interopRequireDefault(_container); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents an at-rule. - * - * If it’s followed in the CSS by a {} block, this node will have - * a nodes property representing its children. - * - * @extends Container - * - * @example - * const root = postcss.parse('@charset "UTF-8"; @media print {}'); - * - * const charset = root.first; - * charset.type //=> 'atrule' - * charset.nodes //=> undefined - * - * const media = root.last; - * media.nodes //=> [] - */ -var AtRule = function (_Container) { - _inherits(AtRule, _Container); - - function AtRule(defaults) { - _classCallCheck(this, AtRule); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'atrule'; - return _this; - } - - AtRule.prototype.append = function append() { - var _Container$prototype$; - - if (!this.nodes) this.nodes = []; - - for (var _len = arguments.length, children = Array(_len), _key = 0; _key < _len; _key++) { - children[_key] = arguments[_key]; - } - - return (_Container$prototype$ = _Container.prototype.append).call.apply(_Container$prototype$, [this].concat(children)); - }; - - AtRule.prototype.prepend = function prepend() { - var _Container$prototype$2; - - if (!this.nodes) this.nodes = []; - - for (var _len2 = arguments.length, children = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - children[_key2] = arguments[_key2]; - } - - return (_Container$prototype$2 = _Container.prototype.prepend).call.apply(_Container$prototype$2, [this].concat(children)); - }; - - /** - * @memberof AtRule# - * @member {string} name - the at-rule’s name immediately follows the `@` - * - * @example - * const root = postcss.parse('@media print {}'); - * media.name //=> 'media' - * const media = root.first; - */ - - /** - * @memberof AtRule# - * @member {string} params - the at-rule’s parameters, the values - * that follow the at-rule’s name but precede - * any {} block - * - * @example - * const root = postcss.parse('@media print, screen {}'); - * const media = root.first; - * media.params //=> 'print, screen' - */ - - /** - * @memberof AtRule# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * * `afterName`: the space between the at-rule name and its parameters. - * - * PostCSS cleans at-rule parameters from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse(' @media\nprint {\n}') - * root.first.first.raws //=> { before: ' ', - * // between: ' ', - * // afterName: '\n', - * // after: '\n' } - */ - - - return AtRule; -}(_container2.default); - -exports.default = AtRule; -module.exports = exports['default']; - - - -/***/ }), -/* 24 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _node = __webpack_require__(26); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a comment between declarations or statements (rule and at-rules). - * - * Comments inside selectors, at-rule parameters, or declaration values - * will be stored in the `raws` properties explained above. - * - * @extends Node - */ -var Comment = function (_Node) { - _inherits(Comment, _Node); - - function Comment(defaults) { - _classCallCheck(this, Comment); - - var _this = _possibleConstructorReturn(this, _Node.call(this, defaults)); - - _this.type = 'comment'; - return _this; - } - - /** - * @memberof Comment# - * @member {string} text - the comment’s text - */ - - /** - * @memberof Comment# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. - * * `left`: the space symbols between `/*` and the comment’s text. - * * `right`: the space symbols between the comment’s text. - */ - - - return Comment; -}(_node2.default); - -exports.default = Comment; -module.exports = exports['default']; - - - -/***/ }), -/* 25 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _cssSyntaxError = __webpack_require__(70); - -var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); - -var _previousMap = __webpack_require__(143); - -var _previousMap2 = _interopRequireDefault(_previousMap); - -var _path = __webpack_require__(5); - -var _path2 = _interopRequireDefault(_path); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var sequence = 0; - -/** - * Represents the source CSS. - * - * @example - * const root = postcss.parse(css, { from: file }); - * const input = root.source.input; - */ - -var Input = function () { - - /** - * @param {string} css - input CSS source - * @param {object} [opts] - {@link Processor#process} options - */ - function Input(css) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Input); - - /** - * @member {string} - input CSS source - * - * @example - * const input = postcss.parse('a{}', { from: file }).input; - * input.css //=> "a{}"; - */ - this.css = css.toString(); - - if (this.css[0] === '\uFEFF' || this.css[0] === '\uFFFE') { - this.css = this.css.slice(1); - } - - if (opts.from) { - if (/^\w+:\/\//.test(opts.from)) { - /** - * @member {string} - The absolute path to the CSS source file - * defined with the `from` option. - * - * @example - * const root = postcss.parse(css, { from: 'a.css' }); - * root.source.input.file //=> '/home/ai/a.css' - */ - this.file = opts.from; - } else { - this.file = _path2.default.resolve(opts.from); - } - } - - var map = new _previousMap2.default(this.css, opts); - if (map.text) { - /** - * @member {PreviousMap} - The input source map passed from - * a compilation step before PostCSS - * (for example, from Sass compiler). - * - * @example - * root.source.input.map.consumer().sources //=> ['a.sass'] - */ - this.map = map; - var file = map.consumer().file; - if (!this.file && file) this.file = this.mapResolve(file); - } - - if (!this.file) { - sequence += 1; - /** - * @member {string} - The unique ID of the CSS source. It will be - * created if `from` option is not provided - * (because PostCSS does not know the file path). - * - * @example - * const root = postcss.parse(css); - * root.source.input.file //=> undefined - * root.source.input.id //=> "" - */ - this.id = ''; - } - if (this.map) this.map.file = this.from; - } - - Input.prototype.error = function error(message, line, column) { - var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - - var result = void 0; - var origin = this.origin(line, column); - if (origin) { - result = new _cssSyntaxError2.default(message, origin.line, origin.column, origin.source, origin.file, opts.plugin); - } else { - result = new _cssSyntaxError2.default(message, line, column, this.css, this.file, opts.plugin); - } - - result.input = { line: line, column: column, source: this.css }; - if (this.file) result.input.file = this.file; - - return result; - }; - - /** - * Reads the input source map and returns a symbol position - * in the input source (e.g., in a Sass file that was compiled - * to CSS before being passed to PostCSS). - * - * @param {number} line - line in input CSS - * @param {number} column - column in input CSS - * - * @return {filePosition} position in input source - * - * @example - * root.source.input.origin(1, 1) //=> { file: 'a.css', line: 3, column: 1 } - */ - - - Input.prototype.origin = function origin(line, column) { - if (!this.map) return false; - var consumer = this.map.consumer(); - - var from = consumer.originalPositionFor({ line: line, column: column }); - if (!from.source) return false; - - var result = { - file: this.mapResolve(from.source), - line: from.line, - column: from.column - }; - - var source = consumer.sourceContentFor(from.source); - if (source) result.source = source; - - return result; - }; - - Input.prototype.mapResolve = function mapResolve(file) { - if (/^\w+:\/\//.test(file)) { - return file; - } else { - return _path2.default.resolve(this.map.consumer().sourceRoot || '.', file); - } - }; - - /** - * The CSS source identifier. Contains {@link Input#file} if the user - * set the `from` option, or {@link Input#id} if they did not. - * @type {string} - * - * @example - * const root = postcss.parse(css, { from: 'a.css' }); - * root.source.input.from //=> "/home/ai/a.css" - * - * const root = postcss.parse(css); - * root.source.input.from //=> "" - */ - - - _createClass(Input, [{ - key: 'from', - get: function get() { - return this.file || this.id; - } - }]); - - return Input; -}(); - -exports.default = Input; - -/** - * @typedef {object} filePosition - * @property {string} file - path to file - * @property {number} line - source line in file - * @property {number} column - source column in file - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 26 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _cssSyntaxError = __webpack_require__(70); - -var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); - -var _stringifier = __webpack_require__(28); - -var _stringifier2 = _interopRequireDefault(_stringifier); - -var _stringify = __webpack_require__(76); - -var _stringify2 = _interopRequireDefault(_stringify); - -var _warnOnce = __webpack_require__(147); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var cloneNode = function cloneNode(obj, parent) { - var cloned = new obj.constructor(); - - for (var i in obj) { - if (!obj.hasOwnProperty(i)) continue; - var value = obj[i]; - var type = typeof value === 'undefined' ? 'undefined' : _typeof(value); - - if (i === 'parent' && type === 'object') { - if (parent) cloned[i] = parent; - } else if (i === 'source') { - cloned[i] = value; - } else if (value instanceof Array) { - cloned[i] = value.map(function (j) { - return cloneNode(j, cloned); - }); - } else { - if (type === 'object' && value !== null) value = cloneNode(value); - cloned[i] = value; - } - } - - return cloned; -}; - -/** - * All node classes inherit the following common methods. - * - * @abstract - */ - -var Node = function () { - - /** - * @param {object} [defaults] - value for node properties - */ - function Node() { - var defaults = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - _classCallCheck(this, Node); - - this.raws = {}; - if ((typeof defaults === 'undefined' ? 'undefined' : _typeof(defaults)) !== 'object' && typeof defaults !== 'undefined') { - throw new Error('PostCSS nodes constructor accepts object, not ' + JSON.stringify(defaults)); - } - for (var name in defaults) { - this[name] = defaults[name]; - } - } - - /** - * Returns a CssSyntaxError instance containing the original position - * of the node in the source, showing line and column numbers and also - * a small excerpt to facilitate debugging. - * - * If present, an input source map will be used to get the original position - * of the source, even from a previous compilation step - * (e.g., from Sass compilation). - * - * This method produces very useful error messages. - * - * @param {string} message - error description - * @param {object} [opts] - options - * @param {string} opts.plugin - plugin name that created this error. - * PostCSS will set it automatically. - * @param {string} opts.word - a word inside a node’s string that should - * be highlighted as the source of the error - * @param {number} opts.index - an index inside a node’s string that should - * be highlighted as the source of the error - * - * @return {CssSyntaxError} error object to throw it - * - * @example - * if ( !variables[name] ) { - * throw decl.error('Unknown variable ' + name, { word: name }); - * // CssSyntaxError: postcss-vars:a.sass:4:3: Unknown variable $black - * // color: $black - * // a - * // ^ - * // background: white - * } - */ - - - Node.prototype.error = function error(message) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (this.source) { - var pos = this.positionBy(opts); - return this.source.input.error(message, pos.line, pos.column, opts); - } else { - return new _cssSyntaxError2.default(message); - } - }; - - /** - * This method is provided as a convenience wrapper for {@link Result#warn}. - * - * @param {Result} result - the {@link Result} instance - * that will receive the warning - * @param {string} text - warning message - * @param {object} [opts] - options - * @param {string} opts.plugin - plugin name that created this warning. - * PostCSS will set it automatically. - * @param {string} opts.word - a word inside a node’s string that should - * be highlighted as the source of the warning - * @param {number} opts.index - an index inside a node’s string that should - * be highlighted as the source of the warning - * - * @return {Warning} created warning object - * - * @example - * const plugin = postcss.plugin('postcss-deprecated', () => { - * return (root, result) => { - * root.walkDecls('bad', decl => { - * decl.warn(result, 'Deprecated property bad'); - * }); - * }; - * }); - */ - - - Node.prototype.warn = function warn(result, text, opts) { - var data = { node: this }; - for (var i in opts) { - data[i] = opts[i]; - }return result.warn(text, data); - }; - - /** - * Removes the node from its parent and cleans the parent properties - * from the node and its children. - * - * @example - * if ( decl.prop.match(/^-webkit-/) ) { - * decl.remove(); - * } - * - * @return {Node} node to make calls chain - */ - - - Node.prototype.remove = function remove() { - if (this.parent) { - this.parent.removeChild(this); - } - this.parent = undefined; - return this; - }; - - /** - * Returns a CSS string representing the node. - * - * @param {stringifier|syntax} [stringifier] - a syntax to use - * in string generation - * - * @return {string} CSS string of this node - * - * @example - * postcss.rule({ selector: 'a' }).toString() //=> "a {}" - */ - - - Node.prototype.toString = function toString() { - var stringifier = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _stringify2.default; - - if (stringifier.stringify) stringifier = stringifier.stringify; - var result = ''; - stringifier(this, function (i) { - result += i; - }); - return result; - }; - - /** - * Returns a clone of the node. - * - * The resulting cloned node and its (cloned) children will have - * a clean parent and code style properties. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @example - * const cloned = decl.clone({ prop: '-moz-' + decl.prop }); - * cloned.raws.before //=> undefined - * cloned.parent //=> undefined - * cloned.toString() //=> -moz-transform: scale(0) - * - * @return {Node} clone of the node - */ - - - Node.prototype.clone = function clone() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = cloneNode(this); - for (var name in overrides) { - cloned[name] = overrides[name]; - } - return cloned; - }; - - /** - * Shortcut to clone the node and insert the resulting cloned node - * before the current node. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @example - * decl.cloneBefore({ prop: '-moz-' + decl.prop }); - * - * @return {Node} - new node - */ - - - Node.prototype.cloneBefore = function cloneBefore() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = this.clone(overrides); - this.parent.insertBefore(this, cloned); - return cloned; - }; - - /** - * Shortcut to clone the node and insert the resulting cloned node - * after the current node. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @return {Node} - new node - */ - - - Node.prototype.cloneAfter = function cloneAfter() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = this.clone(overrides); - this.parent.insertAfter(this, cloned); - return cloned; - }; - - /** - * Inserts node(s) before the current node and removes the current node. - * - * @param {...Node} nodes - node(s) to replace current one - * - * @example - * if ( atrule.name == 'mixin' ) { - * atrule.replaceWith(mixinRules[atrule.params]); - * } - * - * @return {Node} current node to methods chain - */ - - - Node.prototype.replaceWith = function replaceWith() { - if (this.parent) { - for (var _len = arguments.length, nodes = Array(_len), _key = 0; _key < _len; _key++) { - nodes[_key] = arguments[_key]; - } - - for (var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var node = _ref; - - this.parent.insertBefore(this, node); - } - - this.remove(); - } - - return this; - }; - - Node.prototype.moveTo = function moveTo(newParent) { - (0, _warnOnce2.default)('Node#moveTo was deprecated. Use Container#append.'); - this.cleanRaws(this.root() === newParent.root()); - this.remove(); - newParent.append(this); - return this; - }; - - Node.prototype.moveBefore = function moveBefore(otherNode) { - (0, _warnOnce2.default)('Node#moveBefore was deprecated. Use Node#before.'); - this.cleanRaws(this.root() === otherNode.root()); - this.remove(); - otherNode.parent.insertBefore(otherNode, this); - return this; - }; - - Node.prototype.moveAfter = function moveAfter(otherNode) { - (0, _warnOnce2.default)('Node#moveAfter was deprecated. Use Node#after.'); - this.cleanRaws(this.root() === otherNode.root()); - this.remove(); - otherNode.parent.insertAfter(otherNode, this); - return this; - }; - - /** - * Returns the next child of the node’s parent. - * Returns `undefined` if the current node is the last child. - * - * @return {Node|undefined} next node - * - * @example - * if ( comment.text === 'delete next' ) { - * const next = comment.next(); - * if ( next ) { - * next.remove(); - * } - * } - */ - - - Node.prototype.next = function next() { - var index = this.parent.index(this); - return this.parent.nodes[index + 1]; - }; - - /** - * Returns the previous child of the node’s parent. - * Returns `undefined` if the current node is the first child. - * - * @return {Node|undefined} previous node - * - * @example - * const annotation = decl.prev(); - * if ( annotation.type == 'comment' ) { - * readAnnotation(annotation.text); - * } - */ - - - Node.prototype.prev = function prev() { - var index = this.parent.index(this); - return this.parent.nodes[index - 1]; - }; - - /** - * Insert new node before current node to current node’s parent. - * - * Just alias for `node.parent.insertBefore(node, add)`. - * - * @param {Node|object|string|Node[]} add - new node - * - * @return {Node} this node for methods chain. - * - * @example - * decl.before('content: ""'); - */ - - - Node.prototype.before = function before(add) { - this.parent.insertBefore(this, add); - return this; - }; - - /** - * Insert new node after current node to current node’s parent. - * - * Just alias for `node.parent.insertAfter(node, add)`. - * - * @param {Node|object|string|Node[]} add - new node - * - * @return {Node} this node for methods chain. - * - * @example - * decl.after('color: black'); - */ - - - Node.prototype.after = function after(add) { - this.parent.insertAfter(this, add); - return this; - }; - - Node.prototype.toJSON = function toJSON() { - var fixed = {}; - - for (var name in this) { - if (!this.hasOwnProperty(name)) continue; - if (name === 'parent') continue; - var value = this[name]; - - if (value instanceof Array) { - fixed[name] = value.map(function (i) { - if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && i.toJSON) { - return i.toJSON(); - } else { - return i; - } - }); - } else if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.toJSON) { - fixed[name] = value.toJSON(); - } else { - fixed[name] = value; - } - } - - return fixed; - }; - - /** - * Returns a {@link Node#raws} value. If the node is missing - * the code style property (because the node was manually built or cloned), - * PostCSS will try to autodetect the code style property by looking - * at other nodes in the tree. - * - * @param {string} prop - name of code style property - * @param {string} [defaultType] - name of default value, it can be missed - * if the value is the same as prop - * - * @example - * const root = postcss.parse('a { background: white }'); - * root.nodes[0].append({ prop: 'color', value: 'black' }); - * root.nodes[0].nodes[1].raws.before //=> undefined - * root.nodes[0].nodes[1].raw('before') //=> ' ' - * - * @return {string} code style value - */ - - - Node.prototype.raw = function raw(prop, defaultType) { - var str = new _stringifier2.default(); - return str.raw(this, prop, defaultType); - }; - - /** - * Finds the Root instance of the node’s tree. - * - * @example - * root.nodes[0].nodes[0].root() === root - * - * @return {Root} root parent - */ - - - Node.prototype.root = function root() { - var result = this; - while (result.parent) { - result = result.parent; - }return result; - }; - - Node.prototype.cleanRaws = function cleanRaws(keepBetween) { - delete this.raws.before; - delete this.raws.after; - if (!keepBetween) delete this.raws.between; - }; - - Node.prototype.positionInside = function positionInside(index) { - var string = this.toString(); - var column = this.source.start.column; - var line = this.source.start.line; - - for (var i = 0; i < index; i++) { - if (string[i] === '\n') { - column = 1; - line += 1; - } else { - column += 1; - } - } - - return { line: line, column: column }; - }; - - Node.prototype.positionBy = function positionBy(opts) { - var pos = this.source.start; - if (opts.index) { - pos = this.positionInside(opts.index); - } else if (opts.word) { - var index = this.toString().indexOf(opts.word); - if (index !== -1) pos = this.positionInside(index); - } - return pos; - }; - - /** - * @memberof Node# - * @member {string} type - String representing the node’s type. - * Possible values are `root`, `atrule`, `rule`, - * `decl`, or `comment`. - * - * @example - * postcss.decl({ prop: 'color', value: 'black' }).type //=> 'decl' - */ - - /** - * @memberof Node# - * @member {Container} parent - the node’s parent node. - * - * @example - * root.nodes[0].parent == root; - */ - - /** - * @memberof Node# - * @member {source} source - the input source of the node - * - * The property is used in source map generation. - * - * If you create a node manually (e.g., with `postcss.decl()`), - * that node will not have a `source` property and will be absent - * from the source map. For this reason, the plugin developer should - * consider cloning nodes to create new ones (in which case the new node’s - * source will reference the original, cloned node) or setting - * the `source` property manually. - * - * ```js - * // Bad - * const prefixed = postcss.decl({ - * prop: '-moz-' + decl.prop, - * value: decl.value - * }); - * - * // Good - * const prefixed = decl.clone({ prop: '-moz-' + decl.prop }); - * ``` - * - * ```js - * if ( atrule.name == 'add-link' ) { - * const rule = postcss.rule({ selector: 'a', source: atrule.source }); - * atrule.parent.insertBefore(atrule, rule); - * } - * ``` - * - * @example - * decl.source.input.from //=> '/home/ai/a.sass' - * decl.source.start //=> { line: 10, column: 2 } - * decl.source.end //=> { line: 10, column: 12 } - */ - - /** - * @memberof Node# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * * `afterName`: the space between the at-rule name and its parameters. - * * `left`: the space symbols between `/*` and the comment’s text. - * * `right`: the space symbols between the comment’s text - * and */. - * * `important`: the content of the important statement, - * if it is not just `!important`. - * - * PostCSS cleans selectors, declaration values and at-rule parameters - * from comments and extra spaces, but it stores origin content in raws - * properties. As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '\n ', between: ':' } - */ - - return Node; -}(); - -exports.default = Node; - -/** - * @typedef {object} position - * @property {number} line - source line in file - * @property {number} column - source column in file - */ - -/** - * @typedef {object} source - * @property {Input} input - {@link Input} with input file - * @property {position} start - The starting position of the node’s source - * @property {position} end - The ending position of the node’s source - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 27 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _container = __webpack_require__(12); - -var _container2 = _interopRequireDefault(_container); - -var _list = __webpack_require__(141); - -var _list2 = _interopRequireDefault(_list); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS rule: a selector followed by a declaration block. - * - * @extends Container - * - * @example - * const root = postcss.parse('a{}'); - * const rule = root.first; - * rule.type //=> 'rule' - * rule.toString() //=> 'a{}' - */ -var Rule = function (_Container) { - _inherits(Rule, _Container); - - function Rule(defaults) { - _classCallCheck(this, Rule); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'rule'; - if (!_this.nodes) _this.nodes = []; - return _this; - } - - /** - * An array containing the rule’s individual selectors. - * Groups of selectors are split at commas. - * - * @type {string[]} - * - * @example - * const root = postcss.parse('a, b { }'); - * const rule = root.first; - * - * rule.selector //=> 'a, b' - * rule.selectors //=> ['a', 'b'] - * - * rule.selectors = ['a', 'strong']; - * rule.selector //=> 'a, strong' - */ - - - _createClass(Rule, [{ - key: 'selectors', - get: function get() { - return _list2.default.comma(this.selector); - }, - set: function set(values) { - var match = this.selector ? this.selector.match(/,\s*/) : null; - var sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen'); - this.selector = values.join(sep); - } - - /** - * @memberof Rule# - * @member {string} selector - the rule’s full selector represented - * as a string - * - * @example - * const root = postcss.parse('a, b { }'); - * const rule = root.first; - * rule.selector //=> 'a, b' - */ - - /** - * @memberof Rule# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * - * PostCSS cleans selectors from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '', between: ' ', after: '\n' } - */ - - }]); - - return Rule; -}(_container2.default); - -exports.default = Rule; -module.exports = exports['default']; - - - /***/ }), /* 28 */ /***/ (function(module, exports, __webpack_require__) { @@ -8518,9 +8521,6 @@ var Stringifier = function () { Stringifier.prototype.rule = function rule(node) { this.block(node, this.rawValue(node, 'selector')); - if (node.raws.ownSemicolon) { - this.builder(node.raws.ownSemicolon, node, 'end'); - } }; Stringifier.prototype.atrule = function atrule(node, semicolon) { @@ -8813,7 +8813,7 @@ var _createClass = function () { function defineProperties(target, props) { for var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; -var _comment = __webpack_require__(17); +var _comment = __webpack_require__(24); var _comment2 = _interopRequireDefault(_comment); @@ -8821,7 +8821,7 @@ var _import2 = __webpack_require__(97); var _import3 = _interopRequireDefault(_import2); -var _parser = __webpack_require__(41); +var _parser = __webpack_require__(74); var _parser2 = _interopRequireDefault(_parser); @@ -9528,13 +9528,137 @@ module.exports = function (ary, item) { /* 36 */ /***/ (function(module, exports, __webpack_require__) { +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _Node = __webpack_require__(37); + +var _Node2 = _interopRequireDefault(_Node); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function Container(opts) { + var _this = this; + + this.constructor(opts); + + this.nodes = opts.nodes; + + if (this.after === undefined) { + this.after = this.nodes.length > 0 ? this.nodes[this.nodes.length - 1].after : ''; + } + + if (this.before === undefined) { + this.before = this.nodes.length > 0 ? this.nodes[0].before : ''; + } + + if (this.sourceIndex === undefined) { + this.sourceIndex = this.before.length; + } + + this.nodes.forEach(function (node) { + node.parent = _this; // eslint-disable-line no-param-reassign + }); +} /** + * A node that contains other nodes and support traversing over them + */ + +Container.prototype = Object.create(_Node2.default.prototype); +Container.constructor = _Node2.default; + +/** + * Iterate over descendant nodes of the node + * + * @param {RegExp|string} filter - Optional. Only nodes with node.type that + * satisfies the filter will be traversed over + * @param {function} cb - callback to call on each node. Takes theese params: + * node - the node being processed, i - it's index, nodes - the array + * of all nodes + * If false is returned, the iteration breaks + * + * @return (boolean) false, if the iteration was broken + */ +Container.prototype.walk = function walk(filter, cb) { + var hasFilter = typeof filter === 'string' || filter instanceof RegExp; + var callback = hasFilter ? cb : filter; + var filterReg = typeof filter === 'string' ? new RegExp(filter) : filter; + + for (var i = 0; i < this.nodes.length; i++) { + var node = this.nodes[i]; + var filtered = hasFilter ? filterReg.test(node.type) : true; + if (filtered && callback && callback(node, i, this.nodes) === false) { + return false; + } + if (node.nodes && node.walk(filter, cb) === false) { + return false; + } + } + return true; +}; + +/** + * Iterate over immediate children of the node + * + * @param {function} cb - callback to call on each node. Takes theese params: + * node - the node being processed, i - it's index, nodes - the array + * of all nodes + * If false is returned, the iteration breaks + * + * @return (boolean) false, if the iteration was broken + */ +Container.prototype.each = function each() { + var cb = arguments.length <= 0 || arguments[0] === undefined ? function () {} : arguments[0]; + + for (var i = 0; i < this.nodes.length; i++) { + var node = this.nodes[i]; + if (cb(node, i, this.nodes) === false) { + return false; + } + } + return true; +}; + +exports.default = Container; + +/***/ }), +/* 37 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +/** + * A very generic node. Pretty much any element of a media query + */ + +function Node(opts) { + this.after = opts.after; + this.before = opts.before; + this.type = opts.type; + this.value = opts.value; + this.sourceIndex = opts.sourceIndex; +} + +exports.default = Node; + +/***/ }), +/* 38 */ +/***/ (function(module, exports, __webpack_require__) { + "use strict"; /* WEBPACK VAR INJECTION */(function(process) { var escapeStringRegexp = __webpack_require__(31); -var ansiStyles = __webpack_require__(116); +var ansiStyles = __webpack_require__(123); var stripAnsi = __webpack_require__(82); var hasAnsi = __webpack_require__(33); -var supportsColor = __webpack_require__(117); +var supportsColor = __webpack_require__(124); var defineProps = Object.defineProperties; var isSimpleWindowsTerm = process.platform === 'win32' && !/^xterm/i.test(process.env.TERM); @@ -9648,422 +9772,6 @@ module.exports.supportsColor = supportsColor; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7))); -/***/ }), -/* 37 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _supportsColor = __webpack_require__(83); - -var _supportsColor2 = _interopRequireDefault(_supportsColor); - -var _chalk = __webpack_require__(36); - -var _chalk2 = _interopRequireDefault(_chalk); - -var _terminalHighlight = __webpack_require__(123); - -var _terminalHighlight2 = _interopRequireDefault(_terminalHighlight); - -var _warnOnce = __webpack_require__(3); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * The CSS parser throws this error for broken CSS. - * - * Custom parsers can throw this error for broken custom syntax using - * the {@link Node#error} method. - * - * PostCSS will use the input source map to detect the original error location. - * If you wrote a Sass file, compiled it to CSS and then parsed it with PostCSS, - * PostCSS will show the original position in the Sass file. - * - * If you need the position in the PostCSS input - * (e.g., to debug the previous compiler), use `error.input.file`. - * - * @example - * // Catching and checking syntax error - * try { - * postcss.parse('a{') - * } catch (error) { - * if ( error.name === 'CssSyntaxError' ) { - * error //=> CssSyntaxError - * } - * } - * - * @example - * // Raising error from plugin - * throw node.error('Unknown variable', { plugin: 'postcss-vars' }); - */ -var CssSyntaxError = function () { - - /** - * @param {string} message - error message - * @param {number} [line] - source line of the error - * @param {number} [column] - source column of the error - * @param {string} [source] - source code of the broken file - * @param {string} [file] - absolute path to the broken file - * @param {string} [plugin] - PostCSS plugin name, if error came from plugin - */ - function CssSyntaxError(message, line, column, source, file, plugin) { - _classCallCheck(this, CssSyntaxError); - - /** - * @member {string} - Always equal to `'CssSyntaxError'`. You should - * always check error type - * by `error.name === 'CssSyntaxError'` instead of - * `error instanceof CssSyntaxError`, because - * npm could have several PostCSS versions. - * - * @example - * if ( error.name === 'CssSyntaxError' ) { - * error //=> CssSyntaxError - * } - */ - this.name = 'CssSyntaxError'; - /** - * @member {string} - Error message. - * - * @example - * error.message //=> 'Unclosed block' - */ - this.reason = message; - - if (file) { - /** - * @member {string} - Absolute path to the broken file. - * - * @example - * error.file //=> 'a.sass' - * error.input.file //=> 'a.css' - */ - this.file = file; - } - if (source) { - /** - * @member {string} - Source code of the broken file. - * - * @example - * error.source //=> 'a { b {} }' - * error.input.column //=> 'a b { }' - */ - this.source = source; - } - if (plugin) { - /** - * @member {string} - Plugin name, if error came from plugin. - * - * @example - * error.plugin //=> 'postcss-vars' - */ - this.plugin = plugin; - } - if (typeof line !== 'undefined' && typeof column !== 'undefined') { - /** - * @member {number} - Source line of the error. - * - * @example - * error.line //=> 2 - * error.input.line //=> 4 - */ - this.line = line; - /** - * @member {number} - Source column of the error. - * - * @example - * error.column //=> 1 - * error.input.column //=> 4 - */ - this.column = column; - } - - this.setMessage(); - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, CssSyntaxError); - } - } - - CssSyntaxError.prototype.setMessage = function setMessage() { - /** - * @member {string} - Full error text in the GNU error format - * with plugin, file, line and column. - * - * @example - * error.message //=> 'a.css:1:1: Unclosed block' - */ - this.message = this.plugin ? this.plugin + ': ' : ''; - this.message += this.file ? this.file : ''; - if (typeof this.line !== 'undefined') { - this.message += ':' + this.line + ':' + this.column; - } - this.message += ': ' + this.reason; - }; - - /** - * Returns a few lines of CSS source that caused the error. - * - * If the CSS has an input source map without `sourceContent`, - * this method will return an empty string. - * - * @param {boolean} [color] whether arrow will be colored red by terminal - * color codes. By default, PostCSS will detect - * color support by `process.stdout.isTTY` - * and `process.env.NODE_DISABLE_COLORS`. - * - * @example - * error.showSourceCode() //=> " 4 | } - * // 5 | a { - * // > 6 | bad - * // | ^ - * // 7 | } - * // 8 | b {" - * - * @return {string} few lines of CSS source that caused the error - */ - - - CssSyntaxError.prototype.showSourceCode = function showSourceCode(color) { - var _this = this; - - if (!this.source) return ''; - - var css = this.source; - if (typeof color === 'undefined') color = _supportsColor2.default; - if (color) css = (0, _terminalHighlight2.default)(css); - - var lines = css.split(/\r?\n/); - var start = Math.max(this.line - 3, 0); - var end = Math.min(this.line + 2, lines.length); - - var maxWidth = String(end).length; - var colors = new _chalk2.default.constructor({ enabled: true }); - - function mark(text) { - if (color) { - return colors.red.bold(text); - } else { - return text; - } - } - function aside(text) { - if (color) { - return colors.gray(text); - } else { - return text; - } - } - - return lines.slice(start, end).map(function (line, index) { - var number = start + 1 + index; - var gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | '; - if (number === _this.line) { - var spacing = aside(gutter.replace(/\d/g, ' ')) + line.slice(0, _this.column - 1).replace(/[^\t]/g, ' '); - return mark('>') + aside(gutter) + line + '\n ' + spacing + mark('^'); - } else { - return ' ' + aside(gutter) + line; - } - }).join('\n'); - }; - - /** - * Returns error position, message and source code of the broken part. - * - * @example - * error.toString() //=> "CssSyntaxError: app.css:1:1: Unclosed block - * // > 1 | a { - * // | ^" - * - * @return {string} error position, message and source code - */ - - - CssSyntaxError.prototype.toString = function toString() { - var code = this.showSourceCode(); - if (code) { - code = '\n\n' + code + '\n'; - } - return this.name + ': ' + this.message + code; - }; - - _createClass(CssSyntaxError, [{ - key: 'generated', - get: function get() { - (0, _warnOnce2.default)('CssSyntaxError#generated is deprecated. Use input instead.'); - return this.input; - } - - /** - * @memberof CssSyntaxError# - * @member {Input} input - Input object with PostCSS internal information - * about input file. If input has source map - * from previous tool, PostCSS will use origin - * (for example, Sass) source. You can use this - * object to get PostCSS input source. - * - * @example - * error.input.file //=> 'a.css' - * error.file //=> 'a.sass' - */ - - }]); - - return CssSyntaxError; -}(); - -exports.default = CssSyntaxError; -module.exports = exports['default']; - - - -/***/ }), -/* 38 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _warnOnce = __webpack_require__(3); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _node = __webpack_require__(20); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS declaration. - * - * @extends Node - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.type //=> 'decl' - * decl.toString() //=> ' color: black' - */ -var Declaration = function (_Node) { - _inherits(Declaration, _Node); - - function Declaration(defaults) { - _classCallCheck(this, Declaration); - - var _this = _possibleConstructorReturn(this, _Node.call(this, defaults)); - - _this.type = 'decl'; - return _this; - } - - _createClass(Declaration, [{ - key: '_value', - get: function get() { - (0, _warnOnce2.default)('Node#_value was deprecated. Use Node#raws.value'); - return this.raws.value; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#_value was deprecated. Use Node#raws.value'); - this.raws.value = val; - } - }, { - key: '_important', - get: function get() { - (0, _warnOnce2.default)('Node#_important was deprecated. Use Node#raws.important'); - return this.raws.important; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#_important was deprecated. Use Node#raws.important'); - this.raws.important = val; - } - - /** - * @memberof Declaration# - * @member {string} prop - the declaration’s property name - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.prop //=> 'color' - */ - - /** - * @memberof Declaration# - * @member {string} value - the declaration’s value - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.value //=> 'black' - */ - - /** - * @memberof Declaration# - * @member {boolean} important - `true` if the declaration - * has an !important annotation. - * - * @example - * const root = postcss.parse('a { color: black !important; color: red }'); - * root.first.first.important //=> true - * root.first.last.important //=> undefined - */ - - /** - * @memberof Declaration# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `between`: the symbols between the property and value - * for declarations. - * * `important`: the content of the important statement, - * if it is not just `!important`. - * - * PostCSS cleans declaration from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '\n ', between: ':' } - */ - - }]); - - return Declaration; -}(_node2.default); - -exports.default = Declaration; -module.exports = exports['default']; - - - /***/ }), /* 39 */ /***/ (function(module, exports, __webpack_require__) { @@ -10071,2423 +9779,17 @@ module.exports = exports['default']; "use strict"; -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _mapGenerator = __webpack_require__(119); - -var _mapGenerator2 = _interopRequireDefault(_mapGenerator); - -var _stringify2 = __webpack_require__(43); - -var _stringify3 = _interopRequireDefault(_stringify2); - -var _warnOnce = __webpack_require__(3); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _result = __webpack_require__(122); - -var _result2 = _interopRequireDefault(_result); - -var _parse = __webpack_require__(40); - -var _parse2 = _interopRequireDefault(_parse); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function isPromise(obj) { - return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && typeof obj.then === 'function'; -} - -/** - * A Promise proxy for the result of PostCSS transformations. - * - * A `LazyResult` instance is returned by {@link Processor#process}. - * - * @example - * const lazy = postcss([cssnext]).process(css); - */ - -var LazyResult = function () { - function LazyResult(processor, css, opts) { - _classCallCheck(this, LazyResult); - - this.stringified = false; - this.processed = false; - - var root = void 0; - if ((typeof css === 'undefined' ? 'undefined' : _typeof(css)) === 'object' && css.type === 'root') { - root = css; - } else if (css instanceof LazyResult || css instanceof _result2.default) { - root = css.root; - if (css.map) { - if (typeof opts.map === 'undefined') opts.map = {}; - if (!opts.map.inline) opts.map.inline = false; - opts.map.prev = css.map; - } - } else { - var parser = _parse2.default; - if (opts.syntax) parser = opts.syntax.parse; - if (opts.parser) parser = opts.parser; - if (parser.parse) parser = parser.parse; - - try { - root = parser(css, opts); - } catch (error) { - this.error = error; - } - } - - this.result = new _result2.default(processor, root, opts); - } - - /** - * Returns a {@link Processor} instance, which will be used - * for CSS transformations. - * @type {Processor} - */ - - - /** - * Processes input CSS through synchronous plugins - * and calls {@link Result#warnings()}. - * - * @return {Warning[]} warnings from plugins - */ - LazyResult.prototype.warnings = function warnings() { - return this.sync().warnings(); - }; - - /** - * Alias for the {@link LazyResult#css} property. - * - * @example - * lazy + '' === lazy.css; - * - * @return {string} output CSS - */ - - - LazyResult.prototype.toString = function toString() { - return this.css; - }; - - /** - * Processes input CSS through synchronous and asynchronous plugins - * and calls `onFulfilled` with a Result instance. If a plugin throws - * an error, the `onRejected` callback will be executed. - * - * It implements standard Promise API. - * - * @param {onFulfilled} onFulfilled - callback will be executed - * when all plugins will finish work - * @param {onRejected} onRejected - callback will be executed on any error - * - * @return {Promise} Promise API to make queue - * - * @example - * postcss([cssnext]).process(css).then(result => { - * console.log(result.css); - * }); - */ - - - LazyResult.prototype.then = function then(onFulfilled, onRejected) { - return this.async().then(onFulfilled, onRejected); - }; - - /** - * Processes input CSS through synchronous and asynchronous plugins - * and calls onRejected for each error thrown in any plugin. - * - * It implements standard Promise API. - * - * @param {onRejected} onRejected - callback will be executed on any error - * - * @return {Promise} Promise API to make queue - * - * @example - * postcss([cssnext]).process(css).then(result => { - * console.log(result.css); - * }).catch(error => { - * console.error(error); - * }); - */ - - - LazyResult.prototype.catch = function _catch(onRejected) { - return this.async().catch(onRejected); - }; - - LazyResult.prototype.handleError = function handleError(error, plugin) { - try { - this.error = error; - if (error.name === 'CssSyntaxError' && !error.plugin) { - error.plugin = plugin.postcssPlugin; - error.setMessage(); - } else if (plugin.postcssVersion) { - var pluginName = plugin.postcssPlugin; - var pluginVer = plugin.postcssVersion; - var runtimeVer = this.result.processor.version; - var a = pluginVer.split('.'); - var b = runtimeVer.split('.'); - - if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) { - (0, _warnOnce2.default)('Your current PostCSS version ' + 'is ' + runtimeVer + ', but ' + pluginName + ' ' + 'uses ' + pluginVer + '. Perhaps this is ' + 'the source of the error below.'); - } - } - } catch (err) { - if (console && console.error) console.error(err); - } - }; - - LazyResult.prototype.asyncTick = function asyncTick(resolve, reject) { - var _this = this; - - if (this.plugin >= this.processor.plugins.length) { - this.processed = true; - return resolve(); - } - - try { - var plugin = this.processor.plugins[this.plugin]; - var promise = this.run(plugin); - this.plugin += 1; - - if (isPromise(promise)) { - promise.then(function () { - _this.asyncTick(resolve, reject); - }).catch(function (error) { - _this.handleError(error, plugin); - _this.processed = true; - reject(error); - }); - } else { - this.asyncTick(resolve, reject); - } - } catch (error) { - this.processed = true; - reject(error); - } - }; - - LazyResult.prototype.async = function async() { - var _this2 = this; - - if (this.processed) { - return new Promise(function (resolve, reject) { - if (_this2.error) { - reject(_this2.error); - } else { - resolve(_this2.stringify()); - } - }); - } - if (this.processing) { - return this.processing; - } - - this.processing = new Promise(function (resolve, reject) { - if (_this2.error) return reject(_this2.error); - _this2.plugin = 0; - _this2.asyncTick(resolve, reject); - }).then(function () { - _this2.processed = true; - return _this2.stringify(); - }); - - return this.processing; - }; - - LazyResult.prototype.sync = function sync() { - if (this.processed) return this.result; - this.processed = true; - - if (this.processing) { - throw new Error('Use process(css).then(cb) to work with async plugins'); - } - - if (this.error) throw this.error; - - for (var _iterator = this.result.processor.plugins, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var plugin = _ref; - - var promise = this.run(plugin); - if (isPromise(promise)) { - throw new Error('Use process(css).then(cb) to work with async plugins'); - } - } - - return this.result; - }; - - LazyResult.prototype.run = function run(plugin) { - this.result.lastPlugin = plugin; - - try { - return plugin(this.result.root, this.result); - } catch (error) { - this.handleError(error, plugin); - throw error; - } - }; - - LazyResult.prototype.stringify = function stringify() { - if (this.stringified) return this.result; - this.stringified = true; - - this.sync(); - - var opts = this.result.opts; - var str = _stringify3.default; - if (opts.syntax) str = opts.syntax.stringify; - if (opts.stringifier) str = opts.stringifier; - if (str.stringify) str = str.stringify; - - var map = new _mapGenerator2.default(str, this.result.root, this.result.opts); - var data = map.generate(); - this.result.css = data[0]; - this.result.map = data[1]; - - return this.result; - }; - - _createClass(LazyResult, [{ - key: 'processor', - get: function get() { - return this.result.processor; - } - - /** - * Options from the {@link Processor#process} call. - * @type {processOptions} - */ - - }, { - key: 'opts', - get: function get() { - return this.result.opts; - } - - /** - * Processes input CSS through synchronous plugins, converts `Root` - * to a CSS string and returns {@link Result#css}. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {string} - * @see Result#css - */ - - }, { - key: 'css', - get: function get() { - return this.stringify().css; - } - - /** - * An alias for the `css` property. Use it with syntaxes - * that generate non-CSS output. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {string} - * @see Result#content - */ - - }, { - key: 'content', - get: function get() { - return this.stringify().content; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#map}. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {SourceMapGenerator} - * @see Result#map - */ - - }, { - key: 'map', - get: function get() { - return this.stringify().map; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#root}. - * - * This property will only work with synchronous plugins. If the processor - * contains any asynchronous plugins it will throw an error. - * - * This is why this method is only for debug purpose, - * you should always use {@link LazyResult#then}. - * - * @type {Root} - * @see Result#root - */ - - }, { - key: 'root', - get: function get() { - return this.sync().root; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#messages}. - * - * This property will only work with synchronous plugins. If the processor - * contains any asynchronous plugins it will throw an error. - * - * This is why this method is only for debug purpose, - * you should always use {@link LazyResult#then}. - * - * @type {Message[]} - * @see Result#messages - */ - - }, { - key: 'messages', - get: function get() { - return this.sync().messages; - } - }]); - - return LazyResult; -}(); - -exports.default = LazyResult; - -/** - * @callback onFulfilled - * @param {Result} result - */ - -/** - * @callback onRejected - * @param {Error} error - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 40 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = parse; - -var _parser = __webpack_require__(41); - -var _parser2 = _interopRequireDefault(_parser); - -var _input = __webpack_require__(19); - -var _input2 = _interopRequireDefault(_input); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function parse(css, opts) { - if (opts && opts.safe) { - throw new Error('Option safe was removed. ' + 'Use parser: require("postcss-safe-parser")'); - } - - var input = new _input2.default(css, opts); - - var parser = new _parser2.default(input); - try { - parser.tokenize(); - parser.loop(); - } catch (e) { - if (e.name === 'CssSyntaxError' && opts && opts.from) { - if (/\.scss$/i.test(opts.from)) { - e.message += '\nYou tried to parse SCSS with ' + 'the standard CSS parser; ' + 'try again with the postcss-scss parser'; - } else if (/\.sass/i.test(opts.from)) { - e.message += '\nYou tried to parse Sass with ' + 'the standard CSS parser; ' + 'try again with the postcss-sass parser'; - } else if (/\.less$/i.test(opts.from)) { - e.message += '\nYou tried to parse Less with ' + 'the standard CSS parser; ' + 'try again with the postcss-less parser'; - } - } - throw e; - } - - return parser.root; -} -module.exports = exports['default']; - - - -/***/ }), -/* 41 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _declaration = __webpack_require__(38); - -var _declaration2 = _interopRequireDefault(_declaration); - -var _tokenize = __webpack_require__(44); - -var _tokenize2 = _interopRequireDefault(_tokenize); - -var _comment = __webpack_require__(17); - -var _comment2 = _interopRequireDefault(_comment); - -var _atRule = __webpack_require__(16); - -var _atRule2 = _interopRequireDefault(_atRule); - -var _root = __webpack_require__(42); - -var _root2 = _interopRequireDefault(_root); - -var _rule = __webpack_require__(9); - -var _rule2 = _interopRequireDefault(_rule); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var Parser = function () { - function Parser(input) { - _classCallCheck(this, Parser); - - this.input = input; - - this.pos = 0; - this.root = new _root2.default(); - this.current = this.root; - this.spaces = ''; - this.semicolon = false; - - this.root.source = { input: input, start: { line: 1, column: 1 } }; - } - - Parser.prototype.tokenize = function tokenize() { - this.tokens = (0, _tokenize2.default)(this.input); - }; - - Parser.prototype.loop = function loop() { - var token = void 0; - while (this.pos < this.tokens.length) { - token = this.tokens[this.pos]; - - switch (token[0]) { - - case 'space': - case ';': - this.spaces += token[1]; - break; - - case '}': - this.end(token); - break; - - case 'comment': - this.comment(token); - break; - - case 'at-word': - this.atrule(token); - break; - - case '{': - this.emptyRule(token); - break; - - default: - this.other(); - break; - } - - this.pos += 1; - } - this.endFile(); - }; - - Parser.prototype.comment = function comment(token) { - var node = new _comment2.default(); - this.init(node, token[2], token[3]); - node.source.end = { line: token[4], column: token[5] }; - - var text = token[1].slice(2, -2); - if (/^\s*$/.test(text)) { - node.text = ''; - node.raws.left = text; - node.raws.right = ''; - } else { - var match = text.match(/^(\s*)([^]*[^\s])(\s*)$/); - node.text = match[2]; - node.raws.left = match[1]; - node.raws.right = match[3]; - } - }; - - Parser.prototype.emptyRule = function emptyRule(token) { - var node = new _rule2.default(); - this.init(node, token[2], token[3]); - node.selector = ''; - node.raws.between = ''; - this.current = node; - }; - - Parser.prototype.other = function other() { - var token = void 0; - var end = false; - var type = null; - var colon = false; - var bracket = null; - var brackets = []; - - var start = this.pos; - while (this.pos < this.tokens.length) { - token = this.tokens[this.pos]; - type = token[0]; - - if (type === '(' || type === '[') { - if (!bracket) bracket = token; - brackets.push(type === '(' ? ')' : ']'); - } else if (brackets.length === 0) { - if (type === ';') { - if (colon) { - this.decl(this.tokens.slice(start, this.pos + 1)); - return; - } else { - break; - } - } else if (type === '{') { - this.rule(this.tokens.slice(start, this.pos + 1)); - return; - } else if (type === '}') { - this.pos -= 1; - end = true; - break; - } else if (type === ':') { - colon = true; - } - } else if (type === brackets[brackets.length - 1]) { - brackets.pop(); - if (brackets.length === 0) bracket = null; - } - - this.pos += 1; - } - if (this.pos === this.tokens.length) { - this.pos -= 1; - end = true; - } - - if (brackets.length > 0) this.unclosedBracket(bracket); - - if (end && colon) { - while (this.pos > start) { - token = this.tokens[this.pos][0]; - if (token !== 'space' && token !== 'comment') break; - this.pos -= 1; - } - this.decl(this.tokens.slice(start, this.pos + 1)); - return; - } - - this.unknownWord(start); - }; - - Parser.prototype.rule = function rule(tokens) { - tokens.pop(); - - var node = new _rule2.default(); - this.init(node, tokens[0][2], tokens[0][3]); - - node.raws.between = this.spacesAndCommentsFromEnd(tokens); - this.raw(node, 'selector', tokens); - this.current = node; - }; - - Parser.prototype.decl = function decl(tokens) { - var node = new _declaration2.default(); - this.init(node); - - var last = tokens[tokens.length - 1]; - if (last[0] === ';') { - this.semicolon = true; - tokens.pop(); - } - if (last[4]) { - node.source.end = { line: last[4], column: last[5] }; - } else { - node.source.end = { line: last[2], column: last[3] }; - } - - while (tokens[0][0] !== 'word') { - node.raws.before += tokens.shift()[1]; - } - node.source.start = { line: tokens[0][2], column: tokens[0][3] }; - - node.prop = ''; - while (tokens.length) { - var type = tokens[0][0]; - if (type === ':' || type === 'space' || type === 'comment') { - break; - } - node.prop += tokens.shift()[1]; - } - - node.raws.between = ''; - - var token = void 0; - while (tokens.length) { - token = tokens.shift(); - - if (token[0] === ':') { - node.raws.between += token[1]; - break; - } else { - node.raws.between += token[1]; - } - } - - if (node.prop[0] === '_' || node.prop[0] === '*') { - node.raws.before += node.prop[0]; - node.prop = node.prop.slice(1); - } - node.raws.between += this.spacesAndCommentsFromStart(tokens); - this.precheckMissedSemicolon(tokens); - - for (var i = tokens.length - 1; i > 0; i--) { - token = tokens[i]; - if (token[1] === '!important') { - node.important = true; - var string = this.stringFrom(tokens, i); - string = this.spacesFromEnd(tokens) + string; - if (string !== ' !important') node.raws.important = string; - break; - } else if (token[1] === 'important') { - var cache = tokens.slice(0); - var str = ''; - for (var j = i; j > 0; j--) { - var _type = cache[j][0]; - if (str.trim().indexOf('!') === 0 && _type !== 'space') { - break; - } - str = cache.pop()[1] + str; - } - if (str.trim().indexOf('!') === 0) { - node.important = true; - node.raws.important = str; - tokens = cache; - } - } - - if (token[0] !== 'space' && token[0] !== 'comment') { - break; - } - } - - this.raw(node, 'value', tokens); - - if (node.value.indexOf(':') !== -1) this.checkMissedSemicolon(tokens); - }; - - Parser.prototype.atrule = function atrule(token) { - var node = new _atRule2.default(); - node.name = token[1].slice(1); - if (node.name === '') { - this.unnamedAtrule(node, token); - } - this.init(node, token[2], token[3]); - - var last = false; - var open = false; - var params = []; - - this.pos += 1; - while (this.pos < this.tokens.length) { - token = this.tokens[this.pos]; - - if (token[0] === ';') { - node.source.end = { line: token[2], column: token[3] }; - this.semicolon = true; - break; - } else if (token[0] === '{') { - open = true; - break; - } else if (token[0] === '}') { - this.end(token); - break; - } else { - params.push(token); - } - - this.pos += 1; - } - if (this.pos === this.tokens.length) { - last = true; - } - - node.raws.between = this.spacesAndCommentsFromEnd(params); - if (params.length) { - node.raws.afterName = this.spacesAndCommentsFromStart(params); - this.raw(node, 'params', params); - if (last) { - token = params[params.length - 1]; - node.source.end = { line: token[4], column: token[5] }; - this.spaces = node.raws.between; - node.raws.between = ''; - } - } else { - node.raws.afterName = ''; - node.params = ''; - } - - if (open) { - node.nodes = []; - this.current = node; - } - }; - - Parser.prototype.end = function end(token) { - if (this.current.nodes && this.current.nodes.length) { - this.current.raws.semicolon = this.semicolon; - } - this.semicolon = false; - - this.current.raws.after = (this.current.raws.after || '') + this.spaces; - this.spaces = ''; - - if (this.current.parent) { - this.current.source.end = { line: token[2], column: token[3] }; - this.current = this.current.parent; - } else { - this.unexpectedClose(token); - } - }; - - Parser.prototype.endFile = function endFile() { - if (this.current.parent) this.unclosedBlock(); - if (this.current.nodes && this.current.nodes.length) { - this.current.raws.semicolon = this.semicolon; - } - this.current.raws.after = (this.current.raws.after || '') + this.spaces; - }; - - // Helpers - - Parser.prototype.init = function init(node, line, column) { - this.current.push(node); - - node.source = { start: { line: line, column: column }, input: this.input }; - node.raws.before = this.spaces; - this.spaces = ''; - if (node.type !== 'comment') this.semicolon = false; - }; - - Parser.prototype.raw = function raw(node, prop, tokens) { - var token = void 0, - type = void 0; - var length = tokens.length; - var value = ''; - var clean = true; - for (var i = 0; i < length; i += 1) { - token = tokens[i]; - type = token[0]; - if (type === 'comment' || type === 'space' && i === length - 1) { - clean = false; - } else { - value += token[1]; - } - } - if (!clean) { - var raw = tokens.reduce(function (all, i) { - return all + i[1]; - }, ''); - node.raws[prop] = { value: value, raw: raw }; - } - node[prop] = value; - }; - - Parser.prototype.spacesAndCommentsFromEnd = function spacesAndCommentsFromEnd(tokens) { - var lastTokenType = void 0; - var spaces = ''; - while (tokens.length) { - lastTokenType = tokens[tokens.length - 1][0]; - if (lastTokenType !== 'space' && lastTokenType !== 'comment') break; - spaces = tokens.pop()[1] + spaces; - } - return spaces; - }; - - Parser.prototype.spacesAndCommentsFromStart = function spacesAndCommentsFromStart(tokens) { - var next = void 0; - var spaces = ''; - while (tokens.length) { - next = tokens[0][0]; - if (next !== 'space' && next !== 'comment') break; - spaces += tokens.shift()[1]; - } - return spaces; - }; - - Parser.prototype.spacesFromEnd = function spacesFromEnd(tokens) { - var lastTokenType = void 0; - var spaces = ''; - while (tokens.length) { - lastTokenType = tokens[tokens.length - 1][0]; - if (lastTokenType !== 'space') break; - spaces = tokens.pop()[1] + spaces; - } - return spaces; - }; - - Parser.prototype.stringFrom = function stringFrom(tokens, from) { - var result = ''; - for (var i = from; i < tokens.length; i++) { - result += tokens[i][1]; - } - tokens.splice(from, tokens.length - from); - return result; - }; - - Parser.prototype.colon = function colon(tokens) { - var brackets = 0; - var token = void 0, - type = void 0, - prev = void 0; - for (var i = 0; i < tokens.length; i++) { - token = tokens[i]; - type = token[0]; - - if (type === '(') { - brackets += 1; - } else if (type === ')') { - brackets -= 1; - } else if (brackets === 0 && type === ':') { - if (!prev) { - this.doubleColon(token); - } else if (prev[0] === 'word' && prev[1] === 'progid') { - continue; - } else { - return i; - } - } - - prev = token; - } - return false; - }; - - // Errors - - Parser.prototype.unclosedBracket = function unclosedBracket(bracket) { - throw this.input.error('Unclosed bracket', bracket[2], bracket[3]); - }; - - Parser.prototype.unknownWord = function unknownWord(start) { - var token = this.tokens[start]; - throw this.input.error('Unknown word', token[2], token[3]); - }; - - Parser.prototype.unexpectedClose = function unexpectedClose(token) { - throw this.input.error('Unexpected }', token[2], token[3]); - }; - - Parser.prototype.unclosedBlock = function unclosedBlock() { - var pos = this.current.source.start; - throw this.input.error('Unclosed block', pos.line, pos.column); - }; - - Parser.prototype.doubleColon = function doubleColon(token) { - throw this.input.error('Double colon', token[2], token[3]); - }; - - Parser.prototype.unnamedAtrule = function unnamedAtrule(node, token) { - throw this.input.error('At-rule without name', token[2], token[3]); - }; - - Parser.prototype.precheckMissedSemicolon = function precheckMissedSemicolon(tokens) { - // Hook for Safe Parser - tokens; - }; - - Parser.prototype.checkMissedSemicolon = function checkMissedSemicolon(tokens) { - var colon = this.colon(tokens); - if (colon === false) return; - - var founded = 0; - var token = void 0; - for (var j = colon - 1; j >= 0; j--) { - token = tokens[j]; - if (token[0] !== 'space') { - founded += 1; - if (founded === 2) break; - } - } - throw this.input.error('Missed semicolon', token[2], token[3]); - }; - - return Parser; -}(); - -exports.default = Parser; -module.exports = exports['default']; - - - -/***/ }), -/* 42 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(18); - -var _container2 = _interopRequireDefault(_container); - -var _warnOnce = __webpack_require__(3); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS file and contains all its parsed nodes. - * - * @extends Container - * - * @example - * const root = postcss.parse('a{color:black} b{z-index:2}'); - * root.type //=> 'root' - * root.nodes.length //=> 2 - */ -var Root = function (_Container) { - _inherits(Root, _Container); - - function Root(defaults) { - _classCallCheck(this, Root); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'root'; - if (!_this.nodes) _this.nodes = []; - return _this; - } - - Root.prototype.removeChild = function removeChild(child) { - child = this.index(child); - - if (child === 0 && this.nodes.length > 1) { - this.nodes[1].raws.before = this.nodes[child].raws.before; - } - - return _Container.prototype.removeChild.call(this, child); - }; - - Root.prototype.normalize = function normalize(child, sample, type) { - var nodes = _Container.prototype.normalize.call(this, child); - - if (sample) { - if (type === 'prepend') { - if (this.nodes.length > 1) { - sample.raws.before = this.nodes[1].raws.before; - } else { - delete sample.raws.before; - } - } else if (this.first !== sample) { - for (var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var node = _ref; - - node.raws.before = sample.raws.before; - } - } - } - - return nodes; - }; - - /** - * Returns a {@link Result} instance representing the root’s CSS. - * - * @param {processOptions} [opts] - options with only `to` and `map` keys - * - * @return {Result} result with current root’s CSS - * - * @example - * const root1 = postcss.parse(css1, { from: 'a.css' }); - * const root2 = postcss.parse(css2, { from: 'b.css' }); - * root1.append(root2); - * const result = root1.toResult({ to: 'all.css', map: true }); - */ - - - Root.prototype.toResult = function toResult() { - var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var LazyResult = __webpack_require__(39); - var Processor = __webpack_require__(121); - - var lazy = new LazyResult(new Processor(), this, opts); - return lazy.stringify(); - }; - - Root.prototype.remove = function remove(child) { - (0, _warnOnce2.default)('Root#remove is deprecated. Use Root#removeChild'); - this.removeChild(child); - }; - - Root.prototype.prevMap = function prevMap() { - (0, _warnOnce2.default)('Root#prevMap is deprecated. Use Root#source.input.map'); - return this.source.input.map; - }; - - /** - * @memberof Root# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `after`: the space symbols after the last child to the end of file. - * * `semicolon`: is the last child has an (optional) semicolon. - * - * @example - * postcss.parse('a {}\n').raws //=> { after: '\n' } - * postcss.parse('a {}').raws //=> { after: '' } - */ - - return Root; -}(_container2.default); - -exports.default = Root; -module.exports = exports['default']; - - - -/***/ }), -/* 43 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = stringify; - -var _stringifier = __webpack_require__(21); - -var _stringifier2 = _interopRequireDefault(_stringifier); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function stringify(node, builder) { - var str = new _stringifier2.default(builder); - str.stringify(node); -} -module.exports = exports['default']; - - - -/***/ }), -/* 44 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = tokenize; -var SINGLE_QUOTE = 39; -var DOUBLE_QUOTE = 34; -var BACKSLASH = 92; -var SLASH = 47; -var NEWLINE = 10; -var SPACE = 32; -var FEED = 12; -var TAB = 9; -var CR = 13; -var OPEN_SQUARE = 91; -var CLOSE_SQUARE = 93; -var OPEN_PARENTHESES = 40; -var CLOSE_PARENTHESES = 41; -var OPEN_CURLY = 123; -var CLOSE_CURLY = 125; -var SEMICOLON = 59; -var ASTERISK = 42; -var COLON = 58; -var AT = 64; - -var RE_AT_END = /[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g; -var RE_WORD_END = /[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g; -var RE_BAD_BRACKET = /.[\\\/\("'\n]/; - -function tokenize(input) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var tokens = []; - var css = input.css.valueOf(); - - var ignore = options.ignoreErrors; - - var code = void 0, - next = void 0, - quote = void 0, - lines = void 0, - last = void 0, - content = void 0, - escape = void 0, - nextLine = void 0, - nextOffset = void 0, - escaped = void 0, - escapePos = void 0, - prev = void 0, - n = void 0; - - var length = css.length; - var offset = -1; - var line = 1; - var pos = 0; - - function unclosed(what) { - throw input.error('Unclosed ' + what, line, pos - offset); - } - - while (pos < length) { - code = css.charCodeAt(pos); - - if (code === NEWLINE || code === FEED || code === CR && css.charCodeAt(pos + 1) !== NEWLINE) { - offset = pos; - line += 1; - } - - switch (code) { - case NEWLINE: - case SPACE: - case TAB: - case CR: - case FEED: - next = pos; - do { - next += 1; - code = css.charCodeAt(next); - if (code === NEWLINE) { - offset = next; - line += 1; - } - } while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED); - - tokens.push(['space', css.slice(pos, next)]); - pos = next - 1; - break; - - case OPEN_SQUARE: - tokens.push(['[', '[', line, pos - offset]); - break; - - case CLOSE_SQUARE: - tokens.push([']', ']', line, pos - offset]); - break; - - case OPEN_CURLY: - tokens.push(['{', '{', line, pos - offset]); - break; - - case CLOSE_CURLY: - tokens.push(['}', '}', line, pos - offset]); - break; - - case COLON: - tokens.push([':', ':', line, pos - offset]); - break; - - case SEMICOLON: - tokens.push([';', ';', line, pos - offset]); - break; - - case OPEN_PARENTHESES: - prev = tokens.length ? tokens[tokens.length - 1][1] : ''; - n = css.charCodeAt(pos + 1); - if (prev === 'url' && n !== SINGLE_QUOTE && n !== DOUBLE_QUOTE && n !== SPACE && n !== NEWLINE && n !== TAB && n !== FEED && n !== CR) { - next = pos; - do { - escaped = false; - next = css.indexOf(')', next + 1); - if (next === -1) { - if (ignore) { - next = pos; - break; - } else { - unclosed('bracket'); - } - } - escapePos = next; - while (css.charCodeAt(escapePos - 1) === BACKSLASH) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - - tokens.push(['brackets', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - } else { - next = css.indexOf(')', pos + 1); - content = css.slice(pos, next + 1); - - if (next === -1 || RE_BAD_BRACKET.test(content)) { - tokens.push(['(', '(', line, pos - offset]); - } else { - tokens.push(['brackets', content, line, pos - offset, line, next - offset]); - pos = next; - } - } - - break; - - case CLOSE_PARENTHESES: - tokens.push([')', ')', line, pos - offset]); - break; - - case SINGLE_QUOTE: - case DOUBLE_QUOTE: - quote = code === SINGLE_QUOTE ? '\'' : '"'; - next = pos; - do { - escaped = false; - next = css.indexOf(quote, next + 1); - if (next === -1) { - if (ignore) { - next = pos + 1; - break; - } else { - unclosed('string'); - } - } - escapePos = next; - while (css.charCodeAt(escapePos - 1) === BACKSLASH) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - tokens.push(['string', css.slice(pos, next + 1), line, pos - offset, nextLine, next - nextOffset]); - - offset = nextOffset; - line = nextLine; - pos = next; - break; - - case AT: - RE_AT_END.lastIndex = pos + 1; - RE_AT_END.test(css); - if (RE_AT_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_AT_END.lastIndex - 2; - } - tokens.push(['at-word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - break; - - case BACKSLASH: - next = pos; - escape = true; - while (css.charCodeAt(next + 1) === BACKSLASH) { - next += 1; - escape = !escape; - } - code = css.charCodeAt(next + 1); - if (escape && code !== SLASH && code !== SPACE && code !== NEWLINE && code !== TAB && code !== CR && code !== FEED) { - next += 1; - } - tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - break; - - default: - if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) { - next = css.indexOf('*/', pos + 2) + 1; - if (next === 0) { - if (ignore) { - next = css.length; - } else { - unclosed('comment'); - } - } - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - tokens.push(['comment', content, line, pos - offset, nextLine, next - nextOffset]); - - offset = nextOffset; - line = nextLine; - pos = next; - } else { - RE_WORD_END.lastIndex = pos + 1; - RE_WORD_END.test(css); - if (RE_WORD_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_WORD_END.lastIndex - 2; - } - - tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - } - - break; - } - - pos++; - } - - return tokens; -} -module.exports = exports['default']; - - - -/***/ }), -/* 45 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _Node = __webpack_require__(46); - -var _Node2 = _interopRequireDefault(_Node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function Container(opts) { - var _this = this; - - this.constructor(opts); - - this.nodes = opts.nodes; - - if (this.after === undefined) { - this.after = this.nodes.length > 0 ? this.nodes[this.nodes.length - 1].after : ''; - } - - if (this.before === undefined) { - this.before = this.nodes.length > 0 ? this.nodes[0].before : ''; - } - - if (this.sourceIndex === undefined) { - this.sourceIndex = this.before.length; - } - - this.nodes.forEach(function (node) { - node.parent = _this; // eslint-disable-line no-param-reassign - }); -} /** - * A node that contains other nodes and support traversing over them - */ - -Container.prototype = Object.create(_Node2.default.prototype); -Container.constructor = _Node2.default; - -/** - * Iterate over descendant nodes of the node - * - * @param {RegExp|string} filter - Optional. Only nodes with node.type that - * satisfies the filter will be traversed over - * @param {function} cb - callback to call on each node. Takes theese params: - * node - the node being processed, i - it's index, nodes - the array - * of all nodes - * If false is returned, the iteration breaks - * - * @return (boolean) false, if the iteration was broken - */ -Container.prototype.walk = function walk(filter, cb) { - var hasFilter = typeof filter === 'string' || filter instanceof RegExp; - var callback = hasFilter ? cb : filter; - var filterReg = typeof filter === 'string' ? new RegExp(filter) : filter; - - for (var i = 0; i < this.nodes.length; i++) { - var node = this.nodes[i]; - var filtered = hasFilter ? filterReg.test(node.type) : true; - if (filtered && callback && callback(node, i, this.nodes) === false) { - return false; - } - if (node.nodes && node.walk(filter, cb) === false) { - return false; - } - } - return true; -}; - -/** - * Iterate over immediate children of the node - * - * @param {function} cb - callback to call on each node. Takes theese params: - * node - the node being processed, i - it's index, nodes - the array - * of all nodes - * If false is returned, the iteration breaks - * - * @return (boolean) false, if the iteration was broken - */ -Container.prototype.each = function each() { - var cb = arguments.length <= 0 || arguments[0] === undefined ? function () {} : arguments[0]; - - for (var i = 0; i < this.nodes.length; i++) { - var node = this.nodes[i]; - if (cb(node, i, this.nodes) === false) { - return false; - } - } - return true; -}; - -exports.default = Container; - -/***/ }), -/* 46 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -/** - * A very generic node. Pretty much any element of a media query - */ - -function Node(opts) { - this.after = opts.after; - this.before = opts.before; - this.type = opts.type; - this.value = opts.value; - this.sourceIndex = opts.sourceIndex; -} - -exports.default = Node; - -/***/ }), -/* 47 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _namespace = __webpack_require__(10); - -var _namespace2 = _interopRequireDefault(_namespace); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Attribute = function (_Namespace) { - _inherits(Attribute, _Namespace); - - function Attribute(opts) { - _classCallCheck(this, Attribute); - - var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); - - _this.type = _types.ATTRIBUTE; - _this.raws = {}; - return _this; - } - - Attribute.prototype.toString = function toString() { - var selector = [this.spaces.before, '[', this.ns, this.attribute]; - - if (this.operator) { - selector.push(this.operator); - } - if (this.value) { - selector.push(this.value); - } - if (this.raws.insensitive) { - selector.push(this.raws.insensitive); - } else if (this.insensitive) { - selector.push(' i'); - } - selector.push(']'); - return selector.concat(this.spaces.after).join(''); - }; - - return Attribute; -}(_namespace2.default); - -exports.default = Attribute; -module.exports = exports['default']; - -/***/ }), -/* 48 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _namespace = __webpack_require__(10); - -var _namespace2 = _interopRequireDefault(_namespace); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ClassName = function (_Namespace) { - _inherits(ClassName, _Namespace); - - function ClassName(opts) { - _classCallCheck(this, ClassName); - - var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); - - _this.type = _types.CLASS; - return _this; - } - - ClassName.prototype.toString = function toString() { - return [this.spaces.before, this.ns, String('.' + this.value), this.spaces.after].join(''); - }; - - return ClassName; -}(_namespace2.default); - -exports.default = ClassName; -module.exports = exports['default']; - -/***/ }), -/* 49 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Combinator = function (_Node) { - _inherits(Combinator, _Node); - - function Combinator(opts) { - _classCallCheck(this, Combinator); - - var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); - - _this.type = _types.COMBINATOR; - return _this; - } - - return Combinator; -}(_node2.default); - -exports.default = Combinator; -module.exports = exports['default']; - -/***/ }), -/* 50 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Comment = function (_Node) { - _inherits(Comment, _Node); - - function Comment(opts) { - _classCallCheck(this, Comment); - - var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); - - _this.type = _types.COMMENT; - return _this; - } - - return Comment; -}(_node2.default); - -exports.default = Comment; -module.exports = exports['default']; - -/***/ }), -/* 51 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _namespace = __webpack_require__(10); - -var _namespace2 = _interopRequireDefault(_namespace); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ID = function (_Namespace) { - _inherits(ID, _Namespace); - - function ID(opts) { - _classCallCheck(this, ID); - - var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); - - _this.type = _types.ID; - return _this; - } - - ID.prototype.toString = function toString() { - return [this.spaces.before, this.ns, String('#' + this.value), this.spaces.after].join(''); - }; - - return ID; -}(_namespace2.default); - -exports.default = ID; -module.exports = exports['default']; - -/***/ }), -/* 52 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Nesting = function (_Node) { - _inherits(Nesting, _Node); - - function Nesting(opts) { - _classCallCheck(this, Nesting); - - var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); - - _this.type = _types.NESTING; - _this.value = '&'; - return _this; - } - - return Nesting; -}(_node2.default); - -exports.default = Nesting; -module.exports = exports['default']; - -/***/ }), -/* 53 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(22); - -var _container2 = _interopRequireDefault(_container); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Pseudo = function (_Container) { - _inherits(Pseudo, _Container); - - function Pseudo(opts) { - _classCallCheck(this, Pseudo); - - var _this = _possibleConstructorReturn(this, _Container.call(this, opts)); - - _this.type = _types.PSEUDO; - return _this; - } - - Pseudo.prototype.toString = function toString() { - var params = this.length ? '(' + this.map(String).join(',') + ')' : ''; - return [this.spaces.before, String(this.value), params, this.spaces.after].join(''); - }; - - return Pseudo; -}(_container2.default); - -exports.default = Pseudo; -module.exports = exports['default']; - -/***/ }), -/* 54 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(22); - -var _container2 = _interopRequireDefault(_container); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Root = function (_Container) { - _inherits(Root, _Container); - - function Root(opts) { - _classCallCheck(this, Root); - - var _this = _possibleConstructorReturn(this, _Container.call(this, opts)); - - _this.type = _types.ROOT; - return _this; - } - - Root.prototype.toString = function toString() { - var str = this.reduce(function (memo, selector) { - var sel = String(selector); - return sel ? memo + sel + ',' : ''; - }, '').slice(0, -1); - return this.trailingComma ? str + ',' : str; - }; - - return Root; -}(_container2.default); - -exports.default = Root; -module.exports = exports['default']; - -/***/ }), -/* 55 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(22); - -var _container2 = _interopRequireDefault(_container); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Selector = function (_Container) { - _inherits(Selector, _Container); - - function Selector(opts) { - _classCallCheck(this, Selector); - - var _this = _possibleConstructorReturn(this, _Container.call(this, opts)); - - _this.type = _types.SELECTOR; - return _this; - } - - return Selector; -}(_container2.default); - -exports.default = Selector; -module.exports = exports['default']; - -/***/ }), -/* 56 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var String = function (_Node) { - _inherits(String, _Node); - - function String(opts) { - _classCallCheck(this, String); - - var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); - - _this.type = _types.STRING; - return _this; - } - - return String; -}(_node2.default); - -exports.default = String; -module.exports = exports['default']; - -/***/ }), -/* 57 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _namespace = __webpack_require__(10); - -var _namespace2 = _interopRequireDefault(_namespace); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Tag = function (_Namespace) { - _inherits(Tag, _Namespace); - - function Tag(opts) { - _classCallCheck(this, Tag); - - var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); - - _this.type = _types.TAG; - return _this; - } - - return Tag; -}(_namespace2.default); - -exports.default = Tag; -module.exports = exports['default']; - -/***/ }), -/* 58 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _namespace = __webpack_require__(10); - -var _namespace2 = _interopRequireDefault(_namespace); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Universal = function (_Namespace) { - _inherits(Universal, _Namespace); - - function Universal(opts) { - _classCallCheck(this, Universal); - - var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); - - _this.type = _types.UNIVERSAL; - _this.value = '*'; - return _this; - } - - return Universal; -}(_namespace2.default); - -exports.default = Universal; -module.exports = exports['default']; - -/***/ }), -/* 59 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); - -class AtWord extends Container { - constructor (opts) { - super(opts); - this.type = 'atword'; - } - - toString () { - let quote = this.quoted ? this.raws.quote : ''; - return [ - this.raws.before, - '@', - // we can't use String() here because it'll try using itself - // as the constructor - String.prototype.toString.call(this.value), - this.raws.after - ].join(''); - } -} - -Container.registerWalker(AtWord); - -module.exports = AtWord; - - -/***/ }), -/* 60 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(4); - -class Colon extends Node { - constructor (opts) { - super(opts); - this.type = 'colon'; - } -} - -Container.registerWalker(Colon); - -module.exports = Colon; - - -/***/ }), -/* 61 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(4); - -class Comma extends Node { - constructor (opts) { - super(opts); - this.type = 'comma'; - } -} - -Container.registerWalker(Comma); - -module.exports = Comma; - - -/***/ }), -/* 62 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(4); - -class Comment extends Node { - constructor (opts) { - super(opts); - this.type = 'comment'; - } - - toString () { - return [ - this.raws.before, - '/*', - String(this.value), - '*/', - this.raws.after - ].join(''); - } -} - -Container.registerWalker(Comment); - -module.exports = Comment; - - -/***/ }), -/* 63 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); - -class FunctionNode extends Container { - constructor (opts) { - super(opts); - this.type = 'func'; - // start off at -1 so we know there haven't been any parens added - this.unbalanced = -1; - } -} - -Container.registerWalker(FunctionNode); - -module.exports = FunctionNode; - - -/***/ }), -/* 64 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(4); - -class NumberNode extends Node { - constructor (opts) { - super(opts); - this.type = 'number'; - this.unit = opts.unit || ''; - } - - toString () { - return [ - this.raws.before, - String(this.value), - this.unit, - this.raws.after - ].join(''); - } -} - -Container.registerWalker(NumberNode); - -module.exports = NumberNode; - - -/***/ }), -/* 65 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(4); - -class Operator extends Node { - constructor (opts) { - super(opts); - this.type = 'operator'; - } -} - -Container.registerWalker(Operator); - -module.exports = Operator; - - -/***/ }), -/* 66 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(4); - -class Parenthesis extends Node { - constructor (opts) { - super(opts); - this.type = 'paren'; - this.parenType = ''; - } -} - -Container.registerWalker(Parenthesis); - -module.exports = Parenthesis; - - -/***/ }), -/* 67 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(4); - -class StringNode extends Node { - constructor (opts) { - super(opts); - this.type = 'string'; - } - - toString () { - let quote = this.quoted ? this.raws.quote : ''; - return [ - this.raws.before, - quote, - // we can't use String() here because it'll try using itself - // as the constructor - this.value + '', - quote, - this.raws.after - ].join(''); - } -} - -Container.registerWalker(StringNode); - -module.exports = StringNode; - - -/***/ }), -/* 68 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); - -module.exports = class Value extends Container { - constructor (opts) { - super(opts); - this.type = 'value'; - this.unbalanced = 0; - } -}; - - -/***/ }), -/* 69 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(4); - -class Word extends Node { - constructor (opts) { - super(opts); - this.type = 'word'; - } -} - -Container.registerWalker(Word); - -module.exports = Word; - - -/***/ }), -/* 70 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - exports.__esModule = true; var _supportsColor = __webpack_require__(83); var _supportsColor2 = _interopRequireDefault(_supportsColor); -var _chalk = __webpack_require__(78); +var _chalk = __webpack_require__(38); var _chalk2 = _interopRequireDefault(_chalk); -var _terminalHighlight = __webpack_require__(146); +var _terminalHighlight = __webpack_require__(130); var _terminalHighlight2 = _interopRequireDefault(_terminalHighlight); @@ -12735,7 +10037,7 @@ module.exports = exports['default']; /***/ }), -/* 71 */ +/* 40 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12743,7 +10045,7 @@ module.exports = exports['default']; exports.__esModule = true; -var _node = __webpack_require__(26); +var _node = __webpack_require__(19); var _node2 = _interopRequireDefault(_node); @@ -12843,7 +10145,7 @@ module.exports = exports['default']; /***/ }), -/* 72 */ +/* 41 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12855,19 +10157,19 @@ var _createClass = function () { function defineProperties(target, props) { for var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; -var _mapGenerator = __webpack_require__(142); +var _mapGenerator = __webpack_require__(126); var _mapGenerator2 = _interopRequireDefault(_mapGenerator); -var _stringify2 = __webpack_require__(76); +var _stringify2 = __webpack_require__(45); var _stringify3 = _interopRequireDefault(_stringify2); -var _result = __webpack_require__(145); +var _result = __webpack_require__(129); var _result2 = _interopRequireDefault(_result); -var _parse = __webpack_require__(73); +var _parse = __webpack_require__(42); var _parse2 = _interopRequireDefault(_parse); @@ -13278,7 +10580,7 @@ module.exports = exports['default']; /***/ }), -/* 73 */ +/* 42 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13287,11 +10589,11 @@ module.exports = exports['default']; exports.__esModule = true; exports.default = parse; -var _parser = __webpack_require__(74); +var _parser = __webpack_require__(43); var _parser2 = _interopRequireDefault(_parser); -var _input = __webpack_require__(25); +var _input = __webpack_require__(18); var _input2 = _interopRequireDefault(_input); @@ -13326,7 +10628,7 @@ module.exports = exports['default']; /***/ }), -/* 74 */ +/* 43 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13334,27 +10636,27 @@ module.exports = exports['default']; exports.__esModule = true; -var _declaration = __webpack_require__(71); +var _declaration = __webpack_require__(40); var _declaration2 = _interopRequireDefault(_declaration); -var _tokenize = __webpack_require__(77); +var _tokenize = __webpack_require__(46); var _tokenize2 = _interopRequireDefault(_tokenize); -var _comment = __webpack_require__(24); +var _comment = __webpack_require__(17); var _comment2 = _interopRequireDefault(_comment); -var _atRule = __webpack_require__(23); +var _atRule = __webpack_require__(16); var _atRule2 = _interopRequireDefault(_atRule); -var _root = __webpack_require__(75); +var _root = __webpack_require__(44); var _root2 = _interopRequireDefault(_root); -var _rule = __webpack_require__(27); +var _rule = __webpack_require__(20); var _rule2 = _interopRequireDefault(_rule); @@ -13855,7 +11157,7 @@ module.exports = exports['default']; /***/ }), -/* 75 */ +/* 44 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13959,8 +11261,8 @@ var Root = function (_Container) { Root.prototype.toResult = function toResult() { var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var LazyResult = __webpack_require__(72); - var Processor = __webpack_require__(144); + var LazyResult = __webpack_require__(41); + var Processor = __webpack_require__(128); var lazy = new LazyResult(new Processor(), this, opts); return lazy.stringify(); @@ -13991,7 +11293,7 @@ module.exports = exports['default']; /***/ }), -/* 76 */ +/* 45 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14000,7 +11302,7 @@ module.exports = exports['default']; exports.__esModule = true; exports.default = stringify; -var _stringifier = __webpack_require__(28); +var _stringifier = __webpack_require__(21); var _stringifier2 = _interopRequireDefault(_stringifier); @@ -14015,7 +11317,7 @@ module.exports = exports['default']; /***/ }), -/* 77 */ +/* 46 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14318,6 +11620,2704 @@ module.exports = exports['default']; +/***/ }), +/* 47 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _namespace = __webpack_require__(9); + +var _namespace2 = _interopRequireDefault(_namespace); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Attribute = function (_Namespace) { + _inherits(Attribute, _Namespace); + + function Attribute(opts) { + _classCallCheck(this, Attribute); + + var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); + + _this.type = _types.ATTRIBUTE; + _this.raws = {}; + return _this; + } + + Attribute.prototype.toString = function toString() { + var selector = [this.spaces.before, '[', this.ns, this.attribute]; + + if (this.operator) { + selector.push(this.operator); + } + if (this.value) { + selector.push(this.value); + } + if (this.raws.insensitive) { + selector.push(this.raws.insensitive); + } else if (this.insensitive) { + selector.push(' i'); + } + selector.push(']'); + return selector.concat(this.spaces.after).join(''); + }; + + return Attribute; +}(_namespace2.default); + +exports.default = Attribute; +module.exports = exports['default']; + +/***/ }), +/* 48 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _namespace = __webpack_require__(9); + +var _namespace2 = _interopRequireDefault(_namespace); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ClassName = function (_Namespace) { + _inherits(ClassName, _Namespace); + + function ClassName(opts) { + _classCallCheck(this, ClassName); + + var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); + + _this.type = _types.CLASS; + return _this; + } + + ClassName.prototype.toString = function toString() { + return [this.spaces.before, this.ns, String('.' + this.value), this.spaces.after].join(''); + }; + + return ClassName; +}(_namespace2.default); + +exports.default = ClassName; +module.exports = exports['default']; + +/***/ }), +/* 49 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _node = __webpack_require__(6); + +var _node2 = _interopRequireDefault(_node); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Combinator = function (_Node) { + _inherits(Combinator, _Node); + + function Combinator(opts) { + _classCallCheck(this, Combinator); + + var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); + + _this.type = _types.COMBINATOR; + return _this; + } + + return Combinator; +}(_node2.default); + +exports.default = Combinator; +module.exports = exports['default']; + +/***/ }), +/* 50 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _node = __webpack_require__(6); + +var _node2 = _interopRequireDefault(_node); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Comment = function (_Node) { + _inherits(Comment, _Node); + + function Comment(opts) { + _classCallCheck(this, Comment); + + var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); + + _this.type = _types.COMMENT; + return _this; + } + + return Comment; +}(_node2.default); + +exports.default = Comment; +module.exports = exports['default']; + +/***/ }), +/* 51 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _namespace = __webpack_require__(9); + +var _namespace2 = _interopRequireDefault(_namespace); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ID = function (_Namespace) { + _inherits(ID, _Namespace); + + function ID(opts) { + _classCallCheck(this, ID); + + var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); + + _this.type = _types.ID; + return _this; + } + + ID.prototype.toString = function toString() { + return [this.spaces.before, this.ns, String('#' + this.value), this.spaces.after].join(''); + }; + + return ID; +}(_namespace2.default); + +exports.default = ID; +module.exports = exports['default']; + +/***/ }), +/* 52 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _node = __webpack_require__(6); + +var _node2 = _interopRequireDefault(_node); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Nesting = function (_Node) { + _inherits(Nesting, _Node); + + function Nesting(opts) { + _classCallCheck(this, Nesting); + + var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); + + _this.type = _types.NESTING; + _this.value = '&'; + return _this; + } + + return Nesting; +}(_node2.default); + +exports.default = Nesting; +module.exports = exports['default']; + +/***/ }), +/* 53 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _container = __webpack_require__(22); + +var _container2 = _interopRequireDefault(_container); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Pseudo = function (_Container) { + _inherits(Pseudo, _Container); + + function Pseudo(opts) { + _classCallCheck(this, Pseudo); + + var _this = _possibleConstructorReturn(this, _Container.call(this, opts)); + + _this.type = _types.PSEUDO; + return _this; + } + + Pseudo.prototype.toString = function toString() { + var params = this.length ? '(' + this.map(String).join(',') + ')' : ''; + return [this.spaces.before, String(this.value), params, this.spaces.after].join(''); + }; + + return Pseudo; +}(_container2.default); + +exports.default = Pseudo; +module.exports = exports['default']; + +/***/ }), +/* 54 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _container = __webpack_require__(22); + +var _container2 = _interopRequireDefault(_container); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Root = function (_Container) { + _inherits(Root, _Container); + + function Root(opts) { + _classCallCheck(this, Root); + + var _this = _possibleConstructorReturn(this, _Container.call(this, opts)); + + _this.type = _types.ROOT; + return _this; + } + + Root.prototype.toString = function toString() { + var str = this.reduce(function (memo, selector) { + var sel = String(selector); + return sel ? memo + sel + ',' : ''; + }, '').slice(0, -1); + return this.trailingComma ? str + ',' : str; + }; + + return Root; +}(_container2.default); + +exports.default = Root; +module.exports = exports['default']; + +/***/ }), +/* 55 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _container = __webpack_require__(22); + +var _container2 = _interopRequireDefault(_container); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Selector = function (_Container) { + _inherits(Selector, _Container); + + function Selector(opts) { + _classCallCheck(this, Selector); + + var _this = _possibleConstructorReturn(this, _Container.call(this, opts)); + + _this.type = _types.SELECTOR; + return _this; + } + + return Selector; +}(_container2.default); + +exports.default = Selector; +module.exports = exports['default']; + +/***/ }), +/* 56 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _node = __webpack_require__(6); + +var _node2 = _interopRequireDefault(_node); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var String = function (_Node) { + _inherits(String, _Node); + + function String(opts) { + _classCallCheck(this, String); + + var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); + + _this.type = _types.STRING; + return _this; + } + + return String; +}(_node2.default); + +exports.default = String; +module.exports = exports['default']; + +/***/ }), +/* 57 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _namespace = __webpack_require__(9); + +var _namespace2 = _interopRequireDefault(_namespace); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Tag = function (_Namespace) { + _inherits(Tag, _Namespace); + + function Tag(opts) { + _classCallCheck(this, Tag); + + var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); + + _this.type = _types.TAG; + return _this; + } + + return Tag; +}(_namespace2.default); + +exports.default = Tag; +module.exports = exports['default']; + +/***/ }), +/* 58 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _namespace = __webpack_require__(9); + +var _namespace2 = _interopRequireDefault(_namespace); + +var _types = __webpack_require__(0); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Universal = function (_Namespace) { + _inherits(Universal, _Namespace); + + function Universal(opts) { + _classCallCheck(this, Universal); + + var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); + + _this.type = _types.UNIVERSAL; + _this.value = '*'; + return _this; + } + + return Universal; +}(_namespace2.default); + +exports.default = Universal; +module.exports = exports['default']; + +/***/ }), +/* 59 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const Container = __webpack_require__(1); + +class AtWord extends Container { + constructor (opts) { + super(opts); + this.type = 'atword'; + } + + toString () { + let quote = this.quoted ? this.raws.quote : ''; + return [ + this.raws.before, + '@', + // we can't use String() here because it'll try using itself + // as the constructor + String.prototype.toString.call(this.value), + this.raws.after + ].join(''); + } +} + +Container.registerWalker(AtWord); + +module.exports = AtWord; + + +/***/ }), +/* 60 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const Container = __webpack_require__(1); +const Node = __webpack_require__(3); + +class Colon extends Node { + constructor (opts) { + super(opts); + this.type = 'colon'; + } +} + +Container.registerWalker(Colon); + +module.exports = Colon; + + +/***/ }), +/* 61 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const Container = __webpack_require__(1); +const Node = __webpack_require__(3); + +class Comma extends Node { + constructor (opts) { + super(opts); + this.type = 'comma'; + } +} + +Container.registerWalker(Comma); + +module.exports = Comma; + + +/***/ }), +/* 62 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const Container = __webpack_require__(1); +const Node = __webpack_require__(3); + +class Comment extends Node { + constructor (opts) { + super(opts); + this.type = 'comment'; + } + + toString () { + return [ + this.raws.before, + '/*', + String(this.value), + '*/', + this.raws.after + ].join(''); + } +} + +Container.registerWalker(Comment); + +module.exports = Comment; + + +/***/ }), +/* 63 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const Container = __webpack_require__(1); + +class FunctionNode extends Container { + constructor (opts) { + super(opts); + this.type = 'func'; + // start off at -1 so we know there haven't been any parens added + this.unbalanced = -1; + } +} + +Container.registerWalker(FunctionNode); + +module.exports = FunctionNode; + + +/***/ }), +/* 64 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const Container = __webpack_require__(1); +const Node = __webpack_require__(3); + +class NumberNode extends Node { + constructor (opts) { + super(opts); + this.type = 'number'; + this.unit = opts.unit || ''; + } + + toString () { + return [ + this.raws.before, + String(this.value), + this.unit, + this.raws.after + ].join(''); + } +} + +Container.registerWalker(NumberNode); + +module.exports = NumberNode; + + +/***/ }), +/* 65 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const Container = __webpack_require__(1); +const Node = __webpack_require__(3); + +class Operator extends Node { + constructor (opts) { + super(opts); + this.type = 'operator'; + } +} + +Container.registerWalker(Operator); + +module.exports = Operator; + + +/***/ }), +/* 66 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const Container = __webpack_require__(1); +const Node = __webpack_require__(3); + +class Parenthesis extends Node { + constructor (opts) { + super(opts); + this.type = 'paren'; + this.parenType = ''; + } +} + +Container.registerWalker(Parenthesis); + +module.exports = Parenthesis; + + +/***/ }), +/* 67 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const Container = __webpack_require__(1); +const Node = __webpack_require__(3); + +class StringNode extends Node { + constructor (opts) { + super(opts); + this.type = 'string'; + } + + toString () { + let quote = this.quoted ? this.raws.quote : ''; + return [ + this.raws.before, + quote, + // we can't use String() here because it'll try using itself + // as the constructor + this.value + '', + quote, + this.raws.after + ].join(''); + } +} + +Container.registerWalker(StringNode); + +module.exports = StringNode; + + +/***/ }), +/* 68 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const Container = __webpack_require__(1); + +module.exports = class Value extends Container { + constructor (opts) { + super(opts); + this.type = 'value'; + this.unbalanced = 0; + } +}; + + +/***/ }), +/* 69 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +const Container = __webpack_require__(1); +const Node = __webpack_require__(3); + +class Word extends Node { + constructor (opts) { + super(opts); + this.type = 'word'; + } +} + +Container.registerWalker(Word); + +module.exports = Word; + + +/***/ }), +/* 70 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _supportsColor = __webpack_require__(83); + +var _supportsColor2 = _interopRequireDefault(_supportsColor); + +var _chalk = __webpack_require__(78); + +var _chalk2 = _interopRequireDefault(_chalk); + +var _terminalHighlight = __webpack_require__(147); + +var _terminalHighlight2 = _interopRequireDefault(_terminalHighlight); + +var _warnOnce = __webpack_require__(4); + +var _warnOnce2 = _interopRequireDefault(_warnOnce); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +/** + * The CSS parser throws this error for broken CSS. + * + * Custom parsers can throw this error for broken custom syntax using + * the {@link Node#error} method. + * + * PostCSS will use the input source map to detect the original error location. + * If you wrote a Sass file, compiled it to CSS and then parsed it with PostCSS, + * PostCSS will show the original position in the Sass file. + * + * If you need the position in the PostCSS input + * (e.g., to debug the previous compiler), use `error.input.file`. + * + * @example + * // Catching and checking syntax error + * try { + * postcss.parse('a{') + * } catch (error) { + * if ( error.name === 'CssSyntaxError' ) { + * error //=> CssSyntaxError + * } + * } + * + * @example + * // Raising error from plugin + * throw node.error('Unknown variable', { plugin: 'postcss-vars' }); + */ +var CssSyntaxError = function () { + + /** + * @param {string} message - error message + * @param {number} [line] - source line of the error + * @param {number} [column] - source column of the error + * @param {string} [source] - source code of the broken file + * @param {string} [file] - absolute path to the broken file + * @param {string} [plugin] - PostCSS plugin name, if error came from plugin + */ + function CssSyntaxError(message, line, column, source, file, plugin) { + _classCallCheck(this, CssSyntaxError); + + /** + * @member {string} - Always equal to `'CssSyntaxError'`. You should + * always check error type + * by `error.name === 'CssSyntaxError'` instead of + * `error instanceof CssSyntaxError`, because + * npm could have several PostCSS versions. + * + * @example + * if ( error.name === 'CssSyntaxError' ) { + * error //=> CssSyntaxError + * } + */ + this.name = 'CssSyntaxError'; + /** + * @member {string} - Error message. + * + * @example + * error.message //=> 'Unclosed block' + */ + this.reason = message; + + if (file) { + /** + * @member {string} - Absolute path to the broken file. + * + * @example + * error.file //=> 'a.sass' + * error.input.file //=> 'a.css' + */ + this.file = file; + } + if (source) { + /** + * @member {string} - Source code of the broken file. + * + * @example + * error.source //=> 'a { b {} }' + * error.input.column //=> 'a b { }' + */ + this.source = source; + } + if (plugin) { + /** + * @member {string} - Plugin name, if error came from plugin. + * + * @example + * error.plugin //=> 'postcss-vars' + */ + this.plugin = plugin; + } + if (typeof line !== 'undefined' && typeof column !== 'undefined') { + /** + * @member {number} - Source line of the error. + * + * @example + * error.line //=> 2 + * error.input.line //=> 4 + */ + this.line = line; + /** + * @member {number} - Source column of the error. + * + * @example + * error.column //=> 1 + * error.input.column //=> 4 + */ + this.column = column; + } + + this.setMessage(); + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, CssSyntaxError); + } + } + + CssSyntaxError.prototype.setMessage = function setMessage() { + /** + * @member {string} - Full error text in the GNU error format + * with plugin, file, line and column. + * + * @example + * error.message //=> 'a.css:1:1: Unclosed block' + */ + this.message = this.plugin ? this.plugin + ': ' : ''; + this.message += this.file ? this.file : ''; + if (typeof this.line !== 'undefined') { + this.message += ':' + this.line + ':' + this.column; + } + this.message += ': ' + this.reason; + }; + + /** + * Returns a few lines of CSS source that caused the error. + * + * If the CSS has an input source map without `sourceContent`, + * this method will return an empty string. + * + * @param {boolean} [color] whether arrow will be colored red by terminal + * color codes. By default, PostCSS will detect + * color support by `process.stdout.isTTY` + * and `process.env.NODE_DISABLE_COLORS`. + * + * @example + * error.showSourceCode() //=> " 4 | } + * // 5 | a { + * // > 6 | bad + * // | ^ + * // 7 | } + * // 8 | b {" + * + * @return {string} few lines of CSS source that caused the error + */ + + + CssSyntaxError.prototype.showSourceCode = function showSourceCode(color) { + var _this = this; + + if (!this.source) return ''; + + var css = this.source; + if (typeof color === 'undefined') color = _supportsColor2.default; + if (color) css = (0, _terminalHighlight2.default)(css); + + var lines = css.split(/\r?\n/); + var start = Math.max(this.line - 3, 0); + var end = Math.min(this.line + 2, lines.length); + + var maxWidth = String(end).length; + var colors = new _chalk2.default.constructor({ enabled: true }); + + function mark(text) { + if (color) { + return colors.red.bold(text); + } else { + return text; + } + } + function aside(text) { + if (color) { + return colors.gray(text); + } else { + return text; + } + } + + return lines.slice(start, end).map(function (line, index) { + var number = start + 1 + index; + var gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | '; + if (number === _this.line) { + var spacing = aside(gutter.replace(/\d/g, ' ')) + line.slice(0, _this.column - 1).replace(/[^\t]/g, ' '); + return mark('>') + aside(gutter) + line + '\n ' + spacing + mark('^'); + } else { + return ' ' + aside(gutter) + line; + } + }).join('\n'); + }; + + /** + * Returns error position, message and source code of the broken part. + * + * @example + * error.toString() //=> "CssSyntaxError: app.css:1:1: Unclosed block + * // > 1 | a { + * // | ^" + * + * @return {string} error position, message and source code + */ + + + CssSyntaxError.prototype.toString = function toString() { + var code = this.showSourceCode(); + if (code) { + code = '\n\n' + code + '\n'; + } + return this.name + ': ' + this.message + code; + }; + + _createClass(CssSyntaxError, [{ + key: 'generated', + get: function get() { + (0, _warnOnce2.default)('CssSyntaxError#generated is deprecated. Use input instead.'); + return this.input; + } + + /** + * @memberof CssSyntaxError# + * @member {Input} input - Input object with PostCSS internal information + * about input file. If input has source map + * from previous tool, PostCSS will use origin + * (for example, Sass) source. You can use this + * object to get PostCSS input source. + * + * @example + * error.input.file //=> 'a.css' + * error.file //=> 'a.sass' + */ + + }]); + + return CssSyntaxError; +}(); + +exports.default = CssSyntaxError; +module.exports = exports['default']; + + + +/***/ }), +/* 71 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _warnOnce = __webpack_require__(4); + +var _warnOnce2 = _interopRequireDefault(_warnOnce); + +var _node = __webpack_require__(27); + +var _node2 = _interopRequireDefault(_node); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +/** + * Represents a CSS declaration. + * + * @extends Node + * + * @example + * const root = postcss.parse('a { color: black }'); + * const decl = root.first.first; + * decl.type //=> 'decl' + * decl.toString() //=> ' color: black' + */ +var Declaration = function (_Node) { + _inherits(Declaration, _Node); + + function Declaration(defaults) { + _classCallCheck(this, Declaration); + + var _this = _possibleConstructorReturn(this, _Node.call(this, defaults)); + + _this.type = 'decl'; + return _this; + } + + _createClass(Declaration, [{ + key: '_value', + get: function get() { + (0, _warnOnce2.default)('Node#_value was deprecated. Use Node#raws.value'); + return this.raws.value; + }, + set: function set(val) { + (0, _warnOnce2.default)('Node#_value was deprecated. Use Node#raws.value'); + this.raws.value = val; + } + }, { + key: '_important', + get: function get() { + (0, _warnOnce2.default)('Node#_important was deprecated. Use Node#raws.important'); + return this.raws.important; + }, + set: function set(val) { + (0, _warnOnce2.default)('Node#_important was deprecated. Use Node#raws.important'); + this.raws.important = val; + } + + /** + * @memberof Declaration# + * @member {string} prop - the declaration’s property name + * + * @example + * const root = postcss.parse('a { color: black }'); + * const decl = root.first.first; + * decl.prop //=> 'color' + */ + + /** + * @memberof Declaration# + * @member {string} value - the declaration’s value + * + * @example + * const root = postcss.parse('a { color: black }'); + * const decl = root.first.first; + * decl.value //=> 'black' + */ + + /** + * @memberof Declaration# + * @member {boolean} important - `true` if the declaration + * has an !important annotation. + * + * @example + * const root = postcss.parse('a { color: black !important; color: red }'); + * root.first.first.important //=> true + * root.first.last.important //=> undefined + */ + + /** + * @memberof Declaration# + * @member {object} raws - Information to generate byte-to-byte equal + * node string as it was in the origin input. + * + * Every parser saves its own properties, + * but the default CSS parser uses: + * + * * `before`: the space symbols before the node. It also stores `*` + * and `_` symbols before the declaration (IE hack). + * * `between`: the symbols between the property and value + * for declarations. + * * `important`: the content of the important statement, + * if it is not just `!important`. + * + * PostCSS cleans declaration from comments and extra spaces, + * but it stores origin content in raws properties. + * As such, if you don’t change a declaration’s value, + * PostCSS will use the raw value with comments. + * + * @example + * const root = postcss.parse('a {\n color:black\n}') + * root.first.first.raws //=> { before: '\n ', between: ':' } + */ + + }]); + + return Declaration; +}(_node2.default); + +exports.default = Declaration; +module.exports = exports['default']; + + + +/***/ }), +/* 72 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _mapGenerator = __webpack_require__(143); + +var _mapGenerator2 = _interopRequireDefault(_mapGenerator); + +var _stringify2 = __webpack_require__(76); + +var _stringify3 = _interopRequireDefault(_stringify2); + +var _warnOnce = __webpack_require__(4); + +var _warnOnce2 = _interopRequireDefault(_warnOnce); + +var _result = __webpack_require__(146); + +var _result2 = _interopRequireDefault(_result); + +var _parse = __webpack_require__(73); + +var _parse2 = _interopRequireDefault(_parse); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function isPromise(obj) { + return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && typeof obj.then === 'function'; +} + +/** + * A Promise proxy for the result of PostCSS transformations. + * + * A `LazyResult` instance is returned by {@link Processor#process}. + * + * @example + * const lazy = postcss([cssnext]).process(css); + */ + +var LazyResult = function () { + function LazyResult(processor, css, opts) { + _classCallCheck(this, LazyResult); + + this.stringified = false; + this.processed = false; + + var root = void 0; + if ((typeof css === 'undefined' ? 'undefined' : _typeof(css)) === 'object' && css.type === 'root') { + root = css; + } else if (css instanceof LazyResult || css instanceof _result2.default) { + root = css.root; + if (css.map) { + if (typeof opts.map === 'undefined') opts.map = {}; + if (!opts.map.inline) opts.map.inline = false; + opts.map.prev = css.map; + } + } else { + var parser = _parse2.default; + if (opts.syntax) parser = opts.syntax.parse; + if (opts.parser) parser = opts.parser; + if (parser.parse) parser = parser.parse; + + try { + root = parser(css, opts); + } catch (error) { + this.error = error; + } + } + + this.result = new _result2.default(processor, root, opts); + } + + /** + * Returns a {@link Processor} instance, which will be used + * for CSS transformations. + * @type {Processor} + */ + + + /** + * Processes input CSS through synchronous plugins + * and calls {@link Result#warnings()}. + * + * @return {Warning[]} warnings from plugins + */ + LazyResult.prototype.warnings = function warnings() { + return this.sync().warnings(); + }; + + /** + * Alias for the {@link LazyResult#css} property. + * + * @example + * lazy + '' === lazy.css; + * + * @return {string} output CSS + */ + + + LazyResult.prototype.toString = function toString() { + return this.css; + }; + + /** + * Processes input CSS through synchronous and asynchronous plugins + * and calls `onFulfilled` with a Result instance. If a plugin throws + * an error, the `onRejected` callback will be executed. + * + * It implements standard Promise API. + * + * @param {onFulfilled} onFulfilled - callback will be executed + * when all plugins will finish work + * @param {onRejected} onRejected - callback will be executed on any error + * + * @return {Promise} Promise API to make queue + * + * @example + * postcss([cssnext]).process(css).then(result => { + * console.log(result.css); + * }); + */ + + + LazyResult.prototype.then = function then(onFulfilled, onRejected) { + return this.async().then(onFulfilled, onRejected); + }; + + /** + * Processes input CSS through synchronous and asynchronous plugins + * and calls onRejected for each error thrown in any plugin. + * + * It implements standard Promise API. + * + * @param {onRejected} onRejected - callback will be executed on any error + * + * @return {Promise} Promise API to make queue + * + * @example + * postcss([cssnext]).process(css).then(result => { + * console.log(result.css); + * }).catch(error => { + * console.error(error); + * }); + */ + + + LazyResult.prototype.catch = function _catch(onRejected) { + return this.async().catch(onRejected); + }; + + LazyResult.prototype.handleError = function handleError(error, plugin) { + try { + this.error = error; + if (error.name === 'CssSyntaxError' && !error.plugin) { + error.plugin = plugin.postcssPlugin; + error.setMessage(); + } else if (plugin.postcssVersion) { + var pluginName = plugin.postcssPlugin; + var pluginVer = plugin.postcssVersion; + var runtimeVer = this.result.processor.version; + var a = pluginVer.split('.'); + var b = runtimeVer.split('.'); + + if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) { + (0, _warnOnce2.default)('Your current PostCSS version ' + 'is ' + runtimeVer + ', but ' + pluginName + ' ' + 'uses ' + pluginVer + '. Perhaps this is ' + 'the source of the error below.'); + } + } + } catch (err) { + if (console && console.error) console.error(err); + } + }; + + LazyResult.prototype.asyncTick = function asyncTick(resolve, reject) { + var _this = this; + + if (this.plugin >= this.processor.plugins.length) { + this.processed = true; + return resolve(); + } + + try { + var plugin = this.processor.plugins[this.plugin]; + var promise = this.run(plugin); + this.plugin += 1; + + if (isPromise(promise)) { + promise.then(function () { + _this.asyncTick(resolve, reject); + }).catch(function (error) { + _this.handleError(error, plugin); + _this.processed = true; + reject(error); + }); + } else { + this.asyncTick(resolve, reject); + } + } catch (error) { + this.processed = true; + reject(error); + } + }; + + LazyResult.prototype.async = function async() { + var _this2 = this; + + if (this.processed) { + return new Promise(function (resolve, reject) { + if (_this2.error) { + reject(_this2.error); + } else { + resolve(_this2.stringify()); + } + }); + } + if (this.processing) { + return this.processing; + } + + this.processing = new Promise(function (resolve, reject) { + if (_this2.error) return reject(_this2.error); + _this2.plugin = 0; + _this2.asyncTick(resolve, reject); + }).then(function () { + _this2.processed = true; + return _this2.stringify(); + }); + + return this.processing; + }; + + LazyResult.prototype.sync = function sync() { + if (this.processed) return this.result; + this.processed = true; + + if (this.processing) { + throw new Error('Use process(css).then(cb) to work with async plugins'); + } + + if (this.error) throw this.error; + + for (var _iterator = this.result.processor.plugins, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + var _ref; + + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } + + var plugin = _ref; + + var promise = this.run(plugin); + if (isPromise(promise)) { + throw new Error('Use process(css).then(cb) to work with async plugins'); + } + } + + return this.result; + }; + + LazyResult.prototype.run = function run(plugin) { + this.result.lastPlugin = plugin; + + try { + return plugin(this.result.root, this.result); + } catch (error) { + this.handleError(error, plugin); + throw error; + } + }; + + LazyResult.prototype.stringify = function stringify() { + if (this.stringified) return this.result; + this.stringified = true; + + this.sync(); + + var opts = this.result.opts; + var str = _stringify3.default; + if (opts.syntax) str = opts.syntax.stringify; + if (opts.stringifier) str = opts.stringifier; + if (str.stringify) str = str.stringify; + + var map = new _mapGenerator2.default(str, this.result.root, this.result.opts); + var data = map.generate(); + this.result.css = data[0]; + this.result.map = data[1]; + + return this.result; + }; + + _createClass(LazyResult, [{ + key: 'processor', + get: function get() { + return this.result.processor; + } + + /** + * Options from the {@link Processor#process} call. + * @type {processOptions} + */ + + }, { + key: 'opts', + get: function get() { + return this.result.opts; + } + + /** + * Processes input CSS through synchronous plugins, converts `Root` + * to a CSS string and returns {@link Result#css}. + * + * This property will only work with synchronous plugins. + * If the processor contains any asynchronous plugins + * it will throw an error. This is why this method is only + * for debug purpose, you should always use {@link LazyResult#then}. + * + * @type {string} + * @see Result#css + */ + + }, { + key: 'css', + get: function get() { + return this.stringify().css; + } + + /** + * An alias for the `css` property. Use it with syntaxes + * that generate non-CSS output. + * + * This property will only work with synchronous plugins. + * If the processor contains any asynchronous plugins + * it will throw an error. This is why this method is only + * for debug purpose, you should always use {@link LazyResult#then}. + * + * @type {string} + * @see Result#content + */ + + }, { + key: 'content', + get: function get() { + return this.stringify().content; + } + + /** + * Processes input CSS through synchronous plugins + * and returns {@link Result#map}. + * + * This property will only work with synchronous plugins. + * If the processor contains any asynchronous plugins + * it will throw an error. This is why this method is only + * for debug purpose, you should always use {@link LazyResult#then}. + * + * @type {SourceMapGenerator} + * @see Result#map + */ + + }, { + key: 'map', + get: function get() { + return this.stringify().map; + } + + /** + * Processes input CSS through synchronous plugins + * and returns {@link Result#root}. + * + * This property will only work with synchronous plugins. If the processor + * contains any asynchronous plugins it will throw an error. + * + * This is why this method is only for debug purpose, + * you should always use {@link LazyResult#then}. + * + * @type {Root} + * @see Result#root + */ + + }, { + key: 'root', + get: function get() { + return this.sync().root; + } + + /** + * Processes input CSS through synchronous plugins + * and returns {@link Result#messages}. + * + * This property will only work with synchronous plugins. If the processor + * contains any asynchronous plugins it will throw an error. + * + * This is why this method is only for debug purpose, + * you should always use {@link LazyResult#then}. + * + * @type {Message[]} + * @see Result#messages + */ + + }, { + key: 'messages', + get: function get() { + return this.sync().messages; + } + }]); + + return LazyResult; +}(); + +exports.default = LazyResult; + +/** + * @callback onFulfilled + * @param {Result} result + */ + +/** + * @callback onRejected + * @param {Error} error + */ + +module.exports = exports['default']; + + + +/***/ }), +/* 73 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.default = parse; + +var _parser = __webpack_require__(74); + +var _parser2 = _interopRequireDefault(_parser); + +var _input = __webpack_require__(26); + +var _input2 = _interopRequireDefault(_input); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function parse(css, opts) { + if (opts && opts.safe) { + throw new Error('Option safe was removed. ' + 'Use parser: require("postcss-safe-parser")'); + } + + var input = new _input2.default(css, opts); + + var parser = new _parser2.default(input); + try { + parser.tokenize(); + parser.loop(); + } catch (e) { + if (e.name === 'CssSyntaxError' && opts && opts.from) { + if (/\.scss$/i.test(opts.from)) { + e.message += '\nYou tried to parse SCSS with ' + 'the standard CSS parser; ' + 'try again with the postcss-scss parser'; + } else if (/\.sass/i.test(opts.from)) { + e.message += '\nYou tried to parse Sass with ' + 'the standard CSS parser; ' + 'try again with the postcss-sass parser'; + } else if (/\.less$/i.test(opts.from)) { + e.message += '\nYou tried to parse Less with ' + 'the standard CSS parser; ' + 'try again with the postcss-less parser'; + } + } + throw e; + } + + return parser.root; +} +module.exports = exports['default']; + + + +/***/ }), +/* 74 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _declaration = __webpack_require__(71); + +var _declaration2 = _interopRequireDefault(_declaration); + +var _tokenize = __webpack_require__(77); + +var _tokenize2 = _interopRequireDefault(_tokenize); + +var _comment = __webpack_require__(24); + +var _comment2 = _interopRequireDefault(_comment); + +var _atRule = __webpack_require__(23); + +var _atRule2 = _interopRequireDefault(_atRule); + +var _root = __webpack_require__(75); + +var _root2 = _interopRequireDefault(_root); + +var _rule = __webpack_require__(10); + +var _rule2 = _interopRequireDefault(_rule); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var Parser = function () { + function Parser(input) { + _classCallCheck(this, Parser); + + this.input = input; + + this.pos = 0; + this.root = new _root2.default(); + this.current = this.root; + this.spaces = ''; + this.semicolon = false; + + this.root.source = { input: input, start: { line: 1, column: 1 } }; + } + + Parser.prototype.tokenize = function tokenize() { + this.tokens = (0, _tokenize2.default)(this.input); + }; + + Parser.prototype.loop = function loop() { + var token = void 0; + while (this.pos < this.tokens.length) { + token = this.tokens[this.pos]; + + switch (token[0]) { + + case 'space': + case ';': + this.spaces += token[1]; + break; + + case '}': + this.end(token); + break; + + case 'comment': + this.comment(token); + break; + + case 'at-word': + this.atrule(token); + break; + + case '{': + this.emptyRule(token); + break; + + default: + this.other(); + break; + } + + this.pos += 1; + } + this.endFile(); + }; + + Parser.prototype.comment = function comment(token) { + var node = new _comment2.default(); + this.init(node, token[2], token[3]); + node.source.end = { line: token[4], column: token[5] }; + + var text = token[1].slice(2, -2); + if (/^\s*$/.test(text)) { + node.text = ''; + node.raws.left = text; + node.raws.right = ''; + } else { + var match = text.match(/^(\s*)([^]*[^\s])(\s*)$/); + node.text = match[2]; + node.raws.left = match[1]; + node.raws.right = match[3]; + } + }; + + Parser.prototype.emptyRule = function emptyRule(token) { + var node = new _rule2.default(); + this.init(node, token[2], token[3]); + node.selector = ''; + node.raws.between = ''; + this.current = node; + }; + + Parser.prototype.other = function other() { + var token = void 0; + var end = false; + var type = null; + var colon = false; + var bracket = null; + var brackets = []; + + var start = this.pos; + while (this.pos < this.tokens.length) { + token = this.tokens[this.pos]; + type = token[0]; + + if (type === '(' || type === '[') { + if (!bracket) bracket = token; + brackets.push(type === '(' ? ')' : ']'); + } else if (brackets.length === 0) { + if (type === ';') { + if (colon) { + this.decl(this.tokens.slice(start, this.pos + 1)); + return; + } else { + break; + } + } else if (type === '{') { + this.rule(this.tokens.slice(start, this.pos + 1)); + return; + } else if (type === '}') { + this.pos -= 1; + end = true; + break; + } else if (type === ':') { + colon = true; + } + } else if (type === brackets[brackets.length - 1]) { + brackets.pop(); + if (brackets.length === 0) bracket = null; + } + + this.pos += 1; + } + if (this.pos === this.tokens.length) { + this.pos -= 1; + end = true; + } + + if (brackets.length > 0) this.unclosedBracket(bracket); + + if (end && colon) { + while (this.pos > start) { + token = this.tokens[this.pos][0]; + if (token !== 'space' && token !== 'comment') break; + this.pos -= 1; + } + this.decl(this.tokens.slice(start, this.pos + 1)); + return; + } + + this.unknownWord(start); + }; + + Parser.prototype.rule = function rule(tokens) { + tokens.pop(); + + var node = new _rule2.default(); + this.init(node, tokens[0][2], tokens[0][3]); + + node.raws.between = this.spacesAndCommentsFromEnd(tokens); + this.raw(node, 'selector', tokens); + this.current = node; + }; + + Parser.prototype.decl = function decl(tokens) { + var node = new _declaration2.default(); + this.init(node); + + var last = tokens[tokens.length - 1]; + if (last[0] === ';') { + this.semicolon = true; + tokens.pop(); + } + if (last[4]) { + node.source.end = { line: last[4], column: last[5] }; + } else { + node.source.end = { line: last[2], column: last[3] }; + } + + while (tokens[0][0] !== 'word') { + node.raws.before += tokens.shift()[1]; + } + node.source.start = { line: tokens[0][2], column: tokens[0][3] }; + + node.prop = ''; + while (tokens.length) { + var type = tokens[0][0]; + if (type === ':' || type === 'space' || type === 'comment') { + break; + } + node.prop += tokens.shift()[1]; + } + + node.raws.between = ''; + + var token = void 0; + while (tokens.length) { + token = tokens.shift(); + + if (token[0] === ':') { + node.raws.between += token[1]; + break; + } else { + node.raws.between += token[1]; + } + } + + if (node.prop[0] === '_' || node.prop[0] === '*') { + node.raws.before += node.prop[0]; + node.prop = node.prop.slice(1); + } + node.raws.between += this.spacesAndCommentsFromStart(tokens); + this.precheckMissedSemicolon(tokens); + + for (var i = tokens.length - 1; i > 0; i--) { + token = tokens[i]; + if (token[1] === '!important') { + node.important = true; + var string = this.stringFrom(tokens, i); + string = this.spacesFromEnd(tokens) + string; + if (string !== ' !important') node.raws.important = string; + break; + } else if (token[1] === 'important') { + var cache = tokens.slice(0); + var str = ''; + for (var j = i; j > 0; j--) { + var _type = cache[j][0]; + if (str.trim().indexOf('!') === 0 && _type !== 'space') { + break; + } + str = cache.pop()[1] + str; + } + if (str.trim().indexOf('!') === 0) { + node.important = true; + node.raws.important = str; + tokens = cache; + } + } + + if (token[0] !== 'space' && token[0] !== 'comment') { + break; + } + } + + this.raw(node, 'value', tokens); + + if (node.value.indexOf(':') !== -1) this.checkMissedSemicolon(tokens); + }; + + Parser.prototype.atrule = function atrule(token) { + var node = new _atRule2.default(); + node.name = token[1].slice(1); + if (node.name === '') { + this.unnamedAtrule(node, token); + } + this.init(node, token[2], token[3]); + + var last = false; + var open = false; + var params = []; + + this.pos += 1; + while (this.pos < this.tokens.length) { + token = this.tokens[this.pos]; + + if (token[0] === ';') { + node.source.end = { line: token[2], column: token[3] }; + this.semicolon = true; + break; + } else if (token[0] === '{') { + open = true; + break; + } else if (token[0] === '}') { + this.end(token); + break; + } else { + params.push(token); + } + + this.pos += 1; + } + if (this.pos === this.tokens.length) { + last = true; + } + + node.raws.between = this.spacesAndCommentsFromEnd(params); + if (params.length) { + node.raws.afterName = this.spacesAndCommentsFromStart(params); + this.raw(node, 'params', params); + if (last) { + token = params[params.length - 1]; + node.source.end = { line: token[4], column: token[5] }; + this.spaces = node.raws.between; + node.raws.between = ''; + } + } else { + node.raws.afterName = ''; + node.params = ''; + } + + if (open) { + node.nodes = []; + this.current = node; + } + }; + + Parser.prototype.end = function end(token) { + if (this.current.nodes && this.current.nodes.length) { + this.current.raws.semicolon = this.semicolon; + } + this.semicolon = false; + + this.current.raws.after = (this.current.raws.after || '') + this.spaces; + this.spaces = ''; + + if (this.current.parent) { + this.current.source.end = { line: token[2], column: token[3] }; + this.current = this.current.parent; + } else { + this.unexpectedClose(token); + } + }; + + Parser.prototype.endFile = function endFile() { + if (this.current.parent) this.unclosedBlock(); + if (this.current.nodes && this.current.nodes.length) { + this.current.raws.semicolon = this.semicolon; + } + this.current.raws.after = (this.current.raws.after || '') + this.spaces; + }; + + // Helpers + + Parser.prototype.init = function init(node, line, column) { + this.current.push(node); + + node.source = { start: { line: line, column: column }, input: this.input }; + node.raws.before = this.spaces; + this.spaces = ''; + if (node.type !== 'comment') this.semicolon = false; + }; + + Parser.prototype.raw = function raw(node, prop, tokens) { + var token = void 0, + type = void 0; + var length = tokens.length; + var value = ''; + var clean = true; + for (var i = 0; i < length; i += 1) { + token = tokens[i]; + type = token[0]; + if (type === 'comment' || type === 'space' && i === length - 1) { + clean = false; + } else { + value += token[1]; + } + } + if (!clean) { + var raw = tokens.reduce(function (all, i) { + return all + i[1]; + }, ''); + node.raws[prop] = { value: value, raw: raw }; + } + node[prop] = value; + }; + + Parser.prototype.spacesAndCommentsFromEnd = function spacesAndCommentsFromEnd(tokens) { + var lastTokenType = void 0; + var spaces = ''; + while (tokens.length) { + lastTokenType = tokens[tokens.length - 1][0]; + if (lastTokenType !== 'space' && lastTokenType !== 'comment') break; + spaces = tokens.pop()[1] + spaces; + } + return spaces; + }; + + Parser.prototype.spacesAndCommentsFromStart = function spacesAndCommentsFromStart(tokens) { + var next = void 0; + var spaces = ''; + while (tokens.length) { + next = tokens[0][0]; + if (next !== 'space' && next !== 'comment') break; + spaces += tokens.shift()[1]; + } + return spaces; + }; + + Parser.prototype.spacesFromEnd = function spacesFromEnd(tokens) { + var lastTokenType = void 0; + var spaces = ''; + while (tokens.length) { + lastTokenType = tokens[tokens.length - 1][0]; + if (lastTokenType !== 'space') break; + spaces = tokens.pop()[1] + spaces; + } + return spaces; + }; + + Parser.prototype.stringFrom = function stringFrom(tokens, from) { + var result = ''; + for (var i = from; i < tokens.length; i++) { + result += tokens[i][1]; + } + tokens.splice(from, tokens.length - from); + return result; + }; + + Parser.prototype.colon = function colon(tokens) { + var brackets = 0; + var token = void 0, + type = void 0, + prev = void 0; + for (var i = 0; i < tokens.length; i++) { + token = tokens[i]; + type = token[0]; + + if (type === '(') { + brackets += 1; + } else if (type === ')') { + brackets -= 1; + } else if (brackets === 0 && type === ':') { + if (!prev) { + this.doubleColon(token); + } else if (prev[0] === 'word' && prev[1] === 'progid') { + continue; + } else { + return i; + } + } + + prev = token; + } + return false; + }; + + // Errors + + Parser.prototype.unclosedBracket = function unclosedBracket(bracket) { + throw this.input.error('Unclosed bracket', bracket[2], bracket[3]); + }; + + Parser.prototype.unknownWord = function unknownWord(start) { + var token = this.tokens[start]; + throw this.input.error('Unknown word', token[2], token[3]); + }; + + Parser.prototype.unexpectedClose = function unexpectedClose(token) { + throw this.input.error('Unexpected }', token[2], token[3]); + }; + + Parser.prototype.unclosedBlock = function unclosedBlock() { + var pos = this.current.source.start; + throw this.input.error('Unclosed block', pos.line, pos.column); + }; + + Parser.prototype.doubleColon = function doubleColon(token) { + throw this.input.error('Double colon', token[2], token[3]); + }; + + Parser.prototype.unnamedAtrule = function unnamedAtrule(node, token) { + throw this.input.error('At-rule without name', token[2], token[3]); + }; + + Parser.prototype.precheckMissedSemicolon = function precheckMissedSemicolon(tokens) { + // Hook for Safe Parser + tokens; + }; + + Parser.prototype.checkMissedSemicolon = function checkMissedSemicolon(tokens) { + var colon = this.colon(tokens); + if (colon === false) return; + + var founded = 0; + var token = void 0; + for (var j = colon - 1; j >= 0; j--) { + token = tokens[j]; + if (token[0] !== 'space') { + founded += 1; + if (founded === 2) break; + } + } + throw this.input.error('Missed semicolon', token[2], token[3]); + }; + + return Parser; +}(); + +exports.default = Parser; +module.exports = exports['default']; + + + +/***/ }), +/* 75 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _container = __webpack_require__(25); + +var _container2 = _interopRequireDefault(_container); + +var _warnOnce = __webpack_require__(4); + +var _warnOnce2 = _interopRequireDefault(_warnOnce); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +/** + * Represents a CSS file and contains all its parsed nodes. + * + * @extends Container + * + * @example + * const root = postcss.parse('a{color:black} b{z-index:2}'); + * root.type //=> 'root' + * root.nodes.length //=> 2 + */ +var Root = function (_Container) { + _inherits(Root, _Container); + + function Root(defaults) { + _classCallCheck(this, Root); + + var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); + + _this.type = 'root'; + if (!_this.nodes) _this.nodes = []; + return _this; + } + + Root.prototype.removeChild = function removeChild(child) { + child = this.index(child); + + if (child === 0 && this.nodes.length > 1) { + this.nodes[1].raws.before = this.nodes[child].raws.before; + } + + return _Container.prototype.removeChild.call(this, child); + }; + + Root.prototype.normalize = function normalize(child, sample, type) { + var nodes = _Container.prototype.normalize.call(this, child); + + if (sample) { + if (type === 'prepend') { + if (this.nodes.length > 1) { + sample.raws.before = this.nodes[1].raws.before; + } else { + delete sample.raws.before; + } + } else if (this.first !== sample) { + for (var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + var _ref; + + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } + + var node = _ref; + + node.raws.before = sample.raws.before; + } + } + } + + return nodes; + }; + + /** + * Returns a {@link Result} instance representing the root’s CSS. + * + * @param {processOptions} [opts] - options with only `to` and `map` keys + * + * @return {Result} result with current root’s CSS + * + * @example + * const root1 = postcss.parse(css1, { from: 'a.css' }); + * const root2 = postcss.parse(css2, { from: 'b.css' }); + * root1.append(root2); + * const result = root1.toResult({ to: 'all.css', map: true }); + */ + + + Root.prototype.toResult = function toResult() { + var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var LazyResult = __webpack_require__(72); + var Processor = __webpack_require__(145); + + var lazy = new LazyResult(new Processor(), this, opts); + return lazy.stringify(); + }; + + Root.prototype.remove = function remove(child) { + (0, _warnOnce2.default)('Root#remove is deprecated. Use Root#removeChild'); + this.removeChild(child); + }; + + Root.prototype.prevMap = function prevMap() { + (0, _warnOnce2.default)('Root#prevMap is deprecated. Use Root#source.input.map'); + return this.source.input.map; + }; + + /** + * @memberof Root# + * @member {object} raws - Information to generate byte-to-byte equal + * node string as it was in the origin input. + * + * Every parser saves its own properties, + * but the default CSS parser uses: + * + * * `after`: the space symbols after the last child to the end of file. + * * `semicolon`: is the last child has an (optional) semicolon. + * + * @example + * postcss.parse('a {}\n').raws //=> { after: '\n' } + * postcss.parse('a {}').raws //=> { after: '' } + */ + + return Root; +}(_container2.default); + +exports.default = Root; +module.exports = exports['default']; + + + +/***/ }), +/* 76 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.default = stringify; + +var _stringifier = __webpack_require__(28); + +var _stringifier2 = _interopRequireDefault(_stringifier); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function stringify(node, builder) { + var str = new _stringifier2.default(builder); + str.stringify(node); +} +module.exports = exports['default']; + + + +/***/ }), +/* 77 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.default = tokenize; +var SINGLE_QUOTE = 39; +var DOUBLE_QUOTE = 34; +var BACKSLASH = 92; +var SLASH = 47; +var NEWLINE = 10; +var SPACE = 32; +var FEED = 12; +var TAB = 9; +var CR = 13; +var OPEN_SQUARE = 91; +var CLOSE_SQUARE = 93; +var OPEN_PARENTHESES = 40; +var CLOSE_PARENTHESES = 41; +var OPEN_CURLY = 123; +var CLOSE_CURLY = 125; +var SEMICOLON = 59; +var ASTERISK = 42; +var COLON = 58; +var AT = 64; + +var RE_AT_END = /[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g; +var RE_WORD_END = /[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g; +var RE_BAD_BRACKET = /.[\\\/\("'\n]/; + +function tokenize(input) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + var tokens = []; + var css = input.css.valueOf(); + + var ignore = options.ignoreErrors; + + var code = void 0, + next = void 0, + quote = void 0, + lines = void 0, + last = void 0, + content = void 0, + escape = void 0, + nextLine = void 0, + nextOffset = void 0, + escaped = void 0, + escapePos = void 0, + prev = void 0, + n = void 0; + + var length = css.length; + var offset = -1; + var line = 1; + var pos = 0; + + function unclosed(what) { + throw input.error('Unclosed ' + what, line, pos - offset); + } + + while (pos < length) { + code = css.charCodeAt(pos); + + if (code === NEWLINE || code === FEED || code === CR && css.charCodeAt(pos + 1) !== NEWLINE) { + offset = pos; + line += 1; + } + + switch (code) { + case NEWLINE: + case SPACE: + case TAB: + case CR: + case FEED: + next = pos; + do { + next += 1; + code = css.charCodeAt(next); + if (code === NEWLINE) { + offset = next; + line += 1; + } + } while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED); + + tokens.push(['space', css.slice(pos, next)]); + pos = next - 1; + break; + + case OPEN_SQUARE: + tokens.push(['[', '[', line, pos - offset]); + break; + + case CLOSE_SQUARE: + tokens.push([']', ']', line, pos - offset]); + break; + + case OPEN_CURLY: + tokens.push(['{', '{', line, pos - offset]); + break; + + case CLOSE_CURLY: + tokens.push(['}', '}', line, pos - offset]); + break; + + case COLON: + tokens.push([':', ':', line, pos - offset]); + break; + + case SEMICOLON: + tokens.push([';', ';', line, pos - offset]); + break; + + case OPEN_PARENTHESES: + prev = tokens.length ? tokens[tokens.length - 1][1] : ''; + n = css.charCodeAt(pos + 1); + if (prev === 'url' && n !== SINGLE_QUOTE && n !== DOUBLE_QUOTE && n !== SPACE && n !== NEWLINE && n !== TAB && n !== FEED && n !== CR) { + next = pos; + do { + escaped = false; + next = css.indexOf(')', next + 1); + if (next === -1) { + if (ignore) { + next = pos; + break; + } else { + unclosed('bracket'); + } + } + escapePos = next; + while (css.charCodeAt(escapePos - 1) === BACKSLASH) { + escapePos -= 1; + escaped = !escaped; + } + } while (escaped); + + tokens.push(['brackets', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); + pos = next; + } else { + next = css.indexOf(')', pos + 1); + content = css.slice(pos, next + 1); + + if (next === -1 || RE_BAD_BRACKET.test(content)) { + tokens.push(['(', '(', line, pos - offset]); + } else { + tokens.push(['brackets', content, line, pos - offset, line, next - offset]); + pos = next; + } + } + + break; + + case CLOSE_PARENTHESES: + tokens.push([')', ')', line, pos - offset]); + break; + + case SINGLE_QUOTE: + case DOUBLE_QUOTE: + quote = code === SINGLE_QUOTE ? '\'' : '"'; + next = pos; + do { + escaped = false; + next = css.indexOf(quote, next + 1); + if (next === -1) { + if (ignore) { + next = pos + 1; + break; + } else { + unclosed('string'); + } + } + escapePos = next; + while (css.charCodeAt(escapePos - 1) === BACKSLASH) { + escapePos -= 1; + escaped = !escaped; + } + } while (escaped); + + content = css.slice(pos, next + 1); + lines = content.split('\n'); + last = lines.length - 1; + + if (last > 0) { + nextLine = line + last; + nextOffset = next - lines[last].length; + } else { + nextLine = line; + nextOffset = offset; + } + + tokens.push(['string', css.slice(pos, next + 1), line, pos - offset, nextLine, next - nextOffset]); + + offset = nextOffset; + line = nextLine; + pos = next; + break; + + case AT: + RE_AT_END.lastIndex = pos + 1; + RE_AT_END.test(css); + if (RE_AT_END.lastIndex === 0) { + next = css.length - 1; + } else { + next = RE_AT_END.lastIndex - 2; + } + tokens.push(['at-word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); + pos = next; + break; + + case BACKSLASH: + next = pos; + escape = true; + while (css.charCodeAt(next + 1) === BACKSLASH) { + next += 1; + escape = !escape; + } + code = css.charCodeAt(next + 1); + if (escape && code !== SLASH && code !== SPACE && code !== NEWLINE && code !== TAB && code !== CR && code !== FEED) { + next += 1; + } + tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); + pos = next; + break; + + default: + if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) { + next = css.indexOf('*/', pos + 2) + 1; + if (next === 0) { + if (ignore) { + next = css.length; + } else { + unclosed('comment'); + } + } + + content = css.slice(pos, next + 1); + lines = content.split('\n'); + last = lines.length - 1; + + if (last > 0) { + nextLine = line + last; + nextOffset = next - lines[last].length; + } else { + nextLine = line; + nextOffset = offset; + } + + tokens.push(['comment', content, line, pos - offset, nextLine, next - nextOffset]); + + offset = nextOffset; + line = nextLine; + pos = next; + } else { + RE_WORD_END.lastIndex = pos + 1; + RE_WORD_END.test(css); + if (RE_WORD_END.lastIndex === 0) { + next = css.length - 1; + } else { + next = RE_WORD_END.lastIndex - 2; + } + + tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); + pos = next; + } + + break; + } + + pos++; + } + + return tokens; +} +module.exports = exports['default']; + + + /***/ }), /* 78 */ /***/ (function(module, exports, __webpack_require__) { @@ -15285,11 +15285,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = parseMedia; -var _Container = __webpack_require__(45); +var _Container = __webpack_require__(36); var _Container2 = _interopRequireDefault(_Container); -var _parsers = __webpack_require__(125); +var _parsers = __webpack_require__(116); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -15331,11 +15331,11 @@ function parseMedia(value) { exports.__esModule = true; -var _scssStringify = __webpack_require__(130); +var _scssStringify = __webpack_require__(121); var _scssStringify2 = _interopRequireDefault(_scssStringify); -var _scssParse = __webpack_require__(127); +var _scssParse = __webpack_require__(118); var _scssParse2 = _interopRequireDefault(_scssParse); @@ -15355,7 +15355,7 @@ module.exports = exports['default']; exports.__esModule = true; -var _processor = __webpack_require__(133); +var _processor = __webpack_require__(134); var _processor2 = _interopRequireDefault(_processor); @@ -15473,7 +15473,7 @@ module.exports = exports['default']; "use strict"; -const Parser = __webpack_require__(138); +const Parser = __webpack_require__(139); const AtWord = __webpack_require__(59); const Colon = __webpack_require__(60); const Comma = __webpack_require__(61); @@ -15840,7 +15840,7 @@ var _createClass = function () { function defineProperties(target, props) { for var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; -var _rule = __webpack_require__(9); +var _rule = __webpack_require__(10); var _rule2 = _interopRequireDefault(_rule); @@ -15927,7 +15927,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = lessParse; -var _input = __webpack_require__(19); +var _input = __webpack_require__(26); var _input2 = _interopRequireDefault(_input); @@ -15966,7 +15966,7 @@ var _createClass = function () { function defineProperties(target, props) { for var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; -var _stringifier = __webpack_require__(21); +var _stringifier = __webpack_require__(28); var _stringifier2 = _interopRequireDefault(_stringifier); @@ -16129,7 +16129,7 @@ var _createClass = function () { function defineProperties(target, props) { for var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; -var _rule = __webpack_require__(9); +var _rule = __webpack_require__(10); var _rule2 = _interopRequireDefault(_rule); @@ -16802,1399 +16802,6 @@ module.exports = exports['default']; /* 116 */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; -/* WEBPACK VAR INJECTION */(function(module) { - -function assembleStyles () { - var styles = { - modifiers: { - reset: [0, 0], - bold: [1, 22], // 21 isn't widely supported and 22 does the same thing - dim: [2, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29] - }, - colors: { - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - gray: [90, 39] - }, - bgColors: { - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49] - } - }; - - // fix humans - styles.colors.grey = styles.colors.gray; - - Object.keys(styles).forEach(function (groupName) { - var group = styles[groupName]; - - Object.keys(group).forEach(function (styleName) { - var style = group[styleName]; - - styles[styleName] = group[styleName] = { - open: '\u001b[' + style[0] + 'm', - close: '\u001b[' + style[1] + 'm' - }; - }); - - Object.defineProperty(styles, groupName, { - value: group, - enumerable: false - }); - }); - - return styles; -} - -Object.defineProperty(module, 'exports', { - enumerable: true, - get: assembleStyles -}); - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(86)(module))); - -/***/ }), -/* 117 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) { -var argv = process.argv; - -var terminator = argv.indexOf('--'); -var hasFlag = function (flag) { - flag = '--' + flag; - var pos = argv.indexOf(flag); - return pos !== -1 && (terminator !== -1 ? pos < terminator : true); -}; - -module.exports = (function () { - if ('FORCE_COLOR' in process.env) { - return true; - } - - if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false')) { - return false; - } - - if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - return true; - } - - if (process.stdout && !process.stdout.isTTY) { - return false; - } - - if (process.platform === 'win32') { - return true; - } - - if ('COLORTERM' in process.env) { - return true; - } - - if (process.env.TERM === 'dumb') { - return false; - } - - if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) { - return true; - } - - return false; -})(); - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7))); - -/***/ }), -/* 118 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -/** - * Contains helpers for safely splitting lists of CSS values, - * preserving parentheses and quotes. - * - * @example - * const list = postcss.list; - * - * @namespace list - */ -var list = { - split: function split(string, separators, last) { - var array = []; - var current = ''; - var split = false; - - var func = 0; - var quote = false; - var escape = false; - - for (var i = 0; i < string.length; i++) { - var letter = string[i]; - - if (quote) { - if (escape) { - escape = false; - } else if (letter === '\\') { - escape = true; - } else if (letter === quote) { - quote = false; - } - } else if (letter === '"' || letter === '\'') { - quote = letter; - } else if (letter === '(') { - func += 1; - } else if (letter === ')') { - if (func > 0) func -= 1; - } else if (func === 0) { - if (separators.indexOf(letter) !== -1) split = true; - } - - if (split) { - if (current !== '') array.push(current.trim()); - current = ''; - split = false; - } else { - current += letter; - } - } - - if (last || current !== '') array.push(current.trim()); - return array; - }, - - - /** - * Safely splits space-separated values (such as those for `background`, - * `border-radius`, and other shorthand properties). - * - * @param {string} string - space-separated values - * - * @return {string[]} split values - * - * @example - * postcss.list.space('1px calc(10% + 1px)') //=> ['1px', 'calc(10% + 1px)'] - */ - space: function space(string) { - var spaces = [' ', '\n', '\t']; - return list.split(string, spaces); - }, - - - /** - * Safely splits comma-separated values (such as those for `transition-*` - * and `background` properties). - * - * @param {string} string - comma-separated values - * - * @return {string[]} split values - * - * @example - * postcss.list.comma('black, linear-gradient(white, black)') - * //=> ['black', 'linear-gradient(white, black)'] - */ - comma: function comma(string) { - var comma = ','; - return list.split(string, [comma], true); - } -}; - -exports.default = list; -module.exports = exports['default']; - - - -/***/ }), -/* 119 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _jsBase = __webpack_require__(35); - -var _sourceMap = __webpack_require__(13); - -var _sourceMap2 = _interopRequireDefault(_sourceMap); - -var _path = __webpack_require__(5); - -var _path2 = _interopRequireDefault(_path); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var MapGenerator = function () { - function MapGenerator(stringify, root, opts) { - _classCallCheck(this, MapGenerator); - - this.stringify = stringify; - this.mapOpts = opts.map || {}; - this.root = root; - this.opts = opts; - } - - MapGenerator.prototype.isMap = function isMap() { - if (typeof this.opts.map !== 'undefined') { - return !!this.opts.map; - } else { - return this.previous().length > 0; - } - }; - - MapGenerator.prototype.previous = function previous() { - var _this = this; - - if (!this.previousMaps) { - this.previousMaps = []; - this.root.walk(function (node) { - if (node.source && node.source.input.map) { - var map = node.source.input.map; - if (_this.previousMaps.indexOf(map) === -1) { - _this.previousMaps.push(map); - } - } - }); - } - - return this.previousMaps; - }; - - MapGenerator.prototype.isInline = function isInline() { - if (typeof this.mapOpts.inline !== 'undefined') { - return this.mapOpts.inline; - } - - var annotation = this.mapOpts.annotation; - if (typeof annotation !== 'undefined' && annotation !== true) { - return false; - } - - if (this.previous().length) { - return this.previous().some(function (i) { - return i.inline; - }); - } else { - return true; - } - }; - - MapGenerator.prototype.isSourcesContent = function isSourcesContent() { - if (typeof this.mapOpts.sourcesContent !== 'undefined') { - return this.mapOpts.sourcesContent; - } - if (this.previous().length) { - return this.previous().some(function (i) { - return i.withContent(); - }); - } else { - return true; - } - }; - - MapGenerator.prototype.clearAnnotation = function clearAnnotation() { - if (this.mapOpts.annotation === false) return; - - var node = void 0; - for (var i = this.root.nodes.length - 1; i >= 0; i--) { - node = this.root.nodes[i]; - if (node.type !== 'comment') continue; - if (node.text.indexOf('# sourceMappingURL=') === 0) { - this.root.removeChild(i); - } - } - }; - - MapGenerator.prototype.setSourcesContent = function setSourcesContent() { - var _this2 = this; - - var already = {}; - this.root.walk(function (node) { - if (node.source) { - var from = node.source.input.from; - if (from && !already[from]) { - already[from] = true; - var relative = _this2.relative(from); - _this2.map.setSourceContent(relative, node.source.input.css); - } - } - }); - }; - - MapGenerator.prototype.applyPrevMaps = function applyPrevMaps() { - for (var _iterator = this.previous(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var prev = _ref; - - var from = this.relative(prev.file); - var root = prev.root || _path2.default.dirname(prev.file); - var map = void 0; - - if (this.mapOpts.sourcesContent === false) { - map = new _sourceMap2.default.SourceMapConsumer(prev.text); - if (map.sourcesContent) { - map.sourcesContent = map.sourcesContent.map(function () { - return null; - }); - } - } else { - map = prev.consumer(); - } - - this.map.applySourceMap(map, from, this.relative(root)); - } - }; - - MapGenerator.prototype.isAnnotation = function isAnnotation() { - if (this.isInline()) { - return true; - } else if (typeof this.mapOpts.annotation !== 'undefined') { - return this.mapOpts.annotation; - } else if (this.previous().length) { - return this.previous().some(function (i) { - return i.annotation; - }); - } else { - return true; - } - }; - - MapGenerator.prototype.addAnnotation = function addAnnotation() { - var content = void 0; - - if (this.isInline()) { - content = 'data:application/json;base64,' + _jsBase.Base64.encode(this.map.toString()); - } else if (typeof this.mapOpts.annotation === 'string') { - content = this.mapOpts.annotation; - } else { - content = this.outputFile() + '.map'; - } - - var eol = '\n'; - if (this.css.indexOf('\r\n') !== -1) eol = '\r\n'; - - this.css += eol + '/*# sourceMappingURL=' + content + ' */'; - }; - - MapGenerator.prototype.outputFile = function outputFile() { - if (this.opts.to) { - return this.relative(this.opts.to); - } else if (this.opts.from) { - return this.relative(this.opts.from); - } else { - return 'to.css'; - } - }; - - MapGenerator.prototype.generateMap = function generateMap() { - this.generateString(); - if (this.isSourcesContent()) this.setSourcesContent(); - if (this.previous().length > 0) this.applyPrevMaps(); - if (this.isAnnotation()) this.addAnnotation(); - - if (this.isInline()) { - return [this.css]; - } else { - return [this.css, this.map]; - } - }; - - MapGenerator.prototype.relative = function relative(file) { - if (file.indexOf('<') === 0) return file; - if (/^\w+:\/\//.test(file)) return file; - - var from = this.opts.to ? _path2.default.dirname(this.opts.to) : '.'; - - if (typeof this.mapOpts.annotation === 'string') { - from = _path2.default.dirname(_path2.default.resolve(from, this.mapOpts.annotation)); - } - - file = _path2.default.relative(from, file); - if (_path2.default.sep === '\\') { - return file.replace(/\\/g, '/'); - } else { - return file; - } - }; - - MapGenerator.prototype.sourcePath = function sourcePath(node) { - if (this.mapOpts.from) { - return this.mapOpts.from; - } else { - return this.relative(node.source.input.from); - } - }; - - MapGenerator.prototype.generateString = function generateString() { - var _this3 = this; - - this.css = ''; - this.map = new _sourceMap2.default.SourceMapGenerator({ file: this.outputFile() }); - - var line = 1; - var column = 1; - - var lines = void 0, - last = void 0; - this.stringify(this.root, function (str, node, type) { - _this3.css += str; - - if (node && type !== 'end') { - if (node.source && node.source.start) { - _this3.map.addMapping({ - source: _this3.sourcePath(node), - generated: { line: line, column: column - 1 }, - original: { - line: node.source.start.line, - column: node.source.start.column - 1 - } - }); - } else { - _this3.map.addMapping({ - source: '', - original: { line: 1, column: 0 }, - generated: { line: line, column: column - 1 } - }); - } - } - - lines = str.match(/\n/g); - if (lines) { - line += lines.length; - last = str.lastIndexOf('\n'); - column = str.length - last; - } else { - column += str.length; - } - - if (node && type !== 'start') { - if (node.source && node.source.end) { - _this3.map.addMapping({ - source: _this3.sourcePath(node), - generated: { line: line, column: column - 1 }, - original: { - line: node.source.end.line, - column: node.source.end.column - } - }); - } else { - _this3.map.addMapping({ - source: '', - original: { line: 1, column: 0 }, - generated: { line: line, column: column - 1 } - }); - } - } - }); - }; - - MapGenerator.prototype.generate = function generate() { - this.clearAnnotation(); - - if (this.isMap()) { - return this.generateMap(); - } else { - var result = ''; - this.stringify(this.root, function (i) { - result += i; - }); - return [result]; - } - }; - - return MapGenerator; -}(); - -exports.default = MapGenerator; -module.exports = exports['default']; - - - -/***/ }), -/* 120 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _jsBase = __webpack_require__(35); - -var _sourceMap = __webpack_require__(13); - -var _sourceMap2 = _interopRequireDefault(_sourceMap); - -var _path = __webpack_require__(5); - -var _path2 = _interopRequireDefault(_path); - -var _fs = __webpack_require__(161); - -var _fs2 = _interopRequireDefault(_fs); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Source map information from input CSS. - * For example, source map after Sass compiler. - * - * This class will automatically find source map in input CSS or in file system - * near input file (according `from` option). - * - * @example - * const root = postcss.parse(css, { from: 'a.sass.css' }); - * root.input.map //=> PreviousMap - */ -var PreviousMap = function () { - - /** - * @param {string} css - input CSS source - * @param {processOptions} [opts] - {@link Processor#process} options - */ - function PreviousMap(css, opts) { - _classCallCheck(this, PreviousMap); - - this.loadAnnotation(css); - /** - * @member {boolean} - Was source map inlined by data-uri to input CSS. - */ - this.inline = this.startWith(this.annotation, 'data:'); - - var prev = opts.map ? opts.map.prev : undefined; - var text = this.loadMap(opts.from, prev); - if (text) this.text = text; - } - - /** - * Create a instance of `SourceMapGenerator` class - * from the `source-map` library to work with source map information. - * - * It is lazy method, so it will create object only on first call - * and then it will use cache. - * - * @return {SourceMapGenerator} object with source map information - */ - - - PreviousMap.prototype.consumer = function consumer() { - if (!this.consumerCache) { - this.consumerCache = new _sourceMap2.default.SourceMapConsumer(this.text); - } - return this.consumerCache; - }; - - /** - * Does source map contains `sourcesContent` with input source text. - * - * @return {boolean} Is `sourcesContent` present - */ - - - PreviousMap.prototype.withContent = function withContent() { - return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0); - }; - - PreviousMap.prototype.startWith = function startWith(string, start) { - if (!string) return false; - return string.substr(0, start.length) === start; - }; - - PreviousMap.prototype.loadAnnotation = function loadAnnotation(css) { - var match = css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//); - if (match) this.annotation = match[1].trim(); - }; - - PreviousMap.prototype.decodeInline = function decodeInline(text) { - var utfd64 = 'data:application/json;charset=utf-8;base64,'; - var utf64 = 'data:application/json;charset=utf8;base64,'; - var b64 = 'data:application/json;base64,'; - var uri = 'data:application/json,'; - - if (this.startWith(text, uri)) { - return decodeURIComponent(text.substr(uri.length)); - } else if (this.startWith(text, b64)) { - return _jsBase.Base64.decode(text.substr(b64.length)); - } else if (this.startWith(text, utf64)) { - return _jsBase.Base64.decode(text.substr(utf64.length)); - } else if (this.startWith(text, utfd64)) { - return _jsBase.Base64.decode(text.substr(utfd64.length)); - } else { - var encoding = text.match(/data:application\/json;([^,]+),/)[1]; - throw new Error('Unsupported source map encoding ' + encoding); - } - }; - - PreviousMap.prototype.loadMap = function loadMap(file, prev) { - if (prev === false) return false; - - if (prev) { - if (typeof prev === 'string') { - return prev; - } else if (typeof prev === 'function') { - var prevPath = prev(file); - if (prevPath && _fs2.default.existsSync && _fs2.default.existsSync(prevPath)) { - return _fs2.default.readFileSync(prevPath, 'utf-8').toString().trim(); - } else { - throw new Error('Unable to load previous source map: ' + prevPath.toString()); - } - } else if (prev instanceof _sourceMap2.default.SourceMapConsumer) { - return _sourceMap2.default.SourceMapGenerator.fromSourceMap(prev).toString(); - } else if (prev instanceof _sourceMap2.default.SourceMapGenerator) { - return prev.toString(); - } else if (this.isMap(prev)) { - return JSON.stringify(prev); - } else { - throw new Error('Unsupported previous source map format: ' + prev.toString()); - } - } else if (this.inline) { - return this.decodeInline(this.annotation); - } else if (this.annotation) { - var map = this.annotation; - if (file) map = _path2.default.join(_path2.default.dirname(file), map); - - this.root = _path2.default.dirname(map); - if (_fs2.default.existsSync && _fs2.default.existsSync(map)) { - return _fs2.default.readFileSync(map, 'utf-8').toString().trim(); - } else { - return false; - } - } - }; - - PreviousMap.prototype.isMap = function isMap(map) { - if ((typeof map === 'undefined' ? 'undefined' : _typeof(map)) !== 'object') return false; - return typeof map.mappings === 'string' || typeof map._mappings === 'string'; - }; - - return PreviousMap; -}(); - -exports.default = PreviousMap; -module.exports = exports['default']; - - - -/***/ }), -/* 121 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _lazyResult = __webpack_require__(39); - -var _lazyResult2 = _interopRequireDefault(_lazyResult); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Contains plugins to process CSS. Create one `Processor` instance, - * initialize its plugins, and then use that instance on numerous CSS files. - * - * @example - * const processor = postcss([autoprefixer, precss]); - * processor.process(css1).then(result => console.log(result.css)); - * processor.process(css2).then(result => console.log(result.css)); - */ -var Processor = function () { - - /** - * @param {Array.|Processor} plugins - PostCSS - * plugins. See {@link Processor#use} for plugin format. - */ - function Processor() { - var plugins = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - - _classCallCheck(this, Processor); - - /** - * @member {string} - Current PostCSS version. - * - * @example - * if ( result.processor.version.split('.')[0] !== '5' ) { - * throw new Error('This plugin works only with PostCSS 5'); - * } - */ - this.version = '5.2.17'; - /** - * @member {pluginFunction[]} - Plugins added to this processor. - * - * @example - * const processor = postcss([autoprefixer, precss]); - * processor.plugins.length //=> 2 - */ - this.plugins = this.normalize(plugins); - } - - /** - * Adds a plugin to be used as a CSS processor. - * - * PostCSS plugin can be in 4 formats: - * * A plugin created by {@link postcss.plugin} method. - * * A function. PostCSS will pass the function a @{link Root} - * as the first argument and current {@link Result} instance - * as the second. - * * An object with a `postcss` method. PostCSS will use that method - * as described in #2. - * * Another {@link Processor} instance. PostCSS will copy plugins - * from that instance into this one. - * - * Plugins can also be added by passing them as arguments when creating - * a `postcss` instance (see [`postcss(plugins)`]). - * - * Asynchronous plugins should return a `Promise` instance. - * - * @param {Plugin|pluginFunction|Processor} plugin - PostCSS plugin - * or {@link Processor} - * with plugins - * - * @example - * const processor = postcss() - * .use(autoprefixer) - * .use(precss); - * - * @return {Processes} current processor to make methods chain - */ - - - Processor.prototype.use = function use(plugin) { - this.plugins = this.plugins.concat(this.normalize([plugin])); - return this; - }; - - /** - * Parses source CSS and returns a {@link LazyResult} Promise proxy. - * Because some plugins can be asynchronous it doesn’t make - * any transformations. Transformations will be applied - * in the {@link LazyResult} methods. - * - * @param {string|toString|Result} css - String with input CSS or - * any object with a `toString()` - * method, like a Buffer. - * Optionally, send a {@link Result} - * instance and the processor will - * take the {@link Root} from it. - * @param {processOptions} [opts] - options - * - * @return {LazyResult} Promise proxy - * - * @example - * processor.process(css, { from: 'a.css', to: 'a.out.css' }) - * .then(result => { - * console.log(result.css); - * }); - */ - - - Processor.prototype.process = function process(css) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - return new _lazyResult2.default(this, css, opts); - }; - - Processor.prototype.normalize = function normalize(plugins) { - var normalized = []; - for (var _iterator = plugins, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var i = _ref; - - if (i.postcss) i = i.postcss; - - if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && Array.isArray(i.plugins)) { - normalized = normalized.concat(i.plugins); - } else if (typeof i === 'function') { - normalized.push(i); - } else if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && (i.parse || i.stringify)) { - throw new Error('PostCSS syntaxes cannot be used as plugins. ' + 'Instead, please use one of the ' + 'syntax/parser/stringifier options as ' + 'outlined in your PostCSS ' + 'runner documentation.'); - } else { - throw new Error(i + ' is not a PostCSS plugin'); - } - } - return normalized; - }; - - return Processor; -}(); - -exports.default = Processor; - -/** - * @callback builder - * @param {string} part - part of generated CSS connected to this node - * @param {Node} node - AST node - * @param {"start"|"end"} [type] - node’s part type - */ - -/** - * @callback parser - * - * @param {string|toString} css - string with input CSS or any object - * with toString() method, like a Buffer - * @param {processOptions} [opts] - options with only `from` and `map` keys - * - * @return {Root} PostCSS AST - */ - -/** - * @callback stringifier - * - * @param {Node} node - start node for stringifing. Usually {@link Root}. - * @param {builder} builder - function to concatenate CSS from node’s parts - * or generate string and source map - * - * @return {void} - */ - -/** - * @typedef {object} syntax - * @property {parser} parse - function to generate AST by string - * @property {stringifier} stringify - function to generate string by AST - */ - -/** - * @typedef {object} toString - * @property {function} toString - */ - -/** - * @callback pluginFunction - * @param {Root} root - parsed input CSS - * @param {Result} result - result to set warnings or check other plugins - */ - -/** - * @typedef {object} Plugin - * @property {function} postcss - PostCSS plugin function - */ - -/** - * @typedef {object} processOptions - * @property {string} from - the path of the CSS source file. - * You should always set `from`, - * because it is used in source map - * generation and syntax error messages. - * @property {string} to - the path where you’ll put the output - * CSS file. You should always set `to` - * to generate correct source maps. - * @property {parser} parser - function to generate AST by string - * @property {stringifier} stringifier - class to generate string by AST - * @property {syntax} syntax - object with `parse` and `stringify` - * @property {object} map - source map options - * @property {boolean} map.inline - does source map should - * be embedded in the output - * CSS as a base64-encoded - * comment - * @property {string|object|false|function} map.prev - source map content - * from a previous - * processing step - * (for example, Sass). - * PostCSS will try to find - * previous map - * automatically, so you - * could disable it by - * `false` value. - * @property {boolean} map.sourcesContent - does PostCSS should set - * the origin content to map - * @property {string|false} map.annotation - does PostCSS should set - * annotation comment to map - * @property {string} map.from - override `from` in map’s - * `sources` - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 122 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _warning = __webpack_require__(124); - -var _warning2 = _interopRequireDefault(_warning); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Provides the result of the PostCSS transformations. - * - * A Result instance is returned by {@link LazyResult#then} - * or {@link Root#toResult} methods. - * - * @example - * postcss([cssnext]).process(css).then(function (result) { - * console.log(result.css); - * }); - * - * @example - * var result2 = postcss.parse(css).toResult(); - */ -var Result = function () { - - /** - * @param {Processor} processor - processor used for this transformation. - * @param {Root} root - Root node after all transformations. - * @param {processOptions} opts - options from the {@link Processor#process} - * or {@link Root#toResult} - */ - function Result(processor, root, opts) { - _classCallCheck(this, Result); - - /** - * @member {Processor} - The Processor instance used - * for this transformation. - * - * @example - * for ( let plugin of result.processor.plugins) { - * if ( plugin.postcssPlugin === 'postcss-bad' ) { - * throw 'postcss-good is incompatible with postcss-bad'; - * } - * }); - */ - this.processor = processor; - /** - * @member {Message[]} - Contains messages from plugins - * (e.g., warnings or custom messages). - * Each message should have type - * and plugin properties. - * - * @example - * postcss.plugin('postcss-min-browser', () => { - * return (root, result) => { - * var browsers = detectMinBrowsersByCanIUse(root); - * result.messages.push({ - * type: 'min-browser', - * plugin: 'postcss-min-browser', - * browsers: browsers - * }); - * }; - * }); - */ - this.messages = []; - /** - * @member {Root} - Root node after all transformations. - * - * @example - * root.toResult().root == root; - */ - this.root = root; - /** - * @member {processOptions} - Options from the {@link Processor#process} - * or {@link Root#toResult} call - * that produced this Result instance. - * - * @example - * root.toResult(opts).opts == opts; - */ - this.opts = opts; - /** - * @member {string} - A CSS string representing of {@link Result#root}. - * - * @example - * postcss.parse('a{}').toResult().css //=> "a{}" - */ - this.css = undefined; - /** - * @member {SourceMapGenerator} - An instance of `SourceMapGenerator` - * class from the `source-map` library, - * representing changes - * to the {@link Result#root} instance. - * - * @example - * result.map.toJSON() //=> { version: 3, file: 'a.css', … } - * - * @example - * if ( result.map ) { - * fs.writeFileSync(result.opts.to + '.map', result.map.toString()); - * } - */ - this.map = undefined; - } - - /** - * Returns for @{link Result#css} content. - * - * @example - * result + '' === result.css - * - * @return {string} string representing of {@link Result#root} - */ - - - Result.prototype.toString = function toString() { - return this.css; - }; - - /** - * Creates an instance of {@link Warning} and adds it - * to {@link Result#messages}. - * - * @param {string} text - warning message - * @param {Object} [opts] - warning options - * @param {Node} opts.node - CSS node that caused the warning - * @param {string} opts.word - word in CSS source that caused the warning - * @param {number} opts.index - index in CSS node string that caused - * the warning - * @param {string} opts.plugin - name of the plugin that created - * this warning. {@link Result#warn} fills - * this property automatically. - * - * @return {Warning} created warning - */ - - - Result.prototype.warn = function warn(text) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (!opts.plugin) { - if (this.lastPlugin && this.lastPlugin.postcssPlugin) { - opts.plugin = this.lastPlugin.postcssPlugin; - } - } - - var warning = new _warning2.default(text, opts); - this.messages.push(warning); - - return warning; - }; - - /** - * Returns warnings from plugins. Filters {@link Warning} instances - * from {@link Result#messages}. - * - * @example - * result.warnings().forEach(warn => { - * console.warn(warn.toString()); - * }); - * - * @return {Warning[]} warnings from plugins - */ - - - Result.prototype.warnings = function warnings() { - return this.messages.filter(function (i) { - return i.type === 'warning'; - }); - }; - - /** - * An alias for the {@link Result#css} property. - * Use it with syntaxes that generate non-CSS output. - * @type {string} - * - * @example - * result.css === result.content; - */ - - - _createClass(Result, [{ - key: 'content', - get: function get() { - return this.css; - } - }]); - - return Result; -}(); - -exports.default = Result; - -/** - * @typedef {object} Message - * @property {string} type - message type - * @property {string} plugin - source PostCSS plugin name - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 123 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _chalk = __webpack_require__(36); - -var _chalk2 = _interopRequireDefault(_chalk); - -var _tokenize = __webpack_require__(44); - -var _tokenize2 = _interopRequireDefault(_tokenize); - -var _input = __webpack_require__(19); - -var _input2 = _interopRequireDefault(_input); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var colors = new _chalk2.default.constructor({ enabled: true }); - -var HIGHLIGHT_THEME = { - 'brackets': colors.cyan, - 'at-word': colors.cyan, - 'call': colors.cyan, - 'comment': colors.gray, - 'string': colors.green, - 'class': colors.yellow, - 'hash': colors.magenta, - '(': colors.cyan, - ')': colors.cyan, - '{': colors.yellow, - '}': colors.yellow, - '[': colors.yellow, - ']': colors.yellow, - ':': colors.yellow, - ';': colors.yellow -}; - -function getTokenType(_ref, index, tokens) { - var type = _ref[0], - value = _ref[1]; - - if (type === 'word') { - if (value[0] === '.') { - return 'class'; - } - if (value[0] === '#') { - return 'hash'; - } - } - - var nextToken = tokens[index + 1]; - if (nextToken && (nextToken[0] === 'brackets' || nextToken[0] === '(')) { - return 'call'; - } - - return type; -} - -function terminalHighlight(css) { - var tokens = (0, _tokenize2.default)(new _input2.default(css), { ignoreErrors: true }); - return tokens.map(function (token, index) { - var color = HIGHLIGHT_THEME[getTokenType(token, index, tokens)]; - if (color) { - return token[1].split(/\r?\n/).map(function (i) { - return color(i); - }).join('\n'); - } else { - return token[1]; - } - }).join(''); -} - -exports.default = terminalHighlight; -module.exports = exports['default']; - - - -/***/ }), -/* 124 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Represents a plugin’s warning. It can be created using {@link Node#warn}. - * - * @example - * if ( decl.important ) { - * decl.warn(result, 'Avoid !important', { word: '!important' }); - * } - */ -var Warning = function () { - - /** - * @param {string} text - warning message - * @param {Object} [opts] - warning options - * @param {Node} opts.node - CSS node that caused the warning - * @param {string} opts.word - word in CSS source that caused the warning - * @param {number} opts.index - index in CSS node string that caused - * the warning - * @param {string} opts.plugin - name of the plugin that created - * this warning. {@link Result#warn} fills - * this property automatically. - */ - function Warning(text) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Warning); - - /** - * @member {string} - Type to filter warnings from - * {@link Result#messages}. Always equal - * to `"warning"`. - * - * @example - * const nonWarning = result.messages.filter(i => i.type !== 'warning') - */ - this.type = 'warning'; - /** - * @member {string} - The warning message. - * - * @example - * warning.text //=> 'Try to avoid !important' - */ - this.text = text; - - if (opts.node && opts.node.source) { - var pos = opts.node.positionBy(opts); - /** - * @member {number} - Line in the input file - * with this warning’s source - * - * @example - * warning.line //=> 5 - */ - this.line = pos.line; - /** - * @member {number} - Column in the input file - * with this warning’s source. - * - * @example - * warning.column //=> 6 - */ - this.column = pos.column; - } - - for (var opt in opts) { - this[opt] = opts[opt]; - } - } - - /** - * Returns a warning position and message. - * - * @example - * warning.toString() //=> 'postcss-lint:a.css:10:14: Avoid !important' - * - * @return {string} warning position and message - */ - - - Warning.prototype.toString = function toString() { - if (this.node) { - return this.node.error(this.text, { - plugin: this.plugin, - index: this.index, - word: this.word - }).message; - } else if (this.plugin) { - return this.plugin + ': ' + this.text; - } else { - return this.text; - } - }; - - /** - * @memberof Warning# - * @member {string} plugin - The name of the plugin that created - * it will fill this property automatically. - * this warning. When you call {@link Node#warn} - * - * @example - * warning.plugin //=> 'postcss-important' - */ - - /** - * @memberof Warning# - * @member {Node} node - Contains the CSS node that caused the warning. - * - * @example - * warning.node.toString() //=> 'color: white !important' - */ - - return Warning; -}(); - -exports.default = Warning; -module.exports = exports['default']; - - - -/***/ }), -/* 125 */ -/***/ (function(module, exports, __webpack_require__) { - "use strict"; @@ -18205,11 +16812,11 @@ exports.parseMediaFeature = parseMediaFeature; exports.parseMediaQuery = parseMediaQuery; exports.parseMediaList = parseMediaList; -var _Node = __webpack_require__(46); +var _Node = __webpack_require__(37); var _Node2 = _interopRequireDefault(_Node); -var _Container = __webpack_require__(45); +var _Container = __webpack_require__(36); var _Container2 = _interopRequireDefault(_Container); @@ -18565,7 +17172,7 @@ function parseMediaList(string) { } /***/ }), -/* 126 */ +/* 117 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18608,7 +17215,7 @@ module.exports = exports['default']; /***/ }), -/* 127 */ +/* 118 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18617,11 +17224,11 @@ module.exports = exports['default']; exports.__esModule = true; exports.default = scssParse; -var _input = __webpack_require__(25); +var _input = __webpack_require__(18); var _input2 = _interopRequireDefault(_input); -var _scssParser = __webpack_require__(128); +var _scssParser = __webpack_require__(119); var _scssParser2 = _interopRequireDefault(_scssParser); @@ -18640,7 +17247,7 @@ module.exports = exports['default']; /***/ }), -/* 128 */ +/* 119 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18648,19 +17255,19 @@ module.exports = exports['default']; exports.__esModule = true; -var _comment = __webpack_require__(24); +var _comment = __webpack_require__(17); var _comment2 = _interopRequireDefault(_comment); -var _parser = __webpack_require__(74); +var _parser = __webpack_require__(43); var _parser2 = _interopRequireDefault(_parser); -var _nestedDeclaration = __webpack_require__(126); +var _nestedDeclaration = __webpack_require__(117); var _nestedDeclaration2 = _interopRequireDefault(_nestedDeclaration); -var _scssTokenize = __webpack_require__(131); +var _scssTokenize = __webpack_require__(122); var _scssTokenize2 = _interopRequireDefault(_scssTokenize); @@ -18844,7 +17451,7 @@ module.exports = exports['default']; /***/ }), -/* 129 */ +/* 120 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18852,7 +17459,7 @@ module.exports = exports['default']; exports.__esModule = true; -var _stringifier = __webpack_require__(28); +var _stringifier = __webpack_require__(21); var _stringifier2 = _interopRequireDefault(_stringifier); @@ -18919,7 +17526,7 @@ module.exports = exports['default']; /***/ }), -/* 130 */ +/* 121 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18928,7 +17535,7 @@ module.exports = exports['default']; exports.__esModule = true; exports.default = scssStringify; -var _scssStringifier = __webpack_require__(129); +var _scssStringifier = __webpack_require__(120); var _scssStringifier2 = _interopRequireDefault(_scssStringifier); @@ -18943,7 +17550,7 @@ module.exports = exports['default']; /***/ }), -/* 131 */ +/* 122 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19316,6 +17923,1304 @@ module.exports = exports['default']; +/***/ }), +/* 123 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(module) { + +function assembleStyles () { + var styles = { + modifiers: { + reset: [0, 0], + bold: [1, 22], // 21 isn't widely supported and 22 does the same thing + dim: [2, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + hidden: [8, 28], + strikethrough: [9, 29] + }, + colors: { + black: [30, 39], + red: [31, 39], + green: [32, 39], + yellow: [33, 39], + blue: [34, 39], + magenta: [35, 39], + cyan: [36, 39], + white: [37, 39], + gray: [90, 39] + }, + bgColors: { + bgBlack: [40, 49], + bgRed: [41, 49], + bgGreen: [42, 49], + bgYellow: [43, 49], + bgBlue: [44, 49], + bgMagenta: [45, 49], + bgCyan: [46, 49], + bgWhite: [47, 49] + } + }; + + // fix humans + styles.colors.grey = styles.colors.gray; + + Object.keys(styles).forEach(function (groupName) { + var group = styles[groupName]; + + Object.keys(group).forEach(function (styleName) { + var style = group[styleName]; + + styles[styleName] = group[styleName] = { + open: '\u001b[' + style[0] + 'm', + close: '\u001b[' + style[1] + 'm' + }; + }); + + Object.defineProperty(styles, groupName, { + value: group, + enumerable: false + }); + }); + + return styles; +} + +Object.defineProperty(module, 'exports', { + enumerable: true, + get: assembleStyles +}); + +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(86)(module))); + +/***/ }), +/* 124 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) { +var argv = process.argv; + +var terminator = argv.indexOf('--'); +var hasFlag = function (flag) { + flag = '--' + flag; + var pos = argv.indexOf(flag); + return pos !== -1 && (terminator !== -1 ? pos < terminator : true); +}; + +module.exports = (function () { + if ('FORCE_COLOR' in process.env) { + return true; + } + + if (hasFlag('no-color') || + hasFlag('no-colors') || + hasFlag('color=false')) { + return false; + } + + if (hasFlag('color') || + hasFlag('colors') || + hasFlag('color=true') || + hasFlag('color=always')) { + return true; + } + + if (process.stdout && !process.stdout.isTTY) { + return false; + } + + if (process.platform === 'win32') { + return true; + } + + if ('COLORTERM' in process.env) { + return true; + } + + if (process.env.TERM === 'dumb') { + return false; + } + + if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) { + return true; + } + + return false; +})(); + +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7))); + +/***/ }), +/* 125 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +/** + * Contains helpers for safely splitting lists of CSS values, + * preserving parentheses and quotes. + * + * @example + * const list = postcss.list; + * + * @namespace list + */ +var list = { + split: function split(string, separators, last) { + var array = []; + var current = ''; + var split = false; + + var func = 0; + var quote = false; + var escape = false; + + for (var i = 0; i < string.length; i++) { + var letter = string[i]; + + if (quote) { + if (escape) { + escape = false; + } else if (letter === '\\') { + escape = true; + } else if (letter === quote) { + quote = false; + } + } else if (letter === '"' || letter === '\'') { + quote = letter; + } else if (letter === '(') { + func += 1; + } else if (letter === ')') { + if (func > 0) func -= 1; + } else if (func === 0) { + if (separators.indexOf(letter) !== -1) split = true; + } + + if (split) { + if (current !== '') array.push(current.trim()); + current = ''; + split = false; + } else { + current += letter; + } + } + + if (last || current !== '') array.push(current.trim()); + return array; + }, + + + /** + * Safely splits space-separated values (such as those for `background`, + * `border-radius`, and other shorthand properties). + * + * @param {string} string - space-separated values + * + * @return {string[]} split values + * + * @example + * postcss.list.space('1px calc(10% + 1px)') //=> ['1px', 'calc(10% + 1px)'] + */ + space: function space(string) { + var spaces = [' ', '\n', '\t']; + return list.split(string, spaces); + }, + + + /** + * Safely splits comma-separated values (such as those for `transition-*` + * and `background` properties). + * + * @param {string} string - comma-separated values + * + * @return {string[]} split values + * + * @example + * postcss.list.comma('black, linear-gradient(white, black)') + * //=> ['black', 'linear-gradient(white, black)'] + */ + comma: function comma(string) { + var comma = ','; + return list.split(string, [comma], true); + } +}; + +exports.default = list; +module.exports = exports['default']; + + + +/***/ }), +/* 126 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) { + +exports.__esModule = true; + +var _sourceMap = __webpack_require__(13); + +var _sourceMap2 = _interopRequireDefault(_sourceMap); + +var _path = __webpack_require__(5); + +var _path2 = _interopRequireDefault(_path); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var MapGenerator = function () { + function MapGenerator(stringify, root, opts) { + _classCallCheck(this, MapGenerator); + + this.stringify = stringify; + this.mapOpts = opts.map || {}; + this.root = root; + this.opts = opts; + } + + MapGenerator.prototype.isMap = function isMap() { + if (typeof this.opts.map !== 'undefined') { + return !!this.opts.map; + } else { + return this.previous().length > 0; + } + }; + + MapGenerator.prototype.previous = function previous() { + var _this = this; + + if (!this.previousMaps) { + this.previousMaps = []; + this.root.walk(function (node) { + if (node.source && node.source.input.map) { + var map = node.source.input.map; + if (_this.previousMaps.indexOf(map) === -1) { + _this.previousMaps.push(map); + } + } + }); + } + + return this.previousMaps; + }; + + MapGenerator.prototype.isInline = function isInline() { + if (typeof this.mapOpts.inline !== 'undefined') { + return this.mapOpts.inline; + } + + var annotation = this.mapOpts.annotation; + if (typeof annotation !== 'undefined' && annotation !== true) { + return false; + } + + if (this.previous().length) { + return this.previous().some(function (i) { + return i.inline; + }); + } else { + return true; + } + }; + + MapGenerator.prototype.isSourcesContent = function isSourcesContent() { + if (typeof this.mapOpts.sourcesContent !== 'undefined') { + return this.mapOpts.sourcesContent; + } + if (this.previous().length) { + return this.previous().some(function (i) { + return i.withContent(); + }); + } else { + return true; + } + }; + + MapGenerator.prototype.clearAnnotation = function clearAnnotation() { + if (this.mapOpts.annotation === false) return; + + var node = void 0; + for (var i = this.root.nodes.length - 1; i >= 0; i--) { + node = this.root.nodes[i]; + if (node.type !== 'comment') continue; + if (node.text.indexOf('# sourceMappingURL=') === 0) { + this.root.removeChild(i); + } + } + }; + + MapGenerator.prototype.setSourcesContent = function setSourcesContent() { + var _this2 = this; + + var already = {}; + this.root.walk(function (node) { + if (node.source) { + var from = node.source.input.from; + if (from && !already[from]) { + already[from] = true; + var relative = _this2.relative(from); + _this2.map.setSourceContent(relative, node.source.input.css); + } + } + }); + }; + + MapGenerator.prototype.applyPrevMaps = function applyPrevMaps() { + for (var _iterator = this.previous(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + var _ref; + + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } + + var prev = _ref; + + var from = this.relative(prev.file); + var root = prev.root || _path2.default.dirname(prev.file); + var map = void 0; + + if (this.mapOpts.sourcesContent === false) { + map = new _sourceMap2.default.SourceMapConsumer(prev.text); + if (map.sourcesContent) { + map.sourcesContent = map.sourcesContent.map(function () { + return null; + }); + } + } else { + map = prev.consumer(); + } + + this.map.applySourceMap(map, from, this.relative(root)); + } + }; + + MapGenerator.prototype.isAnnotation = function isAnnotation() { + if (this.isInline()) { + return true; + } else if (typeof this.mapOpts.annotation !== 'undefined') { + return this.mapOpts.annotation; + } else if (this.previous().length) { + return this.previous().some(function (i) { + return i.annotation; + }); + } else { + return true; + } + }; + + MapGenerator.prototype.toBase64 = function toBase64(str) { + if (Buffer) { + return Buffer.from ? Buffer.from(str).toString('base64') : new Buffer(str).toString('base64'); + } else { + return window.btoa(unescape(encodeURIComponent(str))); + } + }; + + MapGenerator.prototype.addAnnotation = function addAnnotation() { + var content = void 0; + + if (this.isInline()) { + + content = 'data:application/json;base64,' + this.toBase64(this.map.toString()); + } else if (typeof this.mapOpts.annotation === 'string') { + content = this.mapOpts.annotation; + } else { + content = this.outputFile() + '.map'; + } + + var eol = '\n'; + if (this.css.indexOf('\r\n') !== -1) eol = '\r\n'; + + this.css += eol + '/*# sourceMappingURL=' + content + ' */'; + }; + + MapGenerator.prototype.outputFile = function outputFile() { + if (this.opts.to) { + return this.relative(this.opts.to); + } else if (this.opts.from) { + return this.relative(this.opts.from); + } else { + return 'to.css'; + } + }; + + MapGenerator.prototype.generateMap = function generateMap() { + this.generateString(); + if (this.isSourcesContent()) this.setSourcesContent(); + if (this.previous().length > 0) this.applyPrevMaps(); + if (this.isAnnotation()) this.addAnnotation(); + + if (this.isInline()) { + return [this.css]; + } else { + return [this.css, this.map]; + } + }; + + MapGenerator.prototype.relative = function relative(file) { + if (file.indexOf('<') === 0) return file; + if (/^\w+:\/\//.test(file)) return file; + + var from = this.opts.to ? _path2.default.dirname(this.opts.to) : '.'; + + if (typeof this.mapOpts.annotation === 'string') { + from = _path2.default.dirname(_path2.default.resolve(from, this.mapOpts.annotation)); + } + + file = _path2.default.relative(from, file); + if (_path2.default.sep === '\\') { + return file.replace(/\\/g, '/'); + } else { + return file; + } + }; + + MapGenerator.prototype.sourcePath = function sourcePath(node) { + if (this.mapOpts.from) { + return this.mapOpts.from; + } else { + return this.relative(node.source.input.from); + } + }; + + MapGenerator.prototype.generateString = function generateString() { + var _this3 = this; + + this.css = ''; + this.map = new _sourceMap2.default.SourceMapGenerator({ file: this.outputFile() }); + + var line = 1; + var column = 1; + + var lines = void 0, + last = void 0; + this.stringify(this.root, function (str, node, type) { + _this3.css += str; + + if (node && type !== 'end') { + if (node.source && node.source.start) { + _this3.map.addMapping({ + source: _this3.sourcePath(node), + generated: { line: line, column: column - 1 }, + original: { + line: node.source.start.line, + column: node.source.start.column - 1 + } + }); + } else { + _this3.map.addMapping({ + source: '', + original: { line: 1, column: 0 }, + generated: { line: line, column: column - 1 } + }); + } + } + + lines = str.match(/\n/g); + if (lines) { + line += lines.length; + last = str.lastIndexOf('\n'); + column = str.length - last; + } else { + column += str.length; + } + + if (node && type !== 'start') { + if (node.source && node.source.end) { + _this3.map.addMapping({ + source: _this3.sourcePath(node), + generated: { line: line, column: column - 1 }, + original: { + line: node.source.end.line, + column: node.source.end.column + } + }); + } else { + _this3.map.addMapping({ + source: '', + original: { line: 1, column: 0 }, + generated: { line: line, column: column - 1 } + }); + } + } + }); + }; + + MapGenerator.prototype.generate = function generate() { + this.clearAnnotation(); + + if (this.isMap()) { + return this.generateMap(); + } else { + var result = ''; + this.stringify(this.root, function (i) { + result += i; + }); + return [result]; + } + }; + + return MapGenerator; +}(); + +exports.default = MapGenerator; +module.exports = exports['default']; + + +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(14).Buffer)); + +/***/ }), +/* 127 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) { + +exports.__esModule = true; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _sourceMap = __webpack_require__(13); + +var _sourceMap2 = _interopRequireDefault(_sourceMap); + +var _path = __webpack_require__(5); + +var _path2 = _interopRequireDefault(_path); + +var _fs = __webpack_require__(161); + +var _fs2 = _interopRequireDefault(_fs); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +/** + * Source map information from input CSS. + * For example, source map after Sass compiler. + * + * This class will automatically find source map in input CSS or in file system + * near input file (according `from` option). + * + * @example + * const root = postcss.parse(css, { from: 'a.sass.css' }); + * root.input.map //=> PreviousMap + */ +var PreviousMap = function () { + + /** + * @param {string} css - input CSS source + * @param {processOptions} [opts] - {@link Processor#process} options + */ + function PreviousMap(css, opts) { + _classCallCheck(this, PreviousMap); + + this.loadAnnotation(css); + /** + * @member {boolean} - Was source map inlined by data-uri to input CSS. + */ + this.inline = this.startWith(this.annotation, 'data:'); + + var prev = opts.map ? opts.map.prev : undefined; + var text = this.loadMap(opts.from, prev); + if (text) this.text = text; + } + + /** + * Create a instance of `SourceMapGenerator` class + * from the `source-map` library to work with source map information. + * + * It is lazy method, so it will create object only on first call + * and then it will use cache. + * + * @return {SourceMapGenerator} object with source map information + */ + + + PreviousMap.prototype.consumer = function consumer() { + if (!this.consumerCache) { + this.consumerCache = new _sourceMap2.default.SourceMapConsumer(this.text); + } + return this.consumerCache; + }; + + /** + * Does source map contains `sourcesContent` with input source text. + * + * @return {boolean} Is `sourcesContent` present + */ + + + PreviousMap.prototype.withContent = function withContent() { + return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0); + }; + + PreviousMap.prototype.startWith = function startWith(string, start) { + if (!string) return false; + return string.substr(0, start.length) === start; + }; + + PreviousMap.prototype.loadAnnotation = function loadAnnotation(css) { + var match = css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//); + if (match) this.annotation = match[1].trim(); + }; + + PreviousMap.prototype.decodeInline = function decodeInline(text) { + // data:application/json;charset=utf-8;base64, + // data:application/json;charset=utf8;base64, + // data:application/json;base64, + var baseUri = /^data:application\/json;(?:charset=utf-?8;)?base64,/; + var uri = 'data:application/json,'; + + if (this.startWith(text, uri)) { + return decodeURIComponent(text.substr(uri.length)); + } else if (baseUri.test(text)) { + return new Buffer(text.substr(RegExp.lastMatch.length), 'base64').toString(); + } else { + var encoding = text.match(/data:application\/json;([^,]+),/)[1]; + throw new Error('Unsupported source map encoding ' + encoding); + } + }; + + PreviousMap.prototype.loadMap = function loadMap(file, prev) { + if (prev === false) return false; + + if (prev) { + if (typeof prev === 'string') { + return prev; + } else if (typeof prev === 'function') { + var prevPath = prev(file); + if (prevPath && _fs2.default.existsSync && _fs2.default.existsSync(prevPath)) { + return _fs2.default.readFileSync(prevPath, 'utf-8').toString().trim(); + } else { + throw new Error('Unable to load previous source map: ' + prevPath.toString()); + } + } else if (prev instanceof _sourceMap2.default.SourceMapConsumer) { + return _sourceMap2.default.SourceMapGenerator.fromSourceMap(prev).toString(); + } else if (prev instanceof _sourceMap2.default.SourceMapGenerator) { + return prev.toString(); + } else if (this.isMap(prev)) { + return JSON.stringify(prev); + } else { + throw new Error('Unsupported previous source map format: ' + prev.toString()); + } + } else if (this.inline) { + return this.decodeInline(this.annotation); + } else if (this.annotation) { + var map = this.annotation; + if (file) map = _path2.default.join(_path2.default.dirname(file), map); + + this.root = _path2.default.dirname(map); + if (_fs2.default.existsSync && _fs2.default.existsSync(map)) { + return _fs2.default.readFileSync(map, 'utf-8').toString().trim(); + } else { + return false; + } + } + }; + + PreviousMap.prototype.isMap = function isMap(map) { + if ((typeof map === 'undefined' ? 'undefined' : _typeof(map)) !== 'object') return false; + return typeof map.mappings === 'string' || typeof map._mappings === 'string'; + }; + + return PreviousMap; +}(); + +exports.default = PreviousMap; +module.exports = exports['default']; + + +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(14).Buffer)); + +/***/ }), +/* 128 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _lazyResult = __webpack_require__(41); + +var _lazyResult2 = _interopRequireDefault(_lazyResult); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +/** + * Contains plugins to process CSS. Create one `Processor` instance, + * initialize its plugins, and then use that instance on numerous CSS files. + * + * @example + * const processor = postcss([autoprefixer, precss]); + * processor.process(css1).then(result => console.log(result.css)); + * processor.process(css2).then(result => console.log(result.css)); + */ +var Processor = function () { + + /** + * @param {Array.|Processor} plugins - PostCSS + * plugins. See {@link Processor#use} for plugin format. + */ + function Processor() { + var plugins = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + + _classCallCheck(this, Processor); + + /** + * @member {string} - Current PostCSS version. + * + * @example + * if ( result.processor.version.split('.')[0] !== '6' ) { + * throw new Error('This plugin works only with PostCSS 6'); + * } + */ + this.version = '6.0.2'; + /** + * @member {pluginFunction[]} - Plugins added to this processor. + * + * @example + * const processor = postcss([autoprefixer, precss]); + * processor.plugins.length //=> 2 + */ + this.plugins = this.normalize(plugins); + } + + /** + * Adds a plugin to be used as a CSS processor. + * + * PostCSS plugin can be in 4 formats: + * * A plugin created by {@link postcss.plugin} method. + * * A function. PostCSS will pass the function a @{link Root} + * as the first argument and current {@link Result} instance + * as the second. + * * An object with a `postcss` method. PostCSS will use that method + * as described in #2. + * * Another {@link Processor} instance. PostCSS will copy plugins + * from that instance into this one. + * + * Plugins can also be added by passing them as arguments when creating + * a `postcss` instance (see [`postcss(plugins)`]). + * + * Asynchronous plugins should return a `Promise` instance. + * + * @param {Plugin|pluginFunction|Processor} plugin - PostCSS plugin + * or {@link Processor} + * with plugins + * + * @example + * const processor = postcss() + * .use(autoprefixer) + * .use(precss); + * + * @return {Processes} current processor to make methods chain + */ + + + Processor.prototype.use = function use(plugin) { + this.plugins = this.plugins.concat(this.normalize([plugin])); + return this; + }; + + /** + * Parses source CSS and returns a {@link LazyResult} Promise proxy. + * Because some plugins can be asynchronous it doesn’t make + * any transformations. Transformations will be applied + * in the {@link LazyResult} methods. + * + * @param {string|toString|Result} css - String with input CSS or + * any object with a `toString()` + * method, like a Buffer. + * Optionally, send a {@link Result} + * instance and the processor will + * take the {@link Root} from it. + * @param {processOptions} [opts] - options + * + * @return {LazyResult} Promise proxy + * + * @example + * processor.process(css, { from: 'a.css', to: 'a.out.css' }) + * .then(result => { + * console.log(result.css); + * }); + */ + + + Processor.prototype.process = function process(css) { + var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + return new _lazyResult2.default(this, css, opts); + }; + + Processor.prototype.normalize = function normalize(plugins) { + var normalized = []; + for (var _iterator = plugins, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + var _ref; + + if (_isArray) { + if (_i >= _iterator.length) break; + _ref = _iterator[_i++]; + } else { + _i = _iterator.next(); + if (_i.done) break; + _ref = _i.value; + } + + var i = _ref; + + if (i.postcss) i = i.postcss; + + if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && Array.isArray(i.plugins)) { + normalized = normalized.concat(i.plugins); + } else if (typeof i === 'function') { + normalized.push(i); + } else if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && (i.parse || i.stringify)) { + throw new Error('PostCSS syntaxes cannot be used as plugins. ' + 'Instead, please use one of the ' + 'syntax/parser/stringifier options as ' + 'outlined in your PostCSS ' + 'runner documentation.'); + } else { + throw new Error(i + ' is not a PostCSS plugin'); + } + } + return normalized; + }; + + return Processor; +}(); + +exports.default = Processor; + +/** + * @callback builder + * @param {string} part - part of generated CSS connected to this node + * @param {Node} node - AST node + * @param {"start"|"end"} [type] - node’s part type + */ + +/** + * @callback parser + * + * @param {string|toString} css - string with input CSS or any object + * with toString() method, like a Buffer + * @param {processOptions} [opts] - options with only `from` and `map` keys + * + * @return {Root} PostCSS AST + */ + +/** + * @callback stringifier + * + * @param {Node} node - start node for stringifing. Usually {@link Root}. + * @param {builder} builder - function to concatenate CSS from node’s parts + * or generate string and source map + * + * @return {void} + */ + +/** + * @typedef {object} syntax + * @property {parser} parse - function to generate AST by string + * @property {stringifier} stringify - function to generate string by AST + */ + +/** + * @typedef {object} toString + * @property {function} toString + */ + +/** + * @callback pluginFunction + * @param {Root} root - parsed input CSS + * @param {Result} result - result to set warnings or check other plugins + */ + +/** + * @typedef {object} Plugin + * @property {function} postcss - PostCSS plugin function + */ + +/** + * @typedef {object} processOptions + * @property {string} from - the path of the CSS source file. + * You should always set `from`, + * because it is used in source map + * generation and syntax error messages. + * @property {string} to - the path where you’ll put the output + * CSS file. You should always set `to` + * to generate correct source maps. + * @property {parser} parser - function to generate AST by string + * @property {stringifier} stringifier - class to generate string by AST + * @property {syntax} syntax - object with `parse` and `stringify` + * @property {object} map - source map options + * @property {boolean} map.inline - does source map should + * be embedded in the output + * CSS as a base64-encoded + * comment + * @property {string|object|false|function} map.prev - source map content + * from a previous + * processing step + * (for example, Sass). + * PostCSS will try to find + * previous map + * automatically, so you + * could disable it by + * `false` value. + * @property {boolean} map.sourcesContent - does PostCSS should set + * the origin content to map + * @property {string|false} map.annotation - does PostCSS should set + * annotation comment to map + * @property {string} map.from - override `from` in map’s + * `sources` + */ + +module.exports = exports['default']; + + + +/***/ }), +/* 129 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _warning = __webpack_require__(132); + +var _warning2 = _interopRequireDefault(_warning); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +/** + * Provides the result of the PostCSS transformations. + * + * A Result instance is returned by {@link LazyResult#then} + * or {@link Root#toResult} methods. + * + * @example + * postcss([cssnext]).process(css).then(function (result) { + * console.log(result.css); + * }); + * + * @example + * var result2 = postcss.parse(css).toResult(); + */ +var Result = function () { + + /** + * @param {Processor} processor - processor used for this transformation. + * @param {Root} root - Root node after all transformations. + * @param {processOptions} opts - options from the {@link Processor#process} + * or {@link Root#toResult} + */ + function Result(processor, root, opts) { + _classCallCheck(this, Result); + + /** + * @member {Processor} - The Processor instance used + * for this transformation. + * + * @example + * for ( let plugin of result.processor.plugins) { + * if ( plugin.postcssPlugin === 'postcss-bad' ) { + * throw 'postcss-good is incompatible with postcss-bad'; + * } + * }); + */ + this.processor = processor; + /** + * @member {Message[]} - Contains messages from plugins + * (e.g., warnings or custom messages). + * Each message should have type + * and plugin properties. + * + * @example + * postcss.plugin('postcss-min-browser', () => { + * return (root, result) => { + * var browsers = detectMinBrowsersByCanIUse(root); + * result.messages.push({ + * type: 'min-browser', + * plugin: 'postcss-min-browser', + * browsers: browsers + * }); + * }; + * }); + */ + this.messages = []; + /** + * @member {Root} - Root node after all transformations. + * + * @example + * root.toResult().root == root; + */ + this.root = root; + /** + * @member {processOptions} - Options from the {@link Processor#process} + * or {@link Root#toResult} call + * that produced this Result instance. + * + * @example + * root.toResult(opts).opts == opts; + */ + this.opts = opts; + /** + * @member {string} - A CSS string representing of {@link Result#root}. + * + * @example + * postcss.parse('a{}').toResult().css //=> "a{}" + */ + this.css = undefined; + /** + * @member {SourceMapGenerator} - An instance of `SourceMapGenerator` + * class from the `source-map` library, + * representing changes + * to the {@link Result#root} instance. + * + * @example + * result.map.toJSON() //=> { version: 3, file: 'a.css', … } + * + * @example + * if ( result.map ) { + * fs.writeFileSync(result.opts.to + '.map', result.map.toString()); + * } + */ + this.map = undefined; + } + + /** + * Returns for @{link Result#css} content. + * + * @example + * result + '' === result.css + * + * @return {string} string representing of {@link Result#root} + */ + + + Result.prototype.toString = function toString() { + return this.css; + }; + + /** + * Creates an instance of {@link Warning} and adds it + * to {@link Result#messages}. + * + * @param {string} text - warning message + * @param {Object} [opts] - warning options + * @param {Node} opts.node - CSS node that caused the warning + * @param {string} opts.word - word in CSS source that caused the warning + * @param {number} opts.index - index in CSS node string that caused + * the warning + * @param {string} opts.plugin - name of the plugin that created + * this warning. {@link Result#warn} fills + * this property automatically. + * + * @return {Warning} created warning + */ + + + Result.prototype.warn = function warn(text) { + var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + if (!opts.plugin) { + if (this.lastPlugin && this.lastPlugin.postcssPlugin) { + opts.plugin = this.lastPlugin.postcssPlugin; + } + } + + var warning = new _warning2.default(text, opts); + this.messages.push(warning); + + return warning; + }; + + /** + * Returns warnings from plugins. Filters {@link Warning} instances + * from {@link Result#messages}. + * + * @example + * result.warnings().forEach(warn => { + * console.warn(warn.toString()); + * }); + * + * @return {Warning[]} warnings from plugins + */ + + + Result.prototype.warnings = function warnings() { + return this.messages.filter(function (i) { + return i.type === 'warning'; + }); + }; + + /** + * An alias for the {@link Result#css} property. + * Use it with syntaxes that generate non-CSS output. + * @type {string} + * + * @example + * result.css === result.content; + */ + + + _createClass(Result, [{ + key: 'content', + get: function get() { + return this.css; + } + }]); + + return Result; +}(); + +exports.default = Result; + +/** + * @typedef {object} Message + * @property {string} type - message type + * @property {string} plugin - source PostCSS plugin name + */ + +module.exports = exports['default']; + + + +/***/ }), +/* 130 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +var _chalk = __webpack_require__(38); + +var _chalk2 = _interopRequireDefault(_chalk); + +var _tokenize = __webpack_require__(46); + +var _tokenize2 = _interopRequireDefault(_tokenize); + +var _input = __webpack_require__(18); + +var _input2 = _interopRequireDefault(_input); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var colors = new _chalk2.default.constructor({ enabled: true }); + +var HIGHLIGHT_THEME = { + 'brackets': colors.cyan, + 'at-word': colors.cyan, + 'call': colors.cyan, + 'comment': colors.gray, + 'string': colors.green, + 'class': colors.yellow, + 'hash': colors.magenta, + '(': colors.cyan, + ')': colors.cyan, + '{': colors.yellow, + '}': colors.yellow, + '[': colors.yellow, + ']': colors.yellow, + ':': colors.yellow, + ';': colors.yellow +}; + +function getTokenType(_ref, processor) { + var type = _ref[0], + value = _ref[1]; + + if (type === 'word') { + if (value[0] === '.') { + return 'class'; + } + if (value[0] === '#') { + return 'hash'; + } + } + + if (!processor.endOfFile()) { + var next = processor.nextToken(); + processor.back(next); + if (next[0] === 'brackets' || next[0] === '(') return 'call'; + } + + return type; +} + +function terminalHighlight(css) { + var processor = (0, _tokenize2.default)(new _input2.default(css), { ignoreErrors: true }); + var result = ''; + + var _loop = function _loop() { + var token = processor.nextToken(); + var color = HIGHLIGHT_THEME[getTokenType(token, processor)]; + if (color) { + result += token[1].split(/\r?\n/).map(function (i) { + return color(i); + }).join('\n'); + } else { + result += token[1]; + } + }; + + while (!processor.endOfFile()) { + _loop(); + } + return result; +} + +exports.default = terminalHighlight; +module.exports = exports['default']; + + + +/***/ }), +/* 131 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.default = warnOnce; +var printed = {}; + +function warnOnce(message) { + if (printed[message]) return; + printed[message] = true; + + if (typeof console !== 'undefined' && console.warn) console.warn(message); +} +module.exports = exports['default']; + + + /***/ }), /* 132 */ /***/ (function(module, exports, __webpack_require__) { @@ -19323,6 +19228,135 @@ module.exports = exports['default']; "use strict"; +exports.__esModule = true; + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +/** + * Represents a plugin’s warning. It can be created using {@link Node#warn}. + * + * @example + * if ( decl.important ) { + * decl.warn(result, 'Avoid !important', { word: '!important' }); + * } + */ +var Warning = function () { + + /** + * @param {string} text - warning message + * @param {Object} [opts] - warning options + * @param {Node} opts.node - CSS node that caused the warning + * @param {string} opts.word - word in CSS source that caused the warning + * @param {number} opts.index - index in CSS node string that caused + * the warning + * @param {string} opts.plugin - name of the plugin that created + * this warning. {@link Result#warn} fills + * this property automatically. + */ + function Warning(text) { + var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + _classCallCheck(this, Warning); + + /** + * @member {string} - Type to filter warnings from + * {@link Result#messages}. Always equal + * to `"warning"`. + * + * @example + * const nonWarning = result.messages.filter(i => i.type !== 'warning') + */ + this.type = 'warning'; + /** + * @member {string} - The warning message. + * + * @example + * warning.text //=> 'Try to avoid !important' + */ + this.text = text; + + if (opts.node && opts.node.source) { + var pos = opts.node.positionBy(opts); + /** + * @member {number} - Line in the input file + * with this warning’s source + * + * @example + * warning.line //=> 5 + */ + this.line = pos.line; + /** + * @member {number} - Column in the input file + * with this warning’s source. + * + * @example + * warning.column //=> 6 + */ + this.column = pos.column; + } + + for (var opt in opts) { + this[opt] = opts[opt]; + } + } + + /** + * Returns a warning position and message. + * + * @example + * warning.toString() //=> 'postcss-lint:a.css:10:14: Avoid !important' + * + * @return {string} warning position and message + */ + + + Warning.prototype.toString = function toString() { + if (this.node) { + return this.node.error(this.text, { + plugin: this.plugin, + index: this.index, + word: this.word + }).message; + } else if (this.plugin) { + return this.plugin + ': ' + this.text; + } else { + return this.text; + } + }; + + /** + * @memberof Warning# + * @member {string} plugin - The name of the plugin that created + * it will fill this property automatically. + * this warning. When you call {@link Node#warn} + * + * @example + * warning.plugin //=> 'postcss-important' + */ + + /** + * @memberof Warning# + * @member {Node} node - Contains the CSS node that caused the warning. + * + * @example + * warning.node.toString() //=> 'color: white !important' + */ + + return Warning; +}(); + +exports.default = Warning; +module.exports = exports['default']; + + + +/***/ }), +/* 133 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + exports.__esModule = true; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -19387,11 +19421,11 @@ var _nesting = __webpack_require__(52); var _nesting2 = _interopRequireDefault(_nesting); -var _sortAscending = __webpack_require__(134); +var _sortAscending = __webpack_require__(135); var _sortAscending2 = _interopRequireDefault(_sortAscending); -var _tokenize = __webpack_require__(135); +var _tokenize = __webpack_require__(136); var _tokenize2 = _interopRequireDefault(_tokenize); @@ -19966,7 +20000,7 @@ exports.default = Parser; module.exports = exports['default']; /***/ }), -/* 133 */ +/* 134 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19976,7 +20010,7 @@ exports.__esModule = true; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _parser = __webpack_require__(132); +var _parser = __webpack_require__(133); var _parser2 = _interopRequireDefault(_parser); @@ -20021,7 +20055,7 @@ exports.default = Processor; module.exports = exports['default']; /***/ }), -/* 134 */ +/* 135 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20037,7 +20071,7 @@ function sortAscending(list) { module.exports = exports["default"]; /***/ }), -/* 135 */ +/* 136 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20274,7 +20308,7 @@ function tokenize(input) { module.exports = exports['default']; /***/ }), -/* 136 */ +/* 137 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20300,7 +20334,7 @@ module.exports = ParserError; /***/ }), -/* 137 */ +/* 138 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20326,13 +20360,13 @@ module.exports = TokenizeError; /***/ }), -/* 138 */ +/* 139 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -const Root = __webpack_require__(139); +const Root = __webpack_require__(140); const Value = __webpack_require__(68); const AtWord = __webpack_require__(59); @@ -20346,12 +20380,12 @@ const Paren = __webpack_require__(66); const Str = __webpack_require__(67); const Word = __webpack_require__(69); -const tokenize = __webpack_require__(140); +const tokenize = __webpack_require__(141); const flatten = __webpack_require__(32); const indexesOf = __webpack_require__(34); const uniq = __webpack_require__(84); -const ParserError = __webpack_require__(136); +const ParserError = __webpack_require__(137); function sortAscending (list) { return list.sort((a, b) => a - b); @@ -20874,7 +20908,7 @@ module.exports = class Parser { /***/ }), -/* 139 */ +/* 140 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20891,7 +20925,7 @@ module.exports = class Root extends Container { /***/ }), -/* 140 */ +/* 141 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20928,7 +20962,7 @@ const wordEndNum = /[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g; const alphaNum = /^[a-z0-9]/i; const util = __webpack_require__(159); -const TokenizeError = __webpack_require__(137); +const TokenizeError = __webpack_require__(138); module.exports = function tokenize (input, options) { @@ -21251,7 +21285,7 @@ module.exports = function tokenize (input, options) { /***/ }), -/* 141 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21353,14 +21387,16 @@ module.exports = exports['default']; /***/ }), -/* 142 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) { + exports.__esModule = true; +var _jsBase = __webpack_require__(35); + var _sourceMap = __webpack_require__(13); var _sourceMap2 = _interopRequireDefault(_sourceMap); @@ -21518,20 +21554,11 @@ var MapGenerator = function () { } }; - MapGenerator.prototype.toBase64 = function toBase64(str) { - if (Buffer) { - return Buffer.from ? Buffer.from(str).toString('base64') : new Buffer(str).toString('base64'); - } else { - return window.btoa(unescape(encodeURIComponent(str))); - } - }; - MapGenerator.prototype.addAnnotation = function addAnnotation() { var content = void 0; if (this.isInline()) { - - content = 'data:application/json;base64,' + this.toBase64(this.map.toString()); + content = 'data:application/json;base64,' + _jsBase.Base64.encode(this.map.toString()); } else if (typeof this.mapOpts.annotation === 'string') { content = this.mapOpts.annotation; } else { @@ -21677,19 +21704,20 @@ exports.default = MapGenerator; module.exports = exports['default']; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(14).Buffer)); /***/ }), -/* 143 */ +/* 144 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) { + exports.__esModule = true; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; +var _jsBase = __webpack_require__(35); + var _sourceMap = __webpack_require__(13); var _sourceMap2 = _interopRequireDefault(_sourceMap); @@ -21777,16 +21805,19 @@ var PreviousMap = function () { }; PreviousMap.prototype.decodeInline = function decodeInline(text) { - // data:application/json;charset=utf-8;base64, - // data:application/json;charset=utf8;base64, - // data:application/json;base64, - var baseUri = /^data:application\/json;(?:charset=utf-?8;)?base64,/; + var utfd64 = 'data:application/json;charset=utf-8;base64,'; + var utf64 = 'data:application/json;charset=utf8;base64,'; + var b64 = 'data:application/json;base64,'; var uri = 'data:application/json,'; if (this.startWith(text, uri)) { return decodeURIComponent(text.substr(uri.length)); - } else if (baseUri.test(text)) { - return new Buffer(text.substr(RegExp.lastMatch.length), 'base64').toString(); + } else if (this.startWith(text, b64)) { + return _jsBase.Base64.decode(text.substr(b64.length)); + } else if (this.startWith(text, utf64)) { + return _jsBase.Base64.decode(text.substr(utf64.length)); + } else if (this.startWith(text, utfd64)) { + return _jsBase.Base64.decode(text.substr(utfd64.length)); } else { var encoding = text.match(/data:application\/json;([^,]+),/)[1]; throw new Error('Unsupported source map encoding ' + encoding); @@ -21842,10 +21873,9 @@ exports.default = PreviousMap; module.exports = exports['default']; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(14).Buffer)); /***/ }), -/* 144 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21887,11 +21917,11 @@ var Processor = function () { * @member {string} - Current PostCSS version. * * @example - * if ( result.processor.version.split('.')[0] !== '6' ) { - * throw new Error('This plugin works only with PostCSS 6'); + * if ( result.processor.version.split('.')[0] !== '5' ) { + * throw new Error('This plugin works only with PostCSS 5'); * } */ - this.version = '6.0.2'; + this.version = '5.2.17'; /** * @member {pluginFunction[]} - Plugins added to this processor. * @@ -22092,7 +22122,7 @@ module.exports = exports['default']; /***/ }), -/* 145 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22305,7 +22335,7 @@ module.exports = exports['default']; /***/ }), -/* 146 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22321,7 +22351,7 @@ var _tokenize = __webpack_require__(77); var _tokenize2 = _interopRequireDefault(_tokenize); -var _input = __webpack_require__(25); +var _input = __webpack_require__(26); var _input2 = _interopRequireDefault(_input); @@ -22347,7 +22377,7 @@ var HIGHLIGHT_THEME = { ';': colors.yellow }; -function getTokenType(_ref, processor) { +function getTokenType(_ref, index, tokens) { var type = _ref[0], value = _ref[1]; @@ -22360,35 +22390,26 @@ function getTokenType(_ref, processor) { } } - if (!processor.endOfFile()) { - var next = processor.nextToken(); - processor.back(next); - if (next[0] === 'brackets' || next[0] === '(') return 'call'; + var nextToken = tokens[index + 1]; + if (nextToken && (nextToken[0] === 'brackets' || nextToken[0] === '(')) { + return 'call'; } return type; } function terminalHighlight(css) { - var processor = (0, _tokenize2.default)(new _input2.default(css), { ignoreErrors: true }); - var result = ''; - - var _loop = function _loop() { - var token = processor.nextToken(); - var color = HIGHLIGHT_THEME[getTokenType(token, processor)]; + var tokens = (0, _tokenize2.default)(new _input2.default(css), { ignoreErrors: true }); + return tokens.map(function (token, index) { + var color = HIGHLIGHT_THEME[getTokenType(token, index, tokens)]; if (color) { - result += token[1].split(/\r?\n/).map(function (i) { + return token[1].split(/\r?\n/).map(function (i) { return color(i); }).join('\n'); } else { - result += token[1]; + return token[1]; } - }; - - while (!processor.endOfFile()) { - _loop(); - } - return result; + }).join(''); } exports.default = terminalHighlight; @@ -22396,27 +22417,6 @@ module.exports = exports['default']; -/***/ }), -/* 147 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = warnOnce; -var printed = {}; - -function warnOnce(message) { - if (printed[message]) return; - printed[message] = true; - - if (typeof console !== 'undefined' && console.warn) console.warn(message); -} -module.exports = exports['default']; - - - /***/ }), /* 148 */ /***/ (function(module, exports, __webpack_require__) { @@ -25440,15 +25440,27 @@ function requireParser(isSCSS) { return __webpack_require__(87); } -function parse(text /*, parsers, opts*/) { - const isLikelySCSS = !!text.match(/(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/); +const IS_POSSIBLY_SCSS = /(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/; + +function parse(text, parsers, opts) { + const hasExplicitParserChoice = + opts.parser === "less" || opts.parser === "scss"; + + const isSCSS = hasExplicitParserChoice + ? opts.parser === "scss" + : IS_POSSIBLY_SCSS.test(text); + try { - return parseWithParser(requireParser(isLikelySCSS), text); - } catch (e) { + return parseWithParser(requireParser(isSCSS), text); + } catch (originalError) { + if (hasExplicitParserChoice) { + throw originalError; + } + try { - return parseWithParser(requireParser(!isLikelySCSS), text); - } catch (e2) { - throw e; + return parseWithParser(requireParser(!isSCSS), text); + } catch (_secondError) { + throw originalError; } } } diff --git a/website/static/lib/parser-typescript.js b/website/static/lib/parser-typescript.js index 6a17b968c..8b604984d 100644 --- a/website/static/lib/parser-typescript.js +++ b/website/static/lib/parser-typescript.js @@ -232,9 +232,9 @@ var process = { uptime: uptime }; -var __dirname = '/Users/suchipi/Code/prettier/dist'; +var __dirname = '/Users/suchipi/p/prettier/dist'; -var __filename = '/Users/suchipi/Code/prettier/dist/parser-typescript.js'; +var __filename = '/Users/suchipi/p/prettier/dist/parser-typescript.js'; var browser$1 = true; @@ -2231,7 +2231,7 @@ function createCommonjsModule(fn, module) { } var parserTypescript_1 = createCommonjsModule(function (module) { -"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function createError$1(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}function includeShebang$1(e,t){if(!e.startsWith("#!"))return;const n=e.indexOf("\n"),r={type:"Line",value:e.slice(2,n),range:[0,n],loc:{source:null,start:{line:1,column:0},end:{line:1,column:n}}};t.comments=[r].concat(t.comments);}function commonjsRequire$$1(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule$$1(e,t){return t={exports:{}},e(t,t.exports),t.exports}function toVLQSigned(e){return e<0?1+(-e<<1):0+(e<<1)}function fromVLQSigned(e){var t=e>>1;return 1==(1&e)?-t:t}function ArraySet$1(){this._array=[],this._set=Object.create(null);}function generatedPositionAfter(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,a=t.generatedColumn;return r>n||r==n&&a>=i||util$4.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList$1(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0};}function SourceMapGenerator$1(e){e||(e={}),this._file=util.getArg(e,"file",null),this._sourceRoot=util.getArg(e,"sourceRoot",null),this._skipValidation=util.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null;}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r;}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,n,r){if(n";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r);}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,u&&a.indexOf("."+u)!=a.length-u.length-1&&(i+=" [as "+u+"]")):i+=c+"."+(u||"");}else s?i+="new "+(a||""):a?i+=a:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function cloneCallSite(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n];}),t.toString=CallSiteToString,t}function wrapCallSite(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1!==n||isInBrowser()||e.isEval()||(r-=62);var i=mapSourcePosition({source:t,line:n,column:r});return e=cloneCallSite(e),e.getFileName=function(){return i.source},e.getLineNumber=function(){return i.line},e.getColumnNumber=function(){return i.column+1},e.getScriptNameOrSourceURL=function(){return i.source},e}var a=e.isEval()&&e.getEvalOrigin();return a?(a=mapEvalOrigin(a),e=cloneCallSite(e),e.getEvalOrigin=function(){return a},e):e}function prepareStackTrace(e,t){return emptyCacheBetweenOperations&&(fileContentsCache={},sourceMapCache={}),e+t.map(function(e){return"\n at "+wrapCallSite(e)}).join("")}function getErrorSource(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],a=fileContentsCache[n];if(!a&&fs$1&&fs$1.existsSync(n)&&(a=fs$1.readFileSync(n,"utf8")),a){var o=a.split(/(?:\r\n|\r|\n)/)[r-1];if(o)return n+":"+r+"\n"+o+"\n"+new Array(i).join(" ")+"^"}}return null}function printErrorAndExit(e){var t=getErrorSource(e);t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1);}function shimEmitUncaughtException(){var e=process.emit;process.emit=function(t){if("uncaughtException"===t){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return printErrorAndExit(arguments[1])}return e.apply(this,arguments)};}function basePropertyOf(e){return function(t){return null==e?void 0:e[t]}}function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY?"-0":t}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toString(e){return null==e?"":baseToString(e)}function unescape$1(e){return e=toString(e),e&&reHasEscapedHtml.test(e)?e.replace(reEscapedHtml,unescapeHtmlChar):e}function findFirstMatchingChild(e,t,n){const r=e.getChildren(t);for(let e=0;e-1}function isLogicalOperator(e){return LOGICAL_OPERATORS.indexOf(e.kind)>-1}function getTextForTokenKind(e){return TOKEN_TO_TEXT[e]}function isESTreeClassMember(e){return e.kind!==SyntaxKind$1.SemicolonClassElement}function hasModifier(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some(t=>t.kind===e)}function isComma(e){return e.kind===SyntaxKind$1.CommaToken}function getBinaryExpressionType(e){return isAssignmentOperator(e)?"AssignmentExpression":isLogicalOperator(e)?"LogicalExpression":"BinaryExpression"}function getLocFor(e,t,n){const r=n.getLineAndCharacterOfPosition(e),i=n.getLineAndCharacterOfPosition(t);return{start:{line:r.line+1,column:r.character},end:{line:i.line+1,column:i.character}}}function getLoc(e,t){return getLocFor(e.getStart(),e.end,t)}function isToken(e){return e.kind>=SyntaxKind$1.FirstToken&&e.kind<=SyntaxKind$1.LastToken}function isJSXToken(e){return e.kind>=SyntaxKind$1.JsxElement&&e.kind<=SyntaxKind$1.JsxAttribute}function isTypeKeyword(e){switch(e){case SyntaxKind$1.AnyKeyword:case SyntaxKind$1.BooleanKeyword:case SyntaxKind$1.NeverKeyword:case SyntaxKind$1.NumberKeyword:case SyntaxKind$1.ObjectKeyword:case SyntaxKind$1.StringKeyword:case SyntaxKind$1.SymbolKeyword:case SyntaxKind$1.VoidKeyword:return!0;default:return!1}}function getDeclarationKind(e){let t;switch(e.kind){case SyntaxKind$1.TypeAliasDeclaration:t="type";break;case SyntaxKind$1.VariableDeclarationList:t=isLet(e)?"let":isConst(e)?"const":"var";break;default:throw"Unable to determine declaration kind."}return t}function getTSNodeAccessibility(e){const t=e.modifiers;if(!t)return null;for(let e=0;ee.kind===t)}function findFirstMatchingAncestor(e,t){for(;e;){if(t(e))return e;e=e.parent;}}function findAncestorOfKind(e,t){return findFirstMatchingAncestor(e,e=>e.kind===t)}function hasJSXAncestor(e){return!!findFirstMatchingAncestor(e,isJSXToken)}function unescapeIdentifier(e){return ts$1.unescapeIdentifier(e)}function unescapeStringLiteralText(e){return unescape(e)}function isComputedProperty(e){return e.kind===SyntaxKind$1.ComputedPropertyName}function isOptional(e){return!!e.questionToken&&e.questionToken.kind===SyntaxKind$1.QuestionToken}function isWithinTypeAnnotation(e){return e.parent.type===e||e.parent.types&&e.parent.types.indexOf(e)>-1}function fixExports(e,t,n){if(e.modifiers&&e.modifiers[0].kind===SyntaxKind$1.ExportKeyword){const r=e.modifiers[0],i=e.modifiers[1],a=e.modifiers[e.modifiers.length-1],o=i&&i.kind===SyntaxKind$1.DefaultKeyword,s=findNextToken(a,n);t.range[0]=s.getStart(),t.loc=getLocFor(t.range[0],t.range[1],n);const c=o?"ExportDefaultDeclaration":"ExportNamedDeclaration",u={type:c,declaration:t,range:[r.getStart(),t.range[1]],loc:getLocFor(r.getStart(),t.range[1],n)};return o||(u.specifiers=[],u.source=null),u}return t}function getTokenType(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case SyntaxKind$1.NullKeyword:return"Null";case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:case SyntaxKind$1.TypeKeyword:case SyntaxKind$1.ModuleKeyword:return"Identifier";default:return"Keyword"}if(e.kind>=SyntaxKind$1.FirstKeyword&&e.kind<=SyntaxKind$1.LastFutureReservedWord)return e.kind===SyntaxKind$1.FalseKeyword||e.kind===SyntaxKind$1.TrueKeyword?"Boolean":"Keyword";if(e.kind>=SyntaxKind$1.FirstPunctuation&&e.kind<=SyntaxKind$1.LastBinaryOperator)return"Punctuator";if(e.kind>=SyntaxKind$1.NoSubstitutionTemplateLiteral&&e.kind<=SyntaxKind$1.TemplateTail)return"Template";switch(e.kind){case SyntaxKind$1.NumericLiteral:return"Numeric";case SyntaxKind$1.JsxText:return"JSXText";case SyntaxKind$1.StringLiteral:return!e.parent||e.parent.kind!==SyntaxKind$1.JsxAttribute&&e.parent.kind!==SyntaxKind$1.JsxElement?"String":"JSXText";case SyntaxKind$1.RegularExpressionLiteral:return"RegularExpression";case SyntaxKind$1.Identifier:case SyntaxKind$1.ConstructorKeyword:case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:}if(e.parent){if(e.kind===SyntaxKind$1.Identifier&&e.parent.kind===SyntaxKind$1.PropertyAccessExpression&&hasJSXAncestor(e))return"JSXIdentifier";if(isJSXToken(e.parent)){if(e.kind===SyntaxKind$1.PropertyAccessExpression)return"JSXMemberExpression";if(e.kind===SyntaxKind$1.Identifier)return"JSXIdentifier"}}return"Identifier"}function convertToken(e,t){const n=e.kind===SyntaxKind$1.JsxText?e.getFullStart():e.getStart(),r=e.getEnd(),i=t.text.slice(n,r),a={type:getTokenType(e),value:i,range:[n,r],loc:getLocFor(n,r,t)};return"RegularExpression"===a.type&&(a.regex={pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}),a}function convertTokens(e){function t(r){if(isToken(r)&&r.kind!==SyntaxKind$1.EndOfFileToken){const t=convertToken(r,e);t&&n.push(t);}else r.getChildren().forEach(t);}const n=[];return t(e),n}function getNodeContainer(e,t,n){function r(e){const a=e.pos,o=e.end;t>=a&&n<=o&&(isToken(e)?i=e:e.getChildren().forEach(r));}let i=null;return r(e),i}function convertTypeScriptCommentToEsprimaComment(e,t,n,r,i,a){const o={type:e?"Block":"Line",value:t};return"number"==typeof n&&(o.range=[n,r]),"object"==typeof i&&(o.loc={start:i,end:a}),o}function getCommentFromTriviaScanner(e,t,n){const r=e.getToken()===ts$2.SyntaxKind.MultiLineCommentTrivia,i={pos:e.getTokenPos(),end:e.getTextPos(),kind:e.getToken()},a=n.substring(i.pos,i.end),o=r?a.replace(/^\/\*/,"").replace(/\*\/$/,""):a.replace(/^\/\//,""),s=nodeUtils$4.getLocFor(i.pos,i.end,t);return convertTypeScriptCommentToEsprimaComment(r,o,i.pos,i.end,s.start,s.end)}function convertComments$1(e,t){const n=[],r=ts$2.createScanner(e.languageVersion,!1,0,t);let i=r.scan();for(;i!==ts$2.SyntaxKind.EndOfFileToken;){const a=r.getTokenPos(),o=r.getTextPos();let s=null;switch(i){case ts$2.SyntaxKind.SingleLineCommentTrivia:case ts$2.SyntaxKind.MultiLineCommentTrivia:{const i=getCommentFromTriviaScanner(r,e,t);n.push(i);break}case ts$2.SyntaxKind.CloseBraceToken:if((s=nodeUtils$4.getNodeContainer(e,a,o)).kind===ts$2.SyntaxKind.TemplateMiddle||s.kind===ts$2.SyntaxKind.TemplateTail){i=r.reScanTemplateToken();continue}break;case ts$2.SyntaxKind.SlashToken:case ts$2.SyntaxKind.SlashEqualsToken:if((s=nodeUtils$4.getNodeContainer(e,a,o)).kind===ts$2.SyntaxKind.RegularExpressionLiteral){i=r.reScanSlashToken();continue}}i=r.scan();}return n}function convertError(e){const t=e.file.getLineAndCharacterOfPosition(e.start);return{index:e.start,lineNumber:t.line+1,column:t.character,message:e.message||e.messageText}}function resetExtra(){extra={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},useJSXTextNode:!1,log:console.log};}function parse$1(e,t){const n=String;if("string"==typeof e||e instanceof String||(e=n(e)),resetExtra(),void 0!==t&&(extra.range="boolean"==typeof t.range&&t.range,extra.loc="boolean"==typeof t.loc&&t.loc,extra.loc&&null!==t.source&&void 0!==t.source&&(extra.source=n(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(extra.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(extra.comment=!0,extra.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(extra.errors=[]),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(extra.ecmaFeatures.jsx=t.ecmaFeatures.jsx),t.errorOnUnknownASTType&&(extra.errorOnUnknownASTType=!0),"boolean"==typeof t.useJSXTextNode&&t.useJSXTextNode&&(extra.useJSXTextNode=!0),"function"==typeof t.loggerFn?extra.log=t.loggerFn:!1===t.loggerFn&&(extra.log=Function.prototype)),!isRunningSupportedTypeScriptVersion&&!warnedAboutTSVersion){const e="=============",t=[e,"WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.","You may find that it works just fine, or you may not.",`SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`,`YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`,"Please only submit bug reports when using the officially supported version.",e];extra.log(t.join("\n\n")),warnedAboutTSVersion=!0;}const r=extra.ecmaFeatures.jsx?"eslint.tsx":"eslint.ts",i={fileExists(){return!0},getCanonicalFileName(){return r},getCurrentDirectory(){return""},getDefaultLibFileName(){return"lib.d.ts"},getNewLine(){return"\n"},getSourceFile(t){return ts.createSourceFile(t,e,ts.ScriptTarget.Latest,!0)},readFile(){return null},useCaseSensitiveFileNames(){return!0},writeFile(){return null}},a=ts.createProgram([r],{noResolve:!0,target:ts.ScriptTarget.Latest,jsx:extra.ecmaFeatures.jsx?"preserve":void 0},i).getSourceFile(r);return extra.code=e,convert(a,extra)}function parse(e){const t=isProbablyJsx(e);let n;try{try{n=tryParseTypeScript(e,t);}catch(r){n=tryParseTypeScript(e,!t);}}catch(e){if(void 0===e.lineNumber)throw e;throw createError(e.message,{start:{line:e.lineNumber,column:e.column+1}})}return delete n.tokens,includeShebang(e,n),n}function tryParseTypeScript(e,t){return parser.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,ecmaFeatures:{jsx:t},loggerFn:()=>{}})}function isProbablyJsx(e){return new RegExp(["(^[^\"'`]*)"].join(""),"m").test(e)}var fs$$1=_interopDefault(fs),path$$1=_interopDefault(path),os$$1=_interopDefault(os),crypto$$1=_interopDefault(crypto),module$1$$1=_interopDefault(module$1),parserCreateError=createError$1,parserIncludeShebang=includeShebang$1,astNodeTypes$1={ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",AwaitExpression:"AwaitExpression",BinaryExpression:"BinaryExpression",BlockStatement:"BlockStatement",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ClassImplements:"ClassImplements",ClassProperty:"ClassProperty",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DeclareFunction:"DeclareFunction",Decorator:"Decorator",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExperimentalRestProperty:"ExperimentalRestProperty",ExperimentalSpreadProperty:"ExperimentalSpreadProperty",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",ForStatement:"ForStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GenericTypeAnnotation:"GenericTypeAnnotation",Identifier:"Identifier",IfStatement:"IfStatement",Import:"Import",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",LabeledStatement:"LabeledStatement",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TSAbstractClassProperty:"TSAbstractClassProperty",TSAbstractKeyword:"TSAbstractKeyword",TSAbstractMethodDefinition:"TSAbstractMethodDefinition",TSAnyKeyword:"TSAnyKeyword",TSArrayType:"TSArrayType",TSAsyncKeyword:"TSAsyncKeyword",TSBooleanKeyword:"TSBooleanKeyword",TSConstructorType:"TSConstructorType",TSConstructSignature:"TSConstructSignature",TSDeclareKeyword:"TSDeclareKeyword",TSEnumDeclaration:"TSEnumDeclaration",TSEnumMember:"TSEnumMember",TSExportAssignment:"TSExportAssignment",TSExportKeyword:"TSExportKeyword",TSIndexSignature:"TSIndexSignature",TSInterfaceBody:"TSInterfaceBody",TSInterfaceDeclaration:"TSInterfaceDeclaration",TSInterfaceHeritage:"TSInterfaceHeritage",TSFunctionType:"TSFunctionType",TSMethodSignature:"TSMethodSignature",TSModuleBlock:"TSModuleBlock",TSModuleDeclaration:"TSModuleDeclaration",TSNamespaceFunctionDeclaration:"TSNamespaceFunctionDeclaration",TSNonNullExpression:"TSNonNullExpression",TSNeverKeyword:"TSNeverKeyword",TSNullKeyword:"TSNullKeyword",TSNumberKeyword:"TSNumberKeyword",TSObjectKeyword:"TSObjectKeyword",TSParameterProperty:"TSParameterProperty",TSPrivateKeyword:"TSPrivateKeyword",TSPropertySignature:"TSPropertySignature",TSProtectedKeyword:"TSProtectedKeyword",TSPublicKeyword:"TSPublicKeyword",TSQualifiedName:"TSQualifiedName",TSQuestionToken:"TSQuestionToken",TSReadonlyKeyword:"TSReadonlyKeyword",TSStaticKeyword:"TSStaticKeyword",TSStringKeyword:"TSStringKeyword",TSTypeLiteral:"TSTypeLiteral",TSTypePredicate:"TSTypePredicate",TSTypeReference:"TSTypeReference",TSUnionType:"TSUnionType",TSUndefinedKeyword:"TSUndefinedKeyword",TSVoidKeyword:"TSVoidKeyword",TypeAnnotation:"TypeAnnotation",TypeParameter:"TypeParameter",TypeParameterDeclaration:"TypeParameterDeclaration",TypeParameterInstantiation:"TypeParameterInstantiation",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},commonjsGlobal$$1="undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{},intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),encode$1=function(e){if(0<=e&&e>>=VLQ_BASE_SHIFT)>0&&(t|=VLQ_CONTINUATION_BIT),n+=base64.encode(t);}while(r>0);return n},decode=function(e,t,n){var r,i,a=e.length,o=0,s=0;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=base64.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(i&VLQ_CONTINUATION_BIT),o+=(i&=VLQ_BASE_MASK)<=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(n=c.join("/"))&&(n=s?"/":"."),a?(a.path=n,i(a)):n}function o(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),o=r(e);if(o&&(e=o.path||"/"),n&&!n.scheme)return o&&(n.scheme=o.scheme),i(n);if(n||t.match(y))return t;if(o&&!o.host&&!o.path)return o.host=t,i(o);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=s,i(o)):s}function s(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n;}return Array(n+1).join("../")+t.substr(e.length+1)}function c(e){return e}function u(e){return _(e)?"$"+e:e}function l(e){return _(e)?e.slice(1):e}function _(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t,n){var r=e.source-t.source;return 0!==r?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)||n?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function p(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=e.source-t.source)?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function f(e,t){return e===t?0:e>t?1:-1}function m(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=f(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:f(e.name,t.name))}t.getArg=n;var g=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,y=/^data:.+\,.+$/;t.urlParse=r,t.urlGenerate=i,t.normalize=a,t.join=o,t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(g)},t.relative=s;var h=function(){return!("__proto__"in Object.create(null))}();t.toSetString=h?c:u,t.fromSetString=h?c:l,t.compareByOriginalPositions=d,t.compareByGeneratedPositionsDeflated=p,t.compareByGeneratedPositionsInflated=m;}),util$3=util$1,has=Object.prototype.hasOwnProperty;ArraySet$1.fromArray=function(e,t){for(var n=new ArraySet$1,r=0,i=e.length;r=0&&e0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},SourceMapGenerator$1.prototype._serializeMappings=function(){for(var e,t,n,r,i=0,a=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d0){if(!util.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=",";}e+=base64VLQ.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=base64VLQ.encode(r-u),u=r,e+=base64VLQ.encode(t.originalLine-1-s),s=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=base64VLQ.encode(n-c),c=n)),l+=e;}return l},SourceMapGenerator$1.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=util.relative(t,e));var n=util.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},SourceMapGenerator$1.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},SourceMapGenerator$1.prototype.toString=function(){return JSON.stringify(this.toJSON())};var SourceMapGenerator_1=SourceMapGenerator$1,sourceMapGenerator={SourceMapGenerator:SourceMapGenerator_1},binarySearch$1=createCommonjsModule$$1(function(e,t){function n(e,r,i,a,o,s){var c=Math.floor((r-e)/2)+e,u=o(i,a[c],!0);return 0===u?c:u>0?r-c>1?n(c,r,i,a,o,s):s==t.LEAST_UPPER_BOUND?r1?n(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,a){if(0===r.length)return-1;var o=n(-1,r.length,e,r,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(r[o],r[o-1],!0);)--o;return o};}),quickSort_1=function(e,t){doQuickSort(e,t,0,e.length-1);},quickSort$1={quickSort:quickSort_1},util$5=util$1,binarySearch=binarySearch$1,ArraySet$2=arraySet.ArraySet,base64VLQ$1=base64Vlq,quickSort=quickSort$1.quickSort;SourceMapConsumer$2.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)},SourceMapConsumer$2.prototype._version=3,SourceMapConsumer$2.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer$2.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer$2.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},SourceMapConsumer$2.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},SourceMapConsumer$2.GENERATED_ORDER=1,SourceMapConsumer$2.ORIGINAL_ORDER=2,SourceMapConsumer$2.GREATEST_LOWER_BOUND=1,SourceMapConsumer$2.LEAST_UPPER_BOUND=2,SourceMapConsumer$2.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||SourceMapConsumer$2.GENERATED_ORDER){case SourceMapConsumer$2.GENERATED_ORDER:r=this._generatedMappings;break;case SourceMapConsumer$2.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;r.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=util$5.join(a,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i);},SourceMapConsumer$2.prototype.allGeneratedPositionsFor=function(e){var t=util$5.getArg(e,"line"),n={source:util$5.getArg(e,"source"),originalLine:t,originalColumn:util$5.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=util$5.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)r.push({line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)r.push({line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];}return r};var SourceMapConsumer_1=SourceMapConsumer$2;BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer$2,BasicSourceMapConsumer.fromSourceMap=function(e){var t=Object.create(BasicSourceMapConsumer.prototype),n=t._names=ArraySet$2.fromArray(e._names.toArray(),!0),r=t._sources=ArraySet$2.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var i=e._mappings.toArray().slice(),a=t.__generatedMappings=[],o=t.__originalMappings=[],s=0,c=i.length;s1&&(n.source=_+i[1],_+=i[1],n.originalLine=u+i[2],u=n.originalLine,n.originalLine+=1,n.originalColumn=l+i[3],l=n.originalColumn,i.length>4&&(n.name=d+i[4],d+=i[4])),h.push(n),"number"==typeof n.originalLine&&y.push(n);}quickSort(h,util$5.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,quickSort(y,util$5.compareByOriginalPositions),this.__originalMappings=y;},BasicSourceMapConsumer.prototype._findMapping=function(e,t,n,r,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return binarySearch.search(e,t,i,a)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var e=0;e=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=util$5.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=util$5.join(this.sourceRoot,i)));var a=util$5.getArg(r,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:util$5.getArg(r,"originalLine",null),column:util$5.getArg(r,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},BasicSourceMapConsumer.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=util$5.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=util$5.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(e){var t=util$5.getArg(e,"source");if(null!=this.sourceRoot&&(t=util$5.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:util$5.getArg(e,"line"),originalColumn:util$5.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,util$5.getArg(e,"bias",SourceMapConsumer$2.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===n.source)return{line:util$5.getArg(i,"generatedLine",null),column:util$5.getArg(i,"generatedColumn",null),lastColumn:util$5.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var BasicSourceMapConsumer_1=BasicSourceMapConsumer;IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer$2,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&(u&&r(u,o()),i.add(a.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=util$6.join(n,e)),i.setSourceContent(e,r));}),i},SourceNode$1.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e);},this);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e);}return this},SourceNode$1.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e);}return this},SourceNode$1.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n0;for(var n=0,r=e;nt?1:0};i<=a;){var o=i+(a-i>>1),s=e[o];if(0===n(s,t))return o;n(s,t)>0?a=o-1:i=o+1;}return~i}function ee(e,t,n,r,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}function te(e,t,n,r,i){if(e){var a=e.length;if(a>0){var o=void 0===r||r>a-1?a-1:r,s=void 0===i||o-i<0?0:o-i,c=void 0;for(arguments.length<=2?(c=e[o],o--):c=n;o>=s;)c=t(c,e[o],o),o--;return c}}return n}function ne(e,t){return yn.call(e,t)}function re(e,t){return yn.call(e,t)?e[t]:void 0}function ie(e){var t=[];for(var n in e)yn.call(e,n)&&t.push(n);return t}function ae(e,t){for(var n=[],r=e.next(),i=r.value,a=r.done;!a;o=e.next(),i=o.value,a=o.done,o)n.push(t?t(i):i);return n;var o;}function oe(e,t){for(var n=e.entries(),r=n.next(),i=r.value,a=r.done;!a;c=n.next(),i=c.value,a=c.done,c){var o=i[0],s=t(i[1],o);if(s)return s}return;var c;}function se(e,t){for(var n=e.keys(),r=n.next(),i=r.value,a=r.done;!a;s=n.next(),i=s.value,a=s.done,s){var o=t(i);if(o)return o}return;var s;}function ce(e,t){e.forEach(function(e,n){t.set(n,e);});}function ue(e){for(var t=[],n=1;n4&&(a=Ee(a,arguments,4)),{file:e,start:t,length:n,messageText:a,category:r.category,code:r.code}}function we(e,t){var n=Ne(t);return arguments.length>2&&(n=Ee(n,arguments,2)),n}function Oe(e){var t=Ne(e);return arguments.length>1&&(t=Ee(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}}function Pe(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function Fe(e,t){var n=Ne(t);return arguments.length>2&&(n=Ee(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}}function Ie(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e}function Le(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e0?1:0}if(t=t.toUpperCase(),n=n.toUpperCase(),t===n)return 0}return t0&&".."!==H(r)?r.pop():o&&r.push(o));}return r}function $e(t){var n=qe(t=Ue(t)),r=t.substr(0,n),i=Ve(t,n);if(i.length){var a=r+i.join(e.directorySeparator);return We(t)?a+e.directorySeparator:a}return r}function We(e){return e.charCodeAt(e.length-1)===hn}function Ge(t){return t.substr(0,Math.max(qe(t),t.lastIndexOf(e.directorySeparator)))}function He(e){return e&&!rt(e)&&-1!==e.indexOf("://")}function Xe(e){return/^\.\.?($|[\\/])/.test(e)}function Ye(e){return Xe(e)||rt(e)}function Qe(e){return!Ye(e)}function Ze(e){return e.target||0}function et(t){return"number"==typeof t.module?t.module:Ze(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function tt(t){var n=t.moduleResolution;return void 0===n&&(n=et(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),n}function nt(e){for(var t=!1,n=0;n1&&""===H(s)&&s.pop();var c;for(c=0;c=0&&e.indexOf(t,n)===n}function xt(e){return dt(e).indexOf(".")>=0}function St(e,t){return e.length>t.length&&bt(e,t)}function kt(e,t){for(var n=0,r=t;n0;)c+=")?",p--;return c}}function Nt(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function At(e,t,n,r,i){e=$e(e);var a=pt(i=$e(i),e);return{includeFilePatterns:T(Ct(n,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Tt(n,a,"files"),includeDirectoryPattern:Tt(n,a,"directories"),excludePattern:Tt(t,a,"exclude"),basePaths:Ot(e,n,r)}}function wt(e,t,n,r,i,a,o,s){function c(e,n,r){for(var i=s(e),a=i.files,o=i.directories,u=0,l=a=a.slice().sort(g);u=0;n--)if(St(e,t[n]))return jt(n,t);return 0}function jt(e,t){return e<2?0:ei&&(i=c.prefix.length,r=s);}return r}function cn(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&ht(t,n)&&bt(t,r)}function un(e){Nn.assert(nt(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function ln(e){return!(e>=0)}function _n(e){return".ts"===e||".tsx"===e||".d.ts"===e}function dn(e){var t=fn(e);if(void 0!==t)return t;Nn.fail("File "+e+" has unknown extension.");}function pn(e){return void 0!==fn(e)}function fn(t){return p(e.supportedTypescriptExtensionsForExtractExtension,function(e){return St(t,e)})||p(e.supportedJavascriptExtensions,function(e){return St(t,e)})}function mn(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}e.collator="object"==typeof Intl&&"function"==typeof Intl.Collator?new Intl.Collator(void 0,{usage:"sort",sensitivity:"accent"}):void 0,e.localeCompareIsCorrect=e.collator&&e.collator.compare("a","B")<0,e.createMap=n,e.createUnderscoreEscapedMap=r,e.createSymbolTable=i,e.createMapFromTemplate=a;var gn="undefined"!=typeof Map&&"entries"in Map.prototype?Map:function(){var e=function(){function e(e,t){this.index=0,this.data=e,this.selector=t,this.keys=Object.keys(e);}return e.prototype.next=function(){var e=this.index;return e=t}function n(e,t,r,i){e||(r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),s(t?"False expression: "+t:"False expression.",i||n));}function r(e,t,n,r){e!==t&&s("Expected "+e+" === "+t+". "+(n?r?n+" "+r:n:""));}function i(e,t,n){e>=t&&s("Expected "+e+" < "+t+". "+(n||""));}function a(e,t){e>t&&s("Expected "+e+" <= "+t);}function o(e,t){e= "+t);}function s(e,t){var n=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||s),n}function c(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),n=/^function\s+([\w\$]+)\s*\(/.exec(t);return n?n[1]:""}e.currentAssertionLevel=0,e.isDebugging=!1,e.shouldAssert=t,e.assert=n,e.assertEqual=r,e.assertLessThan=i,e.assertLessThanOrEqual=a,e.assertGreaterThanOrEqual=o,e.fail=s,e.getFunctionName=c;}(Nn=e.Debug||(e.Debug={})),e.orderedRemoveItem=Yt,e.orderedRemoveItemAt=Qt,e.unorderedRemoveItemAt=Zt,e.unorderedRemoveItem=en,e.createGetCanonicalFileName=nn,e.matchPatternOrExact=rn,e.patternText=an,e.matchedText=on$$1,e.findBestPatternMatch=sn,e.tryParsePattern=un,e.positionIsSynthesized=ln,e.extensionIsTypeScript=_n,e.extensionFromPath=dn,e.isAnySupportedFileExtension=pn,e.tryGetExtensionFromPath=fn,e.isCheckJsEnabledForFile=mn;}(r||(r={}));!function(e){function t(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100);}function n(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.setStackTraceLimit=t;var r;!function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted";}(r=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),e.getNodeMajorVersion=n,e.sys=function(){function t(n,r){var i=e.getDirectoryPath(n),a=n!==i&&!r.directoryExists(i);a&&t(i,r),!a&&r.directoryExists(n)||r.createDirectory(n);}var i;if("undefined"!=typeof ChakraHost?i=function(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,n){n&&(t="\ufeff"+t),ChakraHost.writeFile(e,t);},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(t,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,n,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}():"undefined"!=typeof process&&nextTick&&!browser$1&&void 0!==commonjsRequire$$1&&(i=function(){function t(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}function i(e,t){if(u(e)){var n=p.readFileSync(e),r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(var i=0;i=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}}function a(e,t,n){n&&(t="\ufeff"+t);var r;try{r=p.openSync(e,"w"),p.writeSync(r,t,void 0,"utf8");}finally{void 0!==r&&p.closeSync(r);}}function o(t){try{for(var n=[],r=[],i=0,a=p.readdirSync(t||".").sort();i=4,b=m.platform(),x=function(){return"win32"!==b&&"win64"!==b&&!u(t(__filename))}();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory";}(d||(d={}));var S={close:e.noop},k={args:process.argv.slice(2),newLine:m.EOL,useCaseSensitiveFileNames:x,write:function(e){process.stdout.write(e);},readFile:i,writeFile:a,watchFile:function(e,t,n){function i(n,i){var a=0==+n.mtime,o=0==+i.mtime,s=!a&&o,c=a&&!o,u=s?r.Created:c?r.Deleted:r.Changed;u===r.Changed&&+n.mtime<=+i.mtime||t(e,u);}if(y){var a=h.addFile(e,t);return{close:function(){return h.removeFile(a)}}}return p.watchFile(e,{persistent:!0,interval:n||250},i),{close:function(){return p.unwatchFile(e,i)}}},watchDirectory:function(t,n,r){var i;return l(t)?(i=!v||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!r},p.watch(t,i,function(r,i){"rename"===r&&n(i?e.normalizePath(e.combinePaths(t,i)):i);})):S},resolvePath:function(e){return f.resolve(e)},fileExists:u,directoryExists:l,createDirectory:function(e){k.directoryExists(e)||p.mkdirSync(e);},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:_,getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:s,getModifiedTime:function(e){try{return p.statSync(e).mtime}catch(e){return}},createHash:function(e){var t=g.createHash("md5");return t.update(e),t.digest("hex")},getMemoryUsage:function(){return commonjsGlobal$$1.gc&&commonjsGlobal$$1.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=p.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){process.exit(e);},realpath:function(e){return p.realpathSync(e)},debugMode:e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{sourceMapSupport.install();}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return k}()),i){var a=i.writeFile;i.writeFile=function(n,r,o){var s=e.getDirectoryPath(e.normalizeSlashes(n));s&&!i.directoryExists(s)&&t(s,i),a.call(i,n,r,o);};}return i}(),e.sys&&e.sys.getEnvironmentVariable&&(e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0);}(r||(r={}));!function(e){function t(e,t,n,r){return{code:e,category:t,key:n,message:r}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"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:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"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:t(1017,e.DiagnosticCategory.Error,"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:t(1018,e.DiagnosticCategory.Error,"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:t(1019,e.DiagnosticCategory.Error,"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:t(1020,e.DiagnosticCategory.Error,"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:t(1021,e.DiagnosticCategory.Error,"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:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"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."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"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:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"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:t(1038,e.DiagnosticCategory.Error,"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:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:t(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:t(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:t(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:t(1046,e.DiagnosticCategory.Error,"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046","A 'declare' modifier is required for a top level declaration in a .d.ts file."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"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:t(1051,e.DiagnosticCategory.Error,"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:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"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_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:t(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"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:t(1059,e.DiagnosticCategory.Error,"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:t(1060,e.DiagnosticCategory.Error,"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:t(1061,e.DiagnosticCategory.Error,"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:t(1062,e.DiagnosticCategory.Error,"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:t(1063,e.DiagnosticCategory.Error,"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:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","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:t(1066,e.DiagnosticCategory.Error,"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:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_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:t(1071,e.DiagnosticCategory.Error,"_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:t(1079,e.DiagnosticCategory.Error,"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:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_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:t(1091,e.DiagnosticCategory.Error,"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:t(1092,e.DiagnosticCategory.Error,"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:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"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:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"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:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"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:t(1105,e.DiagnosticCategory.Error,"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."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"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:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"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:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"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:t(1116,e.DiagnosticCategory.Error,"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_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"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:t(1119,e.DiagnosticCategory.Error,"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:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),A_tuple_type_element_list_cannot_be_empty:t(1122,e.DiagnosticCategory.Error,"A_tuple_type_element_list_cannot_be_empty_1122","A tuple type element list cannot be empty."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"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:t(1148,e.DiagnosticCategory.Error,"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:t(1149,e.DiagnosticCategory.Error,"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."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array()' instead."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"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:t(1163,e.DiagnosticCategory.Error,"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:t(1164,e.DiagnosticCategory.Error,"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_directly_refer_to_a_built_in_symbol:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165","A computed property name in an ambient context must directly refer to a built-in symbol."),A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166","A computed property name in a class property declaration must directly refer to a built-in symbol."),A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168","A computed property name in a method overload must directly refer to a built-in symbol."),A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169","A computed property name in an interface must directly refer to a built-in symbol."),A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170","A computed property name in a type literal must directly refer to a built-in symbol."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"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:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"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:t(1187,e.DiagnosticCategory.Error,"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:t(1188,e.DiagnosticCategory.Error,"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:t(1189,e.DiagnosticCategory.Error,"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:t(1190,e.DiagnosticCategory.Error,"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:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"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:t(1198,e.DiagnosticCategory.Error,"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:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asteri_1202","Import assignment cannot be used when targeting ECMAScript 2015 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_2015_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_defaul_1203","Export assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"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."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:t(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"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:t(1212,e.DiagnosticCategory.Error,"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:t(1213,e.DiagnosticCategory.Error,"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:t(1214,e.DiagnosticCategory.Error,"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:t(1215,e.DiagnosticCategory.Error,"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:t(1216,e.DiagnosticCategory.Error,"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:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"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:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"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:t(1227,e.DiagnosticCategory.Error,"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:t(1228,e.DiagnosticCategory.Error,"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:t(1229,e.DiagnosticCategory.Error,"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:t(1230,e.DiagnosticCategory.Error,"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_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"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:t(1237,e.DiagnosticCategory.Error,"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:t(1238,e.DiagnosticCategory.Error,"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:t(1239,e.DiagnosticCategory.Error,"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:t(1240,e.DiagnosticCategory.Error,"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:t(1241,e.DiagnosticCategory.Error,"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:t(1242,e.DiagnosticCategory.Error,"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:t(1243,e.DiagnosticCategory.Error,"_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:t(1244,e.DiagnosticCategory.Error,"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:t(1245,e.DiagnosticCategory.Error,"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:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"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:t(1248,e.DiagnosticCategory.Error,"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:t(1249,e.DiagnosticCategory.Error,"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_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"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:t(1314,e.DiagnosticCategory.Error,"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:t(1315,e.DiagnosticCategory.Error,"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:t(1316,e.DiagnosticCategory.Error,"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:t(1317,e.DiagnosticCategory.Error,"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:t(1318,e.DiagnosticCategory.Error,"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:t(1319,e.DiagnosticCategory.Error,"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:t(1320,e.DiagnosticCategory.Error,"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:t(1321,e.DiagnosticCategory.Error,"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:t(1322,e.DiagnosticCategory.Error,"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_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323","Dynamic import cannot be used when targeting ECMAScript 2015 modules."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"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:t(1328,e.DiagnosticCategory.Error,"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."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"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:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"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:t(2309,e.DiagnosticCategory.Error,"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:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_may_only_extend_a_class_or_another_interface:t(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"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:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"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:t(2320,e.DiagnosticCategory.Error,"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:t(2321,e.DiagnosticCategory.Error,"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:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"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:t(2325,e.DiagnosticCategory.Error,"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:t(2326,e.DiagnosticCategory.Error,"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:t(2327,e.DiagnosticCategory.Error,"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:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"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:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"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:t(2335,e.DiagnosticCategory.Error,"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:t(2336,e.DiagnosticCategory.Error,"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:t(2337,e.DiagnosticCategory.Error,"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:t(2338,e.DiagnosticCategory.Error,"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:t(2339,e.DiagnosticCategory.Error,"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:t(2340,e.DiagnosticCategory.Error,"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:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"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:t(2345,e.DiagnosticCategory.Error,"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:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"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:t(2348,e.DiagnosticCategory.Error,"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'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:t(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"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:t(2354,e.DiagnosticCategory.Error,"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_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"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:t(2358,e.DiagnosticCategory.Error,"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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"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:t(2365,e.DiagnosticCategory.Error,"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:t(2366,e.DiagnosticCategory.Error,"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'."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"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:t(2370,e.DiagnosticCategory.Error,"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:t(2371,e.DiagnosticCategory.Error,"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_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"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:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"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:t(2384,e.DiagnosticCategory.Error,"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:t(2385,e.DiagnosticCategory.Error,"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:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"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:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),Overload_signature_is_not_compatible_with_function_implementation:t(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"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:t(2396,e.DiagnosticCategory.Error,"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:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"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:t(2400,e.DiagnosticCategory.Error,"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."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"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:t(2403,e.DiagnosticCategory.Error,"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:t(2404,e.DiagnosticCategory.Error,"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:t(2405,e.DiagnosticCategory.Error,"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:t(2406,e.DiagnosticCategory.Error,"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:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"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:t(2409,e.DiagnosticCategory.Error,"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:t(2410,e.DiagnosticCategory.Error,"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'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_may_only_implement_another_class_or_interface:t(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"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_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"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:t(2426,e.DiagnosticCategory.Error,"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:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"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:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"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:t(2432,e.DiagnosticCategory.Error,"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:t(2433,e.DiagnosticCategory.Error,"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:t(2434,e.DiagnosticCategory.Error,"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:t(2435,e.DiagnosticCategory.Error,"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:t(2436,e.DiagnosticCategory.Error,"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:t(2437,e.DiagnosticCategory.Error,"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:t(2438,e.DiagnosticCategory.Error,"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:t(2439,e.DiagnosticCategory.Error,"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:t(2440,e.DiagnosticCategory.Error,"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:t(2441,e.DiagnosticCategory.Error,"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:t(2442,e.DiagnosticCategory.Error,"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:t(2443,e.DiagnosticCategory.Error,"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:t(2444,e.DiagnosticCategory.Error,"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:t(2445,e.DiagnosticCategory.Error,"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:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"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:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_has_no_property_1_and_no_string_index_signature:t(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:t(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"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:t(2462,e.DiagnosticCategory.Error,"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:t(2463,e.DiagnosticCategory.Error,"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:t(2464,e.DiagnosticCategory.Error,"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:t(2465,e.DiagnosticCategory.Error,"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:t(2466,e.DiagnosticCategory.Error,"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:t(2467,e.DiagnosticCategory.Error,"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:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"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:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),In_const_enum_declarations_member_initializer_must_be_constant_expression:t(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment:t(2475,e.DiagnosticCategory.Error,"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."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"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:t(2477,e.DiagnosticCategory.Error,"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:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"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:t(2481,e.DiagnosticCategory.Error,"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:t(2483,e.DiagnosticCategory.Error,"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:t(2484,e.DiagnosticCategory.Error,"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:t(2487,e.DiagnosticCategory.Error,"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_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"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:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"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:t(2495,e.DiagnosticCategory.Error,"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_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:t(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"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:t(2499,e.DiagnosticCategory.Error,"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:t(2500,e.DiagnosticCategory.Error,"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:t(2501,e.DiagnosticCategory.Error,"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:t(2502,e.DiagnosticCategory.Error,"_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:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"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:t(2506,e.DiagnosticCategory.Error,"_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:t(2507,e.DiagnosticCategory.Error,"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:t(2508,e.DiagnosticCategory.Error,"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_a_class_or_interface_type:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_the_abstract_class_0:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_the_abstract_class_0_2511","Cannot create an instance of the abstract class '{0}'."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"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:t(2513,e.DiagnosticCategory.Error,"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."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"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:t(2516,e.DiagnosticCategory.Error,"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:t(2517,e.DiagnosticCategory.Error,"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:t(2518,e.DiagnosticCategory.Error,"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:t(2519,e.DiagnosticCategory.Error,"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:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"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:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"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_this_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible 'this' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"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:t(2529,e.DiagnosticCategory.Error,"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:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"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:t(2537,e.DiagnosticCategory.Error,"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:t(2538,e.DiagnosticCategory.Error,"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:t(2539,e.DiagnosticCategory.Error,"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_constant_or_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"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:t(2543,e.DiagnosticCategory.Error,"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:t(2544,e.DiagnosticCategory.Error,"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:t(2545,e.DiagnosticCategory.Error,"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[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' 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:t(2548,e.DiagnosticCategory.Error,"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:t(2549,e.DiagnosticCategory.Error,"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."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:t(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"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:t(2552,e.DiagnosticCategory.Error,"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:t(2553,e.DiagnosticCategory.Error,"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:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_a_minimum_of_1:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_a_minimum_of_1_2556","Expected {0} arguments, but got a minimum of {1}."),Expected_at_least_0_arguments_but_got_a_minimum_of_1:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_a_minimum_of_1_2557","Expected at least {0} arguments, but got a minimum of {1}."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"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:t(2559,e.DiagnosticCategory.Error,"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:t(2560,e.DiagnosticCategory.Error,"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?"),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"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:t(2603,e.DiagnosticCategory.Error,"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:t(2604,e.DiagnosticCategory.Error,"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."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"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:t(2607,e.DiagnosticCategory.Error,"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:t(2608,e.DiagnosticCategory.Error,"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:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"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."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"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:t(2652,e.DiagnosticCategory.Error,"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:t(2653,e.DiagnosticCategory.Error,"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}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"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:t(2659,e.DiagnosticCategory.Error,"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:t(2660,e.DiagnosticCategory.Error,"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:t(2661,e.DiagnosticCategory.Error,"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:t(2662,e.DiagnosticCategory.Error,"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:t(2663,e.DiagnosticCategory.Error,"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:t(2664,e.DiagnosticCategory.Error,"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:t(2665,e.DiagnosticCategory.Error,"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:t(2666,e.DiagnosticCategory.Error,"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:t(2667,e.DiagnosticCategory.Error,"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:t(2668,e.DiagnosticCategory.Error,"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:t(2669,e.DiagnosticCategory.Error,"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:t(2670,e.DiagnosticCategory.Error,"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:t(2671,e.DiagnosticCategory.Error,"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:t(2672,e.DiagnosticCategory.Error,"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:t(2673,e.DiagnosticCategory.Error,"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:t(2674,e.DiagnosticCategory.Error,"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:t(2675,e.DiagnosticCategory.Error,"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:t(2676,e.DiagnosticCategory.Error,"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:t(2677,e.DiagnosticCategory.Error,"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:t(2678,e.DiagnosticCategory.Error,"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:t(2679,e.DiagnosticCategory.Error,"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:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"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:t(2684,e.DiagnosticCategory.Error,"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:t(2685,e.DiagnosticCategory.Error,"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:t(2686,e.DiagnosticCategory.Error,"_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:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_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:t(2693,e.DiagnosticCategory.Error,"_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:t(2694,e.DiagnosticCategory.Error,"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:t(2695,e.DiagnosticCategory.Error,"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."),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"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:t(2697,e.DiagnosticCategory.Error,"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:t(2698,e.DiagnosticCategory.Error,"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:t(2699,e.DiagnosticCategory.Error,"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:t(2700,e.DiagnosticCategory.Error,"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:t(2701,e.DiagnosticCategory.Error,"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:t(2702,e.DiagnosticCategory.Error,"_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:t(2703,e.DiagnosticCategory.Error,"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:t(2704,e.DiagnosticCategory.Error,"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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 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:t(2706,e.DiagnosticCategory.Error,"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:t(2707,e.DiagnosticCategory.Error,"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:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"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:t(2710,e.DiagnosticCategory.Error,"_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:t(2711,e.DiagnosticCategory.Error,"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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 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:t(2713,e.DiagnosticCategory.Error,"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}\"]'?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"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:t(4002,e.DiagnosticCategory.Error,"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:t(4004,e.DiagnosticCategory.Error,"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:t(4006,e.DiagnosticCategory.Error,"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:t(4008,e.DiagnosticCategory.Error,"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:t(4010,e.DiagnosticCategory.Error,"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:t(4012,e.DiagnosticCategory.Error,"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:t(4014,e.DiagnosticCategory.Error,"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:t(4016,e.DiagnosticCategory.Error,"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:t(4019,e.DiagnosticCategory.Error,"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:t(4020,e.DiagnosticCategory.Error,"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_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"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:t(4023,e.DiagnosticCategory.Error,"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:t(4024,e.DiagnosticCategory.Error,"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:t(4025,e.DiagnosticCategory.Error,"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:t(4026,e.DiagnosticCategory.Error,"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:t(4027,e.DiagnosticCategory.Error,"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:t(4028,e.DiagnosticCategory.Error,"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:t(4029,e.DiagnosticCategory.Error,"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:t(4030,e.DiagnosticCategory.Error,"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:t(4031,e.DiagnosticCategory.Error,"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:t(4032,e.DiagnosticCategory.Error,"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:t(4033,e.DiagnosticCategory.Error,"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_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_4034","Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1_4035","Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_4036","Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1_4037","Parameter '{0}' of public property setter from exported class has or is using private name '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_externa_4038","Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_4039","Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0_4040","Return type of public static property getter from exported class has or is using private name '{0}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_modul_4041","Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_4042","Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0_4043","Return type of public property getter from exported class has or is using private name '{0}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"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:t(4045,e.DiagnosticCategory.Error,"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:t(4046,e.DiagnosticCategory.Error,"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:t(4047,e.DiagnosticCategory.Error,"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:t(4048,e.DiagnosticCategory.Error,"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:t(4049,e.DiagnosticCategory.Error,"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:t(4050,e.DiagnosticCategory.Error,"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:t(4051,e.DiagnosticCategory.Error,"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:t(4052,e.DiagnosticCategory.Error,"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:t(4053,e.DiagnosticCategory.Error,"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:t(4054,e.DiagnosticCategory.Error,"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:t(4055,e.DiagnosticCategory.Error,"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:t(4056,e.DiagnosticCategory.Error,"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:t(4057,e.DiagnosticCategory.Error,"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:t(4058,e.DiagnosticCategory.Error,"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:t(4059,e.DiagnosticCategory.Error,"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:t(4060,e.DiagnosticCategory.Error,"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:t(4061,e.DiagnosticCategory.Error,"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:t(4062,e.DiagnosticCategory.Error,"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:t(4063,e.DiagnosticCategory.Error,"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:t(4064,e.DiagnosticCategory.Error,"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:t(4065,e.DiagnosticCategory.Error,"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:t(4066,e.DiagnosticCategory.Error,"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:t(4067,e.DiagnosticCategory.Error,"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:t(4068,e.DiagnosticCategory.Error,"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:t(4069,e.DiagnosticCategory.Error,"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:t(4070,e.DiagnosticCategory.Error,"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:t(4071,e.DiagnosticCategory.Error,"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:t(4072,e.DiagnosticCategory.Error,"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:t(4073,e.DiagnosticCategory.Error,"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:t(4074,e.DiagnosticCategory.Error,"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:t(4075,e.DiagnosticCategory.Error,"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:t(4076,e.DiagnosticCategory.Error,"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:t(4077,e.DiagnosticCategory.Error,"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:t(4078,e.DiagnosticCategory.Error,"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:t(4081,e.DiagnosticCategory.Error,"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:t(4082,e.DiagnosticCategory.Error,"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:t(4083,e.DiagnosticCategory.Error,"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}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Message,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"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:t(4092,e.DiagnosticCategory.Error,"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_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"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:t(5009,e.DiagnosticCategory.Error,"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:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0:t(5011,e.DiagnosticCategory.Error,"File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0_5011","File specification cannot contain multiple recursive directory wildcards ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"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:t(5042,e.DiagnosticCategory.Error,"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:t(5047,e.DiagnosticCategory.Error,"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:t(5051,e.DiagnosticCategory.Error,"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:t(5052,e.DiagnosticCategory.Error,"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:t(5053,e.DiagnosticCategory.Error,"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:t(5054,e.DiagnosticCategory.Error,"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:t(5055,e.DiagnosticCategory.Error,"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:t(5056,e.DiagnosticCategory.Error,"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:t(5057,e.DiagnosticCategory.Error,"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:t(5058,e.DiagnosticCategory.Error,"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:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"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:t(5064,e.DiagnosticCategory.Error,"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:t(5065,e.DiagnosticCategory.Error,"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:t(5066,e.DiagnosticCategory.Error,"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:t(5067,e.DiagnosticCategory.Error,"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."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"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:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"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:t(6008,e.DiagnosticCategory.Message,"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:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"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:t(6011,e.DiagnosticCategory.Message,"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:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"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:t(6020,e.DiagnosticCategory.Message,"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:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Compilation_complete_Watching_for_file_changes:t(6042,e.DiagnosticCategory.Message,"Compilation_complete_Watching_for_file_changes_6042","Compilation complete. Watching for file changes."),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"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:t(6048,e.DiagnosticCategory.Error,"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}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"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:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"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:t(6056,e.DiagnosticCategory.Message,"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:t(6058,e.DiagnosticCategory.Message,"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:t(6059,e.DiagnosticCategory.Error,"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:t(6060,e.DiagnosticCategory.Message,"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:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"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:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"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:t(6074,e.DiagnosticCategory.Message,"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:t(6075,e.DiagnosticCategory.Message,"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:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"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_Colon:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_Colon_6079","Specify library files to be included in the compilation: "),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"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:t(6083,e.DiagnosticCategory.Message,"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:t(6084,e.DiagnosticCategory.Message,"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:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"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:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"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:t(6091,e.DiagnosticCategory.Message,"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:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"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:t(6094,e.DiagnosticCategory.Message,"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_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"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:t(6101,e.DiagnosticCategory.Message,"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:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"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_string_got_1:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"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:t(6107,e.DiagnosticCategory.Message,"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:t(6108,e.DiagnosticCategory.Message,"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:t(6109,e.DiagnosticCategory.Message,"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:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"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:t(6115,e.DiagnosticCategory.Message,"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:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"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:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"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:t(6123,e.DiagnosticCategory.Message,"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:t(6124,e.DiagnosticCategory.Message,"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:t(6125,e.DiagnosticCategory.Message,"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:t(6126,e.DiagnosticCategory.Message,"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:t(6127,e.DiagnosticCategory.Message,"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:t(6128,e.DiagnosticCategory.Message,"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. ========"),The_config_file_0_found_doesn_t_contain_any_source_files:t(6129,e.DiagnosticCategory.Error,"The_config_file_0_found_doesn_t_contain_any_source_files_6129","The config file '{0}' found doesn't contain any source files."),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"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:t(6131,e.DiagnosticCategory.Error,"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:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_never_used:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6133","'{0}' is declared but never used."),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"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:t(6137,e.DiagnosticCategory.Error,"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_never_used:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_never_used_6138","Property '{0}' is declared but never used."),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"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:t(6140,e.DiagnosticCategory.Error,"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:t(6141,e.DiagnosticCategory.Message,"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:t(6142,e.DiagnosticCategory.Error,"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_to_1_but_allowJs_is_not_set:t(6143,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_allowJs_is_not_set_6143","Module '{0}' was resolved to '{1}', but '--allowJs' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"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}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"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:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_6147","Resolution for module '{0}' was found in cache."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"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:t(6152,e.DiagnosticCategory.Message,"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:t(6153,e.DiagnosticCategory.Message,"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:t(6154,e.DiagnosticCategory.Message,"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:t(6155,e.DiagnosticCategory.Message,"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:t(6156,e.DiagnosticCategory.Message,"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:t(6157,e.DiagnosticCategory.Message,"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:t(6158,e.DiagnosticCategory.Message,"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:t(6159,e.DiagnosticCategory.Message,"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:t(6160,e.DiagnosticCategory.Message,"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:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"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:t(6167,e.DiagnosticCategory.Message,"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:t(6168,e.DiagnosticCategory.Message,"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:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"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:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"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:t(7009,e.DiagnosticCategory.Error,"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:t(7010,e.DiagnosticCategory.Error,"_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:t(7011,e.DiagnosticCategory.Error,"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."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"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."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"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:t(7016,e.DiagnosticCategory.Error,"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:t(7017,e.DiagnosticCategory.Error,"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:t(7018,e.DiagnosticCategory.Error,"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:t(7019,e.DiagnosticCategory.Error,"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:t(7020,e.DiagnosticCategory.Error,"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:t(7022,e.DiagnosticCategory.Error,"_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:t(7023,e.DiagnosticCategory.Error,"_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:t(7024,e.DiagnosticCategory.Error,"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_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"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:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected."),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label."),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"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:t(7032,e.DiagnosticCategory.Error,"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:t(7033,e.DiagnosticCategory.Error,"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:t(7034,e.DiagnosticCategory.Error,"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_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{0}` 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:t(7036,e.DiagnosticCategory.Error,"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}'."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"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_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"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:t(17001,e.DiagnosticCategory.Error,"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:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"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:t(17005,e.DiagnosticCategory.Error,"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:t(17006,e.DiagnosticCategory.Error,"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:t(17007,e.DiagnosticCategory.Error,"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:t(17008,e.DiagnosticCategory.Error,"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:t(17009,e.DiagnosticCategory.Error,"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:t(17010,e.DiagnosticCategory.Error,"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:t(17011,e.DiagnosticCategory.Error,"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:t(17012,e.DiagnosticCategory.Error,"_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:t(17013,e.DiagnosticCategory.Error,"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."),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"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:t(18003,e.DiagnosticCategory.Error,"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}'."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call."),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor."),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'."),Remove_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'."),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'."),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class."),Add_this_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_this_to_unresolved_variable_90008","Add 'this.' to unresolved variable."),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:t(90009,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__90009","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(90010,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_90010","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import {0} from {1}."),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change {0} to {1}."),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add {0} to existing import declaration from {1}."),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'."),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'."),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file."),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message."),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor."),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'."),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'."),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'."),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'."),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore."),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_function:t(95003,e.DiagnosticCategory.Message,"Extract_function_95003","Extract function"),Extract_function_into_0:t(95004,e.DiagnosticCategory.Message,"Extract_function_into_0_95004","Extract function into '{0}'")};}(r||(r={}));!function(e){function t(e){return e>=71}function n(e,t){if(e=1?n(e,j):n(e,B)}function i(e,t){return t>=1?n(e,J):n(e,K)}function a(e){return z[e]}function o(e){return M.get(e)}function s(e){for(var t=new Array,n=0,r=0;n127&&m(i)&&(t.push(r),r=n);}}return t.push(r),t}function c(e,t,n){return u(l(e),t,n,e.text)}function u(t,n,r,i){e.Debug.assert(n>=0&&n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function m(e){return 10===e||13===e||8232===e||8233===e}function g(e){return e>=48&&e<=57}function y(e){return e>=48&&e<=55}function h(e,t){var n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function v(t,n,r,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(n))return n;for(;;){var a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)return n;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(i)break;if(47===t.charCodeAt(n+1)){for(n+=2;n127&&p(a)){n++;continue}}return n}}function b(t,n){if(e.Debug.assert(n>=0),0===n||m(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+U=0&&n127&&p(g)){_&&m(g)&&(l=!0),n++;continue}break e}}return _&&(f=i(s,c,u,l,a,f)),f}function C(e,t,n,r){return T(!1,e,t,!1,n,r)}function D(e,t,n,r){return T(!1,e,t,!0,n,r)}function E(e,t,n,r,i){return T(!0,e,t,!1,n,r,i)}function N(e,t,n,r,i){return T(!0,e,t,!0,n,r,i)}function A(e,t,n,r,i,a){return a||(a=[]),a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function w(e,t){return E(e,t,A,void 0,void 0)}function O(e,t){return N(e,t,A,void 0,void 0)}function P(e){var t=q.exec(e);if(t)return t[0]}function F(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&r(e,t)}function I(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&i(e,t)}function L(e,t){if(!F(e.charCodeAt(0),t))return!1;for(var n=1;n=48&&i<=57)r=16*r+i-48;else if(i>=65&&i<=70)r=16*r+i-65+10;else{if(!(i>=97&&i<=102))break;r=16*r+i-97+10;}ne++,n++;}return n=re){r+=a.substring(i,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}var o=a.charCodeAt(ne);if(o===n){r+=a.substring(i,ne),ne++;break}if(92===o&&t)r+=a.substring(i,ne),r+=D(),i=ne;else{if(m(o)){r+=a.substring(i,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}ne++;}}return r}function C(){for(var t,n=96===a.charCodeAt(ne),r=++ne,i="";;){if(ne>=re){i+=a.substring(r,ne),le=!0,u(e.Diagnostics.Unterminated_template_literal),t=n?13:16;break}var o=a.charCodeAt(ne);if(96===o){i+=a.substring(r,ne),ne++,t=n?13:16;break}if(36===o&&ne+1=re)return u(e.Diagnostics.Unexpected_end_of_text),"";var t=a.charCodeAt(ne);switch(ne++,t){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return ne=0?String.fromCharCode(n):(u(e.Diagnostics.Hexadecimal_digit_expected),"")}function N(){var t=h(1),n=!1;return t<0?(u(e.Diagnostics.Hexadecimal_digit_expected),n=!0):t>1114111&&(u(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),ne>=re?(u(e.Diagnostics.Unexpected_end_of_text),n=!0):125===a.charCodeAt(ne)?ne++:(u(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":A(t)}function A(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296,r=(t-65536)%1024+56320;return String.fromCharCode(n,r)}function w(){if(ne+5=0&&I(r,n)))break;e+=a.substring(t,ne),e+=String.fromCharCode(r),t=ne+=6;}}return e+=a.substring(t,ne)}function P(){var e=se.length;if(e>=2&&e<=11){var t=se.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(oe=M.get(se)))return oe}return oe=71}function L(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var n=0,r=0;;){var i=a.charCodeAt(ne),o=i-48;if(!g(i)||o>=t)break;n=n*t+o,ne++,r++;}return 0===r?-1:n}function R(){for(ie=ne,ue=!1,ce=!1,le=!1,_e=0;;){if(ae=ne,ne>=re)return oe=1;var t=a.charCodeAt(ne);if(35===t&&0===ne&&S(a,ne)){if(ne=k(a,ne),r)continue;return oe=6}switch(t){case 10:case 13:if(ce=!0,r){ne++;continue}return 13===t&&ne+1=0&&F(d,n)?(ne+=6,se=String.fromCharCode(d)+O(),oe=P()):(u(e.Diagnostics.Invalid_character),ne++,oe=0);default:if(F(t,n)){for(ne++;ne=re){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=a.charCodeAt(t);if(m(o)){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===o&&!i){t++;break}91===o?i=!0:92===o?r=!0:93===o&&(i=!1);}t++;}for(;t=re)return oe=1;var e=a.charCodeAt(ne);if(60===e)return 47===a.charCodeAt(ne+1)?(ne+=2,oe=28):(ne++,oe=27);if(123===e)return ne++,oe=17;for(var t=0;ne=re)return oe=1;ie=ne,ae=ne;var e=a.charCodeAt(ne);switch(e){case 9:case 11:case 12:case 32:for(;ne=0),ne=t,ie=t,ae=t,oe=0,ce=!1,se=void 0,ue=!1,le=!1;}void 0===i&&(i=0);var ne,re,ie,ae,oe,se,ce,ue,le,_e;return Y(a,s,c),{getStartPos:function(){return ie},getTextPos:function(){return ne},getToken:function(){return oe},getTokenPos:function(){return ae},getTokenText:function(){return a.substring(ae,ne)},getTokenValue:function(){return se},hasExtendedUnicodeEscape:function(){return ue},hasPrecedingLineBreak:function(){return ce},isIdentifier:function(){return 71===oe||oe>107},isReservedWord:function(){return oe>=72&&oe<=107},isUnterminated:function(){return le},getNumericLiteralFlags:function(){return _e},reScanGreaterToken:B,reScanSlashToken:K,reScanTemplateToken:j,scanJsxIdentifier:U,scanJsxAttributeValue:q,reScanJsxToken:J,scanJsxToken:z,scanJSDocToken:V,scan:R,getText:X,setText:Y,setScriptTarget:Z,setLanguageVariant:ee,setOnError:Q,setTextPos:te,tryScan:H,lookAhead:G,scanRange:W}}e.tokenIsIdentifierOrKeyword=t;var M=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:140,function:89,get:125,if:90,implements:108,import:91,in:92,instanceof:93,interface:109,is:126,keyof:127,let:110,module:128,namespace:129,never:130,new:94,null:95,number:133,object:134,package:111,private:112,protected:113,public:114,readonly:131,require:132,global:141,return:96,set:135,static:115,string:136,super:97,switch:98,symbol:137,this:99,throw:100,true:101,try:102,type:138,typeof:103,undefined:139,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:142,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,">":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),B=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,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,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,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,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,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,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],K=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,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,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,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,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],j=[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],J=[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];e.isUnicodeIdentifierStart=r;var z=function(e){var t=[];return e.forEach(function(e,n){t[e]=n;}),t}(M);e.tokenToString=a,e.stringToToken=o,e.computeLineStarts=s,e.getPositionOfLineAndCharacter=c,e.computePositionOfLineAndCharacter=u,e.getLineStarts=l,e.computeLineAndCharacterOfPosition=_,e.getLineAndCharacterOfPosition=d,e.isWhiteSpaceLike=p,e.isWhiteSpaceSingleLine=f,e.isLineBreak=m,e.isOctalDigit=y,e.couldStartTrivia=h,e.skipTrivia=v;var U="<<<<<<<".length,q=/^#!.*/;e.forEachLeadingCommentRange=C,e.forEachTrailingCommentRange=D,e.reduceEachLeadingCommentRange=E,e.reduceEachTrailingCommentRange=N,e.getLeadingCommentRanges=w,e.getTrailingCommentRanges=O,e.getShebang=P,e.isIdentifierStart=F,e.isIdentifierPart=I,e.isIdentifierText=L,e.createScanner=R;}(r||(r={}));!function(e){function t(e,t){var n=e.declarations;if(n)for(var r=0,i=n;r=0),e.getLineStarts(n)[t]}function g(t){var n=p(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"}function y(t,n){e.Debug.assert(t>=0);var r=e.getLineStarts(n),i=t,a=n.text;if(i+1===r.length)return a.length-1;var o=r[i],s=r[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function h(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function v(e){return!h(e)}function b(t,n,r){if(47===t.charCodeAt(n+1)&&n+20?S(t.jsDoc[0]):286===t.kind&&t._children.length>0?S(t._children[0],n,r):e.skipTrivia((n||p(t)).text,t.pos)}function k(t,n){return h(t)||!t.decorators?S(t,n):e.skipTrivia((n||p(t)).text,t.decorators.end)}function T(t,n,r){if(void 0===r&&(r=!1),h(n))return"";var i=t.text;return i.substring(r?n.pos:e.skipTrivia(i,n.pos),n.end)}function C(t,n){return h(n)?"":t.substring(e.skipTrivia(t,n.pos),n.end)}function D(e,t){return void 0===t&&(t=!1),T(p(e),e,t)}function E(e){var t=e.emitNode;return t&&t.flags}function N(t,n){if(!nn(t)&&t.parent)return T(n,t);var r=16777216&E(t)?_n:mn;switch(t.kind){case 9:return t.singleQuote?"'"+r(t.text,39)+"'":'"'+r(t.text,34)+'"';case 13:return"`"+r(t.text,96)+"`";case 14:return"`"+r(t.text,96)+"${";case 15:return"}"+r(t.text,96)+"${";case 16:return"}"+r(t.text,96)+"`";case 8:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.");}function A(e){return"string"==typeof e?'"'+mn(e)+'"':""+e}function w(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function O(e){return e}function P(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function F(t){return 0!=(3&e.getCombinedNodeFlags(t))||I(t)}function I(e){var t=en(e);return 226===t.kind&&260===t.parent.kind}function L(e){return e&&233===e.kind&&(9===e.name.kind||j(e))}function R(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)}function M(e){return B(e.valueDeclaration)}function B(e){return e&&233===e.kind&&!e.body}function K(t){return 265===t.kind||233===t.kind||e.isFunctionLike(t)}function j(e){return!!(512&e.flags)}function J(t){if(!t||!L(t))return!1;switch(t.parent.kind){case 265:return e.isExternalModule(t.parent);case 234:return L(t.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function z(t,n){return e.isExternalModule(t)||n.isolatedModules}function U(t,n){switch(t.kind){case 265:case 235:case 260:case 233:case 214:case 215:case 216:case 152:case 151:case 153:case 154:case 228:case 186:case 187:return!0;case 207:return n&&!e.isFunctionLike(n)}return!1}function q(e){for(var t=e.parent;t;){if(U(t,t.parent))return t;t=t.parent;}}function V(e){return 0===r(e)?"(Missing)":D(e)}function $(e){return e.declaration?V(e.declaration.parameters[0].name):void 0}function W(e){switch(e.kind){case 71:return e.escapedText;case 9:case 8:return w(e.text);case 144:if(Ut(e.expression))return w(e.expression.text)}}function G(t){switch(t.kind){case 71:return 0===r(t)?e.unescapeLeadingUnderscores(t.escapedText):D(t);case 143:return G(t.left)+"."+G(t.right);case 179:return G(t.expression)+"."+G(t.name)}}function H(e,t,n,r,i){return X(p(e),e,t,n,r,i)}function X(t,n,r,i,a,o){var s=ee(t,n);return e.createFileDiagnostic(t,s.start,s.length,r,i,a,o)}function Y(e,t){var n=p(e),r=ee(n,e);return{file:n,start:r.start,length:r.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function Q(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function Z(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&207===n.body.kind){var i=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(i=0;case 183:return!1}}return!1}function _e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent;}return!1}function de(t,n){function r(t){switch(t.kind){case 219:return n(t);case 235:case 207:case 211:case 212:case 213:case 214:case 215:case 216:case 220:case 221:case 257:case 258:case 222:case 224:case 260:return e.forEachChild(t,r)}}return r(t)}function pe(t,n){function r(t){switch(t.kind){case 197:n(t);var i=t.expression;return void(i&&r(i));case 232:case 230:case 233:case 231:case 229:case 199:return;default:if(e.isFunctionLike(t)){var a=t.name;if(a&&144===a.kind)return void r(a.expression)}else le(t)||e.forEachChild(t,r);}}return r(t)}function fe(t){return t&&164===t.kind?t.elementType:t&&159===t.kind?e.singleOrUndefined(t.typeArguments):void 0}function me(e){if(e)switch(e.kind){case 176:case 264:case 146:case 261:case 149:case 148:case 262:case 226:return!0}return!1}function ge(e){switch(e.kind){case 151:case 150:case 152:case 153:case 154:case 228:case 186:return!0}return!1}function ye(e,t){for(;;){if(t&&t(e),222!==e.statement.kind)return e.statement;e=e.statement;}}function he(t){return t&&207===t.kind&&e.isFunctionLike(t.parent)}function ve(e){return e&&151===e.kind&&178===e.parent.kind}function be(e){return 151===e.kind&&(178===e.parent.kind||199===e.parent.kind)}function xe(e){return e&&1===e.kind}function Se(e){return e&&0===e.kind}function ke(t,n,r){return e.filter(t.properties,function(e){if(261===e.kind){var t=W(e.name);return n===t||r&&r===t}})}function Te(t){return e.findAncestor(t.parent,e.isFunctionLike)}function Ce(t){return e.findAncestor(t.parent,e.isClassLike)}function De(t,n){for(;;){if(!(t=t.parent))return;switch(t.kind){case 144:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 187:if(!n)continue;case 228:case 186:case 233:case 149:case 148:case 151:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 232:case 265:return t}}}function Ee(e){var t=De(e,!1);if(t)switch(t.kind){case 152:case 228:case 186:return t}}function Ne(t,n){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 144:t=t.parent;break;case 228:case 186:case 187:if(!n)continue;case 149:case 148:case 151:case 150:case 152:case 153:case 154:return t;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);}}}function Ae(e){if(186===e.kind||187===e.kind){for(var t=e,n=e.parent;185===n.kind;)t=n,n=n.parent;if(181===n.kind&&n.expression===t)return n}}function we(e){var t=e.kind;return(179===t||180===t)&&97===e.expression.kind}function Oe(e){switch(e.kind){case 159:return e.typeName;case 201:return ur(e.expression)?e.expression:void 0;case 71:case 143:return e}}function Pe(t){return 183===t.kind?t.tag:e.isJsxOpeningLikeElement(t)?t.tagName:t.expression}function Fe(e){switch(e.kind){case 229:return!0;case 149:return 229===e.parent.kind;case 153:case 154:case 151:return void 0!==e.body&&229===e.parent.kind;case 146:return void 0!==e.parent.body&&(152===e.parent.kind||151===e.parent.kind||154===e.parent.kind)&&229===e.parent.parent.kind}return!1}function Ie(e){return void 0!==e.decorators&&Fe(e)}function Le(e){return Ie(e)||Re(e)}function Re(t){switch(t.kind){case 229:return e.forEach(t.members,Le);case 151:case 154:return e.forEach(t.parameters,Ie)}}function Me(e){var t=e.parent;return(251===t.kind||250===t.kind||252===t.kind)&&t.tagName===e}function Be(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 202:case 184:case 203:case 185:case 186:case 199:case 187:case 190:case 188:case 189:case 192:case 193:case 194:case 195:case 198:case 196:case 13:case 200:case 249:case 250:case 197:case 191:case 204:return!0;case 143:for(;143===e.parent.kind;)e=e.parent;return 162===e.parent.kind||Me(e);case 71:if(162===e.parent.kind||Me(e))return!0;case 8:case 9:case 99:var t=e.parent;switch(t.kind){case 226:case 146:case 149:case 148:case 264:case 261:case 176:return t.initializer===e;case 210:case 211:case 212:case 213:case 219:case 220:case 221:case 257:case 223:return t.expression===e;case 214:var n=t;return n.initializer===e&&227!==n.initializer.kind||n.condition===e||n.incrementor===e;case 215:case 216:var r=t;return r.initializer===e&&227!==r.initializer.kind||r.expression===e;case 184:case 202:case 205:case 144:return e===t.expression;case 147:case 256:case 255:case 263:return!0;case 201:return t.expression===e&&sr(t);default:if(Be(t))return!0}}return!1}function Ke(e){return 237===e.kind&&248===e.moduleReference.kind}function je(t){return e.Debug.assert(Ke(t)),t.moduleReference.expression}function Je(e){return 237===e.kind&&248!==e.moduleReference.kind}function ze(e){return Ue(e)}function Ue(e){return e&&!!(65536&e.flags)}function qe(e){return e&&!!(1048576&e.flags)}function Ve(e,t){if(181!==e.kind)return!1;var n=e,r=n.expression,i=n.arguments;if(71!==r.kind||"require"!==r.escapedText)return!1;if(1!==i.length)return!1;var a=i[0];return!t||9===a.kind||13===a.kind}function $e(e){return 39===e||34===e}function We(e){if(e.valueDeclaration&&226===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&(186===t.initializer.kind||199===t.initializer.kind)}return!1}function Ge(e){for(;ar(e,!0);)e=e.right;return e}function He(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Xe(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText}function Ye(e){if(!Ue(e))return 0;var t=e;if(58!==t.operatorToken.kind||179!==t.left.kind)return 0;var n=t.left;if(71===n.expression.kind){var r=n.expression;return"exports"===r.escapedText?1:"module"===r.escapedText&&"exports"===n.name.escapedText?2:5}if(99===n.expression.kind)return 4;if(179===n.expression.kind){var i=n.expression;if(71===i.expression.kind){if("module"===i.expression.escapedText&&"exports"===i.name.escapedText)return 1;if("prototype"===i.name.escapedText)return 3}}return 0}function Qe(e){if(238===e.kind)return e.moduleSpecifier;if(237===e.kind){var t=e.moduleReference;if(248===t.kind)return t.expression}return 244===e.kind?e.moduleSpecifier:233===e.kind&&9===e.name.kind?e.name:void 0}function Ze(e){if(237===e.kind)return e;var t=e.importClause;return t&&t.namedBindings&&240===t.namedBindings.kind?t.namedBindings:void 0}function et(e){return 238===e.kind&&e.importClause&&!!e.importClause.name}function tt(e){if(e)switch(e.kind){case 146:case 151:case 150:case 262:case 261:case 149:case 148:return void 0!==e.questionToken}return!1}function nt(e){return 273===e.kind&&e.parameters.length>0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText}function rt(e){return!!it(e,279)}function it(t,n){var r=ot(t);return e.find(r,function(e){return e.kind===n})}function at(t){return e.isJSDocTypedefTag(t)?[t.parent]:st(t)}function ot(t){var n=t.jsDocCache;return void 0===n&&(t.jsDocCache=n=e.flatMap(st(t),function(t){return e.isJSDoc(t)?t.tags:t})),n}function st(t){function n(t){var i=t.parent,a=me(i)&&i.initializer===t&&208===i.parent.parent.kind,o=me(t)&&208===i.parent.kind,s=a?i.parent.parent:o?i.parent:void 0;s&&n(s),i&&i.parent&&194===i.kind&&58===i.operatorToken.kind&&210===i.parent.kind&&n(i.parent);var c=233===t.kind&&i&&233===i.kind,u=i&&261===i.kind;(c||u)&&n(i),146===t.kind&&(r=e.addRange(r,ct(t))),me(t)&&t.initializer&&(r=e.addRange(r,t.initializer.jsDoc)),r=e.addRange(r,t.jsDoc);}var r;return n(t),r||e.emptyArray}function ct(t){if(t.name&&e.isIdentifier(t.name)){var n=t.name.escapedText;return ot(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n})}}function ut(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var n=t.name.escapedText;e.Debug.assert(275===t.parent.kind);var r=t.parent.parent;if(e.isFunctionLike(r)){var i=e.find(r.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===n});return i&&i.symbol}}}function lt(t){var n=t.name.escapedText,r=t.parent.parent.parent.typeParameters;return e.find(r,function(e){return e.name.escapedText===n})}function _t(t){var n=it(t,281);if(!n&&146===t.kind){var r=ct(t);r&&(n=e.find(r,function(e){return!!e.typeExpression}));}return n&&n.typeExpression&&n.typeExpression.type}function dt(e){return it(e,277)}function pt(e){return it(e,278)}function ft(e){return it(e,280)}function mt(e){var t=ft(e);return t&&t.typeExpression&&t.typeExpression.type}function gt(e){return it(e,282)}function yt(t){return vt(e.lastOrUndefined(t.parameters))}function ht(t){return bt(e.lastOrUndefined(t.parameters))}function vt(t){return!(!Ue(t)||!(t.type&&274===t.type.kind||e.forEach(ct(t),function(e){return e.typeExpression&&274===e.typeExpression.type.kind})))||bt(t)}function bt(e){return e&&void 0!==e.dotDotDotToken}function xt(e){for(var t=e.parent;;){switch(t.kind){case 194:var n=t.operatorToken.kind;return rr(n)&&t.left===e?58===n?1:2:0;case 192:case 193:var r=t.operator;return 43===r||44===r?2:0;case 215:case 216:return t.initializer===e?1:0;case 185:case 177:case 198:e=t;break;case 262:if(t.name!==e)return 0;e=t.parent;break;case 261:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent;}}function St(e){return 0!==xt(e)}function kt(e){if(179!==e.kind&&180!==e.kind)return!1;for(e=e.parent;e&&185===e.kind;)e=e.parent;return e&&188===e.kind}function Tt(e,t){for(;e;){if(e===t)return!0;e=e.parent;}return!1}function Ct(e){for(;e;){if(Yn(e,2)||265===e.kind&&e.isDeclarationFile)return!0;e=e.parent;}return!1}function Dt(t){switch(t.kind){case 71:case 9:case 8:return e.isDeclaration(t.parent)&&t.parent.name===t;default:return!1}}function Et(t){switch(t.kind){case 71:case 9:case 8:if(e.isDeclaration(t.parent))return t.parent.name===t;var n=t.parent.parent;return e.isBinaryExpression(n)&&0!==Ye(n)&&e.getNameOfDeclaration(n)===t;default:return!1}}function Nt(t){return(9===t.kind||8===t.kind)&&144===t.parent.kind&&e.isDeclaration(t.parent.parent)}function At(e){var t=e.parent;switch(t.kind){case 149:case 148:case 151:case 150:case 153:case 154:case 264:case 261:case 179:return t.name===e;case 143:if(t.right===e){for(;143===t.kind;)t=t.parent;return 162===t.kind}return!1;case 176:case 242:return t.propertyName===e;case 246:case 253:return!0}return!1}function wt(e){return 237===e.kind||236===e.kind||239===e.kind&&!!e.name||240===e.kind||242===e.kind||246===e.kind||243===e.kind&&Ot(e)}function Ot(e){return ur(e.expression)}function Pt(e){var t=Lt(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0}function Ft(e){var t=Lt(e.heritageClauses,108);return t?t.types:void 0}function It(e){var t=Lt(e.heritageClauses,85);return t?t.types:void 0}function Lt(e,t){if(e)for(var n=0,r=e;n1&&(_=_+r.length-1,d=c.length-t.length+e.lastOrUndefined(r));}}function o(){l||(_++,d=(c+=t).length,l=!0);}function s(e,t){n(C(e,t));}var c,u,l,_,d;return r(),{write:n,rawWrite:i,writeTextOfNode:s,writeLiteral:a,writeLine:o,increaseIndent:function(){u++;},decreaseIndent:function(){u--;},getIndent:function(){return u},getTextPos:function(){return c.length},getLine:function(){return _+1},getColumn:function(){return l?u*yn()+1:c.length-d+1},getText:function(){return c},isAtStartOfLine:function(){return l},reset:r}}function vn(e,t){return t.moduleName||xn(e,t.fileName)}function bn(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!r.isDeclarationFile)return vn(e,r)}function xn(t,n){var r=function(e){return t.getCanonicalFileName(e)},i=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),r),a=e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(i,a,i,r,!1);return e.removeFileExtension(o)}function Sn(t,n,r){var i=n.getCompilerOptions();return(i.outDir?e.removeFileExtension(Dn(t,n,i.outDir)):e.removeFileExtension(t.fileName))+r}function kn(t,n){var r=n.getCompilerOptions(),i=r.declarationDir||r.outDir,a=i?Dn(t,n,i):t.fileName;return e.removeFileExtension(a)+".d.ts"}function Tn(t,n){var r=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var a=e.getEmitModuleKind(r),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&Cn(t,r,i)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return Cn(e,r,i)})}function Cn(e,t,n){return!(t.noEmitForJsFiles&&ze(e)||e.isDeclarationFile||n(e))}function Dn(t,n,r){var i=e.getNormalizedAbsolutePath(t.fileName,n.getCurrentDirectory()),a=n.getCommonSourceDirectory();return i=0===n.getCanonicalFileName(i).indexOf(n.getCanonicalFileName(a))?i.substring(a.length):i,e.combinePaths(r,i)}function En(t,n,r,i,a,o){t.writeFile(r,i,a,function(t){n.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,r,t));},o);}function Nn(t,n){return e.getLineAndCharacterOfPosition(t,n).line}function An(t,n){return e.computeLineAndCharacterOfPosition(t,n).line}function wn(t){return e.forEach(t.members,function(e){if(152===e.kind&&v(e.body))return e})}function On(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&In(e.parameters[0]);return e.parameters[t?1:0]}}function Pn(e){var t=On(e);return t&&t.type}function Fn(e){if(e.parameters.length){var t=e.parameters[0];if(In(t))return t}}function In(e){return Ln(e.name)}function Ln(e){return e&&71===e.kind&&Rn(e)}function Rn(e){return 99===e.originalKeywordKind}function Mn(t,n){var r,i,a,o;return qt(n)?(r=n,153===n.kind?a=n:154===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){153!==e.kind&&154!==e.kind||Yn(e,32)!==Yn(n,32)||Wt(e.name)===Wt(n.name)&&(r?i||(i=e):r=e,153!==e.kind||a||(a=e),154!==e.kind||o||(o=e));}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}}function Bn(e){return e.type?e.type:Ue(e)?_t(e):void 0}function Kn(e){return e.type?e.type:Ue(e)?mt(e):void 0}function jn(e){if(e.typeParameters)return e.typeParameters;if(Ue(e)){var t=gt(e);return t&&t.typeParameters}}function Jn(e){var t=On(e);return t&&Bn(t)}function zn(e,t,n,r){Un(e,t,n.pos,r);}function Un(e,t,n,r){r&&r.length&&n!==r[0].pos&&An(e,n)!==An(e,r[0].pos)&&t.writeLine();}function qn(e,t,n,r){n!==r&&An(e,n)!==An(e,r)&&t.writeLine();}function Vn(e,t,n,r,i,a,o,s){if(r&&r.length>0){i&&n.write(" ");for(var c=!1,u=0,l=r;u=g+2)break}_.push(m),d=m;}if(_.length){var g=An(n,e.lastOrUndefined(_).end);An(n,e.skipTrivia(t,a.pos))>=g+2&&(zn(n,r,a,u),Vn(t,n,r,_,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(_).end});}}return l}function Wn(t,n,r,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(n,i),c=n.length,u=void 0,l=i,_=s.line;l0){var f=p%yn(),m=gn((p-f)/yn());for(r.rawWrite(m);f;)r.rawWrite(" "),f--;}else r.rawWrite("");}Gn(t,a,r,o,l,d),l=d;}else r.write(t.substring(i,a));}function Gn(e,t,n,r,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(n.write(s),o!==t&&n.writeLine()):n.writeLiteral(r);}function Hn(t,n,r){for(var i=0;n=58&&e<=70}function ir(t){if(201===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function ar(t,n){return e.isBinaryExpression(t)&&(n?58===t.operatorToken.kind:rr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function or(e){if(ar(e,!0)){var t=e.left.kind;return 178===t||177===t}return!1}function sr(e){return void 0!==ir(e)}function cr(t){return 201===t.kind&&ur(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)}function ur(e){return 71===e.kind||179===e.kind&&ur(e.expression)}function lr(e){return 143===e.parent.kind&&e.parent.right===e||179===e.parent.kind&&e.parent.name===e}function _r(e){return 178===e.kind&&0===e.properties.length}function dr(e){return 177===e.kind&&0===e.elements.length}function pr(e){return fr(e)?e.declarations[0].localSymbol:void 0}function fr(t){return t&&e.length(t.declarations)>0&&Yn(t.declarations[0],512)}function mr(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(n){return e.fileExtensionIs(t,n)})}function gr(t){for(var n=[],r=t.length,i=0;i>6|192),n.push(63&a|128)):a<65536?(n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)):a<131072?(n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point");}return n}function yr(e){for(var t,n,r,i,a="",o=gr(e),s=0,c=o.length;s>2,n=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?r=i=64:s+2>=c&&(i=64),a+=si.charAt(t)+si.charAt(n)+si.charAt(r)+si.charAt(i),s+=3;return a}function hr(t){switch(t.newLine){case 0:return ci;case 1:return ui}return e.sys?e.sys.newLine:ci}function vr(e,t,n){void 0===e&&(e=0);var r=br(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){for(var i="",a=e,o=r.length-1;o>=0&&0!==a;o--){var s=r[o],c=s[0],u=s[1];0!==c&&(a&c)===c&&(a&=~c,i=u+(i?", ":"")+i);}if(0===a)return i}else for(var l=0,_=r;l<_.length;l++){var d=_[l],c=d[0],u=d[1];if(c===e)return u}return e.toString()}function br(t){var n=[];for(var r in t){var i=t[r];"number"==typeof i&&n.push([i,r]);}return e.stableSort(n,function(t,n){return e.compareValues(t[0],n[0])})}function xr(t){return vr(t,e.SyntaxKind,!1)}function Sr(t){return vr(t,e.ModifierFlags,!0)}function kr(t){return vr(t,e.TransformFlags,!0)}function Tr(t){return vr(t,e.EmitFlags,!0)}function Cr(t){return vr(t,e.SymbolFlags,!0)}function Dr(t){return vr(t,e.TypeFlags,!0)}function Er(t){return vr(t,e.ObjectFlags,!0)}function Nr(e,t){return{pos:e,end:t}}function Ar(e,t){return Nr(e.pos,t)}function wr(e,t){return Nr(t,e.end)}function Or(e){return e.decorators&&e.decorators.length>0?wr(e,e.decorators.end):e}function Pr(e){return e.modifiers&&e.modifiers.length>0?wr(e,e.modifiers.end):Or(e)}function Fr(e){return e.pos===e.end}function Ir(t,n){return Nr(t,t+e.tokenToString(n).length)}function Lr(e,t){return Br(e,e,t)}function Rr(e,t,n){return jr(Jr(e,n),Jr(t,n),n)}function Mr(e,t,n){return jr(e.end,t.end,n)}function Br(e,t,n){return jr(Jr(e,n),t.end,n)}function Kr(e,t,n){return jr(e.end,Jr(t,n),n)}function jr(e,t,n){return e===t||Nn(n,e)===Nn(n,t)}function Jr(t,n){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(n.text,t.pos)}function zr(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 232:case 233:return n===n.parent.name}return!1}function Ur(t){return e.filter(t.declarations,qr)}function qr(e){return void 0!==e.initializer}function Vr(e){return e.watch&&e.hasOwnProperty("watch")}function $r(e){return 33554432&e.flags?e.checkFlags:0}function Wr(t){if(t.valueDeclaration){var n=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?n:-29&n}if(6&$r(t)){var r=t.checkFlags;return(256&r?8:64&r?4:16)|(512&r?32:0)}return 4194304&t.flags?36:0}function Gr(e,t){for(var n=new Array(t.length+1),r=new Array(t.length+1),i=0;i/;var Zr=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var ei=/^(\/\/\/\s*/;e.isPartOfTypeNode=le,e.isChildOfNodeWithKind=_e,e.forEachReturnStatement=de,e.forEachYieldExpression=pe,e.getRestParameterElementType=fe,e.isVariableLike=me,e.introducesArgumentsExoticObject=ge,e.unwrapInnermostStatementOfLabel=ye,e.isFunctionBlock=he,e.isObjectLiteralMethod=ve,e.isObjectLiteralOrClassExpressionMethod=be,e.isIdentifierTypePredicate=xe,e.isThisTypePredicate=Se,e.getPropertyAssignment=ke,e.getContainingFunction=Te,e.getContainingClass=Ce,e.getThisContainer=De,e.getNewTargetContainer=Ee,e.getSuperContainer=Ne,e.getImmediatelyInvokedFunctionExpression=Ae,e.isSuperProperty=we,e.getEntityNameFromTypeNode=Oe,e.getInvokedExpression=Pe,e.nodeCanBeDecorated=Fe,e.nodeIsDecorated=Ie,e.nodeOrChildIsDecorated=Le,e.childIsDecorated=Re,e.isJSXTagName=Me,e.isPartOfExpression=Be,e.isExternalModuleImportEqualsDeclaration=Ke,e.getExternalModuleImportEqualsDeclarationExpression=je,e.isInternalModuleImportEqualsDeclaration=Je,e.isSourceFileJavaScript=ze,e.isInJavaScriptFile=Ue,e.isInJSDoc=qe,e.isRequireCall=Ve,e.isSingleOrDoubleQuote=$e,e.isDeclarationOfFunctionOrClassExpression=We,e.getRightMostAssignedExpression=Ge,e.isExportsIdentifier=He,e.isModuleExportsPropertyAccessExpression=Xe,e.getSpecialPropertyAssignmentKind=Ye,e.getExternalModuleName=Qe,e.getNamespaceDeclarationNode=Ze,e.isDefaultImport=et,e.hasQuestionToken=tt,e.isJSDocConstructSignature=nt,e.hasJSDocParameterTags=rt,e.getAllJSDocs=at,e.getJSDocTags=ot,e.getJSDocParameterTags=ct,e.getParameterSymbolFromJSDoc=ut,e.getTypeParameterFromJsDoc=lt,e.getJSDocType=_t,e.getJSDocAugmentsTag=dt,e.getJSDocClassTag=pt,e.getJSDocReturnTag=ft,e.getJSDocReturnType=mt,e.getJSDocTemplateTag=gt,e.hasRestParameter=yt,e.hasDeclaredRestParameter=ht,e.isRestParameter=vt,e.isDeclaredRestParam=bt;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound";}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=xt,e.isAssignmentTarget=St,e.isDeleteTarget=kt,e.isNodeDescendantOf=Tt,e.isInAmbientContext=Ct,e.isDeclarationName=Dt,e.isAnyDeclarationName=Et,e.isLiteralComputedPropertyDeclarationName=Nt,e.isIdentifierName=At,e.isAliasSymbolDeclaration=wt,e.exportAssignmentIsAlias=Ot,e.getClassExtendsHeritageClauseElement=Pt,e.getClassImplementsHeritageClauseElements=Ft,e.getInterfaceBaseTypeNodes=It,e.getHeritageClause=Lt,e.tryResolveScriptReference=Rt,e.getAncestor=Mt,e.getFileReferenceFromReferencePath=Bt,e.isKeyword=Kt,e.isTrivia=jt;!function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator";}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=Jt,e.isAsyncFunction=zt,e.isStringOrNumericLiteral=Ut,e.hasDynamicName=qt,e.isDynamicName=Vt,e.isWellKnownSymbolSyntactically=$t,e.getPropertyNameForPropertyNameNode=Wt,e.getTextOfIdentifierOrLiteral=Gt,e.getEscapedTextOfIdentifierOrLiteral=Ht,e.getPropertyNameForKnownSymbolName=Xt,e.isESSymbolIdentifier=Yt,e.isPushOrUnshiftIdentifier=Qt,e.isParameterDeclaration=Zt,e.getRootDeclaration=en,e.nodeStartsNewLexicalEnvironment=tn,e.nodeIsSynthesized=nn,e.getOriginalSourceFile=rn;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right";}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=an,e.getOperatorAssociativity=on$$1,e.getExpressionPrecedence=sn,e.getOperator=cn,e.getOperatorPrecedence=un,e.createDiagnosticCollection=ln;var ti=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ni=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ri=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ii=e.createMapFromTemplate({"\0":"\\0","\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"});e.escapeString=_n,e.isIntrinsicJsxName=pn;var ai=/[^\u0000-\u007F]/g;e.escapeNonAsciiString=mn;var oi=[""," "];e.getIndentString=gn,e.getIndentSize=yn,e.createTextWriter=hn,e.getResolvedExternalModuleName=vn,e.getExternalModuleNameFromDeclaration=bn,e.getExternalModuleNameFromPath=xn,e.getOwnEmitOutputFilePath=Sn,e.getDeclarationEmitOutputFilePath=kn,e.getSourceFilesToEmit=Tn,e.sourceFileMayBeEmitted=Cn,e.getSourceFilePathInNewDir=Dn,e.writeFile=En,e.getLineOfLocalPosition=Nn,e.getLineOfLocalPositionFromLineMap=An,e.getFirstConstructorWithBody=wn,e.getSetAccessorTypeAnnotationNode=Pn,e.getThisParameter=Fn,e.parameterIsThisKeyword=In,e.isThisIdentifier=Ln,e.identifierIsThisKeyword=Rn,e.getAllAccessorDeclarations=Mn,e.getEffectiveTypeAnnotationNode=Bn,e.getEffectiveReturnTypeNode=Kn,e.getEffectiveTypeParameterDeclarations=jn,e.getEffectiveSetAccessorTypeAnnotationNode=Jn,e.emitNewLineBeforeLeadingComments=zn,e.emitNewLineBeforeLeadingCommentsOfPosition=Un,e.emitNewLineBeforeLeadingCommentOfPosition=qn,e.emitComments=Vn,e.emitDetachedComments=$n,e.writeCommentRange=Wn,e.hasModifiers=Xn,e.hasModifier=Yn,e.getSelectedModifierFlags=Qn,e.getModifierFlags=Zn,e.getModifierFlagsNoCache=er,e.modifierToFlag=tr,e.isLogicalOperator=nr,e.isAssignmentOperator=rr,e.tryGetClassExtendingExpressionWithTypeArguments=ir,e.isAssignmentExpression=ar,e.isDestructuringAssignment=or,e.isExpressionWithTypeArgumentsInClassExtendsClause=sr,e.isExpressionWithTypeArgumentsInClassImplementsClause=cr,e.isEntityNameExpression=ur,e.isRightSideOfQualifiedNameOrPropertyAccess=lr,e.isEmptyObjectLiteral=_r,e.isEmptyArrayLiteral=dr,e.getLocalSymbolForExportDefault=pr,e.tryExtractTypeScriptExtension=mr;var si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=yr;var ci="\r\n",ui="\n";e.getNewLineCharacter=hr,e.formatSyntaxKind=xr,e.formatModifierFlags=Sr,e.formatTransformFlags=kr,e.formatEmitFlags=Tr,e.formatSymbolFlags=Cr,e.formatTypeFlags=Dr,e.formatObjectFlags=Er,e.createRange=Nr,e.moveRangeEnd=Ar,e.moveRangePos=wr,e.moveRangePastDecorators=Or,e.moveRangePastModifiers=Pr,e.isCollapsedRange=Fr,e.createTokenRange=Ir,e.rangeIsOnSingleLine=Lr,e.rangeStartPositionsAreOnSameLine=Rr,e.rangeEndPositionsAreOnSameLine=Mr,e.rangeStartIsOnSameLineAsRangeEnd=Br,e.rangeEndIsOnSameLineAsRangeStart=Kr,e.positionsAreOnSameLine=jr,e.getStartPositionOfRange=Jr,e.isDeclarationNameOfEnumOrNamespace=zr,e.getInitializedVariables=Ur,e.isWatchSet=Vr,e.getCheckFlags=$r,e.getDeclarationModifierFlagsFromSymbol=Wr,e.levenshtein=Gr,e.skipAlias=Hr,e.getCombinedLocalAndExportSymbolFlags=Xr;}(r||(r={})),function(e){function t(e){switch(e.target){case 5:return"lib.esnext.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function n(e){return e.start+e.length}function r(e){return 0===e.length}function i(e,t){return t>=e.start&&t=e.start&&n(t)<=n(e)}function o(e,t){return Math.max(e.start,t.start)=e.start}function u(e,t,r){var i=t+r;return t<=n(e)&&i>=e.start}function l(e,t,n,r){var i=n+r;return n<=e+t&&i>=e}function _(e,t){return t<=n(e)&&t>=e.start}function d(e,t){var r=Math.max(e.start,t.start),i=Math.min(n(e),n(t));if(r<=i)return f(r,i)}function p(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function f(e,t){return p(e,t-e)}function m(e){return p(e.span.start,e.newLength)}function g(e){return r(e.span)&&0===e.newLength}function y(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function h(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],i=r.span.start,a=n(r.span),o=i+r.newLength,s=1;s=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function O(e){return e}function P(t){if(t){if(e.isJSDocPropertyLikeTag(t)&&143===t.name.kind)return t.name.right;if(194!==t.kind)return t.name;var n=t;switch(e.getSpecialPropertyAssignmentKind(n)){case 1:case 4:case 5:case 3:return n.left.name;default:return}}}e.getDefaultLibFileName=t,e.textSpanEnd=n,e.textSpanIsEmpty=r,e.textSpanContainsPosition=i,e.textSpanContainsTextSpan=a,e.textSpanOverlapsWith=o,e.textSpanOverlap=s,e.textSpanIntersectsWithTextSpan=c,e.textSpanIntersectsWith=u,e.decodedTextSpanIntersectsWith=l,e.textSpanIntersectsWithPosition=_,e.textSpanIntersection=d,e.createTextSpan=p,e.createTextSpanFromBounds=f,e.textChangeRangeNewSpan=m,e.textChangeRangeIsUnchanged=g,e.createTextChangeRange=y,e.unchangedTextChangeRange=y(p(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=h,e.getTypeParameterOwner=v,e.isParameterPropertyDeclaration=b,e.isEmptyBindingPattern=x,e.isEmptyBindingElement=S,e.getCombinedModifierFlags=T,e.getCombinedNodeFlags=C,e.validateLocaleAndSetLanguage=D,e.getOriginalNode=E,e.isParseTreeNode=N,e.getParseTreeNode=A,e.unescapeLeadingUnderscores=w,e.unescapeIdentifier=O,e.getNameOfDeclaration=P;}(r||(r={})),function(e){function t(e){return 8===e.kind}function n(e){return 9===e.kind}function r(e){return 10===e.kind}function i(e){return 12===e.kind}function a(e){return 13===e.kind}function o(e){return 14===e.kind}function s(e){return 15===e.kind}function c(e){return 16===e.kind}function u(e){return 71===e.kind}function l(e){return 143===e.kind}function _(e){return 144===e.kind}function d(e){return 145===e.kind}function p(e){return 146===e.kind}function f(e){return 147===e.kind}function m(e){return 148===e.kind}function g(e){return 149===e.kind}function y(e){return 150===e.kind}function h(e){return 151===e.kind}function v(e){return 152===e.kind}function b(e){return 153===e.kind}function x(e){return 154===e.kind}function S(e){return 155===e.kind}function k(e){return 156===e.kind}function T(e){return 157===e.kind}function C(e){return 158===e.kind}function D(e){return 159===e.kind}function E(e){return 160===e.kind}function N(e){return 161===e.kind}function A(e){return 162===e.kind}function w(e){return 163===e.kind}function O(e){return 164===e.kind}function P(e){return 165===e.kind}function F(e){return 166===e.kind}function I(e){return 167===e.kind}function L(e){return 168===e.kind}function R(e){return 169===e.kind}function M(e){return 170===e.kind}function B(e){return 171===e.kind}function K(e){return 172===e.kind}function j(e){return 173===e.kind}function J(e){return 174===e.kind}function z(e){return 175===e.kind}function U(e){return 176===e.kind}function q(e){return 177===e.kind}function V(e){return 178===e.kind}function $(e){return 179===e.kind}function W(e){return 180===e.kind}function G(e){return 181===e.kind}function H(e){return 182===e.kind}function X(e){return 183===e.kind}function Y(e){return 184===e.kind}function Q(e){return 185===e.kind}function Z(e){for(;288===e.kind;)e=e.expression;return e}function ee(e){return 186===e.kind}function te(e){return 187===e.kind}function ne(e){return 188===e.kind}function re(e){return 191===e.kind}function ie(e){return 190===e.kind}function ae(e){return 191===e.kind}function oe(e){return 192===e.kind}function se(e){return 193===e.kind}function ce(e){return 194===e.kind}function ue(e){return 195===e.kind}function le(e){return 196===e.kind}function _e(e){return 197===e.kind}function de(e){return 198===e.kind}function pe(e){return 199===e.kind}function fe(e){return 200===e.kind}function me(e){return 201===e.kind}function ge(e){return 202===e.kind}function ye(e){return 203===e.kind}function he(e){return 204===e.kind}function ve(e){return 205===e.kind}function be(e){return 206===e.kind}function xe(e){return 207===e.kind}function Se(e){return 208===e.kind}function ke(e){return 209===e.kind}function Te(e){return 210===e.kind}function Ce(e){return 211===e.kind}function De(e){return 212===e.kind}function Ee(e){return 213===e.kind}function Ne(e){return 214===e.kind}function Ae(e){return 215===e.kind}function we(e){return 216===e.kind}function Oe(e){return 217===e.kind}function Pe(e){return 218===e.kind}function Fe(e){return 219===e.kind}function Ie(e){return 220===e.kind}function Le(e){return 221===e.kind}function Re(e){return 222===e.kind}function Me(e){return 223===e.kind}function Be(e){return 224===e.kind}function Ke(e){return 225===e.kind}function je(e){return 226===e.kind}function Je(e){return 227===e.kind}function ze(e){return 228===e.kind}function Ue(e){return 229===e.kind}function qe(e){return 230===e.kind}function Ve(e){return 231===e.kind}function $e(e){return 232===e.kind}function We(e){return 233===e.kind}function Ge(e){return 234===e.kind}function He(e){return 235===e.kind}function Xe(e){return 236===e.kind}function Ye(e){return 237===e.kind}function Qe(e){return 238===e.kind}function Ze(e){return 239===e.kind}function et(e){return 240===e.kind}function tt(e){return 241===e.kind}function nt(e){return 242===e.kind}function rt(e){return 243===e.kind}function it(e){return 244===e.kind}function at(e){return 245===e.kind}function ot(e){return 246===e.kind}function st(e){return 247===e.kind}function ct(e){return 248===e.kind}function ut(e){return 249===e.kind}function lt(e){return 250===e.kind}function _t(e){return 251===e.kind}function dt(e){return 252===e.kind}function pt(e){return 253===e.kind}function ft(e){return 254===e.kind}function mt(e){return 255===e.kind}function gt(e){return 256===e.kind}function yt(e){return 257===e.kind}function ht(e){return 258===e.kind}function vt(e){return 259===e.kind}function bt(e){return 260===e.kind}function xt(e){return 261===e.kind}function St(e){return 262===e.kind}function kt(e){return 263===e.kind}function Tt(e){return 264===e.kind}function Ct(e){return 265===e.kind}function Dt(e){return 266===e.kind}function Et(e){return 267===e.kind}function Nt(e){return 268===e.kind}function At(e){return 269===e.kind}function wt(e){return 270===e.kind}function Ot(e){return 271===e.kind}function Pt(e){return 272===e.kind}function Ft(e){return 273===e.kind}function It(e){return 274===e.kind}function Lt(e){return 275===e.kind}function Rt(e){return 277===e.kind}function Mt(e){return 279===e.kind}function Bt(e){return 280===e.kind}function Kt(e){return 281===e.kind}function jt(e){return 282===e.kind}function Jt(e){return 283===e.kind}function zt(e){return 284===e.kind}function Ut(e){return 284===e.kind||279===e.kind}function qt(e){return 285===e.kind}e.isNumericLiteral=t,e.isStringLiteral=n,e.isJsxText=r,e.isRegularExpressionLiteral=i,e.isNoSubstitutionTemplateLiteral=a,e.isTemplateHead=o,e.isTemplateMiddle=s,e.isTemplateTail=c,e.isIdentifier=u,e.isQualifiedName=l,e.isComputedPropertyName=_,e.isTypeParameterDeclaration=d,e.isParameter=p,e.isDecorator=f,e.isPropertySignature=m,e.isPropertyDeclaration=g,e.isMethodSignature=y,e.isMethodDeclaration=h,e.isConstructorDeclaration=v,e.isGetAccessorDeclaration=b,e.isSetAccessorDeclaration=x,e.isCallSignatureDeclaration=S,e.isConstructSignatureDeclaration=k,e.isIndexSignatureDeclaration=T,e.isTypePredicateNode=C,e.isTypeReferenceNode=D,e.isFunctionTypeNode=E,e.isConstructorTypeNode=N,e.isTypeQueryNode=A,e.isTypeLiteralNode=w,e.isArrayTypeNode=O,e.isTupleTypeNode=P,e.isUnionTypeNode=F,e.isIntersectionTypeNode=I,e.isParenthesizedTypeNode=L,e.isThisTypeNode=R,e.isTypeOperatorNode=M,e.isIndexedAccessTypeNode=B,e.isMappedTypeNode=K,e.isLiteralTypeNode=j,e.isObjectBindingPattern=J,e.isArrayBindingPattern=z,e.isBindingElement=U,e.isArrayLiteralExpression=q,e.isObjectLiteralExpression=V,e.isPropertyAccessExpression=$,e.isElementAccessExpression=W,e.isCallExpression=G,e.isNewExpression=H,e.isTaggedTemplateExpression=X,e.isTypeAssertion=Y,e.isParenthesizedExpression=Q,e.skipPartiallyEmittedExpressions=Z,e.isFunctionExpression=ee,e.isArrowFunction=te,e.isDeleteExpression=ne,e.isTypeOfExpression=re,e.isVoidExpression=ie,e.isAwaitExpression=ae,e.isPrefixUnaryExpression=oe,e.isPostfixUnaryExpression=se,e.isBinaryExpression=ce,e.isConditionalExpression=ue,e.isTemplateExpression=le,e.isYieldExpression=_e,e.isSpreadElement=de,e.isClassExpression=pe,e.isOmittedExpression=fe,e.isExpressionWithTypeArguments=me,e.isAsExpression=ge,e.isNonNullExpression=ye,e.isMetaProperty=he,e.isTemplateSpan=ve,e.isSemicolonClassElement=be,e.isBlock=xe,e.isVariableStatement=Se,e.isEmptyStatement=ke,e.isExpressionStatement=Te,e.isIfStatement=Ce,e.isDoStatement=De,e.isWhileStatement=Ee,e.isForStatement=Ne,e.isForInStatement=Ae,e.isForOfStatement=we,e.isContinueStatement=Oe,e.isBreakStatement=Pe,e.isReturnStatement=Fe,e.isWithStatement=Ie,e.isSwitchStatement=Le,e.isLabeledStatement=Re,e.isThrowStatement=Me,e.isTryStatement=Be,e.isDebuggerStatement=Ke,e.isVariableDeclaration=je,e.isVariableDeclarationList=Je,e.isFunctionDeclaration=ze,e.isClassDeclaration=Ue,e.isInterfaceDeclaration=qe,e.isTypeAliasDeclaration=Ve,e.isEnumDeclaration=$e,e.isModuleDeclaration=We,e.isModuleBlock=Ge,e.isCaseBlock=He,e.isNamespaceExportDeclaration=Xe,e.isImportEqualsDeclaration=Ye,e.isImportDeclaration=Qe,e.isImportClause=Ze,e.isNamespaceImport=et,e.isNamedImports=tt,e.isImportSpecifier=nt,e.isExportAssignment=rt,e.isExportDeclaration=it,e.isNamedExports=at,e.isExportSpecifier=ot,e.isMissingDeclaration=st,e.isExternalModuleReference=ct,e.isJsxElement=ut,e.isJsxSelfClosingElement=lt,e.isJsxOpeningElement=_t,e.isJsxClosingElement=dt,e.isJsxAttribute=pt,e.isJsxAttributes=ft,e.isJsxSpreadAttribute=mt,e.isJsxExpression=gt,e.isCaseClause=yt,e.isDefaultClause=ht,e.isHeritageClause=vt,e.isCatchClause=bt,e.isPropertyAssignment=xt,e.isShorthandPropertyAssignment=St,e.isSpreadAssignment=kt,e.isEnumMember=Tt,e.isSourceFile=Ct,e.isBundle=Dt,e.isJSDocTypeExpression=Et,e.isJSDocAllType=Nt,e.isJSDocUnknownType=At,e.isJSDocNullableType=wt,e.isJSDocNonNullableType=Ot,e.isJSDocOptionalType=Pt,e.isJSDocFunctionType=Ft,e.isJSDocVariadicType=It,e.isJSDoc=Lt,e.isJSDocAugmentsTag=Rt,e.isJSDocParameterTag=Mt,e.isJSDocReturnTag=Bt,e.isJSDocTypeTag=Kt,e.isJSDocTemplateTag=jt,e.isJSDocTypedefTag=Jt,e.isJSDocPropertyTag=zt,e.isJSDocPropertyLikeTag=Ut,e.isJSDocTypeLiteral=qt;}(r||(r={})),function(e){function t(e){return 286===e.kind}function n(e){return r(e.kind)}function r(e){return e>=143}function i(e){return e.kind>=0&&e.kind<=142}function a(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}function o(e){return 8<=e&&e<=13}function s(e){return o(e.kind)}function c(e){return 13<=e&&e<=16}function u(e){var t=e.kind;return 15===t||16===t}function l(e){switch(e.kind){case 9:case 14:case 15:case 16:case 13:return!0;default:return!1}}function _(t){return e.isIdentifier(t)&&t.autoGenerateKind>0}function d(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 131:case 115:return!0}return!1}function p(e){return d(e.kind)}function f(e){var t=e.kind;return 143===t||71===t}function m(e){var t=e.kind;return 71===t||9===t||8===t||144===t}function g(e){var t=e.kind;return 71===t||174===t||175===t}function y(e){return e&&h(e.kind)}function h(e){switch(e){case 152:case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 155:case 156:case 157:case 160:case 273:case 161:return!0}return!1}function v(e){var t=e.kind;return 152===t||149===t||151===t||153===t||154===t||157===t||206===t||247===t}function b(e){return e&&(229===e.kind||199===e.kind)}function x(e){return e&&(153===e.kind||154===e.kind)}function S(e){var t=e.kind;return 156===t||155===t||148===t||150===t||157===t||247===t}function k(e){var t=e.kind;return 261===t||262===t||263===t||151===t||153===t||154===t||247===t}function T(e){return e>=158&&e<=173||119===e||133===e||134===e||122===e||136===e||137===e||99===e||105===e||139===e||95===e||130===e||201===e}function C(e){return T(e.kind)}function D(e){switch(e.kind){case 160:case 161:return!0}return!1}function E(e){if(e){var t=e.kind;return 175===t||174===t}return!1}function N(e){var t=e.kind;return 177===t||178===t}function A(e){var t=e.kind;return 176===t||200===t}function w(e){switch(e.kind){case 226:case 146:case 176:return!0}return!1}function O(e){return P(e)||F(e)}function P(e){switch(e.kind){case 174:case 178:return!0}return!1}function F(e){switch(e.kind){case 175:case 177:return!0}return!1}function I(e){var t=e.kind;return 179===t||143===t}function L(e){switch(e.kind){case 251:case 250:case 181:case 182:case 183:case 147:return!0;default:return!1}}function R(e){return 181===e.kind||182===e.kind}function M(e){var t=e.kind;return 196===t||13===t}function B(e){return 179===e||180===e||182===e||181===e||249===e||250===e||183===e||177===e||185===e||178===e||199===e||186===e||71===e||12===e||8===e||9===e||13===e||196===e||86===e||95===e||99===e||101===e||97===e||91===e||203===e||204===e}function K(t){return B(e.skipPartiallyEmittedExpressions(t).kind)}function j(e){return 192===e||193===e||188===e||189===e||190===e||191===e||184===e||B(e)}function J(t){return j(e.skipPartiallyEmittedExpressions(t).kind)}function z(e){switch(e.kind){case 193:return!0;case 192:return 43===e.operator||44===e.operator;default:return!1}}function U(e){return 195===e||197===e||187===e||194===e||198===e||202===e||200===e||289===e||j(e)}function q(t){return U(e.skipPartiallyEmittedExpressions(t).kind)}function V(e){var t=e.kind;return 184===t||202===t}function $(e){return 288===e.kind}function W(e){return 287===e.kind}function G(e){return W(e)||$(e)}function H(e,t){switch(e.kind){case 214:case 215:case 216:case 212:case 213:return!0;case 222:return t&&H(e.statement,t)}return!1}function X(e){return 215===e.kind||216===e.kind}function Y(t){return e.isBlock(t)||q(t)}function Q(t){return e.isBlock(t)}function Z(t){return e.isVariableDeclarationList(t)||q(t)}function ee(e){var t=e.kind;return 234===t||233===t||71===t}function te(e){var t=e.kind;return 234===t||233===t}function ne(e){var t=e.kind;return 71===t||233===t}function re(e){var t=e.kind;return 241===t||240===t}function ie(e){return 233===e.kind||232===e.kind}function ae(e){return 187===e||176===e||229===e||199===e||152===e||232===e||264===e||246===e||228===e||186===e||153===e||239===e||237===e||242===e||230===e||253===e||151===e||150===e||233===e||236===e||240===e||146===e||261===e||149===e||148===e||154===e||262===e||231===e||145===e||226===e||283===e}function oe(e){return 228===e||247===e||229===e||230===e||231===e||232===e||233===e||238===e||237===e||244===e||243===e||236===e}function se(e){return 218===e||217===e||225===e||212===e||210===e||209===e||215===e||216===e||214===e||211===e||222===e||219===e||221===e||223===e||224===e||208===e||213===e||220===e||287===e||291===e||290===e}function ce(t){return 145===t.kind?282!==t.parent.kind||e.isInJavaScriptFile(t):ae(t.kind)}function ue(e){return oe(e.kind)}function le(e){return se(e.kind)}function _e(e){var t=e.kind;return se(t)||oe(t)||de(e)}function de(t){return 207===t.kind&&((void 0===t.parent||224!==t.parent.kind&&260!==t.parent.kind)&&!e.isFunctionBlock(t))}function pe(e){var t=e.kind;return 248===t||143===t||71===t}function fe(e){var t=e.kind;return 99===t||71===t||179===t}function me(e){var t=e.kind;return 249===t||256===t||250===t||10===t}function ge(e){var t=e.kind;return 253===t||255===t}function ye(e){var t=e.kind;return 9===t||256===t}function he(e){var t=e.kind;return 251===t||250===t}function ve(e){var t=e.kind;return 257===t||258===t}function be(e){return e.kind>=267&&e.kind<=285}function xe(e){return 275===e.kind||Se(e)}function Se(e){return e.kind>=276&&e.kind<=285}e.isSyntaxList=t,e.isNode=n,e.isNodeKind=r,e.isToken=i,e.isNodeArray=a,e.isLiteralKind=o,e.isLiteralExpression=s,e.isTemplateLiteralKind=c,e.isTemplateMiddleOrTemplateTail=u,e.isStringTextContainingNode=l,e.isGeneratedIdentifier=_,e.isModifierKind=d,e.isModifier=p,e.isEntityName=f,e.isPropertyName=m,e.isBindingName=g,e.isFunctionLike=y,e.isFunctionLikeKind=h,e.isClassElement=v,e.isClassLike=b,e.isAccessor=x,e.isTypeElement=S,e.isObjectLiteralElementLike=k,e.isTypeNode=C,e.isFunctionOrConstructorTypeNode=D,e.isBindingPattern=E,e.isAssignmentPattern=N,e.isArrayBindingElement=A,e.isDeclarationBindingElement=w,e.isBindingOrAssignmentPattern=O,e.isObjectBindingOrAssignmentPattern=P,e.isArrayBindingOrAssignmentPattern=F,e.isPropertyAccessOrQualifiedName=I,e.isCallLikeExpression=L,e.isCallOrNewExpression=R,e.isTemplateLiteral=M,e.isLeftHandSideExpression=K,e.isUnaryExpression=J,e.isUnaryExpressionWithWrite=z,e.isExpression=q,e.isAssertionExpression=V,e.isPartiallyEmittedExpression=$,e.isNotEmittedStatement=W,e.isNotEmittedOrPartiallyEmittedNode=G,e.isIterationStatement=H,e.isForInOrOfStatement=X,e.isConciseBody=Y,e.isFunctionBody=Q,e.isForInitializer=Z,e.isModuleBody=ee,e.isNamespaceBody=te,e.isJSDocNamespaceBody=ne,e.isNamedImportBindings=re,e.isModuleOrEnumDeclaration=ie,e.isDeclaration=ce,e.isDeclarationStatement=ue,e.isStatementButNotDeclaration=le,e.isStatement=_e,e.isModuleReference=pe,e.isJsxTagNameExpression=fe,e.isJsxChild=me,e.isJsxAttributeLike=ge,e.isStringLiteralOrJsxExpression=ye,e.isJsxOpeningLikeElement=he,e.isCaseOrDefaultClause=ve,e.isJSDocNode=be,e.isJSDocCommentContainingNode=xe,e.isJSDocTag=Se;}(r||(r={}));!function(e){function t(t,n,r){return 265===t?new(g||(g=e.objectAllocator.getSourceFileConstructor()))(t,n,r):71===t?new(m||(m=e.objectAllocator.getIdentifierConstructor()))(t,n,r):e.isNodeKind(t)?new(p||(p=e.objectAllocator.getNodeConstructor()))(t,n,r):new(f||(f=e.objectAllocator.getTokenConstructor()))(t,n,r)}function n(e,t){return t&&e(t)}function r(e,t,n){if(n){if(t)return t(n);for(var r=0,i=n;r107)}function H(t,n,r){return void 0===r&&(r=!0),M()===t?(r&&B(),!0):(n?P(n):P(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function X(e){return M()===e&&(B(),!0)}function Y(e){if(M()===e)return Z()}function Q(e,t,n,r){return Y(e)||ae(e,t,n,r)}function Z(){var e=ne(M());return B(),ie(e)}function ee(){return 25===M()||(18===M()||1===M()||ya.hasPrecedingLineBreak())}function te(){return ee()?(25===M()&&B(),!0):H(25)}function ne(t,n){return da++,n>=0||(n=ya.getStartPos()),e.isNodeKind(t)?new ra(t,n,n):71===t?new aa(t,n,n):new ia(t,n,n)}function re(e,t){var n=e||[];return t>=0||(t=L()),n.pos=t,n.end=t,n}function ie(e,t){return e.end=void 0===t?ya.getStartPos():t,ga&&(e.flags|=ga),va&&(va=!1,e.flags|=32768),e}function ae(t,n,r,i){n?F(ya.getStartPos(),0,r,i):P(r,i);var a=ne(t,ya.getStartPos());return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),ie(a)}function oe(e){var t=pa.get(e);return void 0===t&&pa.set(e,t=e),t}function se(t,n){if(fa++,t){var r=ne(71);return 71!==M()&&(r.originalKeywordKind=M()),r.escapedText=e.escapeLeadingUnderscores(oe(ya.getTokenValue())),B(),ie(r)}return ae(71,!1,n||e.Diagnostics.Identifier_expected)}function ce(e){return se(G(),e)}function ue(){return se(e.tokenIsIdentifierOrKeyword(M()))}function le(){return e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()}function _e(e){if(9===M()||8===M()){var t=Ye();return t.text=oe(t.text),t}return e&&21===M()?pe():ue()}function de(){return _e(!0)}function pe(){var e=ne(144);return H(21),e.expression=b(sn),H(22),ie(e)}function fe(e){return M()===e&&W(ge)}function me(){return B(),!ya.hasPrecedingLineBreak()&&he()}function ge(){return 76===M()?83===B():84===M()?(B(),79===M()?$(ve):39!==M()&&118!==M()&&17!==M()&&he()):79===M()?ve():115===M()?(B(),he()):me()}function ye(){return e.isModifierKind(M())&&W(ge)}function he(){return 21===M()||17===M()||39===M()||24===M()||le()}function ve(){return B(),75===M()||89===M()||109===M()||117===M()&&$(Kr)||120===M()&&$(jr)}function be(t,n){if(Oe(t))return!0;switch(t){case 0:case 1:case 3:return!(25===M()&&n)&&qr();case 2:return 73===M()||79===M();case 4:return $(Ct);case 5:return $(mi)||25===M()&&!n;case 6:return 21===M()||le();case 12:return 21===M()||39===M()||24===M()||le();case 17:return le();case 9:return 21===M()||24===M()||le();case 7:return 17===M()?$(xe):n?G()&&!Te():rn()&&!Te();case 8:return ti();case 10:return 26===M()||24===M()||ti();case 18:return G();case 11:case 15:return 26===M()||24===M()||an();case 16:return pt();case 19:case 20:return 26===M()||jt();case 21:return Ni();case 22:return e.tokenIsIdentifierOrKeyword(M());case 13:return e.tokenIsIdentifierOrKeyword(M())||17===M();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.");}function xe(){if(e.Debug.assert(17===M()),18===B()){var t=B();return 26===t||17===t||85===t||108===t}return!0}function Se(){return B(),G()}function ke(){return B(),e.tokenIsIdentifierOrKeyword(M())}function Te(){return(108===M()||85===M())&&$(Ce)}function Ce(){return B(),an()}function De(e){if(1===M())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===M();case 3:return 18===M()||73===M()||79===M();case 7:return 17===M()||85===M()||108===M();case 8:return Ee();case 18:return 29===M()||19===M()||17===M()||85===M()||108===M();case 11:return 20===M()||25===M();case 15:case 20:case 10:return 22===M();case 16:case 17:return 20===M()||22===M();case 19:return 26!==M();case 21:return 17===M()||18===M();case 13:return 29===M()||41===M();case 14:return 27===M()&&$(ji)}}function Ee(){return!!ee()||(!!Tn(M())||36===M())}function Ne(){for(var e=0;e<23;e++)if(ma&1<=0&&(i.hasTrailingComma=!0),i.end=R(),ma=r,i}function qe(){return re()}function Ve(e,t,n,r){if(H(n)){var i=Ue(e,t);return H(r),i}return qe()}function $e(e,t){for(var n=e?ue():ce(t),r=ya.getStartPos();X(23);){if(27===M()){n.jsdocDotPos=r;break}r=ya.getStartPos(),n=We(n,Ge(e));}return n}function We(e,t){var n=ne(143,e.pos);return n.left=e,n.right=t,ie(n)}function Ge(t){return ya.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(M())&&$(Br)?ae(71,!0,e.Diagnostics.Identifier_expected):t?ue():ce()}function He(){var t=ne(196);t.head=Qe(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var n=re();do{n.push(Xe());}while(15===e.lastOrUndefined(n).literal.kind);return n.end=R(),t.templateSpans=n,ie(t)}function Xe(){var t=ne(205);t.expression=b(sn);var n;return 18===M()?(J(),n=Ze()):n=Q(16,!1,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=n,ie(t)}function Ye(){return et(M())}function Qe(){var t=et(M());return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function Ze(){var t=et(M());return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function et(e){var t=ne(e),n=ya.getTokenValue();return t.text=n,ya.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),ya.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=ya.getNumericLiteralFlags()),B(),ie(t),t}function tt(){var t=ne(159);return t.typeName=$e(!!(1048576&ga),e.Diagnostics.Type_expected),ya.hasPrecedingLineBreak()||27!==M()||(t.typeArguments=Ve(19,en,27,29)),ie(t)}function nt(e){B();var t=ne(158,e.pos);return t.parameterName=e,t.type=en(),ie(t)}function rt(){var e=ne(169);return B(),ie(e)}function it(){var e=ne(268);return B(),ie(e)}function at(){var e=ya.getStartPos();if(B(),26===M()||18===M()||20===M()||29===M()||58===M()||49===M())return ie(t=ne(269,e));var t=ne(270,e);return t.type=en(),ie(t)}function ot(){if($(Ki)){var e=ne(273);return B(),yt(56,36,e),ie(e)}var t=ne(159);return t.typeName=ue(),ie(t)}function st(){var e=ne(146);return 99!==M()&&94!==M()||(e.name=ue(),H(56)),e.type=en(),ie(e)}function ct(e){var t=ne(e);return B(),t.type=en(),ie(t)}function ut(){var e=ne(162);return H(103),e.exprName=$e(!0),ie(e)}function lt(){var e=ne(145);return e.name=ce(),X(85)&&(jt()||!an()?e.constraint=en():e.expression=Rn()),X(58)&&(e.default=en()),ie(e)}function _t(){if(27===M())return Ve(18,lt,27,29)}function dt(){if(X(56))return en()}function pt(){return 24===M()||ti()||e.isModifierKind(M())||57===M()||jt()}function ft(){var t=ne(146);return 99===M()?(t.name=se(!0),t.type=dt(),ie(t)):(t.decorators=gi(),t.modifiers=yi(),t.dotDotDotToken=Y(24),t.name=ni(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(M())&&B(),t.questionToken=Y(55),t.type=dt(),t.initializer=mt(!0),l(ie(t)))}function mt(e){return e?gt():di()}function gt(){return cn(!0)}function yt(t,n,r){if(32&n||(r.typeParameters=_t()),r.parameters=ht(n),36===t)H(t),r.type=Qt();else if(X(t))r.type=Qt();else if(4&n){var i=ya.getTokenPos(),a=ya.getTextPos()-i;X(56===t?36:56)&&(r.type=Qt(),F(i,a,e.Diagnostics._0_expected,e.tokenToString(t)));}}function ht(e){if(H(19)){var t=N(),n=O();m(!!(1&e)),y(!!(2&e));var r=Ue(16,32&e?st:ft);if(m(t),y(n),!H(20)&&8&e)return;return r}return 8&e?void 0:qe()}function vt(){X(26)||te();}function bt(e){var t=ne(e);return 156===e&&H(94),yt(56,4,t),vt(),l(ie(t))}function xt(){return 21===M()&&$(St)}function St(){if(B(),24===M()||22===M())return!0;if(e.isModifierKind(M())){if(B(),G())return!0}else{if(!G())return!1;B();}return 56===M()||26===M()||55===M()&&(B(),56===M()||26===M()||22===M())}function kt(e,t,n){var r=ne(157,e);return r.decorators=t,r.modifiers=n,r.parameters=Ve(16,ft,21,22),r.type=nn(),vt(),ie(r)}function Tt(e,t){var n=de(),r=Y(55);if(19===M()||27===M()){var i=ne(150,e);return i.modifiers=t,i.name=n,i.questionToken=r,yt(56,4,i),vt(),l(ie(i))}var a=ne(148,e);return a.modifiers=t,a.name=n,a.questionToken=r,a.type=nn(),58===M()&&(a.initializer=di()),vt(),l(ie(a))}function Ct(){if(19===M()||27===M())return!0;for(var t;e.isModifierKind(M());)t=!0,B();return 21===M()||(le()&&(t=!0,B()),!!t&&(19===M()||27===M()||55===M()||56===M()||26===M()||ee()))}function Dt(){if(19===M()||27===M())return bt(155);if(94===M()&&$(Et))return bt(156);var e=L(),t=yi();return xt()?kt(e,void 0,t):Tt(e,t)}function Et(){return B(),19===M()||27===M()}function Nt(){var e=ne(163);return e.members=At(),ie(e)}function At(){var e;return H(17)?(e=Ae(4,Dt),H(18)):e=qe(),e}function wt(){return B(),131===M()&&B(),21===M()&&Se()&&92===B()}function Ot(){var e=ne(145);return e.name=ce(),H(92),e.constraint=en(),ie(e)}function Pt(){var e=ne(172);return H(17),e.readonlyToken=Y(131),H(21),e.typeParameter=Ot(),H(22),e.questionToken=Y(55),e.type=nn(),te(),H(18),ie(e)}function Ft(){var e=ne(165);return e.elementTypes=Ve(20,en,21,22),ie(e)}function It(){var e=ne(168);return H(19),e.type=en(),H(20),ie(e)}function Lt(e){var t=ne(e);return 161===e&&H(94),yt(36,4,t),ie(t)}function Rt(){var e=Z();return 23===M()?void 0:e}function Mt(e){var t,n=ne(173);e&&((t=ne(192)).operator=38,B());var r;switch(M()){case 9:case 8:r=et(M());break;case 101:case 86:r=Z();}return e&&(t.operand=r,ie(t),r=t),n.literal=r,ie(n)}function Bt(){return 8===B()}function Kt(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 139:case 130:case 134:return W(Rt)||tt();case 39:return it();case 55:return at();case 89:return ot();case 24:return ct(274);case 51:return ct(271);case 9:case 8:case 101:case 86:return Mt();case 38:return $(Bt)?Mt(!0):tt();case 105:case 95:return Z();case 99:var e=rt();return 126!==M()||ya.hasPrecedingLineBreak()?e:nt(e);case 103:return ut();case 17:return $(wt)?Pt():Nt();case 21:return Ft();case 19:return It();default:return tt()}}function jt(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 105:case 139:case 95:case 99:case 103:case 130:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 134:case 39:return!0;case 38:return $(Bt);case 19:return $(Jt);default:return G()}}function Jt(){return B(),20===M()||pt()||jt()}function zt(){var e=Kt(),t=function(e){switch(e){case 58:return 1048576&ga?272:void 0;case 51:return 271;case 55:return 270}}(M());if(!t)return e;B();var n=ne(t,e.pos);return n.type=e,ie(n)}function Ut(){for(var e=zt();!ya.hasPrecedingLineBreak()&&X(21);)if(jt())(t=ne(171,e.pos)).objectType=e,t.indexType=en(),H(22),e=ie(t);else{var t=ne(164,e.pos);t.elementType=e,H(22),e=ie(t);}return e}function qt(e){var t=ne(170);return H(e),t.operator=e,t.type=Vt(),ie(t)}function Vt(){switch(M()){case 127:return qt(127)}return Ut()}function $t(e,t,n){X(n);var r=t();if(M()===n){for(var i=re([r],r.pos);X(n);)i.push(t());i.end=R();var a=ne(e,r.pos);a.types=i,r=ie(a);}return r}function Wt(){return $t(167,Vt,48)}function Gt(){return $t(166,Wt,49)}function Ht(){return 27===M()||19===M()&&$(Yt)}function Xt(){if(e.isModifierKind(M())&&yi(),G()||99===M())return B(),!0;if(21===M()||17===M()){var t=ca.length;return ni(),t===ca.length}return!1}function Yt(){if(B(),20===M()||24===M())return!0;if(Xt()){if(56===M()||26===M()||55===M()||58===M())return!0;if(20===M()&&(B(),36===M()))return!0}return!1}function Qt(){var e=G()&&W(Zt),t=en();if(e){var n=ne(158,e.pos);return n.parameterName=e,n.type=t,ie(n)}return t}function Zt(){var e=ce();if(126===M()&&!ya.hasPrecedingLineBreak())return B(),e}function en(){return h(20480,tn)}function tn(){return Ht()?Lt(160):94===M()?Lt(161):Gt()}function nn(){return X(56)?en():void 0}function rn(){switch(M()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return $(Et);default:return G()}}function an(){if(rn())return!0;switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!Dn()||G()}}function on$$1(){return 17!==M()&&89!==M()&&75!==M()&&57!==M()&&an()}function sn(){var e=w();e&&g(!1);for(var t,n=un();t=Y(26);)n=Nn(n,t,un());return e&&g(!0),n}function cn(e){if(58===M()||!(ya.hasPrecedingLineBreak()||e&&17===M())&&an())return H(58),un()}function un(){if(ln())return dn();var t=fn()||hn();if(t)return t;var n=kn(0);return 71===n.kind&&36===M()?pn(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(K())?Nn(n,Z(),un()):Sn(n)}function ln(){return 116===M()&&(!!N()||$(Jr))}function _n(){return B(),!ya.hasPrecedingLineBreak()&&G()}function dn(){var e=ne(197);return B(),ya.hasPrecedingLineBreak()||39!==M()&&!an()?ie(e):(e.asteriskToken=Y(39),e.expression=un(),ie(e))}function pn(t,n){e.Debug.assert(36===M(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var r;n?(r=ne(187,n.pos)).modifiers=n:r=ne(187,t.pos);var i=ne(146,t.pos);return i.name=t,ie(i),r.parameters=re([i],i.pos),r.parameters.end=i.end,r.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),r.body=xn(!!n),l(ie(r))}function fn(){var t=mn();if(0!==t){var n=1===t?bn(!0):W(yn);if(n){var r=e.hasModifier(n,256),i=M();return n.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),n.body=36===i||17===i?xn(r):ce(),l(ie(n))}}}function mn(){return 19===M()||27===M()||120===M()?$(gn):36===M()?1:0}function gn(){if(120===M()){if(B(),ya.hasPrecedingLineBreak())return 0;if(19!==M()&&27!==M())return 0}var t=M(),n=B();if(19===t){if(20===n)switch(B()){case 36:case 56:case 17:return 1;default:return 0}return 21===n||17===n?2:24===n?1:G()?56===B()?1:2:0}return e.Debug.assert(27===t),G()?1===sa.languageVariant?$(function(){var e=B();if(85===e)switch(B()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function yn(){return bn(!1)}function hn(){if(120===M()&&1===$(vn)){var e=hi();return pn(kn(0),e)}}function vn(){if(120===M()){if(B(),ya.hasPrecedingLineBreak()||36===M())return 0;var e=kn(0);if(!ya.hasPrecedingLineBreak()&&71===e.kind&&36===M())return 1}return 0}function bn(t){var n=ne(187);if(n.modifiers=hi(),yt(56,(e.hasModifier(n,256)?2:0)|(t?0:8),n),n.parameters&&(t||36===M()||17===M()))return n}function xn(e){return 17===M()?br(e?2:0):25!==M()&&89!==M()&&75!==M()&&qr()&&!on$$1()?br(16|(e?2:0)):e?T(un):C(un)}function Sn(t){var n=Y(55);if(!n)return t;var r=ne(195,t.pos);return r.condition=t,r.questionToken=n,r.whenTrue=h(ha,un),r.colonToken=Q(56,!1,e.Diagnostics._0_expected,e.tokenToString(56)),r.whenFalse=un(),ie(r)}function kn(e){return Cn(e,Rn())}function Tn(e){return 92===e||142===e}function Cn(e,t){for(;;){K();var n=En();if(!(40===M()?n>=e:n>e))break;if(92===M()&&A())break;if(118===M()){if(ya.hasPrecedingLineBreak())break;B(),t=An(t,en());}else t=Nn(t,Z(),kn(n));}return t}function Dn(){return(!A()||92!==M())&&En()>0}function En(){switch(M()){case 54:return 1;case 53:return 2;case 49:return 3;case 50:return 4;case 48:return 5;case 32:case 33:case 34:case 35:return 6;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 7;case 45:case 46:case 47:return 8;case 37:case 38:return 9;case 39:case 41:case 42:return 10;case 40:return 11}return-1}function Nn(e,t,n){var r=ne(194,e.pos);return r.left=e,r.operatorToken=t,r.right=n,ie(r)}function An(e,t){var n=ne(202,e.pos);return n.expression=e,n.type=t,ie(n)}function wn(){var e=ne(192);return e.operator=M(),B(),e.operand=Mn(),ie(e)}function On(){var e=ne(188);return B(),e.expression=Mn(),ie(e)}function Pn(){var e=ne(189);return B(),e.expression=Mn(),ie(e)}function Fn(){var e=ne(190);return B(),e.expression=Mn(),ie(e)}function In(){return 121===M()&&(!!O()||$(Jr))}function Ln(){var e=ne(191);return B(),e.expression=Mn(),ie(e)}function Rn(){if(Bn()){var t=Kn();return 40===M()?Cn(En(),t):t}var n=M(),r=Mn();if(40===M()){var i=e.skipTrivia(_a,r.pos);184===r.kind?F(i,r.end-i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):F(i,r.end-i,e.Diagnostics.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,e.tokenToString(n));}return r}function Mn(){switch(M()){case 37:case 38:case 52:case 51:return wn();case 80:return On();case 103:return Pn();case 105:return Fn();case 27:return tr();case 121:if(In())return Ln();default:return Kn()}}function Bn(){switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==sa.languageVariant)return!1;default:return!0}}function Kn(){if(43===M()||44===M())return(n=ne(192)).operator=M(),B(),n.operand=jn(),ie(n);if(1===sa.languageVariant&&27===M()&&$(ke))return qn(!0);var t=jn();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(43===M()||44===M())&&!ya.hasPrecedingLineBreak()){var n=ne(193,t.pos);return n.operand=t,n.operator=M(),B(),ie(n)}return t}function jn(){var e;return 91===M()&&$(Et)?(sa.flags|=524288,e=Z()):e=97===M()?zn():Jn(),rr(e)}function Jn(){return nr(sr())}function zn(){var t=Z();if(19===M()||23===M()||21===M())return t;var n=ne(179,t.pos);return n.expression=t,Q(23,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=Ge(!0),ie(n)}function Un(e,t){return e.kind===t.kind&&(71===e.kind?e.escapedText===t.escapedText:99===e.kind||e.name.escapedText===t.name.escapedText&&Un(e.expression,t.expression))}function qn(t){var n,r=Hn(t);if(251===r.kind){var i=ne(249,r.pos);i.openingElement=r,i.children=Wn(i.openingElement.tagName),i.closingElement=er(t),Un(i.openingElement.tagName,i.closingElement.tagName)||F(i.closingElement.pos,i.closingElement.end-i.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(_a,i.openingElement.tagName)),n=ie(i);}else e.Debug.assert(250===r.kind),n=r;if(t&&27===M()){var a=W(function(){return qn(!0)});if(a){P(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=ne(194,n.pos);return o.end=a.end,o.left=n,o.right=a,o.operatorToken=ae(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return n}function Vn(){var e=ne(10,ya.getStartPos());return e.containsOnlyWhiteSpaces=11===la,la=ya.scanJsxToken(),ie(e)}function $n(){switch(M()){case 10:case 11:return Vn();case 17:return Yn(!1);case 27:return qn(!1)}e.Debug.fail("Unknown JSX child kind "+M());}function Wn(t){var n=re(),r=ma;for(ma|=16384;;){if(la=ya.reScanJsxToken(),28===M())break;if(1===M()){F(t.pos,t.end-t.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(_a,t));break}if(7===M())break;var i=$n();i&&n.push(i);}return n.end=ya.getTokenPos(),ma=r,n}function Gn(){var e=ne(254);return e.properties=Ae(13,Qn),ie(e)}function Hn(e){var t=ya.getStartPos();H(27);var n,r=Xn(),i=Gn();return 29===M()?(n=ne(251,t),U()):(H(41),e?H(29):(H(29,void 0,!1),U()),n=ne(250,t)),n.tagName=r,n.attributes=i,ie(n)}function Xn(){z();for(var e=99===M()?Z():ue();X(23);){var t=ne(179,e.pos);t.expression=e,t.name=Ge(!0),e=ie(t);}return e}function Yn(e){var t=ne(256);return H(17),18!==M()&&(t.dotDotDotToken=Y(24),t.expression=un()),e?H(18):(H(18,void 0,!1),U()),ie(t)}function Qn(){if(17===M())return Zn();z();var e=ne(253);if(e.name=ue(),58===M())switch(q()){case 9:e.initializer=Ye();break;default:e.initializer=Yn(!0);}return ie(e)}function Zn(){var e=ne(255);return H(17),H(24),e.expression=sn(),H(18),ie(e)}function er(e){var t=ne(252);return H(28),t.tagName=Xn(),e?H(29):(H(29,void 0,!1),U()),ie(t)}function tr(){var e=ne(184);return H(27),e.type=en(),H(29),e.expression=Mn(),ie(e)}function nr(e){for(;;)if(Y(23)){var t=ne(179,e.pos);t.expression=e,t.name=Ge(!0),e=ie(t);}else if(51!==M()||ya.hasPrecedingLineBreak())if(w()||!X(21)){if(13!==M()&&14!==M())return e;var n=ne(183,e.pos);n.tag=e,n.template=13===M()?Ye():He(),e=ie(n);}else{var r=ne(180,e.pos);if(r.expression=e,22!==M()&&(r.argumentExpression=b(sn),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var i=r.argumentExpression;i.text=oe(i.text);}H(22),e=ie(r);}else{B();var a=ne(203,e.pos);a.expression=e,e=ie(a);}}function rr(e){for(;;)if(e=nr(e),27!==M()){if(19!==M())return e;var t=ne(181,e.pos);t.expression=e,t.arguments=ir(),e=ie(t);}else{var n=W(ar);if(!n)return e;(t=ne(181,e.pos)).expression=e,t.typeArguments=n,t.arguments=ir(),e=ie(t);}}function ir(){H(19);var e=Ue(11,_r);return H(20),e}function ar(){if(X(27)){var e=Ue(19,en);if(H(29))return e&&or()?e:void 0}}function or(){switch(M()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}function sr(){switch(M()){case 8:case 9:case 13:return Ye();case 99:case 97:case 95:case 101:case 86:return Z();case 19:return cr();case 21:return dr();case 17:return mr();case 120:if(!$(jr))break;return gr();case 75:return bi();case 89:return gr();case 94:return hr();case 41:case 63:if(12===j())return Ye();break;case 14:return He()}return ce(e.Diagnostics.Expression_expected)}function cr(){var e=ne(185);return H(19),e.expression=b(sn),H(20),l(ie(e))}function ur(){var e=ne(198);return H(24),e.expression=un(),ie(e)}function lr(){return 24===M()?ur():26===M()?ne(200):un()}function _r(){return h(ha,lr)}function dr(){var e=ne(177);return H(21),ya.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ue(15,lr),H(22),ie(e)}function pr(e,t,n){return fe(125)?pi(153,e,t,n):fe(135)?pi(154,e,t,n):void 0}function fr(){var e=ya.getStartPos();if(Y(24)){var t=ne(263,e);return t.expression=un(),l(ie(t))}var n=gi(),r=yi(),i=pr(e,n,r);if(i)return i;var a=Y(39),o=G(),s=de(),c=Y(55);if(a||19===M()||27===M())return ui(e,n,r,a,s,c);if(o&&(26===M()||18===M()||58===M())){var u=ne(262,e);u.name=s,u.questionToken=c;var _=Y(58);return _&&(u.equalsToken=_,u.objectAssignmentInitializer=b(un)),l(ie(u))}var d=ne(261,e);return d.modifiers=r,d.name=s,d.questionToken=c,H(56),d.initializer=b(un),l(ie(d))}function mr(){var e=ne(178);return H(17),ya.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ue(12,fr,!0),H(18),ie(e)}function gr(){var t=w();t&&g(!1);var n=ne(186);n.modifiers=yi(),H(89),n.asteriskToken=Y(39);var r=n.asteriskToken?1:0,i=e.hasModifier(n,256)?2:0;return n.name=r&&i?D(yr):r?S(yr):i?T(yr):yr(),yt(56,r|i,n),n.body=br(r|i),t&&g(!0),l(ie(n))}function yr(){return G()?ce():void 0}function hr(){var e=ya.getStartPos();if(H(94),X(23)){var t=ne(204,e);return t.keywordToken=94,t.name=ue(),ie(t)}var n=ne(182,e);return n.expression=Jn(),n.typeArguments=W(ar),(n.typeArguments||19===M())&&(n.arguments=ir()),ie(n)}function vr(e,t){var n=ne(207);return H(17,t)||e?(ya.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=Ae(1,Wr),H(18)):n.statements=qe(),ie(n)}function br(e,t){var n=N();m(!!(1&e));var r=O();y(!!(2&e));var i=w();i&&g(!1);var a=vr(!!(16&e),t);return i&&g(!0),m(n),y(r),a}function xr(){var e=ne(209);return H(25),ie(e)}function Sr(){var e=ne(211);return H(90),H(19),e.expression=b(sn),H(20),e.thenStatement=Wr(),e.elseStatement=X(82)?Wr():void 0,ie(e)}function kr(){var e=ne(212);return H(81),e.statement=Wr(),H(106),H(19),e.expression=b(sn),H(20),X(25),ie(e)}function Tr(){var e=ne(213);return H(106),H(19),e.expression=b(sn),H(20),e.statement=Wr(),ie(e)}function Cr(){var e=L();H(88);var t=Y(121);H(19);var n=void 0;25!==M()&&(n=104===M()||110===M()||76===M()?ii(!0):x(sn));var r;if(t?H(142):X(142)){var i=ne(216,e);i.awaitModifier=t,i.initializer=n,i.expression=b(un),H(20),r=i;}else if(X(92)){var a=ne(215,e);a.initializer=n,a.expression=b(sn),H(20),r=a;}else{var o=ne(214,e);o.initializer=n,H(25),25!==M()&&20!==M()&&(o.condition=b(sn)),H(25),20!==M()&&(o.incrementor=b(sn)),H(20),r=o;}return r.statement=Wr(),ie(r)}function Dr(e){var t=ne(e);return H(218===e?72:77),ee()||(t.label=ce()),te(),ie(t)}function Er(){var e=ne(219);return H(96),ee()||(e.expression=b(sn)),te(),ie(e)}function Nr(){var e=ne(220);return H(107),H(19),e.expression=b(sn),H(20),e.statement=Wr(),ie(e)}function Ar(){var e=ne(257);return H(73),e.expression=b(sn),H(56),e.statements=Ae(3,Wr),ie(e)}function wr(){var e=ne(258);return H(79),H(56),e.statements=Ae(3,Wr),ie(e)}function Or(){return 73===M()?Ar():wr()}function Pr(){var e=ne(221);H(98),H(19),e.expression=b(sn),H(20);var t=ne(235,ya.getStartPos());return H(17),t.clauses=Ae(2,Or),H(18),e.caseBlock=ie(t),ie(e)}function Fr(){var e=ne(223);return H(100),e.expression=ya.hasPrecedingLineBreak()?void 0:b(sn),te(),ie(e)}function Ir(){var e=ne(224);return H(102),e.tryBlock=vr(!1),e.catchClause=74===M()?Lr():void 0,e.catchClause&&87!==M()||(H(87),e.finallyBlock=vr(!1)),ie(e)}function Lr(){var e=ne(260);return H(74),X(19)?(e.variableDeclaration=ri(),H(20)):e.variableDeclaration=void 0,e.block=vr(!1),ie(e)}function Rr(){var e=ne(225);return H(78),te(),ie(e)}function Mr(){var e=ya.getStartPos(),t=b(sn);if(71===t.kind&&X(56)){var n=ne(222,e);return n.label=t,n.statement=Wr(),l(ie(n))}var r=ne(210,e);return r.expression=t,te(),l(ie(r))}function Br(){return B(),e.tokenIsIdentifierOrKeyword(M())&&!ya.hasPrecedingLineBreak()}function Kr(){return B(),75===M()&&!ya.hasPrecedingLineBreak()}function jr(){return B(),89===M()&&!ya.hasPrecedingLineBreak()}function Jr(){return B(),(e.tokenIsIdentifierOrKeyword(M())||8===M()||9===M())&&!ya.hasPrecedingLineBreak()}function zr(){for(;;)switch(M()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 138:return _n();case 128:case 129:return Hr();case 117:case 120:case 124:case 112:case 113:case 114:case 131:if(B(),ya.hasPrecedingLineBreak())return!1;continue;case 141:return B(),17===M()||71===M()||84===M();case 91:return B(),9===M()||39===M()||17===M()||e.tokenIsIdentifierOrKeyword(M());case 84:if(B(),58===M()||39===M()||17===M()||79===M()||118===M())return!0;continue;case 115:B();continue;default:return!1}}function Ur(){return $(zr)}function qr(){switch(M()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Ur()||$(Et);case 76:case 84:return Ur();case 120:case 124:case 109:case 128:case 129:case 138:case 141:return!0;case 114:case 112:case 113:case 115:case 131:return Ur()||!$(Br);default:return an()}}function Vr(){return B(),G()||17===M()||21===M()}function $r(){return $(Vr)}function Wr(){switch(M()){case 25:return xr();case 17:return vr(!1);case 104:return oi(ya.getStartPos(),void 0,void 0);case 110:if($r())return oi(ya.getStartPos(),void 0,void 0);break;case 89:return si(ya.getStartPos(),void 0,void 0);case 75:return xi(ya.getStartPos(),void 0,void 0);case 90:return Sr();case 81:return kr();case 106:return Tr();case 88:return Cr();case 77:return Dr(217);case 72:return Dr(218);case 96:return Er();case 107:return Nr();case 98:return Pr();case 100:return Fr();case 102:case 74:case 87:return Ir();case 78:return Rr();case 57:return Gr();case 120:case 109:case 138:case 128:case 129:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 131:case 141:if(Ur())return Gr()}return Mr()}function Gr(){var t=L(),n=gi(),r=yi();switch(M()){case 104:case 110:case 76:return oi(t,n,r);case 89:return si(t,n,r);case 75:return xi(t,n,r);case 109:return wi(t,n,r);case 138:return Oi(t,n,r);case 83:return Fi(t,n,r);case 141:case 128:case 129:return Mi(t,n,r);case 91:return zi(t,n,r);case 84:switch(B(),M()){case 79:case 58:return ea(t,n,r);case 118:return Ji(t,n,r);default:return Zi(t,n,r)}default:if(n||r){var i=ae(247,!0,e.Diagnostics.Declaration_expected);return i.pos=t,i.decorators=n,i.modifiers=r,ie(i)}}}function Hr(){return B(),!ya.hasPrecedingLineBreak()&&(G()||9===M())}function Xr(e,t){if(17===M()||!ee())return br(e,t);te();}function Yr(){if(26===M())return ne(200);var e=ne(176);return e.dotDotDotToken=Y(24),e.name=ni(),e.initializer=mt(!1),ie(e)}function Qr(){var e=ne(176);e.dotDotDotToken=Y(24);var t=G(),n=de();return t&&56!==M()?e.name=n:(H(56),e.propertyName=n,e.name=ni()),e.initializer=mt(!1),ie(e)}function Zr(){var e=ne(174);return H(17),e.elements=Ue(9,Qr),H(18),ie(e)}function ei(){var e=ne(175);return H(21),e.elements=Ue(10,Yr),H(22),ie(e)}function ti(){return 17===M()||21===M()||G()}function ni(){return 21===M()?ei():17===M()?Zr():ce()}function ri(){var e=ne(226);return e.name=ni(),e.type=nn(),Tn(M())||(e.initializer=cn(!1)),ie(e)}function ii(t){var n=ne(227);switch(M()){case 104:break;case 110:n.flags|=1;break;case 76:n.flags|=2;break;default:e.Debug.fail();}if(B(),142===M()&&$(ai))n.declarations=qe();else{var r=A();f(t),n.declarations=Ue(8,ri),f(r);}return ie(n)}function ai(){return Se()&&20===B()}function oi(e,t,n){var r=ne(208,e);return r.decorators=t,r.modifiers=n,r.declarationList=ii(!1),te(),l(ie(r))}function si(t,n,r){var i=ne(228,t);i.decorators=n,i.modifiers=r,H(89),i.asteriskToken=Y(39),i.name=e.hasModifier(i,512)?yr():ce();var a=i.asteriskToken?1:0,o=e.hasModifier(i,256)?2:0;return yt(56,a|o,i),i.body=Xr(a|o,e.Diagnostics.or_expected),l(ie(i))}function ci(t,n,r){var i=ne(152,t);return i.decorators=n,i.modifiers=r,H(123),yt(56,0,i),i.body=Xr(0,e.Diagnostics.or_expected),l(ie(i))}function ui(t,n,r,i,a,o,s){var c=ne(151,t);c.decorators=n,c.modifiers=r,c.asteriskToken=i,c.name=a,c.questionToken=o;var u=i?1:0,_=e.hasModifier(c,256)?2:0;return yt(56,u|_,c),c.body=Xr(u|_,s),l(ie(c))}function li(t,n,r,i,a){var o=ne(149,t);return o.decorators=n,o.modifiers=r,o.name=i,o.questionToken=a,o.type=nn(),o.initializer=e.hasModifier(o,32)?b(di):h(6144,di),te(),l(ie(o))}function _i(t,n,r){var i=Y(39),a=de(),o=Y(55);return i||19===M()||27===M()?ui(t,n,r,i,a,o,e.Diagnostics.or_expected):li(t,n,r,a,o)}function di(){return cn(!1)}function pi(e,t,n,r){var i=ne(e,t);return i.decorators=n,i.modifiers=r,i.name=de(),yt(56,0,i),i.body=Xr(0),l(ie(i))}function fi(e){switch(e){case 114:case 112:case 113:case 115:case 131:return!0;default:return!1}}function mi(){var t;if(57===M())return!0;for(;e.isModifierKind(M());){if(t=M(),fi(t))return!0;B();}if(39===M())return!0;if(le()&&(t=M(),B()),21===M())return!0;if(void 0!==t){if(!e.isKeyword(t)||135===t||125===t)return!0;switch(M()){case 19:case 27:case 56:case 58:case 55:return!0;default:return ee()}}return!1}function gi(){for(var e;;){var t=L();if(!X(57))break;var n=ne(147,t);n.expression=k(jn),ie(n),e?e.push(n):e=re([n],t);}return e&&(e.end=R()),e}function yi(e){for(var t;;){var n=ya.getStartPos(),r=M();if(76===M()&&e){if(!W(me))break}else if(!ye())break;var i=ie(ne(r,n));t?t.push(i):t=re([i],n);}return t&&(t.end=ya.getStartPos()),t}function hi(){var e;if(120===M()){var t=ya.getStartPos(),n=M();B(),(e=re([ie(ne(n,t))],t)).end=ya.getStartPos();}return e}function vi(){if(25===M()){var t=ne(206);return B(),ie(t)}var n=L(),r=gi(),i=yi(!0),a=pr(n,r,i);return a||(123===M()?ci(n,r,i):xt()?kt(n,r,i):e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()||39===M()||21===M()?_i(n,r,i):r||i?li(n,r,i,ae(71,!0,e.Diagnostics.Declaration_expected),void 0):void e.Debug.fail("Should not have attempted to parse class member declaration."))}function bi(){return Si(ya.getStartPos(),void 0,void 0,199)}function xi(e,t,n){return Si(e,t,n,229)}function Si(e,t,n,r){var i=ne(r,e);return i.decorators=t,i.modifiers=n,H(75),i.name=ki(),i.typeParameters=_t(),i.heritageClauses=Ci(),H(17)?(i.members=Ai(),H(18)):i.members=qe(),l(ie(i))}function ki(){return G()&&!Ti()?ce():void 0}function Ti(){return 108===M()&&$(ke)}function Ci(){if(Ni())return Ae(21,Di)}function Di(){var e=M();if(85===e||108===e){var t=ne(259);return t.token=e,B(),t.types=Ue(7,Ei),ie(t)}}function Ei(){var e=ne(201);return e.expression=jn(),27===M()&&(e.typeArguments=Ve(19,en,27,29)),ie(e)}function Ni(){return 85===M()||108===M()}function Ai(){return Ae(5,vi)}function wi(e,t,n){var r=ne(230,e);return r.decorators=t,r.modifiers=n,H(109),r.name=ce(),r.typeParameters=_t(),r.heritageClauses=Ci(),r.members=At(),l(ie(r))}function Oi(e,t,n){var r=ne(231,e);return r.decorators=t,r.modifiers=n,H(138),r.name=ce(),r.typeParameters=_t(),H(58),r.type=en(),te(),l(ie(r))}function Pi(){var e=ne(264,ya.getStartPos());return e.name=de(),e.initializer=b(di),l(ie(e))}function Fi(e,t,n){var r=ne(232,e);return r.decorators=t,r.modifiers=n,H(83),r.name=ce(),H(17)?(r.members=Ue(6,Pi),H(18)):r.members=qe(),l(ie(r))}function Ii(){var e=ne(234,ya.getStartPos());return H(17)?(e.statements=Ae(1,Wr),H(18)):e.statements=qe(),ie(e)}function Li(e,t,n,r){var i=ne(233,e),a=16&r;return i.decorators=t,i.modifiers=n,i.flags|=r,i.name=ce(),i.body=X(23)?Li(L(),void 0,void 0,4|a):Ii(),l(ie(i))}function Ri(e,t,n){var r=ne(233,e);return r.decorators=t,r.modifiers=n,141===M()?(r.name=ce(),r.flags|=512):(r.name=Ye(),r.name.text=oe(r.name.text)),17===M()?r.body=Ii():te(),ie(r)}function Mi(e,t,n){var r=0;if(141===M())return Ri(e,t,n);if(X(129))r|=16;else if(H(128),9===M())return Ri(e,t,n);return Li(e,t,n,r)}function Bi(){return 132===M()&&$(Ki)}function Ki(){return 19===B()}function ji(){return 41===B()}function Ji(e,t,n){var r=ne(236,e);return r.decorators=t,r.modifiers=n,H(118),H(129),r.name=ce(),te(),ie(r)}function zi(e,t,n){H(91);var r,i=ya.getStartPos();if(G()&&(r=ce(),26!==M()&&140!==M()))return Ui(e,t,n,r);var a=ne(238,e);return a.decorators=t,a.modifiers=n,(r||39===M()||17===M())&&(a.importClause=qi(r,i),H(140)),a.moduleSpecifier=Wi(),te(),ie(a)}function Ui(e,t,n,r){var i=ne(237,e);return i.decorators=t,i.modifiers=n,i.name=r,H(58),i.moduleReference=Vi(),te(),l(ie(i))}function qi(e,t){var n=ne(239,t);return e&&(n.name=e),n.name&&!X(26)||(n.namedBindings=39===M()?Gi():Hi(241)),ie(n)}function Vi(){return Bi()?$i():$e(!1)}function $i(){var e=ne(248);return H(132),H(19),e.expression=Wi(),H(20),ie(e)}function Wi(){if(9===M()){var e=Ye();return e.text=oe(e.text),e}return sn()}function Gi(){var e=ne(240);return H(39),H(118),e.name=ce(),ie(e)}function Hi(e){var t=ne(e);return t.elements=Ve(22,241===e?Yi:Xi,17,18),ie(t)}function Xi(){return Qi(246)}function Yi(){return Qi(242)}function Qi(t){var n=ne(t),r=e.isKeyword(M())&&!G(),i=ya.getTokenPos(),a=ya.getTextPos(),o=ue();return 118===M()?(n.propertyName=o,H(118),r=e.isKeyword(M())&&!G(),i=ya.getTokenPos(),a=ya.getTextPos(),n.name=ue()):n.name=o,242===t&&r&&F(i,a-i,e.Diagnostics.Identifier_expected),ie(n)}function Zi(e,t,n){var r=ne(244,e);return r.decorators=t,r.modifiers=n,X(39)?(H(140),r.moduleSpecifier=Wi()):(r.exportClause=Hi(245),(140===M()||9===M()&&!ya.hasPrecedingLineBreak())&&(H(140),r.moduleSpecifier=Wi())),te(),ie(r)}function ea(e,t,n){var r=ne(243,e);return r.decorators=t,r.modifiers=n,X(58)?r.isExportEquals=!0:H(79),r.expression=un(),te(),ie(r)}function ta(t){for(var n,r=e.createScanner(t.languageVersion,!1,0,_a),i=[],a=[],o=[],s=void 0;;){var c=r.scan();if(2!==c){if(e.isTrivia(c))continue;break}var u={kind:r.getToken(),pos:r.getTokenPos(),end:r.getTextPos()},l=_a.substring(u.pos,u.end),_=e.getFileReferenceFromReferencePath(l,u);if(_){var d=_.fileReference;t.hasNoDefaultLib=_.isNoDefaultLib;var p=_.diagnosticMessage;d&&(_.isTypeReferenceDirective?a.push(d):i.push(d)),p&&ca.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,p));}else{var f=/^\/\/\/\s*=1&&(o=0,r.push(ya.getTokenText())),e=0;break;case 57:break;case 5:if(2===o)t(ya.getTokenText());else{var s=ya.getTokenText();void 0!==n&&e+s.length>n&&r.push(s.slice(n-e-1)),e+=s.length;}break;case 39:if(0===o){o=1,e+=ya.getTokenText().length;break}default:o=2,t(ya.getTokenText());}if(57===M())break;D();}return i(r),a(r),r}function l(e,t){var n=ne(276,e.pos);return n.atToken=e,n.tagName=t,ie(n)}function _(e,t){e.comment=t.join(""),O?O.push(e):O=re([e],e.pos),O.end=e.end;}function d(){return W(function(){if(s(),17===M())return r()})}function p(){var e=X(21),t=E();return e&&(s(),Y(58)&&sn(),H(22)),{name:t,isBracketed:e}}function f(t){switch(t.kind){case 134:return!0;case 164:return f(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function m(e,t,n){var r=d(),i=!r;s();var a=p(),o=a.name,c=a.isBracketed;s(),i&&(r=d());var u=1===n?ne(279,e.pos):ne(284,e.pos),l=g(r,o);return l&&(r=l,i=!0),u.atToken=e,u.tagName=t,u.typeExpression=r,u.name=o,u.isNameFirst=i,u.isBracketed=c,ie(u)}function g(e,t){if(e&&f(e.type)){for(var n=ne(267,ya.getTokenPos()),r=void 0,i=void 0,a=ya.getStartPos(),o=void 0;r=W(function(){return k(1,t)});)o||(o=[]),o.push(r);if(o)return i=ne(285,a),i.jsDocPropertyTags=o,164===e.type.kind&&(i.isArrayType=!0),n.type=ie(i),ie(n)}}function y(t,n){e.forEach(O,function(e){return 280===e.kind})&&F(n.pos,ya.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=ne(280,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),ie(r)}function h(t,n){e.forEach(O,function(e){return 281===e.kind})&&F(n.pos,ya.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=ne(281,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),ie(r)}function v(e,t){var n=d(),r=ne(277,e.pos);return r.atToken=e,r.tagName=t,r.typeExpression=n,ie(r)}function b(e,t){var n=ne(278,e.pos);return n.atToken=e,n.tagName=t,ie(n)}function x(e,t){function n(e){var t=ya.getTokenPos(),r=N();if(r&&X(23)){var i=ne(233,t);return i.flags|=e,i.name=r,i.body=n(4),ie(i)}return r&&4&e&&(r.isInJSDocNamespace=!0),r}var r=d();s();var i=ne(283,e.pos);if(i.atToken=e,i.tagName=t,i.fullName=n(0),i.fullName)for(var a=i.fullName;;){if(71===a.kind||!a.body){i.name=71===a.kind?a:a.name;break}a=a.body;}if(s(),i.typeExpression=r,!r||f(r.type)){for(var o=void 0,c=void 0,u=!1,l=ya.getStartPos();o=W(function(){return k(0)});)if(c||(c=ne(285,l)),281===o.kind){if(u)break;c.jsDocTypeTag=o,u=!0;}else c.jsDocPropertyTags||(c.jsDocPropertyTags=[]),c.jsDocPropertyTags.push(o);c&&(r&&164===r.type.kind&&(c.isArrayType=!0),i.typeExpression=ie(c));}return ie(i)}function S(t,n){for(;!e.isIdentifier(t)||!e.isIdentifier(n);){if(e.isIdentifier(t)||e.isIdentifier(n)||t.right.escapedText!==n.right.escapedText)return!1;t=t.left,n=n.left;}return t.escapedText===n.escapedText}function k(t,n){for(var r=!0,i=!1;;)switch(D(),M()){case 57:if(r){var a=T(t);return!(a&&279===a.kind&&(e.isIdentifier(a.name)||!S(n,a.name.left)))&&a}i=!1;break;case 4:r=!0,i=!1;break;case 39:i&&(r=!1),i=!0;break;case 71:r=!1;break;case 1:return!1}}function T(t){e.Debug.assert(57===M());var n=ne(57,ya.getStartPos());n.end=ya.getTextPos(),D();var r=N();if(s(),!r)return!1;switch(r.escapedText){case"type":return 0===t&&h(n,r);case"prop":case"property":return 0===t&&m(n,r,t);case"arg":case"argument":case"param":return 1===t&&m(n,r,t)}return!1}function C(t,n){e.forEach(O,function(e){return 282===e.kind})&&F(n.pos,ya.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);for(var r=re();;){var i=N();if(s(),!i)return void F(ya.getStartPos(),0,e.Diagnostics.Identifier_expected);var a=ne(145,i.pos);if(a.name=i,ie(a),r.push(a),26!==M())break;D(),s();}var o=ne(282,t.pos);return o.atToken=t,o.tagName=n,o.typeParameters=r,ie(o),r.end=o.end,o}function D(){return la=ya.scanJSDocToken()}function E(){var e=N(!0);for(X(21)&&H(22);X(23);){var t=N(!0);X(21)&&H(22),e=We(e,t);}return e}function N(t){if(void 0===t&&(t=!1),!e.tokenIsIdentifierOrKeyword(M()))return t?ae(71,!0,e.Diagnostics.Identifier_expected):void P(e.Diagnostics.Identifier_expected);var n=ya.getTokenPos(),r=ya.getTextPos(),i=ne(71,n);return i.escapedText=e.escapeLeadingUnderscores(A.substring(n,r)),ie(i,r),D(),i}var A=_a;t=t||0;var w=void 0===n?A.length:t+n;n=w-t,e.Debug.assert(t>=0),e.Debug.assert(t<=w),e.Debug.assert(w<=A.length);var O,I,L=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(A,t)?(ya.scanRange(t+3,n-5,function(){function e(e){s||(s=u),L.push(e),u+=e.length;}var n=!0,r=1,s=void 0,u=t-Math.max(A.lastIndexOf("\n",t),0)+4;for(D();5===M();)D();for(4===M()&&(r=0,u=0,D());1!==M();){switch(M()){case 57:0===r||1===r?(a(L),c(u),r=0,n=!1,s=void 0,u++):e(ya.getTokenText());break;case 4:L.push(ya.getTokenText()),r=0,u=0;break;case 39:var l=ya.getTokenText();1===r||2===r?(r=2,e(l)):(r=1,u+=l.length);break;case 71:e(ya.getTokenText()),r=2;break;case 5:var _=ya.getTokenText();2===r?L.push(_):void 0!==s&&u+_.length>s&&L.push(_.slice(s-u-1)),u+=_.length;break;case 1:break;default:r=2,e(ya.getTokenText());}n?D():n=!0;}i(L),a(L),I=o();}),I):I}t.parseJSDocTypeExpressionForTests=n,t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=i,t.parseJSDocComment=a;var u;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments";}(u||(u={}));var l;!function(e){e[e.Property=0]="Property",e[e.Parameter=1]="Parameter";}(l||(l={})),t.parseJSDocCommentWorker=o;}(Sa=t.JSDocParser||(t.JSDocParser={}));}(y||(y={}));var h;!function(t){function n(t,n,r,i){if(i=i||e.Debug.shouldAssert(2),_(t,n,r,i),e.textChangeRangeIsUnchanged(r))return t;if(0===t.statements.length)return y.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var a=t;e.Debug.assert(!a.hasBeenIncrementallyParsed),a.hasBeenIncrementallyParsed=!0;var o=t.text,s=d(t),l=u(t,r);_(t,n,l,i),e.Debug.assert(l.span.start<=r.span.start),e.Debug.assert(e.textSpanEnd(l.span)===e.textSpanEnd(r.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(l))===e.textSpanEnd(e.textChangeRangeNewSpan(r)));var p=e.textChangeRangeNewSpan(l).length-l.span.length;return c(a,l.span.start,e.textSpanEnd(l.span),e.textSpanEnd(e.textChangeRangeNewSpan(l)),p,o,n,i),y.parseSourceFile(t.fileName,n,t.languageVersion,s,!0,t.scriptKind)}function r(t,n,r,o,c,u){function l(t){var n="";if(u&&a(t)&&(n=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=r,t.end+=r,u&&a(t)&&e.Debug.assert(n===c.substring(t.pos,t.end)),i(t,l,_),t.jsDoc)for(var d=0,p=t.jsDoc;d=n,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=r?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end));}function s(t,n){if(n){var r=t.pos;i(t,function(t){e.Debug.assert(t.pos>=r),r=t.end;}),e.Debug.assert(r<=t.end);}}function c(t,n,a,c,u,l,_,d){function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>a)r(t,!1,u,l,_,d);else{var m=t.end;if(m>=n)return t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u),i(t,p,f),void s(t,d);e.Debug.assert(ma)r(t,!0,u,l,_,d);else{var i=t.end;if(i>=n){t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u);for(var s=0,f=t;s0&&i<=1;i++){var a=l(t,r);e.Debug.assert(a.pos<=r);var o=a.pos;r=Math.max(0,o-1);}var s=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span)),c=n.newLength+(n.span.start-r);return e.createTextChangeRange(s,c)}function l(t,n){function r(t){var n=void 0;return i(t,function(t){e.nodeIsPresent(t)&&(n=t);}),n}function a(t){if(!e.nodeIsMissing(t))return t.pos<=n?(t.pos>=s.pos&&(s=t),nn),!0)}var o,s=t;if(i(t,a),o){var c=function(e){for(;;){var t=r(e);if(!t)return e;e=t;}}(o);c.pos>s.pos&&(s=c);}return s}function _(t,n,r,i){var a=t.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===n.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),u=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===u);}}function d(t){function n(e){function n(t){return e>=t.pos&&e=t.pos&&e=158&&e<=173)return-3;switch(e){case 181:case 182:case 177:return 537396545;case 233:return 574674241;case 146:return 536872257;case 187:return 601249089;case 186:case 228:return 601281857;case 227:return 546309441;case 229:case 199:return 539358529;case 152:return 601015617;case 151:case 153:case 154:return 601015617;case 119:case 133:case 130:case 136:case 134:case 122:case 137:case 105:case 145:case 148:case 150:case 155:case 156:case 157:case 230:case 231:return-3;case 178:return 540087617;case 260:return 537920833;case 174:case 175:return 537396545;default:return 536872257}}function P(t,n){n.parent=t,e.forEachChild(n,function(e){return P(n,e)});}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly";}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var F;!function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod";}(F||(F={}));var I=function(){function n(t,n){Et=t,Nt=n,At=e.getEmitScriptTarget(Nt),Vt=i(Et,n),Wt=e.createUnderscoreEscapedMap(),Ht=0,Gt=Et.isDeclarationFile,$t=e.objectAllocator.getSymbolConstructor(),Et.locals||($e(Et),Et.symbolCount=Ht,Et.classifiableNames=Wt),Et=void 0,Nt=void 0,At=void 0,wt=void 0,Ot=void 0,Pt=void 0,Ft=void 0,It=!1,Lt=void 0,Rt=void 0,Mt=void 0,Bt=void 0,Kt=void 0,jt=void 0,zt=void 0,Ut=!1,qt=0,Qt=0;}function i(e,t){return!((void 0===t.alwaysStrict?!t.strict:!t.alwaysStrict)||e.isDeclarationFile)||!!e.externalModuleIndicator}function a(e,t){return Ht++,new $t(e,t)}function o(t,n,r){if(t.flags|=r,n.symbol=t,t.declarations||(t.declarations=[]),t.declarations.push(n),1952&r&&!t.exports&&(t.exports=e.createSymbolTable()),6240&r&&!t.members&&(t.members=e.createSymbolTable()),107455&r){var i=t.valueDeclaration;(!i||i.kind!==n.kind&&233===i.kind)&&(t.valueDeclaration=n);}}function s(t){var n=e.getNameOfDeclaration(t);if(n){if(e.isAmbientModule(t)){var r=e.getTextOfIdentifierOrLiteral(n);return e.isGlobalScopeAugmentation(t)?"__global":'"'+r+'"'}if(144===n.kind){var i=n.expression;return e.isStringOrNumericLiteral(i)?e.escapeLeadingUnderscores(i.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.unescapeLeadingUnderscores(i.name.escapedText)))}return e.getEscapedTextOfIdentifierOrLiteral(n)}switch(t.kind){case 152:return"__constructor";case 160:case 155:return"__call";case 161:case 156:return"__new";case 157:return"__index";case 244:return"__export";case 243:return t.isExportEquals?"export=":"default";case 194:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 228:case 229:return e.hasModifier(t,512)?"default":void 0;case 273:return e.isJSDocConstructSignature(t)?"__new":"__call";case 146:e.Debug.assert(273===t.parent.kind);var a=t.parent;return"arg"+e.indexOf(a.parameters,t);case 283:var o=t.parent&&t.parent.parent,s=void 0;if(o&&208===o.kind&&o.declarationList.declarations.length>0){var c=o.declarationList.declarations[0].name;e.isIdentifier(c)&&(s=c.escapedText);}return s}}function c(t){return t.name?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(s(t))}function u(t,n,r,i,u,l){e.Debug.assert(!e.hasDynamicName(r));var _,d=e.hasModifier(r,512),p=d&&n?"default":s(r);if(void 0===p)_=a(0,"__missing");else if(_=t.get(p),788448&i&&Wt.set(p,!0),_){if(l&&!_.isReplaceableByMethod)return _;if(_.flags&u)if(_.isReplaceableByMethod)t.set(p,_=a(0,p));else{r.name&&(r.name.parent=r);var f=2&_.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;_.declarations&&_.declarations.length&&(d?f=e.Diagnostics.A_module_cannot_have_multiple_default_exports:_.declarations&&_.declarations.length&&(d||243===r.kind&&!r.isExportEquals)&&(f=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(_.declarations,function(t){Et.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(t)||t,f,c(t)));}),Et.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(r)||r,f,c(r))),_=a(0,p);}}else t.set(p,_=a(0,p)),l&&(_.isReplaceableByMethod=!0);return o(_,r,i),_.parent=n,_}function l(t,n,r){var i=1&e.getCombinedModifierFlags(t);if(2097152&n)return 246===t.kind||237===t.kind&&i?u(Ot.symbol.exports,Ot.symbol,t,n,r):u(Ot.locals,void 0,t,n,r);283===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var a=283===t.kind&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(i||32&Ot.flags)||a){var o=107455&n?1048576:0,s=u(Ot.locals,void 0,t,o,r);return s.exportSymbol=u(Ot.symbol.exports,Ot.symbol,t,n,r),t.localSymbol=s,s}return u(Ot.locals,void 0,t,n,r)}function _(t,n){var r=Ot,i=Pt;if(1&n?(Ot=Pt=t,32&n&&(Ot.locals=e.createSymbolTable()),fe(Ot)):2&n&&((Pt=t).locals=void 0),4&n){var a=Lt,o=Rt,s=Mt,c=Bt,u=zt,l=Ut,_=16&n&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);_?Bt=S():(Lt={flags:2},144&n&&(Lt.container=t),Bt=void 0),Rt=void 0,Mt=void 0,zt=void 0,Ut=!1,d(t),t.flags&=-1409,!(1&Lt.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=128,Ut&&(t.flags|=256)),265===t.kind&&(t.flags|=qt),_?(C(Bt,Lt),Lt=w(Bt)):Lt=a,Rt=o,Mt=s,Bt=c,zt=u,Ut=l;}else 64&n?(It=!1,d(t),t.flags=It?64|t.flags:-65&t.flags):d(t);Ot=r,Pt=i;}function d(e){if(Gt)m(e);else if(536870912&e.transformFlags)Gt=!0,m(e),Gt=!1,Qt|=e.transformFlags&~O(e.kind);else{var t=Qt;Qt=0,m(e),Qt=t|r(e,Qt);}}function p(t){if(void 0!==t)if(Gt)e.forEach(t,$e);else{var n=Qt;Qt=0;for(var r=0,i=0,a=t;i=108&&t.originalKeywordKind<=116&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(Et.parseDiagnostics.length||Et.bindDiagnostics.push(e.createDiagnosticForNode(t,Oe(t),e.declarationNameToString(t))));}function Oe(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Pe(t){Vt&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Re(t,t.left);}function Fe(e){Vt&&e.variableDeclaration&&Re(e,e.variableDeclaration.name);}function Ie(t){if(Vt&&71===t.expression.kind){var n=e.getErrorSpanForNode(Et,t.expression);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode));}}function Le(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}function Re(t,n){if(n&&71===n.kind){var r=n;if(Le(r)){var i=e.getErrorSpanForNode(Et,n);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,i.start,i.length,Me(t),e.unescapeLeadingUnderscores(r.escapedText)));}}}function Me(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Be(e){Vt&&Re(e,e.name);}function Ke(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function je(t){if(At<2&&265!==Pt.kind&&233!==Pt.kind&&!e.isFunctionLike(Pt)){var n=e.getErrorSpanForNode(Et,t);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,Ke(t)));}}function Je(t){Vt&&4&t.numericLiteralFlags&&Et.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));}function ze(e){Vt&&Re(e,e.operand);}function Ue(e){Vt&&(43!==e.operator&&44!==e.operator||Re(e,e.operand));}function qe(t){Vt&&Ve(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode);}function Ve(t,n,r,i,a){var o=e.getSpanOfTokenAtPosition(Et,t.pos);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,o.start,o.length,n,r,i,a));}function $e(t){if(t){t.parent=wt;var n=Vt;if(e.isInJavaScriptFile(t)&&We(t),Xe(t),t.kind>142){var i=wt;wt=t;var a=pe(t);0===a?d(t):_(t,a),wt=i;}else Gt||0!=(536870912&t.transformFlags)||(Qt|=r(t,0));Vt=n;}}function We(e){if(e.jsDoc)for(var t=0,n=e.jsDoc;t1);}function S(t,n,r){function i(t,n){return function(r){return gb.add(e.createDiagnosticForNode(r,n,t))}}n.forEach(function(n,a){var o=t.get(a);o?e.forEach(o.declarations,i(e.unescapeLeadingUnderscores(a),r)):t.set(a,n);});}function k(e){if(33554432&e.flags)return e;var t=n(e);return ab[t]||(ab[t]={})}function T(e){var n=t(e);return ob[n]||(ob[n]={flags:0})}function C(e){return 32768&e.flags?e.objectFlags:0}function D(t){return 265===t.kind&&!e.isExternalOrCommonJsModule(t)}function E(t,n,r){if(r){var i=t.get(n);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags){var a=ie(i);if(a===Mh||a.flags&r)return i}}}}function N(t,n){var r=t.parent,i=t.parent.parent,a=E(r.locals,n,107455),o=E(i.symbol.members,n,107455);if(a&&o)return[a,o];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration");}function A(t,n){function r(t,n,r){return!!e.findAncestor(t,function(i){if(i===r)return"quit";if(e.isFunctionLike(i))return!0;if(i.parent&&149===i.parent.kind&&i.parent.initializer===i)if(e.hasModifier(i.parent,32)){if(151===n.kind)return!0}else if(!(149===n.kind&&!e.hasModifier(n,32))||e.getContainingClass(t)!==e.getContainingClass(n))return!0})}var a=e.getSourceFileOfNode(t),o=e.getSourceFileOfNode(n);if(a!==o){if(vh&&(a.externalModuleIndicator||o.externalModuleIndicator)||!yh.outFile&&!yh.out||Hs(n)||e.isInAmbientContext(t))return!0;if(r(n,t))return!0;var s=i.getSourceFiles();return e.indexOf(s,a)<=e.indexOf(s,o)}if(t.pos<=n.pos){if(176===t.kind){var c=e.getAncestor(n,176);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=l?u.substr(0,l-"...".length)+"...":u}function Ze(t,n,r){return e.usingSingleLineStringWriter(function(e){ot().buildTypePredicateDisplay(t,e,n,r);})}function et(e){for(var t=[],n=0,r=0;r0&&(26!==t&&He(i),Ge(i,t),He(i)),c(e[n],26===t?0:128);}function l(e,t,n,o,s){if((32&e.flags||!Fe(e.escapedName))&&r(e,i,a,793064,0,s),n0&&(Ge(t,26),He(t)),n(e[r]);}function d(e,t,n,r){if(e&&e.length){Ge(n,27);for(var a=512,o=0;o0&&(Ge(n,26),He(n),a=0),i(t(e[o]),n,r,a);Ge(n,29);}}function p(e,t,n,r,i,a){Ge(n,19),e&&s(e,n,r,i,a);for(var o=0;o0||e)&&(Ge(n,26),He(n)),s(t[o],n,r,i,a);Ge(n,20);}function f(t,n,r,a,o){e.isIdentifierTypePredicate(t)?n.writeParameter(t.parameterName):We(n,99),He(n),We(n,126),He(n),i(t.type,n,r,a,o);}function g(e,t,n,r,a){var o=Jr(e);4096&r&>(o)||(16&r?(He(t),Ge(t,36)):Ge(t,56),He(t),e.typePredicate?f(e.typePredicate,t,n,r,a):i(o,t,n,r,a));}function y(e,t,n,r,i,a){1===i&&(We(t,94),He(t)),e.target&&64&r?d(e.target.typeParameters,e.mapper,t,n):l(e.typeParameters,t,n,r,a),p(e.thisParameter,e.parameters,t,n,r,a),g(e,t,n,r,a);}function h(t,n,r,a,o,s){if(t){switch(t.isReadonly&&(We(n,131),He(n)),Ge(n,21),n.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),Ge(n,56),He(n),r){case 1:We(n,133);break;case 0:We(n,136);}Ge(n,22),Ge(n,56),He(n),i(t.type,n,a,o,s),Ge(n,25),n.writeLine();}}return xb||(xb={buildSymbolDisplay:r,buildTypeDisplay:i,buildTypeParameterDisplay:o,buildTypePredicateDisplay:f,buildParameterDisplay:s,buildDisplayForParametersAndDelimiters:p,buildDisplayForTypeParametersAndDelimiters:l,buildTypeParameterDisplayFromSymbol:a,buildSignatureDisplay:y,buildIndexSignatureDisplay:h,buildReturnTypeDisplay:g})}function st(t){if(t){var n=T(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 176:return st(t.parent.parent);case 226:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 233:case 229:case 230:case 231:case 228:case 232:case 237:if(e.isExternalModuleAugmentation(t))return!0;var n=pt(t);return 1&e.getCombinedModifierFlags(t)||237!==t.kind&&265!==n.kind&&e.isInAmbientContext(n)?st(n):D(n);case 149:case 148:case 153:case 154:case 151:case 150:if(e.hasModifier(t,24))return!1;case 152:case 156:case 155:case 157:case 146:case 234:case 160:case 161:case 163:case 159:case 164:case 165:case 166:case 167:case 168:return st(t.parent);case 239:case 240:case 242:return!1;case 145:case 265:case 236:return!0;case 243:default:return!1}}()),n.isVisible}return!1}function ct(t){function n(t){e.forEach(t,function(t){T(t).isVisible=!0;var r=z(t)||t;if(e.contains(i,r)||i.push(r),e.isInternalModuleImportEqualsDeclaration(t)){var a=w(t,Fm(t.moduleReference).escapedText,901119,void 0,void 0);a&&n(a.declarations);}});}var r;t.parent&&243===t.parent.kind?r=w(t.parent,t.escapedText,2998271,e.Diagnostics.Cannot_find_name_0,t):246===t.parent.kind&&(r=Z(t.parent,2998271));var i=[];return r&&n(r.declarations),i}function ut(e,t){var n=lt(e,t);if(n>=0){for(var r=Zv.length,i=n;i=0;n--){if(_t(Zv[n],tb[n]))return-1;if(Zv[n]===e&&tb[n]===t)return n}return-1}function _t(t,n){return 0===n?k(t).type:2===n?k(t).declaredType:1===n?t.resolvedBaseConstructorType:3===n?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+n)}function dt(){return Zv.pop(),tb.pop(),eb.pop()}function pt(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 226:case 227:case 242:case 241:case 240:case 239:return!1;default:return!0}}))&&t.parent}function ft(t){var n=xn(De(t));return n.typeParameters?ni(n,e.map(n.typeParameters,function(e){return Kh})):n}function mt(e,t){var n=vr(e,t);return n?qt(n):void 0}function gt(e){return e&&0!=(1&e.flags)}function yt(e){var t=Ce(e);return t&&k(t).type||Ct(e,!1)}function ht(t){return 144===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function vt(t,n,r){if(8192&(t=Mc(t,function(e){return!(6144&e.flags)})).flags)return nv;if(65536&t.flags)return Bc(t,function(e){return vt(e,n,r)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=n;o=2?Ui(Kh):yv;var o=Hi(e.map(i,function(t){return e.isOmittedExpression(t)?Kh:Et(t,n,r)}));return n&&((o=ri(o)).pattern=t),o}function wt(e,t,n){return 174===e.kind?Nt(e,t,n):At(e,t,n)}function Ot(e,t){var n=Ct(e,!0);return n?(t&&Os(e,n),261===e.kind?n:Ns(n)):(n=e.dotDotDotToken?yv:Kh,t&&kh&&(Pt(e)||ws(e,n)),n)}function Pt(t){var n=e.getRootDeclaration(t);return zp(146===n.kind?n.parent:n)}function Ft(t){var n=k(t);if(!n.type){if(4194304&t.flags)return n.type=ft(t);var r=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(r))return n.type=Kh;if(243===r.kind)return n.type=dp(r.expression);if(e.isInJavaScriptFile(r)&&e.isJSDocPropertyLikeTag(r)&&r.typeExpression)return n.type=Ua(r.typeExpression.type);if(!ut(t,0))return Jh;var i=void 0;i=194===r.kind||179===r.kind&&194===r.parent.kind?Dt(t):Ot(r,!0),dt()||(i=Ut(t)),n.type=i;}return n.type}function It(t){if(t){if(153===t.kind){var n=e.getEffectiveReturnTypeNode(t);return n&&Ua(n)}var r=e.getEffectiveSetAccessorTypeAnnotationNode(t);return r&&Ua(r)}}function Lt(e){var t=Py(e);return t&&t.symbol}function Rt(e){return jr(Lr(e))}function Mt(t){var n=k(t);if(!n.type){var r=e.getDeclarationOfKind(t,153),i=e.getDeclarationOfKind(t,154);if(r&&e.isInJavaScriptFile(r)){var a=xt(r);if(a)return n.type=a}if(!ut(t,0))return Jh;var o=void 0,s=It(r);if(s)o=s;else{var c=It(i);c?o=c:r&&r.body?o=fd(r):(kh&&(i?p(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Xe(t)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),p(r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Xe(t)))),o=Kh);}dt()||(o=Kh,kh&&p(e.getDeclarationOfKind(t,153),e.Diagnostics._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,Xe(t))),n.type=o;}return n.type}function Bt(e){var t=an(dn(e));return 540672&t.flags?t:void 0}function Kt(t){var n=k(t);if(!n.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))n.type=Kh;else{var r=Pe(16,t);if(32&t.flags){var i=Bt(t);n.type=i?_a([r,i]):r;}else n.type=Sh&&16777216&t.flags?vs(r,2048):r;}return n.type}function jt(e){var t=k(e);return t.type||(t.type=hn(e)),t.type}function Jt(e){var t=k(e);if(!t.type){var n=ie(e);t.type=107455&n.flags?qt(n):Jh;}return t.type}function zt(t){var n=k(t);if(!n.type)if(100===mh)p(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),n.type=Jh;else{if(!ut(t,0))return Jh;mh++;var r=go(qt(n.target),n.mapper);mh--,dt()||(r=Ut(t)),n.type=r;}return n.type}function Ut(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(p(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xe(t)),Jh):(kh&&p(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Xe(t)),Kh)}function qt(t){return 1&e.getCheckFlags(t)?zt(t):7&t.flags?Ft(t):9136&t.flags?Kt(t):8&t.flags?jt(t):98304&t.flags?Mt(t):2097152&t.flags?Jt(t):Jh}function Vt(e,t){return void 0!==e&&void 0!==t&&0!=(4&C(e))&&e.target===t}function $t(e){return 4&C(e)?e.target:e}function Wt(t,n){function r(t){if(7&C(t)){var i=$t(t);return i===n||e.forEach(on$$1(i),r)}if(131072&t.flags)return e.forEach(t.types,r)}return r(t)}function Gt(t,n){for(var r=0,i=n;r0)return!0;if(540672&e.flags){var t=lr(e);return t&&un(t)&&Zt(t)}return!1}function tn(t){return e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration)}function nn(t,n,r){var i=e.length(n),a=e.isInJavaScriptFile(r);return e.filter(xr(t,1),function(t){return(a||i>=Fr(t.typeParameters))&&i<=e.length(t.typeParameters)})}function rn(t,n,r){var i=nn(t,n,r),a=e.map(n,Ua);return e.sameMap(i,function(t){return e.some(t.typeParameters)?Ur(t,a):t})}function an(t){if(!t.resolvedBaseConstructorType){var n=tn(t);if(!n)return t.resolvedBaseConstructorType=zh;if(!ut(t,1))return Jh;var r=dp(n.expression);if(163840&r.flags&&tr(r),!dt())return p(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Xe(t.symbol)),t.resolvedBaseConstructorType=Jh;if(!(1&r.flags||r===Vh||en(r)))return p(n.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Qe(r)),t.resolvedBaseConstructorType=Jh;t.resolvedBaseConstructorType=r;}return t.resolvedBaseConstructorType}function on$$1(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[Vi(oa(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&sn(t),64&t.symbol.flags&&ln(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function sn(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;var n=mr(an(t));if(163841&n.flags){var r,i=tn(t),a=yi(i),o=n&&n.symbol?xn(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&cn(o))r=ai(i,n.symbol,a);else if(1&n.flags)r=n;else{var s=rn(n,i.typeArguments,i);if(!s.length)return void p(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);r=Jr(s[0]);}var c=t.symbol.valueDeclaration;if(c&&e.isInJavaScriptFile(c)){var u=e.getJSDocAugmentsTag(t.symbol.valueDeclaration);u&&(r=Ua(u.typeExpression.type));}r!==Jh&&(un(r)?t===r||Wt(r,t)?p(c,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Qe(t,void 0,1)):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[r]:t.resolvedBaseTypes.push(r):p(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Qe(r)));}}function cn(e){var t=e.outerTypeParameters;if(t){var n=t.length-1,r=e.typeArguments;return t[n].symbol!==r[n].symbol}return!0}function un(t){return 16809985&t.flags&&!er(t)||131072&t.flags&&!e.forEach(t.types,function(e){return!un(e)})}function ln(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var n=0,r=t.symbol.declarations;n=_)&&o<=d){var p=d?qr(l,Ir(a,l.typeParameters,_,r)):Ln(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p);}}return s}function Mn(e,t,n,r,i){for(var a=0,o=e;a0)return;for(a=1;a1){if(l=Ln(c),e.forEach(u,function(e){return e.thisParameter})){var _=oa(e.map(u,function(e){return qt(e.thisParameter)||Kh}),!0);l.thisParameter=Ss(c.thisParameter,_);}l.resolvedReturnType=void 0,l.unionSignatures=u;}(i||(i=[])).push(l);}}}return i||e.emptyArray}function jn(e,t){for(var n=[],r=!1,i=0,a=e;i0&&(l=e.map(l,function(e){var t=Ln(e);return t.resolvedReturnType=Vn(Jr(e),o,c),t})),a=e.concatenate(a,l);}i=e.concatenate(i,xr(u,0)),n=Un(n,Tr(u,0)),r=Un(r,Tr(u,1));}(c);Le(t,gh,i,a,n,r);}function Wn(t){var n=t.symbol;if(t.target)Le(t,i=En(nr(t.target),t.mapper,!1),r=$a(xr(t.target,0),t.mapper),a=$a(xr(t.target,1),t.mapper),o=ho(Tr(t.target,0),t.mapper),u=ho(Tr(t.target,1),t.mapper));else if(2048&n.flags){var r=Br((i=n.members).get("__call"));Le(t,i,r,a=Br(i.get("__new")),o=Xr(n,0),u=Xr(n,1));}else{var i=gh,a=e.emptyArray,o=void 0;if(n.exports&&(i=be(n)),32&n.flags){var s=dn(n);(a=Br(n.members.get("__constructor"))).length||(a=Rn(s));var c=an(s);704512&c.flags?Nn(i=e.createSymbolTable(Ie(i)),ar(c)):c===Kh&&(o=Hr(Kh,!1));}var u=384&n.flags?Vv:void 0;Le(t,i,e.emptyArray,a,o,u),8208&n.flags&&(t.callSignatures=Br(n));}}function Gn(t){function n(n,o){var _=Ya([a],[n]),d=t.mapper?ro(t.mapper,_):_,p=go(s,d);if(32&n.flags){var m=e.escapeLeadingUnderscores(n.value),g=vr(c,m),y=f(4|(l||!!(g&&16777216&g.flags)?16777216:0),m);y.checkFlags=u||g&&kd(g)?8:0,y.type=p,o&&(y.syntheticOrigin=o,y.declarations=o.declarations),i.set(m,y);}else 2&n.flags&&(r=Hr(p,u));}var r,i=e.createSymbolTable();Le(t,gh,e.emptyArray,e.emptyArray,void 0,void 0);var a=Hn(t),o=Xn(t),s=Yn(t),c=mr(Qn(t)),u=!!t.declaration.readonlyToken,l=!!t.declaration.questionToken;if(170===t.declaration.typeParameter.constraint.kind){for(var _=0,d=ar(c);_=2):16777216&t.flags?nv:t}function gr(t,n){for(var r,i=t.types,a=65536&t.flags,o=a?24:0,s=a?0:16777216,c=4,u=0,l=0,_=i;l<_.length;l++)if((b=mr(_[l]))!==Jh){var d=(v=vr(b,n))?e.getDeclarationModifierFlagsFromSymbol(v):0;!v||d&o?a&&(u|=16):(s&=v.flags,r?e.contains(r,v)||r.push(v):r=[v],u|=(kd(v)?8:0)|(24&d?0:64)|(16&d?128:0)|(8&d?256:0)|(32&d?512:0),$l(v)||(c=2));}if(r){if(1===r.length&&!(16&u))return r[0];for(var p=[],m=[],g=void 0,y=0,h=r;y=0),i>=r.minArgumentCount}var a=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!a&&(!t.type&&!t.dotDotDotToken&&e.indexOf(t.parent.parameters,t)>=a.arguments.length)}function Pr(e){var t=e.parameterName;return 71===t.kind?{kind:1,parameterName:t?t.escapedText:void 0,parameterIndex:t?yp(e.parent.parameters,t):void 0,type:Ua(e.type)}:{kind:0,type:Ua(e.type)}}function Fr(e){var t=0;if(e)for(var n=0;n=r)&&o<=a){t||(t=[]);for(c=o;cc.arguments.length&&!d.type||Ar(d)||l||(a=r.length);}if(!(153!==t.kind&&154!==t.kind||e.hasDynamicName(t)||s&&o)){var m=153===t.kind?154:153,g=e.getDeclarationOfKind(t.symbol,m);g&&(o=Lt(g));}var y=152===t.kind?dn(Te(t.parent.symbol)):void 0,h=y?y.localTypeParameters:Er(t),v=Rr(t,u,y),b=t.type&&158===t.type.kind?Pr(t.type):void 0,x=e.hasRestParameter(t);if(!x&&e.isInJavaScriptFile(t)&&Mr(t)){x=!0;var S=f(3,"args");S.type=yv,S.isRestParameter=!0,r.push(S);}n.resolvedSignature=In(t,h,o,r,v,b,a,x,i);}return n.resolvedSignature}function Rr(t,n,r){if(n)return Ua(t.parameters[0].type);if(r)return r;var i=e.getEffectiveReturnTypeNode(t);return i?Ua(i):153!==t.kind||e.hasDynamicName(t)?e.nodeIsMissing(t.body)?Kh:void 0:It(e.getDeclarationOfKind(t.symbol,154))}function Mr(t){function n(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.escapedText&&e.isPartOfExpression(t);case 149:case 151:case 153:case 154:return 144===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,n)}}var r=T(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=n(t.body)),r.containsArgumentsReference}function Br(t){if(!t)return e.emptyArray;for(var n=[],r=0;r0&&i.body){var a=t.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)break}n.push(Lr(i));}}return n}function Kr(e){var t=le(e,e);if(t){var n=pe(t);if(n)return qt(n)}return Kh}function jr(e){if(e.thisParameter)return qt(e.thisParameter)}function Jr(t){if(!t.resolvedReturnType){if(!ut(t,3))return Jh;var n=void 0;if(n=t.target?go(Jr(t.target),t.mapper):t.unionSignatures?oa(e.map(t.unionSignatures,Jr),!0):fd(t.declaration),!dt()&&(n=Kh,kh)){var r=t.declaration,i=e.getNameOfDeclaration(r);i?p(i,e.Diagnostics._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,e.declarationNameToString(i)):p(r,e.Diagnostics.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);}t.resolvedReturnType=n;}return t.resolvedReturnType}function zr(t){if(t.hasRestParameter){var n=qt(e.lastOrUndefined(t.parameters));if(4&C(n)&&n.target===lv)return n.typeArguments[0]}return Kh}function Ur(t,n){n=Ir(n,t.typeParameters,Fr(t.typeParameters));var r=t.instantiations||(t.instantiations=e.createMap()),i=ei(n),a=r.get(i);return a||r.set(i,a=qr(t,n)),a}function qr(e,t){return so(e,Ya(e.typeParameters,t),!0)}function Vr(e){return e.typeParameters?(e.erasedSignatureCache||(e.erasedSignatureCache=so(e,Qa(e.typeParameters),!0)),e.erasedSignatureCache):e}function $r(t){if(!t.isolatedSignatureType){var n=152===t.declaration.kind||156===t.declaration.kind,r=Pe(16);r.members=gh,r.properties=e.emptyArray,r.callSignatures=n?e.emptyArray:[t],r.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=r;}return t.isolatedSignatureType}function Wr(e){return e.members.get("__index")}function Gr(e,t){var n=1===t?133:136,r=Wr(e);if(r)for(var i=0,a=r.declarations;i1&&(t+=":"+a),r+=a;}return t}function ti(e,t){for(var n=0,r=0,i=e;ra.length)?(p(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Qe(i,void 0,1),s,a.length),Jh):ni(i,e.concatenate(i.outerTypeParameters,Ir(r,a,s,t)))}return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Qe(i)),Jh):i}function oi(e,t){var n=xn(e),r=k(e),i=r.typeParameters,a=ei(t),o=r.instantiations.get(a);return o||r.instantiations.set(a,o=yo(n,Ya(i,Ir(t,i,Fr(i))))),o}function si(t,n,r){var i=xn(n),a=k(n).typeParameters;if(a){var o=e.length(t.typeArguments),s=Fr(a);return oa.length?(p(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Xe(n),s,a.length),Jh):oi(n,r)}return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Xe(n)),Jh):i}function ci(t,n){return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Xe(n)),Jh):xn(n)}function ui(t){switch(t.kind){case 159:return t.typeName;case 201:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function li(e,t){return e?ue(e,t)||Mh:Mh}function _i(e,t){var n=yi(e);if(t===Mh)return Jh;var r=di(e,t,n);if(r)return r;if(107455&t.flags&&pi(e)){var i=qt(t);if(i.symbol&&!H_(i)){var a=di(e,i.symbol,n);if(a)return a}return li(ui(e),793064),i}return ci(e,t)}function di(t,n,r){return 96&n.flags?ai(t,n,r):524288&n.flags?si(t,n,r):16&n.flags&&pi(t)&&(n.members||e.getJSDocClassTag(n.valueDeclaration))?G_(n):void 0}function pi(e){return 1048576&e.flags&&159===e.kind}function fi(t){if(e.isIdentifier(t.typeName)){if("Object"===t.typeName.escapedText){if(t.typeArguments&&2===t.typeArguments.length){var n=Ua(t.typeArguments[0]),r=Hr(Ua(t.typeArguments[1]),!1);if(n===$h||n===Wh)return Re(void 0,gh,e.emptyArray,e.emptyArray,n===$h&&r,n===Wh&&r)}return Kh}switch(t.typeName.escapedText){case"String":return $h;case"Number":return Wh;case"Boolean":return Xh;case"Void":return Qh;case"Undefined":return zh;case"Null":return qh;case"Function":case"function":return uv;case"Array":case"array":return t.typeArguments&&t.typeArguments.length?void 0:yv;case"Promise":case"promise":return t.typeArguments&&t.typeArguments.length?void 0:dd(Kh)}}}function mi(e){var t=Ua(e.type);return Sh?oa([t,qh]):t}function gi(e){var t=T(e);if(!t.resolvedType){var n=void 0,r=void 0,i=793064;pi(e)&&(r=fi(e),i|=107455),r||(r=_i(e,n=li(ui(e),i))),t.resolvedSymbol=n,t.resolvedType=r;}return t.resolvedType}function yi(t){return e.map(t.typeArguments,Ua)}function hi(e){var t=T(e);return t.resolvedType||(t.resolvedType=Ns(dp(e.exprName))),t.resolvedType}function vi(t,n){function r(e){for(var t=0,n=e.declarations;t>1),o=e[a].id;if(o===i)return a;o>i?r=a-1:n=a+1;}return~n}function Qi(e,t){return Yi(e,t)>=0}function Zi(e,t){var n=t.flags;if(65536&n)ea(e,t.types);else if(1&n)e.containsAny=!0;else if(!Sh&&6144&n)2048&n&&(e.containsUndefined=!0),4096&n&&(e.containsNull=!0),2097152&n||(e.containsNonWideningType=!0);else if(!(8192&n)){2&n&&(e.containsString=!0),4&n&&(e.containsNumber=!0),96&n&&(e.containsStringOrNumberLiteral=!0);var r=e.length,i=r&&t.id>e[r-1].id?~r:Yi(e,t);i<0&&(32768&n&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&ta(e,t)||e.splice(~i,0,t));}}function ea(e,t){for(var n=0,r=t;n0;)na(t[--n],t)&&e.orderedRemoveItemAt(t,n);}function aa(t){for(var n=t.length;n>0;){var r=t[--n];(32&r.flags&&t.containsString||64&r.flags&&t.containsNumber||96&r.flags&&1048576&r.flags&&Qi(t,r.regularType))&&e.orderedRemoveItemAt(t,n);}}function oa(e,t,n,r){if(0===e.length)return Zh;if(1===e.length)return e[0];var i=[];return ea(i,e),i.containsAny?Kh:(t?ia(i):i.containsStringOrNumberLiteral&&aa(i),0===i.length?i.containsNull?i.containsNonWideningType?qh:Vh:i.containsUndefined?i.containsNonWideningType?zh:Uh:Zh:sa(i,n,r))}function sa(e,t,n){if(0===e.length)return Zh;if(1===e.length)return e[0];var r=ei(e),i=Ph.get(r);return i||(i=we(65536|ti(e,6144)),Ph.set(r,i),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=n),i}function ca(t){var n=T(t);return n.resolvedType||(n.resolvedType=oa(e.map(t.types,Ua),!1,wa(t),Oa(t))),n.resolvedType}function ua(t,n){131072&n.flags?la(t,n.types):1&n.flags?t.containsAny=!0:8192&n.flags?t.containsNever=!0:16&C(n)&&jo(n)?t.containsEmptyObject=!0:!Sh&&6144&n.flags||e.contains(t,n)||(32768&n.flags&&(t.containsObjectType=!0),65536&n.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),32768&n.flags&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&ta(t,n)||t.push(n));}function la(e,t){for(var n=0,r=t;n=n?nv:r};return r.mappedTypes=t,r}function eo(e){return!!e.signature}function to(e){return e&&eo(e)?Fs(e.signature,2|e.flags,e.compareTypes,e.inferences):e}function no(e){return e}function ro(t,n){var r=function(e){return go(t(e),n)};return r.mappedTypes=e.concatenate(t.mappedTypes,n.mappedTypes),r}function io(e,t,n){var r=function(r){return r===e?t:n(r)};return r.mappedTypes=n.mappedTypes,r}function ao(e){var t=we(16384);return t.symbol=e.symbol,t.target=e,t}function oo(t,n){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:go(t.type,n)}:{kind:0,type:go(t.type,n)}}function so(t,n,r){var i,a;if(t.typeParameters&&!r){i=e.map(t.typeParameters,ao),n=ro(Ya(t.typeParameters,i),n);for(var o=0,s=i;on.parameters.length)return 0;t.typeParameters&&(t=v_(t,n,void 0,s));var c=-1,u=jr(t);if(u&&u!==Qh){var l=jr(n);if(l){if(!(x=s(u,l,!1)||s(l,u,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;c&=x;}}for(var _=Mo(t),d=Mo(n),p=Bo(t,_,n,d),f=t.parameters,m=n.parameters,g=0;g0||xr(t,0).length>0||xr(t,1).length>0)&&E(n)&&!N(t,n)){if(i){var o=xr(t,0),p=xr(t,1);o.length>0&&_(Jr(o[0]),n,!1)||p.length>0&&_(Jr(p[0]),n,!1)?s(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Qe(t),Qe(n)):s(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Qe(t),Qe(n));}return 0}var m=0,y=B,x=$;return $=!1,65536&t.flags?m=r===Fb?v(t,n,i&&!(8190&t.flags)):b(t,n,i&&!(8190&t.flags)):(65536&n.flags?m=g(t,n,i&&!(8190&t.flags)&&!(8190&n.flags)):131072&n.flags?($=!0,m=h(t,n,i)):131072&t.flags&&(m=v(t,n,!1)),!m&&(1032192&t.flags||1032192&n.flags)&&(m=S(t,n,i))&&(B=y)),$=x,!m&&i&&(32768&t.flags&&8190&n.flags?u(t,n):t.symbol&&32768&t.flags&&cv===t&&s(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),c(a,t,n)),m}function d(e,t){var n;return 32768&e.flags&&32768&t.flags?S(e,t,!1):(65536&e.flags&&65536&t.flags||131072&e.flags&&131072&t.flags)&&(n=m(e,t))&&(n&=m(t,e))?n:0}function f(t,n,a){if(Fd(n,32768)&&!(512&C(n))){var o=!!(33554432&t.flags);if((r===Pb||r===Fb)&&(Ic(cv,n)||!o&&jo(n)))return!1;for(var c=0,u=nr(t);c0&&e.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(131072&t.flags)&&e.every(t.types,E)}function N(e,t){for(var n=!!(33554432&e.flags),r=0,i=ar(e);r=5&&32768&e.flags){var r=e.symbol;if(r)for(var i=0,a=0;a=5)return!0}}return!1}function Qo(e,t){return 0!==Zo(e,t,To)}function Zo(t,n,r){if(t===n)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(i){if(ym(t)!==ym(n))return 0}else if((16777216&t.flags)!=(16777216&n.flags))return 0;return kd(t)!==kd(n)?0:r(qt(t),qt(n))}function es(e,t,n){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var r=e.hasRestParameter?1:0,i=t.hasRestParameter?1:0;return!!(n&&e.minArgumentCount<=t.minArgumentCount&&(r>i||r===i&&e.parameters.length>=t.parameters.length))}function ts(t,n,r,i,a,o){if(t===n)return-1;if(!es(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;t=Vr(t),n=Vr(n);var s=-1;if(!i){var c=jr(t);if(c){var u=jr(n);if(u){if(!(d=o(c,u)))return 0;s&=d;}}}for(var l=n.parameters.length,_=0;_=e.parameters.length-1}function rs(e){for(var t,n=0,r=e;n=2||0==(34&n.flags)||260===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),i=fu(t.parent,r),a=r,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent;}o&&(i&&(T(a).flags|=65536),214===r.kind&&e.getAncestor(n.valueDeclaration,227).parent===r&&gu(t,r)&&(T(n.valueDeclaration).flags|=2097152),T(n.valueDeclaration).flags|=262144),i&&(T(n.valueDeclaration).flags|=131072);}}function gu(t,n){for(var r=t;185===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(192===r.parent.kind||193===r.parent.kind){var a=r.parent;i=43===a.operator||44===a.operator;}return!!i&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}function yu(e,t){T(e).flags|=2,149===t.kind||152===t.kind?T(t.parent).flags|=4:T(t).flags|=4;}function hu(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,hu)}function vu(e){var t=T(e);return void 0===t.hasSuperCall&&(t.superCall=hu(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function bu(e){return an(xn(Ce(e)))===Vh}function xu(t,n,r){var i=n.parent;if(e.getClassExtendsHeritageClauseElement(i)&&!bu(i)){var a=vu(n);(!a||a.end>t.pos)&&p(t,r);}}function Su(t){var n=e.getThisContainer(t,!0),r=!1;switch(152===n.kind&&xu(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),187===n.kind&&(n=e.getThisContainer(n,!1),r=hh<2),n.kind){case 233:p(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 232:p(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 152:Tu(t,n)&&p(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 149:case 148:e.hasModifier(n,32)&&p(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 144:p(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);}if(r&&yu(t,n),e.isFunctionLike(n)&&(!Iu(t)||e.getThisParameter(n))){if(186===n.kind&&194===n.parent.kind&&3===e.getSpecialPropertyAssignmentKind(n.parent)){var i=dp(n.parent.left.expression.expression).symbol;if(i&&i.members&&16&i.flags)return G_(i)}var a=Rt(n)||Au(n);if(a)return a}if(e.isClassLike(n.parent)){var o=Ce(n.parent);return nu(t,s=e.hasModifier(n,32)?qt(o):xn(o).thisType)}if(e.isInJavaScriptFile(t)){var s=ku(n);if(s&&s!==Jh)return s}return Th&&p(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),Kh}function ku(t){var n=e.getJSDocType(t);if(n&&273===n.kind){var r=n;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Ua(r.parameters[0].type)}}function Tu(t,n){return!!e.findAncestor(t,function(e){return e===n?"quit":146===e.kind})}function Cu(t){var n=181===t.parent.kind&&t.parent.expression===t,r=e.getSuperContainer(t,!0),i=!1;if(!n)for(;r&&187===r.kind;)r=e.getSuperContainer(r,!0),i=hh<2;var a=0;if(!function(t){return!!t&&(n?152===t.kind:!(!e.isClassLike(t.parent)&&178!==t.parent.kind)&&(e.hasModifier(t,32)?151===t.kind||150===t.kind||153===t.kind||154===t.kind:151===t.kind||150===t.kind||153===t.kind||154===t.kind||149===t.kind||148===t.kind||152===t.kind))}(r)){var o=e.findAncestor(t,function(e){return e===r?"quit":144===e.kind});return o&&144===o.kind?p(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?p(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(e.isClassLike(r.parent)||178===r.parent.kind)?p(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):p(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Jh}if(n||152!==r.kind||xu(t,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=e.hasModifier(r,32)||n?512:256,T(t).flags|=a,151===r.kind&&e.hasModifier(r,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?T(r).flags|=4096:T(r).flags|=2048),i&&yu(t.parent,r),178===r.parent.kind)return hh<2?(p(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Jh):Kh;var s=r.parent,c=xn(Ce(s)),u=c&&on$$1(c)[0];return u?152===r.kind&&Tu(t,r)?(p(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Jh):512===a?an(c):wn(u,c.thisType):(e.getClassExtendsHeritageClauseElement(s)||p(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Jh)}function Du(e){return 151!==e.kind&&153!==e.kind&&154!==e.kind||178!==e.parent.kind?186===e.kind&&261===e.parent.kind?e.parent.parent:void 0:e.parent}function Eu(e){return 4&C(e)&&e.target===gv?e.typeArguments[0]:void 0}function Nu(t){return Bc(t,function(t){return 131072&t.flags?e.forEach(t.types,Eu):Eu(t)})}function Au(t){if(187!==t.kind){if(xo(t)){var n=nl(t);if(n){var r=n.thisParameter;if(r)return qt(r)}}if(Th||e.isInJavaScriptFile(t)){var i=Du(t);if(i){for(var a=Gu(i),o=i,s=a;s;){var c=Nu(s);if(c)return go(c,Xu(i));if(261!==o.parent.kind)break;s=Gu(o=o.parent.parent);}return a?bs(a):np(i)}if(194===t.parent.kind&&58===t.parent.operatorToken.kind){var u=t.parent.left;if(179===u.kind||180===u.kind)return np(u.expression)}}}}function wu(t){var n=t.parent;if(xo(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var i=e.indexOf(n.parameters,t);if(t.dotDotDotToken){for(var a=[],o=i;o=0)return od(T(t).resolvedSignature===Uv?Uv:$_(t),i)}function Mu(e,t){if(183===e.parent.kind)return Ru(e.parent,t)}function Bu(t){var n=t.parent,r=n.operatorToken.kind;if(e.isAssignmentOperator(r)){if(0!==e.getSpecialPropertyAssignmentKind(n))return;if(t===n.right)return lp(n.left)}else{if(54===r){var i=Hu(n);return i||t!==n.right||(i=lp(n.left)),i}if((53===r||26===r)&&t===n.right)return Hu(n)}}function Ku(e,t){return Bc(e,function(e){var n=229376&e.flags?vr(e,t):void 0;return n?qt(n):void 0})}function ju(e,t){return Bc(e,function(e){return kr(e,t)})}function Ju(t){return!!(65536&t.flags?e.forEach(t.types,cs):cs(t))}function zu(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!eg(t))return Uu(t)}function Uu(t){var n=Gu(t.parent);if(n){if(!e.hasDynamicName(t)){var r=Ku(n,Ce(t).escapedName);if(r)return r}return ol(t.name)&&ju(n,1)||ju(n,0)}}function qu(t){var n=t.parent,r=Gu(n);if(r)return Ku(r,""+e.indexOf(n.elements,t))||ju(r,1)||Gf(r,void 0,!1,!1,!1)}function Vu(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?Hu(t):void 0}function $u(t){var n=Hu(e.isJsxAttributeLike(t.parent)?t.parent.parent:t.parent.openingElement.attributes);if(n&&!gt(n)){if(e.isJsxAttribute(t.parent))return mt(n,t.parent.name.escapedText);if(249===t.parent.kind){var r=Cl();return r&&""!==r?mt(n,r):Kh}return n}}function Wu(t){var n=Hu(t.parent);if(e.isJsxAttribute(t)){if(!n||gt(n))return;return mt(n,t.name.escapedText)}return n}function Gu(e){var t=Hu(e);return t&&mr(t)}function Hu(t){if(!eg(t)){if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 226:case 146:case 149:case 148:case 176:return Ou(t);case 187:case 219:return Pu(t);case 197:return Fu(n);case 181:case 182:return Ru(n,t);case 184:case 202:return Ua(n.type);case 194:return Bu(t);case 261:case 262:return Uu(n);case 263:return Gu(n.parent);case 177:return qu(t);case 195:return Vu(t);case 205:return e.Debug.assert(196===n.parent.kind),Mu(n.parent,t);case 185:return Hu(n);case 256:return $u(n);case 253:case 255:return Wu(n);case 251:case 250:return Fl(n)}}}function Xu(t){return t=e.findAncestor(t,function(e){return!!e.contextualMapper}),t?t.contextualMapper:no}function Yu(e,t){var n=br(e,0);if(1===n.length){var r=n[0];if(!Qu(r,t))return r}}function Qu(t,n){for(var r=0;r0&&(s=Pa(s,r()),o=[],a=e.createSymbolTable(),g=!1,y=!1,d=0),!pl(T=dp(x.expression)))return p(x,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Jh;s=Pa(s,T),v=b+1;continue}e.Debug.assert(153===x.kind||154===x.kind),$m(x);}e.hasDynamicName(x)?ol(x.name)?y=!0:g=!0:a.set(S.escapedName,S),o.push(S);}if(l)for(var E=0,N=ar(u);E0&&(s=Pa(s,r())),32768&s.flags&&(s.flags|=c,s.flags|=1048576,s.objectFlags|=128,s.symbol=t.symbol),s):r()}function pl(t){return!!(16783361&t.flags||32768&t.flags&&!er(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!pl(e)}))}function fl(e){return jl(e),Rl()||Kh}function ml(e){return jl(e.openingElement),yl(e.closingElement.tagName)?xl(e.closingElement):dp(e.closingElement.tagName),Rl()||Kh}function gl(e){return e.indexOf("-")<0}function yl(t){switch(t.kind){case 179:case 99:return!1;case 71:return e.isIntrinsicJsxName(t.escapedText);default:e.Debug.fail();}}function hl(t,n,r){function i(t,n){var r=Re(t,n,e.emptyArray,e.emptyArray,void 0,void 0);return r.flags|=37748736,r.objectFlags|=128,r}for(var a,o=t.attributes,s=e.createSymbolTable(),c=nv,u=[],l=!1,_=!1,d=Cl(),m=0,g=o.properties;m0&&(c=Pa(c,i(o.symbol,s)),u=[],s=e.createSymbolTable()),gt(v=dp(y.expression))&&(l=!0),pl(v)?c=Pa(c,v):a=a?_a([a,v]):v;}if(!l){c!==nv&&(u.length>0&&(c=Pa(c,i(o.symbol,s))),u=ar(c)),s=e.createSymbolTable();for(var x=0,S=u;x0){for(var C=[],D=0,E=T.children;D1&&p(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t));}}function Tl(){return Eb||(Eb=!0,vb=kl(wb.ElementAttributesPropertyNameContainer)),vb}function Cl(){return Nb||(Nb=!0,bb=kl(wb.ElementChildrenAttributeNameContainer)),bb}function Dl(e){if(e){if(131072&e.flags){for(var t=[],n=0,r=e.types;n0))p(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(Tl()));else if(Oo(r,n,t.attributes.properties.length>0?t.attributes:t)&&!gt(r)&&!gt(n))for(var i=0,a=t.attributes.properties;i30)){t=t.toLowerCase();for(var u=0,l=n;ui)continue;p<3?(c=!0,s=_):p=m&&o.length<=f))return!1;if(c>=0)return ns(r,c)||c>=r.minArgumentCount;if(!r.hasRestParameter&&a>r.parameters.length)return!1;var g=a>=r.minArgumentCount;return s||g}function h_(e){if(32768&e.flags){var t=tr(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function v_(e,t,n,r){var i=Fs(e,1,r);return Ps(t,e,function(e,t){Js(i.inferences,go(e,n||no),t);}),n||Js(i.inferences,Jr(t),Jr(e),4),Ur(e,Ws(i))}function b_(t,n,r,i,a){for(var o=0,s=a.inferences;o0?[t.attributes]:e.emptyArray:t.arguments||e.emptyArray}function D_(e,t,n){if(147!==e.kind)return t.length;switch(e.parent.kind){case 229:case 199:return 1;case 149:return 2;case 151:case 153:case 154:return 0===hh?2:n.parameters.length>=3?3:2;case 146:return 3}}function E_(t){if(229===t.kind)return qt(n=Ce(t));if(146===t.kind&&152===(t=t.parent).kind){var n=Ce(t);return qt(n)}return 149===t.kind||151===t.kind||153===t.kind||154===t.kind?vg(t):(e.Debug.fail("Unsupported decorator target."),Jh)}function N_(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),Jh;if(146===t.kind&&152===(t=t.parent).kind)return Kh;if(149===t.kind||151===t.kind||153===t.kind||154===t.kind){var n=t;switch(n.name.kind){case 71:return Ba(e.unescapeLeadingUnderscores(n.name.escapedText));case 8:case 9:return Ba(n.name.text);case 144:var r=ll(n.name);return Id(r,512)?r:$h;default:return e.Debug.fail("Unsupported property name."),Jh}}return e.Debug.fail("Unsupported decorator target."),Jh}function A_(t){return 229===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),Jh):146===t.kind?Wh:149===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),Jh):151===t.kind||153===t.kind||154===t.kind?ji(mg(t)):(e.Debug.fail("Unsupported decorator target."),Jh)}function w_(t,n){return 0===n?E_(t.parent):1===n?N_(t.parent):2===n?A_(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),Jh)}function O_(e,t){return 147===e.kind?w_(e,t):0===t&&183===e.kind?Ci():void 0}function P_(e,t,n){if(147!==e.kind&&(0!==n||183!==e.kind))return t[n]}function F_(e,t,n){return 147===e.kind?e.expression:0===t&&183===e.kind?e.template:n}function I_(t,n,r,i){function a(n,r,i){if(void 0===i&&(i=!1),y=void 0,h=void 0,f){c=n[0];if(!y_(t,p,c,i))return;return k_(t,p,c,r,d,!1)?c:void(y=c)}for(var a=0;a0?d[e.indexOf(d,!0)]=!1:d=void 0;}}}var o,s=183===t.kind,u=147===t.kind,l=e.isJsxOpeningLikeElement(t);s||u||l||(o=t.typeArguments,97!==t.expression.kind&&e.forEach(o,Vm));var _=r||[];if(m_(n,_),!_.length)return gb.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),f_(t);var d,p=C_(t),f=1===_.length&&!_[0].typeParameters,m=0;if(!u&&!f)for(var g=s?1:0;g1&&(v=a(_,Ob,b)),v||(v=a(_,Pb,b)),v)return v;if(y){if(l)return y;k_(t,p,y,Pb,void 0,!0);}else if(h){var x=t.typeArguments;x_(h,x,e.map(x,Ua),!0,i);}else if(o&&e.every(n,function(t){return e.length(t.typeParameters)!==o.length})){for(var S=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,T=0,C=n;T-1,O=A?S:S0);var I=L_(_,void 0===Nh?p.length:Nh),L=_[I],R=L.typeParameters;if(R&&d_(t)&&t.typeArguments){for(var M=t.typeArguments.map(mg);M.length>R.length;)M.pop();for(;M.length=t)return i;a.parameters.length>r&&(r=a.parameters.length,n=i);}return n}function R_(t,n){if(97===t.expression.kind){var r=Cu(t.expression);if(r!==Jh){var i=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(i)return I_(t,rn(r,i.typeArguments,i),n)}return p_(t)}var a=Gl(t.expression);if(a===ev)return qv;var o=mr(a);if(o===Jh)return f_(t);var s=xr(o,0),c=xr(o,1);return M_(a,o,s.length,c.length)?(a!==Jh&&t.typeArguments&&p(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),p_(t)):s.length?I_(t,s,n):(c.length?p(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Qe(a)):p(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(o)),f_(t))}function M_(e,t,n,r){return!!gt(e)||(!!(gt(t)&&16384&e.flags)||!n&&!r&&(!(65536&e.flags)&&Eo(e,uv)))}function B_(t,n){if(t.arguments&&hh<1){var r=g_(t.arguments);r>=0&&p(t.arguments[r],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher);}var i=Gl(t.expression);if(i===ev)return qv;if((i=mr(i))===Jh)return f_(t);var a=i.symbol&&hm(i.symbol);if(a&&e.hasModifier(a,128))return p(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(e.getNameOfDeclaration(a))),f_(t);if(gt(i))return t.typeArguments&&p(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),p_(t);var o=xr(i,1);if(o.length)return K_(t,o[0])?I_(t,o,n):f_(t);var s=xr(i,0);if(s.length){var c=I_(t,s,n);return W_(c.declaration)||Jr(c)===Qh||p(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),jr(c)===Qh&&p(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return p(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),f_(t)}function K_(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,i=e.getSelectedModifierFlags(r,24);if(!i)return!0;var a=hm(r.parent.symbol),o=xn(r.parent.symbol);if(!sg(t,a)){var s=e.getContainingClass(t);if(s)for(var c=on$$1(mg(s));c.length;){var u=c[0];if(16&i&&u.symbol===r.parent.symbol)return!0;c=on$$1(u);}return 8&i&&p(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Qe(o)),16&i&&p(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Qe(o)),!1}return!0}function j_(t,n){var r=dp(t.tag),i=mr(r);if(i===Jh)return f_(t);var a=xr(i,0),o=xr(i,1);return M_(r,i,a.length,o.length)?p_(t):a.length?I_(t,a,n):(p(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(i)),f_(t))}function J_(t){switch(t.parent.kind){case 229:case 199:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 146:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 149:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 151:case 153:case 154:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function z_(t,n){var r=dp(t.expression),i=mr(r);if(i===Jh)return f_(t);var a=xr(i,0),o=xr(i,1);if(M_(r,i,a.length,o.length))return p_(t);var s=J_(t);if(!a.length){var c=void 0;return c=e.chainDiagnosticMessages(c,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(i)),c=e.chainDiagnosticMessages(c,s),gb.add(e.createDiagnosticForNodeFromMessageChain(t,c)),f_(t)}return I_(t,a,n,s)}function U_(t,n,r){return e.Debug.assert(!(65536&n.flags)),q_(t,n,r)}function q_(e,t,n){if(65536&t.flags){for(var r=void 0,i=0,a=t.types;i0)return I_(e,s,n)}function V_(t,n){switch(t.kind){case 181:return R_(t,n);case 182:return B_(t,n);case 183:return j_(t,n);case 147:return z_(t,n);case 251:case 250:return q_(t,dp(t.tagName),n)}e.Debug.fail("Branch in 'resolveSignature' should be unreachable.");}function $_(e,t){var n=T(e),r=n.resolvedSignature;if(r&&r!==Uv&&!t)return r;n.resolvedSignature=Uv;var i=V_(e,t);return n.resolvedSignature=Gv===Hv?i:r,i}function W_(t){if(e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?Ce(t):e.isVariableDeclaration(t)&&e.isFunctionExpression(t.initializer)?Ce(t.initializer):void 0;return n&&void 0!==n.members}return!1}function G_(t){var n=k(t);return n.inferredClassType||(n.inferredClassType=Re(t,t.members||gh,e.emptyArray,e.emptyArray,void 0,void 0)),n.inferredClassType}function H_(e){return e.symbol&&16&C(e)&&k(e.symbol).inferredClassType===e}function X_(t){yy(t,t.typeArguments)||vy(t,t.arguments);var n=$_(t);if(97===t.expression.kind)return Qh;if(182===t.kind){var r=n.declaration;if(r&&152!==r.kind&&156!==r.kind&&161!==r.kind&&!e.isJSDocConstructSignature(r)){var i=71===t.expression.kind?Gs(t.expression):dp(t.expression).symbol;return i&&e.isDeclarationOfFunctionOrClassExpression(i)&&(i=Ce(i.valueDeclaration.initializer)),i&&16&i.flags&&(i.members||e.getJSDocClassTag(i.valueDeclaration))?G_(i):(kh&&p(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Kh)}}return e.isInJavaScriptFile(t)&&Z_(t)?Kr(t.arguments[0]):Jr(n)}function Y_(t){if(vy(t,t.arguments)||ah(t),0===t.arguments.length)return pd(t,Kh);for(var n=t.arguments[0],r=np(n),i=1;i0?od(e,0):Zh}function cd(t,n,r){for(var i=t.parameters.length-(t.hasRestParameter?1:0),a=0;a=0)if(n.parameters[r.parameterIndex].dotDotDotToken)p(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else{var a=e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Oo(r.type,mg(n.parameters[r.parameterIndex]),t.type,void 0,a);}else if(i){for(var o=!1,s=0,c=n.parameters;s0&&n.declarations[0]!==t)return}var r=Wr(Ce(t));if(r)for(var i=!1,a=!1,o=0,s=r.declarations;o=0)return void(n&&p(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));mb.push(t.id);var l=Hp(u,n,r);if(mb.pop(),!l)return;return i.awaitedTypeOfType=l}var _=mt(t,"then");if(!(_&&xr(_,0).length>0))return i.awaitedTypeOfType=t;n&&(e.Debug.assert(!!r),p(n,r));}function Xp(t){var n=e.getEffectiveReturnTypeNode(t),r=Ua(n);if(hh>=2){if(r===Jh)return Jh;var i=Ni(!0);if(i!==av&&!Vt(r,i))return p(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Jh}else{if(Qp(n),r===Jh)return Jh;var a=e.getEntityNameFromTypeNode(n);if(void 0===a)return p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Qe(r)),Jh;var o=ue(a,107455,!0),s=o?qt(o):Jh;if(s===Jh)return 71===a.kind&&"Promise"===a.escapedText&&$t(r)===Ni(!1)?p(n,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),Jh;var c=wi(!0);if(c===nv)return p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),Jh;if(!Oo(s,c,n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return Jh;var u=a&&Fm(a),l=E(t.locals,u.escapedText,107455);if(l)return p(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.unescapeLeadingUnderscores(u.escapedText),e.entityNameToString(a)),Jh}return Gp(r,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function Yp(t){var n=Jr($_(t));if(!(1&n.flags)){var r,i,a=J_(t);switch(t.parent.kind){case 229:r=oa([qt(Ce(t.parent)),Qh]);break;case 146:r=Qh,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 149:r=Qh,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 151:case 153:case 154:r=oa([ji(mg(t.parent)),Qh]);}Oo(n,r,t,a,i);}}function Qp(t){Zp(t&&e.getEntityNameFromTypeNode(t));}function Zp(e){var t=e&&Fm(e),n=t&&w(t,t.escapedText,2097152|(71===e.kind?793064:1920),void 0,void 0);n&&2097152&n.flags&&Ne(n)&&!Fg(ie(n))&&oe(n);}function ef(t){var n=tf(t);n&&e.isEntityName(n)&&Zp(n);}function tf(t){if(t)switch(t.kind){case 167:case 166:for(var n=void 0,r=0,i=t.types;r=e.ModuleKind.ES2015)&&(xf(t,n,"require")||xf(t,n,"exports"))&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=pt(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&p(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n));}}function Nf(t,n){if(!(hh>=4)&&xf(t,n,"Promise")&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=pt(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&&p(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(n),e.declarationNameToString(n));}}function Af(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(226!==t.kind||t.initializer)){var n=Ce(t);if(1&n.flags){if(!e.isIdentifier(t.name))throw e.Debug.fail();var r=w(t,t.name.escapedText,3,void 0,void 0);if(r&&r!==n&&2&r.flags&&3&Vl(r)){var i=e.getAncestor(r.valueDeclaration,227),a=208===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!(a&&(207===a.kind&&e.isFunctionLike(a.parent)||234===a.kind||233===a.kind||265===a.kind))){var o=Xe(r);p(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o);}}}}}function wf(t){function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(179===i.kind)return n(i.expression);if(71!==i.kind)return e.forEachChild(i,n);var a=w(i,i.escapedText,2204607,void 0,void 0);if(a&&a!==Mh&&a.valueDeclaration)if(a.valueDeclaration!==t){if(e.getEnclosingBlockScopeContainer(a.valueDeclaration)===r){if(146===a.valueDeclaration.kind||176===a.valueDeclaration.kind){if(a.valueDeclaration.pos1)return $y(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function Bf(e){th(e),dp(e.expression);}function Kf(t){th(t),dp(t.expression),Vm(t.thenStatement),209===t.thenStatement.kind&&p(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Vm(t.elseStatement);}function jf(e){th(e),Vm(e.statement),dp(e.expression);}function Jf(e){th(e),dp(e.expression),Vm(e.statement);}function zf(t){th(t)||t.initializer&&227===t.initializer.kind&&Jy(t.initializer),t.initializer&&(227===t.initializer.kind?e.forEach(t.initializer.declarations,If):dp(t.initializer)),t.condition&&dp(t.condition),t.incrementor&&dp(t.incrementor),Vm(t.statement),t.locals&&uf(t);}function Uf(t){if(Ay(t),216===t.kind&&(t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&hh<5&&Zg(t,16384):yh.downlevelIteration&&hh<2&&Zg(t,256)),227===t.initializer.kind)Vf(t);else{var n=t.initializer,r=$f(t.expression,t.awaitModifier);if(177===n.kind||178===n.kind)Ud(n,r||Jh);else{var i=dp(n);Dd(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&Oo(r,i,n,void 0);}}Vm(t.statement),t.locals&&uf(t);}function qf(t){Ay(t);var n=Gl(t.expression);if(227===t.initializer.kind){var r=t.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&p(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Vf(t);}else{var i=t.initializer,a=dp(i);177===i.kind||178===i.kind?p(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Eo(ya(n),a)?Dd(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):p(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any);}Id(n,17317888)||p(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter),Vm(t.statement),t.locals&&uf(t);}function Vf(e){var t=e.initializer;t.declarations.length>=1&&If(t.declarations[0]);}function $f(e,t){return Wf(Gl(e),e,!0,void 0!==t)}function Wf(e,t,n,r){return gt(e)?e:Gf(e,t,n,r,!0)||Kh}function Gf(t,n,r,i,a){var o=hh>=2,s=!o&&yh.downlevelIteration;if(o||s||i){var c=Hf(t,o?n:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(r){if(65536&u.flags){var d=t.types,f=e.filter(d,function(e){return!(262178&e.flags)});f!==d&&(u=oa(f,!0));}else 262178&u.flags&&(u=Zh);if((_=u!==t)&&(hh<1&&n&&(p(n,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),8192&u.flags))return $h}if(!ss(u))return n&&!l&&p(n,!r||_?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type:s?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,Qe(u)),_?$h:void 0;var m=Cr(u,1);return _&&m?262178&m.flags?$h:oa([m,$h],!0):m}function Hf(t,n,r,i,a){function o(t){var o=t;if(r){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(Vt(t,Oi(!1))||Vt(t,Fi(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(Vt(t,Ii(!1))||Vt(t,Ri(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=r&&mt(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||i&&mt(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!gt(c)){var u=c&&xr(c,0);if(e.some(u)){var l=Xf(oa(e.map(u,Jr),!0),n,!!s);return a&&n&&l&&Oo(t,s?Ji(l):Ui(l),n),s?o.iteratedTypeOfAsyncIterable=l:o.iteratedTypeOfIterable=l}n&&(p(n,r?e.Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator),n=void 0);}}if(!gt(t))return Bc(t,o)}function Xf(t,n,r){if(!gt(t)){var i=t;if(r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(Vt(t,(r?Pi:Li)(!1)))return r?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=mt(t,"next");if(!gt(a)){var o=a?xr(a,0):e.emptyArray;if(0!==o.length){var s=oa(e.map(o,Jr),!0);if(!(gt(s)||r&&(s=$p(s,n,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property),gt(s)))){var c=s&&mt(s,"value");if(c)return r?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;n&&p(n,r?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property);}}else n&&p(n,r?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method);}}}function Yf(e,t){if(!gt(e))return Hf(e,void 0,t,!t,!1)||Xf(e,void 0,t)}function Qf(e){th(e)||Ly(e);}function Zf(t){return 153===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,154))}function em(t,n){var r=2==(3&e.getFunctionFlags(t))?Wp(n):n;return r&&Fd(r,1025)}function tm(t){th(t)||e.getContainingFunction(t)||$y(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);var n=e.getContainingFunction(t);if(n){var r=Jr(Lr(n));if(Sh||t.expression||8192&r.flags){var i=t.expression?np(t.expression):zh,a=e.getFunctionFlags(n);if(1&a)return;if(154===n.kind)t.expression&&p(t,e.Diagnostics.Setters_cannot_return_a_value);else if(152===n.kind)t.expression&&!Oo(i,r,t)&&p(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(n)||Zf(n))if(2&a){var o=Wp(r),s=Gp(i,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);o&&Oo(s,o,t);}else Oo(i,r,t);}else 152!==n.kind&&yh.noImplicitReturns&&!em(n,r)&&p(t,e.Diagnostics.Not_all_code_paths_return_a_value);}}function nm(t){th(t)||16384&t.flags&&$y(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),dp(t.expression);var n=e.getSourceFileOfNode(t);if(!Vy(n)){var r=e.getSpanOfTokenAtPosition(n,t.pos).start;Wy(n,r,t.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any);}}function rm(t){th(t);var n,r=!1,i=dp(t.expression),a=ls(i);e.forEach(t.caseBlock.clauses,function(o){if(258===o.kind&&!r)if(void 0===n)n=o;else{var s=e.getSourceFileOfNode(t),u=e.skipTrivia(s.text,o.pos);Wy(s,u,(o.statements.length>0?o.statements[0].pos:o.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0;}if(c&&257===o.kind){var l=o,_=dp(l.expression),d=ls(_),p=i;d&&a||(_=d?_s(_):_,p=_s(i)),$d(p,_)||Po(_,p,l.expression,void 0);}e.forEach(o.statements,Vm);}),t.caseBlock.locals&&uf(t.caseBlock);}function im(t){th(t)||e.findAncestor(t.parent,function(n){if(e.isFunctionLike(n))return"quit";if(222===n.kind&&n.label.escapedText===t.label.escapedText){var r=e.getSourceFileOfNode(t);return Gy(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(r.text,t.label)),!0}}),Vm(t.statement);}function am(t){th(t)||void 0===t.expression&&rh(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&dp(t.expression);}function om(t){th(t),vf(t.tryBlock);var n=t.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)$y(n.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)$y(n.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=n.block.locals;r&&e.forEachKey(n.locals,function(t){var n=r.get(t);n&&0!=(2&n.flags)&&Gy(n.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t);});}vf(n.block);}t.finallyBlock&&vf(t.finallyBlock);}function sm(t){function n(t,n,r,i,a,o){if(a){var s=t.valueDeclaration;if(1!==o||(s?ol(e.getNameOfDeclaration(s)):ul(t.escapedName))){var c;!s||194!==s.kind&&144!==e.getNameOfDeclaration(s).kind&&t.parent!==r.symbol?i?c=i:2&C(r)&&(c=e.forEach(on$$1(r),function(e){return rr(e,t.escapedName)&&Cr(e,o)})?void 0:r.symbol.declarations[0]):c=s,c&&!Eo(n,a)&&p(c,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,Xe(t),Qe(n),Qe(a));}}}var r=Gr(t.symbol,1),i=Gr(t.symbol,0),a=Cr(t,0),o=Cr(t,1);if((a||o)&&(e.forEach(nr(t),function(e){var s=qt(e);n(e,s,t,i,a,0),n(e,s,t,r,o,1);}),1&C(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=0,c=t.symbol.valueDeclaration.members;sr)return!1;for(var u=0;u>s;case 47:return o>>>s;case 45:return o<1&&e.forEach(r.declarations,function(t){e.isConstEnumDeclaration(t)!==n&&p(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const);});var i=!1;e.forEach(r.declarations,function(t){if(232!==t.kind)return!1;var n=t;if(!n.members.length)return!1;var r=n.members[0];r.initializer||(i?p(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0);});}}}function Am(t){for(var n=0,r=t.declarations;n1&&!i&&r(t,yh.preserveConstEnums||yh.isolatedModules)){var s=Am(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?p(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos1)for(var s=0,c=i;s0?e.concatenate(o,a):a}return e.forEach(i.getSourceFiles(),Gm),gb.getDiagnostics()}function Qm(){return Zm(),gb.getGlobalDiagnostics()}function Zm(){if(!c)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function eg(e){if(e)for(;e.parent;){if(220===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent;}return!1}function tg(t,n){function r(t,n){if(e.getCombinedLocalAndExportSymbolFlags(t)&n){var r=t.escapedName;a.has(r)||a.set(r,t);}}function i(e,t){t&&e.forEach(function(e){r(e,t);});}if(eg(t))return[];var a=e.createSymbolTable(),o=!1;return function(){for(;t;){switch(t.locals&&!D(t)&&i(t.locals,n),t.kind){case 233:i(Ce(t).exports,2623475&n);break;case 232:i(Ce(t).exports,8&n);break;case 199:t.name&&r(t.symbol,n);case 229:case 230:o||i(Ce(t).members,793064&n);break;case 186:t.name&&r(t.symbol,n);}e.introducesArgumentsExoticObject(t)&&r(Ah,n),o=e.hasModifier(t,32),t=t.parent;}i(Wv,n);}(),Nr(a)}function ng(e){return 71===e.kind&&rg(e.parent)&&e.parent.name===e}function rg(e){switch(e.kind){case 145:case 229:case 230:case 231:case 232:return!0}}function ig(e){for(var t=e;t.parent&&143===t.parent.kind;)t=t.parent;return t.parent&&159===t.parent.kind}function ag(e){for(var t=e;t.parent&&179===t.parent.kind;)t=t.parent;return t.parent&&201===t.parent.kind}function og(t,n){for(var r;;){if(!(t=e.getContainingClass(t)))break;if(r=n(t))break}return r}function sg(e,t){return!!og(e,function(e){return e===t})}function cg(e){for(;143===e.parent.kind;)e=e.parent;return 237===e.parent.kind?e.parent.moduleReference===e&&e.parent:243===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function ug(e){return void 0!==cg(e)}function lg(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return Ce(t.parent);case 4:case 2:case 5:return Ce(t.parent.parent)}}function _g(t){if(e.isDeclarationName(t))return Ce(t.parent);if(e.isInJavaScriptFile(t)&&179===t.parent.kind&&t.parent===t.parent.parent.left){var n=lg(t);if(n)return n}if(243===t.parent.kind&&e.isEntityNameExpression(t))return ue(t,2998271);if(179!==t.kind&&ug(t)){var r=e.getAncestor(t,237);return e.Debug.assert(void 0!==r),se(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),ag(t)){var i=0;201===t.parent.kind?(i=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(i|=107455)):i=1920;var a=ue(t,i|=2097152);if(a)return a}if(279===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(145===t.parent.kind&&282===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var o=e.getTypeParameterFromJsDoc(t.parent);return o&&o.symbol}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(71===t.kind)return e.isJSXTagName(t)&&yl(t)?xl(t.parent):ue(t,107455,!1,!0);if(179===t.kind||143===t.kind){var s=T(t);return s.resolvedSymbol?s.resolvedSymbol:(179===t.kind?Xl(t):Yl(t),s.resolvedSymbol)}}else{if(ig(t))return ue(t,i=159===t.parent.kind?793064:1920,!1,!0);if(253===t.parent.kind)return Il(t.parent)}return 158===t.parent.kind?ue(t,1):void 0}function dg(t){if(265===t.kind)return e.isExternalModule(t)?Te(t.symbol):void 0;if(!eg(t)){if(a(t))return Ce(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return Ce(t.parent.parent);if(71===t.kind){if(ug(t))return _g(t);if(176===t.parent.kind&&174===t.parent.parent.kind&&t===t.parent.propertyName){var n=mg(t.parent.parent),r=n&&vr(n,t.escapedText);if(r)return r}}switch(t.kind){case 71:case 179:case 143:return _g(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var o=Lr(i);if(o.thisParameter)return o.thisParameter}case 97:return(e.isPartOfExpression(t)?lp(t):Ua(t)).symbol;case 169:return Ua(t).symbol;case 123:var s=t.parent;if(s&&152===s.kind)return s.parent.symbol;return;case 9:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(238===t.parent.kind||244===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent))return le(t,t);case 8:if(180===t.parent.kind&&t.parent.argumentExpression===t){var c=lp(t.parent.expression);if(c===Jh)return;var u=mr(c);if(u===Jh)return;return vr(u,t.text)}}}}function pg(e){if(e&&262===e.kind)return ue(e.name,2204607)}function fg(e){return e.parent.parent.moduleSpecifier?X(e.parent.parent,e):ue(e.propertyName||e.name,2998271)}function mg(t){if(eg(t))return Jh;if(e.isPartOfTypeNode(t)){var n=Ua(t);return n&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(n=wn(n,(r=mg(e.getContainingClass(t))).thisType)),n}if(e.isPartOfExpression(t))return hg(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var r=xn(Ce(e.getContainingClass(t))),i=on$$1(r)[0];return i&&wn(i,r.thisType)}if(rg(t))return xn(o=Ce(t));if(ng(t))return(o=dg(t))&&xn(o);if(e.isDeclaration(t))return qt(o=Ce(t));if(a(t))return(o=dg(t))&&qt(o);if(e.isBindingPattern(t))return Ct(t.parent,!0);if(ug(t)){var o=dg(t),s=o&&xn(o);return s!==Jh?s:qt(o)}return Jh}function gg(t){if(e.Debug.assert(178===t.kind||177===t.kind),216===t.parent.kind)return Ud(t,(n=$f(t.parent.expression,t.parent.awaitModifier))||Jh);if(194===t.parent.kind){var n=lp(t.parent.right);return Ud(t,n||Jh)}if(261===t.parent.kind)return jd(gg(t.parent.parent)||Jh,t.parent);e.Debug.assert(177===t.parent.kind);var r=gg(t.parent),i=Wf(r||Jh,t.parent,!1,!1)||Jh;return zd(t.parent,r,e.indexOf(t.parent.elements,t),i||Jh)}function yg(e){var t=gg(e.parent.parent);return t&&vr(t,e.escapedText)}function hg(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Ma(lp(t))}function vg(t){var n=Ce(t.parent);return e.hasModifier(t,32)?qt(n):xn(n)}function bg(t){t=mr(t);var n=e.createSymbolTable(ar(t));return(xr(t,0).length||xr(t,1).length)&&e.forEach(ar(uv),function(e){n.has(e.escapedName)||n.set(e.escapedName,e);}),Ie(n)}function xg(t){if(6&e.getCheckFlags(t)){var n=[],r=t.escapedName;return e.forEach(k(t).containingType.types,function(e){var t=vr(e,r);t&&n.push(t);}),n}if(33554432&t.flags){var i=t;if(i.leftSpread)return xg(i.leftSpread).concat(xg(i.rightSpread));if(i.syntheticOrigin)return xg(i.syntheticOrigin);for(var a=void 0,o=t;o=k(o).target;)a=o;if(a)return[a]}return[t]}function Sg(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier)))&&(!(179===t.parent.kind&&t.parent.name===t)&&Gg(t)===Ah)}function kg(t){function n(e){return(e=re(e))&&!!(107455&e.flags)}var r=le(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var i=me(r),a=k(r=pe(r));return void 0===a.exportsSomeValue&&(a.exportsSomeValue=i?!!(107455&r.flags):e.forEachEntry(xe(r),n)),a.exportsSomeValue}function Tg(t){var n=t.parent;return n&&e.isModuleOrEnumDeclaration(n)&&t===n.name}function Cg(t,n){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=Gg(t,Tg(t));if(r){if(1048576&r.flags){var i=Te(r.exportSymbol);if(!n&&944&i.flags)return;r=i;}var a=De(r);if(a){if(512&a.flags&&265===a.valueDeclaration.kind){var o=a.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&Ce(t)===a})}}}}function Dg(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=Gg(t);if(ne(n,107455))return U(n)}}function Eg(t){if(418&t.flags){var n=k(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)){var i=T(t.valueDeclaration);if(w(r.parent,t.escapedName,107455,void 0,void 0))n.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(r,!1),s=207===r.kind&&e.isIterationStatement(r.parent,!1);n.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||a&&(o||s));}else n.isDeclarationWithCollidingName=!1;}}return n.isDeclarationWithCollidingName}return!1}function Ng(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=Gg(t);if(n&&Eg(n))return n.valueDeclaration}}function Ag(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var n=Ce(t);if(n)return Eg(n)}return!1}function wg(t){switch(t.kind){case 237:case 239:case 240:case 242:case 246:return Pg(Ce(t)||Mh);case 244:var n=t.exportClause;return n&&e.forEach(n.elements,wg);case 243:return!t.expression||71!==t.expression.kind||Pg(Ce(t)||Mh)}return!1}function Og(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||265!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&(Pg(Ce(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function Pg(e){var t=ie(e);return t===Mh||107455&t.flags&&(yh.preserveConstEnums||!Fg(t))}function Fg(e){return Rd(e)||e.constEnumOnlyModule}function Ig(t,n){if(e.isAliasSymbolDeclaration(t)){var r=Ce(t);if(r&&k(r).referenced)return!0}return!!n&&e.forEachChild(t,function(e){return Ig(e,n)})}function Lg(t){if(e.nodeIsPresent(t.body)){var n=Br(Ce(t));return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function Rg(t){return Sh&&!Or(t)&&t.initializer&&!e.hasModifier(t,92)}function Mg(t){return Sh&&Or(t)&&!t.initializer&&e.hasModifier(t,92)}function Bg(e){return T(e).flags}function Kg(e){return Tm(e.parent),T(e).enumMemberValue}function jg(e){switch(e.kind){case 264:case 179:case 180:return!0}return!1}function Jg(t){if(264===t.kind)return Kg(t);var n=T(t).resolvedSymbol;return n&&8&n.flags&&e.isConstEnumDeclaration(n.valueDeclaration.parent)?Kg(n.valueDeclaration):void 0}function zg(e){return 32768&e.flags&&xr(e,0).length>0}function Ug(t,n){var r=ue(t,107455,!0,!1,n),i=ue(t,793064,!0,!1,n);if(r&&r===i){var a=Ai(!1);if(a&&r===a)return e.TypeReferenceSerializationKind.Promise;var o=qt(r);if(o&&en(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.ObjectType;var s=xn(i);return s===Jh?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:Id(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Id(s,136)?e.TypeReferenceSerializationKind.BooleanType:Id(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:Id(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:ps(s)?e.TypeReferenceSerializationKind.ArrayLikeType:Id(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:zg(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:os$$1(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function qg(e,t,n,r){var i=Ce(e),a=!i||133120&i.flags?Jh:ds(qt(i));8192&n&&(a=vs(a,2048)),ot().buildTypeDisplay(a,r,t,n);}function Vg(e,t,n,r){var i=Lr(e);ot().buildTypeDisplay(Jr(i),r,t,n);}function $g(e,t,n,r){var i=Ns(hg(e));ot().buildTypeDisplay(i,r,t,n);}function Wg(t){return Wv.has(e.escapeLeadingUnderscores(t))}function Gg(t,n){var r=T(t).resolvedSymbol;if(r)return r;var i=t;if(n){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=pt(a));}return w(i,t.escapedText,3253183,void 0,void 0)}function Hg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=Gg(t);if(n)return Ee(n).valueDeclaration}}function Xg(t){if(e.isConst(t)){var n=qt(Ce(t));return!!(96&n.flags&&1048576&n.flags)}return!1}function Yg(e,t){var n=qt(Ce(e));t.writeStringLiteral(it(n));}function Qg(t){var n=e.getExternalModuleName(t),r=_e(n,n,void 0);if(r)return e.getDeclarationOfKind(r,265)}function Zg(t,n){if((sh&n)!==n&&yh.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,yh)&&!e.isInAmbientContext(t)){var i=ty(r,t);if(i!==Mh)for(var a=n&~sh,o=1;o<=32768;o<<=1)if(a&o){var s=ey(o);E(i.exports,e.escapeLeadingUnderscores(s),107455)||p(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s);}sh|=n;}}}function ey(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";default:e.Debug.fail("Unrecognized helper");}}function ty(t,n){return ch||(ch=de(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||Mh),ch}function ny(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t))return 151!==t.kind||e.nodeIsPresent(t.body)?$y(t,e.Diagnostics.Decorators_are_not_valid_here):$y(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(153===t.kind||154===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return $y(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function ry(t){var n=iy(t);if(void 0!==n)return n;for(var r,i,a,o,s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function sy(t,n){switch(t.kind){case 151:case 228:case 186:case 187:return!1}return Gy(n,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function cy(t){if(t&&t.hasTrailingComma){var n=t.end-",".length,r=t.end;return Wy(e.getSourceFileOfNode(t[0]),n,r-n,e.Diagnostics.Trailing_comma_not_allowed)}}function uy(t,n){if(cy(t))return!0;if(t&&0===t.length){var r=t.pos-"<".length;return Wy(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function ly(t){for(var n=!1,r=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function yy(e,t){return cy(t)||gy(e,t)}function hy(t,n){if(n)for(var r=e.getSourceFileOfNode(t),i=0,a=n;i1)return $y(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0;}else{if(e.Debug.assert(108===o.token),r)return $y(o,e.Diagnostics.implements_clause_already_seen);r=!0;}by(o);}}function ky(t){var n=!1;if(t.heritageClauses)for(var r=0,i=t.heritageClauses;r1){a=215===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return $y(n.declarations[1],a)}var i=r[0];if(i.initializer){var a=215===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Gy(i.name,a)}if(i.type)return Gy(i,a=215===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function wy(t){var n=t.kind;if(hh<1)return Gy(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return Gy(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===t.body&&!e.hasModifier(t,128))return Wy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&e.hasModifier(t,128))return Gy(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return Gy(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!Oy(t))return Gy(t.name,153===n?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(154===n){if(t.type)return Gy(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=t.parameters[0];if(r.dotDotDotToken)return Gy(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return Gy(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return Gy(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function Oy(e){return Py(e)||e.parameters.length===(153===e.kind?0:1)}function Py(t){if(t.parameters.length===(153===t.kind?1:2))return e.getThisParameter(t)}function Fy(t,n){if(e.isDynamicName(t))return Gy(t,n)}function Iy(t){if(Mf(t)||_y(t)||Cy(t))return!0;if(178===t.parent.kind){if(Dy(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return Wy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol)}else{if(230===t.parent.kind)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol);if(163===t.parent.kind)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function Ly(t){for(var n=t;n;){if(e.isFunctionLike(n))return Gy(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 222:if(t.label&&n.label.escapedText===t.label.escapedText)return!(217!==t.kind||e.isIterationStatement(n.statement,!0))&&Gy(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 221:if(218===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!t.label)return!1}n=n.parent;}if(t.label)return Gy(t,r=218===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);var r=218===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Gy(t,r)}function Ry(t){if(t.dotDotDotToken){var n=t.parent.elements;if(t!==e.lastOrUndefined(n))return Gy(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(175===t.name.kind||174===t.name.kind)return Gy(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return Wy(e.getSourceFileOfNode(t),t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function My(e){return 9===e.kind||8===e.kind||192===e.kind&&38===e.operator&&8===e.operand.kind}function By(t){if(215!==t.parent.parent.kind&&216!==t.parent.parent.kind)if(e.isInAmbientContext(t)){if(t.initializer){if(!e.isConst(t)||t.type){n="=".length;return Wy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!My(t.initializer))return Gy(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!My(t.initializer))){var n="=".length;return Wy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return Gy(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return Gy(t,e.Diagnostics.const_declarations_must_be_initialized)}return yh.module===e.ModuleKind.ES2015||yh.module===e.ModuleKind.System||yh.noEmit||e.isInAmbientContext(t.parent.parent)||!e.hasModifier(t.parent.parent,1)||Ky(t.name),(e.isLet(t)||e.isConst(t))&&jy(t.name)}function Ky(t){if(71===t.kind){if("__esModule"===e.unescapeLeadingUnderscores(t.escapedText))return Gy(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=0,r=t.elements;n0}function $y(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return gb.add(e.createFileDiagnostic(o,s.start,s.length,n,r,i,a)),!0}}function Wy(t,n,r,i,a,o,s){if(!Vy(t))return gb.add(e.createFileDiagnostic(t,n,r,i,a,o,s)),!0}function Gy(t,n,r,i,a){if(!Vy(e.getSourceFileOfNode(t)))return gb.add(e.createDiagnosticForNode(t,n,r,i,a)),!0}function Hy(t){if(t.typeParameters)return Wy(e.getSourceFileOfNode(t),t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function Xy(t){if(t.type)return Gy(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Yy(t){if(e.isClassLike(t.parent)){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol))return!0}else if(230===t.parent.kind){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return Gy(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(163===t.parent.kind){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return Gy(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return $y(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function Qy(t){return 230!==t.kind&&231!==t.kind&&238!==t.kind&&237!==t.kind&&244!==t.kind&&243!==t.kind&&236!==t.kind&&!e.hasModifier(t,515)&&$y(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function Zy(t){for(var n=0,r=t.statements;n=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,173)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,264)&&(n=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var r=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,i=(r?"-":"")+"0o"+t.text;return Gy(r?t.parent:t,n,i)}}}function rh(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return gb.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,n,r,i,a)),!0}}function ih(){var t=[];return Wv.forEach(function(n,r){s.test(e.unescapeLeadingUnderscores(r))&&t.push(n);}),t}function ah(t){if(vh===e.ModuleKind.ES2015)return Gy(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return Gy(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=t.arguments;return 1!==n.length?Gy(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(n[0])?Gy(n[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):void 0}var oh,sh,ch,uh=e.objectAllocator.getSymbolConstructor(),lh=e.objectAllocator.getTypeConstructor(),_h=e.objectAllocator.getSignatureConstructor(),dh=0,ph=0,fh=0,mh=0,gh=e.createSymbolTable(),yh=i.getCompilerOptions(),hh=e.getEmitScriptTarget(yh),vh=e.getEmitModuleKind(yh),bh=!!yh.noUnusedLocals||!!yh.noUnusedParameters,xh=void 0!==yh.allowSyntheticDefaultImports?yh.allowSyntheticDefaultImports:vh===e.ModuleKind.System,Sh=void 0===yh.strictNullChecks?yh.strict:yh.strictNullChecks,kh=void 0===yh.noImplicitAny?yh.strict:yh.noImplicitAny,Th=void 0===yh.noImplicitThis?yh.strict:yh.noImplicitThis,Ch=function(){function t(e){if(a){var t=179===e.kind||71===e.kind&&Hs(e)?1156031:794600,r=ue(e,t,!0);return r&&r!==Mh?n(r,t):void 0}}function n(t,n){if(a&&r(t)){for(var i,o=0,s=t.declarations;o0){var c=r(i.slice(0,ii(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyTuple?e.createTupleTypeNode([]):void(s.encounteredError=!0)}var u=t.target.outerTypeParameters,l=0,_=void 0;if(u)for(var d=u.length;l0){var k=(t.target.typeParameters||e.emptyArray).length;S=r(i.slice(l,k),s);}return S&&((71===b.kind?b:b.right).typeArguments=void 0),e.createTypeReferenceNode(b,S)}(t);if(16384&t.flags||3&b){x=c(t.symbol,s,793064,!1);return e.createTypeReferenceNode(x,void 0)}if(!g&&t.aliasSymbol&&ze(t.aliasSymbol,s.enclosingDeclaration)){var x=p(t.aliasSymbol),S=r(t.aliasTypeArguments,s);return e.createTypeReferenceNode(x,S)}if(196608&t.flags){var k=r(65536&t.flags?et(t.types):t.types,s);return k&&k.length>0?e.createUnionOrIntersectionTypeNode(65536&t.flags?166:167,k):void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyUnionOrIntersection||(s.encounteredError=!0))}if(48&b)return e.Debug.assert(!!(32768&t.flags)),function(t){var n=t.symbol;if(n){if(32&n.flags&&!Bt(n)||896&n.flags||function(){var t=!!(8192&n.flags)&&e.some(n.declarations,function(t){return e.hasModifier(t,32)}),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 265===e.parent.kind||234===e.parent.kind}));if(t||r)return e.contains(s.symbolStack,n)}())return d(n,107455);if(e.contains(s.symbolStack,n)){var r=nt(t);if(r){var i=c(r,s,793064,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}s.symbolStack||(s.symbolStack=[]),s.symbolStack.push(n);var a=_(t);return s.symbolStack.pop(),a}return _(t)}(t);if(262144&t.flags){D=n(t.type,s);return e.createTypeOperatorNode(D)}if(524288&t.flags){var T=n(t.objectType,s),D=n(t.indexType,s);return e.createIndexedAccessTypeNode(T,D)}e.Debug.fail("Should be unreachable.");}else s.encounteredError=!0;}function r(t,r){if(e.some(t)){for(var i=[],a=0;a0){var c=t[i-1],l=void 0;1&e.getCheckFlags(s)?l=Qt(c):524384&ym(c).flags&&(l=Yt(s)),a=r(l,n);}var _=u(s,n),d=e.setEmitFlags(e.createIdentifier(_,a),16777216);return i>0?e.createQualifiedName(o(t,i-1),d):d}function s(t,r,i){var a,o=Ke(t,n.enclosingDeclaration,r,!1);if(!o||je(o[0],n.enclosingDeclaration,1===o.length?r:Be(r))){var c=De(o?o[0]:t);if(c){var u=s(c,Be(r),!1);u&&(a=c,o=u.concat(o||[t]));}}return o||(!i&&(!a&&e.forEach(t.declarations,qe)||6144&t.flags)?void 0:[t])}var c;return!(262144&t.flags)&&(n.enclosingDeclaration||n.flags&e.NodeBuilderFlags.UseFullyQualifiedType)?(c=s(t,i,!0),e.Debug.assert(c&&c.length>0)):c=[t],!a||1===c.length||n.encounteredError||n.flags&e.NodeBuilderFlags.AllowQualifedNameInPlaceOfIdentifier||(n.encounteredError=!0),o(c,c.length-1)}function u(t,n){var r=e.firstOrUndefined(t.declarations);if(r){var i=e.getNameOfDeclaration(r);if(i)return e.declarationNameToString(i);if(r.parent&&226===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(n.encounteredError||n.flags&e.NodeBuilderFlags.AllowAnonymousIdentifier||(n.encounteredError=!0),r.kind){case 199:return"(Anonymous class)";case 186:case 187:return"(Anonymous function)"}}return e.unescapeLeadingUnderscores(t.escapedName)}return{typeToTypeNode:function(e,r,i){var a=t(r,i),o=n(e,a);return a.encounteredError?void 0:o},indexInfoToIndexSignatureDeclaration:function(e,n,r,a){var o=t(r,a),s=i(e,n,o);return o.encounteredError?void 0:s},signatureToSignatureDeclaration:function(e,n,r,i){var o=t(r,i),s=a(e,n,o);return o.encounteredError?void 0:s}}}(),Eh=f(4,"undefined");Eh.declarations=[];var Nh,Ah=f(4,"arguments"),wh={getNodeCount:function(){return e.sum(i.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(i.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(i.getSourceFiles(),"symbolCount")+ph},getTypeCount:function(){return dh},isUndefinedSymbol:function(e){return e===Eh},isArgumentsSymbol:function(e){return e===Ah},isUnknownSymbol:function(e){return e===Mh},getMergedSymbol:Te,getDiagnostics:Xm,getGlobalDiagnostics:Qm,getTypeOfSymbolAtLocation:function(t,n){return n=e.getParseTreeNode(n),n?ru(t,n):Jh},getSymbolsOfParameterPropertyDeclaration:function(t,n){return t=e.getParseTreeNode(t,e.isParameter),e.Debug.assert(void 0!==t,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),N(t,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:xn,getPropertiesOfType:ar,getPropertyOfType:function(t,n){return vr(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:Tr,getSignaturesOfType:xr,getIndexTypeOfType:Cr,getBaseTypes:on$$1,getBaseTypeOfLiteralType:_s,getWidenedType:Ns,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?Ua(t):Jh},getParameterType:od,getReturnTypeOfSignature:Jr,getNullableType:vs,getNonNullableType:bs,typeToTypeNode:Dh.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Dh.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Dh.signatureToSignatureDeclaration,getSymbolsInScope:function(t,n){return t=e.getParseTreeNode(t),t?tg(t,n):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?dg(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?pg(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?fg(t):void 0},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?mg(t):Jh},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?yg(t):void 0},signatureToString:function(t,n,r,i){return Ye(t,e.getParseTreeNode(n),r,i)},typeToString:function(t,n,r){return Qe(t,e.getParseTreeNode(n),r)},getSymbolDisplayBuilder:ot,symbolToString:function(t,n,r){return Xe(t,e.getParseTreeNode(n),r)},getAugmentedPropertiesOfType:bg,getRootSymbols:xg,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?Hu(t):void 0},getFullyQualifiedName:ce,getResolvedSignature:function(t,n,r){t=e.getParseTreeNode(t,e.isCallLikeExpression),Nh=r;var i=t?$_(t,n):void 0;return Nh=void 0,i},getConstantValue:function(t){return t=e.getParseTreeNode(t,jg),t?Jg(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&a_(t,e.escapeLeadingUnderscores(n))},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?Lr(t):void 0},isImplementationOfOverload:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?Lg(n):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=k(t);if(!n.immediateTarget){var r=U(t);e.Debug.assert(!!r),n.immediateTarget=te(r,!0);}return n.immediateTarget},getAliasedSymbol:ie,getEmitResolver:d,getExportsOfModule:ge,getExportsAndPropertiesOfModule:ye,getAmbientModules:ih,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?Pl(t):void 0},getJsxIntrinsicTagNames:Bl,isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&Or(t)},tryGetMemberInModuleExports:function(t,n){return he(e.escapeLeadingUnderscores(t),n)},tryGetMemberInModuleExportsAndProperties:function(t,n){return ve(e.escapeLeadingUnderscores(t),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return wr(e,!1)},getApparentType:mr,getAllPossiblePropertiesOfType:or,getSuggestionForNonexistentProperty:function(t,n){return e.unescapeLeadingUnderscores(e_(t,n))},getSuggestionForNonexistentSymbol:function(t,n,r){return e.unescapeLeadingUnderscores(t_(t,e.escapeLeadingUnderscores(n),r))},getBaseConstraintOfType:lr,resolveName:function(t,n,r){return w(n,e.escapeLeadingUnderscores(t),r,void 0,void 0)},getJsxNamespace:function(){return e.unescapeLeadingUnderscores(u())}},Oh=[],Ph=e.createMap(),Fh=e.createMap(),Ih=e.createMap(),Lh=e.createMap(),Rh=[],Mh=f(4,"unknown"),Bh=f(0,"__resolving__"),Kh=Oe(1,"any"),jh=Oe(1,"any"),Jh=Oe(1,"unknown"),zh=Oe(2048,"undefined"),Uh=Sh?zh:Oe(2099200,"undefined"),qh=Oe(4096,"null"),Vh=Sh?qh:Oe(2101248,"null"),$h=Oe(2,"string"),Wh=Oe(4,"number"),Gh=Oe(128,"true"),Hh=Oe(128,"false"),Xh=function(e){var t=oa(e);return t.flags|=8,t.intrinsicName="boolean",t}([Gh,Hh]),Yh=Oe(512,"symbol"),Qh=Oe(1024,"void"),Zh=Oe(8192,"never"),ev=Oe(8192,"never"),tv=Oe(16777216,"object"),nv=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0),rv=f(2048,"__type");rv.members=e.createSymbolTable();var iv=Re(rv,gh,e.emptyArray,e.emptyArray,void 0,void 0),av=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0);av.instantiations=e.createMap();var ov=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0);ov.flags|=8388608;var sv,cv,uv,lv,_v,dv,pv,fv,mv,gv,yv,hv,vv,bv,xv,Sv,kv,Tv,Cv,Dv,Ev,Nv,Av,wv,Ov,Pv,Fv,Iv,Lv,Rv,Mv,Bv,Kv=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0),jv=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0),Jv=In(void 0,void 0,void 0,e.emptyArray,Kh,void 0,0,!1,!1),zv=In(void 0,void 0,void 0,e.emptyArray,Jh,void 0,0,!1,!1),Uv=In(void 0,void 0,void 0,e.emptyArray,Kh,void 0,0,!1,!1),qv=In(void 0,void 0,void 0,e.emptyArray,ev,void 0,0,!1,!1),Vv=Hr($h,!0),$v=Hr(Kh,!1),Wv=e.createSymbolTable(),Gv=0,Hv=0,Xv=0,Yv=Ba(""),Qv=Ba(0),Zv=[],eb=[],tb=[],nb=0,rb=10,ib=[],ab=[],ob=[],sb=[],cb=[],ub=[],lb=[],_b=[],db=[],pb=[],fb=[],mb=[],gb=e.createDiagnosticCollection();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.Discriminatable=4194304]="Discriminatable",e[e.All=8388607]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=6166480]="ObjectStrictFacts",e[e.ObjectFacts=8378320]="ObjectFacts",e[e.FunctionStrictFacts=6164448]="FunctionStrictFacts",e[e.FunctionFacts=8376288]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts";}(Bv||(Bv={}));var yb,hb,vb,bb,xb,Sb,kb=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Tb=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),Cb=e.createMapFromTemplate({string:$h,number:Wh,boolean:Xh,symbol:Yh,undefined:zh}),Db=function(){return oa(e.arrayFrom(kb.keys(),Ba))}(),Eb=!1,Nb=!1,Ab=e.createUnderscoreEscapedMap(),wb={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",ElementChildrenAttributeNameContainer:"ElementChildrenAttribute",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},Ob=e.createMap(),Pb=e.createMap(),Fb=e.createMap(),Ib=e.createMap(),Lb=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType";}(Sb||(Sb={}));var Rb;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential";}(Rb||(Rb={}));var Mb=e.createSymbolTable();return Mb.set(Eh.escapedName,Eh),function(){for(var t=0,n=i.getSourceFiles();t0&&(a[c-s]=u);}s>0&&(a.length-=s);}}function Hi(t,n){return t===n?0:t.priority===n.priority?0:void 0===t.priority?1:void 0===n.priority?-1:e.compareValues(t.priority,n.priority)}function Xi(e,t){if(e.original=t,t){var n=t.emitNode;n&&(e.emitNode=Yi(n,e.emitNode));}return e}function Yi(t,n){var r=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers;return n||(n={}),i&&(n.leadingComments=e.addRange(i.slice(),n.leadingComments)),a&&(n.trailingComments=e.addRange(a.slice(),n.trailingComments)),r&&(n.flags=r),o&&(n.commentRange=o),s&&(n.sourceMapRange=s),c&&(n.tokenSourceMapRanges=Qi(c,n.tokenSourceMapRanges)),void 0!==u&&(n.constantValue=u),l&&(n.helpers=e.addRange(n.helpers,l)),n}function Qi(e,t){t||(t=[]);for(var n in e)t[n]=e[n];return t}e.updateNode=n,e.createNodeArray=r,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createIdentifier=u,e.updateIdentifier=l;var Zi=0;e.createTempVariable=_,e.createLoopVariable=d,e.createUniqueName=p,e.getGeneratedNameForNode=f,e.createToken=m,e.createSuper=g,e.createThis=y,e.createNull=h,e.createTrue=v,e.createFalse=b,e.createQualifiedName=x,e.updateQualifiedName=S,e.createComputedPropertyName=k,e.updateComputedPropertyName=T,e.createTypeParameterDeclaration=C,e.updateTypeParameterDeclaration=D,e.createParameter=E,e.updateParameter=N,e.createDecorator=A,e.updateDecorator=w,e.createPropertySignature=O,e.updatePropertySignature=P,e.createProperty=F,e.updateProperty=I,e.createMethodSignature=L,e.updateMethodSignature=R,e.createMethod=M,e.updateMethod=B,e.createConstructor=K,e.updateConstructor=j,e.createGetAccessor=J,e.updateGetAccessor=z,e.createSetAccessor=U,e.updateSetAccessor=q,e.createCallSignature=V,e.updateCallSignature=$,e.createConstructSignature=W,e.updateConstructSignature=G,e.createIndexSignature=H,e.updateIndexSignature=X,e.createSignatureDeclaration=Y,e.createKeywordTypeNode=Z,e.createTypePredicateNode=ee,e.updateTypePredicateNode=te,e.createTypeReferenceNode=ne,e.updateTypeReferenceNode=re,e.createFunctionTypeNode=ie,e.updateFunctionTypeNode=ae,e.createConstructorTypeNode=oe,e.updateConstructorTypeNode=se,e.createTypeQueryNode=ce,e.updateTypeQueryNode=ue,e.createTypeLiteralNode=le,e.updateTypeLiteralNode=_e,e.createArrayTypeNode=de,e.updateArrayTypeNode=pe,e.createTupleTypeNode=fe,e.updateTypleTypeNode=me,e.createUnionTypeNode=ge,e.updateUnionTypeNode=ye,e.createIntersectionTypeNode=he,e.updateIntersectionTypeNode=ve,e.createUnionOrIntersectionTypeNode=be,e.createParenthesizedType=Se,e.updateParenthesizedType=ke,e.createThisTypeNode=Te,e.createTypeOperatorNode=Ce,e.updateTypeOperatorNode=De,e.createIndexedAccessTypeNode=Ee,e.updateIndexedAccessTypeNode=Ne,e.createMappedTypeNode=Ae,e.updateMappedTypeNode=we,e.createLiteralTypeNode=Oe,e.updateLiteralTypeNode=Pe,e.createObjectBindingPattern=Fe,e.updateObjectBindingPattern=Ie,e.createArrayBindingPattern=Le,e.updateArrayBindingPattern=Re,e.createBindingElement=Me,e.updateBindingElement=Be,e.createArrayLiteral=Ke,e.updateArrayLiteral=je,e.createObjectLiteral=Je,e.updateObjectLiteral=ze,e.createPropertyAccess=Ue,e.updatePropertyAccess=qe,e.createElementAccess=Ve,e.updateElementAccess=$e,e.createCall=We,e.updateCall=Ge,e.createNew=He,e.updateNew=Xe,e.createTaggedTemplate=Ye,e.updateTaggedTemplate=Qe,e.createTypeAssertion=Ze,e.updateTypeAssertion=et,e.createParen=tt,e.updateParen=nt,e.createFunctionExpression=rt,e.updateFunctionExpression=it,e.createArrowFunction=at,e.updateArrowFunction=ot,e.createDelete=st,e.updateDelete=ct,e.createTypeOf=ut,e.updateTypeOf=lt,e.createVoid=_t,e.updateVoid=dt,e.createAwait=pt,e.updateAwait=ft,e.createPrefix=mt,e.updatePrefix=gt,e.createPostfix=yt,e.updatePostfix=ht,e.createBinary=vt,e.updateBinary=bt,e.createConditional=xt,e.updateConditional=St,e.createTemplateExpression=kt,e.updateTemplateExpression=Tt,e.createYield=Ct,e.updateYield=Dt,e.createSpread=Et,e.updateSpread=Nt,e.createClassExpression=At,e.updateClassExpression=wt,e.createOmittedExpression=Ot,e.createExpressionWithTypeArguments=Pt,e.updateExpressionWithTypeArguments=Ft,e.createAsExpression=It,e.updateAsExpression=Lt,e.createNonNullExpression=Rt,e.updateNonNullExpression=Mt,e.createMetaProperty=Bt,e.updateMetaProperty=Kt,e.createTemplateSpan=jt,e.updateTemplateSpan=Jt,e.createSemicolonClassElement=zt,e.createBlock=Ut,e.updateBlock=qt,e.createVariableStatement=Vt,e.updateVariableStatement=$t,e.createEmptyStatement=Wt,e.createStatement=Gt,e.updateStatement=Ht,e.createIf=Xt,e.updateIf=Yt,e.createDo=Qt,e.updateDo=Zt,e.createWhile=en,e.updateWhile=tn,e.createFor=nn,e.updateFor=rn,e.createForIn=an,e.updateForIn=on$$1,e.createForOf=sn,e.updateForOf=cn,e.createContinue=un,e.updateContinue=ln,e.createBreak=_n,e.updateBreak=dn,e.createReturn=pn,e.updateReturn=fn,e.createWith=mn,e.updateWith=gn,e.createSwitch=yn,e.updateSwitch=hn,e.createLabel=vn,e.updateLabel=bn,e.createThrow=xn,e.updateThrow=Sn,e.createTry=kn,e.updateTry=Tn,e.createDebuggerStatement=Cn,e.createVariableDeclaration=Dn,e.updateVariableDeclaration=En,e.createVariableDeclarationList=Nn,e.updateVariableDeclarationList=An,e.createFunctionDeclaration=wn,e.updateFunctionDeclaration=On,e.createClassDeclaration=Pn,e.updateClassDeclaration=Fn,e.createInterfaceDeclaration=In,e.updateInterfaceDeclaration=Ln,e.createTypeAliasDeclaration=Rn,e.updateTypeAliasDeclaration=Mn,e.createEnumDeclaration=Bn,e.updateEnumDeclaration=Kn,e.createModuleDeclaration=jn,e.updateModuleDeclaration=Jn,e.createModuleBlock=zn,e.updateModuleBlock=Un,e.createCaseBlock=qn,e.updateCaseBlock=Vn,e.createNamespaceExportDeclaration=$n,e.updateNamespaceExportDeclaration=Wn,e.createImportEqualsDeclaration=Gn,e.updateImportEqualsDeclaration=Hn,e.createImportDeclaration=Xn,e.updateImportDeclaration=Yn,e.createImportClause=Qn,e.updateImportClause=Zn,e.createNamespaceImport=er,e.updateNamespaceImport=tr,e.createNamedImports=nr,e.updateNamedImports=rr,e.createImportSpecifier=ir,e.updateImportSpecifier=ar,e.createExportAssignment=or,e.updateExportAssignment=sr,e.createExportDeclaration=cr,e.updateExportDeclaration=ur,e.createNamedExports=lr,e.updateNamedExports=_r,e.createExportSpecifier=dr,e.updateExportSpecifier=pr,e.createExternalModuleReference=fr,e.updateExternalModuleReference=mr,e.createJsxElement=gr,e.updateJsxElement=yr,e.createJsxSelfClosingElement=hr,e.updateJsxSelfClosingElement=vr,e.createJsxOpeningElement=br,e.updateJsxOpeningElement=xr,e.createJsxClosingElement=Sr,e.updateJsxClosingElement=kr,e.createJsxAttribute=Tr,e.updateJsxAttribute=Cr,e.createJsxAttributes=Dr,e.updateJsxAttributes=Er,e.createJsxSpreadAttribute=Nr,e.updateJsxSpreadAttribute=Ar,e.createJsxExpression=wr,e.updateJsxExpression=Or,e.createCaseClause=Pr,e.updateCaseClause=Fr,e.createDefaultClause=Ir,e.updateDefaultClause=Lr,e.createHeritageClause=Rr,e.updateHeritageClause=Mr,e.createCatchClause=Br,e.updateCatchClause=Kr,e.createPropertyAssignment=jr,e.updatePropertyAssignment=Jr,e.createShorthandPropertyAssignment=zr,e.updateShorthandPropertyAssignment=Ur,e.createSpreadAssignment=qr,e.updateSpreadAssignment=Vr,e.createEnumMember=$r,e.updateEnumMember=Wr,e.updateSourceFileNode=Gr,e.getMutableClone=Hr,e.createNotEmittedStatement=Xr,e.createEndOfDeclarationMarker=Yr,e.createMergeDeclarationMarker=Qr,e.createPartiallyEmittedExpression=Zr,e.updatePartiallyEmittedExpression=ei,e.createCommaList=ni,e.updateCommaList=ri,e.createBundle=ii,e.updateBundle=ai,e.createImmediatelyInvokedFunctionExpression=oi,e.createComma=si,e.createLessThan=ci,e.createAssignment=ui,e.createStrictEquality=li,e.createStrictInequality=_i,e.createAdd=di,e.createSubtract=pi,e.createPostfixIncrement=fi,e.createLogicalAnd=mi,e.createLogicalOr=gi,e.createLogicalNot=yi,e.createVoidZero=hi,e.createExportDefault=vi,e.createExternalModuleExport=bi,e.disposeEmitNodes=Ci,e.getOrCreateEmitNode=Di,e.setTextRange=Ei,e.setEmitFlags=Ni,e.getSourceMapRange=Ai,e.setSourceMapRange=wi;var ea;e.createSourceMapSource=Oi,e.getTokenSourceMapRange=Pi,e.setTokenSourceMapRange=Fi,e.getCommentRange=Ii,e.setCommentRange=Li,e.getSyntheticLeadingComments=Ri,e.setSyntheticLeadingComments=Mi,e.addSyntheticLeadingComment=Bi,e.getSyntheticTrailingComments=Ki,e.setSyntheticTrailingComments=ji,e.addSyntheticTrailingComment=Ji,e.getConstantValue=zi,e.setConstantValue=Ui,e.addEmitHelper=qi,e.addEmitHelpers=Vi,e.removeEmitHelper=$i,e.getEmitHelpers=Wi,e.moveEmitHelpers=Gi,e.compareEmitHelpers=Hi,e.setOriginalNode=Xi;}(r||(r={})),function(e){function t(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))}function n(t,n,r){if(e.isComputedPropertyName(n))return e.setTextRange(e.createElementAccess(t,n.expression),r);var i=e.setTextRange(e.isIdentifier(n)?e.createPropertyAccess(t,n):e.createElementAccess(t,n),n);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),i)}function i(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),i)}function a(t,n){var r=[];return void 0!==n&&r.push("number"==typeof n?e.createLiteral(n):n),e.createCall(e.createPropertyAccess(t,"slice"),void 0,r)}function o(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)}function s(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)}function c(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function u(t,n){if(e.isQualifiedName(t)){var r=u(t.left,n),i=e.createIdentifier(e.unescapeLeadingUnderscores(t.right.escapedText));return i.escapedText=t.right.escapedText,e.createPropertyAccess(r,i)}return c(e.unescapeLeadingUnderscores(t.escapedText),n)}function l(t,n,r){return t?u(t,r):e.createPropertyAccess(c(n,r),"createElement")}function _(t,n,r,i,a,o,s){var c=[r];if(i&&c.push(i),a&&a.length>0)if(i||c.push(e.createNull()),a.length>1)for(var u=0,_=a;u<_.length;u++){var d=_[u];d.startsOnNewLine=!0,c.push(d);}else c.push(a[0]);return e.setTextRange(e.createCall(l(t,n,o),void 0,c),s)}function d(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function p(t,n,r){return t.requestEmitHelper(Me),e.setTextRange(e.createCall(d("__values"),void 0,[n]),r)}function f(t,n,r,i){return t.requestEmitHelper(Be),e.setTextRange(e.createCall(d("__read"),void 0,void 0!==r?[n,e.createLiteral(r)]:[n]),i)}function m(t,n,r){return t.requestEmitHelper(Be),t.requestEmitHelper(Ke),e.setTextRange(e.createCall(d("__spread"),void 0,n),r)}function g(t,n){if(e.isVariableDeclarationList(t)){var r=e.firstOrUndefined(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,n);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,n),t);return e.setTextRange(e.createStatement(a),t)}function y(t,n){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([n].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function h(t,n,r){if(!n)return t;var i=e.updateLabel(n,n.label,222===n.statement.kind?h(t,n.statement):t);return r&&r(n),i}function v(e,t){var n=fe(e);switch(n.kind){case 71:return t;case 99:case 8:case 9:return!1;case 177:return 0!==n.elements.length;case 178:return n.properties.length>0;default:return!0}}function b(t,n,r,i){var a,o,s=pe(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(97===s.kind)a=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=ee(s);else switch(s.kind){case 179:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 180:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=ee(t);}return{target:o,thisArg:a}}function x(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)}function S(t){if(e.isQualifiedName(t)){var n=S(t.left),r=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(n,r),t)}return e.getMutableClone(t)}function k(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function T(e,t,n){switch(t.kind){case 153:case 154:return C(e.properties,t,n,e.multiLine);case 261:return D(t,n);case 262:return E(t,n);case 151:return N(t,n)}}function C(t,n,r,i){var a=e.getAllAccessorDeclarations(t,n),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(n===o){var u=[];if(s){var l=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(l,s),e.setOriginalNode(l,s);var _=e.createPropertyAssignment("get",l);u.push(_);}if(c){var d=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(d,c),e.setOriginalNode(d,c);var p=e.createPropertyAssignment("set",d);u.push(p);}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var f=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,k(n.name),e.createObjectLiteral(u,i)]),o);return e.aggregateTransformFlags(f)}}function D(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),t.initializer),t),t))}function E(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function N(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}function A(e,t,n){return R(e,t,n,49152)}function w(t){return 0!=(32768&e.getEmitFlags(t))}function O(e,t,n){return R(e,t,n,16384)}function P(t){return 0!=(16384&e.getEmitFlags(t))}function F(e,t,n){return R(e,t,n,8192)}function I(t){return 0!=(8192&e.getEmitFlags(t))}function L(e,t,n){return R(e,t,n)}function R(t,n,r,i){var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),r||(i|=48),n||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function M(t,n,r,i){return t&&e.hasModifier(n,1)?B(t,R(n),r,i):F(n,r,i)}function B(t,n,r,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n));e.setTextRange(a,n);var o;return i||(o|=48),r||(o|=1536),o&&e.setEmitFlags(a,o),a}function K(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)}function j(t){e.Debug.assert(!!t.body);var n=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(n,t),e.setTextRange(n,t),t.startsOnNewLine&&(n.startsOnNewLine=!0),e.aggregateTransformFlags(n),n}function J(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function z(e,t,n,r){return q(e,t,U(e,t,n),r)}function U(t,n,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=n.length;ae.getOperatorPrecedence(194,26)?t:e.setTextRange(e.createParen(t),t)}function ae(t){var n=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(n)){var r=n.expression,i=e.skipPartiallyEmittedExpressions(r).kind;if(186===i||187===i){var a=e.getMutableClone(n);return a.expression=e.setTextRange(e.createParen(r),r),ye(t,a,4)}}else{var o=le(n).kind;if(178===o||186===o)return e.setTextRange(e.createParen(t),t)}return t}function oe(t){switch(t.kind){case 166:case 167:case 160:case 161:return e.createParenthesizedType(t)}return t}function se(t){switch(t.kind){case 162:case 170:return e.createParenthesizedType(t)}return oe(t)}function ce(t){return e.createNodeArray(e.sameMap(t,oe))}function ue(t){if(e.some(t)){for(var n=[],r=0;r= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=p;var Be={name:"typescript:read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };\n '};e.createReadHelper=f;var Ke={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};e.createSpreadHelper=m,e.createForOfBindingStatement=g,e.insertLeadingStatement=y,e.restoreEnclosingLabel=h,e.createCallBinding=b,e.inlineExpressions=x,e.createExpressionFromEntityName=S,e.createExpressionForPropertyName=k,e.createExpressionForObjectLiteralElementLike=T,e.getInternalName=A,e.isInternalName=w,e.getLocalName=O,e.isLocalName=P,e.getExportName=F,e.isExportName=I,e.getDeclarationName=L,e.getExternalModuleOrNamespaceExportName=M,e.getNamespaceMemberName=B,e.convertToFunctionBody=K,e.convertFunctionDeclarationToExpression=j,e.addPrologue=z,e.addStandardPrologue=U,e.addCustomPrologue=q,e.startsWithUseStrict=V,e.ensureUseStrict=$,e.parenthesizeBinaryOperand=W,e.parenthesizeForConditionalHead=Y,e.parenthesizeSubexpressionOfConditionalExpression=Q,e.parenthesizeForNew=Z,e.parenthesizeForAccess=ee,e.parenthesizePostfixOperand=te,e.parenthesizePrefixOperand=ne,e.parenthesizeListElements=re,e.parenthesizeExpressionForList=ie,e.parenthesizeExpressionForExpressionStatement=ae,e.parenthesizeElementTypeMember=oe,e.parenthesizeArrayTypeMember=se,e.parenthesizeElementTypeMembers=ce,e.parenthesizeTypeParameters=ue,e.parenthesizeConciseBody=_e;!function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All";}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=de,e.skipOuterExpressions=pe,e.skipParentheses=fe,e.skipAssertions=me,e.recreateOuterExpressions=ye,e.startOnNewLine=he,e.getExternalHelpersModuleName=ve,e.getOrCreateExternalHelpersModuleNameIfNeeded=be,e.getLocalNameForExternalImport=xe,e.getExternalModuleNameLiteral=Se,e.tryGetModuleNameFromFile=Te,e.getInitializerOfBindingOrAssignmentElement=De,e.getTargetOfBindingOrAssignmentElement=Ee,e.getRestIndicatorOfBindingOrAssignmentElement=Ne,e.getPropertyNameOfBindingOrAssignmentElement=Ae,e.getElementsOfBindingOrAssignmentPattern=we,e.convertToArrayAssignmentElement=Oe,e.convertToObjectAssignmentElement=Pe,e.convertToAssignmentPattern=Fe,e.convertToObjectAssignmentPattern=Ie,e.convertToArrayAssignmentPattern=Le,e.convertToAssignmentElementTarget=Re;}(r||(r={}));!function(e){function t(t,n,r,i){if(void 0===t||void 0===n)return t;e.aggregateTransformFlags(t);var a=n(t);if(a===t)return t;var o;if(void 0!==a)return o=e.isArray(a)?(i||s)(a):a,e.Debug.assertNode(o,r),e.aggregateTransformFlags(o),o}function n(t,n,r,i,a){if(void 0===t||void 0===n)return t;var o,s=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>s-i)&&(a=s-i),(i>0||a0&&_<=142||169===_)return o;switch(_){case 71:return e.updateIdentifier(o,u(o.typeArguments,s,e.isTypeNode));case 143:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 144:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 145:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o.default,s,e.isTypeNode));case 146:return e.updateParameter(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,l,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 147:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 148:return e.updatePropertySignature(o,u(o.modifiers,s,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateProperty(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 150:return e.updateMethodSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),i(o.parameters,s,c,u),a(o.body,s,c));case 153:return e.updateGetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 154:return e.updateSetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),a(o.body,s,c));case 155:return e.updateCallSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 156:return e.updateConstructSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 157:return e.updateIndexSignature(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 158:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 159:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),u(o.typeArguments,s,e.isTypeNode));case 160:return e.updateFunctionTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 161:return e.updateConstructorTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 162:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 163:return e.updateTypeLiteralNode(o,u(o.members,s,e.isTypeElement));case 164:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 165:return e.updateTypleTypeNode(o,u(o.elementTypes,s,e.isTypeNode));case 166:return e.updateUnionTypeNode(o,u(o.types,s,e.isTypeNode));case 167:return e.updateIntersectionTypeNode(o,u(o.types,s,e.isTypeNode));case 168:return e.updateParenthesizedType(o,t(o.type,s,e.isTypeNode));case 170:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 171:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 172:return e.updateMappedTypeNode(o,t(o.readonlyToken,l,e.isToken),t(o.typeParameter,s,e.isTypeParameterDeclaration),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode));case 173:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 174:return e.updateObjectBindingPattern(o,u(o.elements,s,e.isBindingElement));case 175:return e.updateArrayBindingPattern(o,u(o.elements,s,e.isArrayBindingElement));case 176:return e.updateBindingElement(o,t(o.dotDotDotToken,l,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 177:return e.updateArrayLiteral(o,u(o.elements,s,e.isExpression));case 178:return e.updateObjectLiteral(o,u(o.properties,s,e.isObjectLiteralElementLike));case 179:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 180:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 181:return e.updateCall(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 182:return e.updateNew(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 183:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 184:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 185:return e.updateParen(o,t(o.expression,s,e.isExpression));case 186:return e.updateFunctionExpression(o,u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 188:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 189:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 190:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 191:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 192:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 193:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 194:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression),t(o.operatorToken,s,e.isToken));case 195:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.whenTrue,s,e.isExpression),t(o.whenFalse,s,e.isExpression));case 196:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),u(o.templateSpans,s,e.isTemplateSpan));case 197:return e.updateYield(o,t(o.asteriskToken,l,e.isToken),t(o.expression,s,e.isExpression));case 198:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 199:return e.updateClassExpression(o,u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 201:return e.updateExpressionWithTypeArguments(o,u(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 202:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 203:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 204:return e.updateMetaProperty(o,t(o.name,s,e.isIdentifier));case 205:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 207:return e.updateBlock(o,u(o.statements,s,e.isStatement));case 208:return e.updateVariableStatement(o,u(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 210:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 211:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 212:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 213:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 214:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 215:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 216:return e.updateForOf(o,o.awaitModifier,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 217:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 218:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 219:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 220:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 222:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 223:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 224:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 226:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 227:return e.updateVariableDeclarationList(o,u(o.declarations,s,e.isVariableDeclaration));case 228:return e.updateFunctionDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 229:return e.updateClassDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 230:return e.updateInterfaceDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isTypeElement));case 231:return e.updateTypeAliasDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),t(o.type,s,e.isTypeNode));case 232:return e.updateEnumDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.members,s,e.isEnumMember));case 233:return e.updateModuleDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 234:return e.updateModuleBlock(o,u(o.statements,s,e.isStatement));case 235:return e.updateCaseBlock(o,u(o.clauses,s,e.isCaseOrDefaultClause));case 236:return e.updateNamespaceExportDeclaration(o,t(o.name,s,e.isIdentifier));case 237:return e.updateImportEqualsDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 238:return e.updateImportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 239:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 240:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 241:return e.updateNamedImports(o,u(o.elements,s,e.isImportSpecifier));case 242:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 243:return e.updateExportAssignment(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 244:return e.updateExportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 245:return e.updateNamedExports(o,u(o.elements,s,e.isExportSpecifier));case 246:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 249:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),u(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 250:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 251:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 252:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 253:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 254:return e.updateJsxAttributes(o,u(o.properties,s,e.isJsxAttributeLike));case 255:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 256:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 257:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),u(o.statements,s,e.isStatement));case 258:return e.updateDefaultClause(o,u(o.statements,s,e.isStatement));case 259:return e.updateHeritageClause(o,u(o.types,s,e.isExpressionWithTypeArguments));case 260:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 261:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 262:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 263:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 264:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 265:return e.updateSourceFileNode(o,r(o.statements,s,c));case 288:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));case 289:return e.updateCommaList(o,u(o.elements,s,e.isExpression));default:return o}}}function s(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=n,e.visitLexicalEnvironment=r,e.visitParameterList=i,e.visitFunctionBody=a,e.visitEachChild=o;}(r||(r={})),function(e){function t(e,t,n){return e?t(n,e):n}function n(e,t,n){return e?t(n,e):n}function r(r,i,a,o){if(void 0===r)return i;var s=o?n:e.reduceLeft,c=o||a,u=r.kind;if(u>0&&u<=142)return i;if(u>=158&&u<=173)return i;var l=i;switch(r.kind){case 206:case 209:case 200:case 225:case 287:break;case 143:l=t(r.left,a,l),l=t(r.right,a,l);break;case 144:l=t(r.expression,a,l);break;case 146:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 147:l=t(r.expression,a,l);break;case 148:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.questionToken,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 149:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 151:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 152:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 153:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 154:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 174:case 175:l=s(r.elements,c,l);break;case 176:l=t(r.propertyName,a,l),l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 177:l=s(r.elements,c,l);break;case 178:l=s(r.properties,c,l);break;case 179:l=t(r.expression,a,l),l=t(r.name,a,l);break;case 180:l=t(r.expression,a,l),l=t(r.argumentExpression,a,l);break;case 181:case 182:l=t(r.expression,a,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 183:l=t(r.tag,a,l),l=t(r.template,a,l);break;case 184:l=t(r.type,a,l),l=t(r.expression,a,l);break;case 186:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 187:l=s(r.modifiers,c,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:l=t(r.expression,a,l);break;case 192:case 193:l=t(r.operand,a,l);break;case 194:l=t(r.left,a,l),l=t(r.right,a,l);break;case 195:l=t(r.condition,a,l),l=t(r.whenTrue,a,l),l=t(r.whenFalse,a,l);break;case 196:l=t(r.head,a,l),l=s(r.templateSpans,c,l);break;case 199:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 201:l=t(r.expression,a,l),l=s(r.typeArguments,c,l);break;case 202:l=t(r.expression,a,l),l=t(r.type,a,l);break;case 205:l=t(r.expression,a,l),l=t(r.literal,a,l);break;case 207:l=s(r.statements,c,l);break;case 208:l=s(r.modifiers,c,l),l=t(r.declarationList,a,l);break;case 210:l=t(r.expression,a,l);break;case 211:l=t(r.expression,a,l),l=t(r.thenStatement,a,l),l=t(r.elseStatement,a,l);break;case 212:l=t(r.statement,a,l),l=t(r.expression,a,l);break;case 213:case 220:l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 214:l=t(r.initializer,a,l),l=t(r.condition,a,l),l=t(r.incrementor,a,l),l=t(r.statement,a,l);break;case 215:case 216:l=t(r.initializer,a,l),l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 219:case 223:l=t(r.expression,a,l);break;case 221:l=t(r.expression,a,l),l=t(r.caseBlock,a,l);break;case 222:l=t(r.label,a,l),l=t(r.statement,a,l);break;case 224:l=t(r.tryBlock,a,l),l=t(r.catchClause,a,l),l=t(r.finallyBlock,a,l);break;case 226:l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 227:l=s(r.declarations,c,l);break;case 228:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 229:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 232:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.members,c,l);break;case 233:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.body,a,l);break;case 234:l=s(r.statements,c,l);break;case 235:l=s(r.clauses,c,l);break;case 237:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.moduleReference,a,l);break;case 238:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.importClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 239:l=t(r.name,a,l),l=t(r.namedBindings,a,l);break;case 240:l=t(r.name,a,l);break;case 241:case 245:l=s(r.elements,c,l);break;case 242:case 246:l=t(r.propertyName,a,l),l=t(r.name,a,l);break;case 243:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.expression,a,l);break;case 244:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.exportClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 248:l=t(r.expression,a,l);break;case 249:l=t(r.openingElement,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingElement,a,l);break;case 250:case 251:l=t(r.tagName,a,l),l=t(r.attributes,a,l);break;case 254:l=s(r.properties,c,l);break;case 252:l=t(r.tagName,a,l);break;case 253:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 255:case 256:l=t(r.expression,a,l);break;case 257:l=t(r.expression,a,l);case 258:l=s(r.statements,c,l);break;case 259:l=s(r.types,c,l);break;case 260:l=t(r.variableDeclaration,a,l),l=t(r.block,a,l);break;case 261:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 262:l=t(r.name,a,l),l=t(r.objectAssignmentInitializer,a,l);break;case 263:l=t(r.expression,a,l);break;case 264:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 265:l=s(r.statements,c,l);break;case 288:l=t(r.expression,a,l);break;case 289:l=s(r.elements,c,l);}return l}function i(t,n){return e.some(n)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,n)),t):e.addRange(t,n):t}function a(t){return d.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function o(e){return s(e),e}function s(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=u(t);return e.computeTransformFlagsForNode(t,n)}function c(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,i=e;r=1)||1572864&f.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){_&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),a,o,i),_=void 0);var y=s(t,a,g);e.isComputedPropertyName(g)&&(d=e.append(d,y.argumentExpression)),r(t,f,y,f);}else _=e.append(_,f);}}_&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),a,o,i);}function a(t,n,i,a,o){var s=e.getElementsOfBindingOrAssignmentPattern(i),u=s.length;t.level<1&&t.downlevelIteration?a=c(t,e.createReadHelper(t.context,a,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[u-1])?void 0:u,o),!1,o):(1!==u&&(t.level<1||0===u)||e.every(s,e.isOmittedExpression))&&(a=c(t,a,!e.isDeclarationBindingElement(n)||0!==u,o));for(var l,_,d=0;d=1)if(1048576&p.transformFlags){var f=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(f),_=e.append(_,[f,p]),l=e.append(l,t.createArrayBindingOrAssignmentElement(f));}else l=e.append(l,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(d===u-1){var m=e.createArraySlice(a,d);r(t,p,m,p);}}else r(t,p,m=e.createElementAccess(a,d),p);}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),a,o,i),_)for(var g=0,y=_;g0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,x)}function x(e){return void 0!==e.decorators&&e.decorators.length>0}function S(t,n){var r=0;return e.some(n)&&(r|=1),e.getClassExtendsHeritageClauseElement(t)&&(r|=64),b(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),ft(t)?r|=8:yt(t)?r|=32:gt(t)&&(r|=16),Xt<=1&&7&r&&(r|=128),r}function k(n){var r=L(n,!0),i=S(n,r);128&i&&t.startLexicalEnvironment();var a=n.name||(5&i?e.getGeneratedNameForNode(n):void 0),o=2&i?C(n,a,i):T(n,a,i),s=[o];if(1&i&&K(s,r,128&i?e.getInternalName(n):e.getLocalName(n)),Z(s,n,!1),Z(s,n,!0),ne(s,n),128&i){var c=e.createTokenRange(e.skipTrivia(en.text,n.members.end),18),u=e.getInternalName(n),l=e.createPartiallyEmittedExpression(u);l.end=c.end,e.setEmitFlags(l,1536);var _=e.createReturn(l);_.pos=c.pos,e.setEmitFlags(_,1920),s.push(_),e.addRange(s,t.endLexicalEnvironment());var d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,e.createImmediatelyInvokedFunctionExpression(s))]));e.setOriginalNode(d,n),e.setCommentRange(d,n),e.setSourceMapRange(d,e.moveRangePastDecorators(n)),e.startOnNewLine(d),s=[d];}return 8&i?vt(s,n):(128&i||2&i)&&(32&i?s.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&i&&s.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(o,4194304|e.getEmitFlags(o))),e.singleOrMany(s)}function T(t,n,r){var i=128&r?void 0:e.visitNodes(t.modifiers,y,e.isModifier),a=e.createClassDeclaration(void 0,i,n,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),E(t,0!=(64&r))),o=e.getEmitFlags(t);return 1&r&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}function C(t,n,r){var i=e.moveRangePastDecorators(t),a=Ct(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=E(t,0!=(64&r)),l=e.createClassExpression(void 0,n,void 0,s,c);e.setOriginalNode(l,t),e.setTextRange(l,i);var _=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,l):l)],1));return e.setOriginalNode(_,t),e.setTextRange(_,i),e.setCommentRange(_,t),_}function D(t){var n=L(t,!0),r=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),i=E(t,e.some(r,function(e){return 85===e.token})),a=e.createClassExpression(void 0,t.name,void 0,r,i);if(e.setOriginalNode(a,t),e.setTextRange(a,t),n.length>0){var o=[],s=e.createTempVariable(Wt);return 8388608&Gt.getNodeCheckFlags(t)&&(At(),sn[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(a,65536|e.getEmitFlags(a)),o.push(e.startOnNewLine(e.createAssignment(s,a))),e.addRange(o,j(n,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return a}function E(t,n){var r=[],i=N(t,n);return i&&r.push(i),e.addRange(r,e.visitNodes(t.members,m,e.isClassElement)),e.setTextRange(e.createNodeArray(r),t.members)}function N(n,r){var i=e.forEach(n.members,M),a=262144&n.transformFlags,o=e.getFirstConstructorWithBody(n);if(!i&&!a)return e.visitEachChild(o,u,t);var s=A(o),c=w(n,o,r);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||n),o))}function A(n){return e.visitParameterList(n&&n.parameters,u,t)||[]}function w(t,n,r){var i=[],a=0;if(Vt(),n){a=O(n,i);var o=P(n);e.addRange(i,e.map(o,I));}else r&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return K(i,L(t,!1),e.createThis()),n&&e.addRange(i,e.visitNodes(n.body.statements,u,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,$t()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),n?n.body.statements:t.members),!0),n?n.body:void 0)}function O(t,n){if(t.body){var r=t.body.statements,i=e.addPrologue(n,r,!1,u);if(i===r.length)return i;var a=r[i];return 210===a.kind&&e.isSuperCall(a.expression)?(n.push(e.visitNode(a,u,e.isStatement)),i+1):i}return 0}function P(t){return e.filter(t.parameters,F)}function F(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function I(t){e.Debug.assert(e.isIdentifier(t.name));var n=t.name,r=e.getMutableClone(n);e.setEmitFlags(r,1584);var i=e.getMutableClone(n);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),t.name),i)),e.moveRangePos(t,-1)))}function L(t,n){return e.filter(t.members,n?R:M)}function R(e){return B(e,!0)}function M(e){return B(e,!1)}function B(t,n){return 149===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function K(t,n,r){for(var i=0,a=n;i0?149===i.kind?e.createVoidZero():e.createNull():void 0,u=n(t,a,o,s,c,e.moveRangePastDecorators(i));return e.setEmitFlags(u,1536),u}}function ne(t,n){var r=re(n);r&&t.push(e.setOriginalNode(e.createStatement(r),n));}function re(r){var i=Q(r,r,W(r));if(i){var a=sn&&sn[e.getOriginalNodeId(r)],o=e.getLocalName(r,!1,!0),s=n(t,i,o),c=e.createAssignment(o,a?e.createAssignment(a,s):s);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(r)),c}}function ie(t){return e.visitNode(t.expression,u,e.isExpression)}function ae(n,r){var a;if(n){a=[];for(var o=0,s=n;o= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},u={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},l={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"};}(r||(r={}));!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;S=n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),S=void 0,r}function i(n){if(0==(16&n.transformFlags))return n;switch(n.kind){case 120:return;case 191:return a(n);case 151:return o(n);case 228:return s(n);case 186:return c(n);case 187:return u(n);default:return e.visitEachChild(n,i,t)}}function a(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,i,e.isExpression)),t),t)}function o(n){return e.updateMethod(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function s(n){return e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function c(n){return e.updateFunctionExpression(n,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function u(n){return e.updateArrowFunction(n,e.visitNodes(n.modifiers,i,e.isModifier),void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function l(r){C();var a=e.getOriginalNode(r,e.isFunctionLike).type,o=A<2?d(a):void 0,s=187===r.kind,c=0!=(8192&E.getNodeCheckFlags(r));if(s){var u=n(t,c,o,_(r.body)),l=D();if(e.some(l)){g=e.convertToFunctionBody(u);return e.updateBlock(g,e.setTextRange(e.createNodeArray(e.concatenate(g.statements,l)),g.statements))}return u}var f=[],m=e.addPrologue(f,r.body.statements,!1,i);f.push(e.createReturn(n(t,c,o,_(r.body,m)))),e.addRange(f,D());var g=e.createBlock(f,!0);return e.setTextRange(g,r.body),A>=2&&(4096&E.getNodeCheckFlags(r)?(p(),e.addEmitHelper(g,e.advancedAsyncSuperHelper)):2048&E.getNodeCheckFlags(r)&&(p(),e.addEmitHelper(g,e.asyncSuperHelper))),g}function _(n,r){if(e.isBlock(n))return e.updateBlock(n,e.visitLexicalEnvironment(n.statements,i,t,r));T();var a=e.convertToFunctionBody(e.visitNode(n,i,e.isConciseBody)),o=D();return e.updateBlock(a,e.setTextRange(e.createNodeArray(e.concatenate(a.statements,o)),a.statements))}function d(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=E.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}function p(){0==(1&k)&&(k|=1,t.enableSubstitution(181),t.enableSubstitution(179),t.enableSubstitution(180),t.enableEmitNotification(229),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(152));}function f(e,t,n){if(1&k&&b(t)){var r=6144&E.getNodeCheckFlags(t);if(r!==w){var i=w;return w=r,O(e,t,n),void(w=i)}}O(e,t,n);}function m(e,t){return t=P(e,t),1===e&&w?g(t):t}function g(e){switch(e.kind){case 179:return y(e);case 180:return h(e);case 181:return v(e)}return e}function y(t){return 97===t.expression.kind?x(e.createLiteral(e.unescapeLeadingUnderscores(t.name.escapedText)),t):t}function h(e){return 97===e.expression.kind?x(e.argumentExpression,e):e}function v(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?y(n):h(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function b(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function x(t,n){return 4096&w?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),n):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}var S,k,T=t.startLexicalEnvironment,C=t.resumeLexicalEnvironment,D=t.endLexicalEnvironment,E=t.getEmitResolver(),N=t.getCompilerOptions(),A=e.getEmitScriptTarget(N),w=0,O=t.onEmitNode,P=t.onSubstituteNode;return t.onEmitNode=f,t.onSubstituteNode=m,r}function n(t,n,r,a){t.requestEmitHelper(i);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),r?e.createExpressionFromEntityName(r):e.createVoidZero(),o])}var r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(r||(r={})),e.transformES2017=t;var i={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n const _super = name => super[name];\n "},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n const _super = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);\n "};}(r||(r={}));!function(e){function t(t){function s(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,c,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function c(e){return _(e,!1)}function u(e){return _(e,!0)}function l(e){if(120!==e.kind)return e}function _(n,r){if(0==(8&n.transformFlags))return n;switch(n.kind){case 191:return d(n);case 197:return p(n);case 222:return f(n);case 178:return g(n);case 194:return b(n,r);case 226:return x(n);case 216:return T(n,void 0);case 214:return S(n);case 190:return k(n);case 152:return w(n);case 151:return F(n);case 153:return O(n);case 154:return P(n);case 228:return I(n);case 186:return R(n);case 187:return L(n);case 146:return A(n);case 210:return y(n);case 185:return h(n,r);case 260:return v(n);default:return e.visitEachChild(n,c,t)}}function d(n){return 2&ie&&1&ie?e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.visitNode(n.expression,c,e.isExpression))),n),n):e.visitEachChild(n,c,t)}function p(n){if(2&ie&&1&ie&&n.asteriskToken){var i=e.visitNode(n.expression,c,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.updateYield(n,n.asteriskToken,a(t,o(t,i,i),i)))),n),n)}return e.visitEachChild(n,c,t)}function f(n){if(2&ie&&1&ie){var r=e.unwrapInnermostStatementOfLabel(n);return 216===r.kind&&r.awaitModifier?T(r,n):e.restoreEnclosingLabel(e.visitEachChild(n,c,t),n)}return e.visitEachChild(n,c,t)}function m(t){for(var n,r=[],i=0,a=t;i=2&&(4096&Q.getNodeCheckFlags(n)?(j(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&Q.getNodeCheckFlags(n)&&(j(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function B(t){H();var n=0,r=[],i=e.visitNode(t.body,c,e.isConciseBody);e.isBlock(i)&&(n=e.addPrologue(r,i.statements,!1,c)),e.addRange(r,K(void 0,t));var a=X();if(n>0||e.some(r)||e.some(a)){var o=e.convertToFunctionBody(i,!0);return e.addRange(r,o.statements.slice(n)),e.addRange(r,a),e.updateBlock(o,e.setTextRange(e.createNodeArray(r),o.statements))}return i}function K(n,r){for(var i=0,a=r.parameters;i=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(c),e.createCall(e.getHelperName("__assign"),void 0,n))}function r(t,n){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__await"),void 0,[n])}function i(t,n){return t.requestEmitHelper(u),t.requestEmitHelper(l),(n.emitNode||(n.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),n])}function a(t,n,r){return t.requestEmitHelper(u),t.requestEmitHelper(_),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}function o(t,n,r){return t.requestEmitHelper(d),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}var s;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(s||(s={})),e.transformESNext=t;var c={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };"};e.createAssignHelper=n;var u={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\n "},l={name:"typescript:asyncGenerator",scoped:!1,text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };\n '},_={name:"typescript:asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n };\n '},d={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncIterator) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator];\n return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n };\n '};}(r||(r={}));!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function i(e){return 4&e.transformFlags?a(e):e}function a(n){switch(n.kind){case 249:return s(n,!1);case 250:return c(n,!1);case 256:return b(n);default:return e.visitEachChild(n,i,t)}}function o(t){switch(t.kind){case 10:return p(t);case 256:return b(t);case 249:return s(t,!0);case 250:return c(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function s(e,t){return u(e.openingElement,e.children,t,e)}function c(e,t){return u(e,void 0,t,e)}function u(n,r,i,a){var s,c=h(n),u=n.attributes.properties;if(0===u.length)s=e.createNull();else{var d=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,l):e.createObjectLiteral(e.map(t,_))}));e.isJsxSpreadAttribute(u[0])&&d.unshift(e.createObjectLiteral()),(s=e.singleOrUndefined(d))||(s=e.createAssignHelper(t,d));}var p=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(),x.reactNamespace,c,s,e.mapDefined(r,o),n,a);return i&&e.startOnNewLine(p),p}function l(t){return e.visitNode(t.expression,i,e.isExpression)}function _(t){var n=v(t),r=d(t.initializer);return e.createPropertyAssignment(n,r)}function d(t){if(void 0===t)return e.createTrue();if(9===t.kind){var n=y(t.text);return n?e.setTextRange(e.createLiteral(n),t):t}if(256===t.kind)return void 0===t.expression?e.createTrue():b(t);e.Debug.failBadSyntaxKind(t);}function p(t){var n=f(e.getTextOfNode(t,!0));return void 0===n?void 0:e.createLiteral(n)}function f(t){for(var n,r=0,i=-1,a=0;a=0,"statementOffset not initialized correctly!"));var s=r&&95!==e.skipOuterExpressions(r.expression).kind,c=O(a,t,s,i,o);1!==c&&2!==c||o++,t&&(1===c&&(It|=4096),e.addRange(a,e.visitNodes(t.body.statements,l,e.isStatement,o))),!s||2===c||t&&w(t.body)||a.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(a,Dt()),t&&U(a,t,!1);var u=e.createBlock(e.setTextRange(e.createNodeArray(a),t?t.body.statements:n.members),!0);return e.setTextRange(u,t?t.body:n),t||e.setEmitFlags(u,1536),u}function w(t){if(219===t.kind)return!0;if(211===t.kind){var n=t;if(n.elseStatement)return w(n.thenStatement)&&w(n.elseStatement)}else if(207===t.kind){var r=e.lastOrUndefined(t.statements);if(r&&w(r))return!0}return!1}function O(t,n,r,i,a){if(!r)return n&&J(t,n),0;if(!n)return t.push(e.createReturn(F())),2;if(i)return z(t,n,F()),ft(),1;var o,s,c=n.body.statements;if(a0?n.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,l,t,0,o))),1048576)):a&&n.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,l,e.isExpression))),1048576));}function B(t,n,r,i){i=e.visitNode(i,l,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(i,48|e.getEmitFlags(i))),n))]),n),417));a.startsOnNewLine=!0,e.setTextRange(a,n),e.setEmitFlags(a,1048992),t.push(a);}function K(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function j(t,n,r){var i=e.lastOrUndefined(n.parameters);if(K(i,r)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=n.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u);}}function J(t,n){32768&n.transformFlags&&187!==n.kind&&z(t,n,e.createThis());}function z(t,n,r,i){ft();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,n),t.push(a);}function U(t,n,r){if(16384&It){var i=void 0;switch(n.kind){case 187:return t;case 151:case 153:case 154:i=e.createVoidZero();break;case 152:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(n))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(n);}var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,i)]));if(r)return[a].concat(t);t.unshift(a);}return t}function q(t,n){for(var r=0,i=n.members;r0&&(o=!0),e.isBlock(u))a=e.addCustomPrologue(c,u.statements,a,l),r=u.statements,e.addRange(c,e.visitNodes(u.statements,l,e.isStatement,a)),!o&&u.multiLine&&(o=!0);else{e.Debug.assert(187===n.kind),r=e.moveRangeEnd(u,-1);var _=n.equalsGreaterThanToken;e.nodeIsSynthesized(_)||e.nodeIsSynthesized(u)||(e.rangeEndIsOnSameLineAsRangeStart(_,u,Pt)?s=!0:o=!0);var d=e.visitNode(u,l,e.isExpression),p=e.createReturn(d);e.setTextRange(p,u),e.setEmitFlags(p,1440),c.push(p),i=u;}var f=t.endLexicalEnvironment();e.addRange(c,f),U(c,n,!1),!o&&f&&f.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(c),r),o);return e.setTextRange(m,n.body),!o&&s&&e.setEmitFlags(m,1),i&&e.setTokenSourceMapRange(m,18,i),e.setOriginalNode(m,n.body),m}function ee(n){var r=e.visitFunctionBody(n.body,_,t);return e.updateBlock(r,e.setTextRange(e.createNodeArray(U(r.statements,n,!0)),r.statements))}function te(n,r){if(r)return e.visitEachChild(n,l,t);var o=256&It?i(4032,512):i(3904,128),s=e.visitEachChild(n,l,t);return a(o,0,0),s}function ne(n){switch(n.expression.kind){case 185:return e.updateStatement(n,re(n.expression,!1));case 194:return e.updateStatement(n,ie(n.expression,!1))}return e.visitEachChild(n,l,t)}function re(n,r){if(!r)switch(n.expression.kind){case 185:return e.updateParen(n,re(n.expression,!1));case 194:return e.updateParen(n,ie(n.expression,!1))}return e.visitEachChild(n,l,t)}function ie(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,l,t,0,r):e.visitEachChild(n,l,t)}function ae(n){var r,o=i(0,e.hasModifier(n,1)?32:0);if(Lt&&0==(3&n.declarationList.flags)){for(var s=void 0,c=0,u=n.declarationList.declarations;c=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);r;){if(r===i||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent;}return!1}function xt(t){return 1&Rt&&16&It?e.setTextRange(e.createIdentifier("_this"),t):t}function St(t,n){return e.hasModifier(n,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function kt(t,n){if(!t||!n)return!1;if(e.some(t.parameters))return!1;var r=e.firstOrUndefined(t.body.statements);if(!r||!e.nodeIsSynthesized(r)||210!==r.kind)return!1;var i=r.expression;if(!e.nodeIsSynthesized(i)||181!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||97!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||198!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}var Tt=t.startLexicalEnvironment,Ct=t.resumeLexicalEnvironment,Dt=t.endLexicalEnvironment,Et=t.hoistVariableDeclaration,Nt=t.getCompilerOptions(),At=t.getEmitResolver(),wt=t.onSubstituteNode,Ot=t.onEmitNode;t.onEmitNode=dt,t.onSubstituteNode=mt;var Pt,Ft,It,Lt,Rt;return r}function n(t,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__extends"),void 0,[n,e.createIdentifier("_super")])}var r;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings";}(r||(r={}));var i;!function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter";}(i||(i={}));var a;!function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return";}(a||(a={}));var o;!function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn";}(o||(o={}));var s;!function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask";}(s||(s={})),e.transformES2015=t;var c={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"};}(r||(r={}));!function(e){function t(t){function n(e){return e}function r(t,n,r){switch(n.kind){case 251:case 252:case 250:var i=n.tagName;u[e.getOriginalNodeId(i)]=!0;}c(t,n,r);}function i(t,n){return n.id&&u&&u[n.id]?_(t,n):(n=_(t,n),e.isPropertyAccessExpression(n)?a(n):e.isPropertyAssignment(n)?o(n):n)}function a(t){var n=s(t.name);return n?e.setTextRange(e.createElementAccess(t.expression,n),t):t}function o(t){var n=e.isIdentifier(t.name)&&s(t.name);return n?e.updatePropertyAssignment(t,n,t.initializer):t}function s(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.unescapeLeadingUnderscores(t.escapedText)):void 0);if(n>=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,l=t.getCompilerOptions();1!==l.jsx&&3!==l.jsx||(c=t.onEmitNode,t.onEmitNode=r,t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),u=[]);var _=t.onSubstituteNode;return t.onSubstituteNode=i,t.enableSubstitution(179),t.enableSubstitution(261),n}e.transformES5=t;}(r||(r={}));!function(e){function t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}function n(n){function i(t){if(t.isDeclarationFile||0==(512&t.transformFlags))return t;Ot=t;var r=e.visitEachChild(t,a,n);return e.addEmitHelpers(r,n.readEmitHelpers()),Ot=void 0,r}function a(t){var r=t.transformFlags;return Lt?o(t):It?s(t):256&r?u(t):512&r?e.visitEachChild(t,a,n):t}function o(e){switch(e.kind){case 212:return j(e);case 213:return z(e);case 221:return te(e);case 222:return re(e);default:return s(e)}}function s(t){switch(t.kind){case 228:return l(t);case 186:return _(t);case 153:case 154:return d(t);case 208:return f(t);case 214:return q(t);case 215:return $(t);case 218:return X(t);case 217:return G(t);case 219:return Q(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,a,n):t}}function c(t){switch(t.kind){case 194:return m(t);case 195:return S(t);case 197:return k(t);case 177:return T(t);case 178:return D(t);case 180:return E(t);case 181:return N(t);case 182:return A(t);default:return e.visitEachChild(t,a,n)}}function u(t){switch(t.kind){case 228:return l(t);case 186:return _(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,a,n)}}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,p(t.body)),t),t);else{var r=It,i=Lt;It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i;}return It?void Ct(t):t}function _(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,p(t.body)),t),t);else{var r=It,i=Lt;It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i;}return t}function d(t){var r=It,i=Lt;return It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i,t}function p(t){var n=[],r=It,i=Lt,o=Rt,s=Mt,c=Bt,u=Kt,l=jt,_=Jt,d=en,p=zt,f=Ut,m=qt,g=Vt;It=!0,Lt=!1,Rt=void 0,Mt=void 0,Bt=void 0,Kt=void 0,jt=void 0,Jt=void 0,en=1,zt=void 0,Ut=void 0,qt=void 0,Vt=e.createTempVariable(void 0),kt();var y=e.addPrologue(n,t.statements,!1,a);w(t.statements,y);var h=rt();return e.addRange(n,Tt()),n.push(e.createReturn(h)),It=r,Lt=i,Rt=o,Mt=s,Bt=c,Kt=u,jt=l,Jt=_,en=d,zt=p,Ut=f,qt=m,Vt=g,e.setTextRange(e.createBlock(n,t.multiLine),t)}function f(t){if(16777216&t.transformFlags)R(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n=59&&e<=70}function y(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function h(t){var r=t.left,i=t.right;if(oe(i)){var o=void 0;switch(r.kind){case 179:o=e.updatePropertyAccess(r,_e(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),r.name);break;case 180:o=e.updateElementAccess(r,_e(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),_e(e.visitNode(r.argumentExpression,a,e.isExpression)));break;default:o=e.visitNode(r,a,e.isExpression);}var s=t.operatorToken.kind;return g(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(_e(o),y(s),e.visitNode(i,a,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(i,a,e.isExpression))}return e.visitEachChild(t,a,n)}function v(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return x(t);var r=e.getMutableClone(t);return r.left=_e(e.visitNode(t.left,a,e.isExpression)),r.right=e.visitNode(t.right,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function b(t){var n=pe(),r=de();return We(r,e.visitNode(t.left,a,e.isExpression),t.left),53===t.operatorToken.kind?Xe(n,r,t.left):He(n,r,t.left),We(r,e.visitNode(t.right,a,e.isExpression),t.right),fe(n),r}function x(t){function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(oe(t)&&r.length>0&&(nt(1,[e.createStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,a,e.isExpression)));}var r=[];return n(t.left),n(t.right),e.inlineExpressions(r)}function S(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var r=pe(),i=pe(),o=de();return Xe(r,e.visitNode(t.condition,a,e.isExpression),t.condition),We(o,e.visitNode(t.whenTrue,a,e.isExpression),t.whenTrue),Ge(i),fe(r),We(o,e.visitNode(t.whenFalse,a,e.isExpression),t.whenFalse),fe(i),o}return e.visitEachChild(t,a,n)}function k(t){var r=pe(),i=e.visitNode(t.expression,a,e.isExpression);return t.asteriskToken?Ye(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(n,i,t):i,t):Qe(i,t),fe(r),qe(t)}function T(e){return C(e.elements,void 0,void 0,e.multiLine)}function C(t,n,r,i){function o(t,r){if(oe(r)&&t.length>0){var o=void 0!==s;s||(s=de()),We(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(n?[n].concat(t):t,i)),n=void 0,t=[];}return t.push(e.visitNode(r,a,e.isExpression)),t}var s,c=se(t);if(c>0){s=de();var u=e.visitNodes(t,a,e.isExpression,0,c);We(s,e.createArrayLiteral(n?[n].concat(u):u)),n=void 0;}var l=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(l,i)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(l):l,i),r)}function D(t){function n(n,r){oe(r)&&n.length>0&&($e(e.createStatement(e.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(t,r,s),c=e.visitNode(o,a,e.isExpression);return c&&(i&&(c.startsOnNewLine=!0),n.push(c)),n}var r=t.properties,i=t.multiLine,o=se(r),s=de();We(s,e.createObjectLiteral(e.visitNodes(r,a,e.isObjectLiteralElementLike,0,o),i));var c=e.reduceLeft(r,n,[],o);return c.push(i?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function E(t){if(oe(t.argumentExpression)){var r=e.getMutableClone(t);return r.expression=_e(e.visitNode(t.expression,a,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(t.argumentExpression,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function N(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(t.expression,Dt,Nt,!0),i=r.target,o=r.thisArg;return e.setOriginalNode(e.createFunctionApply(_e(e.visitNode(i,a,e.isLeftHandSideExpression)),o,C(t.arguments),t),t)}return e.visitEachChild(t,a,n)}function A(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Dt),i=r.target,o=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(_e(e.visitNode(i,a,e.isExpression)),o,C(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,a,n)}function w(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0);l++)u.push(M(i));u.length&&($e(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[]);}}function M(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,a,e.isExpression)),t)}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var n=pe(),r=t.elseStatement?pe():void 0;Xe(t.elseStatement?r:n,e.visitNode(t.expression,a,e.isExpression),t.expression),O(t.thenStatement),t.elseStatement&&(Ge(n),fe(r),O(t.elseStatement)),fe(n);}else $e(e.visitNode(t,a,e.isStatement));else $e(e.visitNode(t,a,e.isStatement));}function K(t){if(oe(t)){var n=pe(),r=pe();De(n),fe(r),O(t.statement),fe(n),He(r,e.visitNode(t.expression,a,e.isExpression)),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function j(t){return Lt?(Ce(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function J(t){if(oe(t)){var n=pe(),r=De(n);fe(n),Xe(r,e.visitNode(t.expression,a,e.isExpression)),O(t.statement),Ge(n),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function z(t){return Lt?(Ce(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function U(t){if(oe(t)){var n=pe(),r=pe(),i=De(r);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?R(o):$e(e.setTextRange(e.createStatement(e.visitNode(o,a,e.isExpression)),o));}fe(n),t.condition&&Xe(i,e.visitNode(t.condition,a,e.isExpression)),O(t.statement),fe(r),t.incrementor&&$e(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,a,e.isExpression)),t.incrementor)),Ge(n),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function q(t){Lt&&Ce();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var i=0,o=r.declarations;i0?e.inlineExpressions(e.map(c,M)):void 0,e.visitNode(t.condition,a,e.isExpression),e.visitNode(t.incrementor,a,e.isExpression),e.visitNode(t.statement,a,e.isStatement,e.liftToBlock));}else t=e.visitEachChild(t,a,n);return Lt&&Ee(),t}function V(t){if(oe(t)){var n=de(),r=de(),i=e.createLoopVariable(),o=t.initializer;Dt(i),We(n,e.createArrayLiteral()),$e(e.createForIn(r,e.visitNode(t.expression,a,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(n,"push"),void 0,[r])))),We(i,e.createLiteral(0));var s=pe(),c=pe(),u=De(c);fe(s),Xe(u,e.createLessThan(i,e.createPropertyAccess(n,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var _=0,d=o.declarations;_0,"Expected continue statment to point to a valid Label."),Ge(n,t);}function G(t){if(Lt){var r=Ke(t.label&&e.unescapeLeadingUnderscores(t.label.escapedText));if(r>0)return ze(r,t)}return e.visitEachChild(t,a,n)}function H(t){var n=Be(t.label?e.unescapeLeadingUnderscores(t.label.escapedText):void 0);e.Debug.assert(n>0,"Expected break statment to point to a valid Label."),Ge(n,t);}function X(t){if(Lt){var r=Be(t.label&&e.unescapeLeadingUnderscores(t.label.escapedText));if(r>0)return ze(r,t)}return e.visitEachChild(t,a,n)}function Y(t){Ze(e.visitNode(t.expression,a,e.isExpression),t);}function Q(t){return Ue(e.visitNode(t.expression,a,e.isExpression),t)}function Z(t){oe(t)?(ve(_e(e.visitNode(t.expression,a,e.isExpression))),O(t.statement),be()):$e(e.visitNode(t,a,e.isStatement));}function ee(t){if(oe(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,i=Ae(),o=_e(e.visitNode(t.expression,a,e.isExpression)),s=[],c=-1,u=0;u0)break;d.push(e.createCaseClause(e.visitNode(f.expression,a,e.isExpression),[ze(s[u],f.expression)]));}else p++;d.length&&($e(e.createSwitch(o,e.createCaseBlock(d))),_+=d.length,d=[]),p>0&&(_+=p,p=0);}Ge(c>=0?s[c]:i);for(u=0;u=0;n--){var r=Kt[n];if(!Le(r))break;if(r.labelText===e)return!0}return!1}function Be(t){if(e.Debug.assert(void 0!==Rt),t)for(n=Kt.length-1;n>=0;n--){if(Le(r=Kt[n])&&r.labelText===t)return r.breakLabel;if(Ie(r)&&Me(t,n-1))return r.breakLabel}else for(var n=Kt.length-1;n>=0;n--){var r=Kt[n];if(Ie(r))return r.breakLabel}return 0}function Ke(t){if(e.Debug.assert(void 0!==Rt),t){for(n=Kt.length-1;n>=0;n--)if(Re(r=Kt[n])&&Me(t,n-1))return r.continueLabel}else for(var n=Kt.length-1;n>=0;n--){var r=Kt[n];if(Re(r))return r.continueLabel}return 0}function je(t){if(t>0){void 0===Jt&&(Jt=[]);var n=e.createLiteral(-1);return void 0===Jt[t]?Jt[t]=[n]:Jt[t].push(n),n}return e.createOmittedExpression()}function Je(n){var r=e.createLiteral(n);return e.addSyntheticTrailingComment(r,3,t(n)),r}function ze(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([Je(3),je(t)])),n)}function Ue(t,n){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Je(2),t]:[Je(2)])),n)}function qe(t){return e.setTextRange(e.createCall(e.createPropertyAccess(Vt,"sent"),void 0,[]),t)}function Ve(){nt(0);}function $e(e){e?nt(1,[e]):Ve();}function We(e,t,n){nt(2,[e,t],n);}function Ge(e,t){nt(3,[e],t);}function He(e,t,n){nt(4,[e,t],n);}function Xe(e,t,n){nt(5,[e,t],n);}function Ye(e,t){nt(7,[e],t);}function Qe(e,t){nt(6,[e],t);}function Ze(e,t){nt(8,[e],t);}function et(e,t){nt(9,[e],t);}function tt(){nt(10);}function nt(e,t,n){void 0===zt&&(zt=[],Ut=[],qt=[]),void 0===jt&&fe(pe());var r=zt.length;zt[r]=e,Ut[r]=t,qt[r]=n;}function rt(){tn=0,nn=0,$t=void 0,Wt=!1,Gt=!1,Ht=void 0,Xt=void 0,Yt=void 0,Qt=void 0,Zt=void 0;var t=it();return r(n,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Vt)],void 0,e.createBlock(t,t.length>0)),524288))}function it(){if(zt){for(var t=0;t=0;n--){var r=Zt[n];Xt=[e.createWith(r.expression,e.createBlock(Xt))];}if(Qt){var i=Qt.startLabel,a=Qt.catchLabel,o=Qt.finallyLabel,s=Qt.endLabel;Xt.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Vt,"trys"),"push"),void 0,[e.createArrayLiteral([je(i),je(a),je(o),je(s)])]))),Qt=void 0;}t&&Xt.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Vt,"label"),e.createLiteral(nn+1))));}Ht.push(e.createCaseClause(e.createLiteral(nn),Xt||[])),Xt=void 0;}function ut(e){if(jt)for(var t=0;t 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'};}(r||(r={}));!function(e){function t(t){function a(t){switch(t){case e.ModuleKind.AMD:return u;case e.ModuleKind.UMD:return l;default:return c}}function o(t){if(t.isDeclarationFile||!(e.isExternalModule(t)||Z.isolatedModules||67108864&t.transformFlags))return t;oe=t,se=e.collectExternalModuleInfo(t,ee,Z),le[e.getOriginalNodeId(t)]=se;var n=a(re)(t);return oe=void 0,se=void 0,ue=!1,e.aggregateTransformFlags(n)}function s(){return!(se.exportEquals||!e.isExternalModule(oe))}function c(n){Y();var i=[],a=Z.alwaysStrict||!Z.noImplicitUseStrict&&e.isExternalModule(oe),o=e.addPrologue(i,n.statements,a,f);s()&&e.append(i,K()),e.append(i,e.visitNode(se.externalHelpersImportDeclaration,f,e.isStatement)),e.addRange(i,e.visitNodes(n.statements,f,e.isStatement,o)),p(i,!1),e.addRange(i,Q());var c=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(i),n.statements));return se.hasExportStarsToExportValues&&!Z.importHelpers&&e.addEmitHelper(c,r),e.addEmitHelpers(c,t.readEmitHelpers()),c}function u(t){var n=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(t,te,Z),i=_(t,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames;return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(n,void 0,(r?[r]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(a,o)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(s),void 0,d(t))])))]),t.statements))}function l(t){var n=_(t,!1),r=n.aliasedModuleNames,i=n.unaliasedModuleNames,a=n.importAliasNames,o=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,[e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,i)),e.createIdentifier("factory")]))])))],!0),void 0));return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(o,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(a),void 0,d(t))]))]),t.statements))}function _(t,n){for(var r=[],i=[],a=[],o=0,s=t.amdDependencies;o=2?2:0)),t));}else r&&e.isDefaultImport(t)&&(n=e.append(n,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)),t)],ne>=2?2:0))));if(w(t)){var a=e.getOriginalNodeId(t);_e[a]=P(_e[a],t);}else n=P(n,t);return e.singleOrMany(n)}function x(t){var n=e.getExternalModuleNameLiteral(t,oe,te,ee,Z),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function S(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var n;if(re!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(J(t.name,x(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,x(t))],ne>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(J(e.getExportName(t),e.getLocalName(t))),t))),w(t)){var r=e.getOriginalNodeId(t);_e[r]=F(_e[r],t);}else n=F(n,t);return e.singleOrMany(n)}function k(r){if(r.moduleSpecifier){var i=e.getGeneratedNameForNode(r);if(r.exportClause){var a=[];re!==e.ModuleKind.AMD&&a.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,x(r))])),r));for(var o=0,s=r.exportClause.elements;o0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(e.createVariableDeclaration(t),64);k?k.push(n):k=[n];}function m(t){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),T?T.push(t):T=[t];}function g(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended."),E[A]=k,N[A]=T,A++,k=void 0,T=void 0;}function y(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is already suspended."),w=!0;}function h(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(w,"Lexical environment is not suspended."),w=!1;}function v(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended.");var t;if((k||T)&&(T&&(t=T.slice()),k)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(k));t?t.push(n):t=[n];}return A--,k=E[A],T=N[A],0===A&&(E=[],N=[]),t}function b(t){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),C=e.append(C,t);}function x(){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed.");var t=C;return C=void 0,t}function S(){if(F<3){for(var t=0,n=i;t=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),S.sourceMapMappings+=r(v.nameIndex-x),x=v.nameIndex),b=v,S.sourceMapDecodedMappings.push(b);}}function u(t){if(!C&&!e.positionIsSynthesized(t)){T&&e.performance.mark("beforeSourcemap");var r=e.getLineAndCharacterOfPosition(m,t);r.line++,r.character++;var i=n.getLine(),a=n.getColumn();!v||v.emittedLine!==i||v.emittedColumn!==a||v.sourceIndex===h&&(v.sourceLine>r.line||v.sourceLine===r.line&&v.sourceColumn>r.character)?(c(),v={emittedLine:i,emittedColumn:a,sourceLine:r.line,sourceColumn:r.character,sourceIndex:h}):(v.sourceLine=r.line,v.sourceColumn=r.character,v.sourceIndex=h),T&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"));}}function l(e,t,n){if(C)return n(e,t);if(t){var r=t.emitNode,i=r&&r.flags,o=r&&r.sourceMapRange,s=o||t,c=s.pos,l=s.end,_=o&&o.source,p=m;_===p&&(_=void 0),_&&d(_),287!==t.kind&&0==(16&i)&&c>=0&&u(a(c)),_&&d(p),64&i?(C=!0,n(e,t),C=!1):n(e,t),_&&d(_),287!==t.kind&&0==(32&i)&&l>=0&&u(l),_&&d(p);}}function _(e,t,n,r){if(C)return r(t,n);var i=e&&e.emitNode,o=i&&i.flags,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[t];return n=a(s?s.pos:n),0==(128&o)&&n>=0&&u(n),n=r(t,n),s&&(n=s.end),0==(256&o)&&n>=0&&u(n),n}function d(n){if(!C){g=(m=n).text;var r=k.sourceRoot?t.getCommonSourceDirectory():y,i=e.getRelativePathToDirectoryOrUrl(r,m.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);-1===(h=e.indexOf(S.sourceMapSources,i))&&(h=S.sourceMapSources.length,S.sourceMapSources.push(i),S.inputSourceFileNames.push(m.fileName),k.inlineSources&&S.sourceMapSourcesContent.push(m.text));}}function p(){if(!C)return c(),JSON.stringify({version:3,file:S.sourceMapFile,sourceRoot:S.sourceMapSourceRoot,sources:S.sourceMapSources,names:S.sourceMapNames,mappings:S.sourceMapMappings,sourcesContent:S.sourceMapSourcesContent})}function f(){if(!C){if(k.inlineSourceMap){var t=e.convertToBase64(p());return S.jsSourceMappingURL="data:application/json;base64,"+t}return S.jsSourceMappingURL}}var m,g,y,h,v,b,x,S,k=t.getCompilerOptions(),T=k.extendedDiagnostics,C=!(k.sourceMap||k.inlineSourceMap);return{initialize:o,reset:s,getSourceMapData:function(){return S},setSourceFile:d,emitPos:u,emitNodeWithSourceMap:l,emitTokenWithSourceMap:_,getText:p,getSourceMappingURL:f}}function n(e){if(e<64)return a.charAt(e);throw TypeError(e+": not a 64 based value")}function r(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;(e>>=5)>0&&(r|=32),t+=n(r);}while(e>0);return t}var i={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";}(r||(r={}));!function(e){function t(t,n){function r(t,n,r){if(j)r(t,n);else if(n){K=!1;var a=n.emitNode,o=a&&a.flags,s=a&&a.commentRange||n,c=s.pos,u=s.end;if(c<0&&u<0||c===u)i(t,n,a,o,r);else{I&&e.performance.mark("preEmitNodeWithComment");var l=287!==n.kind,d=c<0||0!=(512&o)||10===n.kind,p=u<0||0!=(1024&o)||10===n.kind;d||_(c,l);var f=R,g=M,y=B;d||(R=c),p||(M=u,227===n.kind&&(B=u)),I&&e.performance.measure("commentTime","preEmitNodeWithComment"),i(t,n,a,o,r),I&&e.performance.mark("postEmitNodeWithComment"),R=f,M=g,B=y,!p&&l&&m(u),I&&e.performance.measure("commentTime","postEmitNodeWithComment");}}}function i(t,n,r,i,s){var c=r&&r.leadingComments;e.some(c)&&(I&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,a),I&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,n,i,s);var l=r&&r.trailingComments;e.some(l)&&(I&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,o),I&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"));}function a(e){2===e.kind&&A.writeLine(),s(e),e.hasTrailingNewLine||2===e.kind?A.writeLine():A.write(" ");}function o(e){A.isAtStartOfLine()||A.write(" "),s(e),e.hasTrailingNewLine&&A.writeLine();}function s(t){var n=c(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,A,0,n.length,L);}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,n,r){2048&n?(j=!0,r(e,t),j=!1):r(e,t);}function l(t,n,r){I&&e.performance.mark("preEmitBodyWithDetachedComments");var i=n.pos,a=n.end,o=e.getEmitFlags(t),s=i<0||0!=(512&o),c=j||a<0||0!=(1024&o);s||D(n),I&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!j?(j=!0,r(t),j=!1):r(t),I&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(_(n.end,!0),K&&!A.isAtStartOfLine()&&A.writeLine()),I&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns");}function _(e,t){K=!1,t?v(e,p):0===e&&v(e,d);}function d(e,t,n,r,i){N(e,t)&&p(e,t,n,r,i);}function p(t,r,i,a,o){K||(e.emitNewLineBeforeLeadingCommentOfPosition(P,A,o,t),K=!0),n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a?A.writeLine():A.write(" ");}function f(e){j||-1===e||_(e,!0);}function m(e){b(e,g);}function g(t,r,i,a){A.isAtStartOfLine()||A.write(" "),n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a&&A.writeLine();}function y(t,n){j||(I&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),b(t,n?g:h),I&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"));}function h(t,r,i,a){n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a?A.writeLine():A.write(" ");}function v(t,n){-1!==R&&t===R||(T(t)?C(n):e.forEachLeadingCommentRange(O,t,n,t));}function b(t,n){(-1===M||t!==M&&t!==B)&&e.forEachTrailingCommentRange(O,t,n);}function x(){w=void 0,O=void 0,P=void 0,F=void 0;}function S(e){A=e;}function k(t){O=(w=t).text,P=e.getLineStarts(w),F=void 0;}function T(t){return void 0!==F&&e.lastOrUndefined(F).nodePos===t}function C(t){var n=e.lastOrUndefined(F).detachedCommentEndPos;F.length-1?F.pop():F=void 0,e.forEachLeadingCommentRange(O,n,t,n);}function D(t){var n=e.emitDetachedComments(O,P,A,E,t,L,j);n&&(F?F.push(n):F=[n]);}function E(t,r,i,a,o,s){n&&n(a),e.writeCommentRange(t,r,i,a,o,s),n&&n(o);}function N(t,n){return e.isRecognizedTripleSlashComment(O,t,n)}var A,w,O,P,F,I=t.extendedDiagnostics,L=e.getNewLineCharacter(t),R=-1,M=-1,B=-1,K=!1,j=t.removeComments;return{reset:x,setWriter:S,setSourceFile:k,emitNodeWithComments:r,emitBodyWithDetachedComments:l,emitTrailingCommentsOfPosition:y,emitLeadingCommentsOfPosition:f}}e.createCommentWriter=t;}(r||(r={}));!function(e){function t(t,r,i){function a(e,i){var a=e.declarationFilePath;n(t,r,o,a,i,!1);}var o=e.createDiagnosticCollection();return e.forEachEmittedFile(t,a,i),o.getDiagnostics(i?i.fileName:void 0)}function n(t,n,r,i,a,o){function s(e){return be.substring(e.pos,e.end).indexOf("@internal")>=0}function c(t){if(t){var n=e.getLeadingCommentRanges(be,t.pos);if(e.forEach(n,s))return;oe(t);}}function u(){var t=e.createTextWriter(ge);t.trackSymbol=f,t.reportInaccessibleThisError=g,t.reportPrivateInBaseOfClassExpression=m,t.writeKeyword=t.write,t.writeOperator=t.write,t.writePunctuation=t.write,t.writeSpace=t.write,t.writeStringLiteral=t.writeLiteral,t.writeParameter=t.write,t.writeProperty=t.write,t.writeSymbol=t.write,l(t);}function l(e){pe=e,ce=e.write,de=e.writeTextOfNode,ue=e.writeLine,le=e.increaseIndent,_e=e.decreaseIndent;}function _(t){var n=pe;e.forEach(t,function(t){var n;226===t.kind?n=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(Oe,function(e){return e.node===n?e:void 0});if(!r&&Ce&&(r=e.forEach(Ce,function(e){return e.node===n?e:void 0})),r)if(238===r.node.kind)r.isVisible=!0;else{u();for(var i=r.indent;i;i--)le();233===n.kind&&(e.Debug.assert(void 0===Ce),Ce=[]),O(n),233===n.kind&&(r.subModuleElementDeclarationEmitInfo=Ce,Ce=void 0),r.asynchronousOutput=pe.getText();}}),l(n);}function d(t){if(t){De||(De=e.createMap());for(var n=0,r=t;n")));}(t);case 159:return function(e){i(e.typeName),e.typeArguments&&(ce("<"),x(e.typeArguments,T),ce(">"));}(t);case 162:return function(e){ce("typeof "),i(e.exprName);}(t);case 164:return function(e){T(e.elementType),ce("[]");}(t);case 165:return function(e){ce("["),x(e.elementTypes,T),ce("]");}(t);case 166:return function(e){b(e.types," | ",T);}(t);case 167:return function(e){b(e.types," & ",T);}(t);case 168:return function(e){ce("("),T(e.type),ce(")");}(t);case 170:return function(t){ce(e.tokenToString(t.operator)),ce(" "),T(t.type);}(t);case 171:return function(e){T(e.objectType),ce("["),T(e.indexType),ce("]");}(t);case 172:return function(e){var t=he;he=e,ce("{"),ue(),le(),e.readonlyToken&&ce("readonly "),ce("["),r(e.typeParameter.name),ce(" in "),T(e.typeParameter.constraint),ce("]"),e.questionToken&&ce("?"),ce(": "),T(e.type),ce(";"),ue(),_e(),ce("}"),he=t;}(t);case 160:case 161:return re(t);case 163:return function(e){ce("{"),e.members.length&&(ue(),le(),v(e.members),_e()),ce("}");}(t);case 71:case 143:return i(t);case 158:return function(e){de(be,e.parameterName),ce(" is "),T(e.type);}(t)}}function C(t){be=t.text,xe=e.getLineStarts(t),Se=t.identifiers,ke=e.isExternalModule(t),he=t,e.emitDetachedComments(be,xe,pe,e.writeCommentRange,t,ge,!0),v(t.statements);}function D(e){if(!Se.has(e))return e;for(var t=0;;){var n=e+"_"+ ++t;if(!Se.has(n))return n}}function E(e,t,r,i){var a=D(t);return i&&ce("declare "),ce("const "),ce(a),ce(": "),pe.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,he,18436,pe),ce(";"),ue(),a}function N(t){if(71===t.expression.kind)ce(t.isExportEquals?"export = ":"export default "),de(be,t.expression);else{var r=E(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},we);ce(t.isExportEquals?"export = ":"export default "),ce(r);}ce(";"),ue(),71===t.expression.kind&&_(n.collectLinkedAliases(t.expression));}function A(e){return n.isDeclarationVisible(e)}function w(e,t){if(t)O(e);else if(237===e.kind||265===e.parent.kind&&ke){var r=void 0;if(Ce&&265!==e.parent.kind)Ce.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});else{if(238===e.kind){var i=e;i.importClause&&(r=i.importClause.name&&n.isDeclarationVisible(i.importClause)||L(i.importClause.namedBindings));}Oe.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});}}}function O(t){switch(t.kind){case 228:return ne(t);case 208:return ee(t);case 230:return H(t);case 229:return G(t);case 231:return z(t);case 232:return U(t);case 233:return J(t);case 237:return I(t);case 238:return R(t);default:e.Debug.fail("Unknown symbol kind");}}function P(t){if(265===t.parent.kind){var n=e.getModifierFlags(t);1&n&&ce("export "),512&n?ce("default "):230!==t.kind&&we&&ce("declare ");}}function F(e){8&e?ce("private "):16&e&&ce("protected "),32&e&&ce("static "),64&e&&ce("readonly "),128&e&&ce("abstract ");}function I(t){function n(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),de(be,t.name),ce(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(k(t.moduleReference,n),ce(";")):(ce("require("),M(t),ce(");")),pe.writeLine();}function L(t){if(t)return 240===t.kind?n.isDeclarationVisible(t):e.forEach(t.elements,function(e){return n.isDeclarationVisible(e)})}function R(t){if(Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),t.importClause){var r=pe.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&de(be,t.importClause.name),t.importClause.namedBindings&&L(t.importClause.namedBindings)&&(r!==pe.getTextPos()&&ce(", "),240===t.importClause.namedBindings.kind?(ce("* as "),de(be,t.importClause.namedBindings.name)):(ce("{ "),x(t.importClause.namedBindings.elements,B,n.isDeclarationVisible),ce(" }"))),ce(" from ");}M(t),ce(";"),pe.writeLine();}function M(r){ve=ve||233!==r.kind;var i;if(237===r.kind){var a=r;i=e.getExternalModuleImportEqualsDeclarationExpression(a);}else i=233===r.kind?r.name:(a=r).moduleSpecifier;if(9===i.kind&&me&&(ye.out||ye.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,n,r);if(o)return ce('"'),ce(o),void ce('"')}de(be,i);}function B(e){e.propertyName&&(de(be,e.propertyName),ce(" as ")),de(be,e.name);}function K(e){B(e),_(n.collectLinkedAliases(e.propertyName||e.name));}function j(e){Ne(e),ce("export "),e.exportClause?(ce("{ "),x(e.exportClause.elements,K),ce(" }")):ce("*"),e.moduleSpecifier&&(ce(" from "),M(e)),ce(";"),pe.writeLine();}function J(t){for(Ne(t),P(t),e.isGlobalScopeAugmentation(t)?ce("global "):(ce(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?M(t):de(be,t.name));t.body&&234!==t.body.kind;)t=t.body,ce("."),de(be,t.name);var n=he;t.body?(he=t,ce(" {"),ue(),le(),v(t.body.statements),_e(),ce("}"),ue(),he=n):ce(";");}function z(t){function n(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}var r=he;he=t,Ne(t),P(t),ce("type "),de(be,t.name),$(t.typeParameters),ce(" = "),k(t.type,n),ce(";"),ue(),he=r;}function U(t){Ne(t),P(t),e.isConst(t)&&ce("const "),ce("enum "),de(be,t.name),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue();}function q(t){Ne(t),de(be,t.name);var r=n.getConstantValue(t);void 0!==r&&(ce(" = "),ce(e.getTextOfConstantValue(r))),ce(","),ue();}function V(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function $(t){function n(t){function n(){var n;switch(t.parent.kind){case 229:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150:n=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 228:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231:n=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind);}return{diagnosticMessage:n,errorNode:t,typeName:t.name}}le(),Ne(t),_e(),de(be,t.name),t.constraint&&!V(t)&&(ce(" extends "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.constraint)):k(t.constraint,n)),t.default&&!V(t)&&(ce(" = "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.default)):k(t.default,n));}t&&(ce("<"),x(t,n),ce(">"));}function W(t,n){function r(t){function r(){var r;return r=229===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}e.isEntityNameExpression(t.expression)?k(t,r):n||95!==t.expression.kind||ce("null");}t&&(ce(n?" implements ":" extends "),x(t,r));}function G(t){var n=he;he=t;var r,i=e.getClassExtendsHeritageClauseElement(t);i&&!e.isEntityNameExpression(i.expression)&&(r=95===i.expression.kind?"null":E(i.expression,t.name.escapedText+"_base",{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:i,typeName:t.name},!e.findAncestor(t,function(e){return 233===e.kind}))),Ne(t),P(t),e.hasModifier(t,128)&&ce("abstract "),ce("class "),de(be,t.name),$(t.typeParameters),i&&(e.isEntityNameExpression(i.expression)?W([i],!1):(ce(" extends "),ce(r),i.typeArguments&&(ce("<"),x(i.typeArguments,T),ce(">")))),W(e.getClassImplementsHeritageClauseElements(t),!0),ce(" {"),ue(),le(),function(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&X(t);});}(e.getFirstConstructorWithBody(t)),v(t.members),_e(),ce("}"),ue(),he=n;}function H(t){Ne(t),P(t),ce("interface "),de(be,t.name);var n=he;he=t,$(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&W(r,!1),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue(),he=n;}function X(t){e.hasDynamicName(t)||(Ne(t),F(e.getModifierFlags(t)),Y(t),ce(";"),ue());}function Y(t){function r(n){return 226===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:149===t.kind||148===t.kind||146===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:229===t.parent.kind||146===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}function i(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function a(e){for(var t=[],n=0,r=e.elements;n0?e.parameters[0].type:void 0}function r(t){var n;return 154===i.kind?(n=e.hasModifier(i.parent,32)?t.errorModuleName?e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:i.parameters[0],typeName:i.name}):(n=e.hasModifier(i,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0,{diagnosticMessage:n,errorNode:i.name,typeName:void 0})}if(!e.hasDynamicName(t)){var i,a=e.getAllAccessorDeclarations(t.parent.members,t);if(t===a.firstAccessor){if(Ne(a.getAccessor),Ne(a.setAccessor),F(e.getModifierFlags(t)|(a.setAccessor?0:64)),de(be,t.name),!e.hasModifier(t,8)){i=t;var o=n(t);if(!o){var s=153===t.kind?a.setAccessor:a.getAccessor;(o=n(s))&&(i=s);}y(t,o,r);}ce(";"),ue();}}}function ne(t){e.hasDynamicName(t)||n.isImplementationOfOverload(t)||(Ne(t),228===t.kind?P(t):151!==t.kind&&152!==t.kind||F(e.getModifierFlags(t)),228===t.kind?(ce("function "),de(be,t.name)):152===t.kind?ce("constructor"):(de(be,t.name),e.hasQuestionToken(t)&&ce("?")),ie(t));}function re(e){Ne(e),ie(e);}function ie(t){function n(n){var r;switch(t.kind){case 156:r=n.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 155:r=n.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 157:r=n.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 151:case 150:r=e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:229===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 228:r=n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:e.Debug.fail("This is unknown kind for signature: "+t.kind);}return{diagnosticMessage:r,errorNode:t.name||t}}var r=he;he=t;var i=!1;if(157===t.kind)F(e.getModifierFlags(t)),ce("[");else{if(152===t.kind&&e.hasModifier(t,8))return ce("();"),void ue();if(156===t.kind||161===t.kind)ce("new ");else if(160===t.kind){var a=pe.getText();t.typeParameters&&"<"===a.charAt(a.length-1)&&(i=!0,ce("("));}$(t.typeParameters),ce("(");}x(t.parameters,ae),ce(157===t.kind?"]":")");var o=160===t.kind||161===t.kind;o||163===t.parent.kind?t.type&&(ce(o?" => ":": "),T(t.type)):152===t.kind||e.hasModifier(t,8)||h(t,n),he=r,o?i&&ce(")"):(ce(";"),ue());}function ae(t){function r(e){var n=i(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function i(n){switch(t.parent.kind){case 152:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 156:return n.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 155:return n.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 157:return n.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 151:case 150:return e.hasModifier(t.parent,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 228:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:e.Debug.fail("This is unknown parent for parameter: "+t.parent.kind);}}function a(e){if(174===e.kind)ce("{"),x(e.elements,o),ce("}");else if(175===e.kind){ce("[");var t=e.elements;x(t,o),t&&t.hasTrailingComma&&ce(", "),ce("]");}}function o(t){200===t.kind?ce(" "):176===t.kind&&(t.propertyName&&(de(be,t.propertyName),ce(": ")),t.name&&(e.isBindingPattern(t.name)?a(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&ce("..."),de(be,t.name))));}le(),Ne(t),t.dotDotDotToken&&ce("..."),e.isBindingPattern(t.name)?a(t.name):de(be,t.name),n.isOptionalParameter(t)&&ce("?"),_e(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?Q(t):e.hasModifier(t.parent,8)||y(t,t.type,r);}function oe(e){switch(e.kind){case 228:case 233:case 237:case 230:case 229:case 231:case 232:return w(e,A(e));case 208:return w(e,Z(e));case 238:return w(e,!e.importClause);case 244:return j(e);case 152:case 151:case 150:return ne(e);case 156:case 155:case 157:return re(e);case 153:case 154:return te(e);case 149:case 148:return X(e);case 264:return q(e);case 243:return N(e);case 265:return C(e)}}function se(n,r,a){function o(t,i){var a=266===i.kind;a&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),s=t.declarationFilePath||t.jsFilePath,c=a);}var s,c=!1;return n.isDeclarationFile?s=n.fileName:e.forEachEmittedFile(t,o,n,a),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(i)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Pe+='/// '+ge),c}var ce,ue,le,_e,de,pe,fe=266===a.kind?a.sourceFiles:[a],me=266===a.kind,ge=t.getNewLine(),ye=t.getCompilerOptions();u();var he,ve,be,xe,Se,ke,Te,Ce,De,Ee=!1,Ne=ye.removeComments?e.noop:S,Ae=ye.stripInternal?c:oe,we=!0,Oe=[],Pe="",Fe=[],Ie=!1,Le=[];return e.forEach(fe,function(n){if(!e.isSourceFileJavaScript(n)){if(ye.noResolve||e.forEach(n.referencedFiles,function(r){var i=e.tryResolveScriptReference(t,n,r);i&&!e.contains(Fe,i)&&(se(i,!me&&!Ie,o)&&(Ie=!0),Fe.push(i));}),ve=!1,me&&e.isExternalModule(n)?e.isExternalModule(n)&&(we=!1,ce('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),ue(),le(),C(n),_e(),ce("}"),ue()):(we=!0,C(n)),Oe.length){var r=pe;e.forEach(Oe,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(238===t.node.kind),u(),e.Debug.assert(0===t.indent||1===t.indent&&me);for(n=0;n'+ge;}),{reportedDeclarationError:Ee,moduleElementDeclarationEmitInfo:Le,synchronousDeclarationOutput:pe.getText(),referencesOutput:Pe}}function r(t,r,i,a,o,s){function c(t,n){var r=0,i="";return e.forEach(n,function(e){e.asynchronousOutput&&(i+=t.substring(r,e.outputPos),i+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),r=e.outputPos);}),i+=t.substring(r)}var u=n(i,a,o,t,r,s),l=u.reportedDeclarationError||i.isEmitBlocked(t)||i.getCompilerOptions().noEmit;if(!l){var _=266===r.kind?r.sourceFiles:[r],d=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(i,o,t,d,i.getCompilerOptions().emitBOM,_);}return l}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=r;}(r||(r={}));!function(e){function t(t,i,a,o){var s=e.isArray(a)?a:e.getSourceFilesToEmit(t,a),c=t.getCompilerOptions();if(c.outFile||c.out)s.length&&i({jsFilePath:d=c.outFile||c.out,sourceMapFilePath:p=n(d,c),declarationFilePath:f=c.declaration?e.removeFileExtension(d)+".d.ts":""},e.createBundle(s),o);else for(var u=0,l=s;u "),h(e.type);}function Z(e){Mn("new "),An(e,e.typeParameters),wn(e,e.parameters),Mn(" => "),h(e.type);}function ee(e){Mn("typeof "),h(e.exprName);}function te(t){Mn("{"),t.members.length>0&&In(t,t.members,1&e.getEmitFlags(t)?448:65),Mn("}");}function ne(e){h(e.elementType),Mn("[]");}function re(e){Mn("["),In(e,e.elementTypes,336),Mn("]");}function ie(e){In(e,e.types,260);}function ae(e){In(e,e.types,264);}function oe(e){Mn("("),h(e.type),Mn(")");}function se(){Mn("this");}function ce(e){Vn(e.operator),Mn(" "),h(e.type);}function ue(e){h(e.objectType),Mn("["),h(e.indexType),Mn("]");}function le(t){var n=e.getEmitFlags(t);Mn("{"),1&n?Mn(" "):(Bn(),Kn()),zn(t.readonlyToken,"readonly "),Mn("["),h(t.typeParameter.name),Mn(" in "),h(t.typeParameter.constraint),Mn("]"),zn(t.questionToken,"?"),Mn(": "),h(t.type),Mn(";"),1&n?Mn(" "):(Bn(),jn()),Mn("}");}function _e(e){b(e.literal);}function de(e){var t=e.elements;0===t.length?Mn("{}"):(Mn("{"),In(e,t,432),Mn("}"));}function pe(e){0===e.elements.length?Mn("[]"):(Mn("["),In(e,e.elements,304),Mn("]"));}function fe(e){Cn(e.propertyName,": "),zn(e.dotDotDotToken,"..."),h(e.name),kn(" = ",e.initializer);}function me(e){var t=e.elements;0===t.length?Mn("[]"):Ln(e,t,4466|(e.multiLine?32768:0));}function ge(t){var n=t.properties;if(0===n.length)Mn("{}");else{var r=65536&e.getEmitFlags(t);r&&Kn();var i=t.multiLine?32768:0;In(t,n,978|(kr.languageVersion>=1?32:0)|i),r&&jn();}}function ye(t){var n=!1,r=!1;if(!(131072&e.getEmitFlags(t))){var i=t.expression.end,a=e.skipTrivia(kr.text,t.expression.end)+1,o=e.createToken(23);o.pos=i,o.end=a,n=tr(t,t.expression,o),r=tr(t,o,t.name);}b(t.expression),Hn(n),Mn(!n&&he(t.expression)?"..":"."),Hn(r),h(t.name),Xn(n,r);}function he(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=or(n);return!n.numericLiteralFlags&&r.indexOf(e.tokenToString(23))<0}if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){var i=e.getConstantValue(n);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}function ve(e){b(e.expression),Mn("["),b(e.argumentExpression),Mn("]");}function be(e){b(e.expression),Nn(e,e.typeArguments),Ln(e,e.arguments,1296);}function xe(e){Mn("new "),b(e.expression),Nn(e,e.typeArguments),Ln(e,e.arguments,9488);}function Se(e){b(e.tag),Mn(" "),b(e.template);}function ke(e){Mn("<"),h(e.type),Mn(">"),b(e.expression);}function Te(e){Mn("("),b(e.expression),Mn(")");}function Ce(e){yt(e);}function De(e){En(e,e.decorators),xn(e,e.modifiers),vt(e,Ee);}function Ee(e){An(e,e.typeParameters),Pn(e,e.parameters),Sn(": ",e.type),Mn(" =>");}function Ne(e){Mn("delete "),b(e.expression);}function Ae(e){Mn("typeof "),b(e.expression);}function we(e){Mn("void "),b(e.expression);}function Oe(e){Mn("await "),b(e.expression);}function Pe(e){Vn(e.operator),Fe(e)&&Mn(" "),b(e.operand);}function Fe(e){var t=e.operand;return 192===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Ie(e){b(e.operand),Vn(e.operator);}function Le(e){var t=26!==e.operatorToken.kind,n=tr(e,e.left,e.operatorToken),r=tr(e,e.operatorToken,e.right);b(e.left),Hn(n,t?" ":void 0),Gr(e.operatorToken.pos),qn(e.operatorToken),Wr(e.operatorToken.end,!0),Hn(r," "),b(e.right),Xn(n,r);}function Re(e){var t=tr(e,e.condition,e.questionToken),n=tr(e,e.questionToken,e.whenTrue),r=tr(e,e.whenTrue,e.colonToken),i=tr(e,e.colonToken,e.whenFalse);b(e.condition),Hn(t," "),Mn("?"),Hn(n," "),b(e.whenTrue),Xn(t,n),Hn(r," "),Mn(":"),Hn(i," "),b(e.whenFalse),Xn(r,i);}function Me(e){h(e.head),In(e,e.templateSpans,131072);}function Be(e){Mn(e.asteriskToken?"yield*":"yield"),kn(" ",e.expression);}function Ke(e){Mn("..."),b(e.expression);}function je(e){Dt(e);}function Je(e){b(e.expression),Nn(e,e.typeArguments);}function ze(e){b(e.expression),e.type&&(Mn(" as "),h(e.type));}function Ue(e){b(e.expression),Mn("!");}function qe(e){Un(e.keywordToken,e.pos),Mn("."),h(e.name);}function Ve(e){b(e.expression),h(e.literal);}function $e(e){nr(e)?(Un(17,e.pos,e),Mn(" "),Un(18,e.statements.end,e)):(Un(17,e.pos,e),We(e),Kn(),Gr(e.statements.end),jn(),Un(18,e.statements.end,e));}function We(t){1&e.getEmitFlags(t)?In(t,t.statements,384):In(t,t.statements,65);}function Ge(e){xn(e,e.modifiers),h(e.declarationList),Mn(";");}function He(){Mn(";");}function Xe(e){b(e.expression),Mn(";");}function Ye(e){var t=Un(90,e.pos,e);Mn(" "),Un(19,t,e),b(e.expression),Un(20,e.expression.end,e),Dn(e,e.thenStatement),e.elseStatement&&($n(e),Un(82,e.thenStatement.end,e),211===e.elseStatement.kind?(Mn(" "),h(e.elseStatement)):Dn(e,e.elseStatement));}function Qe(t){Mn("do"),Dn(t,t.statement),e.isBlock(t.statement)?Mn(" "):$n(t),Mn("while ("),b(t.expression),Mn(");");}function Ze(e){Mn("while ("),b(e.expression),Mn(")"),Dn(e,e.statement);}function et(e){var t=Un(88,e.pos);Mn(" "),Un(19,t,e),rt(e.initializer),Mn(";"),kn(" ",e.condition),Mn(";"),kn(" ",e.incrementor),Mn(")"),Dn(e,e.statement);}function tt(e){var t=Un(88,e.pos);Mn(" "),Un(19,t),rt(e.initializer),Mn(" in "),b(e.expression),Un(20,e.expression.end),Dn(e,e.statement);}function nt(e){var t=Un(88,e.pos);Mn(" "),Cn(e.awaitModifier," "),Un(19,t),rt(e.initializer),Mn(" of "),b(e.expression),Un(20,e.expression.end),Dn(e,e.statement);}function rt(e){void 0!==e&&(227===e.kind?h(e):b(e));}function it(e){Un(77,e.pos),Sn(" ",e.label),Mn(";");}function at(e){Un(72,e.pos),Sn(" ",e.label),Mn(";");}function ot(t,n,r){var i=r&&e.getParseTreeNode(r);return i&&i.kind===r.kind&&(n=e.skipTrivia(kr.text,n)),n=Un(t,n,r),i&&i.kind===r.kind&&Wr(n,!0),n}function st(e){ot(96,e.pos,e),kn(" ",e.expression),Mn(";");}function ct(e){Mn("with ("),b(e.expression),Mn(")"),Dn(e,e.statement);}function ut(e){var t=Un(98,e.pos);Mn(" "),Un(19,t),b(e.expression),Un(20,e.expression.end),Mn(" "),h(e.caseBlock);}function lt(e){h(e.label),Mn(": "),h(e.statement);}function _t(e){Mn("throw"),kn(" ",e.expression),Mn(";");}function dt(e){Mn("try "),h(e.tryBlock),e.catchClause&&($n(e),h(e.catchClause)),e.finallyBlock&&($n(e),Mn("finally "),h(e.finallyBlock));}function pt(e){Un(78,e.pos),Mn(";");}function ft(e){h(e.name),Sn(": ",e.type),kn(" = ",e.initializer);}function mt(t){Mn(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),In(t,t.declarations,272);}function gt(e){yt(e);}function yt(e){En(e,e.decorators),xn(e,e.modifiers),Mn(e.asteriskToken?"function* ":"function "),v(e.name),vt(e,bt);}function ht(e,t){St(t);}function vt(t,n){var r=t.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(t);i&&Kn(),524288&e.getEmitFlags(t)?(n(t),Lr?Lr(3,r,ht):St(r)):(sr(),n(t),Lr?Lr(3,r,ht):St(r),cr()),i&&jn();}else n(t),Mn(" "),b(r);else n(t),Mn(";");}function bt(e){An(e,e.typeParameters),wn(e,e.parameters),Sn(": ",e.type);}function xt(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,kr))return!1;if(Yn(t,t.statements,2)||Zn(t,t.statements,2))return!1;for(var n,r=0,i=t.statements;r0&&h(e.attributes),Mn("/>");}function Xt(e){Mn("<"),rn(e.tagName),Jn(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&h(e.attributes),Mn(">");}function Yt(e){Ar.writeLiteral(ar(e,!0));}function Qt(e){Mn("");}function Zt(e){In(e,e.properties,131328);}function en(e){h(e.name),Sn("=",e.initializer);}function tn(e){Mn("{..."),b(e.expression),Mn("}");}function nn(e){e.expression&&(Mn("{"),e.dotDotDotToken&&Mn("..."),b(e.expression),Mn("}"));}function rn(e){71===e.kind?b(e):h(e);}function an(e){Mn("case "),b(e.expression),Mn(":"),sn(e,e.statements);}function on$$1(e){Mn("default:"),sn(e,e.statements);}function sn(t,n){var r=1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],kr));n.length>0&&Wr(n.pos),r?(Mn(" "),h(n[0])):In(t,n,81985);}function cn(e){Mn(" "),Vn(e.token),Mn(" "),In(e,e.types,272);}function un(e){var t=Un(74,e.pos);Mn(" "),e.variableDeclaration&&(Un(19,t),h(e.variableDeclaration),Un(20,e.variableDeclaration.end),Mn(" ")),h(e.block);}function ln(t){h(t.name),Mn(": ");var n=t.initializer;if(Wr&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);Wr(r.pos);}b(n);}function _n(e){h(e.name),e.objectAssignmentInitializer&&(Mn(" = "),b(e.objectAssignmentInitializer));}function dn(e){e.expression&&(Mn("..."),b(e.expression));}function pn(e){h(e.name),kn(" = ",e.initializer);}function fn(t){Bn();var n=t.statements;!$r||0!==n.length&&e.isPrologueDirective(n[0])&&!e.nodeIsSynthesized(n[0])?mn(t):$r(t,n,mn);}function mn(t){var n=t.statements;sr(),w(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});In(t,n,1,-1===r?n.length:r),cr();}function gn(e){b(e.expression);}function yn(e){Ln(e,e.elements,272);}function hn(t,n,r){for(var i=0;i0)&&Bn(),h(a),r&&r.set(a.expression.text,!0));}return t.length}function vn(t){if(e.isSourceFile(t))m(t),hn(t.statements);else for(var n=e.createMap(),r=0,i=t.sourceFiles;r=r.length||0===o;if(!(_&&16384&i)){if(7680&i&&Mn(c(i)),Kr&&Kr(r),_)1&i?Bn():128&i&&Mn(" ");else{var d=0==(131072&i),p=d;Yn(n,r,i)?(Bn(),p=!1):128&i&&Mn(" "),64&i&&Kn();for(var f=void 0,m=void 0,g=s(i),y=0;y"],e[4096]=["[","]"],e}();e.forEachEmittedFile=t,e.emitFiles=a,e.createPrinter=o;var d;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i";}(d||(d={}));var p;!function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.DelimitersMask=28]="DelimitersMask",e[e.AllowTrailingComma=32]="AllowTrailingComma",e[e.Indented=64]="Indented",e[e.SpaceBetweenBraces=128]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",e[e.Braces=512]="Braces",e[e.Parenthesis=1024]="Parenthesis",e[e.AngleBrackets=2048]="AngleBrackets",e[e.SquareBrackets=4096]="SquareBrackets",e[e.BracketsMask=7680]="BracketsMask",e[e.OptionalIfUndefined=8192]="OptionalIfUndefined",e[e.OptionalIfEmpty=16384]="OptionalIfEmpty",e[e.Optional=24576]="Optional",e[e.PreferNewLine=32768]="PreferNewLine",e[e.NoTrailingNewLine=65536]="NoTrailingNewLine",e[e.NoInterveningComments=131072]="NoInterveningComments",e[e.Modifiers=131328]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=448]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=65]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=336]="TupleTypeElements",e[e.UnionTypeConstituents=260]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=432]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=304]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=978]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",e[e.CommaListElements=272]="CommaListElements",e[e.CallExpressionArguments=1296]="CallExpressionArguments",e[e.NewExpressionArguments=9488]="NewExpressionArguments",e[e.TemplateExpressionSpans=131072]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=384]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=65]="MultiLineBlockStatements",e[e.VariableDeclarationList=272]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=256]="ClassHeritageClauses",e[e.ClassMembers=65]="ClassMembers",e[e.InterfaceMembers=65]="InterfaceMembers",e[e.EnumMembers=81]="EnumMembers",e[e.CaseBlockClauses=65]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=432]="NamedImportsOrExportsElements",e[e.JsxElementChildren=131072]="JsxElementChildren",e[e.JsxElementAttributes=131328]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=272]="HeritageClauseTypes",e[e.SourceFileStatements=65537]="SourceFileStatements",e[e.Decorators=24577]="Decorators",e[e.TypeArguments=26960]="TypeArguments",e[e.TypeParameters=26960]="TypeParameters",e[e.Parameters=1360]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters";}(p||(p={}));}(r||(r={}));!function(e){function t(t,n,r){for(void 0===r&&(r="tsconfig.json");;){var i=e.combinePaths(t,r);if(n(i))return i;var a=e.getDirectoryPath(t);if(a===t)break;t=a;}}function n(t,n){var r=e.getDirectoryPath(n),i=e.isRootedDiskPath(t)?t:e.combinePaths(r,t);return e.normalizePath(i)}function r(t,n,r){var i;return e.forEach(t,function(t){var a=e.getNormalizedPathComponents(t,n);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;se.getRootLength(t)&&!a(t)&&(o(e.getDirectoryPath(t)),e.sys.createDirectory(t));}function s(t,n,r){l||(l=e.createMap());var i=e.sys.createHash(n),a=e.sys.getModifiedTime(t);if(a){var o=l.get(t);if(o&&o.byteOrderMark===r&&o.hash===i&&o.mtime.getTime()===a.getTime())return}e.sys.writeFile(t,n,r);var s=e.sys.getModifiedTime(t);l.set(t,{hash:i,byteOrderMark:r,mtime:s});}function c(n,r,i,a){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(n))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?s(n,r,i):e.sys.writeFile(n,r,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite");}catch(e){a&&a(e.message);}}function u(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var l,_=e.createMap(),d=e.getNewLineCharacter(t),p=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:i,getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},writeFile:c,getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:r,getNewLine:function(){return d},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+d)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:p}}function a(t,n,r){var i=t.getOptionsDiagnostics(r).concat(t.getSyntacticDiagnostics(n,r),t.getGlobalDiagnostics(r),t.getSemanticDiagnostics(n,r));return t.getCompilerOptions().declaration&&(i=i.concat(t.getDeclarationDiagnostics(n,r))),e.sortAndDeduplicateDiagnostics(i)}function o(t,n){for(var r="",i=0,a=t;i=4,N=(v+1+"").length;E&&(N=Math.max(k.length,N)),r+=e.sys.newLine;for(var A=m;A<=v;A++){E&&m+10||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var l=h().getEmitResolver(a.outFile||a.out?void 0:n);e.performance.mark("beforeEmit");var _=o?[]:e.getTransformers(a,s),d=e.emitFiles(l,p(r),n,o,_);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}function T(e){return C(c(e))}function C(e){return Ve.get(e)}function D(t,n,r){return t?n(t,r):e.sortAndDeduplicateDiagnostics(e.flatMap(ge.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),n(e,r)}))}function E(e,t){return D(e,w,t)}function N(e,t){return D(e,P,t)}function A(e,t){var n=ge.getCompilerOptions();return!e||n.out||n.outFile?R(e,t):D(e,K,t)}function w(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=L(t),e.isCheckJsEnabledForFile(t,a)&&(t.additionalSyntacticDiagnostics=e.concatenate(t.additionalSyntacticDiagnostics,t.jsDocDiagnostics))),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function O(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(ve=void 0,he=void 0),t}}function P(e,t){return B(e,t,ke,F)}function F(t,n){return O(function(){if(a.skipLibCheck&&t.isDeclarationFile||a.skipDefaultLibCheck&&t.hasNoDefaultLib)return e.emptyArray;var r=h();e.Debug.assert(!!t.bindDiagnostics);var i=!e.isSourceFileJavaScript(t)||e.isCheckJsEnabledForFile(t,a),o=i?t.bindDiagnostics:e.emptyArray,s=i?r.getDiagnostics(t,n):e.emptyArray,c=De.getDiagnostics(t.fileName),u=Le.getDiagnostics(t.fileName),l=o.concat(s,c,u);return e.isSourceFileJavaScript(t)?e.filter(l,I):l})}function I(t){var n=t.file,r=t.start;if(n)for(var i=e.getLineStarts(n),a=e.computeLineAndCharacterOfPosition(i,r).line;a>0;){var o=n.text.slice(i[a-1],i[a]),s=g.exec(o);if(!s)return!0;if(s[3])return!1;a--;}return!0}function L(t){return O(function(){function n(t){switch(u.kind){case 146:case 149:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 226:if(u.type===t)return void c.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 237:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 243:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 259:if(108===t.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 230:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 233:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 231:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 232:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 203:return void c.push(s(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 202:return void c.push(s(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 184:e.Debug.fail();}var i=u;u=t,e.forEachChild(t,n,r),u=i;}function r(t){switch(u.decorators!==t||a.experimentalDecorators||c.push(s(u,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),u.kind){case 229:case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 208:if(t===u.modifiers)return i(t,208===u.kind);break;case 149:if(t===u.modifiers){for(var r=0,l=t;r0),_.path=n,o.useCaseSensitiveFileNames()){var m=n.toLowerCase(),g=$e.get(m);g?X(t,g.fileName,i,s,c):$e.set(m,_);}Ie=Ie||_.hasNoDefaultLib,a.noResolve||(Z(_,r),ee(_)),ie(_),r?Se.unshift(_):Se.push(_);}return _}function Z(t,r){e.forEach(t.referencedFiles,function(e){H(n(e.fileName,t.fileName),r,t,e.pos,e.end);});}function ee(t){for(var n=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=je(n,t.fileName),i=0;iEe,y=m&&!f(a,l)&&!a.noResolve&&un&&(Le.add(e.createDiagnosticForNodeInSourceFile(a.configFile,f.initializer.elements[n],r,i,o,s)),c=!1);}}c&&Le.add(e.createCompilerDiagnostic(r,i,o,s));}function ce(t,n,r,i){for(var a=!0,o=0,s=ue();o1})&&le(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir");}if(!a.noEmit&&a.allowJs&&a.declaration&&le(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),a.checkJs&&!a.allowJs&&Le.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),a.emitDecoratorMetadata&&!a.experimentalDecorators&&le(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),a.jsxFactory?(a.reactNamespace&&le(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(a.jsxFactory,_)||_e("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,a.jsxFactory)):a.reactNamespace&&!e.isIdentifierText(a.reactNamespace,_)&&_e("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,a.reactNamespace),!a.noEmit&&!a.suppressOutputPathCheck){var b=p(),x=e.createMap();e.forEachEmittedFile(b,function(e){t(e.jsFilePath,x),t(e.declarationFilePath,x);});}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),ge}function f(t,n){function r(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return t.allowJs?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_allowJs_is_not_set}switch(n.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||i();case".js":return i()}}function m(t){return e.Debug.assert(t.every(function(e){return void 0!==e}),"A name is undefined.",function(){return JSON.stringify(t)}),t}var g=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;e.findConfigFile=t,e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=r,e.createCompilerHost=i,e.getPreEmitDiagnostics=a,e.formatDiagnostics=o;var y="",h="",v="",b="",x=" ",S="",k="...";e.formatDiagnosticsWithColorAndContext=l,e.flattenDiagnosticMessageText=_,e.createProgram=p,e.getResolutionDiagnostic=f;}(r||(r={}));!function(e){function t(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function n(){if(te)return te;var t=e.createMap(),n=e.createMap();return e.forEach(e.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name);}),te={optionNameMap:t,shortOptionNames:n}}function r(t){return i(t,e.createCompilerDiagnostic)}function i(t,n){var r=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return n(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,r)}function a(e,t,n){return J(e,U(t||""),n)}function o(t,n,r){if(void 0===n&&(n=""),n=U(n),!e.startsWith(n,"-")){if(""===n)return[];var i=n.split(",");switch(t.element.type){case"number":return e.map(i,parseInt);case"string":return e.map(i,function(e){return e||""});default:return e.filter(e.map(i,function(e){return a(t.element,e,r)}),function(e){return!!e})}}}function s(t,n){function r(t){for(var n=0;n=i.length)break;var s=o;if(34===i.charCodeAt(s)){for(o++;o32;)o++;a.push(i.substring(s,o));}}r(a);}else l.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t));}var s={},u=[],l=[];return r(t),{options:s,fileNames:u,errors:l}}function c(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=n(),i=r.optionNameMap,a=r.shortOptionNames;if(t){var o=a.get(e);void 0!==o&&(e=o);}return i.get(e)}function u(e,t){var n=d(e,t);return"string"==typeof n?l(e,n):{config:{},error:n}}function l(t,n){var r=e.parseJsonText(t,n);return{config:m(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function _(t,n){var r=d(t,n);return"string"==typeof r?e.parseJsonText(t,r):{parseDiagnostics:[r]}}function d(t,n){var r;try{r=n(t);}catch(n){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):r}function p(t){return e.arrayToMap(t,function(e){return e.name})}function f(){return void 0===ne&&(ne=p([{name:"compilerOptions",type:"object",elementOptions:p(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])),ne}function m(e,t){return g(e,t,void 0,void 0)}function g(t,n,r,a){function o(i,o,s,l){for(var _={},d=0,p=i.properties;d=0)return s.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o.concat([u]).join(" -> "))),{raw:t||m(n,s)};var l=t?D(t,r,i,c,a,s):E(n,r,i,c,a,s);if(l.extendedConfigPath){o=o.concat([u]);var _=A(n,l.extendedConfigPath,r,i,c,o,s);if(_&&T(_)){var d=_.raw,p=l.raw,f=function(e){var t=p[e]||d[e];t&&(p[e]=t);};f("include"),f("exclude"),f("files"),void 0===p.compileOnSave&&(p.compileOnSave=d.compileOnSave),l.options=e.assign({},_.options,l.options);}}return l}function D(t,n,r,i,a,o){e.hasProperty(t,"excludes")&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var s=I(t.compilerOptions,r,o,a),c=R(t.typeAcquisition||t.typingOptions,r,o,a);t.compileOnSave=w(t,r,o);var u;return t.extends&&("string"!=typeof t.extends?o.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")):u=N(t.extends,n,r,i,o,e.createCompilerDiagnostic)),{raw:t,options:s,typeAcquisition:c,extendedConfigPath:u}}function E(t,n,r,i,a,o){var s,c,u,l=F(a),_={onSetValidOptionKeyValueInParent:function(t,n,i){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t),("compilerOptions"===t?l:"typeAcquisition"===t?s||(s=L(a)):c||(c=L(a)))[n.name]=K(n,r,i);},onSetValidOptionKeyValueInRoot:function(s,c,l,_){switch(s){case"extends":return void(u=N(l,n,r,i,o,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,_,n,r)}));case"files":return void(0===l.length&&o.push(e.createDiagnosticForNodeInSourceFile(t,_,e.Diagnostics.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(n,r,i,a){"excludes"===n&&o.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));}},d=g(t,o,f(),_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:L(a)),{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}function N(t,n,r,i,a,o){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var s=e.toPath(t,r,i);if(n.fileExists(s)||e.endsWith(s,".json")||(s+=".json",n.fileExists(s)))return s;a.push(o(e.Diagnostics.File_0_does_not_exist,t));}else a.push(o(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t));}function A(t,n,r,i,a,o,s){var c=_(n,function(e){return r.readFile(e)});if(t&&(t.extendedSourceFiles||(t.extendedSourceFiles=[])).push(c.fileName),c.parseDiagnostics.length)s.push.apply(s,c.parseDiagnostics);else{var u=e.getDirectoryPath(n),l=C(void 0,c,r,u,e.getBaseFileName(n),o,s);if(t&&(g=t.extendedSourceFiles).push.apply(g,c.extendedSourceFiles),T(l)){var d=e.convertToRelativePath(u,i,a),p=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(d,t)},f=function(t){m[t]&&(m[t]=e.map(m[t],p));},m=l.raw;f("include"),f("exclude"),f("files");}return l;var g;}}function w(t,n,r){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var i=B(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return!("boolean"!=typeof i||!i)&&i}}function O(e,t,n){var r=[];return{options:I(e,t,r,n),errors:r}}function P(e,t,n){var r=[];return{options:R(e,t,r,n),errors:r}}function F(t){return"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{}}function I(t,n,r,i){var a=F(i);return M(e.optionDeclarations,t,n,a,e.Diagnostics.Unknown_compiler_option_0,r),a}function L(t){return{enable:"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function R(n,r,i,a){var o=L(a),s=t(n);return M(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,i),o}function M(t,n,r,i,a,o){if(n){var s=p(t);for(var c in n){var u=s.get(c);u?i[u.name]=B(u,n[c],r,o):o.push(e.createCompilerDiagnostic(a,c));}}}function B(t,n,r,i){if(h(t,n)){var a=t.type;return"list"===a&&e.isArray(n)?z(t,n,r,i):"string"!=typeof a?J(t,n,i):j(t,r,n)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,y(t)));}function K(t,n,r){if("list"===t.type){var i=t;return i.element.isFilePath||"string"!=typeof i.element.type?e.filter(e.map(r,function(e){return K(i.element,n,e)}),function(e){return!!e}):r}return"string"!=typeof t.type?t.type.get("string"==typeof r?r.toLowerCase():r):j(t,n,r)}function j(t,n,r){return t.isFilePath&&""===(r=e.normalizePath(e.combinePaths(n,r)))&&(r="."),r}function J(e,t,n){var i=t.toLowerCase(),a=e.type.get(i);if(void 0!==a)return a;n.push(r(e));}function z(t,n,r,i){return e.filter(e.map(n,function(e){return B(t.element,e,r,i)}),function(e){return!!e})}function U(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function q(t,n,r,i,a,o,s,c,u){i=e.normalizePath(i);var l=o.useCaseSensitiveFileNames?Y:Q,_=e.createMap(),d=e.createMap();n&&(n=V(n,s,!1,u,"include")),r&&(r=V(r,s,!0,u,"exclude"));var p=W(n,r,i,o.useCaseSensitiveFileNames),f=e.getSupportedExtensions(a,c);if(t)for(var m=0,g=t;m0)for(var v=0,b=o.readDirectory(i,f,r,n,void 0);v=n.end}function A(e,t,n){return e.pos<=t&&e.end>=n}function w(e,t,n){return O(e.pos,e.end,t,n)}function O(e,t,n,r){return Math.max(e,n)t||!F(e,n)}function F(t,n){if(e.nodeIsMissing(t))return!1;switch(t.kind){case 229:case 230:case 232:case 178:case 174:case 163:case 207:case 234:case 235:case 241:case 245:return I(t,18,n);case 260:return F(t.block,n);case 182:if(!t.arguments)return!0;case 181:case 185:case 168:return I(t,20,n);case 160:case 161:return F(t.type,n);case 152:case 153:case 154:case 228:case 186:case 151:case 150:case 156:case 155:case 187:return t.body?F(t.body,n):t.type?F(t.type,n):R(t,20,n);case 233:return t.body&&F(t.body,n);case 211:return t.elseStatement?F(t.elseStatement,n):F(t.thenStatement,n);case 210:return F(t.expression,n)||R(t,25);case 177:case 175:case 180:case 144:case 165:return I(t,22,n);case 157:return t.type?F(t.type,n):R(t,22,n);case 257:case 258:return!1;case 214:case 215:case 216:case 213:return F(t.statement,n);case 212:return M(t,106,n)?I(t,20,n):F(t.statement,n);case 162:return F(t.exprName,n);case 189:case 188:case 190:case 197:case 198:return F(t.expression,n);case 183:return F(t.template,n);case 196:return F(e.lastOrUndefined(t.templateSpans),n);case 205:return e.nodeIsPresent(t.literal);case 244:case 238:return e.nodeIsPresent(t.moduleSpecifier);case 192:return F(t.operand,n);case 194:return F(t.right,n);case 195:return F(t.whenFalse,n);default:return!0}}function I(t,n,r){var i=t.getChildren(r);if(i.length){var a=e.lastOrUndefined(i);if(a.kind===n)return!0;if(25===a.kind&&1!==i.length)return i[i.length-2].kind===n}return!1}function L(t){var n=B(t);if(n){var r=n.getChildren();return{listItemIndex:e.indexOf(r,t),list:n}}}function R(e,t,n){return!!M(e,t,n)}function M(t,n,r){return e.forEach(t.getChildren(r),function(e){return e.kind===n&&e})}function B(t){var n=e.forEach(t.parent.getChildren(),function(n){if(e.isSyntaxList(n)&&n.pos<=t.pos&&n.end>=t.end)return n});return e.Debug.assert(!n||e.contains(n.getChildren(),t)),n}function K(e,t,n){return J(e,t,n,function(e){return ne(e.kind)})}function j(e,t,n){return J(e,t,n,function(e){return re(e.kind)})}function J(e,t,n,r){return U(e,t,!1,r,!1,n)}function z(e,t,n,r){return U(e,t,!0,void 0,r,n)}function U(t,n,r,i,a,o){var s=t;e:for(;;){if(e.isToken(s))return s;for(var c=0,u=s.getChildren();cn)break;var _=l.getEnd();if(n<_||n===_&&(1===l.kind||a)){s=l;continue e}if(i&&_===n){var d=$(n,t,l);if(d&&i(d))return d}}}return s}}function q(t,n){var r=z(t,n,!1);return e.isToken(r)&&n>r.getStart(t)&&nt.end||o.pos===t.end)&&Z(o))return r(o)}}return r(n)}function $(t,n,r,i){function a(t){if(e.isToken(t))return t;var n=t.getChildren(),r=s(n,n.length);return r&&a(r)}function o(c){if(e.isToken(c))return c;for(var u=c.getChildren(),l=0;l=t||10===_.kind&&d===_.end?(p=s(u,l))&&a(p):o(_)}}if(e.Debug.assert(void 0!==r||265===c.kind||e.isJSDocCommentContainingNode(c)),u.length){var p=s(u,u.length);return p&&a(p)}}function s(e,t){for(var n=t-1;n>=0;n--)if(Z(e[n]))return e[n]}return o(r||n)}function W(t,n){var r=$(n,t);if(r&&e.isStringTextContainingNode(r)){var i=r.getStart(),a=r.getEnd();if(ir.getStart(t)}function X(t,n,r,i){function a(r){return e.forEach(r,function(e){return Y(e,n,t.text)&&(!i||i(e))})}return void 0===r&&(r=z(t,n,!1)),n<=r.getStart(t)&&(a(e.getLeadingCommentRanges(t.text,r.pos))||a(e.getTrailingCommentRanges(t.text,r.pos)))}function Y(e,t,n){var r=e.pos,i=e.end,a=e.kind;return r=e.pos+3&&"/"===n[e.pos]&&"*"===n[e.pos+1]&&"*"===n[e.pos+2]}var i=z(t,n,!1),a=e.getLeadingCommentRanges(t.text,i.pos);return e.forEach(a,r)}function Z(e){return 0!==e.getWidth()}function ee(t){var n=e.getCombinedModifierFlags(t),r=[];return 8&n&&r.push("private"),16&n&&r.push("protected"),4&n&&r.push("public"),32&n&&r.push("static"),128&n&&r.push("abstract"),1&n&&r.push("export"),e.isInAmbientContext(t)&&r.push("declare"),r.length>0?r.join(","):""}function te(t){return 159===t.kind||181===t.kind?t.typeArguments:e.isFunctionLike(t)||229===t.kind||230===t.kind?t.typeParameters:void 0}function ne(t){return 71===t||e.isKeyword(t)}function re(e){return 9===e||8===e||ne(e)}function ie(e){return 2===e||3===e}function ae(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))}function oe(e){return 17<=e&&e<=70}function se(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&146===e.declarations[0].kind}function n(n,i){return r(n,function(n){var r=n.flags;return 3&r?t(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r?e.SymbolDisplayPartKind.propertyName:32768&r?e.SymbolDisplayPartKind.propertyName:65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r?e.SymbolDisplayPartKind.aliasName:2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(i))}function r(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function i(){return r(" ",e.SymbolDisplayPartKind.space)}function a(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}function s(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}function c(t){var n=e.stringToToken(t);return void 0===n?u(t):a(n)}function u(t){return r(t,e.SymbolDisplayPartKind.text)}function l(e){return e.getNewLine?e.getNewLine():C}function _(){return r("\n",e.SymbolDisplayPartKind.lineBreak)}function d(e){try{return e(T),T.displayParts()}finally{T.clear();}}function p(e,t,n,r){return d(function(i){e.getSymbolDisplayBuilder().buildTypeDisplay(t,i,n,r);})}function f(e,t,n,r,i){return d(function(a){e.getSymbolDisplayBuilder().buildSymbolDisplay(t,a,n,r,i);})}function m(e,t,n,r){return r|=65536,d(function(i){e.getSymbolDisplayBuilder().buildSignatureDisplay(t,i,n,r);})}function g(t,n,r){if(y(r)||e.isStringOrNumericLiteral(r)&&144===r.parent.kind)return e.getTextOfIdentifierOrLiteral(r);var i=e.getLocalSymbolForExportDefault(n);return t.symbolToString(i||n)}function y(e){return e.parent&&(242===e.parent.kind||246===e.parent.kind)&&e.parent.propertyName===e}function h(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(34===e.charCodeAt(0)||39===e.charCodeAt(0))?e.substring(1,t-1):e}function v(t,n){for(var r=[],i=2;i=0){var _=c-o;_>0&&i.push({length:_,classification:e.TokenClass.Whitespace});}i.push({length:u,classification:r(l)}),o=c+u;}var d=n.length-o;return d>0&&i.push({length:d,classification:e.TokenClass.Whitespace}),{entries:i,finalLexState:t.endOfLineState}}function r(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:default:return e.TokenClass.Identifier}}function i(e,t,r){return n(a(e,t,r),e)}function a(n,r,i){function a(e,t,n){if(8!==n){0===e&&o>0&&(e+=o);var r=(t-=o)-(e-=o);r>0&&(f.spans.push(e),f.spans.push(r),f.spans.push(n));}}for(var o=0,s=0,p=0;d.length>0;)d.pop();switch(r){case 3:n='"\\\n'+n,o=3;break;case 2:n="'\\\n"+n,o=3;break;case 1:n="/*\n"+n,o=3;break;case 4:n="`\n"+n,o=2;break;case 5:n="}\n"+n,o=2;case 6:d.push(14);}l.setText(n);var f={endOfLineState:0,spans:[]},m=0;do{if(s=l.scan(),!e.isTrivia(s)){if(41!==s&&63!==s||_[p]){if(23===p&&c(s))s=71;else if(c(p)&&c(s)&&!t(p,s))s=71;else if(71===p&&27===s)m++;else if(29===s&&m>0)m--;else if(119===s||136===s||133===s||122===s||137===s)m>0&&!i&&(s=71);else if(14===s)d.push(s);else if(17===s)d.length>0&&d.push(s);else if(18===s&&d.length>0){var g=e.lastOrUndefined(d);14===g?16===(s=l.reScanTemplateToken())?d.pop():e.Debug.assertEqual(s,15,"Should have been a template middle."):(e.Debug.assertEqual(g,17,"Should have been an open brace"),d.pop());}}else 12===l.reScanSlashToken()&&(s=12);p=s;}!function(){var t=l.getTokenPos(),r=l.getTextPos();if(a(t,r,u(s)),r>=n.length)if(9===s){var i=l.getTokenText();if(l.isUnterminated()){for(var o=i.length-1,c=0;92===i.charCodeAt(o-c);)c++;if(1&c){var _=i.charCodeAt(0);f.endOfLineState=34===_?3:2;}}}else 3===s?l.isUnterminated()&&(f.endOfLineState=1):e.isTemplateLiteralKind(s)?l.isUnterminated()&&(16===s?f.endOfLineState=5:13===s?f.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+s)):d.length>0&&14===e.lastOrUndefined(d)&&(f.endOfLineState=6);}();}while(1!==s);return f}function o(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}function s(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function c(e){return e>=72&&e<=142}function u(t){if(c(t))return 3;if(o(t)||s(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}var l=e.createScanner(5,!1),_=[];_[71]=!0,_[9]=!0,_[8]=!0,_[12]=!0,_[99]=!0,_[43]=!0,_[44]=!0,_[20]=!0,_[22]=!0,_[18]=!0,_[101]=!0,_[86]=!0;var d=[];return{getClassificationsForLine:i,getEncodedLexicalClassifications:a}}function n(e,t,n,r,a){return o(i(e,t,n,r,a))}function r(e,t){switch(t){case 233:case 229:case 230:case 228:e.throwIfCancellationRequested();}}function i(t,n,i,a,o){function s(e,t,n){l.push(e),l.push(t),l.push(n);}function c(t,n){var r=t.getFlags();if(0!=(788448&r)){if(32&r)return 11;if(384&r)return 12;if(524288&r)return 16;if(2&n){if(64&r)return 13;if(262144&r)return 15}else if(1536&r&&(4&n||1&n&&function(t){return e.forEach(t.declarations,function(t){return 233===t.kind&&1===e.getModuleInstanceState(t)})}(t)))return 14}}function u(i){if(i&&e.textSpanIntersectsWith(o,i.getFullStart(),i.getFullWidth())){var l=i.kind;if(r(n,l),71===l&&!e.nodeIsMissing(i)){var _=i;if(a.has(_.escapedText)){var d=t.getSymbolAtLocation(i);if(d){var p=c(d,e.getMeaningFromLocation(i));p&&s(i.getStart(),i.getWidth(),p);}}}e.forEachChild(i,u);}}var l=[];return u(i),{spans:l,endOfLineState:0}}function a(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value"}}function o(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],i=0;i=0),i>0){var s=n||m(t.kind,t);s&&a(r,i,s);}return!0}function f(e){switch(e.parent&&e.parent.kind){case 251:if(e.parent.tagName===e)return 19;break;case 252:if(e.parent.tagName===e)return 20;break;case 250:if(e.parent.tagName===e)return 21;break;case 253:if(e.parent.name===e)return 22}}function m(t,n){if(e.isKeyword(t))return 3;if((27===t||29===t)&&n&&e.getTypeArgumentOrTypeParameterList(n.parent))return 10;if(e.isPunctuation(t)){if(n){if(58===t&&(226===n.parent.kind||149===n.parent.kind||146===n.parent.kind||253===n.parent.kind))return 5;if(194===n.parent.kind||192===n.parent.kind||193===n.parent.kind||195===n.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 253===n.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(n)switch(n.parent.kind){case 229:if(n.parent.name===n)return 11;return;case 145:if(n.parent.name===n)return 15;return;case 230:if(n.parent.name===n)return 13;return;case 232:if(n.parent.name===n)return 12;return;case 233:if(n.parent.name===n)return 14;return;case 146:if(n.parent.name===n)return e.isThisIdentifier(n)?3:17;return}return 2}}function g(i){if(i&&e.decodedTextSpanIntersectsWith(y,h,i.pos,i.getFullWidth())){r(t,i.kind);for(var a=0,o=i.getChildren(n);a=e.pos&&n<=e.end&&e});if(c){var u={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},_=t.text.substr(c.pos,n-c.pos),d=T.exec(_);if(d){var p=d[1],f=d[2],g=d[3],y=e.getDirectoryPath(t.path);if("path"===f){var h=m(g,c.pos+p.length);u.entries=a(g,y,e.getSupportedExtensions(r),!0,h,i,t.path);}else{var v={start:c.pos+p.length,length:d[0].length-p.length};u.entries=l(i,r,y,v);}}return u}}}}function l(t,n,r,i,a){if(void 0===a&&(a=[]),n.types)for(var o=0,s=n.types;o=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}function y(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}function h(e,t){return k(e,e.getDirectories)}function v(e,t,n,r,i){return k(e,e.readDirectory)}function b(e,t){return k(e,e.readFile)}function x(e,t){return k(e,e.fileExists)}function S(t,n){try{return e.directoryProbablyExists(n,t)}catch(e){}}function k(e,t){for(var n=[],r=2;r0&&(se=L(r,i)),!0}function g(n){var r=241===n.kind?238:244,i=e.getAncestor(n,r).moduleSpecifier;if(!i)return!1;ne=!0,re=!1;var a=t.getSymbolAtLocation(i);if(!a)return se=e.emptyArray,!0;var o=t.getExportsAndPropertiesOfModule(a);return se=I(o,n.elements),!0}function y(n){ne=!0,re=!0,oe=1;var r=e.getClassExtendsHeritageClauseElement(n),i=e.getClassImplementsHeritageClauseElements(n);if(r||i){var a=G.parent,o=e.isClassElement(a)&&e.getModifierFlags(a);if(71===G.kind&&!B(G))switch(G.getText()){case"private":o|=8;break;case"static":o|=32;}if(!(8&o)){var s=void 0;r&&(s=t.getTypeAtLocation(r),32&o&&(s=t.getTypeOfSymbolAtLocation(s.symbol,n)));var c=32&o?e.emptyArray:e.flatMap(i||e.emptyArray,function(e){return t.getPropertiesOfType(t.getTypeAtLocation(e))});se=R(s?t.getPropertiesOfType(s):e.emptyArray,c,n.members,o);}}}function S(t){if(t)switch(t.kind){case 17:case 26:var n=t.parent;if(e.isObjectLiteralExpression(n)||e.isObjectBindingPattern(n))return n}}function k(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 241:case 245:return e.parent}}}function C(t){return e.isClassElement(t.parent)&&e.isClassLike(t.parent.parent)}function D(t){return e.isParameter(t)&&e.isConstructorDeclaration(t.parent)}function E(t){return t.parent&&D(t.parent)&&(b(t.kind)||e.isDeclarationName(t))}function N(t){if(t)switch(t.kind){case 17:case 26:if(e.isClassLike(t.parent))return t.parent;break;case 25:case 18:if(e.isClassLike(ee))return ee;break;default:if(C(t)&&(h(t.kind)||v(t.getText())))return t.parent.parent}if(ee&&286===ee.kind&&e.isClassLike(ee.parent))return ee.parent}function A(t){if(t)switch(t.kind){case 19:case 26:return e.isConstructorDeclaration(t.parent)&&t.parent;default:if(E(t))return t.parent.parent}}function w(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 179:case 254:case 253:case 255:if(t&&(250===t.kind||251===t.kind))return t;if(253===t.kind)return t.parent.parent;break;case 9:if(t&&(253===t.kind||255===t.kind))return t.parent.parent;break;case 18:if(t&&256===t.kind&&t.parent&&253===t.parent.kind)return t.parent.parent.parent;if(t&&255===t.kind)return t.parent.parent}}}function O(t){var n=t.parent.kind;switch(t.kind){case 26:return 226===n||227===n||208===n||232===n||P(n)||230===n||175===n||231===n||e.isClassLike(t.parent)&&t.parent.typeParameters&&t.parent.typeParameters.end>=t.pos;case 23:return 175===n;case 56:return 176===n;case 21:return 175===n;case 19:return 260===n||P(n);case 17:return 232===n||230===n||163===n;case 25:return 148===n&&t.parent&&t.parent.parent&&(230===t.parent.parent.kind||163===t.parent.parent.kind);case 27:return 229===n||199===n||230===n||231===n||e.isFunctionLikeKind(n);case 115:return 149===n&&!e.isClassLike(t.parent.parent);case 24:return 146===n||t.parent&&t.parent.parent&&175===t.parent.parent.kind;case 114:case 112:case 113:return 146===n&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 242===n||246===n||240===n;case 125:case 135:if(C(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 138:return!0}if(v(t.getText())&&C(t))return!1;if(E(t)&&(!e.isIdentifier(t)||x(t.getText())||B(t)))return!1;switch(t.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)}function P(t){return e.isFunctionLikeKind(t)&&152!==t}function F(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function I(t,n){for(var r=e.createUnderscoreEscapedMap(),i=0,a=n;is))for(var u=c.length-1;u>=0;u--){var l=c[u];if(t>=l.pos)return l}}}function C(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}var D;!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.ConstructorParameterKeywords=2]="ConstructorParameterKeywords";}(D||(D={})),t.getCompletionsAtPosition=n,t.getCompletionEntryDetails=d,t.getCompletionEntrySymbol=p;var E=[];}(e.Completions||(e.Completions={}));}(r||(r={}));!function(e){!function(t){function n(t,n,a,s,c){var u=e.getTouchingWord(a,s,!0);if(u!==a){if(e.Debug.assert(void 0!==u.parent),e.isJsxOpeningElement(u.parent)&&u.parent.tagName===u||e.isJsxClosingElement(u.parent)){var l=u.parent.parent,_=[l.openingElement,l.closingElement].map(function(e){return r(e.tagName,a)});return[{fileName:a.fileName,highlightSpans:_}]}return i(u,t,n,c)||o(u,a)}}function r(t,n){return{fileName:n.fileName,textSpan:e.createTextSpanFromNode(t,n),kind:"none"}}function i(t,n,r,i){var o=e.FindAllReferences.getReferenceEntriesForNode(t,n,i,r);return o&&a(o)}function a(t){for(var n=e.createMap(),r=0,i=t;r=0&&!g(n,r[i],106);i--);var a=d(t.statement);return e.forEach(a,function(e){p(t,e)&&g(n,e.getFirstToken(),72,77);}),n}function b(e){var t=f(e);if(t)switch(t.kind){case 214:case 215:case 216:case 212:case 213:return v(t);case 221:return x(t)}}function x(t){var n=[];return g(n,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(r){g(n,r.getFirstToken(),73,79);var i=d(r);e.forEach(i,function(e){p(t,e)&&g(n,e.getFirstToken(),72);});}),n}function S(t,n){var r=[];return g(r,t.getFirstToken(),102),t.catchClause&&g(r,t.catchClause.getFirstToken(),74),t.finallyBlock&&g(r,e.findChildOfKind(t,87,n),87),r}function k(t){var n=_(t);if(n){var r=[];return e.forEach(l(n),function(e){g(r,e.getFirstToken(),100);}),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,function(e){g(r,e.getFirstToken(),96);}),r}}function T(t){var n=e.getContainingFunction(t);if(n&&s(n.body,207)){var r=[];return e.forEachReturnStatement(n.body,function(e){g(r,e.getFirstToken(),96);}),e.forEach(l(n.body),function(e){g(r,e.getFirstToken(),100);}),r}}function C(t,n){for(var i=[];s(t.parent,211)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var a=t.getChildren();g(i,a[0],90);for(c=a.length-1;c>=0&&!g(i,a[c],82);c--);if(!s(t.elseStatement,211))break;t=t.elseStatement;}for(var o=[],c=0;c=u.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){_=!1;break}if(_){o.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),l.end),kind:"reference"}),c++;continue}}o.push(r(i[c],n));}return o}function D(e,t){for(var n=e.parent;222===n.kind;n=n.parent)if(n.label.escapedText===t)return!0;return!1}t.getDocumentHighlights=n;}(e.DocumentHighlights||(e.DocumentHighlights={}));}(r||(r={}));!function(e){function t(t,n){function r(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function i(t,n){var r=p.get(t);return!r&&n&&p.set(t,r=e.createMap()),r}function a(){var t=e.arrayFrom(p.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return p.get(e).forEach(function(e,n){t.push({name:n,refCount:e.languageServiceRefCount,references:e.owners.slice(0)});}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)}function o(t,i,a,o,c){return s(t,e.toPath(t,n,f),i,r(i),a,o,c)}function s(e,t,n,r,i,a,o){return l(e,t,n,r,i,a,!0,o)}function c(t,i,a,o,s){return u(t,e.toPath(t,n,f),i,r(i),a,o,s)}function u(e,t,n,r,i,a,o){return l(e,t,n,r,i,a,!1,o)}function l(t,n,r,a,o,s,c,u){var l=i(a,!0),_=l.get(n);return _?_.sourceFile.version!==s&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,o,s,o.getChangeRange(_.sourceFile.scriptSnapshot))):(e.Debug.assert(c,"How could we be trying to update a document that the registry doesn't have?"),_={sourceFile:e.createLanguageServiceSourceFile(t,o,r.target,s,!1,u),languageServiceRefCount:0,owners:[]},l.set(n,_)),c&&_.languageServiceRefCount++,_.sourceFile}function _(t,i){return d(e.toPath(t,n,f),r(i))}function d(t,n){var r=i(n,!1);e.Debug.assert(void 0!==r);var a=r.get(t);a.languageServiceRefCount--,e.Debug.assert(a.languageServiceRefCount>=0),0===a.languageServiceRefCount&&r.delete(t);}void 0===n&&(n="");var p=e.createMap(),f=e.createGetCanonicalFileName(!!t);return{acquireDocument:o,acquireDocumentWithKey:s,updateDocument:c,updateDocumentWithKey:u,releaseDocument:_,releaseDocumentWithKey:d,reportStats:a,getKeyForCompilationSettings:r}}e.createDocumentRegistry=t;}(r||(r={}));!function(e){!function(n){function r(e,n,r){var o=c(e,n,r);return function(s,c,u){var l=i(e,o,c,n,r),_=l.directImports,d=l.indirectUsers;return t({indirectUsers:d},a(_,s,c.exportKind,n,u))}}function i(t,n,r,i,a){function s(t){var n=_(t);if(n)for(var r=0,o=n;r=0&&!(c>r.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),5)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),5)||i.push(c),c=a.indexOf(n,c+s+1);}return i}function y(n,r){for(var i=[],a=n.getSourceFile(),o=r.text,s=0,c=g(a,o,n);s0);for(var n=0,r=t;n0);for(var n=e.PatternMatchKind.camelCase,r=0,i=t;r0)return r}switch(t.kind){case 265:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 187:case 228:case 186:case 229:case 199:return 512&e.getModifierFlags(t)?"default":w(t);case 152:return"constructor";case 156:return"new()";case 155:return"()";case 157:return"[]";case 283:return b(t);default:return""}}function b(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&208===t.kind&&t.declarationList.declarations.length>0){var n=t.declarationList.declarations[0].name;if(71===n.kind)return n.text}return""}function x(t){function n(e){if(r(e)&&(i.push(e),e.children))for(var t=0,a=e.children;t0?e.declarationNameToString(t.name):226===t.parent.kind?e.declarationNameToString(t.parent.name):194===t.parent.kind&&58===t.parent.operatorToken.kind?a(t.parent.left).replace(L,""):261===t.parent.kind&&t.parent.name?a(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function O(e){return 186===e.kind||187===e.kind||199===e.kind}var P,F,I,L=/\s+/g,R=[],M=[];t.getNavigationBarItems=n,t.getNavigationTree=r;}(e.NavigationBar||(e.NavigationBar={}));}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r,i,a){if(n&&r&&i){var o={textSpan:e.createTextSpanFromBounds(r.pos,i.end),hintSpan:e.createTextSpanFromNode(n,t),bannerText:l,autoCollapse:a};u.push(o);}}function i(t,n){if(t){var r={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:l,autoCollapse:n};u.push(r);}}function a(r){var a=e.getLeadingCommentRangesOfNode(r,t);if(a){for(var s=-1,c=-1,u=!0,l=0,_=0,d=a;_1&&i({kind:2,pos:t,end:n},!1);}function s(t){return e.isFunctionBlock(t)&&187!==t.parent.kind}function c(i){if(n.throwIfCancellationRequested(),!(_>d)){switch(e.isDeclaration(i)&&a(i),i.kind){case 207:if(!e.isFunctionBlock(i)){var o=i.parent,p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t);if(212===o.kind||215===o.kind||216===o.kind||214===o.kind||211===o.kind||213===o.kind||220===o.kind||260===o.kind){r(o,p,f,s(i));break}if(224===o.kind){var m=o;if(m.tryBlock===i){r(o,p,f,s(i));break}if(m.finallyBlock===i){var g=e.findChildOfKind(m,87,t);if(g){r(g,p,f,s(i));break}}}var y=e.createTextSpanFromNode(i);u.push({textSpan:y,hintSpan:y,bannerText:l,autoCollapse:s(i)});break}case 234:var p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t);r(i.parent,p,f,s(i));break;case 229:case 230:case 232:case 178:case 235:r(i,p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t),s(i));break;case 177:r(i,e.findChildOfKind(i,21,t),e.findChildOfKind(i,22,t),s(i));}_++,e.forEachChild(i,c),_--;}}var u=[],l="...",_=0,d=20;return c(t),u}t.collectElements=n;}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}));}(r||(r={}));!function(e){function t(e,t,n,r){return{kind:e,punctuationStripped:t,isCaseSensitive:n,camelCaseWeight:r}}function n(n){function o(e){return b||!e}function c(t){if(!o(t))return f(t,e.lastOrUndefined(v))}function l(t,n){if(!o(n)){var r=f(n,e.lastOrUndefined(v));if(r&&(t=t||[],!(v.length-1>t.length))){for(var i=r,a=v.length-2,s=t.length-1;a>=0;a-=1,s-=1){var c=v[a],u=f(t[s],c);if(!u)return;e.addRange(i,u);}return i}}}function _(e){var t=h.get(e);return t||h.set(e,t=m(e)),t}function d(n,r,i){var o=s(n,r.textLowerCase);if(0===o)return r.text.length===n.length?t(x.exact,i,n===r.text):t(x.prefix,i,e.startsWith(n,r.text));var c=r.isLowerCase;if(c){if(o>0)for(var u=0,l=_(n);u0)return t(x.substring,i,!0);if(!c&&r.characterSpans.length>0){var p=_(n),f=y(n,p,r,!1);if(void 0!==f)return t(x.camelCase,i,!0,f);if(void 0!==(f=y(n,p,r,!0)))return t(x.camelCase,i,!1,f)}return c&&r.text.length0&&a(n.charCodeAt(o))?t(x.substring,i,!1):void 0}function p(e){for(var t=0;tt.length)return!1;if(r)for(l=0;l1}}function r(e){return{totalTextChunk:p(e),subWordTextChunks:d(e)}}function i(e){return 0===e.subWordTextChunks.length}function a(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function o(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function s(e,t){for(var n=e.length-t.length,r=0;r<=n;r++)if(c(e,t,r))return r;return-1}function c(e,t,n){for(var r=0;r=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function l(e){return e>=48&&e<=57}function _(e){return a(e)||o(e)||l(e)||95===e||36===e}function d(e){for(var t=[],n=0,r=0,i=0;i0&&(t.push(p(e.substr(n,r))),r=0);return r>0&&t.push(p(e.substr(n,r))),t}function p(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:f(e)}}function f(e){return g(e,!1)}function m(e){return g(e,!0)}function g(t,n){for(var r=[],i=0,a=1;a0){if(e.some(c,o))return a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(71===t.kind&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.stripQuotes(e.getDeclaredName(n,s,t)),l=e.SymbolDisplay.getSymbolKind(n,s,t);return l?i(u,n.getFullyQualifiedName(s),l,e.SymbolDisplay.getSymbolModifiers(s),t,r):void 0}}else if(9===t.kind)return o(t)?a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):i(u=e.stripQuotes(t.text),u,"var","",t,r)}function i(e,t,n,r,i,a){return{canRename:!0,kind:n,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:r,triggerSpan:o(i,a)}}function a(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function o(t,n){var r=t.getStart(n),i=t.getWidth(n);return 9===t.kind&&(r+=1,i-=2),e.createTextSpan(r,i)}function s(t){return 71===t.kind||9===t.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||e.isThis(t)}t.getRenameInfo=n;}(e.Rename||(e.Rename={}));}(r||(r={}));!function(e){!function(t){function n(t,n,i,a){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(n,i);if(s){var c=_(s,i,n);if(c){a.throwIfCancellationRequested();var u=c.invocation,l=[],d=o.getResolvedSignature(u,l,c.argumentCount);if(a.throwIfCancellationRequested(),l.length)return p(l,d,c,o);if(e.isSourceFileJavaScript(n))return r(c,t)}}}function r(e,t){if(181===e.invocation.kind){var n=e.invocation.expression,r=71===n.kind?n:179===n.kind?n.name:void 0;if(r&&r.escapedText)for(var i=t.getTypeChecker(),a=0,o=t.getSourceFiles();a0&&26===e.lastOrUndefined(n).kind&&r++,r}function s(t,n,r){return e.Debug.assert(r>=n.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(n.kind)?e.isInsideTemplateLiteral(n,r)?0:t+2:t+1}function c(t,n,r){var i=13===t.template.kind?1:t.template.templateSpans.length+1;return 0!==n&&e.Debug.assertLessThan(n,i),{kind:2,invocation:t,argumentsSpan:l(t,r),argumentIndex:n,argumentCount:i}}function u(t,n){var r=t.getFullStart(),i=e.skipTrivia(n.text,t.getEnd(),!1);return e.createTextSpan(r,i-r)}function l(t,n){var r=t.template,i=r.getStart(),a=r.getEnd();return 196===r.kind&&0===e.lastOrUndefined(r.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(n.text,a,!1)),e.createTextSpan(i,a-i)}function _(t,n,r){for(var a=t;265!==a.kind;a=a.parent){if(e.isFunctionBlock(a))return;(a.posa.parent.end)&&e.Debug.fail("Node of kind "+a.kind+" is not a subspan of its parent of kind "+a.parent.kind);var o=i(a,n,r);if(o)return o}}function d(t,n,r){var i=t.getChildren(r),a=i.indexOf(n);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function p(t,n,r,i){function a(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildParameterDisplay(t,e,u)});return{name:t.name,documentation:t.getDocumentationComment(),displayParts:n,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function o(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildTypeParameterDisplay(t,e,u)});return{name:t.symbol.name,documentation:e.emptyArray,displayParts:n,isOptional:!1}}var s=r.argumentCount,c=r.argumentsSpan,u=r.invocation,l=r.argumentIndex,_=0===r.kind,d=e.getInvokedExpression(u),p=i.getSymbolAtLocation(d),f=p&&e.symbolToDisplayParts(i,p,void 0,void 0),m=e.map(t,function(t){var n,r=[],s=[];f&&e.addRange(r,f);var c;if(_){c=!1,r.push(e.punctuationPart(27));var l=t.mapper?t.mapper.mappedTypes:t.typeParameters;n=l&&l.length>0?e.map(l,o):e.emptyArray,s.push(e.punctuationPart(29));var d=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(t.thisParameter,t.parameters,e,u)});e.addRange(s,d);}else{c=t.hasRestParameter;var p=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(t.typeParameters,e,u)});e.addRange(r,p),r.push(e.punctuationPart(19)),n=e.map(t.parameters,a),s.push(e.punctuationPart(20));}var m=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildReturnTypeDisplay(t,e,u)});return e.addRange(s,m),{isVariadic:c,prefixDisplayParts:r,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:n,documentation:t.getDocumentationComment(),tags:t.getJsDocTags()}});0!==l&&e.Debug.assertLessThan(l,s);var g=t.indexOf(n);return e.Debug.assert(-1!==g),{items:m,applicableSpan:c,selectedItemIndex:g,argumentIndex:l,argumentCount:s}}!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments";}(t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=n,t.getImmediatelyContainingArgumentInfo=i,t.getContainingArgumentInfo=_;}(e.SignatureHelp||(e.SignatureHelp={}));}(r||(r={}));!function(e){!function(t){function n(t,n,i){var a=e.getCombinedLocalAndExportSymbolFlags(n);if(32&a)return e.getDeclarationOfKind(n,199)?"local class":"class";if(384&a)return"enum";if(524288&a)return"type";if(64&a)return"interface";if(262144&a)return"type parameter";var o=r(t,n,i);if(""===o){if(262144&a)return"type parameter";if(8&a)return"enum member";if(2097152&a)return"alias";if(1536&a)return"module"}return o}function r(t,n,r){if(t.isUndefinedSymbol(n))return"var";if(t.isArgumentsSymbol(n))return"local var";if(99===r.kind&&e.isExpression(r))return"parameter";var i=e.getCombinedLocalAndExportSymbolFlags(n);if(3&i)return e.isFirstDeclarationOfSymbolParameter(n)?"parameter":n.valueDeclaration&&e.isConst(n.valueDeclaration)?"const":e.forEach(n.declarations,e.isLet)?"let":o(n)?"local var":"var";if(16&i)return o(n)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(4&i){if(33554432&i&&6&n.checkFlags){var a=e.forEach(t.getRootSymbols(n),function(t){var n=t.getFlags();if(98311&n)return"property";e.Debug.assert(!!(8192&n));});return a||(t.getTypeOfSymbolAtLocation(n,r).getCallSignatures().length?"method":"property")}return r.parent&&e.isJsxAttribute(r.parent)?"JSX attribute":"property"}return""}function i(t){return t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):""}function a(t,i,a,o,s,c){function u(){b.length&&b.push(e.lineBreakPart());}function l(){b.push(e.spacePart()),b.push(e.keywordPart(92)),b.push(e.spacePart());}function _(n,r){var i=e.symbolToDisplayParts(t,n,r||a,void 0,3);e.addRange(b,i);}function d(t,n){u(),n&&(p(n),b.push(e.spacePart()),_(t));}function p(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void b.push(e.textOrKeywordPart(t));default:return b.push(e.punctuationPart(19)),b.push(e.textOrKeywordPart(t)),void b.push(e.punctuationPart(20))}}function f(n,r,i){e.addRange(b,e.signatureToDisplayParts(t,n,o,64|i)),r.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(19)),b.push(e.operatorPart(37)),b.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),b.push(e.spacePart()),b.push(e.textPart(2===r.length?"overload":"overloads")),b.push(e.punctuationPart(20))),g=n.getDocumentationComment(),y=n.getJsDocTags();}function m(n,r){var i=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplayFromSymbol(n,e,r);});e.addRange(b,i);}void 0===c&&(c=e.getMeaningFromLocation(s));var g,y,h,v,b=[],x=e.getCombinedLocalAndExportSymbolFlags(i),S=r(t,i,s),k=99===s.kind&&e.isExpression(s);if(""!==S||32&x||2097152&x){"getter"!==S&&"setter"!==S||(S="property");P=void 0;if(v=k?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(i.exportSymbol||i,s)){if(s.parent&&179===s.parent.kind){var T=s.parent.name;(T===s||T&&0===T.getFullWidth())&&(s=s.parent);}var C=void 0;if(e.isCallOrNewExpression(s)?C=s:e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)?C=s.parent:s.parent&&e.isJsxOpeningLikeElement(s.parent)&&e.isFunctionLike(i.valueDeclaration)&&(C=s.parent),C){var D=[];!(P=t.getResolvedSignature(C,D))&&D.length&&(P=D[0]);var E=182===C.kind||e.isCallExpression(C)&&97===C.expression.kind,N=E?v.getConstructSignatures():v.getCallSignatures();if(e.contains(N,P.target)||e.contains(N,P)||(P=N.length?N[0]:void 0),P){switch(E&&32&x?(S="constructor",d(v.symbol,S)):2097152&x?(p(S="alias"),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),_(i)):d(i,S),S){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":b.push(e.punctuationPart(56)),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),32768&v.flags&&16&v.objectFlags||!v.symbol||e.addRange(b,e.symbolToDisplayParts(t,v.symbol,o,void 0,1)),f(P,N,16);break;default:f(P,N);}h=!0;}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&x)||123===s.kind&&152===s.parent.kind){var A=s.parent;if(e.find(i.declarations,function(e){return e===(123===s.kind?A.parent:A)})){N=152===A.kind?v.getNonNullableType().getConstructSignatures():v.getNonNullableType().getCallSignatures();P=t.isImplementationOfOverload(A)?N[0]:t.getSignatureFromDeclaration(A),152===A.kind?(S="constructor",d(v.symbol,S)):d(155!==A.kind||2048&v.symbol.flags||4096&v.symbol.flags?i:v.symbol,S),f(P,N),h=!0;}}}}if(32&x&&!h&&!k&&(e.getDeclarationOfKind(i,199)?p("local class"):b.push(e.keywordPart(75)),b.push(e.spacePart()),_(i),m(i,a)),64&x&&2&c&&(u(),b.push(e.keywordPart(109)),b.push(e.spacePart()),_(i),m(i,a)),524288&x&&(u(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(i),m(i,a),b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(i),o,1024))),384&x&&(u(),e.forEach(i.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(76)),b.push(e.spacePart())),b.push(e.keywordPart(83)),b.push(e.spacePart()),_(i)),1536&x){u();var w=(M=e.getDeclarationOfKind(i,233))&&M.name&&71===M.name.kind;b.push(e.keywordPart(w?129:128)),b.push(e.spacePart()),_(i);}if(262144&x&&2&c)if(u(),b.push(e.punctuationPart(19)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(20)),b.push(e.spacePart()),_(i),i.parent)l(),_(i.parent,o),m(i.parent,o);else{var O=e.getDeclarationOfKind(i,145);if(e.Debug.assert(void 0!==O),M=O.parent)if(e.isFunctionLikeKind(M.kind)){l();var P=t.getSignatureFromDeclaration(M);156===M.kind?(b.push(e.keywordPart(94)),b.push(e.spacePart())):155!==M.kind&&M.name&&_(M.symbol),e.addRange(b,e.signatureToDisplayParts(t,P,a,64));}else 231===M.kind&&(l(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(M.symbol),m(M.symbol,a));}if(8&x&&(S="enum member",d(i,"enum member"),264===(M=i.declarations[0]).kind)){var F=t.getConstantValue(M);void 0!==F&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.displayPart(e.getTextOfConstantValue(F),"number"==typeof F?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)));}if(2097152&x&&(u(),236===i.declarations[0].kind?(b.push(e.keywordPart(84)),b.push(e.spacePart()),b.push(e.keywordPart(129))):b.push(e.keywordPart(91)),b.push(e.spacePart()),_(i),e.forEach(i.declarations,function(n){if(237===n.kind){var r=n;if(e.isExternalModuleImportEqualsDeclaration(r))b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.keywordPart(132)),b.push(e.punctuationPart(19)),b.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(20));else{var i=t.getSymbolAtLocation(r.moduleReference);i&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),_(i,o));}return!0}})),!h)if(""!==S){if(v)if(k?(u(),b.push(e.keywordPart(99))):d(i,S),"property"===S||"JSX attribute"===S||3&x||"local var"===S||k)if(b.push(e.punctuationPart(56)),b.push(e.spacePart()),v.symbol&&262144&v.symbol.flags){var I=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(v,e,o);});e.addRange(b,I);}else e.addRange(b,e.typeToDisplayParts(t,v,o));else(16&x||8192&x||16384&x||131072&x||98304&x||"method"===S)&&f((N=v.getNonNullableType().getCallSignatures())[0],N);}else S=n(t,i,s);if(!g&&(g=i.getDocumentationComment(),y=i.getJsDocTags(),0===g.length&&4&x&&i.parent&&e.forEach(i.parent.declarations,function(e){return 265===e.kind})))for(var L=0,R=i.declarations;L0))break}}return{displayParts:b,documentation:g,symbolKind:S,tags:y}}function o(t){return!t.parent&&e.forEach(t.declarations,function(t){if(186===t.kind)return!0;if(226!==t.kind&&228!==t.kind)return!1;for(var n=t.parent;!e.isFunctionBlock(n);n=n.parent)if(265===n.kind||234===n.kind)return!1;return!0})}t.getSymbolKind=n,t.getSymbolModifiers=i,t.getSymbolDisplayPartsDocumentationAndSymbolKind=a;}(e.SymbolDisplay||(e.SymbolDisplay={}));}(r||(r={}));!function(e){function t(t,n){var i=[],a=n.compilerOptions?r(n.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=n.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);n.moduleName&&(s.moduleName=n.moduleName),n.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(n.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),_={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,n){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=n):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=n);},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},d=e.createProgram([o],a,_);return n.reportDiagnostics&&(e.addRange(i,d.getSyntacticDiagnostics(s)),e.addRange(i,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,n.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:i,sourceMapText:u}}function n(n,r,i,a,o){var s=t(n,{compilerOptions:r,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText}function r(t,n){i=i||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var r=0,a=i;r>=5,n+=5;return t},t.prototype.IncreaseInsertionIndex=function(t){var n=this.rulesInsertionIndexBitmap>>t&31;n++,e.Debug.assert((31&n)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");var r=this.rulesInsertionIndexBitmap&~(31<=0},e.prototype.isSpecific=function(){return!0},e}(),a=function(){function e(e){this.token=e;}return e.prototype.GetTokens=function(){return[this.token]},e.prototype.Contains=function(e){return e===this.token},e.prototype.isSpecific=function(){return!0},e}(),o=function(){function e(){}return e.prototype.GetTokens=function(){return n},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e.prototype.isSpecific=function(){return!1},e}(),s=function(){function e(e){this.except=e;}return e.prototype.GetTokens=function(){var e=this;return n.filter(function(t){return t!==e.except})},e.prototype.Contains=function(e){return e!==this.except},e.prototype.isSpecific=function(){return!1},e}();!function(t){function r(e){return new a(e)}function c(e){return new i(e)}function u(t,n,r){void 0===r&&(r=[]);for(var a=[],o=t;o<=n;o++)e.indexOf(r,o)<0&&a.push(o);return new i(a)}function l(e){return new s(e)}t.FromToken=r,t.FromTokens=c,t.FromRange=u,t.AnyExcept=l,t.Any=new o,t.AnyIncludingMultilineComments=t.FromTokens(n.concat([3])),t.Keywords=t.FromRange(72,142),t.BinaryOperators=t.FromRange(27,70),t.BinaryKeywordOperators=t.FromTokens([92,93,142,118,126]),t.UnaryPrefixOperators=t.FromTokens([43,44,52,51]),t.UnaryPrefixExpressions=t.FromTokens([8,71,19,21,17,99,94]),t.UnaryPreincrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostincrementExpressions=t.FromTokens([71,20,22,94]),t.UnaryPredecrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostdecrementExpressions=t.FromTokens([71,20,22,94]),t.Comments=t.FromTokens([2,3]),t.TypeNames=t.FromTokens([71,133,136,122,137,105,119]);}(t.TokenRange||(t.TokenRange={}));}(t.Shared||(t.Shared={}));}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){var n=function(){function n(){this.globalRules=new t.Rules;var e=this.globalRules.HighPriorityCommonRules.slice(0).concat(this.globalRules.UserConfigurableRules).concat(this.globalRules.LowPriorityCommonRules);this.rulesMap=t.RulesMap.create(e);}return n.prototype.getRuleName=function(e){return this.globalRules.getRuleName(e)},n.prototype.getRuleByName=function(e){return this.globalRules[e]},n.prototype.getRulesMap=function(){return this.rulesMap},n.prototype.getFormatOptions=function(){return this.options},n.prototype.ensureUpToDate=function(t){this.options&&e.compareDataObjects(this.options,t)||(this.options=e.clone(t));},n}();t.RulesProvider=n;}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r,i){var a=n.getLineAndCharacterOfPosition(t).line;if(0===a)return[];for(var o=e.getEndLinePosition(a,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(o));)o--;return e.isLineBreak(n.text.charCodeAt(o))&&o--,y({pos:e.getStartPositionOfLine(a-1,n),end:o+1},n,i,r,2)}function r(e,t,n,r){return g(u(c(e,25,t)),t,r,n,3)}function i(t,n,r,i){var a=c(t,17,n);if(!a)return[];var o=u(a.parent);return y({pos:e.getLineStartPositionForPosition(o.getStart(n),n),end:t},n,i,r,4)}function a(e,t,n,r){return g(u(c(e,18,t)),t,r,n,5)}function o(e,t,n){return y({pos:0,end:e.text.length},e,n,t,0)}function s(t,n,r,i,a){return y({pos:e.getLineStartPositionForPosition(t,r),end:n},r,a,i,1)}function c(t,n,r){var i=e.findPrecedingToken(t,r);return i&&i.kind===n&&t===i.getEnd()?i:void 0}function u(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!l(t.parent,t);)t=t.parent;return t}function l(t,n){switch(t.kind){case 229:case 230:return e.rangeContainsRange(t.members,n);case 233:var r=t.body;return r&&234===r.kind&&e.rangeContainsRange(r.statements,n);case 265:case 207:case 234:return e.rangeContainsRange(t.statements,n);case 260:return e.rangeContainsRange(t.block.statements,n)}return!1}function _(t,n){function r(i){var a=e.forEachChild(i,function(r){return e.startEndContainsRange(r.getStart(n),r.end,t)&&r});if(a){var o=r(a);if(o)return o}return i}return r(n)}function d(t,n){function r(){return!1}if(!t.length)return r;var i=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!i.length)return r;var a=0;return function(t){for(;;){if(a>=i.length)return!1;var n=i[a];if(t.end<=n.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,n.start,n.start+n.length))return!0;a++;}}}function p(t,n,r){var i=t.getStart(r);if(i===n.pos&&t.end===n.end)return i;var a=e.findPrecedingToken(n.pos,r);return a?a.end>=n.pos?t.pos:a.end:t.pos}function f(e,n,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(e,i))return n.indentSize;a=o,i=e,e=e.parent;}return 0}function m(e,n,r,i,a,o){var s={pos:0,end:n.text.length};return h(s,e,i,a,t.getFormattingScanner(n.text,r,s.pos,s.end),o.getFormatOptions(),o,1,function(e){return!1},n)}function g(t,n,r,i,a){return t?y({pos:e.getLineStartPositionForPosition(t.getStart(n),n),end:t.end},n,r,i,a):[]}function y(e,n,r,i,a){var o=_(e,n);return h(e,o,t.SmartIndenter.getIndentationForNode(o,e,n,r),f(o,r,n),t.getFormattingScanner(n.text,n.languageVariant,p(o,e,n),e.end),r,i,a,d(n.parseDiagnostics,e),n)}function h(n,r,i,a,o,s,c,u,l,_){function d(n,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,n,r)||e.rangeContainsStartEnd(a,n,r)){if(-1!==o)return o}else{var c=_.getLineAndCharacterOfPosition(n).line,u=e.getLineStartPositionForPosition(n,_),l=t.SmartIndenter.findFirstNonWhitespaceColumn(u,n,_,s);if(c!==i||n===l){var d=t.SmartIndenter.getBaseIndentation(s);return d>l?d:l}}return-1}function p(e,n,r,i,a,o){var c=r,u=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0;return o===n?(c=n===M?B:a.getIndentation(),u=Math.min(s.indentSize,a.getDelta(e)+u)):-1===c&&(c=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,n,_)?a.getIndentation():a.getIndentation()+a.getDelta(e)),{indentation:c,delta:u}}function f(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 229:return 75;case 230:return 109;case 228:return 89;case 232:return 232;case 153:return 125;case 154:return 135;case 151:if(t.asteriskToken)return 39;case 149:case 146:return e.getNameOfDeclaration(t).kind}}function m(e,n,r,i){function a(n,r){return t.SmartIndenter.nodeWillIndentChild(e,r,!0)?n:0}return{getIndentationForComment:function(e,t,n){switch(e){case 18:case 22:case 20:return r+a(i,n)}return-1!==t?t:r},getIndentationForToken:function(t,o,s){if(n!==t&&e.decorators&&o===f(e))return r;switch(o){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return r;case 41:case 29:if(251===s.kind||252===s.kind||250===s.kind)return r;break;case 21:case 22:if(172!==s.kind)return r}return n!==t?r+a(i,s):r},getIndentation:function(){return r},getDelta:function(e){return a(i,e)},recomputeIndentation:function(n){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(n?r+=s.indentSize:r-=s.indentSize,i=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0);}}}function g(t,r,i,a,s,c){function u(r,i,a,s,c,u,l,f){var m=r.getStart(_),y=_.getLineAndCharacterOfPosition(m).line,h=y;r.decorators&&(h=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line);var v=-1;if(l&&-1!==(v=d(m,r.end,c,n,i))&&(i=v),!e.rangeOverlapsWithStartEnd(n,r.pos,r.end))return r.endm);)x(b,t,s,t);if(!o.isOnToken())return i;if(e.isToken(r)&&10!==r.kind){var b=o.readTokenInfo(r);return e.Debug.assert(b.token.end===r.end,"Token end is child end"),x(b,t,s,r),i}var S=147===r.kind?y:u,k=p(r,y,v,t,s,S);return g(r,T,y,h,k.indentation,k.delta),T=t,f&&177===a.kind&&-1===i&&(i=k.indentation),i}function f(n,r,i,a){var s=v(r,n),c=b(s),l=a,d=i;if(0!==s)for(;o.isOnToken()&&!((h=o.readTokenInfo(r)).token.end>n.pos);)if(h.token.kind===s){d=_.getLineAndCharacterOfPosition(h.token.pos).line;var f=p(h.token,d,-1,r,a,i);x(h,r,l=m(r,i,f.indentation,f.delta),r);}else x(h,r,a,r);for(var g=-1,y=0;yt.end)break;x(C,t,S,t);}}}function y(t,r,i,a){for(var o=0,s=t;o0){var S=x(b,s);O(h,v.character,S);}else w(h,v.character);}}}else i||k(n.pos,r,!1);}function E(t,n,r){for(var i=t;io)){var s=N(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(_.text.charCodeAt(s-1))),w(s,o+1-s));}}}function N(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(_.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function A(t,n,r){return{span:e.createTextSpan(t,n),newText:r}}function w(e,t){t&&j.push(A(e,t,""));}function O(e,t,n){(t||n)&&j.push(A(e,t,n));}function P(e,t,n,r,i){switch(e.Operation.Action){case 1:return;case 8:t.end!==r.pos&&w(t.end,r.pos-t.end);break;case 4:if(1!==e.Flag&&n!==i)return;1!==i-n&&O(t.end,r.pos-t.end,s.newLineCharacter);break;case 2:if(1!==e.Flag&&n!==i)return;1===r.pos-t.end&&32===_.text.charCodeAt(t.end)||O(t.end,r.pos-t.end," ");}}var F,I,L,R,M,B,K=new t.FormattingContext(_,u,s),j=[];if(o.advance(),o.isOnToken()){var J=_.getLineAndCharacterOfPosition(r.getStart(_)).line,z=J;r.decorators&&(z=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line),g(r,r,J,z,i,a);}if(!o.isOnToken()){var U=o.getCurrentLeadingTrivia();U&&(y(U,r,r,void 0),function(){var e=I?I.end:n.pos;E(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(n.end).line+1,I);}());}return o.close(),j}function v(e,t){switch(e.kind){case 152:case 228:case 186:case 151:case 150:case 187:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 181:case 182:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 159:if(e.typeArguments===t)return 27}return 0}function b(e){switch(e){case 19:return 20;case 27:return 29}return 0}function x(e,t){function n(e,t){for(var n="",r=0;rr.text.length)return i(o);if(o.indentStyle===e.IndentStyle.None)return 0;var _=e.findPrecedingToken(n,r);if(!_)return i(o);if(e.isStringOrRegularExpressionOrTemplateLiteral(_.kind)&&_.getStart(r)<=n&&_.end>n)return 0;var d=r.getLineAndCharacterOfPosition(n).line;if(o.indentStyle===e.IndentStyle.Block){for(var p=n;p>0;){var g=r.text.charCodeAt(p);if(!e.isWhiteSpaceLike(g))break;p--;}var y=e.getLineStartPositionForPosition(p,r);return t.findFirstNonWhitespaceColumn(y,p,r,o)}if(26===_.kind&&194!==_.parent.kind&&-1!==(T=s(_,r,o)))return T;for(var h,v,b,x=_;x;){if(e.positionBelongsToNode(x,n,r)&&S(x,h)){v=l(x,r);var k=u(_,x,d,r);b=0!==k?c&&2===k?o.indentSize:0:d!==v.line?o.indentSize:0;break}var T=f(x,r,o);if(-1!==T)return T;if(-1!==(T=m(x,r,o)))return T+o.indentSize;h=x,x=x.parent;}return x?a(x,v,void 0,b,r,o):i(o)}function r(e,t,n,r){return a(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,r)}function i(e){return e.baseIndentSize||0}function a(e,t,n,r,a,s){for(var u,l=e.parent;l;){var d=!0;if(n){var p=e.getStart(a);d=pn.end;}if(d&&-1!==(y=f(e,a,s)))return y+r;var g=(u=o(l,e,a)).line===t.line||_(l,e,t.line,a);if(d){var y=c(e,l,t,g,a,s);if(-1!==y)return y+r;if(-1!==(y=m(e,a,s)))return y+r}S(l,e)&&!g&&(r+=s.indentSize),t=u,l=(e=l).parent;}return r+i(s)}function o(e,t,n){var r=p(t,n);return r?n.getLineAndCharacterOfPosition(r.pos):n.getLineAndCharacterOfPosition(e.getStart(n))}function s(t,n,r){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?g(i.list.getChildren(),i.listItemIndex-1,n,r):-1}function c(t,n,r,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(265===n.kind||!i)?y(r,a,o):-1}function u(t,n,r,i){var a=e.findNextToken(t,n);return a?17===a.kind?1:18===a.kind&&r===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,n,r,i){if(211===t.kind&&t.elseStatement===n){var a=e.findChildOfKind(t,82,i);return e.Debug.assert(void 0!==a),l(a,i).line===r}return!1}function d(t,n,r){return t&&e.rangeContainsStartEnd(t,n,r)?t:void 0}function p(e,t){if(e.parent)switch(e.parent.kind){case 159:return d(e.parent.typeArguments,e.getStart(t),e.getEnd());case 178:return e.parent.properties;case 177:return e.parent.elements;case 228:case 186:case 187:case 151:case 150:case 155:case 152:case 161:case 156:n=e.getStart(t);return d(e.parent.typeParameters,n,e.getEnd())||d(e.parent.parameters,n,e.getEnd());case 229:return d(e.parent.typeParameters,e.getStart(t),e.getEnd());case 182:case 181:var n=e.getStart(t);return d(e.parent.typeArguments,n,e.getEnd())||d(e.parent.arguments,n,e.getEnd());case 227:return d(e.parent.declarations,e.getStart(t),e.getEnd());case 241:case 245:return d(e.parent.elements,e.getStart(t),e.getEnd())}}function f(t,n,r){var i=p(t,n);return i?function(i){var a=e.indexOf(i,t);return-1!==a?g(i,a,n,r):-1}(i):-1}function m(t,n,r){if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,a=function(e){for(;;)switch(e.kind){case 181:case 182:case 179:case 180:e=e.expression;break;default:return e}}(i);if(i===a)return-1;var o=n.getLineAndCharacterOfPosition(i.end),s=n.getLineAndCharacterOfPosition(a.end);return o.line===s.line?-1:y(o,n,r)}return-1}function g(t,n,r,i){e.Debug.assert(n>=0&&n=0;o--)if(26!==t[o].kind){if(r.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,r,i);a=l(t[o],r);}return-1}function y(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return v(r,r+e.character,t,n)}function h(t,n,r,i){for(var a=0,o=0,s=t;s=0;r--){var i=n[r];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span));}return t}function y(t){return e.skipTrivia(t,0)===t.length}function h(t){function r(){}var a=e.visitEachChild(t,h,e.nullTransformationContext,v,h),o=e.nodeIsSynthesized(a)?a:(r.prototype=a,new r);return o.pos=n(t),o.end=i(t),o}function v(t,r,a,o,s){var c=e.visitNodes(t,r,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=n(t),u.end=i(t),u}var b;!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start";}(b=t.Position||(t.Position={}));var x;!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes";}(x||(x={})),t.getSeparatorCharacter=c,t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=l;var S=function(){function t(t,n,r){this.newLine=t,this.rulesProvider=n,this.validator=r,this.changes=[],this.newLineCharacter=e.getNewLineCharacter({newLine:t});}return t.fromCodeFixContext=function(e){return new t(p(e),e.rulesProvider)},t.prototype.deleteRange=function(e,t){return this.changes.push({kind:x.Remove,sourceFile:e,range:t}),this},t.prototype.deleteNode=function(e,t,n){void 0===n&&(n={});var r=u(e,t,n,b.FullStart),i=l(e,t,n);return this.changes.push({kind:x.Remove,sourceFile:e,range:{pos:r,end:i}}),this},t.prototype.deleteNodeRange=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.FullStart),a=l(e,n,r);return this.changes.push({kind:x.Remove,sourceFile:e,range:{pos:i,end:a}}),this},t.prototype.deleteNodeInList=function(t,n){var r=e.formatting.SmartIndenter.getContainingList(n,t);if(!r)return e.Debug.fail("node is not a list element"),this;var i=r.indexOf(n);if(i<0)return this;if(1===r.length)return this.deleteNode(t,n),this;if(i!==r.length-1){var a=e.getTokenAtPosition(t,n.end,!1);if(a&&_(n,a)){var o=e.skipTrivia(t.text,u(t,n,{},b.FullStart),!1,!0),s=r[i+1],c=e.skipTrivia(t.text,u(t,s,{},b.FullStart),!1,!0);this.deleteRange(t,{pos:o,end:c});}}else{var l=e.getTokenAtPosition(t,r[i-1].end,!1);l&&_(n,l)&&this.deleteNodeRange(t,l,n);}return this},t.prototype.replaceRange=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,range:t,options:r,node:n}),this},t.prototype.replaceNode=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.Start),a=l(e,t,r);return this.replaceWithSingle(e,i,a,n,r)},t.prototype.replaceNodeRange=function(e,t,n,r,i){void 0===i&&(i={});var a=u(e,t,i,b.Start),o=l(e,n,i);return this.replaceWithSingle(e,a,o,r,i)},t.prototype.replaceWithSingle=function(e,t,n,r,i){return this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,options:i,node:r,range:{pos:t,end:n}}),this},t.prototype.replaceWithMultiple=function(e,t,n,r,i){return this.changes.push({kind:x.ReplaceWithMultipleNodes,sourceFile:e,options:i,nodes:r,range:{pos:t,end:n}}),this},t.prototype.replaceNodeWithNodes=function(e,t,n,r){var i=u(e,t,r,b.Start),a=l(e,t,r);return this.replaceWithMultiple(e,i,a,n,r)},t.prototype.replaceNodesWithNodes=function(t,n,r,i){var a=u(t,n[0],i,b.Start),o=l(t,e.lastOrUndefined(n),i);return this.replaceWithMultiple(t,a,o,r,i)},t.prototype.replaceRangeWithNodes=function(e,t,n,r){return this.replaceWithMultiple(e,t.pos,t.end,n,r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,n,r,i){var a=u(e,t,i,b.Start),o=l(e,n,i);return this.replaceWithMultiple(e,a,o,r,i)},t.prototype.insertNodeAt=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,options:r,node:n,range:{pos:t,end:t}}),this},t.prototype.insertNodeBefore=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.Start);return this.replaceWithSingle(e,i,i,n,r)},t.prototype.insertNodeAfter=function(t,n,r,i){void 0===i&&(i={}),(e.isStatementButNotDeclaration(n)||149===n.kind||148===n.kind||150===n.kind)&&59!==t.text.charCodeAt(n.end-1)&&this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,options:{},range:{pos:n.end,end:n.end},node:e.createToken(25)});var a=l(t,n,i);return this.replaceWithSingle(t,a,a,r,i)},t.prototype.insertNodeInListAfter=function(t,n,r){var i=e.formatting.SmartIndenter.getContainingList(n,t);if(!i)return e.Debug.fail("node is not a list element"),this;var a=i.indexOf(n);if(a<0)return this;var c=n.getEnd();if(a!==i.length-1){var u=e.getTokenAtPosition(t,n.end,!1);if(u&&_(n,u)){var l=e.getLineAndCharacterOfPosition(t,o(t.text,i[a+1].getFullStart())),p=e.getLineAndCharacterOfPosition(t,u.end),f=void 0,m=void 0;p.line===l.line?(m=u.end,f=d(l.character-p.character)):m=e.getStartPositionOfLine(l.line,t),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:m,end:i[a+1].getStart(t)},node:r,options:{prefix:f,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,i[a+1].getStart(t))}});}}else{var g=n.getStart(t),y=e.getLineStartPositionForPosition(g,t),h=void 0,v=!1;if(1===i.length)h=26;else{var b=e.findPrecedingToken(n.pos,t);h=_(n,b)?b.kind:26,v=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==y;}if(s(t.text,n.end)&&(v=!0),v){this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:e.createToken(h),options:{}});var S=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(y,g,t,this.rulesProvider.getFormatOptions()),k=e.skipTrivia(t.text,c,!0,!1);k!==c&&e.isLineBreak(t.text.charCodeAt(k-1))&&k--,this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:k,end:k},node:r,options:{indentation:S,prefix:this.newLineCharacter}});}else this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:r,options:{prefix:e.tokenToString(h)+" "}});}return this},t.prototype.getChanges=function(){for(var n=this,r=e.createMap(),i=0,a=this.changes;i0&&(r=r.concat(n));}),r}var a=[];t.registerCodeFix=n,t.getSupportedErrorCodes=r,t.getFixes=i;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(e){a.set(e.name,e);}function r(t){return e.flatMapIter(a.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?[]:e.getAvailableActions(t)})}function i(e,t,n){var r=a.get(t);return r&&r.getEditsForAction(e,n)}var a=e.createMap();t.registerRefactor=n,t.getApplicableRefactors=r,t.getEditsForRefactor=i;}(e.refactor||(e.refactor={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.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.code],getCodeActions:function(t){var n=t.sourceFile,r=e.getTokenAtPosition(n,t.span.start,!1),i=e.getAncestor(r,143);if(e.Debug.assert(!!i,"Expected position to be owned by a qualified name."),e.isIdentifier(i.left)){var a=i.left.getText(n),o=i.right.getText(n),s=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(i.left,void 0),e.createLiteralTypeNode(e.createLiteral(o))),c=e.textChanges.ChangeTracker.fromCodeFixContext(t);return c.replaceNode(n,i,s),[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Rewrite_as_the_indexed_access_type_0),[a+'["'+o+'"]']),changes:c.getChanges()}]}}});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){function r(e,t,n,r){if(!n){var i=s.getIndexInfoOfType(e,t);if(i){var a=s.indexInfoToIndexSignatureDeclaration(i,t,c);r.push(a);}}}var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1),s=n.program.getTypeChecker(),c=e.getContainingClass(o);if(c){for(var u=e.getOpenBraceOfClassLike(c,i),l=s.getTypeAtLocation(c),_=e.getClassImplementsHeritageClauseElements(c),d=!!s.getIndexTypeOfType(l,1),p=!!s.getIndexTypeOfType(l,0),f=[],m=0,g=_;m0&&function(e,r,i){e.push({description:i,changes:t.newNodesToChanges(r,u,n)});}(f,b,x);}return f}}t.registerCodeFix({errorCodes:[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){function r(r){if(181===o.parent.parent.kind){var i=o.parent.parent,a=t.createMethodFromCallExpression(i,c,r,u),s=e.textChanges.ChangeTracker.fromCodeFixContext(n);return s.insertNodeAfter(m,g,a,{suffix:n.newLineCharacter}),{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(u?e.Diagnostics.Declare_method_0:e.Diagnostics.Declare_static_method_0),[c]),changes:s.getChanges()}}}var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1);if(71===o.kind&&e.isPropertyAccessExpression(o.parent)){var s,c=o.getText(i),u=!1;if(99===o.parent.expression.kind){var l=e.getThisContainer(o,!1);if(!e.isClassElement(l))return;s=l.parent,u=s&&e.hasModifier(l,32);}else{var _=n.program.getTypeChecker(),d=o.parent.expression,p=_.getTypeAtLocation(d);if(32768&p.flags){var f=p.symbol;32&f.flags&&(s=f.declarations&&f.declarations[0],p!==_.getDeclaredTypeOfSymbol(f)&&(u=!0));}}if(s&&e.isClassLike(s)){var m=e.getSourceFileOfNode(s),g=e.getOpenBraceOfClassLike(s,m);return e.isInJavaScriptFile(m)?function(t,i){var a,o=r(!1);if(o&&(a=[o]),i){if(199===t.kind)return a;var s=t.name.getText(),u=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier(s),c),e.createIdentifier("undefined"))),l=e.textChanges.ChangeTracker.fromCodeFixContext(n);l.insertNodeAfter(m,t,u,{suffix:n.newLineCharacter});var _={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_static_property_0),[c]),changes:l.getChanges()};return(a||(a=[])).push(_),a}var d=e.getFirstConstructorWithBody(t);if(!d)return a;var p=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createThis(),c),e.createIdentifier("undefined"))),f=e.textChanges.ChangeTracker.fromCodeFixContext(n);f.insertNodeAt(m,d.body.getEnd()-1,p,{prefix:n.newLineCharacter,suffix:n.newLineCharacter});var g={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_property_0_in_the_constructor),[c]),changes:f.getChanges()};return(a||(a=[])).push(g),a}(s,u):function(t,i){var a,s=r(!0);s&&(a=[s]);var u;if(194===o.parent.parent.kind){var l=o.parent.parent,_=o.parent===l.left?l.right:l.left,d=n.program.getTypeChecker(),p=d.getWidenedType(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(_)));u=d.typeToTypeNode(p,t);}u=u||e.createKeywordTypeNode(119);var f=e.createProperty(void 0,i?[e.createToken(115)]:void 0,c,void 0,u,void 0),y=e.textChanges.ChangeTracker.fromCodeFixContext(n);if(y.insertNodeAfter(m,g,f,{suffix:n.newLineCharacter}),(a||(a=[])).push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Declare_property_0),[c]),changes:y.getChanges()}),!i){var h=e.createKeywordTypeNode(136),v=e.createParameter(void 0,void 0,void 0,"x",void 0,h,void 0),b=e.createIndexSignature(void 0,void 0,[v],u),x=e.textChanges.ChangeTracker.fromCodeFixContext(n);x.insertNodeAfter(m,g,b,{suffix:n.newLineCharacter}),a.push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_property_0),[c]),changes:x.getChanges()});}return a}(s,u)}}}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t){var n,i=t.sourceFile,a=e.getTokenAtPosition(i,t.span.start,!1),o=t.program.getTypeChecker();if(e.isPropertyAccessExpression(a.parent)&&a.parent.name===a){e.Debug.assert(71===a.kind);var s=o.getTypeAtLocation(a.parent.expression);n=o.getSuggestionForNonexistentProperty(a,s);}else{var c=e.getMeaningFromLocation(a);n=o.getSuggestionForNonexistentSymbol(a,e.getTextOfNode(a),r(c));}if(n)return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_spelling_to_0),[n]),changes:[{fileName:i.fileName,textChanges:[{span:{start:a.getStart(),length:a.getWidth()},newText:n}]}]}]}function r(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=793064),1&e&&(t|=107455),t}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1),s=n.program.getTypeChecker();if(e.isClassLike(o.parent)){var c=o.parent,u=e.getClassExtendsHeritageClauseElement(c),l=s.getTypeAtLocation(u),_=s.getPropertiesOfType(l).filter(r),d=t.createMissingMemberNodes(c,_,s),p=t.newNodesToChanges(d,e.getOpenBraceOfClassLike(c,i),n);if(p&&p.length>0)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:p}]}}function r(t){var n=t.getDeclarations();e.Debug.assert(!!(n&&n.length>0));var r=e.getModifierFlags(n[0]);return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code],getCodeActions:n}),t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions:function(t){function n(t){if(210===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,n)}var r=t.sourceFile,i=e.getTokenAtPosition(r,t.span.start,!1);if(99===i.kind){var a=e.getContainingFunction(i),o=n(a.body);if(o){if(o.expression&&181===o.expression.kind)for(var s=o.expression.arguments,c=0;c0){var s=o[0].getFirstToken();if(s&&85===s.kind){var c=e.textChanges.ChangeTracker.fromCodeFixContext(t);c.replaceNode(n,s,e.createToken(108));for(var u=1;u=0;)switch(o=s,s=e.indexOf("/",o+1),c){case 0:e.indexOf("/node_modules/",o)===o&&(n=o,r=s,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(o+1)?c=2:(i=s,c=3);break;case 3:c=e.indexOf("/node_modules/",o)===o?1:3;}return a=o,c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:a}:void 0}function d(e,t){for(var n=0,r=t;n=0;y--){var h=l.statements[y];if(237===h.kind||238===h.kind){u=h;break}}var v=e.createGetCanonicalFileName(p),b=e.stripQuotes(n||function(){var n=l.fileName,i=r.valueDeclaration.getSourceFile().fileName,a=e.getDirectoryPath(n),o=t.program.getCompilerOptions();return function(){var t=r.valueDeclaration;if(e.isModuleDeclaration(t)&&e.isStringLiteral(t.name))return t.name.text}()||function(){var n=e.getEffectiveTypeRoots(o,t.host);if(n)for(var r=0,a=e.map(n,function(t){return e.toPath(t,void 0,v)});r=l.length+_.length&&e.startsWith(t,l)&&e.endsWith(t,_)){var d=t.substr(l.length,t.length-_.length);return r.replace("*",d)}}else if(c===t||c===n)return r}return t}}}()||function(){if(o.rootDirs){var t=d(i,o.rootDirs),n=d(a,o.rootDirs);if(void 0!==t){var r=void 0!==n?g(t,n):t;return e.removeFileExtension(r)}}}()||e.removeFileExtension(g(i,a))}()),x=s(),S=a?e.createImportClause(e.createIdentifier(i),void 0):o?e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(i))):e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,e.createIdentifier(i))])),k=e.createLiteral(b);k.singleQuote=function(){var t=e.forEach(l.statements,function(t){if(e.isImportDeclaration(t)||e.isExportDeclaration(t)){if(t.moduleSpecifier&&e.isStringLiteral(t.moduleSpecifier))return t.moduleSpecifier}else if(e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteral(t.moduleReference.expression))return t.moduleReference.expression});if(t)return 39===l.text.charCodeAt(t.getStart())}();var T=e.createImportDeclaration(void 0,void 0,S,k);return u?x.insertNodeAfter(l,u,T,{suffix:t.newLineCharacter}):x.insertNodeAt(l,function(t){var n=t.text,r=e.getLeadingCommentRanges(n,0);if(!r)return 0;var i=0;r.length&&3===r[0].kind&&e.isPinnedComment(n,r[0])&&(i=r[0].end+1,r=r.slice(1));for(var a=0,o=r;a0?function(t){for(var n,r,i,a=[],u=0,d=t;u=o)return{span:{start:o,length:0},newText:"// @ts-ignore"+r}}return{span:{start:n,length:0},newText:(n===o?"":r)+"// @ts-ignore"+r}}function r(t){var r=t.sourceFile,i=t.program,a=t.newLineCharacter,o=t.span;if(e.isInJavaScriptFile(r)&&e.isCheckJsEnabledForFile(r,i.getCompilerOptions()))return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[{fileName:r.fileName,textChanges:[n(r,o.start,a)]}]},{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[{fileName:r.fileName,textChanges:[{span:{start:r.checkJsDirective?r.checkJsDirective.pos:0,length:r.checkJsDirective?r.checkJsDirective.end-r.checkJsDirective.pos:0},newText:"// @ts-nocheck"+a}]}]}]}t.registerCodeFix({errorCodes:function(){var t=e.Diagnostics;return Object.keys(t).filter(function(n){return t[n]&&t[n].category===e.DiagnosticCategory.Error}).map(function(e){return t[e].code})}(),getCodeActions:r});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r){for(var i=r.sourceFile,a=e.textChanges.ChangeTracker.fromCodeFixContext(r),o=0,s=t;og.length){var v=r.getSignatureFromDeclaration(a[a.length-1]),b=i(v,n,u());b&&y.push(b);}else{e.Debug.assert(a.length===g.length);var x=s(g,c,f,d);y.push(x);}return y;default:return}}}function a(t,n,r,i){var a,s=o(t.arguments.length,void 0,void 0,r);if(r)for(var c=e.length(t.typeArguments),l=0;l=r?e.createToken(55):void 0,i?e.createKeywordTypeNode(119):void 0,void 0);a.push(s);}return a}function s(t,n,r,i){for(var a=t[0],s=t[0].minArgumentCount,u=!1,l=0;l=a.parameters.length&&(!_.hasRestParameter||a.hasRestParameter)&&(a=_);}var d=a.parameters.length-(a.hasRestParameter?1:0),p=a.parameters.map(function(e){return e.name}),f=o(d,p,s,!0);if(u){var m=e.createArrayTypeNode(e.createKeywordTypeNode(119)),g=e.createParameter(void 0,void 0,e.createToken(24),p[d]||"rest",d>=s?e.createToken(55):void 0,m,void 0);f.push(g);}return c(i,n,r,void 0,f,void 0)}function c(t,n,r,i,a,o){return e.createMethod(void 0,t,void 0,n,r?e.createToken(55):void 0,i,a,o,u())}function u(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function l(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.newNodesToChanges=n,t.createMissingMemberNodes=r,t.createMethodFromCallExpression=a,t.createStubbedMethod=c;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){!function(n){function r(t){if(e.isInJavaScriptFile(t.file)){var n=t.startPosition,r=e.getTokenAtPosition(t.file,n,!1),i=t.program.getTypeChecker().getSymbolAtLocation(r);return i&&e.isDeclarationOfFunctionOrClassExpression(i)&&(i=i.valueDeclaration.initializer.symbol),i&&16&i.flags&&i.members&&i.members.size>0?[{name:o.name,description:o.description,actions:[{description:o.description,name:a}]}]:void 0}}function i(t,n){function r(t,n){void 0===n&&(n=!1),p.some(function(n){return e.isNodeDescendantOf(t,n)})||(p.push(t),n?f.push(function(){return h.deleteNodeInList(c,t)}):f.push(function(){return h.deleteNode(c,t)}));}function i(t){function n(t,n){return e.isFunctionLike(n)}function i(t,i){if(4&t.flags){var a=t.valueDeclaration,s=a.parent;if(n(a,s.right)){if(r(s.parent&&210===s.parent.kind?s.parent:s),!s.right)return e.createProperty([],i,t.name,void 0,void 0,void 0);switch(s.right.kind){case 186:var u=s.right;return o(s,f=e.createMethod(void 0,i,void 0,a.name,void 0,void 0,u.parameters,void 0,u.body)),f;case 187:var l=s.right,_=l.body,d=void 0;if(207===_.kind)d=_;else{var p=_;d=e.createBlock([e.createReturn(p)]);}var f=e.createMethod(void 0,i,void 0,a.name,void 0,void 0,l.parameters,void 0,d);return o(s,f),f;default:if(e.isSourceFileJavaScript(c))return;var m=e.createProperty(void 0,i,a.name,void 0,void 0,s.right);return o(s.parent,m),m}}}}var a=[];return t.members&&t.members.forEach(function(e){var t=i(e,void 0);t&&a.push(t);}),t.exports&&t.exports.forEach(function(t){var n=i(t,[e.createToken(115)]);n&&a.push(n);}),a}function o(t,n){e.forEachLeadingCommentRange(c.text,t.pos,function(t,r,i,a){3===i?(t+=2,r-=2):t+=2,e.addSyntheticLeadingComment(n,i,c.text.slice(t,r),a);});}if(a===n){var s=t.startPosition,c=t.file,u=t.program.getTypeChecker(),l=e.getTokenAtPosition(c,s,!1),_=u.getSymbolAtLocation(l),d=t.rulesProvider.getFormatOptions().newLineCharacter,p=[],f=[];if(19&_.flags){var m,g,y=_.valueDeclaration,h=e.textChanges.ChangeTracker.fromCodeFixContext(t);switch(y.kind){case 228:m=y,r(y),g=function(t){var n=i(_);return t.body&&n.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,n)}(y);break;case 226:m=y.parent.parent,1===y.parent.declarations.length?r(m):r(y,!0),g=function(t){var n=t.initializer;if(n&&186===n.kind&&71===t.name.kind){var r=i(n.symbol);return n.body&&r.unshift(e.createConstructor(void 0,void 0,n.parameters,n.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,r)}}(y);}if(g){h.insertNodeAfter(c,m,g,{suffix:d});for(var v=0,b=f;v=n.start+n.length)return(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractFunction)),!0}else l|=S.UsesThis;}if(!t||e.isFunctionLike(t)||e.isClassLike(t)){switch(t.kind){case 228:case 229:265===t.parent.kind&&void 0===t.parent.externalModuleIndicator&&(s||(s=[])).push(e.createDiagnosticForNode(t,x.FunctionWillNotBeVisibleInTheNewScope));}return!1}var o=_;if(t.parent)switch(t.parent.kind){case 211:t.parent.thenStatement!==t&&t.parent.elseStatement!==t||(_=0);break;case 224:t.parent.tryBlock===t?_=0:t.parent.finallyBlock===t&&(_=4);break;case 260:t.parent.block===t&&(_=0);break;case 257:t.expression!==t&&(_|=1);break;default:e.isIterationStatement(t.parent,!1)&&t.parent.statement===t&&(_|=3);}switch(t.kind){case 169:case 99:l|=S.UsesThis;break;case 222:var d=t.label;(c||(c=[])).push(d.escapedText),e.forEachChild(t,r),c.pop();break;case 218:case 217:(d=t.label)?e.contains(c,d.escapedText)||(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):1&_||(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 191:l|=S.IsAsyncFunction;break;case 197:l|=S.IsGenerator;break;case 219:4&_?l|=S.HasReturn:(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(t,r);}_=o;}var a;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return";}(a||(a={})),!(e.isStatement(t)||e.isExpression(t)&&h(t)))return[e.createDiagnosticForNode(t,x.StatementOrExpressionExpected)];if(e.isInAmbientContext(t))return[e.createDiagnosticForNode(t,x.CannotExtractAmbientBlock)];var o=e.getContainingClass(t);o&&i(t,o);var s,c,_=4;return r(t),s}var o=n.length||0,s=g(e.getTokenAtPosition(t,n.start,!1),t,n),c=g(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(n)),t,n),u=[],l=S.None;if(!s||!c)return{errors:[e.createFileDiagnostic(t,n.start,o,x.CannotExtractFunction)]};if(s.parent!==c.parent){var _=e.skipParentheses(s.parent),d=e.skipParentheses(c.parent);if(!(e.isBinaryExpression(_)&&e.isBinaryExpression(d)&&e.isNodeDescendantOf(_,d)))return r(t,n.start,o,x.CannotExtractFunction);s=c=d;}if(s!==c){if(!v(s.parent))return r(t,n.start,o,x.CannotExtractFunction);for(var p=[],f=0,m=s.parent.statements;f=s)return p;if(h.set(p,s),m){for(var g=0,y=_;g=0)){var r=a.getSymbolAtLocation(n);if(r&&m.some(function(e){return e===r})){for(var i=0,o=f;i0&&f[n].push(e.createDiagnosticForNode(i,x.CannotCombineWritesAndReturns));}(k);return m.length&&e.forEachChild(b,u),{target:v,usagesPerScope:_,errorsPerScope:f}}function g(t,n,r){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!y(r,t.parent,n))return t;t=t.parent;}}function y(t,n,r){return e.textSpanContainsPosition(t,n.getStart(r))&&n.getEnd()<=e.textSpanEnd(t)}function h(e){switch(e.parent.kind){case 264:return!1}switch(e.kind){case 9:return 238!==e.parent.kind&&242!==e.parent.kind;case 198:case 174:case 176:return!1;case 71:return 176!==e.parent.kind&&242!==e.parent.kind&&246!==e.parent.kind}return!0}function v(e){switch(e.kind){case 207:case 265:case 234:case 257:return!0;default:return!1}}var b={name:"Extract Method",description:e.Diagnostics.Extract_function.message,getAvailableActions:r,getEditsForAction:i};t.registerRefactor(b);var x;!function(t){function n(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.CannotExtractFunction=n("Cannot extract function."),t.StatementOrExpressionExpected=n("Statement or expression expected."),t.CannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),t.CannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),t.CannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),t.CannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),t.TypeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),t.FunctionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),t.InsufficientSelection=n("Select more than a single identifier."),t.CannotExtractExportedEntity=n("Cannot extract exported declaration"),t.CannotCombineWritesAndReturns=n("Cannot combine writes and returns"),t.CannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),t.CannotExtractAmbientBlock=n("Cannot extract code from ambient contexts");}(x||(x={}));var S;!function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion";}(S=n.RangeFacts||(n.RangeFacts={})),n.getRangeToExtract=a,n.collectEnclosingScopes=s,n.getPossibleExtractions=c,n.extractFunctionInScope=_;var k;!function(e){e[e.Read=1]="Read",e[e.Write=2]="Write";}(k||(k={}));}(t.extractMethod||(t.extractMethod={}));}(e.refactor||(e.refactor={}));}(r||(r={}));!function(e){function t(t,n,r,i){var a=e.isNodeKind(t)?new S(t,n,r):71===t?new D(71,n,r):new C(t,n,r);return a.parent=i,a}function r(t){var n=!0;for(var r in t)if(e.hasProperty(t,r)&&!i(r)){n=!1;break}if(n)return t;var a={};for(var r in t)e.hasProperty(t,r)&&(a[i(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=t[r]);return a}function i(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function a(t){return t?e.map(t,function(e){return e.text}).join(""):""}function o(){return{target:1,jsx:1}}function s(){return e.codefix.getSupportedErrorCodes()}function c(e,t,n){e.version=n,e.scriptSnapshot=t;}function u(t,n,r,i,a,o){var s=n.getText(0,n.getLength()),u=e.createSourceFile(t,s,r,a,o);return c(u,n,i),u}function l(t,n,r,i,a){if(i&&r!==t.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",l=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&l?s+l:s||l;else{var _=n.getText(i.span.start,i.span.start+i.newLength);o=s&&l?s+_+l:s?s+_:_+l;}var d=e.updateSourceFile(t,o,i,a);return c(d,n,r),d.nameTable=void 0,t!==d&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),d}return u(t.fileName,n,t.languageVersion,r,!0,t.scriptKind)}function _(t,n){function i(e){t.log&&t.log(e);}function a(e){var t=se.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function o(e){return x.ensureUpToDate(e),x}function s(){function r(t){return a(t,e.toPath(t,de,pe))}function a(t,r){e.Debug.assert(void 0!==u);var i=u.getOrCreateEntryByPath(t,r);if(i){if(!d){var a=se&&se.getSourceFileByPath(r);if(a)return e.Debug.assertEqual(i.scriptKind,a.scriptKind,"Registered script kind should match new script kind.",r),n.updateDocumentWithKey(t,r,_,f,i.scriptSnapshot,i.version,i.scriptKind)}return n.acquireDocumentWithKey(t,r,_,f,i.scriptSnapshot,i.version,i.scriptKind)}}function o(t){if(!t)return!1;var n=t.path||e.toPath(t.fileName,de,pe);return t.version===u.getVersion(n)}if(t.getProjectVersion){var s=t.getProjectVersion();if(s){if(ce===s)return;ce=s;}}var c=t.getTypeRootsVersion?t.getTypeRootsVersion():0;ue!==c&&(i("TypeRoots version has changed; provide new program"),se=void 0,ue=c);var u=new O(t,pe);if(!function(){if(!se)return!1;var t=u.getRootFileNames();if(se.getSourceFiles().length!==t.length)return!1;for(var n=0,r=t;n0&&!function(e){return-1!==e.indexOf("/node_modules/")}(i.fileName))for(var u=function(){var t=/(?:\/\/+\s*)/.source,i=/(?:\/\*+\s*)/.source,a="("+/(?:^(?:\s|\*)*)/.source+"|"+t+"|"+i+")",o="(?:"+e.map(n,function(e){return"("+r(e.text)+")"}).join("|")+")",s=/(?:$|\*\/)/.source,c=a+("("+o+/(?:.*?)/.source+")")+s;return new RegExp(c,"gim")}(),l=void 0;l=u.exec(o);){_e.throwIfCancellationRequested();e.Debug.assert(l.length===n.length+3);var _=l[1],d=l.index+_.length;if(e.isInComment(i,d)){for(var p=void 0,f=0;f=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}(o.charCodeAt(d+p.text.length))){var m=l[2];c.push({descriptor:p,message:m,position:d});}}}return c}function ne(n,r){s();var i=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(se.getTypeChecker(),i,pe,a(n),r)}function re(e,n,r){var i="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:e,startPosition:i[0],endPosition:i[1],program:c(),newLineCharacter:t.getNewLine(),rulesProvider:o(r),cancellationToken:_e}}function ie(t,n){s();var r=a(t);return e.refactor.getApplicableRefactors(re(r,n))}function ae(t,n,r,i,o){s();var c=a(t);return e.refactor.getEditsForRefactor(re(c,r,n),i,o)}void 0===n&&(n=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var oe=new P(t);x=x||new e.formatting.RulesProvider;var se,ce,ue=0,le=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),_e=new F(t.getCancellationToken&&t.getCancellationToken()),de=t.getCurrentDirectory();!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var pe=e.createGetCanonicalFileName(le);return{dispose:l,cleanupSemanticCache:u,getSyntacticDiagnostics:_,getSemanticDiagnostics:d,getCompilerOptionsDiagnostics:p,getSyntacticClassifications:q,getSemanticClassifications:z,getEncodedSyntacticClassifications:V,getEncodedSemanticClassifications:U,getCompletionsAtPosition:f,getCompletionEntryDetails:m,getCompletionEntrySymbol:g,getSignatureHelpItems:I,getQuickInfoAtPosition:y,getDefinitionAtPosition:h,getImplementationAtPosition:b,getTypeDefinitionAtPosition:v,getReferencesAtPosition:D,findReferences:N,getOccurrencesAtPosition:S,getDocumentHighlights:k,getNameOrDottedNameSpan:M,getBreakpointStatementAtPosition:B,getNavigateToItems:A,getRenameInfo:ne,findRenameLocations:C,getNavigationBarItems:K,getNavigationTree:j,getOutliningSpans:$,getTodoComments:te,getBraceMatchingAtPosition:W,getIndentationAtPosition:G,getFormattingEditsForRange:H,getFormattingEditsForDocument:X,getFormattingEditsAfterKeystroke:Y,getDocCommentTemplateAtPosition:Z,isValidBraceCompletionAtPosition:ee,getCodeFixesAtPosition:Q,getEmitOutput:w,getNonBoundSourceFile:L,getSourceFile:R,getProgram:c,getApplicableRefactors:ie,getEditsForRefactor:ae}}function d(e){return e.nameTable||p(e),e.nameTable}function p(t){var n=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(r){if(e.isIdentifier(r)&&r.escapedText||e.isStringOrNumericLiteral(r)&&f(r)){var i=e.getEscapedTextOfIdentifierOrLiteral(r);n.set(i,void 0===n.get(i)?r.pos:-1);}if(e.forEachChild(r,t),r.jsDoc)for(var a=0,o=r.jsDoc;a285});return r.kind<143?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<143?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}(),k=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.parent=void 0;}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,n){return e.getTokenPosOfNode(this,t,n)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return(e||this.getSourceFile()).text.substring(this.getStart(),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),T=function(){function t(e,t){this.flags=e,this.escapedName=t;}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.unescapeLeadingUnderscores(this.escapedName)},enumerable:!0,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),C=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.kind=t,i}return n(t,e),t}(k),D=function(t){function r(e,n,r){return t.call(this,n,r)||this}return n(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.unescapeLeadingUnderscores(this.escapedText)},enumerable:!0,configurable:!0}),r}(k);D.prototype.kind=71;var E=function(){function e(e,t){this.checker=e,this.flags=t;}return e.prototype.getFlags=function(){return this.flags},e.prototype.getSymbol=function(){return this.symbol},e.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},e.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},e.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},e.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},e.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},e.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},e.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},e.prototype.getBaseTypes=function(){return 32768&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e}(),N=function(){function t(e){this.checker=e;}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=this.declaration?e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]):[]),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),A=function(t){function r(e,n,r){return t.call(this,e,n,r)||this}return n(r,t),r.prototype.update=function(t,n){return e.updateSourceFile(this,t,n)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,n){return e.getPositionOfLineAndCharacter(this,t,n)},r.prototype.getLineEndOfPosition=function(e){var t,n=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();n+1>=r.length&&(t=this.getEnd()),t||(t=r[n+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){function t(e){var t=r(e);t&&a.add(t,e);}function n(e){var t=a.get(e);return t||a.set(e,t=[]),t}function r(t){var n=e.getNameOfDeclaration(t);if(n){var r=e.getTextOfIdentifierOrLiteral(n);if(void 0!==r)return r;if(144===n.kind){var i=n.expression;return 179===i.kind?i.name.text:e.getTextOfIdentifierOrLiteral(i)}}}function i(a){switch(a.kind){case 228:case 186:case 151:case 150:var o=a,s=r(o);if(s){var c=n(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o);}e.forEachChild(a,i);break;case 229:case 199:case 230:case 231:case 232:case 233:case 237:case 246:case 242:case 239:case 240:case 153:case 154:case 163:t(a),e.forEachChild(a,i);break;case 146:if(!e.hasModifier(a,92))break;case 226:case 176:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 264:case 149:case 148:t(a);break;case 244:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 238:var _=a.importClause;_&&(_.name&&t(_),_.namedBindings&&(240===_.namedBindings.kind?t(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;default:e.forEachChild(a,i);}}var a=e.createMultiMap();return e.forEachChild(this,i),a},r}(S),w=function(){function t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n;}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();e.toEditorSettings=r,e.displayPartsToString=a,e.getDefaultCompilerOptions=o,e.getSupportedCodeFixes=s;var O=function(){function t(t,n){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var r=0,i=t.getScriptFileNames();r=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=I,e.createLanguageService=_,e.getNameTable=d,e.getContainingObjectLiteralElement=g,e.getPropertySymbolsFromContextualType=y,e.getPropertySymbolsFromType=h,e.getDefaultLibFilePath=b,e.objectAllocator=function(){return{getNodeConstructor:function(){return S},getTokenConstructor:function(){return C},getIdentifierConstructor:function(){return D},getSourceFileConstructor:function(){return A},getSymbolConstructor:function(){return T},getTypeConstructor:function(){return E},getSignatureConstructor:function(){return N},getSourceMapSourceConstructor:function(){return w}}}();}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r){var i=n.decorators?e.skipTrivia(t.text,n.decorators.end):n.getStart(t);return e.createTextSpanFromBounds(i,(r||n).getEnd())}function i(t,n){return r(t,e.findNextToken(n,n.parent))}function a(e,n){return u(e&&_===t.getLineAndCharacterOfPosition(e.getStart(t)).line?e:n)}function o(n){return e.createTextSpanFromBounds(e.skipTrivia(t.text,n.pos),n.end)}function s(n){return u(e.findPrecedingToken(n.pos,t))}function c(t){return u(e.findNextToken(t,t.parent))}function u(n){function l(n){return 227===n.parent.kind&&n.parent.declarations[0]===n?r(e.findPrecedingToken(n.pos,t,n.parent),n):r(n)}function _(n){return 215===n.parent.parent.kind?u(n.parent.parent):e.isBindingPattern(n.name)?y(n.name):n.initializer||e.hasModifier(n,1)||216===n.parent.parent.kind?l(n):227===n.parent.kind&&n.parent.declarations[0]!==n?u(e.findPrecedingToken(n.pos,t,n.parent)):void 0}function d(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}function p(t){if(e.isBindingPattern(t.name))return y(t.name);if(d(t))return r(t);var n=t.parent,i=e.indexOf(n.parameters,t);return i?p(n.parameters[i-1]):u(n.body)}function f(t){return e.hasModifier(t,1)||229===t.parent.kind&&152!==t.kind}function m(n){switch(n.parent.kind){case 233:if(1!==e.getModuleInstanceState(n.parent))return;case 213:case 211:case 215:return a(n.parent,n.statements[0]);case 214:case 216:return a(e.findPrecedingToken(n.pos,t,n.parent),n.statements[0])}return u(n.statements[0])}function g(e){if(227!==e.initializer.kind)return u(e.initializer);var t=e.initializer;return t.declarations.length>0?u(t.declarations[0]):void 0}function y(t){var n=e.forEach(t.elements,function(e){return 200!==e.kind?e:void 0});return n?u(n):176===t.parent.kind?r(t.parent):l(t.parent)}function h(t){e.Debug.assert(175!==t.kind&&174!==t.kind);var n=177===t.kind?t.elements:t.properties,i=e.forEach(n,function(e){return 200!==e.kind?e:void 0});return i?u(i):r(194===t.parent.kind?t.parent:t)}if(n)switch(n.kind){case 208:return _(n.declarationList.declarations[0]);case 226:case 149:case 148:return _(n);case 146:return p(n);case 228:case 151:case 150:case 153:case 154:case 152:case 186:case 187:return function(e){if(e.body)return f(e)?r(e):u(e.body)}(n);case 207:if(e.isFunctionBlock(n))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return f(e.parent)?a(e.parent,t):u(t)}(n);case 234:return m(n);case 260:return m(n.block);case 210:return r(n.expression);case 219:return r(n.getChildAt(0),n.expression);case 213:return i(n,n.expression);case 212:return u(n.statement);case 225:return r(n.getChildAt(0));case 211:return i(n,n.expression);case 222:return u(n.statement);case 218:case 217:return r(n.getChildAt(0),n.label);case 214:return function(e){return e.initializer?g(e):e.condition?r(e.condition):e.incrementor?r(e.incrementor):void 0}(n);case 215:return i(n,n.expression);case 216:return g(n);case 221:return i(n,n.expression);case 257:case 258:return u(n.statements[0]);case 224:return m(n.tryBlock);case 223:case 243:return r(n,n.expression);case 237:return r(n,n.moduleReference);case 238:case 244:return r(n,n.moduleSpecifier);case 233:if(1!==e.getModuleInstanceState(n))return;case 229:case 232:case 264:case 176:return r(n);case 220:return u(n.statement);case 147:return o(n.parent.decorators);case 174:case 175:return y(n);case 230:case 231:return;case 25:case 1:return a(e.findPrecedingToken(n.pos,t));case 26:return s(n);case 17:return function(n){switch(n.parent.kind){case 232:var r=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 229:var i=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),i.members.length?i.members[0]:i.getLastToken(t));case 235:return a(n.parent.parent,n.parent.clauses[0])}return u(n.parent)}(n);case 18:return function(t){switch(t.parent.kind){case 234:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 232:case 229:return r(t);case 207:if(e.isFunctionBlock(t.parent))return r(t);case 260:return u(e.lastOrUndefined(t.parent.statements));case 235:var n=t.parent,i=e.lastOrUndefined(n.clauses);if(i)return u(e.lastOrUndefined(i.statements));return;case 174:var a=t.parent;return u(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return r(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}(n);case 22:return function(t){switch(t.parent.kind){case 175:var n=t.parent;return r(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return r(e.lastOrUndefined(i.elements)||i)}return u(t.parent)}}(n);case 19:return function(e){return 212===e.parent.kind||181===e.parent.kind||182===e.parent.kind?s(e):185===e.parent.kind?c(e):u(e.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 152:case 213:case 212:case 214:case 216:case 181:case 182:case 185:return s(e);default:return u(e.parent)}}(n);case 56:return function(t){return e.isFunctionLike(t.parent)||261===t.parent.kind||146===t.parent.kind?s(t):u(t.parent)}(n);case 29:case 27:return function(e){return 184===e.parent.kind?c(e):u(e.parent)}(n);case 106:return function(e){return 212===e.parent.kind?i(e,e.parent.expression):u(e.parent)}(n);case 82:case 74:case 87:return c(n);case 142:return function(e){return 216===e.parent.kind?c(e):u(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return h(n);if((71===n.kind||198===n.kind||261===n.kind||262===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return r(n);if(194===n.kind){b=n;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left))return h(b.left);if(58===b.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.parent))return r(n);if(26===b.operatorToken.kind)return u(b.left)}if(e.isPartOfExpression(n))switch(n.parent.kind){case 212:return s(n);case 147:return u(n.parent);case 214:case 216:return r(n);case 194:if(26===n.parent.operatorToken.kind)return r(n);break;case 187:if(n.parent.body===n)return r(n)}if(261===n.parent.kind&&n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return u(n.parent.initializer);if(184===n.parent.kind&&n.parent.type===n)return c(n.parent.type);if(e.isFunctionLike(n.parent)&&n.parent.type===n)return s(n);if(226===n.parent.kind||146===n.parent.kind){var v=n.parent;if(v.initializer===n||v.type===n||e.isAssignmentOperator(n.kind))return s(n)}if(194===n.parent.kind){var b=n.parent;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left)&&(b.right===n||b.operatorToken===n))return s(n)}return u(n.parent)}}if(!t.isDeclarationFile){var l=e.getTokenAtPosition(t,n,!1),_=t.getLineAndCharacterOfPosition(n).line;if((!(t.getLineAndCharacterOfPosition(l.getStart(t)).line>_)||(l=e.findPrecedingToken(l.pos,t))&&t.getLineAndCharacterOfPosition(l.getEnd()).line===_)&&!e.isInAmbientContext(l))return u(l)}}t.spanInSourceFileAtLocation=n;}(e.BreakpointResolver||(e.BreakpointResolver={}));}(r||(r={}));!function(e){function t(t,n,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,r,a,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}e.transform=t;}(r||(r={}));var r,i=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message);}function a(e,n,r,i){var a;i&&(e.log(n),a=t.timestamp());var o=r();if(i){var s=t.timestamp();if(e.log(n+" completed in "+(s-a)+" msec"),"string"==typeof o){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'");}}return o}function o(e,t,n,r){return s(e,t,!0,n,r)}function s(e,n,i,o,s){try{var c=a(e,n,o,s);return i?JSON.stringify({result:c}):c}catch(i){return i instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,i),i.description=n,JSON.stringify({error:i}))}}function c(e,t){return e.map(function(e){return u(e,t)})}function u(e,n){return{message:t.flattenDiagnosticMessageText(e.messageText,n),start:e.start,length:e.length,category:t.DiagnosticCategory[e.category].toLowerCase(),code:e.code}}function l(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var _=function(){function e(e){this.scriptSnapshotShim=e;}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var n=e,r=this.scriptSnapshotShim.getChangeRange(n.scriptSnapshotShim);if(null===r)return null;var i=JSON.parse(r);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose();},e}(),d=function(){function e(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,r){var i=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return t.map(e,function(e){var n=t.getProperty(i,e);return n?{resolvedFileName:n,extension:t.extensionFromPath(n),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,r){var i=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return t.map(e,function(e){return t.getProperty(i,e)})});}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e);},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e);},e.prototype.error=function(e){this.shimHost.error(e);},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new _(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();t.LanguageServiceShimHostAdapter=d;var p=function(){function e(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"realpath"in this.shimHost&&(this.realpath=function(e){return t.shimHost.realpath(e)});}return e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();t.CoreServicesShimHostAdapter=p;var f=function(){function e(e){this.factory=e,e.registerShim(this);}return e.prototype.dispose=function(e){this.factory.unregisterShim(this);},e}();t.realizeDiagnostics=c;var m=function(e){function r(t,n,r){var i=e.call(this,t)||this;return i.host=n,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return n(r,e),r.prototype.forwardJSONCall=function(e,t){return o(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,i&&i.CollectGarbage&&(i.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t);},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null});},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null});},r.prototype.realizeDiagnostics=function(e){var n=t.getNewLineOrDefaultFromHost(this.host);return t.realizeDiagnostics(e,n)},r.prototype.getSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(n,r))})},r.prototype.getSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(n,r))})},r.prototype.getEncodedSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(n,r)))})},r.prototype.getEncodedSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(n,r)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var n=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(n)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var n=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(n)})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return n.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,n){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNameOrDottedNameSpan(e,t,n)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t)})},r.prototype.getDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return n.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t)})},r.prototype.findRenameLocations=function(e,t,n,r){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+n+", "+r+")",function(){return i.languageService.findRenameLocations(e,t,n,r)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,t,n)})},r.prototype.getIndentationAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(n);return r.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var n=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return n.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(e,n,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+n+")",function(){var a=i.languageService.getDocumentHighlights(e,n,JSON.parse(r)),o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+")",function(){return n.languageService.getCompletionsAtPosition(e,t)})},r.prototype.getCompletionEntryDetails=function(e,t,n){var r=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+n+"')",function(){return r.languageService.getCompletionEntryDetails(e,t,n)})},r.prototype.getFormattingEditsForRange=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+n+")",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,t,n,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var r=JSON.parse(t);return n.languageService.getFormattingEditsForDocument(e,r)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+n+"')",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,t,n,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,n){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNavigateToItems(e,t,n)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var n=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return n.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},r.prototype.getEmitOutputObject=function(e){var t=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(f),g=function(e){function r(n,r){var i=e.call(this,n)||this;return i.logger=r,i.logPerformance=!1,i.classifier=t.createClassifier(),i}return n(r,e),r.prototype.getEncodedLexicalClassifications=function(e,t,n){var r=this;return o(this.logger,"getEncodedLexicalClassifications",function(){return l(r.classifier.getEncodedLexicalClassifications(e,t,n))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,n){for(var r=this.classifier.getClassificationsForLine(e,t,n),i="",a=0,o=r.entries;a",""":'"',"'":"'","`":"`"},freeGlobal="object"==typeof commonjsGlobal$$1&&commonjsGlobal$$1&&commonjsGlobal$$1.Object===Object&&commonjsGlobal$$1,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),unescapeHtmlChar=basePropertyOf(htmlUnescapes),objectProto=Object.prototype,objectToString=objectProto.toString,Symbol=root.Symbol,symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0,index=unescape$1;const ts$1=typescript,unescape=index,SyntaxKind$1=ts$1.SyntaxKind,ASSIGNMENT_OPERATORS=[SyntaxKind$1.EqualsToken,SyntaxKind$1.PlusEqualsToken,SyntaxKind$1.MinusEqualsToken,SyntaxKind$1.AsteriskEqualsToken,SyntaxKind$1.SlashEqualsToken,SyntaxKind$1.PercentEqualsToken,SyntaxKind$1.LessThanLessThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken,SyntaxKind$1.AmpersandEqualsToken,SyntaxKind$1.BarEqualsToken,SyntaxKind$1.CaretEqualsToken],LOGICAL_OPERATORS=[SyntaxKind$1.BarBarToken,SyntaxKind$1.AmpersandAmpersandToken],TOKEN_TO_TEXT={};TOKEN_TO_TEXT[SyntaxKind$1.OpenBraceToken]="{",TOKEN_TO_TEXT[SyntaxKind$1.CloseBraceToken]="}",TOKEN_TO_TEXT[SyntaxKind$1.OpenParenToken]="(",TOKEN_TO_TEXT[SyntaxKind$1.CloseParenToken]=")",TOKEN_TO_TEXT[SyntaxKind$1.OpenBracketToken]="[",TOKEN_TO_TEXT[SyntaxKind$1.CloseBracketToken]="]",TOKEN_TO_TEXT[SyntaxKind$1.DotToken]=".",TOKEN_TO_TEXT[SyntaxKind$1.DotDotDotToken]="...",TOKEN_TO_TEXT[SyntaxKind$1.SemicolonToken]=";",TOKEN_TO_TEXT[SyntaxKind$1.CommaToken]=",",TOKEN_TO_TEXT[SyntaxKind$1.LessThanToken]="<",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.LessThanEqualsToken]="<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanEqualsToken]=">=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsToken]="==",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsToken]="!=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsEqualsToken]="===",TOKEN_TO_TEXT[SyntaxKind$1.InstanceOfKeyword]="instanceof",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsEqualsToken]="!==",TOKEN_TO_TEXT[SyntaxKind$1.EqualsGreaterThanToken]="=>",TOKEN_TO_TEXT[SyntaxKind$1.PlusToken]="+",TOKEN_TO_TEXT[SyntaxKind$1.MinusToken]="-",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskToken]="*",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskToken]="**",TOKEN_TO_TEXT[SyntaxKind$1.SlashToken]="/",TOKEN_TO_TEXT[SyntaxKind$1.PercentToken]="%",TOKEN_TO_TEXT[SyntaxKind$1.PlusPlusToken]="++",TOKEN_TO_TEXT[SyntaxKind$1.MinusMinusToken]="--",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanToken]="<<",TOKEN_TO_TEXT[SyntaxKind$1.LessThanSlashToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanToken]=">>>",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandToken]="&",TOKEN_TO_TEXT[SyntaxKind$1.BarToken]="|",TOKEN_TO_TEXT[SyntaxKind$1.CaretToken]="^",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationToken]="!",TOKEN_TO_TEXT[SyntaxKind$1.TildeToken]="~",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandAmpersandToken]="&&",TOKEN_TO_TEXT[SyntaxKind$1.BarBarToken]="||",TOKEN_TO_TEXT[SyntaxKind$1.QuestionToken]="?",TOKEN_TO_TEXT[SyntaxKind$1.ColonToken]=":",TOKEN_TO_TEXT[SyntaxKind$1.EqualsToken]="=",TOKEN_TO_TEXT[SyntaxKind$1.PlusEqualsToken]="+=",TOKEN_TO_TEXT[SyntaxKind$1.MinusEqualsToken]="-=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskEqualsToken]="*=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskEqualsToken]="**=",TOKEN_TO_TEXT[SyntaxKind$1.SlashEqualsToken]="/=",TOKEN_TO_TEXT[SyntaxKind$1.PercentEqualsToken]="%=",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanEqualsToken]="<<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanEqualsToken]=">>=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken]=">>>=",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandEqualsToken]="&=",TOKEN_TO_TEXT[SyntaxKind$1.BarEqualsToken]="|=",TOKEN_TO_TEXT[SyntaxKind$1.CaretEqualsToken]="^=",TOKEN_TO_TEXT[SyntaxKind$1.AtToken]="@",TOKEN_TO_TEXT[SyntaxKind$1.InKeyword]="in";var nodeUtils$2={SyntaxKind:SyntaxKind$1,isAssignmentOperator:isAssignmentOperator,isLogicalOperator:isLogicalOperator,getTextForTokenKind:getTextForTokenKind,isESTreeClassMember:isESTreeClassMember,hasModifier:hasModifier,isComma:isComma,getBinaryExpressionType:getBinaryExpressionType,getLocFor:getLocFor,getLoc:getLoc,isToken:isToken,isJSXToken:isJSXToken,getDeclarationKind:getDeclarationKind,getTSNodeAccessibility:getTSNodeAccessibility,hasStaticModifierFlag:hasStaticModifierFlag,findNextToken:findNextToken,findFirstMatchingToken:findFirstMatchingToken,findChildOfKind:findChildOfKind,findFirstMatchingAncestor:findFirstMatchingAncestor,findAncestorOfKind:findAncestorOfKind,hasJSXAncestor:hasJSXAncestor,unescapeIdentifier:unescapeIdentifier,unescapeStringLiteralText:unescapeStringLiteralText,isComputedProperty:isComputedProperty,isOptional:isOptional,fixExports:fixExports,getTokenType:getTokenType,convertToken:convertToken,convertTokens:convertTokens,getNodeContainer:getNodeContainer,isWithinTypeAnnotation:isWithinTypeAnnotation,isTypeKeyword:isTypeKeyword};const nodeUtils$1=nodeUtils$2,AST_NODE_TYPES=astNodeTypes$1,SyntaxKind=nodeUtils$1.SyntaxKind;var convert$2=function e(t){function n(t){return e({node:t,parent:p,ast:m,additionalOptions:g})}function r(e){const t=n(e),r=e.getFullStart()-1,i=nodeUtils$1.getLocFor(r,e.end,m);return{type:AST_NODE_TYPES.TypeAnnotation,loc:i,range:[r,e.end],typeAnnotation:t}}function i(e){const t=e[0],r=e[e.length-1],a=nodeUtils$1.findNextToken(r,m);return{type:AST_NODE_TYPES.TypeParameterInstantiation,range:[t.pos-1,a.end],loc:nodeUtils$1.getLocFor(t.pos-1,a.end,m),params:e.map(e=>{if(nodeUtils$1.isTypeKeyword(e.kind))return{type:AST_NODE_TYPES[`TS${SyntaxKind[e.kind]}`],range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,m)};return{type:AST_NODE_TYPES.TSTypeReference,range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,m),typeName:n(e.typeName||e),typeParameters:e.typeArguments?i(e.typeArguments):void 0}})}}function a(t){const n=t[0],r=t[t.length-1],i=nodeUtils$1.findNextToken(r,m);return{type:AST_NODE_TYPES.TypeParameterDeclaration,range:[n.pos-1,i.end],loc:nodeUtils$1.getLocFor(n.pos-1,i.end,m),params:t.map(t=>{const n=nodeUtils$1.unescapeIdentifier(t.name.text);const r=t.constraint?e({node:t.constraint,parent:t,ast:m,additionalOptions:g}):void 0;const i=t.default?e({node:t.default,parent:t,ast:m,additionalOptions:g}):t.default;return{type:AST_NODE_TYPES.TypeParameter,range:[t.getStart(),t.getEnd()],loc:nodeUtils$1.getLoc(t,m),name:n,constraint:r,default:i}})}}function o(e){const t=n(e.expression),r={type:AST_NODE_TYPES.ClassImplements,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=i(e.typeArguments)),r}function s(e){const t=n(e.expression),r={type:AST_NODE_TYPES.TSInterfaceHeritage,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=i(e.typeArguments)),r}function c(e){return e&&e.length?e.map(e=>{const t=n(e.expression);return{type:AST_NODE_TYPES.Decorator,range:[e.getStart(),e.end],loc:nodeUtils$1.getLoc(e,m),expression:t}}):[]}function u(e){return e&&e.length?e.map(e=>{const t=n(e);if(!e.decorators||!e.decorators.length)return t;return Object.assign(t,{decorators:c(e.decorators)})}):[]}function l(e){const t=nodeUtils$1.convertToken(e,m);if(t.type===AST_NODE_TYPES.JSXMemberExpression){const r=p.tagName.expression.kind===SyntaxKind.PropertyAccessExpression;t.object=n(p.tagName.expression),t.property=n(p.tagName.name),t.object.type=r?AST_NODE_TYPES.JSXMemberExpression:AST_NODE_TYPES.JSXIdentifier,t.property.type=AST_NODE_TYPES.JSXIdentifier,e.expression.kind===SyntaxKind.ThisKeyword&&(t.object.name="this");}else t.type=AST_NODE_TYPES.JSXIdentifier,t.name=t.value;return delete t.value,t}function _(e){if(!e||!e.length)return;const t={};for(let n=0;n!t[n]);r&&r.length&&(y.modifiers=r.map(n));}function d(e){const t=p.type.getEnd();e.range[1]=t;const n=nodeUtils$1.getLocFor(e.range[0],e.range[1],m);e.loc=n;}const p=t.node,f=t.parent,m=t.ast,g=t.additionalOptions||{};if(!p)return null;let y={type:"",range:[p.getStart(),p.end],loc:nodeUtils$1.getLoc(p,m)};switch(p.kind){case SyntaxKind.SourceFile:Object.assign(y,{type:AST_NODE_TYPES.Program,body:[],sourceType:p.externalModuleIndicator?"module":"script"}),p.statements.forEach(e=>{const t=n(e);t&&y.body.push(t);}),y.range[1]=p.endOfFileToken.end,y.loc=nodeUtils$1.getLocFor(p.getStart(),y.range[1],m);break;case SyntaxKind.Block:Object.assign(y,{type:AST_NODE_TYPES.BlockStatement,body:p.statements.map(n)});break;case SyntaxKind.Identifier:Object.assign(y,{type:AST_NODE_TYPES.Identifier,name:nodeUtils$1.unescapeIdentifier(p.text)});break;case SyntaxKind.WithStatement:Object.assign(y,{type:AST_NODE_TYPES.WithStatement,object:n(p.expression),body:n(p.statement)});break;case SyntaxKind.ReturnStatement:Object.assign(y,{type:AST_NODE_TYPES.ReturnStatement,argument:n(p.expression)});break;case SyntaxKind.LabeledStatement:Object.assign(y,{type:AST_NODE_TYPES.LabeledStatement,label:n(p.label),body:n(p.statement)});break;case SyntaxKind.BreakStatement:case SyntaxKind.ContinueStatement:Object.assign(y,{type:SyntaxKind[p.kind],label:n(p.label)});break;case SyntaxKind.IfStatement:Object.assign(y,{type:AST_NODE_TYPES.IfStatement,test:n(p.expression),consequent:n(p.thenStatement),alternate:n(p.elseStatement)});break;case SyntaxKind.SwitchStatement:Object.assign(y,{type:AST_NODE_TYPES.SwitchStatement,discriminant:n(p.expression),cases:p.caseBlock.clauses.map(n)});break;case SyntaxKind.CaseClause:case SyntaxKind.DefaultClause:Object.assign(y,{type:AST_NODE_TYPES.SwitchCase,test:n(p.expression),consequent:p.statements.map(n)});break;case SyntaxKind.ThrowStatement:Object.assign(y,{type:AST_NODE_TYPES.ThrowStatement,argument:n(p.expression)});break;case SyntaxKind.TryStatement:Object.assign(y,{type:AST_NODE_TYPES.TryStatement,block:e({node:p.tryBlock,parent:null,ast:m,additionalOptions:g}),handler:n(p.catchClause),finalizer:n(p.finallyBlock)});break;case SyntaxKind.CatchClause:Object.assign(y,{type:AST_NODE_TYPES.CatchClause,param:p.variableDeclaration?n(p.variableDeclaration.name):null,body:n(p.block)});break;case SyntaxKind.WhileStatement:Object.assign(y,{type:AST_NODE_TYPES.WhileStatement,test:n(p.expression),body:n(p.statement)});break;case SyntaxKind.DoStatement:Object.assign(y,{type:AST_NODE_TYPES.DoWhileStatement,test:n(p.expression),body:n(p.statement)});break;case SyntaxKind.ForStatement:Object.assign(y,{type:AST_NODE_TYPES.ForStatement,init:n(p.initializer),test:n(p.condition),update:n(p.incrementor),body:n(p.statement)});break;case SyntaxKind.ForInStatement:case SyntaxKind.ForOfStatement:{const e=!(!p.awaitModifier||p.awaitModifier.kind!==SyntaxKind.AwaitKeyword);Object.assign(y,{type:SyntaxKind[p.kind],left:n(p.initializer),right:n(p.expression),body:n(p.statement),await:e});break}case SyntaxKind.FunctionDeclaration:{let e=AST_NODE_TYPES.FunctionDeclaration;if(p.modifiers&&p.modifiers.length){const t=nodeUtils$1.hasModifier(SyntaxKind.DeclareKeyword,p);t&&(e=AST_NODE_TYPES.DeclareFunction);}p.parent&&p.parent.kind===SyntaxKind.ModuleBlock&&(e=AST_NODE_TYPES.TSNamespaceFunctionDeclaration),Object.assign(y,{type:e,id:n(p.name),generator:!!p.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),params:u(p.parameters),body:n(p.body)}),p.type&&(y.returnType=r(p.type)),p.typeParameters&&p.typeParameters.length&&(y.typeParameters=a(p.typeParameters)),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.VariableDeclaration:Object.assign(y,{type:AST_NODE_TYPES.VariableDeclarator,id:n(p.name),init:n(p.initializer)}),p.type&&(y.id.typeAnnotation=r(p.type),d(y.id));break;case SyntaxKind.VariableStatement:Object.assign(y,{type:AST_NODE_TYPES.VariableDeclaration,declarations:p.declarationList.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(p.declarationList)}),y=nodeUtils$1.fixExports(p,y,m);break;case SyntaxKind.VariableDeclarationList:Object.assign(y,{type:AST_NODE_TYPES.VariableDeclaration,declarations:p.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(p)});break;case SyntaxKind.ExpressionStatement:Object.assign(y,{type:AST_NODE_TYPES.ExpressionStatement,expression:n(p.expression)});break;case SyntaxKind.ThisKeyword:Object.assign(y,{type:AST_NODE_TYPES.ThisExpression});break;case SyntaxKind.ArrayLiteralExpression:{const e=nodeUtils$1.findAncestorOfKind(p,SyntaxKind.BinaryExpression),t=p.parent&&p.parent.kind===SyntaxKind.ForOfStatement,r=p.parent&&p.parent.kind===SyntaxKind.ForInStatement;let i;e&&(i=e.left===p||nodeUtils$1.findChildOfKind(e.left,SyntaxKind.ArrayLiteralExpression,m)===p),i||t||r?Object.assign(y,{type:AST_NODE_TYPES.ArrayPattern,elements:p.elements.map(n)}):Object.assign(y,{type:AST_NODE_TYPES.ArrayExpression,elements:p.elements.map(n)});break}case SyntaxKind.ObjectLiteralExpression:{const e=nodeUtils$1.findFirstMatchingAncestor(p,e=>e.kind===SyntaxKind.BinaryExpression||e.kind===SyntaxKind.ArrowFunction),t=e&&e.kind===SyntaxKind.BinaryExpression&&e.operatorToken.kind===SyntaxKind.FirstAssignment?e:null;let r=!1;t&&(r=t.left===p||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ObjectLiteralExpression,m)===p),r?Object.assign(y,{type:AST_NODE_TYPES.ObjectPattern,properties:p.properties.map(n)}):Object.assign(y,{type:AST_NODE_TYPES.ObjectExpression,properties:p.properties.map(n)});break}case SyntaxKind.PropertyAssignment:Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:n(p.initializer),computed:nodeUtils$1.isComputedProperty(p.name),method:!1,shorthand:!1,kind:"init"});break;case SyntaxKind.ShorthandPropertyAssignment:p.objectAssignmentInitializer?Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:{type:AST_NODE_TYPES.AssignmentPattern,left:n(p.name),right:n(p.objectAssignmentInitializer),loc:y.loc,range:y.range},computed:!1,method:!1,shorthand:!0,kind:"init"}):Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:n(p.initializer||p.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.ComputedPropertyName:if(f.kind!==SyntaxKind.ObjectLiteralExpression)return n(p.expression);Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:n(p.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.PropertyDeclaration:{const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p);Object.assign(y,{type:e?AST_NODE_TYPES.TSAbstractClassProperty:AST_NODE_TYPES.ClassProperty,key:n(p.name),value:n(p.initializer),computed:nodeUtils$1.isComputedProperty(p.name),static:nodeUtils$1.hasStaticModifierFlag(p),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0}),p.type&&(y.typeAnnotation=r(p.type)),p.decorators&&(y.decorators=c(p.decorators));const t=nodeUtils$1.getTSNodeAccessibility(p);t&&(y.accessibility=t),p.name.kind===SyntaxKind.Identifier&&p.questionToken&&(y.key.optional=!0),y.key.type===AST_NODE_TYPES.Literal&&p.questionToken&&(y.optional=!0);break}case SyntaxKind.GetAccessor:case SyntaxKind.SetAccessor:case SyntaxKind.MethodDeclaration:{const e=nodeUtils$1.findFirstMatchingToken(p.name,m,e=>{if(!e||!e.kind)return!1;return"("===nodeUtils$1.getTextForTokenKind(e.kind)}),t=m.getLineAndCharacterOfPosition(e.getStart()),i=p.kind===SyntaxKind.MethodDeclaration,o={type:AST_NODE_TYPES.FunctionExpression,id:null,generator:!!p.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),body:n(p.body),range:[p.parameters.pos-1,y.range[1]],loc:{start:{line:t.line+1,column:t.character},end:y.loc.end}};if(p.type&&(o.returnType=r(p.type)),f.kind===SyntaxKind.ObjectLiteralExpression)o.params=p.parameters.map(n),Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:o,computed:nodeUtils$1.isComputedProperty(p.name),method:i,shorthand:!1,kind:"init"});else{o.params=u(p.parameters);const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p)?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition;Object.assign(y,{type:e,key:n(p.name),value:o,computed:nodeUtils$1.isComputedProperty(p.name),static:nodeUtils$1.hasStaticModifierFlag(p),kind:"method"}),p.decorators&&(y.decorators=c(p.decorators));const t=nodeUtils$1.getTSNodeAccessibility(p);t&&(y.accessibility=t);}y.key.type===AST_NODE_TYPES.Identifier&&p.questionToken&&(y.key.optional=!0),p.kind===SyntaxKind.GetAccessor?y.kind="get":p.kind===SyntaxKind.SetAccessor?y.kind="set":y.static||p.name.kind!==SyntaxKind.StringLiteral||"constructor"!==p.name.text||(y.kind="constructor"),p.typeParameters&&p.typeParameters.length&&(o.typeParameters=a(p.typeParameters));break}case SyntaxKind.Constructor:{const e=nodeUtils$1.hasStaticModifierFlag(p),t=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p),r=e?nodeUtils$1.findNextToken(p.getFirstToken(),m):p.getFirstToken(),i=m.getLineAndCharacterOfPosition(p.parameters.pos-1),a={type:AST_NODE_TYPES.FunctionExpression,id:null,params:u(p.parameters),generator:!1,expression:!1,async:!1,body:n(p.body),range:[p.parameters.pos-1,y.range[1]],loc:{start:{line:i.line+1,column:i.character},end:y.loc.end}},o=m.getLineAndCharacterOfPosition(r.getStart()),s=m.getLineAndCharacterOfPosition(r.getEnd()),c=!!p.name&&nodeUtils$1.isComputedProperty(p.name);let l;l=c?{type:AST_NODE_TYPES.Literal,value:"constructor",raw:p.name.getText(),range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:s.line+1,column:s.character}}}:{type:AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:s.line+1,column:s.character}}},Object.assign(y,{type:t?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition,key:l,value:a,computed:c,static:e,kind:e||c?"method":"constructor"});const _=nodeUtils$1.getTSNodeAccessibility(p);_&&(y.accessibility=_);break}case SyntaxKind.FunctionExpression:Object.assign(y,{type:AST_NODE_TYPES.FunctionExpression,id:n(p.name),generator:!!p.asteriskToken,params:u(p.parameters),body:n(p.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),expression:!1}),p.type&&(y.returnType=r(p.type)),p.typeParameters&&p.typeParameters.length&&(y.typeParameters=a(p.typeParameters));break;case SyntaxKind.SuperKeyword:Object.assign(y,{type:AST_NODE_TYPES.Super});break;case SyntaxKind.ArrayBindingPattern:Object.assign(y,{type:AST_NODE_TYPES.ArrayPattern,elements:p.elements.map(n)});break;case SyntaxKind.OmittedExpression:return null;case SyntaxKind.ObjectBindingPattern:Object.assign(y,{type:AST_NODE_TYPES.ObjectPattern,properties:p.elements.map(n)});break;case SyntaxKind.BindingElement:if(f.kind===SyntaxKind.ArrayBindingPattern){const t=e({node:p.name,parent:f,ast:m,additionalOptions:g});if(p.initializer)Object.assign(y,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(p.initializer)});else{if(!p.dotDotDotToken)return t;Object.assign(y,{type:AST_NODE_TYPES.RestElement,argument:t});}}else f.kind===SyntaxKind.ObjectBindingPattern&&(p.dotDotDotToken?Object.assign(y,{type:AST_NODE_TYPES.ExperimentalRestProperty,argument:n(p.propertyName||p.name),computed:Boolean(p.propertyName&&p.propertyName.kind===SyntaxKind.ComputedPropertyName),shorthand:!p.propertyName}):Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.propertyName||p.name),value:n(p.name),computed:Boolean(p.propertyName&&p.propertyName.kind===SyntaxKind.ComputedPropertyName),method:!1,shorthand:!p.propertyName,kind:"init"}),p.initializer&&(y.value={type:AST_NODE_TYPES.AssignmentPattern,left:n(p.name),right:n(p.initializer),range:[p.name.getStart(),p.initializer.end],loc:nodeUtils$1.getLocFor(p.name.getStart(),p.initializer.end,m)}));break;case SyntaxKind.ArrowFunction:Object.assign(y,{type:AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:u(p.parameters),body:n(p.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),expression:p.body.kind!==SyntaxKind.Block}),p.type&&(y.returnType=r(p.type)),p.typeParameters&&p.typeParameters.length&&(y.typeParameters=a(p.typeParameters));break;case SyntaxKind.YieldExpression:Object.assign(y,{type:AST_NODE_TYPES.YieldExpression,delegate:!!p.asteriskToken,argument:n(p.expression)});break;case SyntaxKind.AwaitExpression:Object.assign(y,{type:AST_NODE_TYPES.AwaitExpression,argument:n(p.expression)});break;case SyntaxKind.NoSubstitutionTemplateLiteral:Object.assign(y,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[{type:AST_NODE_TYPES.TemplateElement,value:{raw:m.text.slice(p.getStart()+1,p.end-1),cooked:p.text},tail:!0,range:y.range,loc:y.loc}],expressions:[]});break;case SyntaxKind.TemplateExpression:Object.assign(y,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[n(p.head)],expressions:[]}),p.templateSpans.forEach(e=>{y.expressions.push(n(e.expression));y.quasis.push(n(e.literal));});break;case SyntaxKind.TaggedTemplateExpression:Object.assign(y,{type:AST_NODE_TYPES.TaggedTemplateExpression,tag:n(p.tag),quasi:n(p.template)});break;case SyntaxKind.TemplateHead:case SyntaxKind.TemplateMiddle:case SyntaxKind.TemplateTail:{const e=p.kind===SyntaxKind.TemplateTail;Object.assign(y,{type:AST_NODE_TYPES.TemplateElement,value:{raw:m.text.slice(p.getStart()+1,p.end-(e?1:2)),cooked:p.text},tail:e});break}case SyntaxKind.SpreadElement:{let e=AST_NODE_TYPES.SpreadElement;p.parent&&p.parent.parent&&p.parent.parent.kind===SyntaxKind.BinaryExpression&&(p.parent.parent.left===p.parent?e=AST_NODE_TYPES.RestElement:p.parent.parent.right===p.parent&&(e=AST_NODE_TYPES.SpreadElement)),Object.assign(y,{type:e,argument:n(p.expression)});break}case SyntaxKind.SpreadAssignment:{let e=AST_NODE_TYPES.ExperimentalSpreadProperty;p.parent&&p.parent.parent&&p.parent.parent.kind===SyntaxKind.BinaryExpression&&(p.parent.parent.right===p.parent?e=AST_NODE_TYPES.ExperimentalSpreadProperty:p.parent.parent.left===p.parent&&(e=AST_NODE_TYPES.ExperimentalRestProperty)),Object.assign(y,{type:e,argument:n(p.expression)});break}case SyntaxKind.Parameter:{let t;if(p.dotDotDotToken?(t=n(p.name),Object.assign(y,{type:AST_NODE_TYPES.RestElement,argument:t})):p.initializer?(t=n(p.name),Object.assign(y,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(p.initializer)})):(t=e({node:p.name,parent:f,ast:m,additionalOptions:g}),y=t),p.type&&(t.typeAnnotation=r(p.type),d(t)),p.questionToken&&(t.optional=!0),p.modifiers)return{type:AST_NODE_TYPES.TSParameterProperty,range:[p.getStart(),p.end],loc:nodeUtils$1.getLoc(p,m),accessibility:nodeUtils$1.getTSNodeAccessibility(p)||void 0,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p)||void 0,export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0,parameter:y};break}case SyntaxKind.ClassDeclaration:case SyntaxKind.ClassExpression:{const e=p.heritageClauses||[];let t=SyntaxKind[p.kind],r=e.length?e[e.length-1]:p.name;if(p.typeParameters&&p.typeParameters.length){const e=p.typeParameters[p.typeParameters.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,m)),y.typeParameters=a(p.typeParameters);}if(p.modifiers&&p.modifiers.length){p.kind===SyntaxKind.ClassDeclaration&&nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p)&&(t=`TSAbstract${t}`);const e=p.modifiers[p.modifiers.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,m));}else r||(r=p.getFirstToken());const s=nodeUtils$1.findNextToken(r,m),u=e.find(e=>e.token===SyntaxKind.ExtendsKeyword);u&&u.types[0]&&u.types[0].typeArguments&&(y.superTypeParameters=i(u.types[0].typeArguments));const l=e.find(e=>e.token===SyntaxKind.ImplementsKeyword);Object.assign(y,{type:t,id:n(p.name),body:{type:AST_NODE_TYPES.ClassBody,body:[],range:[s.getStart(),y.range[1]],loc:nodeUtils$1.getLocFor(s.getStart(),p.end,m)},superClass:u&&u.types[0]?n(u.types[0].expression):null}),l&&(y.implements=l.types.map(o)),p.decorators&&(y.decorators=c(p.decorators));const _=p.members.filter(nodeUtils$1.isESTreeClassMember);_.length&&(y.body.body=_.map(n)),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.ModuleBlock:Object.assign(y,{type:AST_NODE_TYPES.TSModuleBlock,body:p.statements.map(n)});break;case SyntaxKind.ImportDeclaration:Object.assign(y,{type:AST_NODE_TYPES.ImportDeclaration,source:n(p.moduleSpecifier),specifiers:[]}),p.importClause&&(p.importClause.name&&y.specifiers.push(n(p.importClause)),p.importClause.namedBindings&&(p.importClause.namedBindings.kind===SyntaxKind.NamespaceImport?y.specifiers.push(n(p.importClause.namedBindings)):y.specifiers=y.specifiers.concat(p.importClause.namedBindings.elements.map(n))));break;case SyntaxKind.NamespaceImport:Object.assign(y,{type:AST_NODE_TYPES.ImportNamespaceSpecifier,local:n(p.name)});break;case SyntaxKind.ImportSpecifier:Object.assign(y,{type:AST_NODE_TYPES.ImportSpecifier,local:n(p.name),imported:n(p.propertyName||p.name)});break;case SyntaxKind.ImportClause:Object.assign(y,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(p.name)}),y.range[1]=p.name.end,y.loc=nodeUtils$1.getLocFor(y.range[0],y.range[1],m);break;case SyntaxKind.NamedImports:Object.assign(y,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(p.name)});break;case SyntaxKind.ExportDeclaration:p.exportClause?Object.assign(y,{type:AST_NODE_TYPES.ExportNamedDeclaration,source:n(p.moduleSpecifier),specifiers:p.exportClause.elements.map(n),declaration:null}):Object.assign(y,{type:AST_NODE_TYPES.ExportAllDeclaration,source:n(p.moduleSpecifier)});break;case SyntaxKind.ExportSpecifier:Object.assign(y,{type:AST_NODE_TYPES.ExportSpecifier,local:n(p.propertyName||p.name),exported:n(p.name)});break;case SyntaxKind.ExportAssignment:p.isExportEquals?Object.assign(y,{type:AST_NODE_TYPES.TSExportAssignment,expression:n(p.expression)}):Object.assign(y,{type:AST_NODE_TYPES.ExportDefaultDeclaration,declaration:n(p.expression)});break;case SyntaxKind.PrefixUnaryExpression:case SyntaxKind.PostfixUnaryExpression:{const e=nodeUtils$1.getTextForTokenKind(p.operator);Object.assign(y,{type:/^(?:\+\+|--)$/.test(e)?AST_NODE_TYPES.UpdateExpression:AST_NODE_TYPES.UnaryExpression,operator:e,prefix:p.kind===SyntaxKind.PrefixUnaryExpression,argument:n(p.operand)});break}case SyntaxKind.DeleteExpression:Object.assign(y,{type:AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:n(p.expression)});break;case SyntaxKind.VoidExpression:Object.assign(y,{type:AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:n(p.expression)});break;case SyntaxKind.TypeOfExpression:Object.assign(y,{type:AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:n(p.expression)});break;case SyntaxKind.BinaryExpression:if(nodeUtils$1.isComma(p.operatorToken)){Object.assign(y,{type:AST_NODE_TYPES.SequenceExpression,expressions:[]});const e=n(p.left),t=n(p.right);e.type===AST_NODE_TYPES.SequenceExpression?y.expressions=y.expressions.concat(e.expressions):y.expressions.push(e),t.type===AST_NODE_TYPES.SequenceExpression?y.expressions=y.expressions.concat(t.expressions):y.expressions.push(t);}else if(p.operatorToken&&p.operatorToken.kind===SyntaxKind.AsteriskAsteriskEqualsToken)Object.assign(y,{type:AST_NODE_TYPES.AssignmentExpression,operator:nodeUtils$1.getTextForTokenKind(p.operatorToken.kind),left:n(p.left),right:n(p.right)});else if(Object.assign(y,{type:nodeUtils$1.getBinaryExpressionType(p.operatorToken),operator:nodeUtils$1.getTextForTokenKind(p.operatorToken.kind),left:n(p.left),right:n(p.right)}),y.type===AST_NODE_TYPES.AssignmentExpression){const e=nodeUtils$1.findAncestorOfKind(p,SyntaxKind.ArrayLiteralExpression),t=e&&nodeUtils$1.findAncestorOfKind(e,SyntaxKind.BinaryExpression);let n;t&&(n=t.left===e||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ArrayLiteralExpression,m)===e),n&&(delete y.operator,y.type=AST_NODE_TYPES.AssignmentPattern);}break;case SyntaxKind.PropertyAccessExpression:if(nodeUtils$1.isJSXToken(f)){const e={type:AST_NODE_TYPES.MemberExpression,object:n(p.expression),property:n(p.name)},t=p.expression.kind===SyntaxKind.PropertyAccessExpression;p.expression.kind===SyntaxKind.ThisKeyword&&(e.object.name="this"),e.object.type=t?AST_NODE_TYPES.MemberExpression:AST_NODE_TYPES.JSXIdentifier,e.property.type=AST_NODE_TYPES.JSXIdentifier,Object.assign(y,e);}else Object.assign(y,{type:AST_NODE_TYPES.MemberExpression,object:n(p.expression),property:n(p.name),computed:!1});break;case SyntaxKind.ElementAccessExpression:Object.assign(y,{type:AST_NODE_TYPES.MemberExpression,object:n(p.expression),property:n(p.argumentExpression),computed:!0});break;case SyntaxKind.ConditionalExpression:Object.assign(y,{type:AST_NODE_TYPES.ConditionalExpression,test:n(p.condition),consequent:n(p.whenTrue),alternate:n(p.whenFalse)});break;case SyntaxKind.CallExpression:Object.assign(y,{type:AST_NODE_TYPES.CallExpression,callee:n(p.expression),arguments:p.arguments.map(n)}),p.typeArguments&&p.typeArguments.length&&(y.typeParameters=i(p.typeArguments));break;case SyntaxKind.NewExpression:Object.assign(y,{type:AST_NODE_TYPES.NewExpression,callee:n(p.expression),arguments:p.arguments?p.arguments.map(n):[]}),p.typeArguments&&p.typeArguments.length&&(y.typeParameters=i(p.typeArguments));break;case SyntaxKind.MetaProperty:{const e=nodeUtils$1.convertToken(p.getFirstToken(),m);Object.assign(y,{type:AST_NODE_TYPES.MetaProperty,meta:{type:AST_NODE_TYPES.Identifier,range:e.range,loc:e.loc,name:"new"},property:n(p.name)});break}case SyntaxKind.StringLiteral:Object.assign(y,{type:AST_NODE_TYPES.Literal,raw:m.text.slice(y.range[0],y.range[1])}),f.name&&f.name===p?y.value=nodeUtils$1.unescapeIdentifier(p.text):y.value=nodeUtils$1.unescapeStringLiteralText(p.text);break;case SyntaxKind.NumericLiteral:Object.assign(y,{type:AST_NODE_TYPES.Literal,value:Number(p.text),raw:m.text.slice(y.range[0],y.range[1])});break;case SyntaxKind.RegularExpressionLiteral:{const e=p.text.slice(1,p.text.lastIndexOf("/")),t=p.text.slice(p.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(e,t);}catch(e){n=null;}Object.assign(y,{type:AST_NODE_TYPES.Literal,value:n,raw:p.text,regex:{pattern:e,flags:t}});break}case SyntaxKind.TrueKeyword:Object.assign(y,{type:AST_NODE_TYPES.Literal,value:!0,raw:"true"});break;case SyntaxKind.FalseKeyword:Object.assign(y,{type:AST_NODE_TYPES.Literal,value:!1,raw:"false"});break;case SyntaxKind.NullKeyword:nodeUtils$1.isWithinTypeAnnotation(p)?Object.assign(y,{type:AST_NODE_TYPES.TSNullKeyword}):Object.assign(y,{type:AST_NODE_TYPES.Literal,value:null,raw:"null"});break;case SyntaxKind.ImportKeyword:Object.assign(y,{type:AST_NODE_TYPES.Import});break;case SyntaxKind.EmptyStatement:case SyntaxKind.DebuggerStatement:!function(){Object.assign(y,{type:SyntaxKind[p.kind]});}();break;case SyntaxKind.JsxElement:Object.assign(y,{type:AST_NODE_TYPES.JSXElement,openingElement:n(p.openingElement),closingElement:n(p.closingElement),children:p.children.map(n)});break;case SyntaxKind.JsxSelfClosingElement:{p.kind=SyntaxKind.JsxOpeningElement;const e=n(p);e.selfClosing=!0,Object.assign(y,{type:AST_NODE_TYPES.JSXElement,openingElement:e,closingElement:null,children:[]});break}case SyntaxKind.JsxOpeningElement:Object.assign(y,{type:AST_NODE_TYPES.JSXOpeningElement,selfClosing:!1,name:l(p.tagName),attributes:p.attributes.properties.map(n)});break;case SyntaxKind.JsxClosingElement:Object.assign(y,{type:AST_NODE_TYPES.JSXClosingElement,name:l(p.tagName)});break;case SyntaxKind.JsxExpression:{const e=m.getLineAndCharacterOfPosition(y.range[0]+1),t=p.expression?n(p.expression):{type:AST_NODE_TYPES.JSXEmptyExpression,loc:{start:{line:e.line+1,column:e.character},end:{line:y.loc.end.line,column:y.loc.end.column-1}},range:[y.range[0]+1,y.range[1]-1]};Object.assign(y,{type:AST_NODE_TYPES.JSXExpressionContainer,expression:t});break}case SyntaxKind.JsxAttribute:{const e=nodeUtils$1.convertToken(p.name,m);e.type=AST_NODE_TYPES.JSXIdentifier,e.name=e.value,delete e.value,Object.assign(y,{type:AST_NODE_TYPES.JSXAttribute,name:e,value:n(p.initializer)});break}case SyntaxKind.JsxText:{const e=p.getFullStart(),t=p.getEnd(),n=g.useJSXTextNode?AST_NODE_TYPES.JSXText:AST_NODE_TYPES.Literal;Object.assign(y,{type:n,value:m.text.slice(e,t),raw:m.text.slice(e,t)}),y.loc=nodeUtils$1.getLocFor(e,t,m),y.range=[e,t];break}case SyntaxKind.JsxSpreadAttribute:Object.assign(y,{type:AST_NODE_TYPES.JSXSpreadAttribute,argument:n(p.expression)});break;case SyntaxKind.FirstNode:Object.assign(y,{type:AST_NODE_TYPES.TSQualifiedName,left:n(p.left),right:n(p.right)});break;case SyntaxKind.ParenthesizedExpression:return e({node:p.expression,parent:f,ast:m,additionalOptions:g});case SyntaxKind.TypeAliasDeclaration:{const e={type:AST_NODE_TYPES.VariableDeclarator,id:n(p.name),init:n(p.type),range:[p.name.getStart(),p.end]};e.loc=nodeUtils$1.getLocFor(e.range[0],e.range[1],m),p.typeParameters&&p.typeParameters.length&&(e.typeParameters=a(p.typeParameters)),Object.assign(y,{type:AST_NODE_TYPES.VariableDeclaration,kind:nodeUtils$1.getDeclarationKind(p),declarations:[e]}),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.MethodSignature:{Object.assign(y,{type:AST_NODE_TYPES.TSMethodSignature,optional:nodeUtils$1.isOptional(p),computed:nodeUtils$1.isComputedProperty(p.name),key:n(p.name),params:u(p.parameters),typeAnnotation:p.type?r(p.type):null,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(p);e&&(y.accessibility=e),p.typeParameters&&(y.typeParameters=a(p.typeParameters));break}case SyntaxKind.PropertySignature:{Object.assign(y,{type:AST_NODE_TYPES.TSPropertySignature,optional:nodeUtils$1.isOptional(p)||void 0,computed:nodeUtils$1.isComputedProperty(p.name),key:n(p.name),typeAnnotation:p.type?r(p.type):void 0,initializer:n(p.initializer)||void 0,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p)||void 0,export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(p);e&&(y.accessibility=e);break}case SyntaxKind.IndexSignature:{Object.assign(y,{type:AST_NODE_TYPES.TSIndexSignature,index:n(p.parameters[0]),typeAnnotation:p.type?r(p.type):null,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(p);e&&(y.accessibility=e);break}case SyntaxKind.ConstructSignature:Object.assign(y,{type:AST_NODE_TYPES.TSConstructSignature,params:u(p.parameters),typeAnnotation:p.type?r(p.type):null}),p.typeParameters&&(y.typeParameters=a(p.typeParameters));break;case SyntaxKind.InterfaceDeclaration:{const e=p.heritageClauses||[];let t=e.length?e[e.length-1]:p.name;if(p.typeParameters&&p.typeParameters.length){const e=p.typeParameters[p.typeParameters.length-1];(!t||e.pos>t.pos)&&(t=nodeUtils$1.findNextToken(e,m)),y.typeParameters=a(p.typeParameters);}const r=e.length>0,i=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p),o=nodeUtils$1.findNextToken(t,m),c={type:AST_NODE_TYPES.TSInterfaceBody,body:p.members.map(e=>n(e)),range:[o.getStart(),y.range[1]],loc:nodeUtils$1.getLocFor(o.getStart(),p.end,m)};Object.assign(y,{abstract:i,type:AST_NODE_TYPES.TSInterfaceDeclaration,body:c,id:n(p.name),heritage:r?e[0].types.map(s):[]}),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.FirstTypeNode:Object.assign(y,{type:AST_NODE_TYPES.TSTypePredicate,parameterName:n(p.parameterName),typeAnnotation:r(p.type)}),y.typeAnnotation.loc=y.typeAnnotation.typeAnnotation.loc,y.typeAnnotation.range=y.typeAnnotation.typeAnnotation.range;break;case SyntaxKind.EnumDeclaration:Object.assign(y,{type:AST_NODE_TYPES.TSEnumDeclaration,id:n(p.name),members:p.members.map(n)}),_(p.modifiers),y=nodeUtils$1.fixExports(p,y,m),p.decorators&&(y.decorators=c(p.decorators));break;case SyntaxKind.EnumMember:Object.assign(y,{type:AST_NODE_TYPES.TSEnumMember,id:n(p.name)}),p.initializer&&(y.initializer=n(p.initializer));break;case SyntaxKind.ModuleDeclaration:Object.assign(y,{type:AST_NODE_TYPES.TSModuleDeclaration,id:n(p.name)}),p.body&&(y.body=n(p.body)),_(p.modifiers),y=nodeUtils$1.fixExports(p,y,m);break;default:!function(){const e=`TS${SyntaxKind[p.kind]}`;if(g.errorOnUnknownASTType&&!AST_NODE_TYPES[e])throw new Error(`Unknown AST_NODE_TYPE: "${e}"`);y.type=e,Object.keys(p).filter(e=>!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)).forEach(e=>{if("type"===e)y.typeAnnotation=p.type?r(p.type):null;else if("typeArguments"===e)y.typeParameters=p.typeArguments?i(p.typeArguments):null;else if("typeParameters"===e)y.typeParameters=p.typeParameters?a(p.typeParameters):null;else if("decorators"===e){const e=c(p.decorators);e&&e.length&&(y.decorators=e);}else Array.isArray(p[e])?y[e]=p[e].map(n):p[e]&&"object"==typeof p[e]?y[e]=n(p[e]):y[e]=p[e];});}();}return y};const ts$2=typescript,nodeUtils$4=nodeUtils$2;var convertComments_1={convertComments:convertComments$1};const convert$1=convert$2,convertComments=convertComments_1.convertComments,nodeUtils=nodeUtils$2;var astConverter=(e,t)=>{if(e.parseDiagnostics.length)throw convertError(e.parseDiagnostics[0]);const n=convert$1({node:e,parent:null,ast:e,additionalOptions:{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1}});t.tokens&&(n.tokens=nodeUtils.convertTokens(e));t.comment&&(n.comments=convertComments(e,t.code));return n},semver$1=createCommonjsModule$$1(function(e,t){function n(e,t){if(e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>H)return null;if(!(t?Y[fe]:Y[_e]).test(e))return null;try{return new a(e,t)}catch(e){return null}}function r(e,t){var r=n(e,t);return r?r.version:null}function i(e,t){var r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}function a(e,t){if(e instanceof a){if(e.loose===t)return e;e=e.version;}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>H)throw new TypeError("version is longer than "+H+" characters");if(!(this instanceof a))return new a(e,t);G("SemVer",e,t),this.loose=t;var n=e.trim().match(t?Y[fe]:Y[_e]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>X||this.major<0)throw new TypeError("Invalid major version");if(this.minor>X||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>X||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&tt?1:0}function u(e,t){return c(t,e)}function l(e,t){return new a(e,t).major}function _(e,t){return new a(e,t).minor}function d(e,t){return new a(e,t).patch}function p(e,t,n){return new a(e,n).compare(new a(t,n))}function f(e,t){return p(e,t,!0)}function m(e,t,n){return p(t,e,n)}function g(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})}function y(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})}function h(e,t,n){return p(e,t,n)>0}function v(e,t,n){return p(e,t,n)<0}function b(e,t,n){return 0===p(e,t,n)}function x(e,t,n){return 0!==p(e,t,n)}function S(e,t,n){return p(e,t,n)>=0}function k(e,t,n){return p(e,t,n)<=0}function T(e,t,n,r){var i;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e===n;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e!==n;break;case"":case"=":case"==":i=b(e,n,r);break;case"!=":i=x(e,n,r);break;case">":i=h(e,n,r);break;case">=":i=S(e,n,r);break;case"<":i=v(e,n,r);break;case"<=":i=k(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return i}function C(e,t){if(e instanceof C){if(e.loose===t)return e;e=e.value;}if(!(this instanceof C))return new C(e,t);G("comparator",e,t),this.loose=t,this.parse(e),this.semver===Be?this.value="":this.value=this.operator+this.semver.version,G("comp",this);}function D(e,t){if(e instanceof D)return e.loose===t?e:new D(e.raw,t);if(e instanceof C)return new D(e.value,t);if(!(this instanceof D))return new D(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format();}function E(e,t){return new D(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function N(e,t){return G("comp",e),e=P(e,t),G("caret",e),e=w(e,t),G("tildes",e),e=I(e,t),G("xrange",e),e=R(e,t),G("stars",e),e}function A(e){return!e||"x"===e.toLowerCase()||"*"===e}function w(e,t){return e.trim().split(/\s+/).map(function(e){return O(e,t)}).join(" ")}function O(e,t){var n=t?Y[Ce]:Y[Te];return e.replace(n,function(t,n,r,i,a){G("tilde",e,t,n,r,i,a);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(i)?o=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":a?(G("replaceTilde pr",a),"-"!==a.charAt(0)&&(a="-"+a),o=">="+n+"."+r+"."+i+a+" <"+n+"."+(+r+1)+".0"):o=">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0",G("tilde return",o),o})}function P(e,t){return e.trim().split(/\s+/).map(function(e){return F(e,t)}).join(" ")}function F(e,t){G("caret",e,t);var n=t?Y[Ae]:Y[Ne];return e.replace(n,function(t,n,r,i,a){G("caret",e,t,n,r,i,a);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(i)?o="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":a?(G("replaceCaret pr",a),"-"!==a.charAt(0)&&(a="-"+a),o="0"===n?"0"===r?">="+n+"."+r+"."+i+a+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+a+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+a+" <"+(+n+1)+".0.0"):(G("no pr"),o="0"===n?"0"===r?">="+n+"."+r+"."+i+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+" <"+(+n+1)+".0.0"),G("caret return",o),o})}function I(e,t){return G("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return L(e,t)}).join(" ")}function L(e,t){e=e.trim();var n=t?Y[xe]:Y[be];return e.replace(n,function(t,n,r,i,a,o){G("xRange",e,t,n,r,i,a,o);var s=A(r),c=s||A(i),u=c||A(a),l=u;return"="===n&&l&&(n=""),s?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(i=0),u&&(a=0),">"===n?(n=">=",c?(r=+r+1,i=0,a=0):u&&(i=+i+1,a=0)):"<="===n&&(n="<",c?r=+r+1:i=+i+1),t=n+r+"."+i+"."+a):c?t=">="+r+".0.0 <"+(+r+1)+".0.0":u&&(t=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0"),G("xRange return",t),t})}function R(e,t){return G("replaceStars",e,t),e.trim().replace(Y[Le],"")}function M(e,t,n,r,i,a,o,s,c,u,l,_,d){return t=A(n)?"":A(r)?">="+n+".0.0":A(i)?">="+n+"."+r+".0":">="+t,s=A(c)?"":A(u)?"<"+(+c+1)+".0.0":A(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s,(t+" "+s).trim()}function B(e,t){for(n=0;n0){var r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function K(e,t,n){try{t=new D(t,n);}catch(e){return!1}return t.test(e)}function j(e,t,n){var r=null,i=null;try{var o=new D(t,n);}catch(e){return null}return e.forEach(function(e){o.test(e)&&(r&&-1!==i.compare(e)||(i=new a(r=e,n)));}),r}function J(e,t,n){var r=null,i=null;try{var o=new D(t,n);}catch(e){return null}return e.forEach(function(e){o.test(e)&&(r&&1!==i.compare(e)||(i=new a(r=e,n)));}),r}function z(e,t){try{return new D(e,t).range||"*"}catch(e){return null}}function U(e,t,n){return V(e,t,"<",n)}function q(e,t,n){return V(e,t,">",n)}function V(e,t,n,r){e=new a(e,r),t=new D(t,r);var i,o,s,c,u;switch(n){case">":i=h,o=k,s=v,c=">",u=">=";break;case"<":i=v,o=S,s=h,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(K(e,t,r))return!1;for(var l=0;l=0.0.0")),_=_||e,d=d||e,i(e.semver,_.semver,r)?_=e:s(e.semver,d.semver,r)&&(d=e);}),_.operator===c||_.operator===u)return!1;if((!d.operator||d.operator===c)&&o(e,d.semver))return!1;if(d.operator===u&&s(e,d.semver))return!1}return!0}function $(e,t){var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}function W(e,t,n){return e=new D(e,n),t=new D(t,n),e.intersects(t)}t=e.exports=a;var G;G="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var H=256,X=Number.MAX_SAFE_INTEGER||9007199254740991,Y=t.re=[],Q=t.src=[],Z=0,ee=Z++;Q[ee]="0|[1-9]\\d*";var te=Z++;Q[te]="[0-9]+";var ne=Z++;Q[ne]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var re=Z++;Q[re]="("+Q[ee]+")\\.("+Q[ee]+")\\.("+Q[ee]+")";var ie=Z++;Q[ie]="("+Q[te]+")\\.("+Q[te]+")\\.("+Q[te]+")";var ae=Z++;Q[ae]="(?:"+Q[ee]+"|"+Q[ne]+")";var oe=Z++;Q[oe]="(?:"+Q[te]+"|"+Q[ne]+")";var se=Z++;Q[se]="(?:-("+Q[ae]+"(?:\\."+Q[ae]+")*))";var ce=Z++;Q[ce]="(?:-?("+Q[oe]+"(?:\\."+Q[oe]+")*))";var ue=Z++;Q[ue]="[0-9A-Za-z-]+";var le=Z++;Q[le]="(?:\\+("+Q[ue]+"(?:\\."+Q[ue]+")*))";var _e=Z++,de="v?"+Q[re]+Q[se]+"?"+Q[le]+"?";Q[_e]="^"+de+"$";var pe="[v=\\s]*"+Q[ie]+Q[ce]+"?"+Q[le]+"?",fe=Z++;Q[fe]="^"+pe+"$";var me=Z++;Q[me]="((?:<|>)?=?)";var ge=Z++;Q[ge]=Q[te]+"|x|X|\\*";var ye=Z++;Q[ye]=Q[ee]+"|x|X|\\*";var he=Z++;Q[he]="[v=\\s]*("+Q[ye]+")(?:\\.("+Q[ye]+")(?:\\.("+Q[ye]+")(?:"+Q[se]+")?"+Q[le]+"?)?)?";var ve=Z++;Q[ve]="[v=\\s]*("+Q[ge]+")(?:\\.("+Q[ge]+")(?:\\.("+Q[ge]+")(?:"+Q[ce]+")?"+Q[le]+"?)?)?";var be=Z++;Q[be]="^"+Q[me]+"\\s*"+Q[he]+"$";var xe=Z++;Q[xe]="^"+Q[me]+"\\s*"+Q[ve]+"$";var Se=Z++;Q[Se]="(?:~>?)";var ke=Z++;Q[ke]="(\\s*)"+Q[Se]+"\\s+",Y[ke]=new RegExp(Q[ke],"g");var Te=Z++;Q[Te]="^"+Q[Se]+Q[he]+"$";var Ce=Z++;Q[Ce]="^"+Q[Se]+Q[ve]+"$";var De=Z++;Q[De]="(?:\\^)";var Ee=Z++;Q[Ee]="(\\s*)"+Q[De]+"\\s+",Y[Ee]=new RegExp(Q[Ee],"g");var Ne=Z++;Q[Ne]="^"+Q[De]+Q[he]+"$";var Ae=Z++;Q[Ae]="^"+Q[De]+Q[ve]+"$";var we=Z++;Q[we]="^"+Q[me]+"\\s*("+pe+")$|^$";var Oe=Z++;Q[Oe]="^"+Q[me]+"\\s*("+de+")$|^$";var Pe=Z++;Q[Pe]="(\\s*)"+Q[me]+"\\s*("+pe+"|"+Q[he]+")",Y[Pe]=new RegExp(Q[Pe],"g");var Fe=Z++;Q[Fe]="^\\s*("+Q[he]+")\\s+-\\s+("+Q[he]+")\\s*$";var Ie=Z++;Q[Ie]="^\\s*("+Q[ve]+")\\s+-\\s+("+Q[ve]+")\\s*$";var Le=Z++;Q[Le]="(<|>)?=?\\s*\\*";for(var Re=0;Re=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=o,t.diff=s,t.compareIdentifiers=c;var Me=/^[0-9]+$/;t.rcompareIdentifiers=u,t.major=l,t.minor=_,t.patch=d,t.compare=p,t.compareLoose=f,t.rcompare=m,t.sort=g,t.rsort=y,t.gt=h,t.lt=v,t.eq=b,t.neq=x,t.gte=S,t.lte=k,t.cmp=T,t.Comparator=C;var Be={};C.prototype.parse=function(e){var t=this.loose?Y[we]:Y[Oe],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new a(n[2],this.loose):this.semver=Be;},C.prototype.toString=function(){return this.value},C.prototype.test=function(e){return G("Comparator.test",e,this.loose),this.semver===Be||("string"==typeof e&&(e=new a(e,this.loose)),T(e,this.operator,this.semver,this.loose))},C.prototype.intersects=function(e,t){if(!(e instanceof C))throw new TypeError("a Comparator is required");var n;if(""===this.operator)return n=new D(e.value,t),K(this.value,n,t);if(""===e.operator)return n=new D(this.value,t),K(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=T(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=T(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||a&&o||s||c},t.Range=D,D.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},D.prototype.toString=function(){return this.range},D.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),G("range",e,t);var n=t?Y[Ie]:Y[Fe];e=e.replace(n,M),G("hyphen replace",e),e=e.replace(Y[Pe],"$1$2$3"),G("comparator trim",e,Y[Pe]),e=(e=(e=e.replace(Y[ke],"$1~")).replace(Y[Ee],"$1^")).split(/\s+/).join(" ");var r=t?Y[we]:Y[Oe],i=e.split(" ").map(function(e){return N(e,t)}).join(" ").split(/\s+/);return this.loose&&(i=i.filter(function(e){return!!e.match(r)})),i=i.map(function(e){return new C(e,t)})},D.prototype.intersects=function(e,t){if(!(e instanceof D))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return e.set.some(function(e){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=E,D.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new a(e,this.loose));for(var t=0;t=4"},repository="eslint/typescript-eslint-parser",bugs={url:"https://github.com/eslint/typescript-eslint-parser/issues"},license="BSD-2-Clause",devDependencies={"babel-code-frame":"^6.26.0",babylon:"^7.0.0-beta.22",eslint:"4.6.1","eslint-config-eslint":"4.0.0","eslint-plugin-node":"5.1.1","eslint-release":"0.10.3",glob:"^7.1.2",jest:"21.0.1","lodash.isplainobject":"^4.0.6","npm-license":"0.3.3",shelljs:"0.7.8","shelljs-nodecli":"0.1.1",typescript:"~2.5.1"},keywords=["ast","ecmascript","javascript","typescript","parser","syntax","eslint"],scripts={test:"node Makefile.js test",jest:"jest","ast-alignment-tests":"jest --config={} ./tests/ast-alignment/spec.js",lint:"node Makefile.js lint",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta"},dependencies={"lodash.unescape":"4.0.1",semver:"5.4.1"},peerDependencies={typescript:"*"},jest={testRegex:"tests/lib/.+\\.js$",testPathIgnorePatterns:[],collectCoverage:!0,coverageReporters:["text-summary"]},_package={name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest},_package$1=Object.freeze({name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest,default:_package}),require$$4$2=_package$1&&_package$1.default||_package$1;const astNodeTypes=astNodeTypes$1,ts=typescript,convert=astConverter,semver=semver$1,SUPPORTED_TYPESCRIPT_VERSIONS=require$$4$2.devDependencies.typescript,ACTIVE_TYPESCRIPT_VERSION=ts.version,isRunningSupportedTypeScriptVersion=semver.satisfies(ACTIVE_TYPESCRIPT_VERSION,SUPPORTED_TYPESCRIPT_VERSIONS);let extra,warnedAboutTSVersion=!1;var version$$1=require$$4$2.version,parse_1=parse$1;!function(){let e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in astNodeTypes)astNodeTypes.hasOwnProperty(e)&&(t[e]=astNodeTypes[e]);"function"==typeof Object.freeze&&Object.freeze(t);}();var parser={version:version$$1,parse:parse_1};const createError=parserCreateError,includeShebang=parserIncludeShebang;var parserTypescript=parse;module.exports=parserTypescript; +"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function createError$1(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}function includeShebang$1(e,t){if(!e.startsWith("#!"))return;const n=e.indexOf("\n"),r={type:"Line",value:e.slice(2,n),range:[0,n],loc:{source:null,start:{line:1,column:0},end:{line:1,column:n}}};t.comments=[r].concat(t.comments);}function commonjsRequire$$1(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule$$1(e,t){return t={exports:{}},e(t,t.exports),t.exports}function toVLQSigned(e){return e<0?1+(-e<<1):0+(e<<1)}function fromVLQSigned(e){var t=e>>1;return 1==(1&e)?-t:t}function ArraySet$1(){this._array=[],this._set=Object.create(null);}function generatedPositionAfter(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,a=t.generatedColumn;return r>n||r==n&&a>=i||util$4.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList$1(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0};}function SourceMapGenerator$1(e){e||(e={}),this._file=util.getArg(e,"file",null),this._sourceRoot=util.getArg(e,"sourceRoot",null),this._skipValidation=util.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null;}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r;}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,n,r){if(n";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r);}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,u&&a.indexOf("."+u)!=a.length-u.length-1&&(i+=" [as "+u+"]")):i+=c+"."+(u||"");}else s?i+="new "+(a||""):a?i+=a:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function cloneCallSite(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n];}),t.toString=CallSiteToString,t}function wrapCallSite(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1!==n||isInBrowser()||e.isEval()||(r-=62);var i=mapSourcePosition({source:t,line:n,column:r});return e=cloneCallSite(e),e.getFileName=function(){return i.source},e.getLineNumber=function(){return i.line},e.getColumnNumber=function(){return i.column+1},e.getScriptNameOrSourceURL=function(){return i.source},e}var a=e.isEval()&&e.getEvalOrigin();return a?(a=mapEvalOrigin(a),e=cloneCallSite(e),e.getEvalOrigin=function(){return a},e):e}function prepareStackTrace(e,t){return emptyCacheBetweenOperations&&(fileContentsCache={},sourceMapCache={}),e+t.map(function(e){return"\n at "+wrapCallSite(e)}).join("")}function getErrorSource(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],a=fileContentsCache[n];if(!a&&fs$1&&fs$1.existsSync(n)&&(a=fs$1.readFileSync(n,"utf8")),a){var o=a.split(/(?:\r\n|\r|\n)/)[r-1];if(o)return n+":"+r+"\n"+o+"\n"+new Array(i).join(" ")+"^"}}return null}function printErrorAndExit(e){var t=getErrorSource(e);t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1);}function shimEmitUncaughtException(){var e=process.emit;process.emit=function(t){if("uncaughtException"===t){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return printErrorAndExit(arguments[1])}return e.apply(this,arguments)};}function basePropertyOf(e){return function(t){return null==e?void 0:e[t]}}function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY?"-0":t}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toString(e){return null==e?"":baseToString(e)}function unescape$1(e){return e=toString(e),e&&reHasEscapedHtml.test(e)?e.replace(reEscapedHtml,unescapeHtmlChar):e}function findFirstMatchingChild(e,t,n){const r=e.getChildren(t);for(let e=0;e-1}function isLogicalOperator(e){return LOGICAL_OPERATORS.indexOf(e.kind)>-1}function getTextForTokenKind(e){return TOKEN_TO_TEXT[e]}function isESTreeClassMember(e){return e.kind!==SyntaxKind$1.SemicolonClassElement}function hasModifier(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some(t=>t.kind===e)}function isComma(e){return e.kind===SyntaxKind$1.CommaToken}function getBinaryExpressionType(e){return isAssignmentOperator(e)?"AssignmentExpression":isLogicalOperator(e)?"LogicalExpression":"BinaryExpression"}function getLocFor(e,t,n){const r=n.getLineAndCharacterOfPosition(e),i=n.getLineAndCharacterOfPosition(t);return{start:{line:r.line+1,column:r.character},end:{line:i.line+1,column:i.character}}}function getLoc(e,t){return getLocFor(e.getStart(),e.end,t)}function isToken(e){return e.kind>=SyntaxKind$1.FirstToken&&e.kind<=SyntaxKind$1.LastToken}function isJSXToken(e){return e.kind>=SyntaxKind$1.JsxElement&&e.kind<=SyntaxKind$1.JsxAttribute}function isTypeKeyword(e){switch(e){case SyntaxKind$1.AnyKeyword:case SyntaxKind$1.BooleanKeyword:case SyntaxKind$1.NeverKeyword:case SyntaxKind$1.NumberKeyword:case SyntaxKind$1.ObjectKeyword:case SyntaxKind$1.StringKeyword:case SyntaxKind$1.SymbolKeyword:case SyntaxKind$1.VoidKeyword:return!0;default:return!1}}function getDeclarationKind(e){let t;switch(e.kind){case SyntaxKind$1.TypeAliasDeclaration:t="type";break;case SyntaxKind$1.VariableDeclarationList:t=isLet(e)?"let":isConst(e)?"const":"var";break;default:throw"Unable to determine declaration kind."}return t}function getTSNodeAccessibility(e){const t=e.modifiers;if(!t)return null;for(let e=0;ee.kind===t)}function findFirstMatchingAncestor(e,t){for(;e;){if(t(e))return e;e=e.parent;}}function findAncestorOfKind(e,t){return findFirstMatchingAncestor(e,e=>e.kind===t)}function hasJSXAncestor(e){return!!findFirstMatchingAncestor(e,isJSXToken)}function unescapeIdentifier(e){return ts$1.unescapeIdentifier(e)}function unescapeStringLiteralText(e){return unescape(e)}function isComputedProperty(e){return e.kind===SyntaxKind$1.ComputedPropertyName}function isOptional(e){return!!e.questionToken&&e.questionToken.kind===SyntaxKind$1.QuestionToken}function isWithinTypeAnnotation(e){return e.parent.type===e||e.parent.types&&e.parent.types.indexOf(e)>-1}function fixExports(e,t,n){if(e.modifiers&&e.modifiers[0].kind===SyntaxKind$1.ExportKeyword){const r=e.modifiers[0],i=e.modifiers[1],a=e.modifiers[e.modifiers.length-1],o=i&&i.kind===SyntaxKind$1.DefaultKeyword,s=findNextToken(a,n);t.range[0]=s.getStart(),t.loc=getLocFor(t.range[0],t.range[1],n);const c=o?"ExportDefaultDeclaration":"ExportNamedDeclaration",u={type:c,declaration:t,range:[r.getStart(),t.range[1]],loc:getLocFor(r.getStart(),t.range[1],n)};return o||(u.specifiers=[],u.source=null),u}return t}function getTokenType(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case SyntaxKind$1.NullKeyword:return"Null";case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:case SyntaxKind$1.TypeKeyword:case SyntaxKind$1.ModuleKeyword:return"Identifier";default:return"Keyword"}if(e.kind>=SyntaxKind$1.FirstKeyword&&e.kind<=SyntaxKind$1.LastFutureReservedWord)return e.kind===SyntaxKind$1.FalseKeyword||e.kind===SyntaxKind$1.TrueKeyword?"Boolean":"Keyword";if(e.kind>=SyntaxKind$1.FirstPunctuation&&e.kind<=SyntaxKind$1.LastBinaryOperator)return"Punctuator";if(e.kind>=SyntaxKind$1.NoSubstitutionTemplateLiteral&&e.kind<=SyntaxKind$1.TemplateTail)return"Template";switch(e.kind){case SyntaxKind$1.NumericLiteral:return"Numeric";case SyntaxKind$1.JsxText:return"JSXText";case SyntaxKind$1.StringLiteral:return!e.parent||e.parent.kind!==SyntaxKind$1.JsxAttribute&&e.parent.kind!==SyntaxKind$1.JsxElement?"String":"JSXText";case SyntaxKind$1.RegularExpressionLiteral:return"RegularExpression";case SyntaxKind$1.Identifier:case SyntaxKind$1.ConstructorKeyword:case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:}if(e.parent){if(e.kind===SyntaxKind$1.Identifier&&e.parent.kind===SyntaxKind$1.PropertyAccessExpression&&hasJSXAncestor(e))return"JSXIdentifier";if(isJSXToken(e.parent)){if(e.kind===SyntaxKind$1.PropertyAccessExpression)return"JSXMemberExpression";if(e.kind===SyntaxKind$1.Identifier)return"JSXIdentifier"}}return"Identifier"}function convertToken(e,t){const n=e.kind===SyntaxKind$1.JsxText?e.getFullStart():e.getStart(),r=e.getEnd(),i=t.text.slice(n,r),a={type:getTokenType(e),value:i,range:[n,r],loc:getLocFor(n,r,t)};return"RegularExpression"===a.type&&(a.regex={pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}),a}function convertTokens(e){function t(r){if(isToken(r)&&r.kind!==SyntaxKind$1.EndOfFileToken){const t=convertToken(r,e);t&&n.push(t);}else r.getChildren().forEach(t);}const n=[];return t(e),n}function getNodeContainer(e,t,n){function r(e){const a=e.pos,o=e.end;t>=a&&n<=o&&(isToken(e)?i=e:e.getChildren().forEach(r));}let i=null;return r(e),i}function convertTypeScriptCommentToEsprimaComment(e,t,n,r,i,a){const o={type:e?"Block":"Line",value:t};return"number"==typeof n&&(o.range=[n,r]),"object"==typeof i&&(o.loc={start:i,end:a}),o}function getCommentFromTriviaScanner(e,t,n){const r=e.getToken()===ts$2.SyntaxKind.MultiLineCommentTrivia,i={pos:e.getTokenPos(),end:e.getTextPos(),kind:e.getToken()},a=n.substring(i.pos,i.end),o=r?a.replace(/^\/\*/,"").replace(/\*\/$/,""):a.replace(/^\/\//,""),s=nodeUtils$4.getLocFor(i.pos,i.end,t);return convertTypeScriptCommentToEsprimaComment(r,o,i.pos,i.end,s.start,s.end)}function convertComments$1(e,t){const n=[],r=ts$2.createScanner(e.languageVersion,!1,0,t);let i=r.scan();for(;i!==ts$2.SyntaxKind.EndOfFileToken;){const a=r.getTokenPos(),o=r.getTextPos();let s=null;switch(i){case ts$2.SyntaxKind.SingleLineCommentTrivia:case ts$2.SyntaxKind.MultiLineCommentTrivia:{const i=getCommentFromTriviaScanner(r,e,t);n.push(i);break}case ts$2.SyntaxKind.CloseBraceToken:if((s=nodeUtils$4.getNodeContainer(e,a,o)).kind===ts$2.SyntaxKind.TemplateMiddle||s.kind===ts$2.SyntaxKind.TemplateTail){i=r.reScanTemplateToken();continue}break;case ts$2.SyntaxKind.SlashToken:case ts$2.SyntaxKind.SlashEqualsToken:if((s=nodeUtils$4.getNodeContainer(e,a,o)).kind===ts$2.SyntaxKind.RegularExpressionLiteral){i=r.reScanSlashToken();continue}}i=r.scan();}return n}function convertError(e){const t=e.file.getLineAndCharacterOfPosition(e.start);return{index:e.start,lineNumber:t.line+1,column:t.character,message:e.message||e.messageText}}function resetExtra(){extra={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},useJSXTextNode:!1,log:console.log};}function parse$1(e,t){const n=String;if("string"==typeof e||e instanceof String||(e=n(e)),resetExtra(),void 0!==t&&(extra.range="boolean"==typeof t.range&&t.range,extra.loc="boolean"==typeof t.loc&&t.loc,extra.loc&&null!==t.source&&void 0!==t.source&&(extra.source=n(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(extra.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(extra.comment=!0,extra.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(extra.errors=[]),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(extra.ecmaFeatures.jsx=t.ecmaFeatures.jsx),t.errorOnUnknownASTType&&(extra.errorOnUnknownASTType=!0),"boolean"==typeof t.useJSXTextNode&&t.useJSXTextNode&&(extra.useJSXTextNode=!0),"function"==typeof t.loggerFn?extra.log=t.loggerFn:!1===t.loggerFn&&(extra.log=Function.prototype)),!isRunningSupportedTypeScriptVersion&&!warnedAboutTSVersion){const e="=============",t=[e,"WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.","You may find that it works just fine, or you may not.",`SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`,`YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`,"Please only submit bug reports when using the officially supported version.",e];extra.log(t.join("\n\n")),warnedAboutTSVersion=!0;}const r=extra.ecmaFeatures.jsx?"eslint.tsx":"eslint.ts",i={fileExists(){return!0},getCanonicalFileName(){return r},getCurrentDirectory(){return""},getDefaultLibFileName(){return"lib.d.ts"},getNewLine(){return"\n"},getSourceFile(t){return ts.createSourceFile(t,e,ts.ScriptTarget.Latest,!0)},readFile(){return null},useCaseSensitiveFileNames(){return!0},writeFile(){return null}},a=ts.createProgram([r],{noResolve:!0,target:ts.ScriptTarget.Latest,jsx:extra.ecmaFeatures.jsx?"preserve":void 0},i).getSourceFile(r);return extra.code=e,convert(a,extra)}function parse(e){const t=isProbablyJsx(e);let n;try{try{n=tryParseTypeScript(e,t);}catch(r){n=tryParseTypeScript(e,!t);}}catch(e){if(void 0===e.lineNumber)throw e;throw createError(e.message,{start:{line:e.lineNumber,column:e.column+1}})}return delete n.tokens,includeShebang(e,n),n}function tryParseTypeScript(e,t){return parser.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,ecmaFeatures:{jsx:t},loggerFn:()=>{}})}function isProbablyJsx(e){return new RegExp(["(^[^\"'`]*)"].join(""),"m").test(e)}var fs$$1=_interopDefault(fs),path$$1=_interopDefault(path),os$$1=_interopDefault(os),crypto$$1=_interopDefault(crypto),module$1$$1=_interopDefault(module$1),parserCreateError=createError$1,parserIncludeShebang=includeShebang$1,astNodeTypes$1={ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",AwaitExpression:"AwaitExpression",BinaryExpression:"BinaryExpression",BlockStatement:"BlockStatement",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ClassImplements:"ClassImplements",ClassProperty:"ClassProperty",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DeclareFunction:"DeclareFunction",Decorator:"Decorator",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExperimentalRestProperty:"ExperimentalRestProperty",ExperimentalSpreadProperty:"ExperimentalSpreadProperty",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",ForStatement:"ForStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GenericTypeAnnotation:"GenericTypeAnnotation",Identifier:"Identifier",IfStatement:"IfStatement",Import:"Import",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",LabeledStatement:"LabeledStatement",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TSAbstractClassProperty:"TSAbstractClassProperty",TSAbstractKeyword:"TSAbstractKeyword",TSAbstractMethodDefinition:"TSAbstractMethodDefinition",TSAnyKeyword:"TSAnyKeyword",TSArrayType:"TSArrayType",TSAsyncKeyword:"TSAsyncKeyword",TSBooleanKeyword:"TSBooleanKeyword",TSConstructorType:"TSConstructorType",TSConstructSignature:"TSConstructSignature",TSDeclareKeyword:"TSDeclareKeyword",TSEnumDeclaration:"TSEnumDeclaration",TSEnumMember:"TSEnumMember",TSExportAssignment:"TSExportAssignment",TSExportKeyword:"TSExportKeyword",TSIndexSignature:"TSIndexSignature",TSInterfaceBody:"TSInterfaceBody",TSInterfaceDeclaration:"TSInterfaceDeclaration",TSInterfaceHeritage:"TSInterfaceHeritage",TSFunctionType:"TSFunctionType",TSMethodSignature:"TSMethodSignature",TSModuleBlock:"TSModuleBlock",TSModuleDeclaration:"TSModuleDeclaration",TSNamespaceFunctionDeclaration:"TSNamespaceFunctionDeclaration",TSNonNullExpression:"TSNonNullExpression",TSNeverKeyword:"TSNeverKeyword",TSNullKeyword:"TSNullKeyword",TSNumberKeyword:"TSNumberKeyword",TSObjectKeyword:"TSObjectKeyword",TSParameterProperty:"TSParameterProperty",TSPrivateKeyword:"TSPrivateKeyword",TSPropertySignature:"TSPropertySignature",TSProtectedKeyword:"TSProtectedKeyword",TSPublicKeyword:"TSPublicKeyword",TSQualifiedName:"TSQualifiedName",TSQuestionToken:"TSQuestionToken",TSReadonlyKeyword:"TSReadonlyKeyword",TSStaticKeyword:"TSStaticKeyword",TSStringKeyword:"TSStringKeyword",TSSymbolKeyword:"TSSymbolKeyword",TSTypeLiteral:"TSTypeLiteral",TSTypePredicate:"TSTypePredicate",TSTypeReference:"TSTypeReference",TSUnionType:"TSUnionType",TSUndefinedKeyword:"TSUndefinedKeyword",TSVoidKeyword:"TSVoidKeyword",TypeAnnotation:"TypeAnnotation",TypeParameter:"TypeParameter",TypeParameterDeclaration:"TypeParameterDeclaration",TypeParameterInstantiation:"TypeParameterInstantiation",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},commonjsGlobal$$1="undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{},intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),encode$1=function(e){if(0<=e&&e>>=VLQ_BASE_SHIFT)>0&&(t|=VLQ_CONTINUATION_BIT),n+=base64.encode(t);}while(r>0);return n},decode=function(e,t,n){var r,i,a=e.length,o=0,s=0;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=base64.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(i&VLQ_CONTINUATION_BIT),o+=(i&=VLQ_BASE_MASK)<=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(n=c.join("/"))&&(n=s?"/":"."),a?(a.path=n,i(a)):n}function o(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),o=r(e);if(o&&(e=o.path||"/"),n&&!n.scheme)return o&&(n.scheme=o.scheme),i(n);if(n||t.match(y))return t;if(o&&!o.host&&!o.path)return o.host=t,i(o);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=s,i(o)):s}function s(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n;}return Array(n+1).join("../")+t.substr(e.length+1)}function c(e){return e}function u(e){return _(e)?"$"+e:e}function l(e){return _(e)?e.slice(1):e}function _(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t,n){var r=e.source-t.source;return 0!==r?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)||n?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function p(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=e.source-t.source)?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function f(e,t){return e===t?0:e>t?1:-1}function m(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=f(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:f(e.name,t.name))}t.getArg=n;var g=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,y=/^data:.+\,.+$/;t.urlParse=r,t.urlGenerate=i,t.normalize=a,t.join=o,t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(g)},t.relative=s;var h=function(){return!("__proto__"in Object.create(null))}();t.toSetString=h?c:u,t.fromSetString=h?c:l,t.compareByOriginalPositions=d,t.compareByGeneratedPositionsDeflated=p,t.compareByGeneratedPositionsInflated=m;}),util$3=util$1,has=Object.prototype.hasOwnProperty;ArraySet$1.fromArray=function(e,t){for(var n=new ArraySet$1,r=0,i=e.length;r=0&&e0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},SourceMapGenerator$1.prototype._serializeMappings=function(){for(var e,t,n,r,i=0,a=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d0){if(!util.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=",";}e+=base64VLQ.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=base64VLQ.encode(r-u),u=r,e+=base64VLQ.encode(t.originalLine-1-s),s=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=base64VLQ.encode(n-c),c=n)),l+=e;}return l},SourceMapGenerator$1.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=util.relative(t,e));var n=util.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},SourceMapGenerator$1.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},SourceMapGenerator$1.prototype.toString=function(){return JSON.stringify(this.toJSON())};var SourceMapGenerator_1=SourceMapGenerator$1,sourceMapGenerator={SourceMapGenerator:SourceMapGenerator_1},binarySearch$1=createCommonjsModule$$1(function(e,t){function n(e,r,i,a,o,s){var c=Math.floor((r-e)/2)+e,u=o(i,a[c],!0);return 0===u?c:u>0?r-c>1?n(c,r,i,a,o,s):s==t.LEAST_UPPER_BOUND?r1?n(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,a){if(0===r.length)return-1;var o=n(-1,r.length,e,r,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(r[o],r[o-1],!0);)--o;return o};}),quickSort_1=function(e,t){doQuickSort(e,t,0,e.length-1);},quickSort$1={quickSort:quickSort_1},util$5=util$1,binarySearch=binarySearch$1,ArraySet$2=arraySet.ArraySet,base64VLQ$1=base64Vlq,quickSort=quickSort$1.quickSort;SourceMapConsumer$2.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)},SourceMapConsumer$2.prototype._version=3,SourceMapConsumer$2.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer$2.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer$2.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},SourceMapConsumer$2.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},SourceMapConsumer$2.GENERATED_ORDER=1,SourceMapConsumer$2.ORIGINAL_ORDER=2,SourceMapConsumer$2.GREATEST_LOWER_BOUND=1,SourceMapConsumer$2.LEAST_UPPER_BOUND=2,SourceMapConsumer$2.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||SourceMapConsumer$2.GENERATED_ORDER){case SourceMapConsumer$2.GENERATED_ORDER:r=this._generatedMappings;break;case SourceMapConsumer$2.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;r.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=util$5.join(a,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i);},SourceMapConsumer$2.prototype.allGeneratedPositionsFor=function(e){var t=util$5.getArg(e,"line"),n={source:util$5.getArg(e,"source"),originalLine:t,originalColumn:util$5.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=util$5.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)r.push({line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)r.push({line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];}return r};var SourceMapConsumer_1=SourceMapConsumer$2;BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer$2,BasicSourceMapConsumer.fromSourceMap=function(e){var t=Object.create(BasicSourceMapConsumer.prototype),n=t._names=ArraySet$2.fromArray(e._names.toArray(),!0),r=t._sources=ArraySet$2.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var i=e._mappings.toArray().slice(),a=t.__generatedMappings=[],o=t.__originalMappings=[],s=0,c=i.length;s1&&(n.source=_+i[1],_+=i[1],n.originalLine=u+i[2],u=n.originalLine,n.originalLine+=1,n.originalColumn=l+i[3],l=n.originalColumn,i.length>4&&(n.name=d+i[4],d+=i[4])),h.push(n),"number"==typeof n.originalLine&&y.push(n);}quickSort(h,util$5.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,quickSort(y,util$5.compareByOriginalPositions),this.__originalMappings=y;},BasicSourceMapConsumer.prototype._findMapping=function(e,t,n,r,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return binarySearch.search(e,t,i,a)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var e=0;e=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=util$5.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=util$5.join(this.sourceRoot,i)));var a=util$5.getArg(r,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:util$5.getArg(r,"originalLine",null),column:util$5.getArg(r,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},BasicSourceMapConsumer.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=util$5.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=util$5.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(e){var t=util$5.getArg(e,"source");if(null!=this.sourceRoot&&(t=util$5.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:util$5.getArg(e,"line"),originalColumn:util$5.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,util$5.getArg(e,"bias",SourceMapConsumer$2.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===n.source)return{line:util$5.getArg(i,"generatedLine",null),column:util$5.getArg(i,"generatedColumn",null),lastColumn:util$5.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var BasicSourceMapConsumer_1=BasicSourceMapConsumer;IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer$2,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&(u&&r(u,o()),i.add(a.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=util$6.join(n,e)),i.setSourceContent(e,r));}),i},SourceNode$1.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e);},this);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e);}return this},SourceNode$1.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e);}return this},SourceNode$1.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n0;for(var n=0,r=e;nt?1:0};i<=a;){var o=i+(a-i>>1),s=e[o];if(0===n(s,t))return o;n(s,t)>0?a=o-1:i=o+1;}return~i}function ee(e,t,n,r,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}function te(e,t,n,r,i){if(e){var a=e.length;if(a>0){var o=void 0===r||r>a-1?a-1:r,s=void 0===i||o-i<0?0:o-i,c=void 0;for(arguments.length<=2?(c=e[o],o--):c=n;o>=s;)c=t(c,e[o],o),o--;return c}}return n}function ne(e,t){return hn.call(e,t)}function re(e,t){return hn.call(e,t)?e[t]:void 0}function ie(e){var t=[];for(var n in e)hn.call(e,n)&&t.push(n);return t}function ae(e,t){for(var n=[],r=e.next(),i=r.value,a=r.done;!a;o=e.next(),i=o.value,a=o.done,o)n.push(t?t(i):i);return n;var o;}function oe(e,t){for(var n=e.entries(),r=n.next(),i=r.value,a=r.done;!a;c=n.next(),i=c.value,a=c.done,c){var o=i[0],s=t(i[1],o);if(s)return s}return;var c;}function se(e,t){for(var n=e.keys(),r=n.next(),i=r.value,a=r.done;!a;s=n.next(),i=s.value,a=s.done,s){var o=t(i);if(o)return o}return;var s;}function ce(e,t){e.forEach(function(e,n){t.set(n,e);});}function ue(e){for(var t=[],n=1;n4&&(a=Ee(a,arguments,4)),{file:e,start:t,length:n,messageText:a,category:r.category,code:r.code}}function we(e,t){var n=Ne(t);return arguments.length>2&&(n=Ee(n,arguments,2)),n}function Oe(e){var t=Ne(e);return arguments.length>1&&(t=Ee(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}}function Pe(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function Fe(e,t){var n=Ne(t);return arguments.length>2&&(n=Ee(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}}function Ie(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e}function Le(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e0?1:0}if(t=t.toUpperCase(),n=n.toUpperCase(),t===n)return 0}return t0&&".."!==H(r)?r.pop():o&&r.push(o));}return r}function $e(t){var n=qe(t=Ue(t)),r=t.substr(0,n),i=Ve(t,n);if(i.length){var a=r+i.join(e.directorySeparator);return We(t)?a+e.directorySeparator:a}return r}function We(e){return e.charCodeAt(e.length-1)===vn}function Ge(t){return t.substr(0,Math.max(qe(t),t.lastIndexOf(e.directorySeparator)))}function He(e){return e&&!rt(e)&&-1!==e.indexOf("://")}function Xe(e){return/^\.\.?($|[\\/])/.test(e)}function Ye(e){return Xe(e)||rt(e)}function Qe(e){return!Ye(e)}function Ze(e){return e.target||0}function et(t){return"number"==typeof t.module?t.module:Ze(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function tt(t){var n=t.moduleResolution;return void 0===n&&(n=et(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),n}function nt(e){for(var t=!1,n=0;n1&&""===H(s)&&s.pop();var c;for(c=0;c=0&&e.indexOf(t,n)===n}function xt(e){return dt(e).indexOf(".")>=0}function St(e,t){return e.length>t.length&&bt(e,t)}function kt(e,t){for(var n=0,r=t;n0;)c+=")?",p--;return c}}function Nt(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function At(e,t,n,r,i){e=$e(e);var a=pt(i=$e(i),e);return{includeFilePatterns:T(Ct(n,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Tt(n,a,"files"),includeDirectoryPattern:Tt(n,a,"directories"),excludePattern:Tt(t,a,"exclude"),basePaths:Ot(e,n,r)}}function wt(e,t,n,r,i,a,o,s){function c(e,n,r){for(var i=s(e),a=i.files,o=i.directories,u=0,l=a=a.slice().sort(g);u=0;n--)if(St(e,t[n]))return jt(n,t);return 0}function jt(e,t){return e<2?0:ei&&(i=c.prefix.length,r=s);}return r}function cn(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&ht(t,n)&&bt(t,r)}function un(e){An.assert(nt(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function ln(e){return!(e>=0)}function _n(e){return".ts"===e||".tsx"===e||".d.ts"===e}function dn(e){var t=fn(e);if(void 0!==t)return t;An.fail("File "+e+" has unknown extension.");}function pn(e){return void 0!==fn(e)}function fn(t){return p(e.supportedTypescriptExtensionsForExtractExtension,function(e){return St(t,e)})||p(e.supportedJavascriptExtensions,function(e){return St(t,e)})}function mn(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function gn(e){}e.collator="object"==typeof Intl&&"function"==typeof Intl.Collator?new Intl.Collator(void 0,{usage:"sort",sensitivity:"accent"}):void 0,e.localeCompareIsCorrect=e.collator&&e.collator.compare("a","B")<0,e.createMap=n,e.createUnderscoreEscapedMap=r,e.createSymbolTable=i,e.createMapFromTemplate=a;var yn="undefined"!=typeof Map&&"entries"in Map.prototype?Map:function(){var e=function(){function e(e,t){this.index=0,this.data=e,this.selector=t,this.keys=Object.keys(e);}return e.prototype.next=function(){var e=this.index;return e=t}function n(e,t,r,i){e||(r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),s(t?"False expression: "+t:"False expression.",i||n));}function r(e,t,n,r){e!==t&&s("Expected "+e+" === "+t+". "+(n?r?n+" "+r:n:""));}function i(e,t,n){e>=t&&s("Expected "+e+" < "+t+". "+(n||""));}function a(e,t){e>t&&s("Expected "+e+" <= "+t);}function o(e,t){e= "+t);}function s(e,t){var n=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||s),n}function c(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),n=/^function\s+([\w\$]+)\s*\(/.exec(t);return n?n[1]:""}e.currentAssertionLevel=0,e.isDebugging=!1,e.shouldAssert=t,e.assert=n,e.assertEqual=r,e.assertLessThan=i,e.assertLessThanOrEqual=a,e.assertGreaterThanOrEqual=o,e.fail=s,e.getFunctionName=c;}(An=e.Debug||(e.Debug={})),e.orderedRemoveItem=Yt,e.orderedRemoveItemAt=Qt,e.unorderedRemoveItemAt=Zt,e.unorderedRemoveItem=en,e.createGetCanonicalFileName=nn,e.matchPatternOrExact=rn,e.patternText=an,e.matchedText=on$$1,e.findBestPatternMatch=sn,e.tryParsePattern=un,e.positionIsSynthesized=ln,e.extensionIsTypeScript=_n,e.extensionFromPath=dn,e.isAnySupportedFileExtension=pn,e.tryGetExtensionFromPath=fn,e.isCheckJsEnabledForFile=mn,e.assertTypeIsNever=gn;}(r||(r={}));!function(e){function t(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100);}function n(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.setStackTraceLimit=t;var r;!function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted";}(r=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),e.getNodeMajorVersion=n,e.sys=function(){function t(n,r){var i=e.getDirectoryPath(n),a=n!==i&&!r.directoryExists(i);a&&t(i,r),!a&&r.directoryExists(n)||r.createDirectory(n);}var i;if("undefined"!=typeof ChakraHost?i=function(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,n){n&&(t="\ufeff"+t),ChakraHost.writeFile(e,t);},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(t,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,n,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}():"undefined"!=typeof process&&nextTick&&!browser$1&&void 0!==commonjsRequire$$1&&(i=function(){function t(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}function i(e,t){if(u(e)){var n=p.readFileSync(e),r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(var i=0;i=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}}function a(e,t,n){n&&(t="\ufeff"+t);var r;try{r=p.openSync(e,"w"),p.writeSync(r,t,void 0,"utf8");}finally{void 0!==r&&p.closeSync(r);}}function o(t){try{for(var n=[],r=[],i=0,a=p.readdirSync(t||".").sort();i=4,b=m.platform(),x=function(){return"win32"!==b&&"win64"!==b&&!u(t(__filename))}();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory";}(d||(d={}));var S={close:e.noop},k={args:process.argv.slice(2),newLine:m.EOL,useCaseSensitiveFileNames:x,write:function(e){process.stdout.write(e);},readFile:i,writeFile:a,watchFile:function(e,t,n){function i(n,i){var a=0==+n.mtime,o=0==+i.mtime,s=!a&&o,c=a&&!o,u=s?r.Created:c?r.Deleted:r.Changed;u===r.Changed&&+n.mtime<=+i.mtime||t(e,u);}if(y){var a=h.addFile(e,t);return{close:function(){return h.removeFile(a)}}}return p.watchFile(e,{persistent:!0,interval:n||250},i),{close:function(){return p.unwatchFile(e,i)}}},watchDirectory:function(t,n,r){var i;return l(t)?(i=!v||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!r},p.watch(t,i,function(r,i){"rename"===r&&n(i?e.normalizePath(e.combinePaths(t,i)):i);})):S},resolvePath:function(e){return f.resolve(e)},fileExists:u,directoryExists:l,createDirectory:function(e){k.directoryExists(e)||p.mkdirSync(e);},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:_,getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:s,getModifiedTime:function(e){try{return p.statSync(e).mtime}catch(e){return}},createHash:function(e){var t=g.createHash("md5");return t.update(e),t.digest("hex")},getMemoryUsage:function(){return commonjsGlobal$$1.gc&&commonjsGlobal$$1.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=p.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){process.exit(e);},realpath:function(e){return p.realpathSync(e)},debugMode:e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{sourceMapSupport.install();}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return k}()),i){var a=i.writeFile;i.writeFile=function(n,r,o){var s=e.getDirectoryPath(e.normalizeSlashes(n));s&&!i.directoryExists(s)&&t(s,i),a.call(i,n,r,o);};}return i}(),e.sys&&e.sys.getEnvironmentVariable&&(e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0);}(r||(r={}));!function(e){function t(e,t,n,r){return{code:e,category:t,key:n,message:r}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"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:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"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:t(1017,e.DiagnosticCategory.Error,"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:t(1018,e.DiagnosticCategory.Error,"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:t(1019,e.DiagnosticCategory.Error,"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:t(1020,e.DiagnosticCategory.Error,"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:t(1021,e.DiagnosticCategory.Error,"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:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"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."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"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:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"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:t(1038,e.DiagnosticCategory.Error,"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:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:t(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:t(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:t(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:t(1046,e.DiagnosticCategory.Error,"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046","A 'declare' modifier is required for a top level declaration in a .d.ts file."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"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:t(1051,e.DiagnosticCategory.Error,"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:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"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_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:t(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"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:t(1059,e.DiagnosticCategory.Error,"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:t(1060,e.DiagnosticCategory.Error,"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:t(1061,e.DiagnosticCategory.Error,"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:t(1062,e.DiagnosticCategory.Error,"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:t(1063,e.DiagnosticCategory.Error,"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:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","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:t(1066,e.DiagnosticCategory.Error,"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:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_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:t(1071,e.DiagnosticCategory.Error,"_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:t(1079,e.DiagnosticCategory.Error,"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:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_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:t(1091,e.DiagnosticCategory.Error,"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:t(1092,e.DiagnosticCategory.Error,"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:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"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:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"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:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"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:t(1105,e.DiagnosticCategory.Error,"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."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"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:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"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:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"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:t(1116,e.DiagnosticCategory.Error,"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_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"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:t(1119,e.DiagnosticCategory.Error,"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:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),A_tuple_type_element_list_cannot_be_empty:t(1122,e.DiagnosticCategory.Error,"A_tuple_type_element_list_cannot_be_empty_1122","A tuple type element list cannot be empty."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"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:t(1148,e.DiagnosticCategory.Error,"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:t(1149,e.DiagnosticCategory.Error,"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."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array()' instead."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"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:t(1163,e.DiagnosticCategory.Error,"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:t(1164,e.DiagnosticCategory.Error,"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_directly_refer_to_a_built_in_symbol:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165","A computed property name in an ambient context must directly refer to a built-in symbol."),A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166","A computed property name in a class property declaration must directly refer to a built-in symbol."),A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168","A computed property name in a method overload must directly refer to a built-in symbol."),A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169","A computed property name in an interface must directly refer to a built-in symbol."),A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170","A computed property name in a type literal must directly refer to a built-in symbol."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"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:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"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:t(1187,e.DiagnosticCategory.Error,"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:t(1188,e.DiagnosticCategory.Error,"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:t(1189,e.DiagnosticCategory.Error,"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:t(1190,e.DiagnosticCategory.Error,"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:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"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:t(1198,e.DiagnosticCategory.Error,"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:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asteri_1202","Import assignment cannot be used when targeting ECMAScript 2015 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_2015_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_defaul_1203","Export assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"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."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:t(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"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:t(1212,e.DiagnosticCategory.Error,"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:t(1213,e.DiagnosticCategory.Error,"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:t(1214,e.DiagnosticCategory.Error,"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:t(1215,e.DiagnosticCategory.Error,"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:t(1216,e.DiagnosticCategory.Error,"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:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"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:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"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:t(1227,e.DiagnosticCategory.Error,"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:t(1228,e.DiagnosticCategory.Error,"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:t(1229,e.DiagnosticCategory.Error,"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:t(1230,e.DiagnosticCategory.Error,"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_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"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:t(1237,e.DiagnosticCategory.Error,"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:t(1238,e.DiagnosticCategory.Error,"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:t(1239,e.DiagnosticCategory.Error,"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:t(1240,e.DiagnosticCategory.Error,"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:t(1241,e.DiagnosticCategory.Error,"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:t(1242,e.DiagnosticCategory.Error,"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:t(1243,e.DiagnosticCategory.Error,"_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:t(1244,e.DiagnosticCategory.Error,"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:t(1245,e.DiagnosticCategory.Error,"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:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"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:t(1248,e.DiagnosticCategory.Error,"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:t(1249,e.DiagnosticCategory.Error,"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_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"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:t(1314,e.DiagnosticCategory.Error,"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:t(1315,e.DiagnosticCategory.Error,"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:t(1316,e.DiagnosticCategory.Error,"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:t(1317,e.DiagnosticCategory.Error,"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:t(1318,e.DiagnosticCategory.Error,"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:t(1319,e.DiagnosticCategory.Error,"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:t(1320,e.DiagnosticCategory.Error,"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:t(1321,e.DiagnosticCategory.Error,"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:t(1322,e.DiagnosticCategory.Error,"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_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323","Dynamic import cannot be used when targeting ECMAScript 2015 modules."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"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:t(1328,e.DiagnosticCategory.Error,"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."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"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:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"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:t(2309,e.DiagnosticCategory.Error,"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:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_may_only_extend_a_class_or_another_interface:t(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"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:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"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:t(2320,e.DiagnosticCategory.Error,"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:t(2321,e.DiagnosticCategory.Error,"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:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"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:t(2325,e.DiagnosticCategory.Error,"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:t(2326,e.DiagnosticCategory.Error,"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:t(2327,e.DiagnosticCategory.Error,"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:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"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:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"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:t(2335,e.DiagnosticCategory.Error,"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:t(2336,e.DiagnosticCategory.Error,"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:t(2337,e.DiagnosticCategory.Error,"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:t(2338,e.DiagnosticCategory.Error,"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:t(2339,e.DiagnosticCategory.Error,"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:t(2340,e.DiagnosticCategory.Error,"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:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"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:t(2345,e.DiagnosticCategory.Error,"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:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"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:t(2348,e.DiagnosticCategory.Error,"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'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:t(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"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:t(2354,e.DiagnosticCategory.Error,"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_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"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:t(2358,e.DiagnosticCategory.Error,"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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"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:t(2365,e.DiagnosticCategory.Error,"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:t(2366,e.DiagnosticCategory.Error,"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'."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"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:t(2370,e.DiagnosticCategory.Error,"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:t(2371,e.DiagnosticCategory.Error,"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_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"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:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"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:t(2384,e.DiagnosticCategory.Error,"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:t(2385,e.DiagnosticCategory.Error,"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:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"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:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),Overload_signature_is_not_compatible_with_function_implementation:t(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"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:t(2396,e.DiagnosticCategory.Error,"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:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"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:t(2400,e.DiagnosticCategory.Error,"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."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"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:t(2403,e.DiagnosticCategory.Error,"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:t(2404,e.DiagnosticCategory.Error,"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:t(2405,e.DiagnosticCategory.Error,"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:t(2406,e.DiagnosticCategory.Error,"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:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"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:t(2409,e.DiagnosticCategory.Error,"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:t(2410,e.DiagnosticCategory.Error,"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'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_may_only_implement_another_class_or_interface:t(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"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_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"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:t(2426,e.DiagnosticCategory.Error,"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:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"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:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"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:t(2432,e.DiagnosticCategory.Error,"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:t(2433,e.DiagnosticCategory.Error,"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:t(2434,e.DiagnosticCategory.Error,"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:t(2435,e.DiagnosticCategory.Error,"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:t(2436,e.DiagnosticCategory.Error,"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:t(2437,e.DiagnosticCategory.Error,"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:t(2438,e.DiagnosticCategory.Error,"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:t(2439,e.DiagnosticCategory.Error,"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:t(2440,e.DiagnosticCategory.Error,"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:t(2441,e.DiagnosticCategory.Error,"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:t(2442,e.DiagnosticCategory.Error,"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:t(2443,e.DiagnosticCategory.Error,"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:t(2444,e.DiagnosticCategory.Error,"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:t(2445,e.DiagnosticCategory.Error,"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:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"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:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_has_no_property_1_and_no_string_index_signature:t(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:t(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"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:t(2462,e.DiagnosticCategory.Error,"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:t(2463,e.DiagnosticCategory.Error,"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:t(2464,e.DiagnosticCategory.Error,"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:t(2465,e.DiagnosticCategory.Error,"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:t(2466,e.DiagnosticCategory.Error,"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:t(2467,e.DiagnosticCategory.Error,"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:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"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:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),In_const_enum_declarations_member_initializer_must_be_constant_expression:t(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment:t(2475,e.DiagnosticCategory.Error,"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."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"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:t(2477,e.DiagnosticCategory.Error,"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:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"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:t(2481,e.DiagnosticCategory.Error,"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:t(2483,e.DiagnosticCategory.Error,"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:t(2484,e.DiagnosticCategory.Error,"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:t(2487,e.DiagnosticCategory.Error,"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_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"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:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"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:t(2495,e.DiagnosticCategory.Error,"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_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:t(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"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:t(2499,e.DiagnosticCategory.Error,"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:t(2500,e.DiagnosticCategory.Error,"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:t(2501,e.DiagnosticCategory.Error,"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:t(2502,e.DiagnosticCategory.Error,"_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:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"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:t(2506,e.DiagnosticCategory.Error,"_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:t(2507,e.DiagnosticCategory.Error,"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:t(2508,e.DiagnosticCategory.Error,"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_a_class_or_interface_type:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_the_abstract_class_0:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_the_abstract_class_0_2511","Cannot create an instance of the abstract class '{0}'."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"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:t(2513,e.DiagnosticCategory.Error,"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."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"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:t(2516,e.DiagnosticCategory.Error,"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:t(2517,e.DiagnosticCategory.Error,"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:t(2518,e.DiagnosticCategory.Error,"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:t(2519,e.DiagnosticCategory.Error,"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:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"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:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"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_this_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible 'this' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"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:t(2529,e.DiagnosticCategory.Error,"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:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"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:t(2537,e.DiagnosticCategory.Error,"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:t(2538,e.DiagnosticCategory.Error,"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:t(2539,e.DiagnosticCategory.Error,"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_constant_or_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"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:t(2543,e.DiagnosticCategory.Error,"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:t(2544,e.DiagnosticCategory.Error,"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:t(2545,e.DiagnosticCategory.Error,"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[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' 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:t(2548,e.DiagnosticCategory.Error,"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:t(2549,e.DiagnosticCategory.Error,"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."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:t(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"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:t(2552,e.DiagnosticCategory.Error,"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:t(2553,e.DiagnosticCategory.Error,"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:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_a_minimum_of_1:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_a_minimum_of_1_2556","Expected {0} arguments, but got a minimum of {1}."),Expected_at_least_0_arguments_but_got_a_minimum_of_1:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_a_minimum_of_1_2557","Expected at least {0} arguments, but got a minimum of {1}."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"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:t(2559,e.DiagnosticCategory.Error,"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:t(2560,e.DiagnosticCategory.Error,"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?"),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"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:t(2603,e.DiagnosticCategory.Error,"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:t(2604,e.DiagnosticCategory.Error,"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."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"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:t(2607,e.DiagnosticCategory.Error,"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:t(2608,e.DiagnosticCategory.Error,"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:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"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."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"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:t(2652,e.DiagnosticCategory.Error,"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:t(2653,e.DiagnosticCategory.Error,"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}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"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:t(2659,e.DiagnosticCategory.Error,"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:t(2660,e.DiagnosticCategory.Error,"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:t(2661,e.DiagnosticCategory.Error,"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:t(2662,e.DiagnosticCategory.Error,"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:t(2663,e.DiagnosticCategory.Error,"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:t(2664,e.DiagnosticCategory.Error,"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:t(2665,e.DiagnosticCategory.Error,"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:t(2666,e.DiagnosticCategory.Error,"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:t(2667,e.DiagnosticCategory.Error,"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:t(2668,e.DiagnosticCategory.Error,"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:t(2669,e.DiagnosticCategory.Error,"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:t(2670,e.DiagnosticCategory.Error,"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:t(2671,e.DiagnosticCategory.Error,"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:t(2672,e.DiagnosticCategory.Error,"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:t(2673,e.DiagnosticCategory.Error,"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:t(2674,e.DiagnosticCategory.Error,"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:t(2675,e.DiagnosticCategory.Error,"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:t(2676,e.DiagnosticCategory.Error,"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:t(2677,e.DiagnosticCategory.Error,"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:t(2678,e.DiagnosticCategory.Error,"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:t(2679,e.DiagnosticCategory.Error,"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:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"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:t(2684,e.DiagnosticCategory.Error,"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:t(2685,e.DiagnosticCategory.Error,"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:t(2686,e.DiagnosticCategory.Error,"_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:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_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:t(2693,e.DiagnosticCategory.Error,"_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:t(2694,e.DiagnosticCategory.Error,"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:t(2695,e.DiagnosticCategory.Error,"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."),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"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:t(2697,e.DiagnosticCategory.Error,"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:t(2698,e.DiagnosticCategory.Error,"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:t(2699,e.DiagnosticCategory.Error,"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:t(2700,e.DiagnosticCategory.Error,"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:t(2701,e.DiagnosticCategory.Error,"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:t(2702,e.DiagnosticCategory.Error,"_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:t(2703,e.DiagnosticCategory.Error,"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:t(2704,e.DiagnosticCategory.Error,"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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 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:t(2706,e.DiagnosticCategory.Error,"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:t(2707,e.DiagnosticCategory.Error,"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:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"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:t(2710,e.DiagnosticCategory.Error,"_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:t(2711,e.DiagnosticCategory.Error,"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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 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:t(2713,e.DiagnosticCategory.Error,"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}\"]'?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"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:t(4002,e.DiagnosticCategory.Error,"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:t(4004,e.DiagnosticCategory.Error,"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:t(4006,e.DiagnosticCategory.Error,"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:t(4008,e.DiagnosticCategory.Error,"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:t(4010,e.DiagnosticCategory.Error,"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:t(4012,e.DiagnosticCategory.Error,"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:t(4014,e.DiagnosticCategory.Error,"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:t(4016,e.DiagnosticCategory.Error,"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:t(4019,e.DiagnosticCategory.Error,"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:t(4020,e.DiagnosticCategory.Error,"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_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"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:t(4023,e.DiagnosticCategory.Error,"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:t(4024,e.DiagnosticCategory.Error,"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:t(4025,e.DiagnosticCategory.Error,"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:t(4026,e.DiagnosticCategory.Error,"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:t(4027,e.DiagnosticCategory.Error,"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:t(4028,e.DiagnosticCategory.Error,"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:t(4029,e.DiagnosticCategory.Error,"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:t(4030,e.DiagnosticCategory.Error,"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:t(4031,e.DiagnosticCategory.Error,"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:t(4032,e.DiagnosticCategory.Error,"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:t(4033,e.DiagnosticCategory.Error,"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_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_4034","Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1_4035","Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_4036","Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1_4037","Parameter '{0}' of public property setter from exported class has or is using private name '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_externa_4038","Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_4039","Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0_4040","Return type of public static property getter from exported class has or is using private name '{0}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_modul_4041","Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_4042","Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0_4043","Return type of public property getter from exported class has or is using private name '{0}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"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:t(4045,e.DiagnosticCategory.Error,"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:t(4046,e.DiagnosticCategory.Error,"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:t(4047,e.DiagnosticCategory.Error,"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:t(4048,e.DiagnosticCategory.Error,"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:t(4049,e.DiagnosticCategory.Error,"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:t(4050,e.DiagnosticCategory.Error,"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:t(4051,e.DiagnosticCategory.Error,"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:t(4052,e.DiagnosticCategory.Error,"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:t(4053,e.DiagnosticCategory.Error,"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:t(4054,e.DiagnosticCategory.Error,"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:t(4055,e.DiagnosticCategory.Error,"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:t(4056,e.DiagnosticCategory.Error,"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:t(4057,e.DiagnosticCategory.Error,"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:t(4058,e.DiagnosticCategory.Error,"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:t(4059,e.DiagnosticCategory.Error,"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:t(4060,e.DiagnosticCategory.Error,"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:t(4061,e.DiagnosticCategory.Error,"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:t(4062,e.DiagnosticCategory.Error,"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:t(4063,e.DiagnosticCategory.Error,"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:t(4064,e.DiagnosticCategory.Error,"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:t(4065,e.DiagnosticCategory.Error,"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:t(4066,e.DiagnosticCategory.Error,"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:t(4067,e.DiagnosticCategory.Error,"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:t(4068,e.DiagnosticCategory.Error,"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:t(4069,e.DiagnosticCategory.Error,"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:t(4070,e.DiagnosticCategory.Error,"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:t(4071,e.DiagnosticCategory.Error,"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:t(4072,e.DiagnosticCategory.Error,"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:t(4073,e.DiagnosticCategory.Error,"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:t(4074,e.DiagnosticCategory.Error,"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:t(4075,e.DiagnosticCategory.Error,"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:t(4076,e.DiagnosticCategory.Error,"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:t(4077,e.DiagnosticCategory.Error,"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:t(4078,e.DiagnosticCategory.Error,"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:t(4081,e.DiagnosticCategory.Error,"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:t(4082,e.DiagnosticCategory.Error,"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:t(4083,e.DiagnosticCategory.Error,"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}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Message,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"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:t(4092,e.DiagnosticCategory.Error,"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_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"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:t(5009,e.DiagnosticCategory.Error,"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:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0:t(5011,e.DiagnosticCategory.Error,"File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0_5011","File specification cannot contain multiple recursive directory wildcards ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"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:t(5042,e.DiagnosticCategory.Error,"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:t(5047,e.DiagnosticCategory.Error,"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:t(5051,e.DiagnosticCategory.Error,"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:t(5052,e.DiagnosticCategory.Error,"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:t(5053,e.DiagnosticCategory.Error,"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:t(5054,e.DiagnosticCategory.Error,"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:t(5055,e.DiagnosticCategory.Error,"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:t(5056,e.DiagnosticCategory.Error,"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:t(5057,e.DiagnosticCategory.Error,"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:t(5058,e.DiagnosticCategory.Error,"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:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"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:t(5064,e.DiagnosticCategory.Error,"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:t(5065,e.DiagnosticCategory.Error,"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:t(5066,e.DiagnosticCategory.Error,"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:t(5067,e.DiagnosticCategory.Error,"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."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"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:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"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:t(6008,e.DiagnosticCategory.Message,"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:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"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:t(6011,e.DiagnosticCategory.Message,"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:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"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:t(6020,e.DiagnosticCategory.Message,"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:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Compilation_complete_Watching_for_file_changes:t(6042,e.DiagnosticCategory.Message,"Compilation_complete_Watching_for_file_changes_6042","Compilation complete. Watching for file changes."),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"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:t(6048,e.DiagnosticCategory.Error,"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}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"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:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"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:t(6056,e.DiagnosticCategory.Message,"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:t(6058,e.DiagnosticCategory.Message,"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:t(6059,e.DiagnosticCategory.Error,"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:t(6060,e.DiagnosticCategory.Message,"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:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"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:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"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:t(6074,e.DiagnosticCategory.Message,"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:t(6075,e.DiagnosticCategory.Message,"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:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"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_Colon:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_Colon_6079","Specify library files to be included in the compilation: "),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"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:t(6083,e.DiagnosticCategory.Message,"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:t(6084,e.DiagnosticCategory.Message,"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:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"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:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"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:t(6091,e.DiagnosticCategory.Message,"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:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"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:t(6094,e.DiagnosticCategory.Message,"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_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"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:t(6101,e.DiagnosticCategory.Message,"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:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"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_string_got_1:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"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:t(6107,e.DiagnosticCategory.Message,"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:t(6108,e.DiagnosticCategory.Message,"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:t(6109,e.DiagnosticCategory.Message,"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:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"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:t(6115,e.DiagnosticCategory.Message,"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:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"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:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"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:t(6123,e.DiagnosticCategory.Message,"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:t(6124,e.DiagnosticCategory.Message,"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:t(6125,e.DiagnosticCategory.Message,"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:t(6126,e.DiagnosticCategory.Message,"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:t(6127,e.DiagnosticCategory.Message,"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:t(6128,e.DiagnosticCategory.Message,"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. ========"),The_config_file_0_found_doesn_t_contain_any_source_files:t(6129,e.DiagnosticCategory.Error,"The_config_file_0_found_doesn_t_contain_any_source_files_6129","The config file '{0}' found doesn't contain any source files."),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"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:t(6131,e.DiagnosticCategory.Error,"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:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_never_used:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6133","'{0}' is declared but never used."),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"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:t(6137,e.DiagnosticCategory.Error,"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_never_used:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_never_used_6138","Property '{0}' is declared but never used."),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"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:t(6140,e.DiagnosticCategory.Error,"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:t(6141,e.DiagnosticCategory.Message,"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:t(6142,e.DiagnosticCategory.Error,"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_to_1_but_allowJs_is_not_set:t(6143,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_allowJs_is_not_set_6143","Module '{0}' was resolved to '{1}', but '--allowJs' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"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}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"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:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_6147","Resolution for module '{0}' was found in cache."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"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:t(6152,e.DiagnosticCategory.Message,"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:t(6153,e.DiagnosticCategory.Message,"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:t(6154,e.DiagnosticCategory.Message,"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:t(6155,e.DiagnosticCategory.Message,"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:t(6156,e.DiagnosticCategory.Message,"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:t(6157,e.DiagnosticCategory.Message,"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:t(6158,e.DiagnosticCategory.Message,"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:t(6159,e.DiagnosticCategory.Message,"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:t(6160,e.DiagnosticCategory.Message,"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:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"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:t(6167,e.DiagnosticCategory.Message,"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:t(6168,e.DiagnosticCategory.Message,"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:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"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:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"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:t(7009,e.DiagnosticCategory.Error,"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:t(7010,e.DiagnosticCategory.Error,"_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:t(7011,e.DiagnosticCategory.Error,"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."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"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."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"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:t(7016,e.DiagnosticCategory.Error,"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:t(7017,e.DiagnosticCategory.Error,"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:t(7018,e.DiagnosticCategory.Error,"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:t(7019,e.DiagnosticCategory.Error,"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:t(7020,e.DiagnosticCategory.Error,"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:t(7022,e.DiagnosticCategory.Error,"_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:t(7023,e.DiagnosticCategory.Error,"_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:t(7024,e.DiagnosticCategory.Error,"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_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"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:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected."),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label."),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"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:t(7032,e.DiagnosticCategory.Error,"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:t(7033,e.DiagnosticCategory.Error,"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:t(7034,e.DiagnosticCategory.Error,"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_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{0}` 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:t(7036,e.DiagnosticCategory.Error,"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}'."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"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_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"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:t(17001,e.DiagnosticCategory.Error,"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:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"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:t(17005,e.DiagnosticCategory.Error,"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:t(17006,e.DiagnosticCategory.Error,"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:t(17007,e.DiagnosticCategory.Error,"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:t(17008,e.DiagnosticCategory.Error,"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:t(17009,e.DiagnosticCategory.Error,"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:t(17010,e.DiagnosticCategory.Error,"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:t(17011,e.DiagnosticCategory.Error,"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:t(17012,e.DiagnosticCategory.Error,"_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:t(17013,e.DiagnosticCategory.Error,"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."),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"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:t(18003,e.DiagnosticCategory.Error,"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}'."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call."),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor."),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'."),Remove_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'."),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'."),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class."),Add_this_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_this_to_unresolved_variable_90008","Add 'this.' to unresolved variable."),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:t(90009,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__90009","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(90010,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_90010","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import {0} from {1}."),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change {0} to {1}."),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add {0} to existing import declaration from {1}."),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'."),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'."),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file."),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message."),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor."),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'."),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'."),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'."),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'."),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore."),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_function:t(95003,e.DiagnosticCategory.Message,"Extract_function_95003","Extract function"),Extract_function_into_0:t(95004,e.DiagnosticCategory.Message,"Extract_function_into_0_95004","Extract function into {0}")};}(r||(r={}));!function(e){function t(e){return e>=71}function n(e,t){if(e=1?n(e,j):n(e,B)}function i(e,t){return t>=1?n(e,J):n(e,K)}function a(e){return z[e]}function o(e){return M.get(e)}function s(e){for(var t=new Array,n=0,r=0;n127&&m(i)&&(t.push(r),r=n);}}return t.push(r),t}function c(e,t,n){return u(l(e),t,n,e.text)}function u(t,n,r,i){e.Debug.assert(n>=0&&n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function m(e){return 10===e||13===e||8232===e||8233===e}function g(e){return e>=48&&e<=57}function y(e){return e>=48&&e<=55}function h(e,t){var n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function v(t,n,r,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(n))return n;for(;;){var a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)return n;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(i)break;if(47===t.charCodeAt(n+1)){for(n+=2;n127&&p(a)){n++;continue}}return n}}function b(t,n){if(e.Debug.assert(n>=0),0===n||m(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+U=0&&n127&&p(g)){_&&m(g)&&(l=!0),n++;continue}break e}}return _&&(f=i(s,c,u,l,a,f)),f}function C(e,t,n,r){return T(!1,e,t,!1,n,r)}function D(e,t,n,r){return T(!1,e,t,!0,n,r)}function E(e,t,n,r,i){return T(!0,e,t,!1,n,r,i)}function N(e,t,n,r,i){return T(!0,e,t,!0,n,r,i)}function A(e,t,n,r,i,a){return a||(a=[]),a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function w(e,t){return E(e,t,A,void 0,void 0)}function O(e,t){return N(e,t,A,void 0,void 0)}function P(e){var t=q.exec(e);if(t)return t[0]}function F(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&r(e,t)}function I(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&i(e,t)}function L(e,t){if(!F(e.charCodeAt(0),t))return!1;for(var n=1;n=48&&i<=57)r=16*r+i-48;else if(i>=65&&i<=70)r=16*r+i-65+10;else{if(!(i>=97&&i<=102))break;r=16*r+i-97+10;}ne++,n++;}return n=re){r+=a.substring(i,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}var o=a.charCodeAt(ne);if(o===n){r+=a.substring(i,ne),ne++;break}if(92===o&&t)r+=a.substring(i,ne),r+=D(),i=ne;else{if(m(o)){r+=a.substring(i,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}ne++;}}return r}function C(){for(var t,n=96===a.charCodeAt(ne),r=++ne,i="";;){if(ne>=re){i+=a.substring(r,ne),le=!0,u(e.Diagnostics.Unterminated_template_literal),t=n?13:16;break}var o=a.charCodeAt(ne);if(96===o){i+=a.substring(r,ne),ne++,t=n?13:16;break}if(36===o&&ne+1=re)return u(e.Diagnostics.Unexpected_end_of_text),"";var t=a.charCodeAt(ne);switch(ne++,t){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return ne=0?String.fromCharCode(n):(u(e.Diagnostics.Hexadecimal_digit_expected),"")}function N(){var t=h(1),n=!1;return t<0?(u(e.Diagnostics.Hexadecimal_digit_expected),n=!0):t>1114111&&(u(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),ne>=re?(u(e.Diagnostics.Unexpected_end_of_text),n=!0):125===a.charCodeAt(ne)?ne++:(u(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":A(t)}function A(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296,r=(t-65536)%1024+56320;return String.fromCharCode(n,r)}function w(){if(ne+5=0&&I(r,n)))break;e+=a.substring(t,ne),e+=String.fromCharCode(r),t=ne+=6;}}return e+=a.substring(t,ne)}function P(){var e=se.length;if(e>=2&&e<=11){var t=se.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(oe=M.get(se)))return oe}return oe=71}function L(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var n=0,r=0;;){var i=a.charCodeAt(ne),o=i-48;if(!g(i)||o>=t)break;n=n*t+o,ne++,r++;}return 0===r?-1:n}function R(){for(ie=ne,ue=!1,ce=!1,le=!1,_e=0;;){if(ae=ne,ne>=re)return oe=1;var t=a.charCodeAt(ne);if(35===t&&0===ne&&S(a,ne)){if(ne=k(a,ne),r)continue;return oe=6}switch(t){case 10:case 13:if(ce=!0,r){ne++;continue}return 13===t&&ne+1=0&&F(d,n)?(ne+=6,se=String.fromCharCode(d)+O(),oe=P()):(u(e.Diagnostics.Invalid_character),ne++,oe=0);default:if(F(t,n)){for(ne++;ne=re){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=a.charCodeAt(t);if(m(o)){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===o&&!i){t++;break}91===o?i=!0:92===o?r=!0:93===o&&(i=!1);}t++;}for(;t=re)return oe=1;var e=a.charCodeAt(ne);if(60===e)return 47===a.charCodeAt(ne+1)?(ne+=2,oe=28):(ne++,oe=27);if(123===e)return ne++,oe=17;for(var t=0;ne=re)return oe=1;ie=ne,ae=ne;var e=a.charCodeAt(ne);switch(e){case 9:case 11:case 12:case 32:for(;ne=0),ne=t,ie=t,ae=t,oe=0,ce=!1,se=void 0,ue=!1,le=!1;}void 0===i&&(i=0);var ne,re,ie,ae,oe,se,ce,ue,le,_e;return Y(a,s,c),{getStartPos:function(){return ie},getTextPos:function(){return ne},getToken:function(){return oe},getTokenPos:function(){return ae},getTokenText:function(){return a.substring(ae,ne)},getTokenValue:function(){return se},hasExtendedUnicodeEscape:function(){return ue},hasPrecedingLineBreak:function(){return ce},isIdentifier:function(){return 71===oe||oe>107},isReservedWord:function(){return oe>=72&&oe<=107},isUnterminated:function(){return le},getNumericLiteralFlags:function(){return _e},reScanGreaterToken:B,reScanSlashToken:K,reScanTemplateToken:j,scanJsxIdentifier:U,scanJsxAttributeValue:q,reScanJsxToken:J,scanJsxToken:z,scanJSDocToken:V,scan:R,getText:X,setText:Y,setScriptTarget:Z,setLanguageVariant:ee,setOnError:Q,setTextPos:te,tryScan:H,lookAhead:G,scanRange:W}}e.tokenIsIdentifierOrKeyword=t;var M=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:140,function:89,get:125,if:90,implements:108,import:91,in:92,instanceof:93,interface:109,is:126,keyof:127,let:110,module:128,namespace:129,never:130,new:94,null:95,number:133,object:134,package:111,private:112,protected:113,public:114,readonly:131,require:132,global:141,return:96,set:135,static:115,string:136,super:97,switch:98,symbol:137,this:99,throw:100,true:101,try:102,type:138,typeof:103,undefined:139,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:142,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,">":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),B=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,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,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,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,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,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,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],K=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,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,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,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,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],j=[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],J=[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];e.isUnicodeIdentifierStart=r;var z=function(e){var t=[];return e.forEach(function(e,n){t[e]=n;}),t}(M);e.tokenToString=a,e.stringToToken=o,e.computeLineStarts=s,e.getPositionOfLineAndCharacter=c,e.computePositionOfLineAndCharacter=u,e.getLineStarts=l,e.computeLineAndCharacterOfPosition=_,e.getLineAndCharacterOfPosition=d,e.isWhiteSpaceLike=p,e.isWhiteSpaceSingleLine=f,e.isLineBreak=m,e.isOctalDigit=y,e.couldStartTrivia=h,e.skipTrivia=v;var U="<<<<<<<".length,q=/^#!.*/;e.forEachLeadingCommentRange=C,e.forEachTrailingCommentRange=D,e.reduceEachLeadingCommentRange=E,e.reduceEachTrailingCommentRange=N,e.getLeadingCommentRanges=w,e.getTrailingCommentRanges=O,e.getShebang=P,e.isIdentifierStart=F,e.isIdentifierPart=I,e.isIdentifierText=L,e.createScanner=R;}(r||(r={}));!function(e){function t(e,t){var n=e.declarations;if(n)for(var r=0,i=n;r=0),e.getLineStarts(n)[t]}function g(t){var n=p(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"}function y(t,n){e.Debug.assert(t>=0);var r=e.getLineStarts(n),i=t,a=n.text;if(i+1===r.length)return a.length-1;var o=r[i],s=r[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function h(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function v(e){return!h(e)}function b(t,n,r){if(47===t.charCodeAt(n+1)&&n+20?S(t.jsDoc[0]):286===t.kind&&t._children.length>0?S(t._children[0],n,r):e.skipTrivia((n||p(t)).text,t.pos)}function k(t,n){return h(t)||!t.decorators?S(t,n):e.skipTrivia((n||p(t)).text,t.decorators.end)}function T(t,n,r){if(void 0===r&&(r=!1),h(n))return"";var i=t.text;return i.substring(r?n.pos:e.skipTrivia(i,n.pos),n.end)}function C(t,n){return h(n)?"":t.substring(e.skipTrivia(t,n.pos),n.end)}function D(e,t){return void 0===t&&(t=!1),T(p(e),e,t)}function E(e){var t=e.emitNode;return t&&t.flags}function N(t,n){if(!nn(t)&&t.parent)return T(n,t);var r=16777216&E(t)?_n:mn;switch(t.kind){case 9:return t.singleQuote?"'"+r(t.text,39)+"'":'"'+r(t.text,34)+'"';case 13:return"`"+r(t.text,96)+"`";case 14:return"`"+r(t.text,96)+"${";case 15:return"}"+r(t.text,96)+"${";case 16:return"}"+r(t.text,96)+"`";case 8:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.");}function A(e){return"string"==typeof e?'"'+mn(e)+'"':""+e}function w(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function O(e){return e}function P(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function F(t){return 0!=(3&e.getCombinedNodeFlags(t))||I(t)}function I(e){var t=en(e);return 226===t.kind&&260===t.parent.kind}function L(e){return e&&233===e.kind&&(9===e.name.kind||j(e))}function R(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)}function M(e){return B(e.valueDeclaration)}function B(e){return e&&233===e.kind&&!e.body}function K(t){return 265===t.kind||233===t.kind||e.isFunctionLike(t)}function j(e){return!!(512&e.flags)}function J(t){if(!t||!L(t))return!1;switch(t.parent.kind){case 265:return e.isExternalModule(t.parent);case 234:return L(t.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function z(t,n){return e.isExternalModule(t)||n.isolatedModules}function U(t,n){switch(t.kind){case 265:case 235:case 260:case 233:case 214:case 215:case 216:case 152:case 151:case 153:case 154:case 228:case 186:case 187:return!0;case 207:return n&&!e.isFunctionLike(n)}return!1}function q(e){for(var t=e.parent;t;){if(U(t,t.parent))return t;t=t.parent;}}function V(e){return 0===r(e)?"(Missing)":D(e)}function $(e){return e.declaration?V(e.declaration.parameters[0].name):void 0}function W(e){switch(e.kind){case 71:return e.escapedText;case 9:case 8:return w(e.text);case 144:if(Ut(e.expression))return w(e.expression.text)}}function G(t){switch(t.kind){case 71:return 0===r(t)?e.unescapeLeadingUnderscores(t.escapedText):D(t);case 143:return G(t.left)+"."+G(t.right);case 179:return G(t.expression)+"."+G(t.name)}}function H(e,t,n,r,i){return X(p(e),e,t,n,r,i)}function X(t,n,r,i,a,o){var s=ee(t,n);return e.createFileDiagnostic(t,s.start,s.length,r,i,a,o)}function Y(e,t){var n=p(e),r=ee(n,e);return{file:n,start:r.start,length:r.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function Q(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function Z(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&207===n.body.kind){var i=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(i=0;case 183:return!1}}return!1}function _e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent;}return!1}function de(t,n){function r(t){switch(t.kind){case 219:return n(t);case 235:case 207:case 211:case 212:case 213:case 214:case 215:case 216:case 220:case 221:case 257:case 258:case 222:case 224:case 260:return e.forEachChild(t,r)}}return r(t)}function pe(t,n){function r(t){switch(t.kind){case 197:n(t);var i=t.expression;return void(i&&r(i));case 232:case 230:case 233:case 231:case 229:case 199:return;default:if(e.isFunctionLike(t)){var a=t.name;if(a&&144===a.kind)return void r(a.expression)}else le(t)||e.forEachChild(t,r);}}return r(t)}function fe(t){return t&&164===t.kind?t.elementType:t&&159===t.kind?e.singleOrUndefined(t.typeArguments):void 0}function me(e){if(e)switch(e.kind){case 176:case 264:case 146:case 261:case 149:case 148:case 262:case 226:return!0}return!1}function ge(e){switch(e.kind){case 151:case 150:case 152:case 153:case 154:case 228:case 186:return!0}return!1}function ye(e,t){for(;;){if(t&&t(e),222!==e.statement.kind)return e.statement;e=e.statement;}}function he(t){return t&&207===t.kind&&e.isFunctionLike(t.parent)}function ve(e){return e&&151===e.kind&&178===e.parent.kind}function be(e){return 151===e.kind&&(178===e.parent.kind||199===e.parent.kind)}function xe(e){return e&&1===e.kind}function Se(e){return e&&0===e.kind}function ke(t,n,r){return e.filter(t.properties,function(e){if(261===e.kind){var t=W(e.name);return n===t||r&&r===t}})}function Te(t){return e.findAncestor(t.parent,e.isFunctionLike)}function Ce(t){return e.findAncestor(t.parent,e.isClassLike)}function De(t,n){for(;;){if(!(t=t.parent))return;switch(t.kind){case 144:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 187:if(!n)continue;case 228:case 186:case 233:case 149:case 148:case 151:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 232:case 265:return t}}}function Ee(e){var t=De(e,!1);if(t)switch(t.kind){case 152:case 228:case 186:return t}}function Ne(t,n){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 144:t=t.parent;break;case 228:case 186:case 187:if(!n)continue;case 149:case 148:case 151:case 150:case 152:case 153:case 154:return t;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);}}}function Ae(e){if(186===e.kind||187===e.kind){for(var t=e,n=e.parent;185===n.kind;)t=n,n=n.parent;if(181===n.kind&&n.expression===t)return n}}function we(e){var t=e.kind;return(179===t||180===t)&&97===e.expression.kind}function Oe(e){switch(e.kind){case 159:return e.typeName;case 201:return ur(e.expression)?e.expression:void 0;case 71:case 143:return e}}function Pe(t){return 183===t.kind?t.tag:e.isJsxOpeningLikeElement(t)?t.tagName:t.expression}function Fe(e){switch(e.kind){case 229:return!0;case 149:return 229===e.parent.kind;case 153:case 154:case 151:return void 0!==e.body&&229===e.parent.kind;case 146:return void 0!==e.parent.body&&(152===e.parent.kind||151===e.parent.kind||154===e.parent.kind)&&229===e.parent.parent.kind}return!1}function Ie(e){return void 0!==e.decorators&&Fe(e)}function Le(e){return Ie(e)||Re(e)}function Re(t){switch(t.kind){case 229:return e.forEach(t.members,Le);case 151:case 154:return e.forEach(t.parameters,Ie)}}function Me(e){var t=e.parent;return(251===t.kind||250===t.kind||252===t.kind)&&t.tagName===e}function Be(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 202:case 184:case 203:case 185:case 186:case 199:case 187:case 190:case 188:case 189:case 192:case 193:case 194:case 195:case 198:case 196:case 13:case 200:case 249:case 250:case 197:case 191:case 204:return!0;case 143:for(;143===e.parent.kind;)e=e.parent;return 162===e.parent.kind||Me(e);case 71:if(162===e.parent.kind||Me(e))return!0;case 8:case 9:case 99:var t=e.parent;switch(t.kind){case 226:case 146:case 149:case 148:case 264:case 261:case 176:return t.initializer===e;case 210:case 211:case 212:case 213:case 219:case 220:case 221:case 257:case 223:return t.expression===e;case 214:var n=t;return n.initializer===e&&227!==n.initializer.kind||n.condition===e||n.incrementor===e;case 215:case 216:var r=t;return r.initializer===e&&227!==r.initializer.kind||r.expression===e;case 184:case 202:case 205:case 144:return e===t.expression;case 147:case 256:case 255:case 263:return!0;case 201:return t.expression===e&&sr(t);default:if(Be(t))return!0}}return!1}function Ke(e){return 237===e.kind&&248===e.moduleReference.kind}function je(t){return e.Debug.assert(Ke(t)),t.moduleReference.expression}function Je(e){return 237===e.kind&&248!==e.moduleReference.kind}function ze(e){return Ue(e)}function Ue(e){return e&&!!(65536&e.flags)}function qe(e){return e&&!!(1048576&e.flags)}function Ve(e,t){if(181!==e.kind)return!1;var n=e,r=n.expression,i=n.arguments;if(71!==r.kind||"require"!==r.escapedText)return!1;if(1!==i.length)return!1;var a=i[0];return!t||9===a.kind||13===a.kind}function $e(e){return 39===e||34===e}function We(e){if(e.valueDeclaration&&226===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&(186===t.initializer.kind||199===t.initializer.kind)}return!1}function Ge(e){for(;ar(e,!0);)e=e.right;return e}function He(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Xe(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText}function Ye(e){if(!Ue(e))return 0;var t=e;if(58!==t.operatorToken.kind||179!==t.left.kind)return 0;var n=t.left;if(71===n.expression.kind){var r=n.expression;return"exports"===r.escapedText?1:"module"===r.escapedText&&"exports"===n.name.escapedText?2:5}if(99===n.expression.kind)return 4;if(179===n.expression.kind){var i=n.expression;if(71===i.expression.kind){if("module"===i.expression.escapedText&&"exports"===i.name.escapedText)return 1;if("prototype"===i.name.escapedText)return 3}}return 0}function Qe(e){if(238===e.kind)return e.moduleSpecifier;if(237===e.kind){var t=e.moduleReference;if(248===t.kind)return t.expression}return 244===e.kind?e.moduleSpecifier:233===e.kind&&9===e.name.kind?e.name:void 0}function Ze(e){if(237===e.kind)return e;var t=e.importClause;return t&&t.namedBindings&&240===t.namedBindings.kind?t.namedBindings:void 0}function et(e){return 238===e.kind&&e.importClause&&!!e.importClause.name}function tt(e){if(e)switch(e.kind){case 146:case 151:case 150:case 262:case 261:case 149:case 148:return void 0!==e.questionToken}return!1}function nt(e){return 273===e.kind&&e.parameters.length>0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText}function rt(e){return!!it(e,279)}function it(t,n){var r=ot(t);return e.find(r,function(e){return e.kind===n})}function at(t){return e.isJSDocTypedefTag(t)?[t.parent]:st(t)}function ot(t){var n=t.jsDocCache;return void 0===n&&(t.jsDocCache=n=e.flatMap(st(t),function(t){return e.isJSDoc(t)?t.tags:t})),n}function st(t){function n(t){var i=t.parent,a=me(i)&&i.initializer===t&&208===i.parent.parent.kind,o=me(t)&&208===i.parent.kind,s=a?i.parent.parent:o?i.parent:void 0;s&&n(s),i&&i.parent&&194===i.kind&&58===i.operatorToken.kind&&210===i.parent.kind&&n(i.parent);var c=233===t.kind&&i&&233===i.kind,u=i&&261===i.kind;(c||u)&&n(i),146===t.kind&&(r=e.addRange(r,ct(t))),me(t)&&t.initializer&&(r=e.addRange(r,t.initializer.jsDoc)),r=e.addRange(r,t.jsDoc);}var r;return n(t),r||e.emptyArray}function ct(t){if(t.name&&e.isIdentifier(t.name)){var n=t.name.escapedText;return ot(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n})}}function ut(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var n=t.name.escapedText;e.Debug.assert(275===t.parent.kind);var r=t.parent.parent;if(e.isFunctionLike(r)){var i=e.find(r.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===n});return i&&i.symbol}}}function lt(t){var n=t.name.escapedText,r=t.parent.parent.parent.typeParameters;return e.find(r,function(e){return e.name.escapedText===n})}function _t(t){var n=it(t,281);if(!n&&146===t.kind){var r=ct(t);r&&(n=e.find(r,function(e){return!!e.typeExpression}));}return n&&n.typeExpression&&n.typeExpression.type}function dt(e){return it(e,277)}function pt(e){return it(e,278)}function ft(e){return it(e,280)}function mt(e){var t=ft(e);return t&&t.typeExpression&&t.typeExpression.type}function gt(e){return it(e,282)}function yt(t){return vt(e.lastOrUndefined(t.parameters))}function ht(t){return bt(e.lastOrUndefined(t.parameters))}function vt(t){return!(!Ue(t)||!(t.type&&274===t.type.kind||e.forEach(ct(t),function(e){return e.typeExpression&&274===e.typeExpression.type.kind})))||bt(t)}function bt(e){return e&&void 0!==e.dotDotDotToken}function xt(e){for(var t=e.parent;;){switch(t.kind){case 194:var n=t.operatorToken.kind;return rr(n)&&t.left===e?58===n?1:2:0;case 192:case 193:var r=t.operator;return 43===r||44===r?2:0;case 215:case 216:return t.initializer===e?1:0;case 185:case 177:case 198:e=t;break;case 262:if(t.name!==e)return 0;e=t.parent;break;case 261:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent;}}function St(e){return 0!==xt(e)}function kt(e){if(179!==e.kind&&180!==e.kind)return!1;for(e=e.parent;e&&185===e.kind;)e=e.parent;return e&&188===e.kind}function Tt(e,t){for(;e;){if(e===t)return!0;e=e.parent;}return!1}function Ct(e){for(;e;){if(Yn(e,2)||265===e.kind&&e.isDeclarationFile)return!0;e=e.parent;}return!1}function Dt(t){switch(t.kind){case 71:case 9:case 8:return e.isDeclaration(t.parent)&&t.parent.name===t;default:return!1}}function Et(t){switch(t.kind){case 71:case 9:case 8:if(e.isDeclaration(t.parent))return t.parent.name===t;var n=t.parent.parent;return e.isBinaryExpression(n)&&0!==Ye(n)&&e.getNameOfDeclaration(n)===t;default:return!1}}function Nt(t){return(9===t.kind||8===t.kind)&&144===t.parent.kind&&e.isDeclaration(t.parent.parent)}function At(e){var t=e.parent;switch(t.kind){case 149:case 148:case 151:case 150:case 153:case 154:case 264:case 261:case 179:return t.name===e;case 143:if(t.right===e){for(;143===t.kind;)t=t.parent;return 162===t.kind}return!1;case 176:case 242:return t.propertyName===e;case 246:case 253:return!0}return!1}function wt(e){return 237===e.kind||236===e.kind||239===e.kind&&!!e.name||240===e.kind||242===e.kind||246===e.kind||243===e.kind&&Ot(e)}function Ot(e){return ur(e.expression)}function Pt(e){var t=Lt(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0}function Ft(e){var t=Lt(e.heritageClauses,108);return t?t.types:void 0}function It(e){var t=Lt(e.heritageClauses,85);return t?t.types:void 0}function Lt(e,t){if(e)for(var n=0,r=e;n1&&(_=_+r.length-1,d=c.length-t.length+e.lastOrUndefined(r));}}function o(){l||(_++,d=(c+=t).length,l=!0);}function s(e,t){n(C(e,t));}var c,u,l,_,d;return r(),{write:n,rawWrite:i,writeTextOfNode:s,writeLiteral:a,writeLine:o,increaseIndent:function(){u++;},decreaseIndent:function(){u--;},getIndent:function(){return u},getTextPos:function(){return c.length},getLine:function(){return _+1},getColumn:function(){return l?u*yn()+1:c.length-d+1},getText:function(){return c},isAtStartOfLine:function(){return l},reset:r}}function vn(e,t){return t.moduleName||xn(e,t.fileName)}function bn(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!r.isDeclarationFile)return vn(e,r)}function xn(t,n){var r=function(e){return t.getCanonicalFileName(e)},i=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),r),a=e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(i,a,i,r,!1);return e.removeFileExtension(o)}function Sn(t,n,r){var i=n.getCompilerOptions();return(i.outDir?e.removeFileExtension(Dn(t,n,i.outDir)):e.removeFileExtension(t.fileName))+r}function kn(t,n){var r=n.getCompilerOptions(),i=r.declarationDir||r.outDir,a=i?Dn(t,n,i):t.fileName;return e.removeFileExtension(a)+".d.ts"}function Tn(t,n){var r=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var a=e.getEmitModuleKind(r),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&Cn(t,r,i)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return Cn(e,r,i)})}function Cn(e,t,n){return!(t.noEmitForJsFiles&&ze(e)||e.isDeclarationFile||n(e))}function Dn(t,n,r){var i=e.getNormalizedAbsolutePath(t.fileName,n.getCurrentDirectory()),a=n.getCommonSourceDirectory();return i=0===n.getCanonicalFileName(i).indexOf(n.getCanonicalFileName(a))?i.substring(a.length):i,e.combinePaths(r,i)}function En(t,n,r,i,a,o){t.writeFile(r,i,a,function(t){n.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,r,t));},o);}function Nn(t,n){return e.getLineAndCharacterOfPosition(t,n).line}function An(t,n){return e.computeLineAndCharacterOfPosition(t,n).line}function wn(t){return e.forEach(t.members,function(e){if(152===e.kind&&v(e.body))return e})}function On(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&In(e.parameters[0]);return e.parameters[t?1:0]}}function Pn(e){var t=On(e);return t&&t.type}function Fn(e){if(e.parameters.length){var t=e.parameters[0];if(In(t))return t}}function In(e){return Ln(e.name)}function Ln(e){return e&&71===e.kind&&Rn(e)}function Rn(e){return 99===e.originalKeywordKind}function Mn(t,n){var r,i,a,o;return qt(n)?(r=n,153===n.kind?a=n:154===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){153!==e.kind&&154!==e.kind||Yn(e,32)!==Yn(n,32)||Wt(e.name)===Wt(n.name)&&(r?i||(i=e):r=e,153!==e.kind||a||(a=e),154!==e.kind||o||(o=e));}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}}function Bn(e){return e.type?e.type:Ue(e)?_t(e):void 0}function Kn(e){return e.type?e.type:Ue(e)?mt(e):void 0}function jn(e){if(e.typeParameters)return e.typeParameters;if(Ue(e)){var t=gt(e);return t&&t.typeParameters}}function Jn(e){var t=On(e);return t&&Bn(t)}function zn(e,t,n,r){Un(e,t,n.pos,r);}function Un(e,t,n,r){r&&r.length&&n!==r[0].pos&&An(e,n)!==An(e,r[0].pos)&&t.writeLine();}function qn(e,t,n,r){n!==r&&An(e,n)!==An(e,r)&&t.writeLine();}function Vn(e,t,n,r,i,a,o,s){if(r&&r.length>0){i&&n.write(" ");for(var c=!1,u=0,l=r;u=g+2)break}_.push(m),d=m;}if(_.length){var g=An(n,e.lastOrUndefined(_).end);An(n,e.skipTrivia(t,a.pos))>=g+2&&(zn(n,r,a,u),Vn(t,n,r,_,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(_).end});}}return l}function Wn(t,n,r,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(n,i),c=n.length,u=void 0,l=i,_=s.line;l0){var f=p%yn(),m=gn((p-f)/yn());for(r.rawWrite(m);f;)r.rawWrite(" "),f--;}else r.rawWrite("");}Gn(t,a,r,o,l,d),l=d;}else r.write(t.substring(i,a));}function Gn(e,t,n,r,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(n.write(s),o!==t&&n.writeLine()):n.writeLiteral(r);}function Hn(t,n,r){for(var i=0;n=58&&e<=70}function ir(t){if(201===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function ar(t,n){return e.isBinaryExpression(t)&&(n?58===t.operatorToken.kind:rr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function or(e){if(ar(e,!0)){var t=e.left.kind;return 178===t||177===t}return!1}function sr(e){return void 0!==ir(e)}function cr(t){return 201===t.kind&&ur(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)}function ur(e){return 71===e.kind||179===e.kind&&ur(e.expression)}function lr(e){return 143===e.parent.kind&&e.parent.right===e||179===e.parent.kind&&e.parent.name===e}function _r(e){return 178===e.kind&&0===e.properties.length}function dr(e){return 177===e.kind&&0===e.elements.length}function pr(e){return fr(e)?e.declarations[0].localSymbol:void 0}function fr(t){return t&&e.length(t.declarations)>0&&Yn(t.declarations[0],512)}function mr(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(n){return e.fileExtensionIs(t,n)})}function gr(t){for(var n=[],r=t.length,i=0;i>6|192),n.push(63&a|128)):a<65536?(n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)):a<131072?(n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point");}return n}function yr(e){for(var t,n,r,i,a="",o=gr(e),s=0,c=o.length;s>2,n=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?r=i=64:s+2>=c&&(i=64),a+=si.charAt(t)+si.charAt(n)+si.charAt(r)+si.charAt(i),s+=3;return a}function hr(t){switch(t.newLine){case 0:return ci;case 1:return ui}return e.sys?e.sys.newLine:ci}function vr(e,t,n){void 0===e&&(e=0);var r=br(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){for(var i="",a=e,o=r.length-1;o>=0&&0!==a;o--){var s=r[o],c=s[0],u=s[1];0!==c&&(a&c)===c&&(a&=~c,i=u+(i?", ":"")+i);}if(0===a)return i}else for(var l=0,_=r;l<_.length;l++){var d=_[l],c=d[0],u=d[1];if(c===e)return u}return e.toString()}function br(t){var n=[];for(var r in t){var i=t[r];"number"==typeof i&&n.push([i,r]);}return e.stableSort(n,function(t,n){return e.compareValues(t[0],n[0])})}function xr(t){return vr(t,e.SyntaxKind,!1)}function Sr(t){return vr(t,e.ModifierFlags,!0)}function kr(t){return vr(t,e.TransformFlags,!0)}function Tr(t){return vr(t,e.EmitFlags,!0)}function Cr(t){return vr(t,e.SymbolFlags,!0)}function Dr(t){return vr(t,e.TypeFlags,!0)}function Er(t){return vr(t,e.ObjectFlags,!0)}function Nr(e,t){return{pos:e,end:t}}function Ar(e,t){return Nr(e.pos,t)}function wr(e,t){return Nr(t,e.end)}function Or(e){return e.decorators&&e.decorators.length>0?wr(e,e.decorators.end):e}function Pr(e){return e.modifiers&&e.modifiers.length>0?wr(e,e.modifiers.end):Or(e)}function Fr(e){return e.pos===e.end}function Ir(t,n){return Nr(t,t+e.tokenToString(n).length)}function Lr(e,t){return Br(e,e,t)}function Rr(e,t,n){return jr(Jr(e,n),Jr(t,n),n)}function Mr(e,t,n){return jr(e.end,t.end,n)}function Br(e,t,n){return jr(Jr(e,n),t.end,n)}function Kr(e,t,n){return jr(e.end,Jr(t,n),n)}function jr(e,t,n){return e===t||Nn(n,e)===Nn(n,t)}function Jr(t,n){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(n.text,t.pos)}function zr(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 232:case 233:return n===n.parent.name}return!1}function Ur(t){return e.filter(t.declarations,qr)}function qr(e){return void 0!==e.initializer}function Vr(e){return e.watch&&e.hasOwnProperty("watch")}function $r(e){return 33554432&e.flags?e.checkFlags:0}function Wr(t){if(t.valueDeclaration){var n=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?n:-29&n}if(6&$r(t)){var r=t.checkFlags;return(256&r?8:64&r?4:16)|(512&r?32:0)}return 4194304&t.flags?36:0}function Gr(e,t){for(var n=new Array(t.length+1),r=new Array(t.length+1),i=0;i/;var Zr=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var ei=/^(\/\/\/\s*/;e.isPartOfTypeNode=le,e.isChildOfNodeWithKind=_e,e.forEachReturnStatement=de,e.forEachYieldExpression=pe,e.getRestParameterElementType=fe,e.isVariableLike=me,e.introducesArgumentsExoticObject=ge,e.unwrapInnermostStatementOfLabel=ye,e.isFunctionBlock=he,e.isObjectLiteralMethod=ve,e.isObjectLiteralOrClassExpressionMethod=be,e.isIdentifierTypePredicate=xe,e.isThisTypePredicate=Se,e.getPropertyAssignment=ke,e.getContainingFunction=Te,e.getContainingClass=Ce,e.getThisContainer=De,e.getNewTargetContainer=Ee,e.getSuperContainer=Ne,e.getImmediatelyInvokedFunctionExpression=Ae,e.isSuperProperty=we,e.getEntityNameFromTypeNode=Oe,e.getInvokedExpression=Pe,e.nodeCanBeDecorated=Fe,e.nodeIsDecorated=Ie,e.nodeOrChildIsDecorated=Le,e.childIsDecorated=Re,e.isJSXTagName=Me,e.isPartOfExpression=Be,e.isExternalModuleImportEqualsDeclaration=Ke,e.getExternalModuleImportEqualsDeclarationExpression=je,e.isInternalModuleImportEqualsDeclaration=Je,e.isSourceFileJavaScript=ze,e.isInJavaScriptFile=Ue,e.isInJSDoc=qe,e.isRequireCall=Ve,e.isSingleOrDoubleQuote=$e,e.isDeclarationOfFunctionOrClassExpression=We,e.getRightMostAssignedExpression=Ge,e.isExportsIdentifier=He,e.isModuleExportsPropertyAccessExpression=Xe,e.getSpecialPropertyAssignmentKind=Ye,e.getExternalModuleName=Qe,e.getNamespaceDeclarationNode=Ze,e.isDefaultImport=et,e.hasQuestionToken=tt,e.isJSDocConstructSignature=nt,e.hasJSDocParameterTags=rt,e.getAllJSDocs=at,e.getJSDocTags=ot,e.getJSDocParameterTags=ct,e.getParameterSymbolFromJSDoc=ut,e.getTypeParameterFromJsDoc=lt,e.getJSDocType=_t,e.getJSDocAugmentsTag=dt,e.getJSDocClassTag=pt,e.getJSDocReturnTag=ft,e.getJSDocReturnType=mt,e.getJSDocTemplateTag=gt,e.hasRestParameter=yt,e.hasDeclaredRestParameter=ht,e.isRestParameter=vt,e.isDeclaredRestParam=bt;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound";}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=xt,e.isAssignmentTarget=St,e.isDeleteTarget=kt,e.isNodeDescendantOf=Tt,e.isInAmbientContext=Ct,e.isDeclarationName=Dt,e.isAnyDeclarationName=Et,e.isLiteralComputedPropertyDeclarationName=Nt,e.isIdentifierName=At,e.isAliasSymbolDeclaration=wt,e.exportAssignmentIsAlias=Ot,e.getClassExtendsHeritageClauseElement=Pt,e.getClassImplementsHeritageClauseElements=Ft,e.getInterfaceBaseTypeNodes=It,e.getHeritageClause=Lt,e.tryResolveScriptReference=Rt,e.getAncestor=Mt,e.getFileReferenceFromReferencePath=Bt,e.isKeyword=Kt,e.isTrivia=jt;!function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator";}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=Jt,e.isAsyncFunction=zt,e.isStringOrNumericLiteral=Ut,e.hasDynamicName=qt,e.isDynamicName=Vt,e.isWellKnownSymbolSyntactically=$t,e.getPropertyNameForPropertyNameNode=Wt,e.getTextOfIdentifierOrLiteral=Gt,e.getEscapedTextOfIdentifierOrLiteral=Ht,e.getPropertyNameForKnownSymbolName=Xt,e.isESSymbolIdentifier=Yt,e.isPushOrUnshiftIdentifier=Qt,e.isParameterDeclaration=Zt,e.getRootDeclaration=en,e.nodeStartsNewLexicalEnvironment=tn,e.nodeIsSynthesized=nn,e.getOriginalSourceFile=rn;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right";}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=an,e.getOperatorAssociativity=on$$1,e.getExpressionPrecedence=sn,e.getOperator=cn,e.getOperatorPrecedence=un,e.createDiagnosticCollection=ln;var ti=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ni=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ri=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ii=e.createMapFromTemplate({"\0":"\\0","\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"});e.escapeString=_n,e.isIntrinsicJsxName=pn;var ai=/[^\u0000-\u007F]/g;e.escapeNonAsciiString=mn;var oi=[""," "];e.getIndentString=gn,e.getIndentSize=yn,e.createTextWriter=hn,e.getResolvedExternalModuleName=vn,e.getExternalModuleNameFromDeclaration=bn,e.getExternalModuleNameFromPath=xn,e.getOwnEmitOutputFilePath=Sn,e.getDeclarationEmitOutputFilePath=kn,e.getSourceFilesToEmit=Tn,e.sourceFileMayBeEmitted=Cn,e.getSourceFilePathInNewDir=Dn,e.writeFile=En,e.getLineOfLocalPosition=Nn,e.getLineOfLocalPositionFromLineMap=An,e.getFirstConstructorWithBody=wn,e.getSetAccessorTypeAnnotationNode=Pn,e.getThisParameter=Fn,e.parameterIsThisKeyword=In,e.isThisIdentifier=Ln,e.identifierIsThisKeyword=Rn,e.getAllAccessorDeclarations=Mn,e.getEffectiveTypeAnnotationNode=Bn,e.getEffectiveReturnTypeNode=Kn,e.getEffectiveTypeParameterDeclarations=jn,e.getEffectiveSetAccessorTypeAnnotationNode=Jn,e.emitNewLineBeforeLeadingComments=zn,e.emitNewLineBeforeLeadingCommentsOfPosition=Un,e.emitNewLineBeforeLeadingCommentOfPosition=qn,e.emitComments=Vn,e.emitDetachedComments=$n,e.writeCommentRange=Wn,e.hasModifiers=Xn,e.hasModifier=Yn,e.getSelectedModifierFlags=Qn,e.getModifierFlags=Zn,e.getModifierFlagsNoCache=er,e.modifierToFlag=tr,e.isLogicalOperator=nr,e.isAssignmentOperator=rr,e.tryGetClassExtendingExpressionWithTypeArguments=ir,e.isAssignmentExpression=ar,e.isDestructuringAssignment=or,e.isExpressionWithTypeArgumentsInClassExtendsClause=sr,e.isExpressionWithTypeArgumentsInClassImplementsClause=cr,e.isEntityNameExpression=ur,e.isRightSideOfQualifiedNameOrPropertyAccess=lr,e.isEmptyObjectLiteral=_r,e.isEmptyArrayLiteral=dr,e.getLocalSymbolForExportDefault=pr,e.tryExtractTypeScriptExtension=mr;var si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=yr;var ci="\r\n",ui="\n";e.getNewLineCharacter=hr,e.formatSyntaxKind=xr,e.formatModifierFlags=Sr,e.formatTransformFlags=kr,e.formatEmitFlags=Tr,e.formatSymbolFlags=Cr,e.formatTypeFlags=Dr,e.formatObjectFlags=Er,e.createRange=Nr,e.moveRangeEnd=Ar,e.moveRangePos=wr,e.moveRangePastDecorators=Or,e.moveRangePastModifiers=Pr,e.isCollapsedRange=Fr,e.createTokenRange=Ir,e.rangeIsOnSingleLine=Lr,e.rangeStartPositionsAreOnSameLine=Rr,e.rangeEndPositionsAreOnSameLine=Mr,e.rangeStartIsOnSameLineAsRangeEnd=Br,e.rangeEndIsOnSameLineAsRangeStart=Kr,e.positionsAreOnSameLine=jr,e.getStartPositionOfRange=Jr,e.isDeclarationNameOfEnumOrNamespace=zr,e.getInitializedVariables=Ur,e.isWatchSet=Vr,e.getCheckFlags=$r,e.getDeclarationModifierFlagsFromSymbol=Wr,e.levenshtein=Gr,e.skipAlias=Hr,e.getCombinedLocalAndExportSymbolFlags=Xr;}(r||(r={})),function(e){function t(e){switch(e.target){case 5:return"lib.esnext.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function n(e){return e.start+e.length}function r(e){return 0===e.length}function i(e,t){return t>=e.start&&t=e.start&&n(t)<=n(e)}function o(e,t){return Math.max(e.start,t.start)=e.start}function u(e,t,r){var i=t+r;return t<=n(e)&&i>=e.start}function l(e,t,n,r){var i=n+r;return n<=e+t&&i>=e}function _(e,t){return t<=n(e)&&t>=e.start}function d(e,t){var r=Math.max(e.start,t.start),i=Math.min(n(e),n(t));if(r<=i)return f(r,i)}function p(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function f(e,t){return p(e,t-e)}function m(e){return p(e.span.start,e.newLength)}function g(e){return r(e.span)&&0===e.newLength}function y(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function h(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],i=r.span.start,a=n(r.span),o=i+r.newLength,s=1;s=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function O(e){return e}function P(t){if(t){if(e.isJSDocPropertyLikeTag(t)&&143===t.name.kind)return t.name.right;if(194!==t.kind)return t.name;var n=t;switch(e.getSpecialPropertyAssignmentKind(n)){case 1:case 4:case 5:case 3:return n.left.name;default:return}}}e.getDefaultLibFileName=t,e.textSpanEnd=n,e.textSpanIsEmpty=r,e.textSpanContainsPosition=i,e.textSpanContainsTextSpan=a,e.textSpanOverlapsWith=o,e.textSpanOverlap=s,e.textSpanIntersectsWithTextSpan=c,e.textSpanIntersectsWith=u,e.decodedTextSpanIntersectsWith=l,e.textSpanIntersectsWithPosition=_,e.textSpanIntersection=d,e.createTextSpan=p,e.createTextSpanFromBounds=f,e.textChangeRangeNewSpan=m,e.textChangeRangeIsUnchanged=g,e.createTextChangeRange=y,e.unchangedTextChangeRange=y(p(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=h,e.getTypeParameterOwner=v,e.isParameterPropertyDeclaration=b,e.isEmptyBindingPattern=x,e.isEmptyBindingElement=S,e.getCombinedModifierFlags=T,e.getCombinedNodeFlags=C,e.validateLocaleAndSetLanguage=D,e.getOriginalNode=E,e.isParseTreeNode=N,e.getParseTreeNode=A,e.unescapeLeadingUnderscores=w,e.unescapeIdentifier=O,e.getNameOfDeclaration=P;}(r||(r={})),function(e){function t(e){return 8===e.kind}function n(e){return 9===e.kind}function r(e){return 10===e.kind}function i(e){return 12===e.kind}function a(e){return 13===e.kind}function o(e){return 14===e.kind}function s(e){return 15===e.kind}function c(e){return 16===e.kind}function u(e){return 71===e.kind}function l(e){return 143===e.kind}function _(e){return 144===e.kind}function d(e){return 145===e.kind}function p(e){return 146===e.kind}function f(e){return 147===e.kind}function m(e){return 148===e.kind}function g(e){return 149===e.kind}function y(e){return 150===e.kind}function h(e){return 151===e.kind}function v(e){return 152===e.kind}function b(e){return 153===e.kind}function x(e){return 154===e.kind}function S(e){return 155===e.kind}function k(e){return 156===e.kind}function T(e){return 157===e.kind}function C(e){return 158===e.kind}function D(e){return 159===e.kind}function E(e){return 160===e.kind}function N(e){return 161===e.kind}function A(e){return 162===e.kind}function w(e){return 163===e.kind}function O(e){return 164===e.kind}function P(e){return 165===e.kind}function F(e){return 166===e.kind}function I(e){return 167===e.kind}function L(e){return 168===e.kind}function R(e){return 169===e.kind}function M(e){return 170===e.kind}function B(e){return 171===e.kind}function K(e){return 172===e.kind}function j(e){return 173===e.kind}function J(e){return 174===e.kind}function z(e){return 175===e.kind}function U(e){return 176===e.kind}function q(e){return 177===e.kind}function V(e){return 178===e.kind}function $(e){return 179===e.kind}function W(e){return 180===e.kind}function G(e){return 181===e.kind}function H(e){return 182===e.kind}function X(e){return 183===e.kind}function Y(e){return 184===e.kind}function Q(e){return 185===e.kind}function Z(e){for(;288===e.kind;)e=e.expression;return e}function ee(e){return 186===e.kind}function te(e){return 187===e.kind}function ne(e){return 188===e.kind}function re(e){return 191===e.kind}function ie(e){return 190===e.kind}function ae(e){return 191===e.kind}function oe(e){return 192===e.kind}function se(e){return 193===e.kind}function ce(e){return 194===e.kind}function ue(e){return 195===e.kind}function le(e){return 196===e.kind}function _e(e){return 197===e.kind}function de(e){return 198===e.kind}function pe(e){return 199===e.kind}function fe(e){return 200===e.kind}function me(e){return 201===e.kind}function ge(e){return 202===e.kind}function ye(e){return 203===e.kind}function he(e){return 204===e.kind}function ve(e){return 205===e.kind}function be(e){return 206===e.kind}function xe(e){return 207===e.kind}function Se(e){return 208===e.kind}function ke(e){return 209===e.kind}function Te(e){return 210===e.kind}function Ce(e){return 211===e.kind}function De(e){return 212===e.kind}function Ee(e){return 213===e.kind}function Ne(e){return 214===e.kind}function Ae(e){return 215===e.kind}function we(e){return 216===e.kind}function Oe(e){return 217===e.kind}function Pe(e){return 218===e.kind}function Fe(e){return 219===e.kind}function Ie(e){return 220===e.kind}function Le(e){return 221===e.kind}function Re(e){return 222===e.kind}function Me(e){return 223===e.kind}function Be(e){return 224===e.kind}function Ke(e){return 225===e.kind}function je(e){return 226===e.kind}function Je(e){return 227===e.kind}function ze(e){return 228===e.kind}function Ue(e){return 229===e.kind}function qe(e){return 230===e.kind}function Ve(e){return 231===e.kind}function $e(e){return 232===e.kind}function We(e){return 233===e.kind}function Ge(e){return 234===e.kind}function He(e){return 235===e.kind}function Xe(e){return 236===e.kind}function Ye(e){return 237===e.kind}function Qe(e){return 238===e.kind}function Ze(e){return 239===e.kind}function et(e){return 240===e.kind}function tt(e){return 241===e.kind}function nt(e){return 242===e.kind}function rt(e){return 243===e.kind}function it(e){return 244===e.kind}function at(e){return 245===e.kind}function ot(e){return 246===e.kind}function st(e){return 247===e.kind}function ct(e){return 248===e.kind}function ut(e){return 249===e.kind}function lt(e){return 250===e.kind}function _t(e){return 251===e.kind}function dt(e){return 252===e.kind}function pt(e){return 253===e.kind}function ft(e){return 254===e.kind}function mt(e){return 255===e.kind}function gt(e){return 256===e.kind}function yt(e){return 257===e.kind}function ht(e){return 258===e.kind}function vt(e){return 259===e.kind}function bt(e){return 260===e.kind}function xt(e){return 261===e.kind}function St(e){return 262===e.kind}function kt(e){return 263===e.kind}function Tt(e){return 264===e.kind}function Ct(e){return 265===e.kind}function Dt(e){return 266===e.kind}function Et(e){return 267===e.kind}function Nt(e){return 268===e.kind}function At(e){return 269===e.kind}function wt(e){return 270===e.kind}function Ot(e){return 271===e.kind}function Pt(e){return 272===e.kind}function Ft(e){return 273===e.kind}function It(e){return 274===e.kind}function Lt(e){return 275===e.kind}function Rt(e){return 277===e.kind}function Mt(e){return 279===e.kind}function Bt(e){return 280===e.kind}function Kt(e){return 281===e.kind}function jt(e){return 282===e.kind}function Jt(e){return 283===e.kind}function zt(e){return 284===e.kind}function Ut(e){return 284===e.kind||279===e.kind}function qt(e){return 285===e.kind}e.isNumericLiteral=t,e.isStringLiteral=n,e.isJsxText=r,e.isRegularExpressionLiteral=i,e.isNoSubstitutionTemplateLiteral=a,e.isTemplateHead=o,e.isTemplateMiddle=s,e.isTemplateTail=c,e.isIdentifier=u,e.isQualifiedName=l,e.isComputedPropertyName=_,e.isTypeParameterDeclaration=d,e.isParameter=p,e.isDecorator=f,e.isPropertySignature=m,e.isPropertyDeclaration=g,e.isMethodSignature=y,e.isMethodDeclaration=h,e.isConstructorDeclaration=v,e.isGetAccessorDeclaration=b,e.isSetAccessorDeclaration=x,e.isCallSignatureDeclaration=S,e.isConstructSignatureDeclaration=k,e.isIndexSignatureDeclaration=T,e.isTypePredicateNode=C,e.isTypeReferenceNode=D,e.isFunctionTypeNode=E,e.isConstructorTypeNode=N,e.isTypeQueryNode=A,e.isTypeLiteralNode=w,e.isArrayTypeNode=O,e.isTupleTypeNode=P,e.isUnionTypeNode=F,e.isIntersectionTypeNode=I,e.isParenthesizedTypeNode=L,e.isThisTypeNode=R,e.isTypeOperatorNode=M,e.isIndexedAccessTypeNode=B,e.isMappedTypeNode=K,e.isLiteralTypeNode=j,e.isObjectBindingPattern=J,e.isArrayBindingPattern=z,e.isBindingElement=U,e.isArrayLiteralExpression=q,e.isObjectLiteralExpression=V,e.isPropertyAccessExpression=$,e.isElementAccessExpression=W,e.isCallExpression=G,e.isNewExpression=H,e.isTaggedTemplateExpression=X,e.isTypeAssertion=Y,e.isParenthesizedExpression=Q,e.skipPartiallyEmittedExpressions=Z,e.isFunctionExpression=ee,e.isArrowFunction=te,e.isDeleteExpression=ne,e.isTypeOfExpression=re,e.isVoidExpression=ie,e.isAwaitExpression=ae,e.isPrefixUnaryExpression=oe,e.isPostfixUnaryExpression=se,e.isBinaryExpression=ce,e.isConditionalExpression=ue,e.isTemplateExpression=le,e.isYieldExpression=_e,e.isSpreadElement=de,e.isClassExpression=pe,e.isOmittedExpression=fe,e.isExpressionWithTypeArguments=me,e.isAsExpression=ge,e.isNonNullExpression=ye,e.isMetaProperty=he,e.isTemplateSpan=ve,e.isSemicolonClassElement=be,e.isBlock=xe,e.isVariableStatement=Se,e.isEmptyStatement=ke,e.isExpressionStatement=Te,e.isIfStatement=Ce,e.isDoStatement=De,e.isWhileStatement=Ee,e.isForStatement=Ne,e.isForInStatement=Ae,e.isForOfStatement=we,e.isContinueStatement=Oe,e.isBreakStatement=Pe,e.isReturnStatement=Fe,e.isWithStatement=Ie,e.isSwitchStatement=Le,e.isLabeledStatement=Re,e.isThrowStatement=Me,e.isTryStatement=Be,e.isDebuggerStatement=Ke,e.isVariableDeclaration=je,e.isVariableDeclarationList=Je,e.isFunctionDeclaration=ze,e.isClassDeclaration=Ue,e.isInterfaceDeclaration=qe,e.isTypeAliasDeclaration=Ve,e.isEnumDeclaration=$e,e.isModuleDeclaration=We,e.isModuleBlock=Ge,e.isCaseBlock=He,e.isNamespaceExportDeclaration=Xe,e.isImportEqualsDeclaration=Ye,e.isImportDeclaration=Qe,e.isImportClause=Ze,e.isNamespaceImport=et,e.isNamedImports=tt,e.isImportSpecifier=nt,e.isExportAssignment=rt,e.isExportDeclaration=it,e.isNamedExports=at,e.isExportSpecifier=ot,e.isMissingDeclaration=st,e.isExternalModuleReference=ct,e.isJsxElement=ut,e.isJsxSelfClosingElement=lt,e.isJsxOpeningElement=_t,e.isJsxClosingElement=dt,e.isJsxAttribute=pt,e.isJsxAttributes=ft,e.isJsxSpreadAttribute=mt,e.isJsxExpression=gt,e.isCaseClause=yt,e.isDefaultClause=ht,e.isHeritageClause=vt,e.isCatchClause=bt,e.isPropertyAssignment=xt,e.isShorthandPropertyAssignment=St,e.isSpreadAssignment=kt,e.isEnumMember=Tt,e.isSourceFile=Ct,e.isBundle=Dt,e.isJSDocTypeExpression=Et,e.isJSDocAllType=Nt,e.isJSDocUnknownType=At,e.isJSDocNullableType=wt,e.isJSDocNonNullableType=Ot,e.isJSDocOptionalType=Pt,e.isJSDocFunctionType=Ft,e.isJSDocVariadicType=It,e.isJSDoc=Lt,e.isJSDocAugmentsTag=Rt,e.isJSDocParameterTag=Mt,e.isJSDocReturnTag=Bt,e.isJSDocTypeTag=Kt,e.isJSDocTemplateTag=jt,e.isJSDocTypedefTag=Jt,e.isJSDocPropertyTag=zt,e.isJSDocPropertyLikeTag=Ut,e.isJSDocTypeLiteral=qt;}(r||(r={})),function(e){function t(e){return 286===e.kind}function n(e){return r(e.kind)}function r(e){return e>=143}function i(e){return e.kind>=0&&e.kind<=142}function a(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}function o(e){return 8<=e&&e<=13}function s(e){return o(e.kind)}function c(e){return 13<=e&&e<=16}function u(e){var t=e.kind;return 15===t||16===t}function l(e){switch(e.kind){case 9:case 14:case 15:case 16:case 13:return!0;default:return!1}}function _(t){return e.isIdentifier(t)&&t.autoGenerateKind>0}function d(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 131:case 115:return!0}return!1}function p(e){return d(e.kind)}function f(e){var t=e.kind;return 143===t||71===t}function m(e){var t=e.kind;return 71===t||9===t||8===t||144===t}function g(e){var t=e.kind;return 71===t||174===t||175===t}function y(e){return e&&h(e.kind)}function h(e){switch(e){case 152:case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 155:case 156:case 157:case 160:case 273:case 161:return!0}return!1}function v(e){var t=e.kind;return 152===t||149===t||151===t||153===t||154===t||157===t||206===t||247===t}function b(e){return e&&(229===e.kind||199===e.kind)}function x(e){return e&&(153===e.kind||154===e.kind)}function S(e){var t=e.kind;return 156===t||155===t||148===t||150===t||157===t||247===t}function k(e){var t=e.kind;return 261===t||262===t||263===t||151===t||153===t||154===t||247===t}function T(e){return e>=158&&e<=173||119===e||133===e||134===e||122===e||136===e||137===e||99===e||105===e||139===e||95===e||130===e||201===e}function C(e){return T(e.kind)}function D(e){switch(e.kind){case 160:case 161:return!0}return!1}function E(e){if(e){var t=e.kind;return 175===t||174===t}return!1}function N(e){var t=e.kind;return 177===t||178===t}function A(e){var t=e.kind;return 176===t||200===t}function w(e){switch(e.kind){case 226:case 146:case 176:return!0}return!1}function O(e){return P(e)||F(e)}function P(e){switch(e.kind){case 174:case 178:return!0}return!1}function F(e){switch(e.kind){case 175:case 177:return!0}return!1}function I(e){var t=e.kind;return 179===t||143===t}function L(e){switch(e.kind){case 251:case 250:case 181:case 182:case 183:case 147:return!0;default:return!1}}function R(e){return 181===e.kind||182===e.kind}function M(e){var t=e.kind;return 196===t||13===t}function B(e){return 179===e||180===e||182===e||181===e||249===e||250===e||183===e||177===e||185===e||178===e||199===e||186===e||71===e||12===e||8===e||9===e||13===e||196===e||86===e||95===e||99===e||101===e||97===e||91===e||203===e||204===e}function K(t){return B(e.skipPartiallyEmittedExpressions(t).kind)}function j(e){return 192===e||193===e||188===e||189===e||190===e||191===e||184===e||B(e)}function J(t){return j(e.skipPartiallyEmittedExpressions(t).kind)}function z(e){switch(e.kind){case 193:return!0;case 192:return 43===e.operator||44===e.operator;default:return!1}}function U(e){return 195===e||197===e||187===e||194===e||198===e||202===e||200===e||289===e||j(e)}function q(t){return U(e.skipPartiallyEmittedExpressions(t).kind)}function V(e){var t=e.kind;return 184===t||202===t}function $(e){return 288===e.kind}function W(e){return 287===e.kind}function G(e){return W(e)||$(e)}function H(e,t){switch(e.kind){case 214:case 215:case 216:case 212:case 213:return!0;case 222:return t&&H(e.statement,t)}return!1}function X(e){return 215===e.kind||216===e.kind}function Y(t){return e.isBlock(t)||q(t)}function Q(t){return e.isBlock(t)}function Z(t){return e.isVariableDeclarationList(t)||q(t)}function ee(e){var t=e.kind;return 234===t||233===t||71===t}function te(e){var t=e.kind;return 234===t||233===t}function ne(e){var t=e.kind;return 71===t||233===t}function re(e){var t=e.kind;return 241===t||240===t}function ie(e){return 233===e.kind||232===e.kind}function ae(e){return 187===e||176===e||229===e||199===e||152===e||232===e||264===e||246===e||228===e||186===e||153===e||239===e||237===e||242===e||230===e||253===e||151===e||150===e||233===e||236===e||240===e||146===e||261===e||149===e||148===e||154===e||262===e||231===e||145===e||226===e||283===e}function oe(e){return 228===e||247===e||229===e||230===e||231===e||232===e||233===e||238===e||237===e||244===e||243===e||236===e}function se(e){return 218===e||217===e||225===e||212===e||210===e||209===e||215===e||216===e||214===e||211===e||222===e||219===e||221===e||223===e||224===e||208===e||213===e||220===e||287===e||291===e||290===e}function ce(t){return 145===t.kind?282!==t.parent.kind||e.isInJavaScriptFile(t):ae(t.kind)}function ue(e){return oe(e.kind)}function le(e){return se(e.kind)}function _e(e){var t=e.kind;return se(t)||oe(t)||de(e)}function de(t){return 207===t.kind&&((void 0===t.parent||224!==t.parent.kind&&260!==t.parent.kind)&&!e.isFunctionBlock(t))}function pe(e){var t=e.kind;return 248===t||143===t||71===t}function fe(e){var t=e.kind;return 99===t||71===t||179===t}function me(e){var t=e.kind;return 249===t||256===t||250===t||10===t}function ge(e){var t=e.kind;return 253===t||255===t}function ye(e){var t=e.kind;return 9===t||256===t}function he(e){var t=e.kind;return 251===t||250===t}function ve(e){var t=e.kind;return 257===t||258===t}function be(e){return e.kind>=267&&e.kind<=285}function xe(e){return 275===e.kind||Se(e)}function Se(e){return e.kind>=276&&e.kind<=285}e.isSyntaxList=t,e.isNode=n,e.isNodeKind=r,e.isToken=i,e.isNodeArray=a,e.isLiteralKind=o,e.isLiteralExpression=s,e.isTemplateLiteralKind=c,e.isTemplateMiddleOrTemplateTail=u,e.isStringTextContainingNode=l,e.isGeneratedIdentifier=_,e.isModifierKind=d,e.isModifier=p,e.isEntityName=f,e.isPropertyName=m,e.isBindingName=g,e.isFunctionLike=y,e.isFunctionLikeKind=h,e.isClassElement=v,e.isClassLike=b,e.isAccessor=x,e.isTypeElement=S,e.isObjectLiteralElementLike=k,e.isTypeNode=C,e.isFunctionOrConstructorTypeNode=D,e.isBindingPattern=E,e.isAssignmentPattern=N,e.isArrayBindingElement=A,e.isDeclarationBindingElement=w,e.isBindingOrAssignmentPattern=O,e.isObjectBindingOrAssignmentPattern=P,e.isArrayBindingOrAssignmentPattern=F,e.isPropertyAccessOrQualifiedName=I,e.isCallLikeExpression=L,e.isCallOrNewExpression=R,e.isTemplateLiteral=M,e.isLeftHandSideExpression=K,e.isUnaryExpression=J,e.isUnaryExpressionWithWrite=z,e.isExpression=q,e.isAssertionExpression=V,e.isPartiallyEmittedExpression=$,e.isNotEmittedStatement=W,e.isNotEmittedOrPartiallyEmittedNode=G,e.isIterationStatement=H,e.isForInOrOfStatement=X,e.isConciseBody=Y,e.isFunctionBody=Q,e.isForInitializer=Z,e.isModuleBody=ee,e.isNamespaceBody=te,e.isJSDocNamespaceBody=ne,e.isNamedImportBindings=re,e.isModuleOrEnumDeclaration=ie,e.isDeclaration=ce,e.isDeclarationStatement=ue,e.isStatementButNotDeclaration=le,e.isStatement=_e,e.isModuleReference=pe,e.isJsxTagNameExpression=fe,e.isJsxChild=me,e.isJsxAttributeLike=ge,e.isStringLiteralOrJsxExpression=ye,e.isJsxOpeningLikeElement=he,e.isCaseOrDefaultClause=ve,e.isJSDocNode=be,e.isJSDocCommentContainingNode=xe,e.isJSDocTag=Se;}(r||(r={}));!function(e){function t(t,n,r){return 265===t?new(g||(g=e.objectAllocator.getSourceFileConstructor()))(t,n,r):71===t?new(m||(m=e.objectAllocator.getIdentifierConstructor()))(t,n,r):e.isNodeKind(t)?new(p||(p=e.objectAllocator.getNodeConstructor()))(t,n,r):new(f||(f=e.objectAllocator.getTokenConstructor()))(t,n,r)}function n(e,t){return t&&e(t)}function r(e,t,n){if(n){if(t)return t(n);for(var r=0,i=n;r107)}function H(t,n,r){return void 0===r&&(r=!0),M()===t?(r&&B(),!0):(n?P(n):P(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function X(e){return M()===e&&(B(),!0)}function Y(e){if(M()===e)return Z()}function Q(e,t,n,r){return Y(e)||ae(e,t,n,r)}function Z(){var e=ne(M());return B(),ie(e)}function ee(){return 25===M()||(18===M()||1===M()||ma.hasPrecedingLineBreak())}function te(){return ee()?(25===M()&&B(),!0):H(25)}function ne(t,n){return la++,n>=0||(n=ma.getStartPos()),e.isNodeKind(t)?new ta(t,n,n):71===t?new ra(t,n,n):new na(t,n,n)}function re(e,t){var n=e||[];return t>=0||(t=L()),n.pos=t,n.end=t,n}function ie(e,t){return e.end=void 0===t?ma.getStartPos():t,fa&&(e.flags|=fa),ya&&(ya=!1,e.flags|=32768),e}function ae(t,n,r,i){n?F(ma.getStartPos(),0,r,i):P(r,i);var a=ne(t,ma.getStartPos());return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),ie(a)}function oe(e){var t=_a.get(e);return void 0===t&&_a.set(e,t=e),t}function se(t,n){if(da++,t){var r=ne(71);return 71!==M()&&(r.originalKeywordKind=M()),r.escapedText=e.escapeLeadingUnderscores(oe(ma.getTokenValue())),B(),ie(r)}return ae(71,!1,n||e.Diagnostics.Identifier_expected)}function ce(e){return se(G(),e)}function ue(){return se(e.tokenIsIdentifierOrKeyword(M()))}function le(){return e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()}function _e(e){if(9===M()||8===M()){var t=Ye();return t.text=oe(t.text),t}return e&&21===M()?pe():ue()}function de(){return _e(!0)}function pe(){var e=ne(144);return H(21),e.expression=b(an),H(22),ie(e)}function fe(e){return M()===e&&W(ge)}function me(){return B(),!ma.hasPrecedingLineBreak()&&he()}function ge(){return 76===M()?83===B():84===M()?(B(),79===M()?$(ve):39!==M()&&118!==M()&&17!==M()&&he()):79===M()?ve():115===M()?(B(),he()):me()}function ye(){return e.isModifierKind(M())&&W(ge)}function he(){return 21===M()||17===M()||39===M()||24===M()||le()}function ve(){return B(),75===M()||89===M()||109===M()||117===M()&&$(Mr)||120===M()&&$(Br)}function be(t,n){if(Oe(t))return!0;switch(t){case 0:case 1:case 3:return!(25===M()&&n)&&zr();case 2:return 73===M()||79===M();case 4:return $(kt);case 5:return $(pi)||25===M()&&!n;case 6:return 21===M()||le();case 12:return 21===M()||39===M()||24===M()||le();case 17:return le();case 9:return 21===M()||24===M()||le();case 7:return 17===M()?$(xe):n?G()&&!Te():tn()&&!Te();case 8:return Zr();case 10:return 26===M()||24===M()||Zr();case 18:return G();case 11:case 15:return 26===M()||24===M()||nn();case 16:return pt();case 19:case 20:return 26===M()||Bt();case 21:return Di();case 22:return e.tokenIsIdentifierOrKeyword(M());case 13:return e.tokenIsIdentifierOrKeyword(M())||17===M();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.");}function xe(){if(e.Debug.assert(17===M()),18===B()){var t=B();return 26===t||17===t||85===t||108===t}return!0}function Se(){return B(),G()}function ke(){return B(),e.tokenIsIdentifierOrKeyword(M())}function Te(){return(108===M()||85===M())&&$(Ce)}function Ce(){return B(),nn()}function De(e){if(1===M())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===M();case 3:return 18===M()||73===M()||79===M();case 7:return 17===M()||85===M()||108===M();case 8:return Ee();case 18:return 29===M()||19===M()||17===M()||85===M()||108===M();case 11:return 20===M()||25===M();case 15:case 20:case 10:return 22===M();case 16:case 17:return 20===M()||22===M();case 19:return 26!==M();case 21:return 17===M()||18===M();case 13:return 29===M()||41===M();case 14:return 27===M()&&$(Bi)}}function Ee(){return!!ee()||(!!Sn(M())||36===M())}function Ne(){for(var e=0;e<23;e++)if(pa&1<=0&&(i.hasTrailingComma=!0),i.end=R(),pa=r,i}function qe(){return re()}function Ve(e,t,n,r){if(H(n)){var i=Ue(e,t);return H(r),i}return qe()}function $e(e,t){for(var n=e?ue():ce(t),r=ma.getStartPos();X(23);){if(27===M()){n.jsdocDotPos=r;break}r=ma.getStartPos(),n=We(n,Ge(e));}return n}function We(e,t){var n=ne(143,e.pos);return n.left=e,n.right=t,ie(n)}function Ge(t){return ma.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(M())&&$(Rr)?ae(71,!0,e.Diagnostics.Identifier_expected):t?ue():ce()}function He(){var t=ne(196);t.head=Qe(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var n=re();do{n.push(Xe());}while(15===e.lastOrUndefined(n).literal.kind);return n.end=R(),t.templateSpans=n,ie(t)}function Xe(){var t=ne(205);t.expression=b(an);var n;return 18===M()?(J(),n=Ze()):n=Q(16,!1,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=n,ie(t)}function Ye(){return et(M())}function Qe(){var t=et(M());return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function Ze(){var t=et(M());return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function et(e){var t=ne(e),n=ma.getTokenValue();return t.text=n,ma.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),ma.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=ma.getNumericLiteralFlags()),B(),ie(t),t}function tt(){var t=ne(159);return t.typeName=$e(!!(1048576&fa),e.Diagnostics.Type_expected),ma.hasPrecedingLineBreak()||27!==M()||(t.typeArguments=Ve(19,Qt,27,29)),ie(t)}function nt(e){B();var t=ne(158,e.pos);return t.parameterName=e,t.type=Qt(),ie(t)}function rt(){var e=ne(169);return B(),ie(e)}function it(){var e=ne(268);return B(),ie(e)}function at(){var e=ma.getStartPos();if(B(),26===M()||18===M()||20===M()||29===M()||58===M()||49===M())return ie(t=ne(269,e));var t=ne(270,e);return t.type=Qt(),ie(t)}function ot(){if($(Mi)){var e=ne(273);return B(),mt(56,36,e),ie(e)}var t=ne(159);return t.typeName=ue(),ie(t)}function st(){var e=ne(146);return 99!==M()&&94!==M()||(e.name=ue(),H(56)),e.type=Qt(),ie(e)}function ct(e){var t=ne(e);return B(),t.type=Qt(),ie(t)}function ut(){var e=ne(162);return H(103),e.exprName=$e(!0),ie(e)}function lt(){var e=ne(145);return e.name=ce(),X(85)&&(Bt()||!nn()?e.constraint=Qt():e.expression=In()),X(58)&&(e.default=Qt()),ie(e)}function _t(){if(27===M())return Ve(18,lt,27,29)}function dt(){if(X(56))return Qt()}function pt(){return 24===M()||Zr()||e.isModifierKind(M())||57===M()||Bt(!0)}function ft(t){var n=ne(146);return 99===M()?(n.name=se(!0),n.type=dt(),ie(n)):(n.decorators=fi(),n.modifiers=mi(),n.dotDotDotToken=Y(24),n.name=ei(),0===e.getFullWidth(n.name)&&!e.hasModifiers(n)&&e.isModifierKind(M())&&B(),n.questionToken=Y(55),n.type=dt(),n.initializer=on$$1(!0,t),l(ie(n)))}function mt(t,n,r){if(32&n||(r.typeParameters=_t()),r.parameters=gt(n),36===t)H(t),r.type=Xt();else if(X(t))r.type=Xt();else if(4&n){var i=ma.getTokenPos(),a=ma.getTextPos()-i;X(56===t?36:56)&&(r.type=Xt(),F(i,a,e.Diagnostics._0_expected,e.tokenToString(t)));}}function gt(e){if(H(19)){var t=N(),n=O();m(!!(1&e)),y(!!(2&e));var r=Ue(16,32&e?st:function(){return ft(!!(8&e))});if(m(t),y(n),!H(20)&&8&e)return;return r}return 8&e?void 0:qe()}function yt(){X(26)||te();}function ht(e){var t=ne(e);return 156===e&&H(94),mt(56,4,t),yt(),l(ie(t))}function vt(){return 21===M()&&$(bt)}function bt(){if(B(),24===M()||22===M())return!0;if(e.isModifierKind(M())){if(B(),G())return!0}else{if(!G())return!1;B();}return 56===M()||26===M()||55===M()&&(B(),56===M()||26===M()||22===M())}function xt(e,t,n){var r=ne(157,e);return r.decorators=t,r.modifiers=n,r.parameters=Ve(16,ft,21,22),r.type=en(),yt(),ie(r)}function St(e,t){var n=de(),r=Y(55);if(19===M()||27===M()){var i=ne(150,e);return i.modifiers=t,i.name=n,i.questionToken=r,mt(56,4,i),yt(),l(ie(i))}var a=ne(148,e);return a.modifiers=t,a.name=n,a.questionToken=r,a.type=en(),58===M()&&(a.initializer=li()),yt(),l(ie(a))}function kt(){if(19===M()||27===M())return!0;for(var t;e.isModifierKind(M());)t=!0,B();return 21===M()||(le()&&(t=!0,B()),!!t&&(19===M()||27===M()||55===M()||56===M()||26===M()||ee()))}function Tt(){if(19===M()||27===M())return ht(155);if(94===M()&&$(Ct))return ht(156);var e=L(),t=mi();return vt()?xt(e,void 0,t):St(e,t)}function Ct(){return B(),19===M()||27===M()}function Dt(){var e=ne(163);return e.members=Et(),ie(e)}function Et(){var e;return H(17)?(e=Ae(4,Tt),H(18)):e=qe(),e}function Nt(){return B(),131===M()&&B(),21===M()&&Se()&&92===B()}function At(){var e=ne(145);return e.name=ce(),H(92),e.constraint=Qt(),ie(e)}function wt(){var e=ne(172);return H(17),e.readonlyToken=Y(131),H(21),e.typeParameter=At(),H(22),e.questionToken=Y(55),e.type=en(),te(),H(18),ie(e)}function Ot(){var e=ne(165);return e.elementTypes=Ve(20,Qt,21,22),ie(e)}function Pt(){var e=ne(168);return H(19),e.type=Qt(),H(20),ie(e)}function Ft(e){var t=ne(e);return 161===e&&H(94),mt(36,4,t),ie(t)}function It(){var e=Z();return 23===M()?void 0:e}function Lt(e){var t,n=ne(173);e&&((t=ne(192)).operator=38,B());var r;switch(M()){case 9:case 8:r=et(M());break;case 101:case 86:r=Z();}return e&&(t.operand=r,ie(t),r=t),n.literal=r,ie(n)}function Rt(){return 8===B()}function Mt(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 139:case 130:case 134:return W(It)||tt();case 39:return it();case 55:return at();case 89:return ot();case 24:return ct(274);case 51:return ct(271);case 9:case 8:case 101:case 86:return Lt();case 38:return $(Rt)?Lt(!0):tt();case 105:case 95:return Z();case 99:var e=rt();return 126!==M()||ma.hasPrecedingLineBreak()?e:nt(e);case 103:return ut();case 17:return $(Nt)?wt():Dt();case 21:return Ot();case 19:return Pt();default:return tt()}}function Bt(e){switch(M()){case 119:case 136:case 133:case 122:case 137:case 105:case 139:case 95:case 99:case 103:case 130:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 134:case 39:return!0;case 38:return!e&&$(Rt);case 19:return!e&&$(Kt);default:return G()}}function Kt(){return B(),20===M()||pt()||Bt()}function jt(){var e=Mt(),t=function(e){switch(e){case 58:return 1048576&fa?272:void 0;case 51:return 271;case 55:return 270}}(M());if(!t)return e;B();var n=ne(t,e.pos);return n.type=e,ie(n)}function Jt(){for(var e=jt();!ma.hasPrecedingLineBreak()&&X(21);)if(Bt())(t=ne(171,e.pos)).objectType=e,t.indexType=Qt(),H(22),e=ie(t);else{var t=ne(164,e.pos);t.elementType=e,H(22),e=ie(t);}return e}function zt(e){var t=ne(170);return H(e),t.operator=e,t.type=Ut(),ie(t)}function Ut(){switch(M()){case 127:return zt(127)}return Jt()}function qt(e,t,n){X(n);var r=t();if(M()===n){for(var i=re([r],r.pos);X(n);)i.push(t());i.end=R();var a=ne(e,r.pos);a.types=i,r=ie(a);}return r}function Vt(){return qt(167,Ut,48)}function $t(){return qt(166,Vt,49)}function Wt(){return 27===M()||19===M()&&$(Ht)}function Gt(){if(e.isModifierKind(M())&&mi(),G()||99===M())return B(),!0;if(21===M()||17===M()){var t=oa.length;return ei(),t===oa.length}return!1}function Ht(){if(B(),20===M()||24===M())return!0;if(Gt()){if(56===M()||26===M()||55===M()||58===M())return!0;if(20===M()&&(B(),36===M()))return!0}return!1}function Xt(){var e=G()&&W(Yt),t=Qt();if(e){var n=ne(158,e.pos);return n.parameterName=e,n.type=t,ie(n)}return t}function Yt(){var e=ce();if(126===M()&&!ma.hasPrecedingLineBreak())return B(),e}function Qt(){return h(20480,Zt)}function Zt(){return Wt()?Ft(160):94===M()?Ft(161):$t()}function en(){return X(56)?Qt():void 0}function tn(){switch(M()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return $(Ct);default:return G()}}function nn(){if(tn())return!0;switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!Tn()||G()}}function rn(){return 17!==M()&&89!==M()&&75!==M()&&57!==M()&&nn()}function an(){var e=w();e&&g(!1);for(var t,n=sn();t=Y(26);)n=Dn(n,t,sn());return e&&g(!0),n}function on$$1(t,n){if(58!==M()){if(ma.hasPrecedingLineBreak()||t&&17===M()||!nn())return;if(t&&n){var r=ae(71,!0,e.Diagnostics._0_expected,"=");return r.escapedText="= not found",r}}return H(58),sn()}function sn(){if(cn())return ln();var t=dn()||gn();if(t)return t;var n=xn(0);return 71===n.kind&&36===M()?_n(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(K())?Dn(n,Z(),sn()):bn(n)}function cn(){return 116===M()&&(!!N()||$(Kr))}function un(){return B(),!ma.hasPrecedingLineBreak()&&G()}function ln(){var e=ne(197);return B(),ma.hasPrecedingLineBreak()||39!==M()&&!nn()?ie(e):(e.asteriskToken=Y(39),e.expression=sn(),ie(e))}function _n(t,n){e.Debug.assert(36===M(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var r;n?(r=ne(187,n.pos)).modifiers=n:r=ne(187,t.pos);var i=ne(146,t.pos);return i.name=t,ie(i),r.parameters=re([i],i.pos),r.parameters.end=i.end,r.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),r.body=vn(!!n),l(ie(r))}function dn(){var t=pn();if(0!==t){var n=1===t?hn(!0):W(mn);if(n){var r=e.hasModifier(n,256),i=M();return n.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),n.body=36===i||17===i?vn(r):ce(),l(ie(n))}}}function pn(){return 19===M()||27===M()||120===M()?$(fn):36===M()?1:0}function fn(){if(120===M()){if(B(),ma.hasPrecedingLineBreak())return 0;if(19!==M()&&27!==M())return 0}var t=M(),n=B();if(19===t){if(20===n)switch(B()){case 36:case 56:case 17:return 1;default:return 0}return 21===n||17===n?2:24===n?1:G()?56===B()?1:2:0}return e.Debug.assert(27===t),G()?1===aa.languageVariant?$(function(){var e=B();if(85===e)switch(B()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function mn(){return hn(!1)}function gn(){if(120===M()&&1===$(yn)){var e=gi();return _n(xn(0),e)}}function yn(){if(120===M()){if(B(),ma.hasPrecedingLineBreak()||36===M())return 0;var e=xn(0);if(!ma.hasPrecedingLineBreak()&&71===e.kind&&36===M())return 1}return 0}function hn(t){var n=ne(187);if(n.modifiers=gi(),mt(56,(e.hasModifier(n,256)?2:0)|(t?0:8),n),n.parameters&&(t||!(36!==M()&&17!==M()||e.find(n.parameters,function(t){return t.initializer&&e.isIdentifier(t.initializer)&&"= not found"===t.initializer.escapedText}))))return n}function vn(e){return 17===M()?hr(e?2:0):25!==M()&&89!==M()&&75!==M()&&zr()&&!rn()?hr(16|(e?2:0)):e?T(sn):C(sn)}function bn(t){var n=Y(55);if(!n)return t;var r=ne(195,t.pos);return r.condition=t,r.questionToken=n,r.whenTrue=h(ga,sn),r.colonToken=Q(56,!1,e.Diagnostics._0_expected,e.tokenToString(56)),r.whenFalse=sn(),ie(r)}function xn(e){return kn(e,In())}function Sn(e){return 92===e||142===e}function kn(e,t){for(;;){K();var n=Cn();if(!(40===M()?n>=e:n>e))break;if(92===M()&&A())break;if(118===M()){if(ma.hasPrecedingLineBreak())break;B(),t=En(t,Qt());}else t=Dn(t,Z(),xn(n));}return t}function Tn(){return(!A()||92!==M())&&Cn()>0}function Cn(){switch(M()){case 54:return 1;case 53:return 2;case 49:return 3;case 50:return 4;case 48:return 5;case 32:case 33:case 34:case 35:return 6;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 7;case 45:case 46:case 47:return 8;case 37:case 38:return 9;case 39:case 41:case 42:return 10;case 40:return 11}return-1}function Dn(e,t,n){var r=ne(194,e.pos);return r.left=e,r.operatorToken=t,r.right=n,ie(r)}function En(e,t){var n=ne(202,e.pos);return n.expression=e,n.type=t,ie(n)}function Nn(){var e=ne(192);return e.operator=M(),B(),e.operand=Ln(),ie(e)}function An(){var e=ne(188);return B(),e.expression=Ln(),ie(e)}function wn(){var e=ne(189);return B(),e.expression=Ln(),ie(e)}function On(){var e=ne(190);return B(),e.expression=Ln(),ie(e)}function Pn(){return 121===M()&&(!!O()||$(Kr))}function Fn(){var e=ne(191);return B(),e.expression=Ln(),ie(e)}function In(){if(Rn()){var t=Mn();return 40===M()?kn(Cn(),t):t}var n=M(),r=Ln();if(40===M()){var i=e.skipTrivia(ua,r.pos);184===r.kind?F(i,r.end-i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):F(i,r.end-i,e.Diagnostics.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,e.tokenToString(n));}return r}function Ln(){switch(M()){case 37:case 38:case 52:case 51:return Nn();case 80:return An();case 103:return wn();case 105:return On();case 27:return Zn();case 121:if(Pn())return Fn();default:return Mn()}}function Rn(){switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==aa.languageVariant)return!1;default:return!0}}function Mn(){if(43===M()||44===M())return(n=ne(192)).operator=M(),B(),n.operand=Bn(),ie(n);if(1===aa.languageVariant&&27===M()&&$(ke))return zn(!0);var t=Bn();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(43===M()||44===M())&&!ma.hasPrecedingLineBreak()){var n=ne(193,t.pos);return n.operand=t,n.operator=M(),B(),ie(n)}return t}function Bn(){var e;return 91===M()&&$(Ct)?(aa.flags|=524288,e=Z()):e=97===M()?jn():Kn(),tr(e)}function Kn(){return er(ar())}function jn(){var t=Z();if(19===M()||23===M()||21===M())return t;var n=ne(179,t.pos);return n.expression=t,Q(23,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=Ge(!0),ie(n)}function Jn(e,t){return e.kind===t.kind&&(71===e.kind?e.escapedText===t.escapedText:99===e.kind||e.name.escapedText===t.name.escapedText&&Jn(e.expression,t.expression))}function zn(t){var n,r=Wn(t);if(251===r.kind){var i=ne(249,r.pos);i.openingElement=r,i.children=Vn(i.openingElement.tagName),i.closingElement=Qn(t),Jn(i.openingElement.tagName,i.closingElement.tagName)||F(i.closingElement.pos,i.closingElement.end-i.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(ua,i.openingElement.tagName)),n=ie(i);}else e.Debug.assert(250===r.kind),n=r;if(t&&27===M()){var a=W(function(){return zn(!0)});if(a){P(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=ne(194,n.pos);return o.end=a.end,o.left=n,o.right=a,o.operatorToken=ae(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return n}function Un(){var e=ne(10,ma.getStartPos());return e.containsOnlyWhiteSpaces=11===ca,ca=ma.scanJsxToken(),ie(e)}function qn(){switch(M()){case 10:case 11:return Un();case 17:return Hn(!1);case 27:return zn(!1)}e.Debug.fail("Unknown JSX child kind "+M());}function Vn(t){var n=re(),r=pa;for(pa|=16384;;){if(ca=ma.reScanJsxToken(),28===M())break;if(1===M()){F(t.pos,t.end-t.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ua,t));break}if(7===M())break;var i=qn();i&&n.push(i);}return n.end=ma.getTokenPos(),pa=r,n}function $n(){var e=ne(254);return e.properties=Ae(13,Xn),ie(e)}function Wn(e){var t=ma.getStartPos();H(27);var n,r=Gn(),i=$n();return 29===M()?(n=ne(251,t),U()):(H(41),e?H(29):(H(29,void 0,!1),U()),n=ne(250,t)),n.tagName=r,n.attributes=i,ie(n)}function Gn(){z();for(var e=99===M()?Z():ue();X(23);){var t=ne(179,e.pos);t.expression=e,t.name=Ge(!0),e=ie(t);}return e}function Hn(e){var t=ne(256);return H(17),18!==M()&&(t.dotDotDotToken=Y(24),t.expression=sn()),e?H(18):(H(18,void 0,!1),U()),ie(t)}function Xn(){if(17===M())return Yn();z();var e=ne(253);if(e.name=ue(),58===M())switch(q()){case 9:e.initializer=Ye();break;default:e.initializer=Hn(!0);}return ie(e)}function Yn(){var e=ne(255);return H(17),H(24),e.expression=an(),H(18),ie(e)}function Qn(e){var t=ne(252);return H(28),t.tagName=Gn(),e?H(29):(H(29,void 0,!1),U()),ie(t)}function Zn(){var e=ne(184);return H(27),e.type=Qt(),H(29),e.expression=Ln(),ie(e)}function er(e){for(;;)if(Y(23)){var t=ne(179,e.pos);t.expression=e,t.name=Ge(!0),e=ie(t);}else if(51!==M()||ma.hasPrecedingLineBreak())if(w()||!X(21)){if(13!==M()&&14!==M())return e;var n=ne(183,e.pos);n.tag=e,n.template=13===M()?Ye():He(),e=ie(n);}else{var r=ne(180,e.pos);if(r.expression=e,22!==M()&&(r.argumentExpression=b(an),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var i=r.argumentExpression;i.text=oe(i.text);}H(22),e=ie(r);}else{B();var a=ne(203,e.pos);a.expression=e,e=ie(a);}}function tr(e){for(;;)if(e=er(e),27!==M()){if(19!==M())return e;var t=ne(181,e.pos);t.expression=e,t.arguments=nr(),e=ie(t);}else{var n=W(rr);if(!n)return e;(t=ne(181,e.pos)).expression=e,t.typeArguments=n,t.arguments=nr(),e=ie(t);}}function nr(){H(19);var e=Ue(11,ur);return H(20),e}function rr(){if(X(27)){var e=Ue(19,Qt);if(H(29))return e&&ir()?e:void 0}}function ir(){switch(M()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}function ar(){switch(M()){case 8:case 9:case 13:return Ye();case 99:case 97:case 95:case 101:case 86:return Z();case 19:return or();case 21:return lr();case 17:return pr();case 120:if(!$(Br))break;return fr();case 75:return hi();case 89:return fr();case 94:return gr();case 41:case 63:if(12===j())return Ye();break;case 14:return He()}return ce(e.Diagnostics.Expression_expected)}function or(){var e=ne(185);return H(19),e.expression=b(an),H(20),l(ie(e))}function sr(){var e=ne(198);return H(24),e.expression=sn(),ie(e)}function cr(){return 24===M()?sr():26===M()?ne(200):sn()}function ur(){return h(ga,cr)}function lr(){var e=ne(177);return H(21),ma.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ue(15,cr),H(22),ie(e)}function _r(e,t,n){return fe(125)?_i(153,e,t,n):fe(135)?_i(154,e,t,n):void 0}function dr(){var e=ma.getStartPos();if(Y(24)){var t=ne(263,e);return t.expression=sn(),l(ie(t))}var n=fi(),r=mi(),i=_r(e,n,r);if(i)return i;var a=Y(39),o=G(),s=de(),c=Y(55);if(a||19===M()||27===M())return si(e,n,r,a,s,c);if(o&&(26===M()||18===M()||58===M())){var u=ne(262,e);u.name=s,u.questionToken=c;var _=Y(58);return _&&(u.equalsToken=_,u.objectAssignmentInitializer=b(sn)),l(ie(u))}var d=ne(261,e);return d.modifiers=r,d.name=s,d.questionToken=c,H(56),d.initializer=b(sn),l(ie(d))}function pr(){var e=ne(178);return H(17),ma.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ue(12,dr,!0),H(18),ie(e)}function fr(){var t=w();t&&g(!1);var n=ne(186);n.modifiers=mi(),H(89),n.asteriskToken=Y(39);var r=n.asteriskToken?1:0,i=e.hasModifier(n,256)?2:0;return n.name=r&&i?D(mr):r?S(mr):i?T(mr):mr(),mt(56,r|i,n),n.body=hr(r|i),t&&g(!0),l(ie(n))}function mr(){return G()?ce():void 0}function gr(){var e=ma.getStartPos();if(H(94),X(23)){var t=ne(204,e);return t.keywordToken=94,t.name=ue(),ie(t)}var n=ne(182,e);return n.expression=Kn(),n.typeArguments=W(rr),(n.typeArguments||19===M())&&(n.arguments=nr()),ie(n)}function yr(e,t){var n=ne(207);return H(17,t)||e?(ma.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=Ae(1,Vr),H(18)):n.statements=qe(),ie(n)}function hr(e,t){var n=N();m(!!(1&e));var r=O();y(!!(2&e));var i=w();i&&g(!1);var a=yr(!!(16&e),t);return i&&g(!0),m(n),y(r),a}function vr(){var e=ne(209);return H(25),ie(e)}function br(){var e=ne(211);return H(90),H(19),e.expression=b(an),H(20),e.thenStatement=Vr(),e.elseStatement=X(82)?Vr():void 0,ie(e)}function xr(){var e=ne(212);return H(81),e.statement=Vr(),H(106),H(19),e.expression=b(an),H(20),X(25),ie(e)}function Sr(){var e=ne(213);return H(106),H(19),e.expression=b(an),H(20),e.statement=Vr(),ie(e)}function kr(){var e=L();H(88);var t=Y(121);H(19);var n=void 0;25!==M()&&(n=104===M()||110===M()||76===M()?ni(!0):x(an));var r;if(t?H(142):X(142)){var i=ne(216,e);i.awaitModifier=t,i.initializer=n,i.expression=b(sn),H(20),r=i;}else if(X(92)){var a=ne(215,e);a.initializer=n,a.expression=b(an),H(20),r=a;}else{var o=ne(214,e);o.initializer=n,H(25),25!==M()&&20!==M()&&(o.condition=b(an)),H(25),20!==M()&&(o.incrementor=b(an)),H(20),r=o;}return r.statement=Vr(),ie(r)}function Tr(e){var t=ne(e);return H(218===e?72:77),ee()||(t.label=ce()),te(),ie(t)}function Cr(){var e=ne(219);return H(96),ee()||(e.expression=b(an)),te(),ie(e)}function Dr(){var e=ne(220);return H(107),H(19),e.expression=b(an),H(20),e.statement=Vr(),ie(e)}function Er(){var e=ne(257);return H(73),e.expression=b(an),H(56),e.statements=Ae(3,Vr),ie(e)}function Nr(){var e=ne(258);return H(79),H(56),e.statements=Ae(3,Vr),ie(e)}function Ar(){return 73===M()?Er():Nr()}function wr(){var e=ne(221);H(98),H(19),e.expression=b(an),H(20);var t=ne(235,ma.getStartPos());return H(17),t.clauses=Ae(2,Ar),H(18),e.caseBlock=ie(t),ie(e)}function Or(){var e=ne(223);return H(100),e.expression=ma.hasPrecedingLineBreak()?void 0:b(an),te(),ie(e)}function Pr(){var e=ne(224);return H(102),e.tryBlock=yr(!1),e.catchClause=74===M()?Fr():void 0,e.catchClause&&87!==M()||(H(87),e.finallyBlock=yr(!1)),ie(e)}function Fr(){var e=ne(260);return H(74),X(19)?(e.variableDeclaration=ti(),H(20)):e.variableDeclaration=void 0,e.block=yr(!1),ie(e)}function Ir(){var e=ne(225);return H(78),te(),ie(e)}function Lr(){var e=ma.getStartPos(),t=b(an);if(71===t.kind&&X(56)){var n=ne(222,e);return n.label=t,n.statement=Vr(),l(ie(n))}var r=ne(210,e);return r.expression=t,te(),l(ie(r))}function Rr(){return B(),e.tokenIsIdentifierOrKeyword(M())&&!ma.hasPrecedingLineBreak()}function Mr(){return B(),75===M()&&!ma.hasPrecedingLineBreak()}function Br(){return B(),89===M()&&!ma.hasPrecedingLineBreak()}function Kr(){return B(),(e.tokenIsIdentifierOrKeyword(M())||8===M()||9===M())&&!ma.hasPrecedingLineBreak()}function jr(){for(;;)switch(M()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 138:return un();case 128:case 129:return Wr();case 117:case 120:case 124:case 112:case 113:case 114:case 131:if(B(),ma.hasPrecedingLineBreak())return!1;continue;case 141:return B(),17===M()||71===M()||84===M();case 91:return B(),9===M()||39===M()||17===M()||e.tokenIsIdentifierOrKeyword(M());case 84:if(B(),58===M()||39===M()||17===M()||79===M()||118===M())return!0;continue;case 115:B();continue;default:return!1}}function Jr(){return $(jr)}function zr(){switch(M()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Jr()||$(Ct);case 76:case 84:return Jr();case 120:case 124:case 109:case 128:case 129:case 138:case 141:return!0;case 114:case 112:case 113:case 115:case 131:return Jr()||!$(Rr);default:return nn()}}function Ur(){return B(),G()||17===M()||21===M()}function qr(){return $(Ur)}function Vr(){switch(M()){case 25:return vr();case 17:return yr(!1);case 104:return ii(ma.getStartPos(),void 0,void 0);case 110:if(qr())return ii(ma.getStartPos(),void 0,void 0);break;case 89:return ai(ma.getStartPos(),void 0,void 0);case 75:return vi(ma.getStartPos(),void 0,void 0);case 90:return br();case 81:return xr();case 106:return Sr();case 88:return kr();case 77:return Tr(217);case 72:return Tr(218);case 96:return Cr();case 107:return Dr();case 98:return wr();case 100:return Or();case 102:case 74:case 87:return Pr();case 78:return Ir();case 57:return $r();case 120:case 109:case 138:case 128:case 129:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 131:case 141:if(Jr())return $r()}return Lr()}function $r(){var t=L(),n=fi(),r=mi();switch(M()){case 104:case 110:case 76:return ii(t,n,r);case 89:return ai(t,n,r);case 75:return vi(t,n,r);case 109:return Ni(t,n,r);case 138:return Ai(t,n,r);case 83:return Oi(t,n,r);case 141:case 128:case 129:return Li(t,n,r);case 91:return ji(t,n,r);case 84:switch(B(),M()){case 79:case 58:return Qi(t,n,r);case 118:return Ki(t,n,r);default:return Yi(t,n,r)}default:if(n||r){var i=ae(247,!0,e.Diagnostics.Declaration_expected);return i.pos=t,i.decorators=n,i.modifiers=r,ie(i)}}}function Wr(){return B(),!ma.hasPrecedingLineBreak()&&(G()||9===M())}function Gr(e,t){if(17===M()||!ee())return hr(e,t);te();}function Hr(){if(26===M())return ne(200);var e=ne(176);return e.dotDotDotToken=Y(24),e.name=ei(),e.initializer=on$$1(!1),ie(e)}function Xr(){var e=ne(176);e.dotDotDotToken=Y(24);var t=G(),n=de();return t&&56!==M()?e.name=n:(H(56),e.propertyName=n,e.name=ei()),e.initializer=on$$1(!1),ie(e)}function Yr(){var e=ne(174);return H(17),e.elements=Ue(9,Xr),H(18),ie(e)}function Qr(){var e=ne(175);return H(21),e.elements=Ue(10,Hr),H(22),ie(e)}function Zr(){return 17===M()||21===M()||G()}function ei(){return 21===M()?Qr():17===M()?Yr():ce()}function ti(){var e=ne(226);return e.name=ei(),e.type=en(),Sn(M())||(e.initializer=li()),ie(e)}function ni(t){var n=ne(227);switch(M()){case 104:break;case 110:n.flags|=1;break;case 76:n.flags|=2;break;default:e.Debug.fail();}if(B(),142===M()&&$(ri))n.declarations=qe();else{var r=A();f(t),n.declarations=Ue(8,ti),f(r);}return ie(n)}function ri(){return Se()&&20===B()}function ii(e,t,n){var r=ne(208,e);return r.decorators=t,r.modifiers=n,r.declarationList=ni(!1),te(),l(ie(r))}function ai(t,n,r){var i=ne(228,t);i.decorators=n,i.modifiers=r,H(89),i.asteriskToken=Y(39),i.name=e.hasModifier(i,512)?mr():ce();var a=i.asteriskToken?1:0,o=e.hasModifier(i,256)?2:0;return mt(56,a|o,i),i.body=Gr(a|o,e.Diagnostics.or_expected),l(ie(i))}function oi(t,n,r){var i=ne(152,t);return i.decorators=n,i.modifiers=r,H(123),mt(56,0,i),i.body=Gr(0,e.Diagnostics.or_expected),l(ie(i))}function si(t,n,r,i,a,o,s){var c=ne(151,t);c.decorators=n,c.modifiers=r,c.asteriskToken=i,c.name=a,c.questionToken=o;var u=i?1:0,_=e.hasModifier(c,256)?2:0;return mt(56,u|_,c),c.body=Gr(u|_,s),l(ie(c))}function ci(t,n,r,i,a){var o=ne(149,t);return o.decorators=n,o.modifiers=r,o.name=i,o.questionToken=a,o.type=en(),o.initializer=e.hasModifier(o,32)?b(li):h(6144,li),te(),l(ie(o))}function ui(t,n,r){var i=Y(39),a=de(),o=Y(55);return i||19===M()||27===M()?si(t,n,r,i,a,o,e.Diagnostics.or_expected):ci(t,n,r,a,o)}function li(){return on$$1(!1)}function _i(e,t,n,r){var i=ne(e,t);return i.decorators=n,i.modifiers=r,i.name=de(),mt(56,0,i),i.body=Gr(0),l(ie(i))}function di(e){switch(e){case 114:case 112:case 113:case 115:case 131:return!0;default:return!1}}function pi(){var t;if(57===M())return!0;for(;e.isModifierKind(M());){if(t=M(),di(t))return!0;B();}if(39===M())return!0;if(le()&&(t=M(),B()),21===M())return!0;if(void 0!==t){if(!e.isKeyword(t)||135===t||125===t)return!0;switch(M()){case 19:case 27:case 56:case 58:case 55:return!0;default:return ee()}}return!1}function fi(){for(var e;;){var t=L();if(!X(57))break;var n=ne(147,t);n.expression=k(Bn),ie(n),e?e.push(n):e=re([n],t);}return e&&(e.end=R()),e}function mi(e){for(var t;;){var n=ma.getStartPos(),r=M();if(76===M()&&e){if(!W(me))break}else if(!ye())break;var i=ie(ne(r,n));t?t.push(i):t=re([i],n);}return t&&(t.end=ma.getStartPos()),t}function gi(){var e;if(120===M()){var t=ma.getStartPos(),n=M();B(),(e=re([ie(ne(n,t))],t)).end=ma.getStartPos();}return e}function yi(){if(25===M()){var t=ne(206);return B(),ie(t)}var n=L(),r=fi(),i=mi(!0),a=_r(n,r,i);return a||(123===M()?oi(n,r,i):vt()?xt(n,r,i):e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()||39===M()||21===M()?ui(n,r,i):r||i?ci(n,r,i,ae(71,!0,e.Diagnostics.Declaration_expected),void 0):void e.Debug.fail("Should not have attempted to parse class member declaration."))}function hi(){return bi(ma.getStartPos(),void 0,void 0,199)}function vi(e,t,n){return bi(e,t,n,229)}function bi(e,t,n,r){var i=ne(r,e);return i.decorators=t,i.modifiers=n,H(75),i.name=xi(),i.typeParameters=_t(),i.heritageClauses=ki(),H(17)?(i.members=Ei(),H(18)):i.members=qe(),l(ie(i))}function xi(){return G()&&!Si()?ce():void 0}function Si(){return 108===M()&&$(ke)}function ki(){if(Di())return Ae(21,Ti)}function Ti(){var e=M();if(85===e||108===e){var t=ne(259);return t.token=e,B(),t.types=Ue(7,Ci),ie(t)}}function Ci(){var e=ne(201);return e.expression=Bn(),27===M()&&(e.typeArguments=Ve(19,Qt,27,29)),ie(e)}function Di(){return 85===M()||108===M()}function Ei(){return Ae(5,yi)}function Ni(e,t,n){var r=ne(230,e);return r.decorators=t,r.modifiers=n,H(109),r.name=ce(),r.typeParameters=_t(),r.heritageClauses=ki(),r.members=Et(),l(ie(r))}function Ai(e,t,n){var r=ne(231,e);return r.decorators=t,r.modifiers=n,H(138),r.name=ce(),r.typeParameters=_t(),H(58),r.type=Qt(),te(),l(ie(r))}function wi(){var e=ne(264,ma.getStartPos());return e.name=de(),e.initializer=b(li),l(ie(e))}function Oi(e,t,n){var r=ne(232,e);return r.decorators=t,r.modifiers=n,H(83),r.name=ce(),H(17)?(r.members=Ue(6,wi),H(18)):r.members=qe(),l(ie(r))}function Pi(){var e=ne(234,ma.getStartPos());return H(17)?(e.statements=Ae(1,Vr),H(18)):e.statements=qe(),ie(e)}function Fi(e,t,n,r){var i=ne(233,e),a=16&r;return i.decorators=t,i.modifiers=n,i.flags|=r,i.name=ce(),i.body=X(23)?Fi(L(),void 0,void 0,4|a):Pi(),l(ie(i))}function Ii(e,t,n){var r=ne(233,e);return r.decorators=t,r.modifiers=n,141===M()?(r.name=ce(),r.flags|=512):(r.name=Ye(),r.name.text=oe(r.name.text)),17===M()?r.body=Pi():te(),ie(r)}function Li(e,t,n){var r=0;if(141===M())return Ii(e,t,n);if(X(129))r|=16;else if(H(128),9===M())return Ii(e,t,n);return Fi(e,t,n,r)}function Ri(){return 132===M()&&$(Mi)}function Mi(){return 19===B()}function Bi(){return 41===B()}function Ki(e,t,n){var r=ne(236,e);return r.decorators=t,r.modifiers=n,H(118),H(129),r.name=ce(),te(),ie(r)}function ji(e,t,n){H(91);var r,i=ma.getStartPos();if(G()&&(r=ce(),26!==M()&&140!==M()))return Ji(e,t,n,r);var a=ne(238,e);return a.decorators=t,a.modifiers=n,(r||39===M()||17===M())&&(a.importClause=zi(r,i),H(140)),a.moduleSpecifier=Vi(),te(),ie(a)}function Ji(e,t,n,r){var i=ne(237,e);return i.decorators=t,i.modifiers=n,i.name=r,H(58),i.moduleReference=Ui(),te(),l(ie(i))}function zi(e,t){var n=ne(239,t);return e&&(n.name=e),n.name&&!X(26)||(n.namedBindings=39===M()?$i():Wi(241)),ie(n)}function Ui(){return Ri()?qi():$e(!1)}function qi(){var e=ne(248);return H(132),H(19),e.expression=Vi(),H(20),ie(e)}function Vi(){if(9===M()){var e=Ye();return e.text=oe(e.text),e}return an()}function $i(){var e=ne(240);return H(39),H(118),e.name=ce(),ie(e)}function Wi(e){var t=ne(e);return t.elements=Ve(22,241===e?Hi:Gi,17,18),ie(t)}function Gi(){return Xi(246)}function Hi(){return Xi(242)}function Xi(t){var n=ne(t),r=e.isKeyword(M())&&!G(),i=ma.getTokenPos(),a=ma.getTextPos(),o=ue();return 118===M()?(n.propertyName=o,H(118),r=e.isKeyword(M())&&!G(),i=ma.getTokenPos(),a=ma.getTextPos(),n.name=ue()):n.name=o,242===t&&r&&F(i,a-i,e.Diagnostics.Identifier_expected),ie(n)}function Yi(e,t,n){var r=ne(244,e);return r.decorators=t,r.modifiers=n,X(39)?(H(140),r.moduleSpecifier=Vi()):(r.exportClause=Wi(245),(140===M()||9===M()&&!ma.hasPrecedingLineBreak())&&(H(140),r.moduleSpecifier=Vi())),te(),ie(r)}function Qi(e,t,n){var r=ne(243,e);return r.decorators=t,r.modifiers=n,X(58)?r.isExportEquals=!0:H(79),r.expression=sn(),te(),ie(r)}function Zi(t){for(var n,r=e.createScanner(t.languageVersion,!1,0,ua),i=[],a=[],o=[],s=void 0;;){var c=r.scan();if(2!==c){if(e.isTrivia(c))continue;break}var u={kind:r.getToken(),pos:r.getTokenPos(),end:r.getTextPos()},l=ua.substring(u.pos,u.end),_=e.getFileReferenceFromReferencePath(l,u);if(_){var d=_.fileReference;t.hasNoDefaultLib=_.isNoDefaultLib;var p=_.diagnosticMessage;d&&(_.isTypeReferenceDirective?a.push(d):i.push(d)),p&&oa.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,p));}else{var f=/^\/\/\/\s*=1&&(o=0,r.push(ma.getTokenText())),e=0;break;case 57:break;case 5:if(2===o)t(ma.getTokenText());else{var s=ma.getTokenText();void 0!==n&&e+s.length>n&&r.push(s.slice(n-e-1)),e+=s.length;}break;case 39:if(0===o){o=1,e+=ma.getTokenText().length;break}default:o=2,t(ma.getTokenText());}if(57===M())break;D();}return i(r),a(r),r}function l(e,t){var n=ne(276,e.pos);return n.atToken=e,n.tagName=t,ie(n)}function _(e,t){e.comment=t.join(""),O?O.push(e):O=re([e],e.pos),O.end=e.end;}function d(){return W(function(){if(s(),17===M())return r()})}function p(){var e=X(21),t=E();return e&&(s(),Y(58)&&an(),H(22)),{name:t,isBracketed:e}}function f(t){switch(t.kind){case 134:return!0;case 164:return f(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function m(e,t,n){var r=d(),i=!r;s();var a=p(),o=a.name,c=a.isBracketed;s(),i&&(r=d());var u=1===n?ne(279,e.pos):ne(284,e.pos),l=g(r,o);return l&&(r=l,i=!0),u.atToken=e,u.tagName=t,u.typeExpression=r,u.name=o,u.isNameFirst=i,u.isBracketed=c,ie(u)}function g(e,t){if(e&&f(e.type)){for(var n=ne(267,ma.getTokenPos()),r=void 0,i=void 0,a=ma.getStartPos(),o=void 0;r=W(function(){return k(1,t)});)o||(o=[]),o.push(r);if(o)return i=ne(285,a),i.jsDocPropertyTags=o,164===e.type.kind&&(i.isArrayType=!0),n.type=ie(i),ie(n)}}function y(t,n){e.forEach(O,function(e){return 280===e.kind})&&F(n.pos,ma.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=ne(280,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),ie(r)}function h(t,n){e.forEach(O,function(e){return 281===e.kind})&&F(n.pos,ma.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=ne(281,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),ie(r)}function v(e,t){var n=d(),r=ne(277,e.pos);return r.atToken=e,r.tagName=t,r.typeExpression=n,ie(r)}function b(e,t){var n=ne(278,e.pos);return n.atToken=e,n.tagName=t,ie(n)}function x(e,t){function n(e){var t=ma.getTokenPos(),r=N();if(r&&X(23)){var i=ne(233,t);return i.flags|=e,i.name=r,i.body=n(4),ie(i)}return r&&4&e&&(r.isInJSDocNamespace=!0),r}var r=d();s();var i=ne(283,e.pos);if(i.atToken=e,i.tagName=t,i.fullName=n(0),i.fullName)for(var a=i.fullName;;){if(71===a.kind||!a.body){i.name=71===a.kind?a:a.name;break}a=a.body;}if(s(),i.typeExpression=r,!r||f(r.type)){for(var o=void 0,c=void 0,u=void 0,l=ma.getStartPos();o=W(function(){return k(0)});)if(c||(c=ne(285,l)),281===o.kind){if(u)break;u=o;}else c.jsDocPropertyTags||(c.jsDocPropertyTags=[]),c.jsDocPropertyTags.push(o);c&&(r&&164===r.type.kind&&(c.isArrayType=!0),i.typeExpression=u&&!f(u.typeExpression.type)?u.typeExpression:ie(c));}return ie(i)}function S(t,n){for(;!e.isIdentifier(t)||!e.isIdentifier(n);){if(e.isIdentifier(t)||e.isIdentifier(n)||t.right.escapedText!==n.right.escapedText)return!1;t=t.left,n=n.left;}return t.escapedText===n.escapedText}function k(t,n){for(var r=!0,i=!1;;)switch(D(),M()){case 57:if(r){var a=T(t);return!(a&&279===a.kind&&(e.isIdentifier(a.name)||!S(n,a.name.left)))&&a}i=!1;break;case 4:r=!0,i=!1;break;case 39:i&&(r=!1),i=!0;break;case 71:r=!1;break;case 1:return!1}}function T(t){e.Debug.assert(57===M());var n=ne(57,ma.getStartPos());n.end=ma.getTextPos(),D();var r=N();if(s(),!r)return!1;switch(r.escapedText){case"type":return 0===t&&h(n,r);case"prop":case"property":return 0===t&&m(n,r,t);case"arg":case"argument":case"param":return 1===t&&m(n,r,t)}return!1}function C(t,n){e.forEach(O,function(e){return 282===e.kind})&&F(n.pos,ma.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);for(var r=re();;){var i=N();if(s(),!i)return void F(ma.getStartPos(),0,e.Diagnostics.Identifier_expected);var a=ne(145,i.pos);if(a.name=i,ie(a),r.push(a),26!==M())break;D(),s();}var o=ne(282,t.pos);return o.atToken=t,o.tagName=n,o.typeParameters=r,ie(o),r.end=o.end,o}function D(){return ca=ma.scanJSDocToken()}function E(){var e=N(!0);for(X(21)&&H(22);X(23);){var t=N(!0);X(21)&&H(22),e=We(e,t);}return e}function N(t){if(void 0===t&&(t=!1),!e.tokenIsIdentifierOrKeyword(M()))return t?ae(71,!0,e.Diagnostics.Identifier_expected):void P(e.Diagnostics.Identifier_expected);var n=ma.getTokenPos(),r=ma.getTextPos(),i=ne(71,n);return i.escapedText=e.escapeLeadingUnderscores(A.substring(n,r)),ie(i,r),D(),i}var A=ua;t=t||0;var w=void 0===n?A.length:t+n;n=w-t,e.Debug.assert(t>=0),e.Debug.assert(t<=w),e.Debug.assert(w<=A.length);var O,I,L=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(A,t)?(ma.scanRange(t+3,n-5,function(){function e(e){s||(s=u),L.push(e),u+=e.length;}var n=!0,r=1,s=void 0,u=t-Math.max(A.lastIndexOf("\n",t),0)+4;for(D();5===M();)D();for(4===M()&&(r=0,u=0,D());1!==M();){switch(M()){case 57:0===r||1===r?(a(L),c(u),r=0,n=!1,s=void 0,u++):e(ma.getTokenText());break;case 4:L.push(ma.getTokenText()),r=0,u=0;break;case 39:var l=ma.getTokenText();1===r||2===r?(r=2,e(l)):(r=1,u+=l.length);break;case 71:e(ma.getTokenText()),r=2;break;case 5:var _=ma.getTokenText();2===r?L.push(_):void 0!==s&&u+_.length>s&&L.push(_.slice(s-u-1)),u+=_.length;break;case 1:break;default:r=2,e(ma.getTokenText());}n?D():n=!0;}i(L),a(L),I=o();}),I):I}t.parseJSDocTypeExpressionForTests=n,t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=i,t.parseJSDocComment=a;var u;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments";}(u||(u={}));var l;!function(e){e[e.Property=0]="Property",e[e.Parameter=1]="Parameter";}(l||(l={})),t.parseJSDocCommentWorker=o;}(ba=t.JSDocParser||(t.JSDocParser={}));}(y||(y={}));var h;!function(t){function n(t,n,r,i){if(i=i||e.Debug.shouldAssert(2),_(t,n,r,i),e.textChangeRangeIsUnchanged(r))return t;if(0===t.statements.length)return y.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var a=t;e.Debug.assert(!a.hasBeenIncrementallyParsed),a.hasBeenIncrementallyParsed=!0;var o=t.text,s=d(t),l=u(t,r);_(t,n,l,i),e.Debug.assert(l.span.start<=r.span.start),e.Debug.assert(e.textSpanEnd(l.span)===e.textSpanEnd(r.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(l))===e.textSpanEnd(e.textChangeRangeNewSpan(r)));var p=e.textChangeRangeNewSpan(l).length-l.span.length;return c(a,l.span.start,e.textSpanEnd(l.span),e.textSpanEnd(e.textChangeRangeNewSpan(l)),p,o,n,i),y.parseSourceFile(t.fileName,n,t.languageVersion,s,!0,t.scriptKind)}function r(t,n,r,o,c,u){function l(t){var n="";if(u&&a(t)&&(n=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=r,t.end+=r,u&&a(t)&&e.Debug.assert(n===c.substring(t.pos,t.end)),i(t,l,_),t.jsDoc)for(var d=0,p=t.jsDoc;d=n,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=r?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end));}function s(t,n){if(n){var r=t.pos;i(t,function(t){e.Debug.assert(t.pos>=r),r=t.end;}),e.Debug.assert(r<=t.end);}}function c(t,n,a,c,u,l,_,d){function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>a)r(t,!1,u,l,_,d);else{var m=t.end;if(m>=n)return t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u),i(t,p,f),void s(t,d);e.Debug.assert(ma)r(t,!0,u,l,_,d);else{var i=t.end;if(i>=n){t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u);for(var s=0,f=t;s0&&i<=1;i++){var a=l(t,r);e.Debug.assert(a.pos<=r);var o=a.pos;r=Math.max(0,o-1);}var s=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span)),c=n.newLength+(n.span.start-r);return e.createTextChangeRange(s,c)}function l(t,n){function r(t){var n=void 0;return i(t,function(t){e.nodeIsPresent(t)&&(n=t);}),n}function a(t){if(!e.nodeIsMissing(t))return t.pos<=n?(t.pos>=s.pos&&(s=t),nn),!0)}var o,s=t;if(i(t,a),o){var c=function(e){for(;;){var t=r(e);if(!t)return e;e=t;}}(o);c.pos>s.pos&&(s=c);}return s}function _(t,n,r,i){var a=t.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===n.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),u=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===u);}}function d(t){function n(e){function n(t){return e>=t.pos&&e=t.pos&&e=158&&e<=173)return-3;switch(e){case 181:case 182:case 177:return 537396545;case 233:return 574674241;case 146:return 536872257;case 187:return 601249089;case 186:case 228:return 601281857;case 227:return 546309441;case 229:case 199:return 539358529;case 152:return 601015617;case 151:case 153:case 154:return 601015617;case 119:case 133:case 130:case 136:case 134:case 122:case 137:case 105:case 145:case 148:case 150:case 155:case 156:case 157:case 230:case 231:return-3;case 178:return 540087617;case 260:return 537920833;case 174:case 175:return 537396545;default:return 536872257}}function P(t,n){n.parent=t,e.forEachChild(n,function(e){return P(n,e)});}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly";}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var F;!function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod";}(F||(F={}));var I=function(){function n(t,n){Et=t,Nt=n,At=e.getEmitScriptTarget(Nt),Vt=i(Et,n),Wt=e.createUnderscoreEscapedMap(),Ht=0,Gt=Et.isDeclarationFile,$t=e.objectAllocator.getSymbolConstructor(),Et.locals||($e(Et),Et.symbolCount=Ht,Et.classifiableNames=Wt),Et=void 0,Nt=void 0,At=void 0,wt=void 0,Ot=void 0,Pt=void 0,Ft=void 0,It=!1,Lt=void 0,Rt=void 0,Mt=void 0,Bt=void 0,Kt=void 0,jt=void 0,zt=void 0,Ut=!1,qt=0,Qt=0;}function i(e,t){return!((void 0===t.alwaysStrict?!t.strict:!t.alwaysStrict)||e.isDeclarationFile)||!!e.externalModuleIndicator}function a(e,t){return Ht++,new $t(e,t)}function o(t,n,r){if(t.flags|=r,n.symbol=t,t.declarations||(t.declarations=[]),t.declarations.push(n),1952&r&&!t.exports&&(t.exports=e.createSymbolTable()),6240&r&&!t.members&&(t.members=e.createSymbolTable()),107455&r){var i=t.valueDeclaration;(!i||i.kind!==n.kind&&233===i.kind)&&(t.valueDeclaration=n);}}function s(t){var n=e.getNameOfDeclaration(t);if(n){if(e.isAmbientModule(t)){var r=e.getTextOfIdentifierOrLiteral(n);return e.isGlobalScopeAugmentation(t)?"__global":'"'+r+'"'}if(144===n.kind){var i=n.expression;return e.isStringOrNumericLiteral(i)?e.escapeLeadingUnderscores(i.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.unescapeLeadingUnderscores(i.name.escapedText)))}return e.getEscapedTextOfIdentifierOrLiteral(n)}switch(t.kind){case 152:return"__constructor";case 160:case 155:return"__call";case 161:case 156:return"__new";case 157:return"__index";case 244:return"__export";case 243:return t.isExportEquals?"export=":"default";case 194:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 228:case 229:return e.hasModifier(t,512)?"default":void 0;case 273:return e.isJSDocConstructSignature(t)?"__new":"__call";case 146:e.Debug.assert(273===t.parent.kind);var a=t.parent;return"arg"+e.indexOf(a.parameters,t);case 283:var o=t.parent&&t.parent.parent,s=void 0;if(o&&208===o.kind&&o.declarationList.declarations.length>0){var c=o.declarationList.declarations[0].name;e.isIdentifier(c)&&(s=c.escapedText);}return s}}function c(t){return t.name?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(s(t))}function u(t,n,r,i,u,l){e.Debug.assert(!e.hasDynamicName(r));var _,d=e.hasModifier(r,512),p=d&&n?"default":s(r);if(void 0===p)_=a(0,"__missing");else if(_=t.get(p),788448&i&&Wt.set(p,!0),_){if(l&&!_.isReplaceableByMethod)return _;if(_.flags&u)if(_.isReplaceableByMethod)t.set(p,_=a(0,p));else{r.name&&(r.name.parent=r);var f=2&_.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;_.declarations&&_.declarations.length&&(d?f=e.Diagnostics.A_module_cannot_have_multiple_default_exports:_.declarations&&_.declarations.length&&(d||243===r.kind&&!r.isExportEquals)&&(f=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(_.declarations,function(t){Et.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(t)||t,f,c(t)));}),Et.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(r)||r,f,c(r))),_=a(0,p);}}else t.set(p,_=a(0,p)),l&&(_.isReplaceableByMethod=!0);return o(_,r,i),_.parent=n,_}function l(t,n,r){var i=1&e.getCombinedModifierFlags(t);if(2097152&n)return 246===t.kind||237===t.kind&&i?u(Ot.symbol.exports,Ot.symbol,t,n,r):u(Ot.locals,void 0,t,n,r);283===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var a=283===t.kind&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(i||32&Ot.flags)||a){var o=107455&n?1048576:0,s=u(Ot.locals,void 0,t,o,r);return s.exportSymbol=u(Ot.symbol.exports,Ot.symbol,t,n,r),t.localSymbol=s,s}return u(Ot.locals,void 0,t,n,r)}function _(t,n){var r=Ot,i=Pt;if(1&n?(Ot=Pt=t,32&n&&(Ot.locals=e.createSymbolTable()),fe(Ot)):2&n&&((Pt=t).locals=void 0),4&n){var a=Lt,o=Rt,s=Mt,c=Bt,u=zt,l=Ut,_=16&n&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);_?Bt=S():(Lt={flags:2},144&n&&(Lt.container=t),Bt=void 0),Rt=void 0,Mt=void 0,zt=void 0,Ut=!1,d(t),t.flags&=-1409,!(1&Lt.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=128,Ut&&(t.flags|=256)),265===t.kind&&(t.flags|=qt),_?(C(Bt,Lt),Lt=w(Bt)):Lt=a,Rt=o,Mt=s,Bt=c,zt=u,Ut=l;}else 64&n?(It=!1,d(t),t.flags=It?64|t.flags:-65&t.flags):d(t);Ot=r,Pt=i;}function d(e){if(Gt)m(e);else if(536870912&e.transformFlags)Gt=!0,m(e),Gt=!1,Qt|=e.transformFlags&~O(e.kind);else{var t=Qt;Qt=0,m(e),Qt=t|r(e,Qt);}}function p(t){if(void 0!==t)if(Gt)e.forEach(t,$e);else{var n=Qt;Qt=0;for(var r=0,i=0,a=t;i=108&&t.originalKeywordKind<=116&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(Et.parseDiagnostics.length||Et.bindDiagnostics.push(e.createDiagnosticForNode(t,Oe(t),e.declarationNameToString(t))));}function Oe(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Pe(t){Vt&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Re(t,t.left);}function Fe(e){Vt&&e.variableDeclaration&&Re(e,e.variableDeclaration.name);}function Ie(t){if(Vt&&71===t.expression.kind){var n=e.getErrorSpanForNode(Et,t.expression);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode));}}function Le(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}function Re(t,n){if(n&&71===n.kind){var r=n;if(Le(r)){var i=e.getErrorSpanForNode(Et,n);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,i.start,i.length,Me(t),e.unescapeLeadingUnderscores(r.escapedText)));}}}function Me(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Be(e){Vt&&Re(e,e.name);}function Ke(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function je(t){if(At<2&&265!==Pt.kind&&233!==Pt.kind&&!e.isFunctionLike(Pt)){var n=e.getErrorSpanForNode(Et,t);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,Ke(t)));}}function Je(t){Vt&&4&t.numericLiteralFlags&&Et.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));}function ze(e){Vt&&Re(e,e.operand);}function Ue(e){Vt&&(43!==e.operator&&44!==e.operator||Re(e,e.operand));}function qe(t){Vt&&Ve(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode);}function Ve(t,n,r,i,a){var o=e.getSpanOfTokenAtPosition(Et,t.pos);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,o.start,o.length,n,r,i,a));}function $e(t){if(t){t.parent=wt;var n=Vt;if(e.isInJavaScriptFile(t)&&We(t),Xe(t),t.kind>142){var i=wt;wt=t;var a=pe(t);0===a?d(t):_(t,a),wt=i;}else Gt||0!=(536870912&t.transformFlags)||(Qt|=r(t,0));Vt=n;}}function We(e){if(e.jsDoc)for(var t=0,n=e.jsDoc;t1);}function S(t,n,r){function i(t,n){return function(r){return Sb.add(e.createDiagnosticForNode(r,n,t))}}n.forEach(function(n,a){var o=t.get(a);o?e.forEach(o.declarations,i(e.unescapeLeadingUnderscores(a),r)):t.set(a,n);});}function k(e){if(33554432&e.flags)return e;var t=n(e);return _b[t]||(_b[t]={})}function T(e){var n=t(e);return db[n]||(db[n]={flags:0})}function C(e){return 32768&e.flags?e.objectFlags:0}function D(t){return 265===t.kind&&!e.isExternalOrCommonJsModule(t)}function E(t,n,r){if(r){var i=t.get(n);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags){var a=ie(i);if(a===Uh||a.flags&r)return i}}}}function N(t,n){var r=t.parent,i=t.parent.parent,a=E(r.locals,n,107455),o=E(i.symbol.members,n,107455);if(a&&o)return[a,o];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration");}function A(t,n){function r(t,n,r){return!!e.findAncestor(t,function(i){if(i===r)return"quit";if(e.isFunctionLike(i))return!0;if(i.parent&&149===i.parent.kind&&i.parent.initializer===i)if(e.hasModifier(i.parent,32)){if(151===n.kind)return!0}else if(!(149===n.kind&&!e.hasModifier(n,32))||e.getContainingClass(t)!==e.getContainingClass(n))return!0})}var a=e.getSourceFileOfNode(t),o=e.getSourceFileOfNode(n);if(a!==o){if(Ch&&(a.externalModuleIndicator||o.externalModuleIndicator)||!kh.outFile&&!kh.out||ec(n)||e.isInAmbientContext(t))return!0;if(r(n,t))return!0;var s=i.getSourceFiles();return e.indexOf(s,a)<=e.indexOf(s,o)}if(t.pos<=n.pos){if(176===t.kind){var c=e.getAncestor(n,176);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=l?u.substr(0,l-"...".length)+"...":u}function Ze(t,n,r){return e.usingSingleLineStringWriter(function(e){ot().buildTypePredicateDisplay(t,e,n,r);})}function et(e){for(var t=[],n=0,r=0;r0&&(26!==t&&He(i),Ge(i,t),He(i)),c(e[n],26===t?0:128);}function l(e,t,n,o,s){if((32&e.flags||!Fe(e.escapedName))&&r(e,i,a,793064,0,s),n0&&(Ge(t,26),He(t)),n(e[r]);}function d(e,t,n,r){if(e&&e.length){Ge(n,27);for(var a=512,o=0;o0&&(Ge(n,26),He(n),a=0),i(t(e[o]),n,r,a);Ge(n,29);}}function p(e,t,n,r,i,a){Ge(n,19),e&&s(e,n,r,i,a);for(var o=0;o0||e)&&(Ge(n,26),He(n)),s(t[o],n,r,i,a);Ge(n,20);}function f(t,n,r,a,o){e.isIdentifierTypePredicate(t)?n.writeParameter(t.parameterName):We(n,99),He(n),We(n,126),He(n),i(t.type,n,r,a,o);}function g(e,t,n,r,a){var o=Jr(e);4096&r&>(o)||(16&r?(He(t),Ge(t,36)):Ge(t,56),He(t),e.typePredicate?f(e.typePredicate,t,n,r,a):i(o,t,n,r,a));}function y(e,t,n,r,i,a){1===i&&(We(t,94),He(t)),e.target&&64&r?d(e.target.typeParameters,e.mapper,t,n):l(e.typeParameters,t,n,r,a),p(e.thisParameter,e.parameters,t,n,r,a),g(e,t,n,r,a);}function h(t,n,r,a,o,s){if(t){switch(t.isReadonly&&(We(n,131),He(n)),Ge(n,21),n.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),Ge(n,56),He(n),r){case 1:We(n,133);break;case 0:We(n,136);}Ge(n,22),Ge(n,56),He(n),i(t.type,n,a,o,s),Ge(n,25),n.writeLine();}}return Eb||(Eb={buildSymbolDisplay:r,buildTypeDisplay:i,buildTypeParameterDisplay:o,buildTypePredicateDisplay:f,buildParameterDisplay:s,buildDisplayForParametersAndDelimiters:p,buildDisplayForTypeParametersAndDelimiters:l,buildTypeParameterDisplayFromSymbol:a,buildSignatureDisplay:y,buildIndexSignatureDisplay:h,buildReturnTypeDisplay:g})}function st(t){if(t){var n=T(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 176:return st(t.parent.parent);case 226:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 233:case 229:case 230:case 231:case 228:case 232:case 237:if(e.isExternalModuleAugmentation(t))return!0;var n=pt(t);return 1&e.getCombinedModifierFlags(t)||237!==t.kind&&265!==n.kind&&e.isInAmbientContext(n)?st(n):D(n);case 149:case 148:case 153:case 154:case 151:case 150:if(e.hasModifier(t,24))return!1;case 152:case 156:case 155:case 157:case 146:case 234:case 160:case 161:case 163:case 159:case 164:case 165:case 166:case 167:case 168:return st(t.parent);case 239:case 240:case 242:return!1;case 145:case 265:case 236:return!0;case 243:default:return!1}}()),n.isVisible}return!1}function ct(t){function n(t){e.forEach(t,function(t){T(t).isVisible=!0;var r=z(t)||t;if(e.contains(i,r)||i.push(r),e.isInternalModuleImportEqualsDeclaration(t)){var a=w(t,Km(t.moduleReference).escapedText,901119,void 0,void 0);a&&n(a.declarations);}});}var r;t.parent&&243===t.parent.kind?r=w(t.parent,t.escapedText,2998271,e.Diagnostics.Cannot_find_name_0,t):246===t.parent.kind&&(r=Z(t.parent,2998271));var i=[];return r&&n(r.declarations),i}function ut(e,t){var n=lt(e,t);if(n>=0){for(var r=ab.length,i=n;i=0;n--){if(_t(ab[n],sb[n]))return-1;if(ab[n]===e&&sb[n]===t)return n}return-1}function _t(t,n){return 0===n?k(t).type:2===n?k(t).declaredType:1===n?t.resolvedBaseConstructorType:3===n?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+n)}function dt(){return ab.pop(),sb.pop(),ob.pop()}function pt(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 226:case 227:case 242:case 241:case 240:case 239:return!1;default:return!0}}))&&t.parent}function ft(t){var n=xn(De(t));return n.typeParameters?oi(n,e.map(n.typeParameters,function(e){return Vh})):n}function mt(e,t){var n=vr(e,t);return n?qt(n):void 0}function gt(e){return e&&0!=(1&e.flags)}function yt(e){var t=Ce(e);return t&&k(t).type||Ct(e,!1)}function ht(t){return 144===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function vt(t,n,r){if(8192&(t=zc(t,function(e){return!(6144&e.flags)})).flags)return cv;if(65536&t.flags)return Uc(t,function(e){return vt(e,n,r)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=n;o=2?Wi(Vh):kv;var o=Zi(e.map(i,function(t){return e.isOmittedExpression(t)?Vh:Et(t,n,r)}));return n&&((o=si(o)).pattern=t),o}function wt(e,t,n){return 174===e.kind?Nt(e,t,n):At(e,t,n)}function Ot(e,t){var n=Ct(e,!0);return n?(t&&Rs(e,n),261===e.kind?n:Fs(n)):(n=e.dotDotDotToken?kv:Vh,t&&Ah&&(Pt(e)||Ls(e,n)),n)}function Pt(t){var n=e.getRootDeclaration(t);return Gp(146===n.kind?n.parent:n)}function Ft(t){var n=k(t);if(!n.type){if(4194304&t.flags)return n.type=ft(t);var r=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(r))return n.type=Vh;if(243===r.kind)return n.type=hp(r.expression);if(e.isInJavaScriptFile(r)&&e.isJSDocPropertyLikeTag(r)&&r.typeExpression)return n.type=Wa(r.typeExpression.type);if(!ut(t,0))return Wh;var i=void 0;i=194===r.kind||179===r.kind&&194===r.parent.kind?Dt(t):Ot(r,!0),dt()||(i=Ut(t)),n.type=i;}return n.type}function It(t){if(t){if(153===t.kind){var n=e.getEffectiveReturnTypeNode(t);return n&&Wa(n)}var r=e.getEffectiveSetAccessorTypeAnnotationNode(t);return r&&Wa(r)}}function Lt(e){var t=By(e);return t&&t.symbol}function Rt(e){return jr(Lr(e))}function Mt(t){var n=k(t);if(!n.type){var r=e.getDeclarationOfKind(t,153),i=e.getDeclarationOfKind(t,154);if(r&&e.isInJavaScriptFile(r)){var a=xt(r);if(a)return n.type=a}if(!ut(t,0))return Wh;var o=void 0,s=It(r);if(s)o=s;else{var c=It(i);c?o=c:r&&r.body?o=bd(r):(Ah&&(i?p(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Xe(t)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),p(r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Xe(t)))),o=Vh);}dt()||(o=Vh,Ah&&p(e.getDeclarationOfKind(t,153),e.Diagnostics._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,Xe(t))),n.type=o;}return n.type}function Bt(e){var t=an(dn(e));return 540672&t.flags?t:void 0}function Kt(t){var n=k(t);if(!n.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))n.type=Vh;else{var r=Pe(16,t);if(32&t.flags){var i=Bt(t);n.type=i?ma([r,i]):r;}else n.type=Nh&&16777216&t.flags?Ts(r,2048):r;}return n.type}function jt(e){var t=k(e);return t.type||(t.type=hn(e)),t.type}function Jt(e){var t=k(e);if(!t.type){var n=ie(e);t.type=107455&n.flags?qt(n):Wh;}return t.type}function zt(t){var n=k(t);if(!n.type)if(100===xh)p(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),n.type=Wh;else{if(!ut(t,0))return Wh;xh++;var r=ho(qt(n.target),n.mapper);xh--,dt()||(r=Ut(t)),n.type=r;}return n.type}function Ut(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(p(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xe(t)),Wh):(Ah&&p(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Xe(t)),Vh)}function qt(t){return 1&e.getCheckFlags(t)?zt(t):7&t.flags?Ft(t):9136&t.flags?Kt(t):8&t.flags?jt(t):98304&t.flags?Mt(t):2097152&t.flags?Jt(t):Wh}function Vt(e,t){return void 0!==e&&void 0!==t&&0!=(4&C(e))&&e.target===t}function $t(e){return 4&C(e)?e.target:e}function Wt(t,n){function r(t){if(7&C(t)){var i=$t(t);return i===n||e.forEach(on$$1(i),r)}if(131072&t.flags)return e.forEach(t.types,r)}return r(t)}function Gt(t,n){for(var r=0,i=n;r0)return!0;if(540672&e.flags){var t=lr(e);return t&&un(t)&&Zt(t)}return!1}function tn(t){return e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration)}function nn(t,n,r){var i=e.length(n),a=e.isInJavaScriptFile(r);return e.filter(xr(t,1),function(t){return(a||i>=Fr(t.typeParameters))&&i<=e.length(t.typeParameters)})}function rn(t,n,r){var i=nn(t,n,r),a=e.map(n,Wa);return e.sameMap(i,function(t){return e.some(t.typeParameters)?qr(t,a):t})}function an(t){if(!t.resolvedBaseConstructorType){var n=tn(t);if(!n)return t.resolvedBaseConstructorType=Gh;if(!ut(t,1))return Wh;var r=hp(n.expression);if(163840&r.flags&&tr(r),!dt())return p(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Xe(t.symbol)),t.resolvedBaseConstructorType=Wh;if(!(1&r.flags||r===Yh||en(r)))return p(n.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Qe(r)),t.resolvedBaseConstructorType=Wh;t.resolvedBaseConstructorType=r;}return t.resolvedBaseConstructorType}function on$$1(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[Hi(la(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&sn(t),64&t.symbol.flags&&ln(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function sn(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;var n=mr(an(t));if(163841&n.flags){var r,i=tn(t),a=xi(i),o=n&&n.symbol?xn(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&cn(o))r=ui(i,n.symbol,a);else if(1&n.flags)r=n;else{var s=rn(n,i.typeArguments,i);if(!s.length)return void p(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);r=Jr(s[0]);}var c=t.symbol.valueDeclaration;if(c&&e.isInJavaScriptFile(c)){var u=e.getJSDocAugmentsTag(t.symbol.valueDeclaration);u&&(r=Wa(u.typeExpression.type));}r!==Wh&&(un(r)?t===r||Wt(r,t)?p(c,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Qe(t,void 0,1)):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[r]:t.resolvedBaseTypes.push(r):p(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Qe(r)));}}function cn(e){var t=e.outerTypeParameters;if(t){var n=t.length-1,r=e.typeArguments;return t[n].symbol!==r[n].symbol}return!0}function un(t){return 16809985&t.flags&&!er(t)||131072&t.flags&&!e.forEach(t.types,function(e){return!un(e)})}function ln(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var n=0,r=t.symbol.declarations;n=_)&&o<=d){var p=d?Vr(l,Ir(a,l.typeParameters,_,r)):Ln(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p);}}return s}function Mn(e,t,n,r,i){for(var a=0,o=e;a0)return;for(a=1;a1){if(l=Ln(c),e.forEach(u,function(e){return e.thisParameter})){var _=la(e.map(u,function(e){return qt(e.thisParameter)||Vh}),!0);l.thisParameter=Es(c.thisParameter,_);}l.resolvedReturnType=void 0,l.unionSignatures=u;}(i||(i=[])).push(l);}}}return i||e.emptyArray}function jn(e,t){for(var n=[],r=!1,i=0,a=e;i0&&(l=e.map(l,function(e){var t=Ln(e);return t.resolvedReturnType=Vn(Jr(e),o,c),t})),a=e.concatenate(a,l);}i=e.concatenate(i,xr(u,0)),n=Un(n,Tr(u,0)),r=Un(r,Tr(u,1));}(c);Le(t,Sh,i,a,n,r);}function Wn(t){var n=t.symbol;if(t.target)Le(t,i=En(nr(t.target),t.mapper,!1),r=Xa(xr(t.target,0),t.mapper),a=Xa(xr(t.target,1),t.mapper),o=vo(Tr(t.target,0),t.mapper),u=vo(Tr(t.target,1),t.mapper));else if(2048&n.flags){var r=Br((i=n.members).get("__call"));Le(t,i,r,a=Br(i.get("__new")),o=ei(n,0),u=ei(n,1));}else{var i=Sh,a=e.emptyArray,o=void 0;if(n.exports&&(i=be(n)),32&n.flags){var s=dn(n);(a=Br(n.members.get("__constructor"))).length||(a=Rn(s));var c=an(s);704512&c.flags?Nn(i=e.createSymbolTable(Ie(i)),ar(c)):c===Vh&&(o=Zr(Vh,!1));}var u=384&n.flags?Yv:void 0;Le(t,i,e.emptyArray,a,o,u),8208&n.flags&&(t.callSignatures=Br(n));}}function Gn(t){function n(n,o){var _=eo([a],[n]),d=t.mapper?oo(t.mapper,_):_,p=ho(s,d);if(32&n.flags){var m=e.escapeLeadingUnderscores(n.value),g=vr(c,m),y=f(4|(l||!!(g&&16777216&g.flags)?16777216:0),m);y.checkFlags=u||g&&Ad(g)?8:0,y.type=p,o&&(y.syntheticOrigin=o,y.declarations=o.declarations),i.set(m,y);}else 2&n.flags&&(r=Zr(p,u));}var r,i=e.createSymbolTable();Le(t,Sh,e.emptyArray,e.emptyArray,void 0,void 0);var a=Hn(t),o=Xn(t),s=Yn(t),c=mr(Qn(t)),u=!!t.declaration.readonlyToken,l=!!t.declaration.questionToken;if(170===t.declaration.typeParameter.constraint.kind){for(var _=0,d=ar(c);_=2):16777216&t.flags?cv:t}function gr(t,n){for(var r,i=t.types,a=65536&t.flags,o=a?24:0,s=a?0:16777216,c=4,u=0,l=0,_=i;l<_.length;l++)if((b=mr(_[l]))!==Wh){var d=(v=vr(b,n))?e.getDeclarationModifierFlagsFromSymbol(v):0;!v||d&o?a&&(u|=16):(s&=v.flags,r?e.contains(r,v)||r.push(v):r=[v],u|=(Ad(v)?8:0)|(24&d?0:64)|(16&d?128:0)|(8&d?256:0)|(32&d?512:0),Yl(v)||(c=2));}if(r){if(1===r.length&&!(16&u))return r[0];for(var p=[],m=[],g=void 0,y=0,h=r;y=0),i>=r.minArgumentCount}var a=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!a&&(!t.type&&!t.dotDotDotToken&&e.indexOf(t.parent.parameters,t)>=a.arguments.length)}function Pr(e){var t=e.parameterName;return 71===t.kind?{kind:1,parameterName:t?t.escapedText:void 0,parameterIndex:t?kp(e.parent.parameters,t):void 0,type:Wa(e.type)}:{kind:0,type:Wa(e.type)}}function Fr(e){var t=0;if(e)for(var n=0;n=r)&&o<=a){t||(t=[]);for(c=o;cc.arguments.length&&!d.type||Ar(d)||l||(a=r.length);}if(!(153!==t.kind&&154!==t.kind||e.hasDynamicName(t)||s&&o)){var m=153===t.kind?154:153,g=e.getDeclarationOfKind(t.symbol,m);g&&(o=Lt(g));}var y=152===t.kind?dn(Te(t.parent.symbol)):void 0,h=y?y.localTypeParameters:Er(t),v=Rr(t,u,y),b=t.type&&158===t.type.kind?Pr(t.type):void 0,x=e.hasRestParameter(t);if(!x&&e.isInJavaScriptFile(t)&&Mr(t)){x=!0;var S=f(3,"args");S.type=kv,S.isRestParameter=!0,r.push(S);}n.resolvedSignature=In(t,h,o,r,v,b,a,x,i);}return n.resolvedSignature}function Rr(t,n,r){if(n)return Wa(t.parameters[0].type);if(r)return r;var i=e.getEffectiveReturnTypeNode(t);return i?Wa(i):153!==t.kind||e.hasDynamicName(t)?e.nodeIsMissing(t.body)?Vh:void 0:It(e.getDeclarationOfKind(t.symbol,154))}function Mr(t){function n(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.escapedText&&e.isPartOfExpression(t);case 149:case 151:case 153:case 154:return 144===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,n)}}var r=T(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=n(t.body)),r.containsArgumentsReference}function Br(t){if(!t)return e.emptyArray;for(var n=[],r=0;r0&&i.body){var a=t.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)break}n.push(Lr(i));}}return n}function Kr(e){var t=le(e,e);if(t){var n=pe(t);if(n)return qt(n)}return Vh}function jr(e){if(e.thisParameter)return qt(e.thisParameter)}function Jr(t){if(!t.resolvedReturnType){if(!ut(t,3))return Wh;var n=void 0;if(n=t.target?ho(Jr(t.target),t.mapper):t.unionSignatures?la(e.map(t.unionSignatures,Jr),!0):bd(t.declaration),!dt()&&(n=Vh,Ah)){var r=t.declaration,i=e.getNameOfDeclaration(r);i?p(i,e.Diagnostics._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,e.declarationNameToString(i)):p(r,e.Diagnostics.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);}t.resolvedReturnType=n;}return t.resolvedReturnType}function zr(e){return!e.resolvedReturnType&<(e,3)>=0}function Ur(t){if(t.hasRestParameter){var n=qt(e.lastOrUndefined(t.parameters));if(4&C(n)&&n.target===gv)return n.typeArguments[0]}return Vh}function qr(t,n){n=Ir(n,t.typeParameters,Fr(t.typeParameters));var r=t.instantiations||(t.instantiations=e.createMap()),i=ii(n),a=r.get(i);return a||r.set(i,a=Vr(t,n)),a}function Vr(e,t){return lo(e,eo(e.typeParameters,t),!0)}function $r(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=Wr(e)):e}function Wr(e){return lo(e,to(e.typeParameters),!0)}function Gr(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=Hr(e)):e}function Hr(t){return qr(t,e.map(t.typeParameters,function(e){return e.target&&!cr(e.target)?e.target:e}))}function Xr(t){if(!t.isolatedSignatureType){var n=152===t.declaration.kind||156===t.declaration.kind,r=Pe(16);r.members=Sh,r.properties=e.emptyArray,r.callSignatures=n?e.emptyArray:[t],r.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=r;}return t.isolatedSignatureType}function Yr(e){return e.members.get("__index")}function Qr(e,t){var n=1===t?133:136,r=Yr(e);if(r)for(var i=0,a=r.declarations;i1&&(t+=":"+a),r+=a;}return t}function ai(e,t){for(var n=0,r=0,i=e;ra.length)?(p(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Qe(i,void 0,1),s,a.length),Wh):oi(i,e.concatenate(i.outerTypeParameters,Ir(r,a,s,t)))}return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Qe(i)),Wh):i}function li(e,t){var n=xn(e),r=k(e),i=r.typeParameters,a=ii(t),o=r.instantiations.get(a);return o||r.instantiations.set(a,o=ho(n,eo(i,Ir(t,i,Fr(i))))),o}function _i(t,n,r){var i=xn(n),a=k(n).typeParameters;if(a){var o=e.length(t.typeArguments),s=Fr(a);return oa.length?(p(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Xe(n),s,a.length),Wh):li(n,r)}return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Xe(n)),Wh):i}function di(t,n){return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Xe(n)),Wh):xn(n)}function pi(t){switch(t.kind){case 159:return t.typeName;case 201:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function fi(e,t){return e?ue(e,t)||Uh:Uh}function mi(e,t){var n=xi(e);if(t===Uh)return Wh;var r=gi(e,t,n);if(r)return r;if(107455&t.flags&&yi(e)){var i=qt(t);if(i.symbol&&!td(i)){var a=gi(e,i.symbol,n);if(a)return a}return fi(pi(e),793064),i}return di(e,t)}function gi(t,n,r){return 96&n.flags?ui(t,n,r):524288&n.flags?_i(t,n,r):16&n.flags&&yi(t)&&(n.members||e.getJSDocClassTag(n.valueDeclaration))?ed(n):void 0}function yi(e){return 1048576&e.flags&&159===e.kind}function hi(t){if(e.isIdentifier(t.typeName)){if("Object"===t.typeName.escapedText){if(t.typeArguments&&2===t.typeArguments.length){var n=Wa(t.typeArguments[0]),r=Zr(Wa(t.typeArguments[1]),!1);if(n===Qh||n===Zh)return Re(void 0,Sh,e.emptyArray,e.emptyArray,n===Qh&&r,n===Zh&&r)}return Vh}switch(t.typeName.escapedText){case"String":return Qh;case"Number":return Zh;case"Boolean":return nv;case"Void":return iv;case"Undefined":return Gh;case"Null":return Xh;case"Function":case"function":return mv;case"Array":case"array":return t.typeArguments&&t.typeArguments.length?void 0:kv;case"Promise":case"promise":return t.typeArguments&&t.typeArguments.length?void 0:hd(Vh)}}}function vi(e){var t=Wa(e.type);return Nh?la([t,Xh]):t}function bi(e){var t=T(e);if(!t.resolvedType){var n=void 0,r=void 0,i=793064;yi(e)&&(r=hi(e),i|=107455),r||(r=mi(e,n=fi(pi(e),i))),t.resolvedSymbol=n,t.resolvedType=r;}return t.resolvedType}function xi(t){return e.map(t.typeArguments,Wa)}function Si(e){var t=T(e);return t.resolvedType||(t.resolvedType=Fs(hp(e.exprName))),t.resolvedType}function ki(t,n){function r(e){for(var t=0,n=e.declarations;t>1),o=e[a].id;if(o===i)return a;o>i?r=a-1:n=a+1;}return~n}function na(e,t){return ta(e,t)>=0}function ra(e,t){var n=t.flags;if(65536&n)ia(e,t.types);else if(1&n)e.containsAny=!0;else if(!Nh&&6144&n)2048&n&&(e.containsUndefined=!0),4096&n&&(e.containsNull=!0),2097152&n||(e.containsNonWideningType=!0);else if(!(8192&n)){2&n&&(e.containsString=!0),4&n&&(e.containsNumber=!0),96&n&&(e.containsStringOrNumberLiteral=!0);var r=e.length,i=r&&t.id>e[r-1].id?~r:ta(e,t);i<0&&(32768&n&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&aa(e,t)||e.splice(~i,0,t));}}function ia(e,t){for(var n=0,r=t;n0;)oa(t[--n],t)&&e.orderedRemoveItemAt(t,n);}function ua(t){for(var n=t.length;n>0;){var r=t[--n];(32&r.flags&&t.containsString||64&r.flags&&t.containsNumber||96&r.flags&&1048576&r.flags&&na(t,r.regularType))&&e.orderedRemoveItemAt(t,n);}}function la(e,t,n,r){if(0===e.length)return av;if(1===e.length)return e[0];var i=[];return ia(i,e),i.containsAny?Vh:(t?ca(i):i.containsStringOrNumberLiteral&&ua(i),0===i.length?i.containsNull?i.containsNonWideningType?Xh:Yh:i.containsUndefined?i.containsNonWideningType?Gh:Hh:av:_a(i,n,r))}function _a(e,t,n){if(0===e.length)return av;if(1===e.length)return e[0];var r=ii(e),i=Bh.get(r);return i||(i=we(65536|ai(e,6144)),Bh.set(r,i),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=n),i}function da(t){var n=T(t);return n.resolvedType||(n.resolvedType=la(e.map(t.types,Wa),!1,Ia(t),La(t))),n.resolvedType}function pa(t,n){131072&n.flags?fa(t,n.types):1&n.flags?t.containsAny=!0:8192&n.flags?t.containsNever=!0:16&C(n)&&Jo(n)?t.containsEmptyObject=!0:!Nh&&6144&n.flags||e.contains(t,n)||(32768&n.flags&&(t.containsObjectType=!0),65536&n.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),32768&n.flags&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&aa(t,n)||t.push(n));}function fa(e,t){for(var n=0,r=t;n=n?cv:r}}function ro(e){return!!e.signature}function io(e){return e&&ro(e)?Bs(e.signature,2|e.flags,e.compareTypes,e.inferences):e}function ao(e){return e}function oo(e,t){return function(n){return ho(e(n),t)}}function so(e,t,n){return function(r){return r===e?t:n(r)}}function co(e){var t=we(16384);return t.symbol=e.symbol,t.target=e,t}function uo(t,n){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:ho(t.type,n)}:{kind:0,type:ho(t.type,n)}}function lo(t,n,r){var i,a;if(t.typeParameters&&!r){i=e.map(t.typeParameters,co),n=oo(eo(t.typeParameters,i),n);for(var o=0,s=i;on.parameters.length)return 0;t.typeParameters&&t.typeParameters!==n.typeParameters&&(t=T_(t,n=Gr(n),void 0,s));var c=-1,u=jr(t);if(u&&u!==iv){var l=jr(n);if(l){if(!(x=s(u,l,!1)||s(l,u,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;c&=x;}}for(var _=Bo(t),d=Bo(n),p=Ko(t,_,n,d),f=t.parameters,m=n.parameters,g=0;g0||xr(t,0).length>0||xr(t,1).length>0)&&E(n)&&!N(t,n)){if(i){var o=xr(t,0),p=xr(t,1);o.length>0&&_(Jr(o[0]),n,!1)||p.length>0&&_(Jr(p[0]),n,!1)?s(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Qe(t),Qe(n)):s(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Qe(t),Qe(n));}return 0}var m=0,y=B,x=$;return $=!1,65536&t.flags?m=r===Kb?v(t,n,i&&!(8190&t.flags)):b(t,n,i&&!(8190&t.flags)):(65536&n.flags?m=g(t,n,i&&!(8190&t.flags)&&!(8190&n.flags)):131072&n.flags?($=!0,m=h(t,n,i)):131072&t.flags&&(m=v(t,n,!1)),!m&&(1032192&t.flags||1032192&n.flags)&&(m=S(t,n,i))&&(B=y)),$=x,!m&&i&&(32768&t.flags&&8190&n.flags?u(t,n):t.symbol&&32768&t.flags&&fv===t&&s(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),c(a,t,n)),m}function d(e,t){var n;return 32768&e.flags&&32768&t.flags?S(e,t,!1):(65536&e.flags&&65536&t.flags||131072&e.flags&&131072&t.flags)&&(n=m(e,t))&&(n&=m(t,e))?n:0}function f(t,n,a){if(Kd(n,32768)&&!(512&C(n))){var o=!!(33554432&t.flags);if((r===Bb||r===Kb)&&(Kc(fv,n)||!o&&Jo(n)))return!1;for(var c=0,u=nr(t);c0&&e.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(131072&t.flags)&&e.every(t.types,E)}function N(e,t){for(var n=!!(33554432&e.flags),r=0,i=ar(e);rt.id){var r=e;e=t,t=r;}if(Wo(e)&&Wo(t)){var i=[];return Go(e,i)+","+Go(t,i)}return e.id+","+t.id}function Xo(t,n){if(!(6&e.getCheckFlags(t)))return n(t);for(var r=0,i=t.containingType.types;r=5&&32768&e.flags){var r=e.symbol;if(r)for(var i=0,a=0;a=5)return!0}}return!1}function rs(e,t){return 0!==is(e,t,Co)}function is(t,n,r){if(t===n)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(i){if(km(t)!==km(n))return 0}else if((16777216&t.flags)!=(16777216&n.flags))return 0;return Ad(t)!==Ad(n)?0:r(qt(t),qt(n))}function as(e,t,n){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var r=e.hasRestParameter?1:0,i=t.hasRestParameter?1:0;return!!(n&&e.minArgumentCount<=t.minArgumentCount&&(r>i||r===i&&e.parameters.length>=t.parameters.length))}function os$$1(t,n,r,i,a,o){if(t===n)return-1;if(!as(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;t=$r(t),n=$r(n);var s=-1;if(!i){var c=jr(t);if(c){var u=jr(n);if(u){if(!(d=o(c,u)))return 0;s&=d;}}}for(var l=n.parameters.length,_=0;_=e.parameters.length-1}function cs(e){for(var t,n=0,r=e;n=2||0==(34&n.flags)||260===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),i=vu(t.parent,r),a=r,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent;}o&&(i&&(T(a).flags|=65536),214===r.kind&&e.getAncestor(n.valueDeclaration,227).parent===r&&xu(t,r)&&(T(n.valueDeclaration).flags|=2097152),T(n.valueDeclaration).flags|=262144),i&&(T(n.valueDeclaration).flags|=131072);}}function xu(t,n){for(var r=t;185===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(192===r.parent.kind||193===r.parent.kind){var a=r.parent;i=43===a.operator||44===a.operator;}return!!i&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}function Su(e,t){T(e).flags|=2,149===t.kind||152===t.kind?T(t.parent).flags|=4:T(t).flags|=4;}function ku(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,ku)}function Tu(e){var t=T(e);return void 0===t.hasSuperCall&&(t.superCall=ku(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function Cu(e){return an(xn(Ce(e)))===Yh}function Du(t,n,r){var i=n.parent;if(e.getClassExtendsHeritageClauseElement(i)&&!Cu(i)){var a=Tu(n);(!a||a.end>t.pos)&&p(t,r);}}function Eu(t){var n=e.getThisContainer(t,!0),r=!1;switch(152===n.kind&&Du(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),187===n.kind&&(n=e.getThisContainer(n,!1),r=Th<2),n.kind){case 233:p(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 232:p(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 152:Au(t,n)&&p(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 149:case 148:e.hasModifier(n,32)&&p(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 144:p(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);}if(r&&Su(t,n),e.isFunctionLike(n)&&(!Ku(t)||e.getThisParameter(n))){if(186===n.kind&&194===n.parent.kind&&3===e.getSpecialPropertyAssignmentKind(n.parent)){var i=hp(n.parent.left.expression.expression).symbol;if(i&&i.members&&16&i.flags)return ed(i)}var a=Rt(n)||Iu(n);if(a)return a}if(e.isClassLike(n.parent)){var o=Ce(n.parent);return su(t,s=e.hasModifier(n,32)?qt(o):xn(o).thisType)}if(e.isInJavaScriptFile(t)){var s=Nu(n);if(s&&s!==Wh)return s}return wh&&p(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),Vh}function Nu(t){var n=e.getJSDocType(t);if(n&&273===n.kind){var r=n;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Wa(r.parameters[0].type)}}function Au(t,n){return!!e.findAncestor(t,function(e){return e===n?"quit":146===e.kind})}function wu(t){var n=181===t.parent.kind&&t.parent.expression===t,r=e.getSuperContainer(t,!0),i=!1;if(!n)for(;r&&187===r.kind;)r=e.getSuperContainer(r,!0),i=Th<2;var a=0;if(!function(t){return!!t&&(n?152===t.kind:!(!e.isClassLike(t.parent)&&178!==t.parent.kind)&&(e.hasModifier(t,32)?151===t.kind||150===t.kind||153===t.kind||154===t.kind:151===t.kind||150===t.kind||153===t.kind||154===t.kind||149===t.kind||148===t.kind||152===t.kind))}(r)){var o=e.findAncestor(t,function(e){return e===r?"quit":144===e.kind});return o&&144===o.kind?p(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?p(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(e.isClassLike(r.parent)||178===r.parent.kind)?p(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):p(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Wh}if(n||152!==r.kind||Du(t,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=e.hasModifier(r,32)||n?512:256,T(t).flags|=a,151===r.kind&&e.hasModifier(r,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?T(r).flags|=4096:T(r).flags|=2048),i&&Su(t.parent,r),178===r.parent.kind)return Th<2?(p(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Wh):Vh;var s=r.parent,c=xn(Ce(s)),u=c&&on$$1(c)[0];return u?152===r.kind&&Au(t,r)?(p(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Wh):512===a?an(c):wn(u,c.thisType):(e.getClassExtendsHeritageClauseElement(s)||p(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Wh)}function Ou(e){return 151!==e.kind&&153!==e.kind&&154!==e.kind||178!==e.parent.kind?186===e.kind&&261===e.parent.kind?e.parent.parent:void 0:e.parent}function Pu(e){return 4&C(e)&&e.target===Sv?e.typeArguments[0]:void 0}function Fu(t){return Uc(t,function(t){return 131072&t.flags?e.forEach(t.types,Pu):Pu(t)})}function Iu(t){if(187!==t.kind){if(So(t)){var n=sl(t);if(n){var r=n.thisParameter;if(r)return qt(r)}}if(wh||e.isInJavaScriptFile(t)){var i=Ou(t);if(i){for(var a=Zu(i),o=i,s=a;s;){var c=Fu(s);if(c)return ho(c,tl(i));if(261!==o.parent.kind)break;s=Zu(o=o.parent.parent);}return a?Cs(a):cp(i)}if(194===t.parent.kind&&58===t.parent.operatorToken.kind){var u=t.parent.left;if(179===u.kind||180===u.kind)return cp(u.expression)}}}}function Lu(t){var n=t.parent;if(So(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var i=e.indexOf(n.parameters,t);if(t.dotDotDotToken){for(var a=[],o=i;o=0)return dd(T(t).resolvedSignature===Hv?Hv:Y_(t),i)}function zu(e,t){if(183===e.parent.kind)return Ju(e.parent,t)}function Uu(t){var n=t.parent,r=n.operatorToken.kind;if(e.isAssignmentOperator(r)){if(0!==e.getSpecialPropertyAssignmentKind(n))return;if(t===n.right)return gp(n.left)}else{if(54===r){var i=el(n);return i||t!==n.right||(i=gp(n.left)),i}if((53===r||26===r)&&t===n.right)return el(n)}}function qu(e,t){return Uc(e,function(e){var n=229376&e.flags?vr(e,t):void 0;return n?qt(n):void 0})}function Vu(e,t){return Uc(e,function(e){return kr(e,t)})}function $u(t){return!!(65536&t.flags?e.forEach(t.types,ps):ps(t))}function Wu(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!og(t))return Gu(t)}function Gu(t){var n=Zu(t.parent);if(n){if(!e.hasDynamicName(t)){var r=qu(n,Ce(t).escapedName);if(r)return r}return _l(t.name)&&Vu(n,1)||Vu(n,0)}}function Hu(t){var n=t.parent,r=Zu(n);if(r)return qu(r,""+e.indexOf(n.elements,t))||Vu(r,1)||em(r,void 0,!1,!1,!1)}function Xu(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?el(t):void 0}function Yu(t){var n=el(e.isJsxAttributeLike(t.parent)?t.parent.parent:t.parent.openingElement.attributes);if(n&&!gt(n)){if(e.isJsxAttribute(t.parent))return mt(n,t.parent.name.escapedText);if(249===t.parent.kind){var r=wl();return r&&""!==r?mt(n,r):Vh}return n}}function Qu(t){var n=el(t.parent);if(e.isJsxAttribute(t)){if(!n||gt(n))return;return mt(n,t.name.escapedText)}return n}function Zu(e){var t=el(e);return t&&mr(t)}function el(t){if(!og(t)){if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 226:case 146:case 149:case 148:case 176:return Ru(t);case 187:case 219:return Mu(t);case 197:return Bu(n);case 181:case 182:return Ju(n,t);case 184:case 202:return Wa(n.type);case 194:return Uu(t);case 261:case 262:return Gu(n);case 263:return Zu(n.parent);case 177:return Hu(t);case 195:return Xu(t);case 205:return e.Debug.assert(196===n.parent.kind),zu(n.parent,t);case 185:return el(n);case 256:return Yu(n);case 253:case 255:return Qu(n);case 251:case 250:return Bl(n)}}}function tl(t){return t=e.findAncestor(t,function(e){return!!e.contextualMapper}),t?t.contextualMapper:ao}function nl(e,t){var n=br(e,0);if(1===n.length){var r=n[0];if(!rl(r,t))return r}}function rl(t,n){for(var r=0;r0&&(s=Ra(s,r()),o=[],a=e.createSymbolTable(),g=!1,y=!1,d=0),!hl(T=hp(x.expression)))return p(x,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Wh;s=Ra(s,T),v=b+1;continue}e.Debug.assert(153===x.kind||154===x.kind),Qm(x);}e.hasDynamicName(x)?_l(x.name)?y=!0:g=!0:a.set(S.escapedName,S),o.push(S);}if(l)for(var E=0,N=ar(u);E0&&(s=Ra(s,r())),32768&s.flags&&(s.flags|=c,s.flags|=1048576,s.objectFlags|=128,s.symbol=t.symbol),s):r()}function hl(t){return!!(16783361&t.flags||32768&t.flags&&!er(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!hl(e)}))}function vl(e){return Vl(e),Jl()||Vh}function bl(e){return Vl(e.openingElement),Sl(e.closingElement.tagName)?Dl(e.closingElement):hp(e.closingElement.tagName),Jl()||Vh}function xl(e){return e.indexOf("-")<0}function Sl(t){switch(t.kind){case 179:case 99:return!1;case 71:return e.isIntrinsicJsxName(t.escapedText);default:e.Debug.fail();}}function kl(t,n,r){function i(t,n){var r=Re(t,n,e.emptyArray,e.emptyArray,void 0,void 0);return r.flags|=37748736,r.objectFlags|=128,r}for(var a,o=t.attributes,s=e.createSymbolTable(),c=cv,u=[],l=!1,_=!1,d=wl(),m=0,g=o.properties;m0&&(c=Ra(c,i(o.symbol,s)),u=[],s=e.createSymbolTable()),gt(v=hp(y.expression))&&(l=!0),hl(v)?c=Ra(c,v):a=a?ma([a,v]):v;}if(!l){c!==cv&&(u.length>0&&(c=Ra(c,i(o.symbol,s))),u=ar(c)),s=e.createSymbolTable();for(var x=0,S=u;x0){for(var C=[],D=0,E=T.children;D1&&p(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t));}}function Al(){return Fb||(Fb=!0,Cb=Nl(Rb.ElementAttributesPropertyNameContainer)),Cb}function wl(){return Ib||(Ib=!0,Db=Nl(Rb.ElementChildrenAttributeNameContainer)),Db}function Ol(e){if(e){if(131072&e.flags){for(var t=[],n=0,r=e.types;n0))p(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(Al()));else if(Po(r,n,t.attributes.properties.length>0?t.attributes:t)&&!gt(r)&&!gt(n))for(var i=0,a=t.attributes.properties;i30)){t=t.toLowerCase();for(var u=0,l=n;ui)continue;p<3?(c=!0,s=_):p=m&&o.length<=f))return!1;if(c>=0)return ss(r,c)||c>=r.minArgumentCount;if(!r.hasRestParameter&&a>r.parameters.length)return!1;var g=a>=r.minArgumentCount;return s||g}function k_(e){if(32768&e.flags){var t=tr(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function T_(e,t,n,r){var i=Bs(e,1,r);return Ms(t,e,function(e,t){$s(i.inferences,ho(e,n||ao),t);}),n||$s(i.inferences,Jr(t),Jr(e),4),qr(e,Qs(i))}function C_(t,n,r,i,a){for(var o=0,s=a.inferences;o0?[t.attributes]:e.emptyArray:t.arguments||e.emptyArray}function O_(e,t,n){if(147!==e.kind)return t.length;switch(e.parent.kind){case 229:case 199:return 1;case 149:return 2;case 151:case 153:case 154:return 0===Th?2:n.parameters.length>=3?3:2;case 146:return 3}}function P_(t){if(229===t.kind)return qt(n=Ce(t));if(146===t.kind&&152===(t=t.parent).kind){var n=Ce(t);return qt(n)}return 149===t.kind||151===t.kind||153===t.kind||154===t.kind?Cg(t):(e.Debug.fail("Unsupported decorator target."),Wh)}function F_(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),Wh;if(146===t.kind&&152===(t=t.parent).kind)return Vh;if(149===t.kind||151===t.kind||153===t.kind||154===t.kind){var n=t;switch(n.name.kind){case 71:return za(e.unescapeLeadingUnderscores(n.name.escapedText));case 8:case 9:return za(n.name.text);case 144:var r=ml(n.name);return jd(r,512)?r:Qh;default:return e.Debug.fail("Unsupported property name."),Wh}}return e.Debug.fail("Unsupported decorator target."),Wh}function I_(t){return 229===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),Wh):146===t.kind?Zh:149===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),Wh):151===t.kind||153===t.kind||154===t.kind?qi(xg(t)):(e.Debug.fail("Unsupported decorator target."),Wh)}function L_(t,n){return 0===n?P_(t.parent):1===n?F_(t.parent):2===n?I_(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),Wh)}function R_(e,t){return 147===e.kind?L_(e,t):0===t&&183===e.kind?Ai():void 0}function M_(e,t,n){if(147!==e.kind&&(0!==n||183!==e.kind))return t[n]}function B_(e,t,n){return 147===e.kind?e.expression:0===t&&183===e.kind?e.template:n}function K_(t,n,r,i){function a(n,r,i){if(void 0===i&&(i=!1),y=void 0,h=void 0,f){c=n[0];if(!S_(t,p,c,i))return;return N_(t,p,c,r,d,!1)?c:void(y=c)}for(var a=0;a0?d[e.indexOf(d,!0)]=!1:d=void 0;}}}var o,s=183===t.kind,u=147===t.kind,l=e.isJsxOpeningLikeElement(t);s||u||l||(o=t.typeArguments,97!==t.expression.kind&&e.forEach(o,Ym));var _=r||[];if(b_(n,_),!_.length)return Sb.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),v_(t);var d,p=w_(t),f=1===_.length&&!_[0].typeParameters,m=0;if(!u&&!f)for(var g=s?1:0;g1&&(v=a(_,Mb,b)),v||(v=a(_,Bb,b)),v)return v;if(y){if(l)return y;N_(t,p,y,Bb,void 0,!0);}else if(h){var x=t.typeArguments;D_(h,x,e.map(x,Wa),!0,i);}else if(o&&e.every(n,function(t){return e.length(t.typeParameters)!==o.length})){for(var S=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,T=0,C=n;T-1,O=A?S:S0);var I=j_(_,void 0===Ih?p.length:Ih),L=_[I],R=L.typeParameters;if(R&&y_(t)&&t.typeArguments){for(var M=t.typeArguments.map(xg);M.length>R.length;)M.pop();for(;M.length=t)return i;a.parameters.length>r&&(r=a.parameters.length,n=i);}return n}function J_(t,n){if(97===t.expression.kind){var r=wu(t.expression);if(r!==Wh){var i=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(i)return K_(t,rn(r,i.typeArguments,i),n)}return h_(t)}var a=Zl(t.expression);if(a===ov)return Xv;var o=mr(a);if(o===Wh)return v_(t);var s=xr(o,0),c=xr(o,1);return z_(a,o,s.length,c.length)?(a!==Wh&&t.typeArguments&&p(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),h_(t)):s.length?K_(t,s,n):(c.length?p(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Qe(a)):p(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(o)),v_(t))}function z_(e,t,n,r){return!!gt(e)||(!!(gt(t)&&16384&e.flags)||!n&&!r&&(!(65536&e.flags)&&No(e,mv)))}function U_(t,n){if(t.arguments&&Th<1){var r=x_(t.arguments);r>=0&&p(t.arguments[r],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher);}var i=Zl(t.expression);if(i===ov)return Xv;if((i=mr(i))===Wh)return v_(t);var a=i.symbol&&Tm(i.symbol);if(a&&e.hasModifier(a,128))return p(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(e.getNameOfDeclaration(a))),v_(t);if(gt(i))return t.typeArguments&&p(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),h_(t);var o=xr(i,1);if(o.length)return q_(t,o[0])?K_(t,o,n):v_(t);var s=xr(i,0);if(s.length){var c=K_(t,s,n);return Q_(c.declaration)||Jr(c)===iv||p(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),jr(c)===iv&&p(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return p(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),v_(t)}function q_(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,i=e.getSelectedModifierFlags(r,24);if(!i)return!0;var a=Tm(r.parent.symbol),o=xn(r.parent.symbol);if(!pg(t,a)){var s=e.getContainingClass(t);if(s)for(var c=on$$1(xg(s));c.length;){var u=c[0];if(16&i&&u.symbol===r.parent.symbol)return!0;c=on$$1(u);}return 8&i&&p(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Qe(o)),16&i&&p(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Qe(o)),!1}return!0}function V_(t,n){var r=hp(t.tag),i=mr(r);if(i===Wh)return v_(t);var a=xr(i,0),o=xr(i,1);return z_(r,i,a.length,o.length)?h_(t):a.length?K_(t,a,n):(p(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(i)),v_(t))}function $_(t){switch(t.parent.kind){case 229:case 199:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 146:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 149:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 151:case 153:case 154:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function W_(t,n){var r=hp(t.expression),i=mr(r);if(i===Wh)return v_(t);var a=xr(i,0),o=xr(i,1);if(z_(r,i,a.length,o.length))return h_(t);var s=$_(t);if(!a.length){var c=void 0;return c=e.chainDiagnosticMessages(c,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(i)),c=e.chainDiagnosticMessages(c,s),Sb.add(e.createDiagnosticForNodeFromMessageChain(t,c)),v_(t)}return K_(t,a,n,s)}function G_(t,n,r){return e.Debug.assert(!(65536&n.flags)),H_(t,n,r)}function H_(e,t,n){if(65536&t.flags){for(var r=void 0,i=0,a=t.types;i0)return K_(e,s,n)}function X_(t,n){switch(t.kind){case 181:return J_(t,n);case 182:return U_(t,n);case 183:return V_(t,n);case 147:return W_(t,n);case 251:case 250:return H_(t,hp(t.tagName),n)}e.Debug.fail("Branch in 'resolveSignature' should be unreachable.");}function Y_(e,t){var n=T(e),r=n.resolvedSignature;if(r&&r!==Hv&&!t)return r;n.resolvedSignature=Hv;var i=X_(e,t);return n.resolvedSignature=eb===tb?i:r,i}function Q_(t){if(t&&e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?Ce(t):e.isVariableDeclaration(t)&&e.isFunctionExpression(t.initializer)?Ce(t.initializer):void 0;return n&&void 0!==n.members}return!1}function Z_(t){if(e.isDeclarationOfFunctionOrClassExpression(t)&&(t=Ce(t.valueDeclaration.initializer)),Q_(t.valueDeclaration))return ed(t);if(3&t.flags){var n=qt(t);if(n.symbol&&!td(n)&&Q_(n.symbol.valueDeclaration))return ed(n.symbol)}}function ed(t){var n=k(t);return n.inferredClassType||(n.inferredClassType=Re(t,t.members||Sh,e.emptyArray,e.emptyArray,void 0,void 0)),n.inferredClassType}function td(e){return e.symbol&&16&C(e)&&k(e.symbol).inferredClassType===e}function nd(t){ky(t,t.typeArguments)||Cy(t,t.arguments);var n=Y_(t);if(97===t.expression.kind)return iv;if(182===t.kind){var r=n.declaration;if(r&&152!==r.kind&&156!==r.kind&&161!==r.kind&&!e.isJSDocConstructSignature(r)){var i=71===t.expression.kind?Zs(t.expression):hp(t.expression).symbol,a=i&&Z_(i);return a||(Ah&&p(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Vh)}}return e.isInJavaScriptFile(t)&&ad(t)?Kr(t.arguments[0]):Jr(n)}function rd(t){if(Cy(t,t.arguments)||_h(t),0===t.arguments.length)return vd(t,Vh);for(var n=t.arguments[0],r=cp(n),i=1;i0?dd(e,0):av}function fd(t,n,r){for(var i=t.parameters.length-(t.hasRestParameter?1:0),a=0;a=0)if(n.parameters[r.parameterIndex].dotDotDotToken)p(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else{var a=e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Po(r.type,xg(n.parameters[r.parameterIndex]),t.type,void 0,a);}else if(i){for(var o=!1,s=0,c=n.parameters;s0&&n.declarations[0]!==t)return}var r=Yr(Ce(t));if(r)for(var i=!1,a=!1,o=0,s=r.declarations;o=0)return void(n&&p(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));xb.push(t.id);var l=tf(u,n,r);if(xb.pop(),!l)return;return i.awaitedTypeOfType=l}var _=mt(t,"then");if(!(_&&xr(_,0).length>0))return i.awaitedTypeOfType=t;n&&(e.Debug.assert(!!r),p(n,r));}function nf(t){var n=e.getEffectiveReturnTypeNode(t),r=Wa(n);if(Th>=2){if(r===Wh)return Wh;var i=Pi(!0);if(i!==_v&&!Vt(r,i))return p(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Wh}else{if(af(n),r===Wh)return Wh;var a=e.getEntityNameFromTypeNode(n);if(void 0===a)return p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Qe(r)),Wh;var o=ue(a,107455,!0),s=o?qt(o):Wh;if(s===Wh)return 71===a.kind&&"Promise"===a.escapedText&&$t(r)===Pi(!1)?p(n,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),Wh;var c=Ii(!0);if(c===cv)return p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),Wh;if(!Po(s,c,n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return Wh;var u=a&&Km(a),l=E(t.locals,u.escapedText,107455);if(l)return p(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.unescapeLeadingUnderscores(u.escapedText),e.entityNameToString(a)),Wh}return ef(r,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function rf(t){var n=Jr(Y_(t));if(!(1&n.flags)){var r,i,a=$_(t);switch(t.parent.kind){case 229:r=la([qt(Ce(t.parent)),iv]);break;case 146:r=iv,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 149:r=iv,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 151:case 153:case 154:r=la([qi(xg(t.parent)),iv]);}Po(n,r,t,a,i);}}function af(t){of(t&&e.getEntityNameFromTypeNode(t));}function of(e){var t=e&&Km(e),n=t&&w(t,t.escapedText,2097152|(71===e.kind?793064:1920),void 0,void 0);n&&2097152&n.flags&&Ne(n)&&!Kg(ie(n))&&oe(n);}function sf(t){var n=cf(t);n&&e.isEntityName(n)&&of(n);}function cf(t){if(t)switch(t.kind){case 167:case 166:for(var n=void 0,r=0,i=t.types;r=e.ModuleKind.ES2015)&&(Ef(t,n,"require")||Ef(t,n,"exports"))&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=pt(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&p(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n));}}function If(t,n){if(!(Th>=4)&&Ef(t,n,"Promise")&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=pt(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&&p(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(n),e.declarationNameToString(n));}}function Lf(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(226!==t.kind||t.initializer)){var n=Ce(t);if(1&n.flags){if(!e.isIdentifier(t.name))throw e.Debug.fail();var r=w(t,t.name.escapedText,3,void 0,void 0);if(r&&r!==n&&2&r.flags&&3&Xl(r)){var i=e.getAncestor(r.valueDeclaration,227),a=208===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!(a&&(207===a.kind&&e.isFunctionLike(a.parent)||234===a.kind||233===a.kind||265===a.kind))){var o=Xe(r);p(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o);}}}}}function Rf(t){function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(179===i.kind)return n(i.expression);if(71!==i.kind)return e.forEachChild(i,n);var a=w(i,i.escapedText,2204607,void 0,void 0);if(a&&a!==Uh&&a.valueDeclaration)if(a.valueDeclaration!==t){if(e.getEnclosingBlockScopeContainer(a.valueDeclaration)===r){if(146===a.valueDeclaration.kind||176===a.valueDeclaration.kind){if(a.valueDeclaration.pos1)return Qy(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function qf(e){sh(e),hp(e.expression);}function Vf(t){sh(t),hp(t.expression),Ym(t.thenStatement),209===t.thenStatement.kind&&p(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ym(t.elseStatement);}function $f(e){sh(e),Ym(e.statement),hp(e.expression);}function Wf(e){sh(e),hp(e.expression),Ym(e.statement);}function Gf(t){sh(t)||t.initializer&&227===t.initializer.kind&&Wy(t.initializer),t.initializer&&(227===t.initializer.kind?e.forEach(t.initializer.declarations,jf):hp(t.initializer)),t.condition&&hp(t.condition),t.incrementor&&hp(t.incrementor),Ym(t.statement),t.locals&&mf(t);}function Hf(t){if(Ly(t),216===t.kind&&(t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&Th<5&&ay(t,16384):kh.downlevelIteration&&Th<2&&ay(t,256)),227===t.initializer.kind)Yf(t);else{var n=t.initializer,r=Qf(t.expression,t.awaitModifier);if(177===n.kind||178===n.kind)Hd(n,r||Wh);else{var i=hp(n);Pd(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&Po(r,i,n,void 0);}}Ym(t.statement),t.locals&&mf(t);}function Xf(t){Ly(t);var n=Zl(t.expression);if(227===t.initializer.kind){var r=t.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&p(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Yf(t);}else{var i=t.initializer,a=hp(i);177===i.kind||178===i.kind?p(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):No(xa(n),a)?Pd(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):p(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any);}jd(n,17317888)||p(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter),Ym(t.statement),t.locals&&mf(t);}function Yf(e){var t=e.initializer;t.declarations.length>=1&&jf(t.declarations[0]);}function Qf(e,t){return Zf(Zl(e),e,!0,void 0!==t)}function Zf(e,t,n,r){return gt(e)?e:em(e,t,n,r,!0)||Vh}function em(t,n,r,i,a){var o=Th>=2,s=!o&&kh.downlevelIteration;if(o||s||i){var c=tm(t,o?n:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(r){if(65536&u.flags){var d=t.types,f=e.filter(d,function(e){return!(262178&e.flags)});f!==d&&(u=la(f,!0));}else 262178&u.flags&&(u=av);if((_=u!==t)&&(Th<1&&n&&(p(n,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),8192&u.flags))return Qh}if(!ds(u))return n&&!l&&p(n,!r||_?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type:s?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,Qe(u)),_?Qh:void 0;var m=Cr(u,1);return _&&m?262178&m.flags?Qh:la([m,Qh],!0):m}function tm(t,n,r,i,a){function o(t){var o=t;if(r){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(Vt(t,Li(!1))||Vt(t,Mi(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(Vt(t,Bi(!1))||Vt(t,ji(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=r&&mt(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||i&&mt(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!gt(c)){var u=c&&xr(c,0);if(e.some(u)){var l=nm(la(e.map(u,Jr),!0),n,!!s);return a&&n&&l&&Po(t,s?Vi(l):Wi(l),n),s?o.iteratedTypeOfAsyncIterable=l:o.iteratedTypeOfIterable=l}n&&(p(n,r?e.Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator),n=void 0);}}if(!gt(t))return Uc(t,o)}function nm(t,n,r){if(!gt(t)){var i=t;if(r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(Vt(t,(r?Ri:Ki)(!1)))return r?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=mt(t,"next");if(!gt(a)){var o=a?xr(a,0):e.emptyArray;if(0!==o.length){var s=la(e.map(o,Jr),!0);if(!(gt(s)||r&&(s=Qp(s,n,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property),gt(s)))){var c=s&&mt(s,"value");if(c)return r?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;n&&p(n,r?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property);}}else n&&p(n,r?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method);}}}function rm(e,t){if(!gt(e))return tm(e,void 0,t,!t,!1)||nm(e,void 0,t)}function im(e){sh(e)||Jy(e);}function am(t){return 153===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,154))}function om(t,n){var r=2==(3&e.getFunctionFlags(t))?Zp(n):n;return r&&Kd(r,1025)}function sm(t){sh(t)||e.getContainingFunction(t)||Qy(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);var n=e.getContainingFunction(t);if(n){var r=Jr(Lr(n));if(Nh||t.expression||8192&r.flags){var i=t.expression?cp(t.expression):Gh,a=e.getFunctionFlags(n);if(1&a)return;if(154===n.kind)t.expression&&p(t,e.Diagnostics.Setters_cannot_return_a_value);else if(152===n.kind)t.expression&&!Po(i,r,t)&&p(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(n)||am(n))if(2&a){var o=Zp(r),s=ef(i,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);o&&Po(s,o,t);}else Po(i,r,t);}else 152!==n.kind&&kh.noImplicitReturns&&!om(n,r)&&p(t,e.Diagnostics.Not_all_code_paths_return_a_value);}}function cm(t){sh(t)||16384&t.flags&&Qy(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),hp(t.expression);var n=e.getSourceFileOfNode(t);if(!Yy(n)){var r=e.getSpanOfTokenAtPosition(n,t.pos).start;Zy(n,r,t.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any);}}function um(t){sh(t);var n,r=!1,i=hp(t.expression),a=ms(i);e.forEach(t.caseBlock.clauses,function(o){if(258===o.kind&&!r)if(void 0===n)n=o;else{var s=e.getSourceFileOfNode(t),u=e.skipTrivia(s.text,o.pos);Zy(s,u,(o.statements.length>0?o.statements[0].pos:o.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0;}if(c&&257===o.kind){var l=o,_=hp(l.expression),d=ms(_),p=i;d&&a||(_=d?gs(_):_,p=gs(i)),Qd(p,_)||Fo(_,p,l.expression,void 0);}e.forEach(o.statements,Ym);}),t.caseBlock.locals&&mf(t.caseBlock);}function lm(t){sh(t)||e.findAncestor(t.parent,function(n){if(e.isFunctionLike(n))return"quit";if(222===n.kind&&n.label.escapedText===t.label.escapedText){var r=e.getSourceFileOfNode(t);return eh(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(r.text,t.label)),!0}}),Ym(t.statement);}function _m(t){sh(t)||void 0===t.expression&&uh(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&hp(t.expression);}function dm(t){sh(t),Cf(t.tryBlock);var n=t.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)Qy(n.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)Qy(n.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=n.block.locals;r&&e.forEachKey(n.locals,function(t){var n=r.get(t);n&&0!=(2&n.flags)&&eh(n.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t);});}Cf(n.block);}t.finallyBlock&&Cf(t.finallyBlock);}function pm(t){function n(t,n,r,i,a,o){if(a){var s=t.valueDeclaration;if(1!==o||(s?_l(e.getNameOfDeclaration(s)):fl(t.escapedName))){var c;!s||194!==s.kind&&144!==e.getNameOfDeclaration(s).kind&&t.parent!==r.symbol?i?c=i:2&C(r)&&(c=e.forEach(on$$1(r),function(e){return rr(e,t.escapedName)&&Cr(e,o)})?void 0:r.symbol.declarations[0]):c=s,c&&!No(n,a)&&p(c,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,Xe(t),Qe(n),Qe(a));}}}var r=Qr(t.symbol,1),i=Qr(t.symbol,0),a=Cr(t,0),o=Cr(t,1);if((a||o)&&(e.forEach(nr(t),function(e){var s=qt(e);n(e,s,t,i,a,0),n(e,s,t,r,o,1);}),1&C(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=0,c=t.symbol.valueDeclaration.members;sr)return!1;for(var u=0;u>s;case 47:return o>>>s;case 45:return o<1&&e.forEach(r.declarations,function(t){e.isConstEnumDeclaration(t)!==n&&p(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const);});var i=!1;e.forEach(r.declarations,function(t){if(232!==t.kind)return!1;var n=t;if(!n.members.length)return!1;var r=n.members[0];r.initializer||(i?p(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0);});}}}function Lm(t){for(var n=0,r=t.declarations;n1&&!i&&r(t,kh.preserveConstEnums||kh.isolatedModules)){var s=Lm(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?p(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos1)for(var s=0,c=i;s0?e.concatenate(o,a):a}return e.forEach(i.getSourceFiles(),eg),Sb.getDiagnostics()}function ig(){return ag(),Sb.getGlobalDiagnostics()}function ag(){if(!c)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function og(e){if(e)for(;e.parent;){if(220===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent;}return!1}function sg(t,n){function r(t,n){if(e.getCombinedLocalAndExportSymbolFlags(t)&n){var r=t.escapedName;a.has(r)||a.set(r,t);}}function i(e,t){t&&e.forEach(function(e){r(e,t);});}if(og(t))return[];var a=e.createSymbolTable(),o=!1;return function(){for(;t;){switch(t.locals&&!D(t)&&i(t.locals,n),t.kind){case 233:i(Ce(t).exports,2623475&n);break;case 232:i(Ce(t).exports,8&n);break;case 199:t.name&&r(t.symbol,n);case 229:case 230:o||i(Ce(t).members,793064&n);break;case 186:t.name&&r(t.symbol,n);}e.introducesArgumentsExoticObject(t)&&r(Lh,n),o=e.hasModifier(t,32),t=t.parent;}i(Zv,n);}(),Nr(a)}function cg(e){return 71===e.kind&&ug(e.parent)&&e.parent.name===e}function ug(e){switch(e.kind){case 145:case 229:case 230:case 231:case 232:return!0}}function lg(e){for(var t=e;t.parent&&143===t.parent.kind;)t=t.parent;return t.parent&&159===t.parent.kind}function _g(e){for(var t=e;t.parent&&179===t.parent.kind;)t=t.parent;return t.parent&&201===t.parent.kind}function dg(t,n){for(var r;;){if(!(t=e.getContainingClass(t)))break;if(r=n(t))break}return r}function pg(e,t){return!!dg(e,function(e){return e===t})}function fg(e){for(;143===e.parent.kind;)e=e.parent;return 237===e.parent.kind?e.parent.moduleReference===e&&e.parent:243===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function mg(e){return void 0!==fg(e)}function gg(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return Ce(t.parent);case 4:case 2:case 5:return Ce(t.parent.parent)}}function yg(t){if(e.isDeclarationName(t))return Ce(t.parent);if(e.isInJavaScriptFile(t)&&179===t.parent.kind&&t.parent===t.parent.parent.left){var n=gg(t);if(n)return n}if(243===t.parent.kind&&e.isEntityNameExpression(t))return ue(t,2998271);if(179!==t.kind&&mg(t)){var r=e.getAncestor(t,237);return e.Debug.assert(void 0!==r),se(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),_g(t)){var i=0;201===t.parent.kind?(i=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(i|=107455)):i=1920;var a=ue(t,i|=2097152);if(a)return a}if(279===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(145===t.parent.kind&&282===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var o=e.getTypeParameterFromJsDoc(t.parent);return o&&o.symbol}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(71===t.kind)return e.isJSXTagName(t)&&Sl(t)?Dl(t.parent):ue(t,107455,!1,!0);if(179===t.kind||143===t.kind){var s=T(t);return s.resolvedSymbol?s.resolvedSymbol:(179===t.kind?t_(t):n_(t),s.resolvedSymbol)}}else{if(lg(t))return ue(t,i=159===t.parent.kind?793064:1920,!1,!0);if(253===t.parent.kind)return Kl(t.parent)}return 158===t.parent.kind?ue(t,1):void 0}function hg(t){if(265===t.kind)return e.isExternalModule(t)?Te(t.symbol):void 0;if(!og(t)){if(a(t))return Ce(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return Ce(t.parent.parent);if(71===t.kind){if(mg(t))return yg(t);if(176===t.parent.kind&&174===t.parent.parent.kind&&t===t.parent.propertyName){var n=xg(t.parent.parent),r=n&&vr(n,t.escapedText);if(r)return r}}switch(t.kind){case 71:case 179:case 143:return yg(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var o=Lr(i);if(o.thisParameter)return o.thisParameter}case 97:return(e.isPartOfExpression(t)?gp(t):Wa(t)).symbol;case 169:return Wa(t).symbol;case 123:var s=t.parent;if(s&&152===s.kind)return s.parent.symbol;return;case 9:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(238===t.parent.kind||244===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent))return le(t,t);case 8:if(180===t.parent.kind&&t.parent.argumentExpression===t){var c=gp(t.parent.expression);if(c===Wh)return;var u=mr(c);if(u===Wh)return;return vr(u,t.text)}}}}function vg(e){if(e&&262===e.kind)return ue(e.name,2204607)}function bg(e){return e.parent.parent.moduleSpecifier?X(e.parent.parent,e):ue(e.propertyName||e.name,2998271)}function xg(t){if(og(t))return Wh;if(e.isPartOfTypeNode(t)){var n=Wa(t);return n&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(n=wn(n,(r=xg(e.getContainingClass(t))).thisType)),n}if(e.isPartOfExpression(t))return Tg(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var r=xn(Ce(e.getContainingClass(t))),i=on$$1(r)[0];return i&&wn(i,r.thisType)}if(ug(t))return xn(o=Ce(t));if(cg(t))return(o=hg(t))&&xn(o);if(e.isDeclaration(t))return qt(o=Ce(t));if(a(t))return(o=hg(t))&&qt(o);if(e.isBindingPattern(t))return Ct(t.parent,!0);if(mg(t)){var o=hg(t),s=o&&xn(o);return s!==Wh?s:qt(o)}return Wh}function Sg(t){if(e.Debug.assert(178===t.kind||177===t.kind),216===t.parent.kind)return Hd(t,(n=Qf(t.parent.expression,t.parent.awaitModifier))||Wh);if(194===t.parent.kind){var n=gp(t.parent.right);return Hd(t,n||Wh)}if(261===t.parent.kind)return $d(Sg(t.parent.parent)||Wh,t.parent);e.Debug.assert(177===t.parent.kind);var r=Sg(t.parent),i=Zf(r||Wh,t.parent,!1,!1)||Wh;return Gd(t.parent,r,e.indexOf(t.parent.elements,t),i||Wh)}function kg(e){var t=Sg(e.parent.parent);return t&&vr(t,e.escapedText)}function Tg(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Ja(gp(t))}function Cg(t){var n=Ce(t.parent);return e.hasModifier(t,32)?qt(n):xn(n)}function Dg(t){t=mr(t);var n=e.createSymbolTable(ar(t));return(xr(t,0).length||xr(t,1).length)&&e.forEach(ar(mv),function(e){n.has(e.escapedName)||n.set(e.escapedName,e);}),Ie(n)}function Eg(t){if(6&e.getCheckFlags(t)){var n=[],r=t.escapedName;return e.forEach(k(t).containingType.types,function(e){var t=vr(e,r);t&&n.push(t);}),n}if(33554432&t.flags){var i=t;if(i.leftSpread)return Eg(i.leftSpread).concat(Eg(i.rightSpread));if(i.syntheticOrigin)return Eg(i.syntheticOrigin);for(var a=void 0,o=t;o=k(o).target;)a=o;if(a)return[a]}return[t]}function Ng(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier)))&&(!(179===t.parent.kind&&t.parent.name===t)&&ey(t)===Lh)}function Ag(t){function n(e){return(e=re(e))&&!!(107455&e.flags)}var r=le(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var i=me(r),a=k(r=pe(r));return void 0===a.exportsSomeValue&&(a.exportsSomeValue=i?!!(107455&r.flags):e.forEachEntry(xe(r),n)),a.exportsSomeValue}function wg(t){var n=t.parent;return n&&e.isModuleOrEnumDeclaration(n)&&t===n.name}function Og(t,n){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=ey(t,wg(t));if(r){if(1048576&r.flags){var i=Te(r.exportSymbol);if(!n&&944&i.flags)return;r=i;}var a=De(r);if(a){if(512&a.flags&&265===a.valueDeclaration.kind){var o=a.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&Ce(t)===a})}}}}function Pg(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=ey(t);if(ne(n,107455))return U(n)}}function Fg(t){if(418&t.flags){var n=k(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)){var i=T(t.valueDeclaration);if(w(r.parent,t.escapedName,107455,void 0,void 0))n.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(r,!1),s=207===r.kind&&e.isIterationStatement(r.parent,!1);n.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||a&&(o||s));}else n.isDeclarationWithCollidingName=!1;}}return n.isDeclarationWithCollidingName}return!1}function Ig(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=ey(t);if(n&&Fg(n))return n.valueDeclaration}}function Lg(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var n=Ce(t);if(n)return Fg(n)}return!1}function Rg(t){switch(t.kind){case 237:case 239:case 240:case 242:case 246:return Bg(Ce(t)||Uh);case 244:var n=t.exportClause;return n&&e.forEach(n.elements,Rg);case 243:return!t.expression||71!==t.expression.kind||Bg(Ce(t)||Uh)}return!1}function Mg(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||265!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&(Bg(Ce(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function Bg(e){var t=ie(e);return t===Uh||107455&t.flags&&(kh.preserveConstEnums||!Kg(t))}function Kg(e){return zd(e)||e.constEnumOnlyModule}function jg(t,n){if(e.isAliasSymbolDeclaration(t)){var r=Ce(t);if(r&&k(r).referenced)return!0}return!!n&&e.forEachChild(t,function(e){return jg(e,n)})}function Jg(t){if(e.nodeIsPresent(t.body)){var n=Br(Ce(t));return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function zg(t){return Nh&&!Or(t)&&t.initializer&&!e.hasModifier(t,92)}function Ug(t){return Nh&&Or(t)&&!t.initializer&&e.hasModifier(t,92)}function qg(e){return T(e).flags}function Vg(e){return wm(e.parent),T(e).enumMemberValue}function $g(e){switch(e.kind){case 264:case 179:case 180:return!0}return!1}function Wg(t){if(264===t.kind)return Vg(t);var n=T(t).resolvedSymbol;return n&&8&n.flags&&e.isConstEnumDeclaration(n.valueDeclaration.parent)?Vg(n.valueDeclaration):void 0}function Gg(e){return 32768&e.flags&&xr(e,0).length>0}function Hg(t,n){if(!(t=e.getParseTreeNode(t,e.isEntityName)))return e.TypeReferenceSerializationKind.Unknown;if(n&&!(n=e.getParseTreeNode(n)))return e.TypeReferenceSerializationKind.Unknown;var r=ue(t,107455,!0,!1,n),i=ue(t,793064,!0,!1,n);if(r&&r===i){var a=Fi(!1);if(a&&r===a)return e.TypeReferenceSerializationKind.Promise;var o=qt(r);if(o&&en(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.ObjectType;var s=xn(i);return s===Wh?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:jd(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:jd(s,136)?e.TypeReferenceSerializationKind.BooleanType:jd(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:jd(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:hs(s)?e.TypeReferenceSerializationKind.ArrayLikeType:jd(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:Gg(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:_s(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Xg(e,t,n,r){var i=Ce(e),a=!i||133120&i.flags?Wh:ys(qt(i));8192&n&&(a=Ts(a,2048)),ot().buildTypeDisplay(a,r,t,n);}function Yg(e,t,n,r){var i=Lr(e);ot().buildTypeDisplay(Jr(i),r,t,n);}function Qg(e,t,n,r){var i=Fs(Tg(e));ot().buildTypeDisplay(i,r,t,n);}function Zg(t){return Zv.has(e.escapeLeadingUnderscores(t))}function ey(t,n){var r=T(t).resolvedSymbol;if(r)return r;var i=t;if(n){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=pt(a));}return w(i,t.escapedText,3253183,void 0,void 0)}function ty(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=ey(t);if(n)return Ee(n).valueDeclaration}}function ny(t){if(e.isConst(t)){var n=qt(Ce(t));return!!(96&n.flags&&1048576&n.flags)}return!1}function ry(e,t){var n=qt(Ce(e));t.writeStringLiteral(it(n));}function iy(t){var n=e.getExternalModuleName(t),r=_e(n,n,void 0);if(r)return e.getDeclarationOfKind(r,265)}function ay(t,n){if((ph&n)!==n&&kh.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,kh)&&!e.isInAmbientContext(t)){var i=sy(r,t);if(i!==Uh)for(var a=n&~ph,o=1;o<=32768;o<<=1)if(a&o){var s=oy(o);E(i.exports,e.escapeLeadingUnderscores(s),107455)||p(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s);}ph|=n;}}}function oy(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";default:e.Debug.fail("Unrecognized helper");}}function sy(t,n){return fh||(fh=de(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||Uh),fh}function cy(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t))return 151!==t.kind||e.nodeIsPresent(t.body)?Qy(t,e.Diagnostics.Decorators_are_not_valid_here):Qy(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(153===t.kind||154===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return Qy(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function uy(t){var n=ly(t);if(void 0!==n)return n;for(var r,i,a,o,s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function py(t,n){switch(t.kind){case 151:case 228:case 186:case 187:return!1}return eh(n,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function fy(t){if(t&&t.hasTrailingComma){var n=t.end-",".length,r=t.end;return Zy(e.getSourceFileOfNode(t[0]),n,r-n,e.Diagnostics.Trailing_comma_not_allowed)}}function my(t,n){if(fy(t))return!0;if(t&&0===t.length){var r=t.pos-"<".length;return Zy(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function gy(t){for(var n=!1,r=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function ky(e,t){return fy(t)||Sy(e,t)}function Ty(t,n){if(n)for(var r=e.getSourceFileOfNode(t),i=0,a=n;i1)return Qy(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0;}else{if(e.Debug.assert(108===o.token),r)return Qy(o,e.Diagnostics.implements_clause_already_seen);r=!0;}Dy(o);}}function Ay(t){var n=!1;if(t.heritageClauses)for(var r=0,i=t.heritageClauses;r1){a=215===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Qy(n.declarations[1],a)}var i=r[0];if(i.initializer){var a=215===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return eh(i.name,a)}if(i.type)return eh(i,a=215===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function Ry(t){var n=t.kind;if(Th<1)return eh(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return eh(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===t.body&&!e.hasModifier(t,128))return Zy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&e.hasModifier(t,128))return eh(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return eh(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!My(t))return eh(t.name,153===n?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(154===n){if(t.type)return eh(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=t.parameters[0];if(r.dotDotDotToken)return eh(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return eh(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return eh(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function My(e){return By(e)||e.parameters.length===(153===e.kind?0:1)}function By(t){if(t.parameters.length===(153===t.kind?1:2))return e.getThisParameter(t)}function Ky(t,n){if(e.isDynamicName(t))return eh(t,n)}function jy(t){if(Uf(t)||yy(t)||Oy(t))return!0;if(178===t.parent.kind){if(Py(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return Zy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return Ky(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return Ky(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol)}else{if(230===t.parent.kind)return Ky(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol);if(163===t.parent.kind)return Ky(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function Jy(t){for(var n=t;n;){if(e.isFunctionLike(n))return eh(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 222:if(t.label&&n.label.escapedText===t.label.escapedText)return!(217!==t.kind||e.isIterationStatement(n.statement,!0))&&eh(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 221:if(218===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!t.label)return!1}n=n.parent;}if(t.label)return eh(t,r=218===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);var r=218===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return eh(t,r)}function zy(t){if(t.dotDotDotToken){var n=t.parent.elements;if(t!==e.lastOrUndefined(n))return eh(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(175===t.name.kind||174===t.name.kind)return eh(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return Zy(e.getSourceFileOfNode(t),t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function Uy(e){return 9===e.kind||8===e.kind||192===e.kind&&38===e.operator&&8===e.operand.kind}function qy(t){if(215!==t.parent.parent.kind&&216!==t.parent.parent.kind)if(e.isInAmbientContext(t)){if(t.initializer){if(!e.isConst(t)||t.type){n="=".length;return Zy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!Uy(t.initializer))return eh(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!Uy(t.initializer))){var n="=".length;return Zy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return eh(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return eh(t,e.Diagnostics.const_declarations_must_be_initialized)}return kh.module===e.ModuleKind.ES2015||kh.module===e.ModuleKind.System||kh.noEmit||e.isInAmbientContext(t.parent.parent)||!e.hasModifier(t.parent.parent,1)||Vy(t.name),(e.isLet(t)||e.isConst(t))&&$y(t.name)}function Vy(t){if(71===t.kind){if("__esModule"===e.unescapeLeadingUnderscores(t.escapedText))return eh(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=0,r=t.elements;n0}function Qy(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Yy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Sb.add(e.createFileDiagnostic(o,s.start,s.length,n,r,i,a)),!0}}function Zy(t,n,r,i,a,o,s){if(!Yy(t))return Sb.add(e.createFileDiagnostic(t,n,r,i,a,o,s)),!0}function eh(t,n,r,i,a){if(!Yy(e.getSourceFileOfNode(t)))return Sb.add(e.createDiagnosticForNode(t,n,r,i,a)),!0}function th(t){if(t.typeParameters)return Zy(e.getSourceFileOfNode(t),t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function nh(t){if(t.type)return eh(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function rh(t){if(e.isClassLike(t.parent)){if(Ky(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol))return!0}else if(230===t.parent.kind){if(Ky(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return eh(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(163===t.parent.kind){if(Ky(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return eh(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return Qy(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function ih(t){return 230!==t.kind&&231!==t.kind&&238!==t.kind&&237!==t.kind&&244!==t.kind&&243!==t.kind&&236!==t.kind&&!e.hasModifier(t,515)&&Qy(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function ah(t){for(var n=0,r=t.statements;n=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,173)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,264)&&(n=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var r=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,i=(r?"-":"")+"0o"+t.text;return eh(r?t.parent:t,n,i)}}}function uh(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Yy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Sb.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,n,r,i,a)),!0}}function lh(){var t=[];return Zv.forEach(function(n,r){s.test(e.unescapeLeadingUnderscores(r))&&t.push(n);}),t}function _h(t){if(Ch===e.ModuleKind.ES2015)return eh(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return eh(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=t.arguments;return 1!==n.length?eh(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(n[0])?eh(n[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):void 0}var dh,ph,fh,mh=e.objectAllocator.getSymbolConstructor(),gh=e.objectAllocator.getTypeConstructor(),yh=e.objectAllocator.getSignatureConstructor(),hh=0,vh=0,bh=0,xh=0,Sh=e.createSymbolTable(),kh=i.getCompilerOptions(),Th=e.getEmitScriptTarget(kh),Ch=e.getEmitModuleKind(kh),Dh=!!kh.noUnusedLocals||!!kh.noUnusedParameters,Eh=void 0!==kh.allowSyntheticDefaultImports?kh.allowSyntheticDefaultImports:Ch===e.ModuleKind.System,Nh=void 0===kh.strictNullChecks?kh.strict:kh.strictNullChecks,Ah=void 0===kh.noImplicitAny?kh.strict:kh.noImplicitAny,wh=void 0===kh.noImplicitThis?kh.strict:kh.noImplicitThis,Oh=function(){function t(e){if(a){var t=179===e.kind||71===e.kind&&ec(e)?1156031:794600,r=ue(e,t,!0);return r&&r!==Uh?n(r,t):void 0}}function n(t,n){if(a&&r(t)){for(var i,o=0,s=t.declarations;o0){var c=r(i.slice(0,ci(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyTuple?e.createTupleTypeNode([]):void(s.encounteredError=!0)}var u=t.target.outerTypeParameters,l=0,_=void 0;if(u)for(var d=u.length;l0){var k=(t.target.typeParameters||e.emptyArray).length;S=r(i.slice(l,k),s);}return S&&((71===b.kind?b:b.right).typeArguments=void 0),e.createTypeReferenceNode(b,S)}(t);if(16384&t.flags||3&b){x=c(t.symbol,s,793064,!1);return e.createTypeReferenceNode(x,void 0)}if(!g&&t.aliasSymbol&&ze(t.aliasSymbol,s.enclosingDeclaration)){var x=p(t.aliasSymbol),S=r(t.aliasTypeArguments,s);return e.createTypeReferenceNode(x,S)}if(196608&t.flags){var k=r(65536&t.flags?et(t.types):t.types,s);return k&&k.length>0?e.createUnionOrIntersectionTypeNode(65536&t.flags?166:167,k):void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyUnionOrIntersection||(s.encounteredError=!0))}if(48&b)return e.Debug.assert(!!(32768&t.flags)),function(t){var n=t.symbol;if(n){if(32&n.flags&&!Bt(n)||896&n.flags||function(){var t=!!(8192&n.flags)&&e.some(n.declarations,function(t){return e.hasModifier(t,32)}),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 265===e.parent.kind||234===e.parent.kind}));if(t||r)return e.contains(s.symbolStack,n)}())return d(n,107455);if(e.contains(s.symbolStack,n)){var r=nt(t);if(r){var i=c(r,s,793064,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}s.symbolStack||(s.symbolStack=[]),s.symbolStack.push(n);var a=_(t);return s.symbolStack.pop(),a}return _(t)}(t);if(262144&t.flags){D=n(t.type,s);return e.createTypeOperatorNode(D)}if(524288&t.flags){var T=n(t.objectType,s),D=n(t.indexType,s);return e.createIndexedAccessTypeNode(T,D)}e.Debug.fail("Should be unreachable.");}else s.encounteredError=!0;}function r(t,r){if(e.some(t)){for(var i=[],a=0;a0){var c=t[i-1],l=void 0;1&e.getCheckFlags(s)?l=Qt(c):524384&km(c).flags&&(l=Yt(s)),a=r(l,n);}var _=u(s,n),d=e.setEmitFlags(e.createIdentifier(_,a),16777216);return i>0?e.createQualifiedName(o(t,i-1),d):d}function s(t,r,i){var a,o=Ke(t,n.enclosingDeclaration,r,!1);if(!o||je(o[0],n.enclosingDeclaration,1===o.length?r:Be(r))){var c=De(o?o[0]:t);if(c){var u=s(c,Be(r),!1);u&&(a=c,o=u.concat(o||[t]));}}return o||(!i&&(!a&&e.forEach(t.declarations,qe)||6144&t.flags)?void 0:[t])}var c;return!(262144&t.flags)&&(n.enclosingDeclaration||n.flags&e.NodeBuilderFlags.UseFullyQualifiedType)?(c=s(t,i,!0),e.Debug.assert(c&&c.length>0)):c=[t],!a||1===c.length||n.encounteredError||n.flags&e.NodeBuilderFlags.AllowQualifedNameInPlaceOfIdentifier||(n.encounteredError=!0),o(c,c.length-1)}function u(t,n){var r=e.firstOrUndefined(t.declarations);if(r){var i=e.getNameOfDeclaration(r);if(i)return e.declarationNameToString(i);if(r.parent&&226===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(n.encounteredError||n.flags&e.NodeBuilderFlags.AllowAnonymousIdentifier||(n.encounteredError=!0),r.kind){case 199:return"(Anonymous class)";case 186:case 187:return"(Anonymous function)"}}return e.unescapeLeadingUnderscores(t.escapedName)}return{typeToTypeNode:function(e,r,i){var a=t(r,i),o=n(e,a);return a.encounteredError?void 0:o},indexInfoToIndexSignatureDeclaration:function(e,n,r,a){var o=t(r,a),s=i(e,n,o);return o.encounteredError?void 0:s},signatureToSignatureDeclaration:function(e,n,r,i){var o=t(r,i),s=a(e,n,o);return o.encounteredError?void 0:s}}}(),Fh=f(4,"undefined");Fh.declarations=[];var Ih,Lh=f(4,"arguments"),Rh={getNodeCount:function(){return e.sum(i.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(i.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(i.getSourceFiles(),"symbolCount")+vh},getTypeCount:function(){return hh},isUndefinedSymbol:function(e){return e===Fh},isArgumentsSymbol:function(e){return e===Lh},isUnknownSymbol:function(e){return e===Uh},getMergedSymbol:Te,getDiagnostics:ng,getGlobalDiagnostics:ig,getTypeOfSymbolAtLocation:function(t,n){return n=e.getParseTreeNode(n),n?cu(t,n):Wh},getSymbolsOfParameterPropertyDeclaration:function(t,n){return t=e.getParseTreeNode(t,e.isParameter),e.Debug.assert(void 0!==t,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),N(t,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:xn,getPropertiesOfType:ar,getPropertyOfType:function(t,n){return vr(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:Tr,getSignaturesOfType:xr,getIndexTypeOfType:Cr,getBaseTypes:on$$1,getBaseTypeOfLiteralType:gs,getWidenedType:Fs,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?Wa(t):Wh},getParameterType:dd,getReturnTypeOfSignature:Jr,getNullableType:Ts,getNonNullableType:Cs,typeToTypeNode:Ph.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Ph.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Ph.signatureToSignatureDeclaration,getSymbolsInScope:function(t,n){return t=e.getParseTreeNode(t),t?sg(t,n):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?hg(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?vg(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?bg(t):void 0},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?xg(t):Wh},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?kg(t):void 0},signatureToString:function(t,n,r,i){return Ye(t,e.getParseTreeNode(n),r,i)},typeToString:function(t,n,r){return Qe(t,e.getParseTreeNode(n),r)},getSymbolDisplayBuilder:ot,symbolToString:function(t,n,r){return Xe(t,e.getParseTreeNode(n),r)},getAugmentedPropertiesOfType:Dg,getRootSymbols:Eg,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?el(t):void 0},getFullyQualifiedName:ce,getResolvedSignature:function(t,n,r){t=e.getParseTreeNode(t,e.isCallLikeExpression),Ih=r;var i=t?Y_(t,n):void 0;return Ih=void 0,i},getConstantValue:function(t){return t=e.getParseTreeNode(t,$g),t?Wg(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&l_(t,e.escapeLeadingUnderscores(n))},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?Lr(t):void 0},isImplementationOfOverload:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?Jg(n):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=k(t);if(!n.immediateTarget){var r=U(t);e.Debug.assert(!!r),n.immediateTarget=te(r,!0);}return n.immediateTarget},getAliasedSymbol:ie,getEmitResolver:d,getExportsOfModule:ge,getExportsAndPropertiesOfModule:ye,getAmbientModules:lh,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?Ml(t):void 0},getJsxIntrinsicTagNames:Ul,isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&Or(t)},tryGetMemberInModuleExports:function(t,n){return he(e.escapeLeadingUnderscores(t),n)},tryGetMemberInModuleExportsAndProperties:function(t,n){return ve(e.escapeLeadingUnderscores(t),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return wr(e,!1)},getApparentType:mr,getAllPossiblePropertiesOfType:or,getSuggestionForNonexistentProperty:function(t,n){return e.unescapeLeadingUnderscores(a_(t,n))},getSuggestionForNonexistentSymbol:function(t,n,r){return e.unescapeLeadingUnderscores(o_(t,e.escapeLeadingUnderscores(n),r))},getBaseConstraintOfType:lr,resolveName:function(t,n,r){return w(n,e.escapeLeadingUnderscores(t),r,void 0,void 0)},getJsxNamespace:function(){return e.unescapeLeadingUnderscores(u())}},Mh=[],Bh=e.createMap(),Kh=e.createMap(),jh=e.createMap(),Jh=e.createMap(),zh=[],Uh=f(4,"unknown"),qh=f(0,"__resolving__"),Vh=Oe(1,"any"),$h=Oe(1,"any"),Wh=Oe(1,"unknown"),Gh=Oe(2048,"undefined"),Hh=Nh?Gh:Oe(2099200,"undefined"),Xh=Oe(4096,"null"),Yh=Nh?Xh:Oe(2101248,"null"),Qh=Oe(2,"string"),Zh=Oe(4,"number"),ev=Oe(128,"true"),tv=Oe(128,"false"),nv=function(e){var t=la(e);return t.flags|=8,t.intrinsicName="boolean",t}([ev,tv]),rv=Oe(512,"symbol"),iv=Oe(1024,"void"),av=Oe(8192,"never"),ov=Oe(8192,"never"),sv=Oe(16777216,"object"),cv=Re(void 0,Sh,e.emptyArray,e.emptyArray,void 0,void 0),uv=f(2048,"__type");uv.members=e.createSymbolTable();var lv=Re(uv,Sh,e.emptyArray,e.emptyArray,void 0,void 0),_v=Re(void 0,Sh,e.emptyArray,e.emptyArray,void 0,void 0);_v.instantiations=e.createMap();var dv=Re(void 0,Sh,e.emptyArray,e.emptyArray,void 0,void 0);dv.flags|=8388608;var pv,fv,mv,gv,yv,hv,vv,bv,xv,Sv,kv,Tv,Cv,Dv,Ev,Nv,Av,wv,Ov,Pv,Fv,Iv,Lv,Rv,Mv,Bv,Kv,jv,Jv,zv,Uv,qv,Vv=Re(void 0,Sh,e.emptyArray,e.emptyArray,void 0,void 0),$v=Re(void 0,Sh,e.emptyArray,e.emptyArray,void 0,void 0),Wv=In(void 0,void 0,void 0,e.emptyArray,Vh,void 0,0,!1,!1),Gv=In(void 0,void 0,void 0,e.emptyArray,Wh,void 0,0,!1,!1),Hv=In(void 0,void 0,void 0,e.emptyArray,Vh,void 0,0,!1,!1),Xv=In(void 0,void 0,void 0,e.emptyArray,ov,void 0,0,!1,!1),Yv=Zr(Qh,!0),Qv=Zr(Vh,!1),Zv=e.createSymbolTable(),eb=0,tb=0,nb=0,rb=za(""),ib=za(0),ab=[],ob=[],sb=[],cb=0,ub=10,lb=[],_b=[],db=[],pb=[],fb=[],mb=[],gb=[],yb=[],hb=[],vb=[],bb=[],xb=[],Sb=e.createDiagnosticCollection();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.Discriminatable=4194304]="Discriminatable",e[e.All=8388607]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=6166480]="ObjectStrictFacts",e[e.ObjectFacts=8378320]="ObjectFacts",e[e.FunctionStrictFacts=6164448]="FunctionStrictFacts",e[e.FunctionFacts=8376288]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts";}(qv||(qv={}));var kb,Tb,Cb,Db,Eb,Nb,Ab=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),wb=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),Ob=e.createMapFromTemplate({string:Qh,number:Zh,boolean:nv,symbol:rv,undefined:Gh}),Pb=function(){return la(e.arrayFrom(Ab.keys(),za))}(),Fb=!1,Ib=!1,Lb=e.createUnderscoreEscapedMap(),Rb={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",ElementChildrenAttributeNameContainer:"ElementChildrenAttribute",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},Mb=e.createMap(),Bb=e.createMap(),Kb=e.createMap(),jb=e.createMap(),Jb=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType";}(Nb||(Nb={}));var zb;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential";}(zb||(zb={}));var Ub=e.createSymbolTable();return Ub.set(Fh.escapedName,Fh),function(){for(var t=0,n=i.getSourceFiles();t0&&(a[c-s]=u);}s>0&&(a.length-=s);}}function Xi(t,n){return t===n?0:t.priority===n.priority?0:void 0===t.priority?1:void 0===n.priority?-1:e.compareValues(t.priority,n.priority)}function Yi(e,t){if(e.original=t,t){var n=t.emitNode;n&&(e.emitNode=Qi(n,e.emitNode));}return e}function Qi(t,n){var r=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers;return n||(n={}),i&&(n.leadingComments=e.addRange(i.slice(),n.leadingComments)),a&&(n.trailingComments=e.addRange(a.slice(),n.trailingComments)),r&&(n.flags=r),o&&(n.commentRange=o),s&&(n.sourceMapRange=s),c&&(n.tokenSourceMapRanges=Zi(c,n.tokenSourceMapRanges)),void 0!==u&&(n.constantValue=u),l&&(n.helpers=e.addRange(n.helpers,l)),n}function Zi(e,t){t||(t=[]);for(var n in e)t[n]=e[n];return t}e.updateNode=n,e.createNodeArray=r,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createIdentifier=u,e.updateIdentifier=l;var ea=0;e.createTempVariable=_,e.createLoopVariable=d,e.createUniqueName=p,e.getGeneratedNameForNode=f,e.createToken=m,e.createSuper=g,e.createThis=y,e.createNull=h,e.createTrue=v,e.createFalse=b,e.createQualifiedName=x,e.updateQualifiedName=S,e.createComputedPropertyName=k,e.updateComputedPropertyName=T,e.createTypeParameterDeclaration=C,e.updateTypeParameterDeclaration=D,e.createParameter=E,e.updateParameter=N,e.createDecorator=A,e.updateDecorator=w,e.createPropertySignature=O,e.updatePropertySignature=P,e.createProperty=F,e.updateProperty=I,e.createMethodSignature=L,e.updateMethodSignature=R,e.createMethod=M,e.updateMethod=B,e.createConstructor=K,e.updateConstructor=j,e.createGetAccessor=J,e.updateGetAccessor=z,e.createSetAccessor=U,e.updateSetAccessor=q,e.createCallSignature=V,e.updateCallSignature=$,e.createConstructSignature=W,e.updateConstructSignature=G,e.createIndexSignature=H,e.updateIndexSignature=X,e.createSignatureDeclaration=Y,e.createKeywordTypeNode=Z,e.createTypePredicateNode=ee,e.updateTypePredicateNode=te,e.createTypeReferenceNode=ne,e.updateTypeReferenceNode=re,e.createFunctionTypeNode=ie,e.updateFunctionTypeNode=ae,e.createConstructorTypeNode=oe,e.updateConstructorTypeNode=se,e.createTypeQueryNode=ce,e.updateTypeQueryNode=ue,e.createTypeLiteralNode=le,e.updateTypeLiteralNode=_e,e.createArrayTypeNode=de,e.updateArrayTypeNode=pe,e.createTupleTypeNode=fe,e.updateTypleTypeNode=me,e.createUnionTypeNode=ge,e.updateUnionTypeNode=ye,e.createIntersectionTypeNode=he,e.updateIntersectionTypeNode=ve,e.createUnionOrIntersectionTypeNode=be,e.createParenthesizedType=Se,e.updateParenthesizedType=ke,e.createThisTypeNode=Te,e.createTypeOperatorNode=Ce,e.updateTypeOperatorNode=De,e.createIndexedAccessTypeNode=Ee,e.updateIndexedAccessTypeNode=Ne,e.createMappedTypeNode=Ae,e.updateMappedTypeNode=we,e.createLiteralTypeNode=Oe,e.updateLiteralTypeNode=Pe,e.createObjectBindingPattern=Fe,e.updateObjectBindingPattern=Ie,e.createArrayBindingPattern=Le,e.updateArrayBindingPattern=Re,e.createBindingElement=Me,e.updateBindingElement=Be,e.createArrayLiteral=Ke,e.updateArrayLiteral=je,e.createObjectLiteral=Je,e.updateObjectLiteral=ze,e.createPropertyAccess=Ue,e.updatePropertyAccess=qe,e.createElementAccess=Ve,e.updateElementAccess=$e,e.createCall=We,e.updateCall=Ge,e.createNew=He,e.updateNew=Xe,e.createTaggedTemplate=Ye,e.updateTaggedTemplate=Qe,e.createTypeAssertion=Ze,e.updateTypeAssertion=et,e.createParen=tt,e.updateParen=nt,e.createFunctionExpression=rt,e.updateFunctionExpression=it,e.createArrowFunction=at,e.updateArrowFunction=ot,e.createDelete=st,e.updateDelete=ct,e.createTypeOf=ut,e.updateTypeOf=lt,e.createVoid=_t,e.updateVoid=dt,e.createAwait=pt,e.updateAwait=ft,e.createPrefix=mt,e.updatePrefix=gt,e.createPostfix=yt,e.updatePostfix=ht,e.createBinary=vt,e.updateBinary=bt,e.createConditional=xt,e.updateConditional=St,e.createTemplateExpression=kt,e.updateTemplateExpression=Tt,e.createYield=Ct,e.updateYield=Dt,e.createSpread=Et,e.updateSpread=Nt,e.createClassExpression=At,e.updateClassExpression=wt,e.createOmittedExpression=Ot,e.createExpressionWithTypeArguments=Pt,e.updateExpressionWithTypeArguments=Ft,e.createAsExpression=It,e.updateAsExpression=Lt,e.createNonNullExpression=Rt,e.updateNonNullExpression=Mt,e.createMetaProperty=Bt,e.updateMetaProperty=Kt,e.createTemplateSpan=jt,e.updateTemplateSpan=Jt,e.createSemicolonClassElement=zt,e.createBlock=Ut,e.updateBlock=qt,e.createVariableStatement=Vt,e.updateVariableStatement=$t,e.createEmptyStatement=Wt,e.createStatement=Gt,e.updateStatement=Ht,e.createIf=Xt,e.updateIf=Yt,e.createDo=Qt,e.updateDo=Zt,e.createWhile=en,e.updateWhile=tn,e.createFor=nn,e.updateFor=rn,e.createForIn=an,e.updateForIn=on$$1,e.createForOf=sn,e.updateForOf=cn,e.createContinue=un,e.updateContinue=ln,e.createBreak=_n,e.updateBreak=dn,e.createReturn=pn,e.updateReturn=fn,e.createWith=mn,e.updateWith=gn,e.createSwitch=yn,e.updateSwitch=hn,e.createLabel=vn,e.updateLabel=bn,e.createThrow=xn,e.updateThrow=Sn,e.createTry=kn,e.updateTry=Tn,e.createDebuggerStatement=Cn,e.createVariableDeclaration=Dn,e.updateVariableDeclaration=En,e.createVariableDeclarationList=Nn,e.updateVariableDeclarationList=An,e.createFunctionDeclaration=wn,e.updateFunctionDeclaration=On,e.createClassDeclaration=Pn,e.updateClassDeclaration=Fn,e.createInterfaceDeclaration=In,e.updateInterfaceDeclaration=Ln,e.createTypeAliasDeclaration=Rn,e.updateTypeAliasDeclaration=Mn,e.createEnumDeclaration=Bn,e.updateEnumDeclaration=Kn,e.createModuleDeclaration=jn,e.updateModuleDeclaration=Jn,e.createModuleBlock=zn,e.updateModuleBlock=Un,e.createCaseBlock=qn,e.updateCaseBlock=Vn,e.createNamespaceExportDeclaration=$n,e.updateNamespaceExportDeclaration=Wn,e.createImportEqualsDeclaration=Gn,e.updateImportEqualsDeclaration=Hn,e.createImportDeclaration=Xn,e.updateImportDeclaration=Yn,e.createImportClause=Qn,e.updateImportClause=Zn,e.createNamespaceImport=er,e.updateNamespaceImport=tr,e.createNamedImports=nr,e.updateNamedImports=rr,e.createImportSpecifier=ir,e.updateImportSpecifier=ar,e.createExportAssignment=or,e.updateExportAssignment=sr,e.createExportDeclaration=cr,e.updateExportDeclaration=ur,e.createNamedExports=lr,e.updateNamedExports=_r,e.createExportSpecifier=dr,e.updateExportSpecifier=pr,e.createExternalModuleReference=fr,e.updateExternalModuleReference=mr,e.createJsxElement=gr,e.updateJsxElement=yr,e.createJsxSelfClosingElement=hr,e.updateJsxSelfClosingElement=vr,e.createJsxOpeningElement=br,e.updateJsxOpeningElement=xr,e.createJsxClosingElement=Sr,e.updateJsxClosingElement=kr,e.createJsxAttribute=Tr,e.updateJsxAttribute=Cr,e.createJsxAttributes=Dr,e.updateJsxAttributes=Er,e.createJsxSpreadAttribute=Nr,e.updateJsxSpreadAttribute=Ar,e.createJsxExpression=wr,e.updateJsxExpression=Or,e.createCaseClause=Pr,e.updateCaseClause=Fr,e.createDefaultClause=Ir,e.updateDefaultClause=Lr,e.createHeritageClause=Rr,e.updateHeritageClause=Mr,e.createCatchClause=Br,e.updateCatchClause=Kr,e.createPropertyAssignment=jr,e.updatePropertyAssignment=Jr,e.createShorthandPropertyAssignment=zr,e.updateShorthandPropertyAssignment=Ur,e.createSpreadAssignment=qr,e.updateSpreadAssignment=Vr,e.createEnumMember=$r,e.updateEnumMember=Wr,e.updateSourceFileNode=Gr,e.getMutableClone=Hr,e.createNotEmittedStatement=Xr,e.createEndOfDeclarationMarker=Yr,e.createMergeDeclarationMarker=Qr,e.createPartiallyEmittedExpression=Zr,e.updatePartiallyEmittedExpression=ei,e.createCommaList=ni,e.updateCommaList=ri,e.createBundle=ii,e.updateBundle=ai,e.createImmediatelyInvokedFunctionExpression=oi,e.createImmediatelyInvokedArrowFunction=si,e.createComma=ci,e.createLessThan=ui,e.createAssignment=li,e.createStrictEquality=_i,e.createStrictInequality=di,e.createAdd=pi,e.createSubtract=fi,e.createPostfixIncrement=mi,e.createLogicalAnd=gi,e.createLogicalOr=yi,e.createLogicalNot=hi,e.createVoidZero=vi,e.createExportDefault=bi,e.createExternalModuleExport=xi,e.disposeEmitNodes=Di,e.getOrCreateEmitNode=Ei,e.setTextRange=Ni,e.setEmitFlags=Ai,e.getSourceMapRange=wi,e.setSourceMapRange=Oi;var ta;e.createSourceMapSource=Pi,e.getTokenSourceMapRange=Fi,e.setTokenSourceMapRange=Ii,e.getCommentRange=Li,e.setCommentRange=Ri,e.getSyntheticLeadingComments=Mi,e.setSyntheticLeadingComments=Bi,e.addSyntheticLeadingComment=Ki,e.getSyntheticTrailingComments=ji,e.setSyntheticTrailingComments=Ji,e.addSyntheticTrailingComment=zi,e.getConstantValue=Ui,e.setConstantValue=qi,e.addEmitHelper=Vi,e.addEmitHelpers=$i,e.removeEmitHelper=Wi,e.getEmitHelpers=Gi,e.moveEmitHelpers=Hi,e.compareEmitHelpers=Xi,e.setOriginalNode=Yi;}(r||(r={})),function(e){function t(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))}function n(t,n,r){if(e.isComputedPropertyName(n))return e.setTextRange(e.createElementAccess(t,n.expression),r);var i=e.setTextRange(e.isIdentifier(n)?e.createPropertyAccess(t,n):e.createElementAccess(t,n),n);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),i)}function i(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),i)}function a(t,n){var r=[];return void 0!==n&&r.push("number"==typeof n?e.createLiteral(n):n),e.createCall(e.createPropertyAccess(t,"slice"),void 0,r)}function o(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)}function s(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)}function c(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function u(t,n){if(e.isQualifiedName(t)){var r=u(t.left,n),i=e.createIdentifier(e.unescapeLeadingUnderscores(t.right.escapedText));return i.escapedText=t.right.escapedText,e.createPropertyAccess(r,i)}return c(e.unescapeLeadingUnderscores(t.escapedText),n)}function l(t,n,r){return t?u(t,r):e.createPropertyAccess(c(n,r),"createElement")}function _(t,n,r,i,a,o,s){var c=[r];if(i&&c.push(i),a&&a.length>0)if(i||c.push(e.createNull()),a.length>1)for(var u=0,_=a;u<_.length;u++){var d=_[u];d.startsOnNewLine=!0,c.push(d);}else c.push(a[0]);return e.setTextRange(e.createCall(l(t,n,o),void 0,c),s)}function d(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function p(t,n,r){return t.requestEmitHelper(Be),e.setTextRange(e.createCall(d("__values"),void 0,[n]),r)}function f(t,n,r,i){return t.requestEmitHelper(Ke),e.setTextRange(e.createCall(d("__read"),void 0,void 0!==r?[n,e.createLiteral(r)]:[n]),i)}function m(t,n,r){return t.requestEmitHelper(Ke),t.requestEmitHelper(je),e.setTextRange(e.createCall(d("__spread"),void 0,n),r)}function g(t,n){if(e.isVariableDeclarationList(t)){var r=e.firstOrUndefined(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,n);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,n),t);return e.setTextRange(e.createStatement(a),t)}function y(t,n){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([n].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function h(t,n,r){if(!n)return t;var i=e.updateLabel(n,n.label,222===n.statement.kind?h(t,n.statement):t);return r&&r(n),i}function v(e,t){var n=fe(e);switch(n.kind){case 71:return t;case 99:case 8:case 9:return!1;case 177:return 0!==n.elements.length;case 178:return n.properties.length>0;default:return!0}}function b(t,n,r,i){var a,o,s=pe(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(97===s.kind)a=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=ee(s);else switch(s.kind){case 179:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 180:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=ee(t);}return{target:o,thisArg:a}}function x(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)}function S(t){if(e.isQualifiedName(t)){var n=S(t.left),r=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(n,r),t)}return e.getMutableClone(t)}function k(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function T(e,t,n){switch(t.kind){case 153:case 154:return C(e.properties,t,n,e.multiLine);case 261:return D(t,n);case 262:return E(t,n);case 151:return N(t,n)}}function C(t,n,r,i){var a=e.getAllAccessorDeclarations(t,n),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(n===o){var u=[];if(s){var l=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(l,s),e.setOriginalNode(l,s);var _=e.createPropertyAssignment("get",l);u.push(_);}if(c){var d=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(d,c),e.setOriginalNode(d,c);var p=e.createPropertyAssignment("set",d);u.push(p);}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var f=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,k(n.name),e.createObjectLiteral(u,i)]),o);return e.aggregateTransformFlags(f)}}function D(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),t.initializer),t),t))}function E(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function N(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}function A(e,t,n){return R(e,t,n,49152)}function w(t){return 0!=(32768&e.getEmitFlags(t))}function O(e,t,n){return R(e,t,n,16384)}function P(t){return 0!=(16384&e.getEmitFlags(t))}function F(e,t,n){return R(e,t,n,8192)}function I(t){return 0!=(8192&e.getEmitFlags(t))}function L(e,t,n){return R(e,t,n)}function R(t,n,r,i){var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),r||(i|=48),n||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function M(t,n,r,i){return t&&e.hasModifier(n,1)?B(t,R(n),r,i):F(n,r,i)}function B(t,n,r,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n));e.setTextRange(a,n);var o;return i||(o|=48),r||(o|=1536),o&&e.setEmitFlags(a,o),a}function K(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)}function j(t){e.Debug.assert(!!t.body);var n=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(n,t),e.setTextRange(n,t),t.startsOnNewLine&&(n.startsOnNewLine=!0),e.aggregateTransformFlags(n),n}function J(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function z(e,t,n,r){return q(e,t,U(e,t,n),r)}function U(t,n,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=n.length;ae.getOperatorPrecedence(194,26)?t:e.setTextRange(e.createParen(t),t)}function ae(t){var n=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(n)){var r=n.expression,i=e.skipPartiallyEmittedExpressions(r).kind;if(186===i||187===i){var a=e.getMutableClone(n);return a.expression=e.setTextRange(e.createParen(r),r),he(t,a,4)}}else{var o=le(n).kind;if(178===o||186===o)return e.setTextRange(e.createParen(t),t)}return t}function oe(t){switch(t.kind){case 166:case 167:case 160:case 161:return e.createParenthesizedType(t)}return t}function se(t){switch(t.kind){case 162:case 170:return e.createParenthesizedType(t)}return oe(t)}function ce(t){return e.createNodeArray(e.sameMap(t,oe))}function ue(t){if(e.some(t)){for(var n=[],r=0;r= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=p;var Ke={name:"typescript:read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };\n '};e.createReadHelper=f;var je={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};e.createSpreadHelper=m,e.createForOfBindingStatement=g,e.insertLeadingStatement=y,e.restoreEnclosingLabel=h,e.createCallBinding=b,e.inlineExpressions=x,e.createExpressionFromEntityName=S,e.createExpressionForPropertyName=k,e.createExpressionForObjectLiteralElementLike=T,e.getInternalName=A,e.isInternalName=w,e.getLocalName=O,e.isLocalName=P,e.getExportName=F,e.isExportName=I,e.getDeclarationName=L,e.getExternalModuleOrNamespaceExportName=M,e.getNamespaceMemberName=B,e.convertToFunctionBody=K,e.convertFunctionDeclarationToExpression=j,e.addPrologue=z,e.addStandardPrologue=U,e.addCustomPrologue=q,e.startsWithUseStrict=V,e.ensureUseStrict=$,e.parenthesizeBinaryOperand=W,e.parenthesizeForConditionalHead=Y,e.parenthesizeSubexpressionOfConditionalExpression=Q,e.parenthesizeForNew=Z,e.parenthesizeForAccess=ee,e.parenthesizePostfixOperand=te,e.parenthesizePrefixOperand=ne,e.parenthesizeListElements=re,e.parenthesizeExpressionForList=ie,e.parenthesizeExpressionForExpressionStatement=ae,e.parenthesizeElementTypeMember=oe,e.parenthesizeArrayTypeMember=se,e.parenthesizeElementTypeMembers=ce,e.parenthesizeTypeParameters=ue,e.parenthesizeConciseBody=_e;!function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All";}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=de,e.skipOuterExpressions=pe,e.skipParentheses=fe,e.skipAssertions=me,e.recreateOuterExpressions=he,e.startOnNewLine=ve,e.getExternalHelpersModuleName=be,e.getOrCreateExternalHelpersModuleNameIfNeeded=xe,e.getLocalNameForExternalImport=Se,e.getExternalModuleNameLiteral=ke,e.tryGetModuleNameFromFile=Ce,e.getInitializerOfBindingOrAssignmentElement=Ee,e.getTargetOfBindingOrAssignmentElement=Ne,e.getRestIndicatorOfBindingOrAssignmentElement=Ae,e.getPropertyNameOfBindingOrAssignmentElement=we,e.getElementsOfBindingOrAssignmentPattern=Oe,e.convertToArrayAssignmentElement=Pe,e.convertToObjectAssignmentElement=Fe,e.convertToAssignmentPattern=Ie,e.convertToObjectAssignmentPattern=Le,e.convertToArrayAssignmentPattern=Re,e.convertToAssignmentElementTarget=Me;}(r||(r={}));!function(e){function t(t,n,r,i){if(void 0===t||void 0===n)return t;e.aggregateTransformFlags(t);var a=n(t);if(a===t)return t;var o;if(void 0!==a)return o=e.isArray(a)?(i||s)(a):a,e.Debug.assertNode(o,r),e.aggregateTransformFlags(o),o}function n(t,n,r,i,a){if(void 0===t||void 0===n)return t;var o,s=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>s-i)&&(a=s-i),(i>0||a0&&_<=142||169===_)return o;switch(_){case 71:return e.updateIdentifier(o,u(o.typeArguments,s,e.isTypeNode));case 143:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 144:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 145:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o.default,s,e.isTypeNode));case 146:return e.updateParameter(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,l,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 147:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 148:return e.updatePropertySignature(o,u(o.modifiers,s,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateProperty(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 150:return e.updateMethodSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),i(o.parameters,s,c,u),a(o.body,s,c));case 153:return e.updateGetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 154:return e.updateSetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),a(o.body,s,c));case 155:return e.updateCallSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 156:return e.updateConstructSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 157:return e.updateIndexSignature(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 158:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 159:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),u(o.typeArguments,s,e.isTypeNode));case 160:return e.updateFunctionTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 161:return e.updateConstructorTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 162:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 163:return e.updateTypeLiteralNode(o,u(o.members,s,e.isTypeElement));case 164:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 165:return e.updateTypleTypeNode(o,u(o.elementTypes,s,e.isTypeNode));case 166:return e.updateUnionTypeNode(o,u(o.types,s,e.isTypeNode));case 167:return e.updateIntersectionTypeNode(o,u(o.types,s,e.isTypeNode));case 168:return e.updateParenthesizedType(o,t(o.type,s,e.isTypeNode));case 170:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 171:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 172:return e.updateMappedTypeNode(o,t(o.readonlyToken,l,e.isToken),t(o.typeParameter,s,e.isTypeParameterDeclaration),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode));case 173:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 174:return e.updateObjectBindingPattern(o,u(o.elements,s,e.isBindingElement));case 175:return e.updateArrayBindingPattern(o,u(o.elements,s,e.isArrayBindingElement));case 176:return e.updateBindingElement(o,t(o.dotDotDotToken,l,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 177:return e.updateArrayLiteral(o,u(o.elements,s,e.isExpression));case 178:return e.updateObjectLiteral(o,u(o.properties,s,e.isObjectLiteralElementLike));case 179:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 180:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 181:return e.updateCall(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 182:return e.updateNew(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 183:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 184:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 185:return e.updateParen(o,t(o.expression,s,e.isExpression));case 186:return e.updateFunctionExpression(o,u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),t(o.equalsGreaterThanToken,s,e.isToken),a(o.body,s,c));case 188:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 189:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 190:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 191:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 192:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 193:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 194:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression),t(o.operatorToken,s,e.isToken));case 195:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.questionToken,s,e.isToken),t(o.whenTrue,s,e.isExpression),t(o.colonToken,s,e.isToken),t(o.whenFalse,s,e.isExpression));case 196:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),u(o.templateSpans,s,e.isTemplateSpan));case 197:return e.updateYield(o,t(o.asteriskToken,l,e.isToken),t(o.expression,s,e.isExpression));case 198:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 199:return e.updateClassExpression(o,u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 201:return e.updateExpressionWithTypeArguments(o,u(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 202:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 203:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 204:return e.updateMetaProperty(o,t(o.name,s,e.isIdentifier));case 205:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 207:return e.updateBlock(o,u(o.statements,s,e.isStatement));case 208:return e.updateVariableStatement(o,u(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 210:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 211:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 212:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 213:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 214:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 215:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 216:return e.updateForOf(o,o.awaitModifier,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 217:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 218:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 219:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 220:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 222:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 223:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 224:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 226:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 227:return e.updateVariableDeclarationList(o,u(o.declarations,s,e.isVariableDeclaration));case 228:return e.updateFunctionDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 229:return e.updateClassDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 230:return e.updateInterfaceDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isTypeElement));case 231:return e.updateTypeAliasDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),t(o.type,s,e.isTypeNode));case 232:return e.updateEnumDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.members,s,e.isEnumMember));case 233:return e.updateModuleDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 234:return e.updateModuleBlock(o,u(o.statements,s,e.isStatement));case 235:return e.updateCaseBlock(o,u(o.clauses,s,e.isCaseOrDefaultClause));case 236:return e.updateNamespaceExportDeclaration(o,t(o.name,s,e.isIdentifier));case 237:return e.updateImportEqualsDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 238:return e.updateImportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 239:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 240:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 241:return e.updateNamedImports(o,u(o.elements,s,e.isImportSpecifier));case 242:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 243:return e.updateExportAssignment(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 244:return e.updateExportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 245:return e.updateNamedExports(o,u(o.elements,s,e.isExportSpecifier));case 246:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 249:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),u(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 250:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 251:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 252:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 253:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 254:return e.updateJsxAttributes(o,u(o.properties,s,e.isJsxAttributeLike));case 255:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 256:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 257:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),u(o.statements,s,e.isStatement));case 258:return e.updateDefaultClause(o,u(o.statements,s,e.isStatement));case 259:return e.updateHeritageClause(o,u(o.types,s,e.isExpressionWithTypeArguments));case 260:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 261:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 262:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 263:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 264:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 265:return e.updateSourceFileNode(o,r(o.statements,s,c));case 288:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));case 289:return e.updateCommaList(o,u(o.elements,s,e.isExpression));default:return o}}}function s(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=n,e.visitLexicalEnvironment=r,e.visitParameterList=i,e.visitFunctionBody=a,e.visitEachChild=o;}(r||(r={})),function(e){function t(e,t,n){return e?t(n,e):n}function n(e,t,n){return e?t(n,e):n}function r(r,i,a,o){if(void 0===r)return i;var s=o?n:e.reduceLeft,c=o||a,u=r.kind;if(u>0&&u<=142)return i;if(u>=158&&u<=173)return i;var l=i;switch(r.kind){case 206:case 209:case 200:case 225:case 287:break;case 143:l=t(r.left,a,l),l=t(r.right,a,l);break;case 144:l=t(r.expression,a,l);break;case 146:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 147:l=t(r.expression,a,l);break;case 148:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.questionToken,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 149:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 151:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 152:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 153:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 154:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 174:case 175:l=s(r.elements,c,l);break;case 176:l=t(r.propertyName,a,l),l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 177:l=s(r.elements,c,l);break;case 178:l=s(r.properties,c,l);break;case 179:l=t(r.expression,a,l),l=t(r.name,a,l);break;case 180:l=t(r.expression,a,l),l=t(r.argumentExpression,a,l);break;case 181:case 182:l=t(r.expression,a,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 183:l=t(r.tag,a,l),l=t(r.template,a,l);break;case 184:l=t(r.type,a,l),l=t(r.expression,a,l);break;case 186:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 187:l=s(r.modifiers,c,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:l=t(r.expression,a,l);break;case 192:case 193:l=t(r.operand,a,l);break;case 194:l=t(r.left,a,l),l=t(r.right,a,l);break;case 195:l=t(r.condition,a,l),l=t(r.whenTrue,a,l),l=t(r.whenFalse,a,l);break;case 196:l=t(r.head,a,l),l=s(r.templateSpans,c,l);break;case 199:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 201:l=t(r.expression,a,l),l=s(r.typeArguments,c,l);break;case 202:l=t(r.expression,a,l),l=t(r.type,a,l);break;case 205:l=t(r.expression,a,l),l=t(r.literal,a,l);break;case 207:l=s(r.statements,c,l);break;case 208:l=s(r.modifiers,c,l),l=t(r.declarationList,a,l);break;case 210:l=t(r.expression,a,l);break;case 211:l=t(r.expression,a,l),l=t(r.thenStatement,a,l),l=t(r.elseStatement,a,l);break;case 212:l=t(r.statement,a,l),l=t(r.expression,a,l);break;case 213:case 220:l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 214:l=t(r.initializer,a,l),l=t(r.condition,a,l),l=t(r.incrementor,a,l),l=t(r.statement,a,l);break;case 215:case 216:l=t(r.initializer,a,l),l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 219:case 223:l=t(r.expression,a,l);break;case 221:l=t(r.expression,a,l),l=t(r.caseBlock,a,l);break;case 222:l=t(r.label,a,l),l=t(r.statement,a,l);break;case 224:l=t(r.tryBlock,a,l),l=t(r.catchClause,a,l),l=t(r.finallyBlock,a,l);break;case 226:l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 227:l=s(r.declarations,c,l);break;case 228:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 229:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 232:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.members,c,l);break;case 233:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.body,a,l);break;case 234:l=s(r.statements,c,l);break;case 235:l=s(r.clauses,c,l);break;case 237:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.moduleReference,a,l);break;case 238:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.importClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 239:l=t(r.name,a,l),l=t(r.namedBindings,a,l);break;case 240:l=t(r.name,a,l);break;case 241:case 245:l=s(r.elements,c,l);break;case 242:case 246:l=t(r.propertyName,a,l),l=t(r.name,a,l);break;case 243:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.expression,a,l);break;case 244:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.exportClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 248:l=t(r.expression,a,l);break;case 249:l=t(r.openingElement,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingElement,a,l);break;case 250:case 251:l=t(r.tagName,a,l),l=t(r.attributes,a,l);break;case 254:l=s(r.properties,c,l);break;case 252:l=t(r.tagName,a,l);break;case 253:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 255:case 256:l=t(r.expression,a,l);break;case 257:l=t(r.expression,a,l);case 258:l=s(r.statements,c,l);break;case 259:l=s(r.types,c,l);break;case 260:l=t(r.variableDeclaration,a,l),l=t(r.block,a,l);break;case 261:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 262:l=t(r.name,a,l),l=t(r.objectAssignmentInitializer,a,l);break;case 263:l=t(r.expression,a,l);break;case 264:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 265:l=s(r.statements,c,l);break;case 288:l=t(r.expression,a,l);break;case 289:l=s(r.elements,c,l);}return l}function i(t,n){return e.some(n)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,n)),t):e.addRange(t,n):t}function a(t){return d.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function o(e){return s(e),e}function s(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=u(t);return e.computeTransformFlagsForNode(t,n)}function c(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,i=e;r=1)||1572864&f.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){_&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),a,o,i),_=void 0);var y=s(t,a,g);e.isComputedPropertyName(g)&&(d=e.append(d,y.argumentExpression)),r(t,f,y,f);}else _=e.append(_,f);}}_&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),a,o,i);}function a(t,n,i,a,o){var s=e.getElementsOfBindingOrAssignmentPattern(i),u=s.length;t.level<1&&t.downlevelIteration?a=c(t,e.createReadHelper(t.context,a,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[u-1])?void 0:u,o),!1,o):(1!==u&&(t.level<1||0===u)||e.every(s,e.isOmittedExpression))&&(a=c(t,a,!e.isDeclarationBindingElement(n)||0!==u,o));for(var l,_,d=0;d=1)if(1048576&p.transformFlags){var f=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(f),_=e.append(_,[f,p]),l=e.append(l,t.createArrayBindingOrAssignmentElement(f));}else l=e.append(l,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(d===u-1){var m=e.createArraySlice(a,d);r(t,p,m,p);}}else r(t,p,m=e.createElementAccess(a,d),p);}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),a,o,i),_)for(var g=0,y=_;g0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,x)}function x(e){return void 0!==e.decorators&&e.decorators.length>0}function S(t,n){var r=0;return e.some(n)&&(r|=1),e.getClassExtendsHeritageClauseElement(t)&&(r|=64),b(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),ft(t)?r|=8:yt(t)?r|=32:gt(t)&&(r|=16),Xt<=1&&7&r&&(r|=128),r}function k(n){var r=L(n,!0),i=S(n,r);128&i&&t.startLexicalEnvironment();var a=n.name||(5&i?e.getGeneratedNameForNode(n):void 0),o=2&i?C(n,a,i):T(n,a,i),s=[o];if(1&i&&K(s,r,128&i?e.getInternalName(n):e.getLocalName(n)),Z(s,n,!1),Z(s,n,!0),ne(s,n),128&i){var c=e.createTokenRange(e.skipTrivia(en.text,n.members.end),18),u=e.getInternalName(n),l=e.createPartiallyEmittedExpression(u);l.end=c.end,e.setEmitFlags(l,1536);var _=e.createReturn(l);_.pos=c.pos,e.setEmitFlags(_,1920),s.push(_),e.addRange(s,t.endLexicalEnvironment());var d=e.createImmediatelyInvokedArrowFunction(s);e.setEmitFlags(d,33554432);var p=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,d)]));e.setOriginalNode(p,n),e.setCommentRange(p,n),e.setSourceMapRange(p,e.moveRangePastDecorators(n)),e.startOnNewLine(p),s=[p];}return 8&i?vt(s,n):(128&i||2&i)&&(32&i?s.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&i&&s.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(o,4194304|e.getEmitFlags(o))),e.singleOrMany(s)}function T(t,n,r){var i=128&r?void 0:e.visitNodes(t.modifiers,y,e.isModifier),a=e.createClassDeclaration(void 0,i,n,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),E(t,0!=(64&r))),o=e.getEmitFlags(t);return 1&r&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}function C(t,n,r){var i=e.moveRangePastDecorators(t),a=Ct(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=E(t,0!=(64&r)),l=e.createClassExpression(void 0,n,void 0,s,c);e.setOriginalNode(l,t),e.setTextRange(l,i);var _=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,l):l)],1));return e.setOriginalNode(_,t),e.setTextRange(_,i),e.setCommentRange(_,t),_}function D(t){var n=L(t,!0),r=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),i=E(t,e.some(r,function(e){return 85===e.token})),a=e.createClassExpression(void 0,t.name,void 0,r,i);if(e.setOriginalNode(a,t),e.setTextRange(a,t),n.length>0){var o=[],s=e.createTempVariable(Wt);return 8388608&Gt.getNodeCheckFlags(t)&&(At(),sn[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(a,65536|e.getEmitFlags(a)),o.push(e.startOnNewLine(e.createAssignment(s,a))),e.addRange(o,j(n,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return a}function E(t,n){var r=[],i=N(t,n);return i&&r.push(i),e.addRange(r,e.visitNodes(t.members,m,e.isClassElement)),e.setTextRange(e.createNodeArray(r),t.members)}function N(n,r){var i=e.forEach(n.members,M),a=262144&n.transformFlags,o=e.getFirstConstructorWithBody(n);if(!i&&!a)return e.visitEachChild(o,u,t);var s=A(o),c=w(n,o,r);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||n),o))}function A(n){return e.visitParameterList(n&&n.parameters,u,t)||[]}function w(t,n,r){var i=[],a=0;if(Vt(),n){a=O(n,i);var o=P(n);e.addRange(i,e.map(o,I));}else r&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return K(i,L(t,!1),e.createThis()),n&&e.addRange(i,e.visitNodes(n.body.statements,u,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,$t()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),n?n.body.statements:t.members),!0),n?n.body:void 0)}function O(t,n){if(t.body){var r=t.body.statements,i=e.addPrologue(n,r,!1,u);if(i===r.length)return i;var a=r[i];return 210===a.kind&&e.isSuperCall(a.expression)?(n.push(e.visitNode(a,u,e.isStatement)),i+1):i}return 0}function P(t){return e.filter(t.parameters,F)}function F(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function I(t){e.Debug.assert(e.isIdentifier(t.name));var n=t.name,r=e.getMutableClone(n);e.setEmitFlags(r,1584);var i=e.getMutableClone(n);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),t.name),i)),e.moveRangePos(t,-1)))}function L(t,n){return e.filter(t.members,n?R:M)}function R(e){return B(e,!0)}function M(e){return B(e,!1)}function B(t,n){return 149===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function K(t,n,r){for(var i=0,a=n;i0?149===i.kind?e.createVoidZero():e.createNull():void 0,u=n(t,a,o,s,c,e.moveRangePastDecorators(i));return e.setEmitFlags(u,1536),u}}function ne(t,n){var r=re(n);r&&t.push(e.setOriginalNode(e.createStatement(r),n));}function re(r){var i=Q(r,r,W(r));if(i){var a=sn&&sn[e.getOriginalNodeId(r)],o=e.getLocalName(r,!1,!0),s=n(t,i,o),c=e.createAssignment(o,a?e.createAssignment(a,s):s);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(r)),c}}function ie(t){return e.visitNode(t.expression,u,e.isExpression)}function ae(n,r){var a;if(n){a=[];for(var o=0,s=n;o= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},u={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},l={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"};}(r||(r={}));!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;S=n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),S=void 0,r}function i(n){if(0==(16&n.transformFlags))return n;switch(n.kind){case 120:return;case 191:return a(n);case 151:return o(n);case 228:return s(n);case 186:return c(n);case 187:return u(n);default:return e.visitEachChild(n,i,t)}}function a(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,i,e.isExpression)),t),t)}function o(n){return e.updateMethod(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function s(n){return e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function c(n){return e.updateFunctionExpression(n,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function u(n){return e.updateArrowFunction(n,e.visitNodes(n.modifiers,i,e.isModifier),void 0,e.visitParameterList(n.parameters,i,t),void 0,n.equalsGreaterThanToken,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function l(r){C();var a=e.getOriginalNode(r,e.isFunctionLike).type,o=A<2?d(a):void 0,s=187===r.kind,c=0!=(8192&E.getNodeCheckFlags(r));if(s){var u=n(t,c,o,_(r.body)),l=D();if(e.some(l)){g=e.convertToFunctionBody(u);return e.updateBlock(g,e.setTextRange(e.createNodeArray(e.concatenate(g.statements,l)),g.statements))}return u}var f=[],m=e.addPrologue(f,r.body.statements,!1,i);f.push(e.createReturn(n(t,c,o,_(r.body,m)))),e.addRange(f,D());var g=e.createBlock(f,!0);return e.setTextRange(g,r.body),A>=2&&(4096&E.getNodeCheckFlags(r)?(p(),e.addEmitHelper(g,e.advancedAsyncSuperHelper)):2048&E.getNodeCheckFlags(r)&&(p(),e.addEmitHelper(g,e.asyncSuperHelper))),g}function _(n,r){if(e.isBlock(n))return e.updateBlock(n,e.visitLexicalEnvironment(n.statements,i,t,r));T();var a=e.convertToFunctionBody(e.visitNode(n,i,e.isConciseBody)),o=D();return e.updateBlock(a,e.setTextRange(e.createNodeArray(e.concatenate(a.statements,o)),a.statements))}function d(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=E.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}function p(){0==(1&k)&&(k|=1,t.enableSubstitution(181),t.enableSubstitution(179),t.enableSubstitution(180),t.enableEmitNotification(229),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(152));}function f(e,t,n){if(1&k&&b(t)){var r=6144&E.getNodeCheckFlags(t);if(r!==w){var i=w;return w=r,O(e,t,n),void(w=i)}}O(e,t,n);}function m(e,t){return t=P(e,t),1===e&&w?g(t):t}function g(e){switch(e.kind){case 179:return y(e);case 180:return h(e);case 181:return v(e)}return e}function y(t){return 97===t.expression.kind?x(e.createLiteral(e.unescapeLeadingUnderscores(t.name.escapedText)),t):t}function h(e){return 97===e.expression.kind?x(e.argumentExpression,e):e}function v(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?y(n):h(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function b(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function x(t,n){return 4096&w?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),n):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}var S,k,T=t.startLexicalEnvironment,C=t.resumeLexicalEnvironment,D=t.endLexicalEnvironment,E=t.getEmitResolver(),N=t.getCompilerOptions(),A=e.getEmitScriptTarget(N),w=0,O=t.onEmitNode,P=t.onSubstituteNode;return t.onEmitNode=f,t.onSubstituteNode=m,r}function n(t,n,r,a){t.requestEmitHelper(i);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),r?e.createExpressionFromEntityName(r):e.createVoidZero(),o])}var r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(r||(r={})),e.transformES2017=t;var i={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n const _super = name => super[name];\n "},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n const _super = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);\n "};}(r||(r={}));!function(e){function t(t){function s(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,c,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function c(e){return _(e,!1)}function u(e){return _(e,!0)}function l(e){if(120!==e.kind)return e}function _(n,r){if(0==(8&n.transformFlags))return n;switch(n.kind){case 191:return d(n);case 197:return p(n);case 222:return f(n);case 178:return g(n);case 194:return b(n,r);case 226:return x(n);case 216:return T(n,void 0);case 214:return S(n);case 190:return k(n);case 152:return w(n);case 151:return F(n);case 153:return O(n);case 154:return P(n);case 228:return I(n);case 186:return R(n);case 187:return L(n);case 146:return A(n);case 210:return y(n);case 185:return h(n,r);case 260:return v(n);default:return e.visitEachChild(n,c,t)}}function d(n){return 2&ie&&1&ie?e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.visitNode(n.expression,c,e.isExpression))),n),n):e.visitEachChild(n,c,t)}function p(n){if(2&ie&&1&ie&&n.asteriskToken){var i=e.visitNode(n.expression,c,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.updateYield(n,n.asteriskToken,a(t,o(t,i,i),i)))),n),n)}return e.visitEachChild(n,c,t)}function f(n){if(2&ie&&1&ie){var r=e.unwrapInnermostStatementOfLabel(n);return 216===r.kind&&r.awaitModifier?T(r,n):e.restoreEnclosingLabel(e.visitEachChild(n,c,t),n)}return e.visitEachChild(n,c,t)}function m(t){for(var n,r=[],i=0,a=t;i=2&&(4096&Q.getNodeCheckFlags(n)?(j(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&Q.getNodeCheckFlags(n)&&(j(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function B(t){H();var n=0,r=[],i=e.visitNode(t.body,c,e.isConciseBody);e.isBlock(i)&&(n=e.addPrologue(r,i.statements,!1,c)),e.addRange(r,K(void 0,t));var a=X();if(n>0||e.some(r)||e.some(a)){var o=e.convertToFunctionBody(i,!0);return e.addRange(r,o.statements.slice(n)),e.addRange(r,a),e.updateBlock(o,e.setTextRange(e.createNodeArray(r),o.statements))}return i}function K(n,r){for(var i=0,a=r.parameters;i=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(c),e.createCall(e.getHelperName("__assign"),void 0,n))}function r(t,n){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__await"),void 0,[n])}function i(t,n){return t.requestEmitHelper(u),t.requestEmitHelper(l),(n.emitNode||(n.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),n])}function a(t,n,r){return t.requestEmitHelper(u),t.requestEmitHelper(_),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}function o(t,n,r){return t.requestEmitHelper(d),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}var s;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(s||(s={})),e.transformESNext=t;var c={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };"};e.createAssignHelper=n;var u={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\n "},l={name:"typescript:asyncGenerator",scoped:!1,text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };\n '},_={name:"typescript:asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n };\n '},d={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncIterator) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator];\n return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n };\n '};}(r||(r={}));!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function i(e){return 4&e.transformFlags?a(e):e}function a(n){switch(n.kind){case 249:return s(n,!1);case 250:return c(n,!1);case 256:return b(n);default:return e.visitEachChild(n,i,t)}}function o(t){switch(t.kind){case 10:return p(t);case 256:return b(t);case 249:return s(t,!0);case 250:return c(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function s(e,t){return u(e.openingElement,e.children,t,e)}function c(e,t){return u(e,void 0,t,e)}function u(n,r,i,a){var s,c=h(n),u=n.attributes.properties;if(0===u.length)s=e.createNull();else{var d=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,l):e.createObjectLiteral(e.map(t,_))}));e.isJsxSpreadAttribute(u[0])&&d.unshift(e.createObjectLiteral()),(s=e.singleOrUndefined(d))||(s=e.createAssignHelper(t,d));}var p=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(),x.reactNamespace,c,s,e.mapDefined(r,o),n,a);return i&&e.startOnNewLine(p),p}function l(t){return e.visitNode(t.expression,i,e.isExpression)}function _(t){var n=v(t),r=d(t.initializer);return e.createPropertyAssignment(n,r)}function d(t){if(void 0===t)return e.createTrue();if(9===t.kind){var n=y(t.text);return n?e.setTextRange(e.createLiteral(n),t):t}if(256===t.kind)return void 0===t.expression?e.createTrue():b(t);e.Debug.failBadSyntaxKind(t);}function p(t){var n=f(e.getTextOfNode(t,!0));return void 0===n?void 0:e.createLiteral(n)}function f(t){for(var n,r=0,i=-1,a=0;a=0,"statementOffset not initialized correctly!"));var s=r&&95!==e.skipOuterExpressions(r.expression).kind,u=A(a,t,s,i,o);1!==u&&2!==u||o++,t&&(1===u&&(Pt|=4096),e.addRange(a,e.visitNodes(t.body.statements,c,e.isStatement,o))),!s||2===u||t&&N(t.body)||a.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(a,Tt()),t&&J(a,t,!1);var l=e.createBlock(e.setTextRange(e.createNodeArray(a),t?t.body.statements:n.members),!0);return e.setTextRange(l,t?t.body:n),t||e.setEmitFlags(l,1536),l}function N(t){if(219===t.kind)return!0;if(211===t.kind){var n=t;if(n.elseStatement)return N(n.thenStatement)&&N(n.elseStatement)}else if(207===t.kind){var r=e.lastOrUndefined(t.statements);if(r&&N(r))return!0}return!1}function A(t,n,r,i,a){if(!r)return n&&K(t,n),0;if(!n)return t.push(e.createReturn(O())),2;if(i)return j(t,n,O()),dt(),1;var o,s,c=n.body.statements;if(a0?n.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,c,t,0,o))),1048576)):a&&n.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,c,e.isExpression))),1048576));}function R(t,n,r,i){i=e.visitNode(i,c,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(i,48|e.getEmitFlags(i))),n))]),n),417));a.startsOnNewLine=!0,e.setTextRange(a,n),e.setEmitFlags(a,1048992),t.push(a);}function M(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function B(t,n,r){var i=e.lastOrUndefined(n.parameters);if(M(i,r)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=n.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u);}}function K(t,n){32768&n.transformFlags&&187!==n.kind&&j(t,n,e.createThis());}function j(t,n,r,i){dt();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,n),t.push(a);}function J(t,n,r){if(16384&Pt){var i=void 0;switch(n.kind){case 187:return t;case 151:case 153:case 154:i=e.createVoidZero();break;case 152:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(n))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(n);}var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,i)]));if(r)return[a].concat(t);t.unshift(a);}return t}function z(t,n){for(var r=0,i=n.members;r0&&(o=!0),e.isBlock(l))a=e.addCustomPrologue(u,l.statements,a,c),r=l.statements,e.addRange(u,e.visitNodes(l.statements,c,e.isStatement,a)),!o&&l.multiLine&&(o=!0);else{e.Debug.assert(187===n.kind),r=e.moveRangeEnd(l,-1);var _=n.equalsGreaterThanToken;e.nodeIsSynthesized(_)||e.nodeIsSynthesized(l)||(e.rangeEndIsOnSameLineAsRangeStart(_,l,wt)?s=!0:o=!0);var d=e.visitNode(l,c,e.isExpression),p=e.createReturn(d);e.setTextRange(p,l),e.setEmitFlags(p,1440),u.push(p),i=l;}var f=t.endLexicalEnvironment();e.addRange(u,f),J(u,n,!1),!o&&f&&f.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(u),r),o);return e.setTextRange(m,n.body),!o&&s&&e.setEmitFlags(m,1),i&&e.setTokenSourceMapRange(m,18,i),e.setOriginalNode(m,n.body),m}function Q(n){var r=e.visitFunctionBody(n.body,u,t);return e.updateBlock(r,e.setTextRange(e.createNodeArray(J(r.statements,n,!0)),r.statements))}function Z(n,r){if(r)return e.visitEachChild(n,c,t);var o=256&Pt?i(4032,512):i(3904,128),s=e.visitEachChild(n,c,t);return a(o,0,0),s}function ee(n){switch(n.expression.kind){case 185:return e.updateStatement(n,te(n.expression,!1));case 194:return e.updateStatement(n,ne(n.expression,!1))}return e.visitEachChild(n,c,t)}function te(n,r){if(!r)switch(n.expression.kind){case 185:return e.updateParen(n,te(n.expression,!1));case 194:return e.updateParen(n,ne(n.expression,!1))}return e.visitEachChild(n,c,t)}function ne(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,c,t,0,r):e.visitEachChild(n,c,t)}function re(n){var r,o=i(0,e.hasModifier(n,1)?32:0);if(Ft&&0==(3&n.declarationList.flags)){for(var s=void 0,u=0,l=n.declarationList.declarations;u=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);r;){if(r===i||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent;}return!1}function vt(t){return 1&It&&16&Pt?e.setTextRange(e.createIdentifier("_this"),t):t}function bt(t,n){return e.hasModifier(n,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function xt(t,n){if(!t||!n)return!1;if(e.some(t.parameters))return!1;var r=e.firstOrUndefined(t.body.statements);if(!r||!e.nodeIsSynthesized(r)||210!==r.kind)return!1;var i=r.expression;if(!e.nodeIsSynthesized(i)||181!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||97!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||198!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}var St=t.startLexicalEnvironment,kt=t.resumeLexicalEnvironment,Tt=t.endLexicalEnvironment,Ct=t.hoistVariableDeclaration,Dt=t.getCompilerOptions(),Et=t.getEmitResolver(),Nt=t.onSubstituteNode,At=t.onEmitNode;t.onEmitNode=lt,t.onSubstituteNode=pt;var wt,Ot,Pt,Ft,It;return r}function n(t,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__extends"),void 0,[n,e.createIdentifier("_super")])}var r;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings";}(r||(r={}));var i;!function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter";}(i||(i={}));var a;!function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return";}(a||(a={}));var o;!function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn";}(o||(o={}));var s;!function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask";}(s||(s={})),e.transformES2015=t;var c={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"};}(r||(r={}));!function(e){function t(t){function n(e){return e}function r(t,n,r){switch(n.kind){case 251:case 252:case 250:var i=n.tagName;u[e.getOriginalNodeId(i)]=!0;}c(t,n,r);}function i(t,n){return n.id&&u&&u[n.id]?_(t,n):(n=_(t,n),e.isPropertyAccessExpression(n)?a(n):e.isPropertyAssignment(n)?o(n):n)}function a(t){var n=s(t.name);return n?e.setTextRange(e.createElementAccess(t.expression,n),t):t}function o(t){var n=e.isIdentifier(t.name)&&s(t.name);return n?e.updatePropertyAssignment(t,n,t.initializer):t}function s(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.unescapeLeadingUnderscores(t.escapedText)):void 0);if(n>=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,l=t.getCompilerOptions();1!==l.jsx&&3!==l.jsx||(c=t.onEmitNode,t.onEmitNode=r,t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),u=[]);var _=t.onSubstituteNode;return t.onSubstituteNode=i,t.enableSubstitution(179),t.enableSubstitution(261),n}e.transformES5=t;}(r||(r={}));!function(e){function t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}function n(n){function i(t){if(t.isDeclarationFile||0==(512&t.transformFlags))return t;Ot=t;var r=e.visitEachChild(t,a,n);return e.addEmitHelpers(r,n.readEmitHelpers()),Ot=void 0,r}function a(t){var r=t.transformFlags;return Lt?o(t):It?s(t):256&r?u(t):512&r?e.visitEachChild(t,a,n):t}function o(e){switch(e.kind){case 212:return j(e);case 213:return z(e);case 221:return te(e);case 222:return re(e);default:return s(e)}}function s(t){switch(t.kind){case 228:return l(t);case 186:return _(t);case 153:case 154:return d(t);case 208:return f(t);case 214:return q(t);case 215:return $(t);case 218:return X(t);case 217:return G(t);case 219:return Q(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,a,n):t}}function c(t){switch(t.kind){case 194:return m(t);case 195:return S(t);case 197:return k(t);case 177:return T(t);case 178:return D(t);case 180:return E(t);case 181:return N(t);case 182:return A(t);default:return e.visitEachChild(t,a,n)}}function u(t){switch(t.kind){case 228:return l(t);case 186:return _(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,a,n)}}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,p(t.body)),t),t);else{var r=It,i=Lt;It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i;}return It?void Ct(t):t}function _(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,p(t.body)),t),t);else{var r=It,i=Lt;It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i;}return t}function d(t){var r=It,i=Lt;return It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i,t}function p(t){var n=[],r=It,i=Lt,o=Rt,s=Mt,c=Bt,u=Kt,l=jt,_=Jt,d=en,p=zt,f=Ut,m=qt,g=Vt;It=!0,Lt=!1,Rt=void 0,Mt=void 0,Bt=void 0,Kt=void 0,jt=void 0,Jt=void 0,en=1,zt=void 0,Ut=void 0,qt=void 0,Vt=e.createTempVariable(void 0),kt();var y=e.addPrologue(n,t.statements,!1,a);w(t.statements,y);var h=rt();return e.addRange(n,Tt()),n.push(e.createReturn(h)),It=r,Lt=i,Rt=o,Mt=s,Bt=c,Kt=u,jt=l,Jt=_,en=d,zt=p,Ut=f,qt=m,Vt=g,e.setTextRange(e.createBlock(n,t.multiLine),t)}function f(t){if(16777216&t.transformFlags)R(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n=59&&e<=70}function y(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function h(t){var r=t.left,i=t.right;if(oe(i)){var o=void 0;switch(r.kind){case 179:o=e.updatePropertyAccess(r,_e(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),r.name);break;case 180:o=e.updateElementAccess(r,_e(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),_e(e.visitNode(r.argumentExpression,a,e.isExpression)));break;default:o=e.visitNode(r,a,e.isExpression);}var s=t.operatorToken.kind;return g(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(_e(o),y(s),e.visitNode(i,a,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(i,a,e.isExpression))}return e.visitEachChild(t,a,n)}function v(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return x(t);var r=e.getMutableClone(t);return r.left=_e(e.visitNode(t.left,a,e.isExpression)),r.right=e.visitNode(t.right,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function b(t){var n=pe(),r=de();return We(r,e.visitNode(t.left,a,e.isExpression),t.left),53===t.operatorToken.kind?Xe(n,r,t.left):He(n,r,t.left),We(r,e.visitNode(t.right,a,e.isExpression),t.right),fe(n),r}function x(t){function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(oe(t)&&r.length>0&&(nt(1,[e.createStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,a,e.isExpression)));}var r=[];return n(t.left),n(t.right),e.inlineExpressions(r)}function S(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var r=pe(),i=pe(),o=de();return Xe(r,e.visitNode(t.condition,a,e.isExpression),t.condition),We(o,e.visitNode(t.whenTrue,a,e.isExpression),t.whenTrue),Ge(i),fe(r),We(o,e.visitNode(t.whenFalse,a,e.isExpression),t.whenFalse),fe(i),o}return e.visitEachChild(t,a,n)}function k(t){var r=pe(),i=e.visitNode(t.expression,a,e.isExpression);return t.asteriskToken?Ye(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(n,i,t):i,t):Qe(i,t),fe(r),qe(t)}function T(e){return C(e.elements,void 0,void 0,e.multiLine)}function C(t,n,r,i){function o(t,r){if(oe(r)&&t.length>0){var o=void 0!==s;s||(s=de()),We(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(n?[n].concat(t):t,i)),n=void 0,t=[];}return t.push(e.visitNode(r,a,e.isExpression)),t}var s,c=se(t);if(c>0){s=de();var u=e.visitNodes(t,a,e.isExpression,0,c);We(s,e.createArrayLiteral(n?[n].concat(u):u)),n=void 0;}var l=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(l,i)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(l):l,i),r)}function D(t){function n(n,r){oe(r)&&n.length>0&&($e(e.createStatement(e.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(t,r,s),c=e.visitNode(o,a,e.isExpression);return c&&(i&&(c.startsOnNewLine=!0),n.push(c)),n}var r=t.properties,i=t.multiLine,o=se(r),s=de();We(s,e.createObjectLiteral(e.visitNodes(r,a,e.isObjectLiteralElementLike,0,o),i));var c=e.reduceLeft(r,n,[],o);return c.push(i?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function E(t){if(oe(t.argumentExpression)){var r=e.getMutableClone(t);return r.expression=_e(e.visitNode(t.expression,a,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(t.argumentExpression,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function N(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(t.expression,Dt,Nt,!0),i=r.target,o=r.thisArg;return e.setOriginalNode(e.createFunctionApply(_e(e.visitNode(i,a,e.isLeftHandSideExpression)),o,C(t.arguments),t),t)}return e.visitEachChild(t,a,n)}function A(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Dt),i=r.target,o=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(_e(e.visitNode(i,a,e.isExpression)),o,C(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,a,n)}function w(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0);l++)u.push(M(i));u.length&&($e(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[]);}}function M(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,a,e.isExpression)),t)}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var n=pe(),r=t.elseStatement?pe():void 0;Xe(t.elseStatement?r:n,e.visitNode(t.expression,a,e.isExpression),t.expression),O(t.thenStatement),t.elseStatement&&(Ge(n),fe(r),O(t.elseStatement)),fe(n);}else $e(e.visitNode(t,a,e.isStatement));else $e(e.visitNode(t,a,e.isStatement));}function K(t){if(oe(t)){var n=pe(),r=pe();De(n),fe(r),O(t.statement),fe(n),He(r,e.visitNode(t.expression,a,e.isExpression)),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function j(t){return Lt?(Ce(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function J(t){if(oe(t)){var n=pe(),r=De(n);fe(n),Xe(r,e.visitNode(t.expression,a,e.isExpression)),O(t.statement),Ge(n),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function z(t){return Lt?(Ce(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function U(t){if(oe(t)){var n=pe(),r=pe(),i=De(r);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?R(o):$e(e.setTextRange(e.createStatement(e.visitNode(o,a,e.isExpression)),o));}fe(n),t.condition&&Xe(i,e.visitNode(t.condition,a,e.isExpression)),O(t.statement),fe(r),t.incrementor&&$e(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,a,e.isExpression)),t.incrementor)),Ge(n),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function q(t){Lt&&Ce();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var i=0,o=r.declarations;i0?e.inlineExpressions(e.map(c,M)):void 0,e.visitNode(t.condition,a,e.isExpression),e.visitNode(t.incrementor,a,e.isExpression),e.visitNode(t.statement,a,e.isStatement,e.liftToBlock));}else t=e.visitEachChild(t,a,n);return Lt&&Ee(),t}function V(t){if(oe(t)){var n=de(),r=de(),i=e.createLoopVariable(),o=t.initializer;Dt(i),We(n,e.createArrayLiteral()),$e(e.createForIn(r,e.visitNode(t.expression,a,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(n,"push"),void 0,[r])))),We(i,e.createLiteral(0));var s=pe(),c=pe(),u=De(c);fe(s),Xe(u,e.createLessThan(i,e.createPropertyAccess(n,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var _=0,d=o.declarations;_0?Ge(n,t):$e(t);}function G(t){if(Lt){var r=Ke(t.label&&e.unescapeLeadingUnderscores(t.label.escapedText));if(r>0)return ze(r,t)}return e.visitEachChild(t,a,n)}function H(t){var n=Be(t.label?e.unescapeLeadingUnderscores(t.label.escapedText):void 0);n>0?Ge(n,t):$e(t);}function X(t){if(Lt){var r=Be(t.label&&e.unescapeLeadingUnderscores(t.label.escapedText));if(r>0)return ze(r,t)}return e.visitEachChild(t,a,n)}function Y(t){Ze(e.visitNode(t.expression,a,e.isExpression),t);}function Q(t){return Ue(e.visitNode(t.expression,a,e.isExpression),t)}function Z(t){oe(t)?(ve(_e(e.visitNode(t.expression,a,e.isExpression))),O(t.statement),be()):$e(e.visitNode(t,a,e.isStatement));}function ee(t){if(oe(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,i=Ae(),o=_e(e.visitNode(t.expression,a,e.isExpression)),s=[],c=-1,u=0;u0)break;d.push(e.createCaseClause(e.visitNode(f.expression,a,e.isExpression),[ze(s[u],f.expression)]));}else p++;d.length&&($e(e.createSwitch(o,e.createCaseBlock(d))),_+=d.length,d=[]),p>0&&(_+=p,p=0);}Ge(c>=0?s[c]:i);for(u=0;u=0;n--){var r=Kt[n];if(!Le(r))break;if(r.labelText===e)return!0}return!1}function Be(e){if(Kt)if(e)for(t=Kt.length-1;t>=0;t--){if(Le(n=Kt[t])&&n.labelText===e)return n.breakLabel;if(Ie(n)&&Me(e,t-1))return n.breakLabel}else for(var t=Kt.length-1;t>=0;t--){var n=Kt[t];if(Ie(n))return n.breakLabel}return 0}function Ke(e){if(Kt)if(e){for(t=Kt.length-1;t>=0;t--)if(Re(n=Kt[t])&&Me(e,t-1))return n.continueLabel}else for(var t=Kt.length-1;t>=0;t--){var n=Kt[t];if(Re(n))return n.continueLabel}return 0}function je(t){if(t>0){void 0===Jt&&(Jt=[]);var n=e.createLiteral(-1);return void 0===Jt[t]?Jt[t]=[n]:Jt[t].push(n),n}return e.createOmittedExpression()}function Je(n){var r=e.createLiteral(n);return e.addSyntheticTrailingComment(r,3,t(n)),r}function ze(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([Je(3),je(t)])),n)}function Ue(t,n){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Je(2),t]:[Je(2)])),n)}function qe(t){return e.setTextRange(e.createCall(e.createPropertyAccess(Vt,"sent"),void 0,[]),t)}function Ve(){nt(0);}function $e(e){e?nt(1,[e]):Ve();}function We(e,t,n){nt(2,[e,t],n);}function Ge(e,t){nt(3,[e],t);}function He(e,t,n){nt(4,[e,t],n);}function Xe(e,t,n){nt(5,[e,t],n);}function Ye(e,t){nt(7,[e],t);}function Qe(e,t){nt(6,[e],t);}function Ze(e,t){nt(8,[e],t);}function et(e,t){nt(9,[e],t);}function tt(){nt(10);}function nt(e,t,n){void 0===zt&&(zt=[],Ut=[],qt=[]),void 0===jt&&fe(pe());var r=zt.length;zt[r]=e,Ut[r]=t,qt[r]=n;}function rt(){tn=0,nn=0,$t=void 0,Wt=!1,Gt=!1,Ht=void 0,Xt=void 0,Yt=void 0,Qt=void 0,Zt=void 0;var t=it();return r(n,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Vt)],void 0,e.createBlock(t,t.length>0)),524288))}function it(){if(zt){for(var t=0;t=0;n--){var r=Zt[n];Xt=[e.createWith(r.expression,e.createBlock(Xt))];}if(Qt){var i=Qt.startLabel,a=Qt.catchLabel,o=Qt.finallyLabel,s=Qt.endLabel;Xt.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Vt,"trys"),"push"),void 0,[e.createArrayLiteral([je(i),je(a),je(o),je(s)])]))),Qt=void 0;}t&&Xt.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Vt,"label"),e.createLiteral(nn+1))));}Ht.push(e.createCaseClause(e.createLiteral(nn),Xt||[])),Xt=void 0;}function ut(e){if(jt)for(var t=0;t 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'};}(r||(r={}));!function(e){function t(t){function a(t){switch(t){case e.ModuleKind.AMD:return u;case e.ModuleKind.UMD:return l;default:return c}}function o(t){if(t.isDeclarationFile||!(e.isExternalModule(t)||Z.isolatedModules||67108864&t.transformFlags))return t;oe=t,se=e.collectExternalModuleInfo(t,ee,Z),le[e.getOriginalNodeId(t)]=se;var n=a(re)(t);return oe=void 0,se=void 0,ue=!1,e.aggregateTransformFlags(n)}function s(){return!(se.exportEquals||!e.isExternalModule(oe))}function c(n){Y();var i=[],a=Z.alwaysStrict||!Z.noImplicitUseStrict&&e.isExternalModule(oe),o=e.addPrologue(i,n.statements,a,f);s()&&e.append(i,K()),e.append(i,e.visitNode(se.externalHelpersImportDeclaration,f,e.isStatement)),e.addRange(i,e.visitNodes(n.statements,f,e.isStatement,o)),p(i,!1),e.addRange(i,Q());var c=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(i),n.statements));return se.hasExportStarsToExportValues&&!Z.importHelpers&&e.addEmitHelper(c,r),e.addEmitHelpers(c,t.readEmitHelpers()),c}function u(t){var n=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(t,te,Z),i=_(t,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames;return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(n,void 0,(r?[r]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(a,o)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(s),void 0,d(t))])))]),t.statements))}function l(t){var n=_(t,!1),r=n.aliasedModuleNames,i=n.unaliasedModuleNames,a=n.importAliasNames,o=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,[e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,i)),e.createIdentifier("factory")]))])))],!0),void 0));return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(o,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(a),void 0,d(t))]))]),t.statements))}function _(t,n){for(var r=[],i=[],a=[],o=0,s=t.amdDependencies;o=2?2:0)),t));}else r&&e.isDefaultImport(t)&&(n=e.append(n,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)),t)],ne>=2?2:0))));if(w(t)){var a=e.getOriginalNodeId(t);_e[a]=P(_e[a],t);}else n=P(n,t);return e.singleOrMany(n)}function x(t){var n=e.getExternalModuleNameLiteral(t,oe,te,ee,Z),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function S(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var n;if(re!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(J(t.name,x(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,x(t))],ne>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(J(e.getExportName(t),e.getLocalName(t))),t))),w(t)){var r=e.getOriginalNodeId(t);_e[r]=F(_e[r],t);}else n=F(n,t);return e.singleOrMany(n)}function k(r){if(r.moduleSpecifier){var i=e.getGeneratedNameForNode(r);if(r.exportClause){var a=[];re!==e.ModuleKind.AMD&&a.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,x(r))])),r));for(var o=0,s=r.exportClause.elements;o0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(e.createVariableDeclaration(t),64);k?k.push(n):k=[n];}function m(t){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),T?T.push(t):T=[t];}function g(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended."),E[A]=k,N[A]=T,A++,k=void 0,T=void 0;}function y(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is already suspended."),w=!0;}function h(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(w,"Lexical environment is not suspended."),w=!1;}function v(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended.");var t;if((k||T)&&(T&&(t=T.slice()),k)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(k));t?t.push(n):t=[n];}return A--,k=E[A],T=N[A],0===A&&(E=[],N=[]),t}function b(t){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),C=e.append(C,t);}function x(){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed.");var t=C;return C=void 0,t}function S(){if(F<3){for(var t=0,n=i;t=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),S.sourceMapMappings+=r(v.nameIndex-x),x=v.nameIndex),b=v,S.sourceMapDecodedMappings.push(b);}}function u(t){if(!C&&!e.positionIsSynthesized(t)){T&&e.performance.mark("beforeSourcemap");var r=e.getLineAndCharacterOfPosition(m,t);r.line++,r.character++;var i=n.getLine(),a=n.getColumn();!v||v.emittedLine!==i||v.emittedColumn!==a||v.sourceIndex===h&&(v.sourceLine>r.line||v.sourceLine===r.line&&v.sourceColumn>r.character)?(c(),v={emittedLine:i,emittedColumn:a,sourceLine:r.line,sourceColumn:r.character,sourceIndex:h}):(v.sourceLine=r.line,v.sourceColumn=r.character,v.sourceIndex=h),T&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"));}}function l(e,t,n){if(C)return n(e,t);if(t){var r=t.emitNode,i=r&&r.flags,o=r&&r.sourceMapRange,s=o||t,c=s.pos,l=s.end,_=o&&o.source,p=m;_===p&&(_=void 0),_&&d(_),287!==t.kind&&0==(16&i)&&c>=0&&u(a(c)),_&&d(p),64&i?(C=!0,n(e,t),C=!1):n(e,t),_&&d(_),287!==t.kind&&0==(32&i)&&l>=0&&u(l),_&&d(p);}}function _(e,t,n,r){if(C)return r(t,n);var i=e&&e.emitNode,o=i&&i.flags,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[t];return n=a(s?s.pos:n),0==(128&o)&&n>=0&&u(n),n=r(t,n),s&&(n=s.end),0==(256&o)&&n>=0&&u(n),n}function d(n){if(!C){g=(m=n).text;var r=k.sourceRoot?t.getCommonSourceDirectory():y,i=e.getRelativePathToDirectoryOrUrl(r,m.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);-1===(h=e.indexOf(S.sourceMapSources,i))&&(h=S.sourceMapSources.length,S.sourceMapSources.push(i),S.inputSourceFileNames.push(m.fileName),k.inlineSources&&S.sourceMapSourcesContent.push(m.text));}}function p(){if(!C)return c(),JSON.stringify({version:3,file:S.sourceMapFile,sourceRoot:S.sourceMapSourceRoot,sources:S.sourceMapSources,names:S.sourceMapNames,mappings:S.sourceMapMappings,sourcesContent:S.sourceMapSourcesContent})}function f(){if(!C){if(k.inlineSourceMap){var t=e.convertToBase64(p());return S.jsSourceMappingURL="data:application/json;base64,"+t}return S.jsSourceMappingURL}}var m,g,y,h,v,b,x,S,k=t.getCompilerOptions(),T=k.extendedDiagnostics,C=!(k.sourceMap||k.inlineSourceMap);return{initialize:o,reset:s,getSourceMapData:function(){return S},setSourceFile:d,emitPos:u,emitNodeWithSourceMap:l,emitTokenWithSourceMap:_,getText:p,getSourceMappingURL:f}}function n(e){if(e<64)return a.charAt(e);throw TypeError(e+": not a 64 based value")}function r(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;(e>>=5)>0&&(r|=32),t+=n(r);}while(e>0);return t}var i={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";}(r||(r={}));!function(e){function t(t,n){function r(t,n,r){if(j)r(t,n);else if(n){K=!1;var a=n.emitNode,o=a&&a.flags,s=a&&a.commentRange||n,c=s.pos,u=s.end;if(c<0&&u<0||c===u)i(t,n,a,o,r);else{I&&e.performance.mark("preEmitNodeWithComment");var l=287!==n.kind,d=c<0||0!=(512&o)||10===n.kind,p=u<0||0!=(1024&o)||10===n.kind;d||_(c,l);var f=R,g=M,y=B;d||(R=c),p||(M=u,227===n.kind&&(B=u)),I&&e.performance.measure("commentTime","preEmitNodeWithComment"),i(t,n,a,o,r),I&&e.performance.mark("postEmitNodeWithComment"),R=f,M=g,B=y,!p&&l&&m(u),I&&e.performance.measure("commentTime","postEmitNodeWithComment");}}}function i(t,n,r,i,s){var c=r&&r.leadingComments;e.some(c)&&(I&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,a),I&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,n,i,s);var l=r&&r.trailingComments;e.some(l)&&(I&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,o),I&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"));}function a(e){2===e.kind&&A.writeLine(),s(e),e.hasTrailingNewLine||2===e.kind?A.writeLine():A.write(" ");}function o(e){A.isAtStartOfLine()||A.write(" "),s(e),e.hasTrailingNewLine&&A.writeLine();}function s(t){var n=c(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,A,0,n.length,L);}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,n,r){2048&n?(j=!0,r(e,t),j=!1):r(e,t);}function l(t,n,r){I&&e.performance.mark("preEmitBodyWithDetachedComments");var i=n.pos,a=n.end,o=e.getEmitFlags(t),s=i<0||0!=(512&o),c=j||a<0||0!=(1024&o);s||D(n),I&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!j?(j=!0,r(t),j=!1):r(t),I&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(_(n.end,!0),K&&!A.isAtStartOfLine()&&A.writeLine()),I&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns");}function _(e,t){K=!1,t?v(e,p):0===e&&v(e,d);}function d(e,t,n,r,i){N(e,t)&&p(e,t,n,r,i);}function p(t,r,i,a,o){K||(e.emitNewLineBeforeLeadingCommentOfPosition(P,A,o,t),K=!0),n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a?A.writeLine():A.write(" ");}function f(e){j||-1===e||_(e,!0);}function m(e){b(e,g);}function g(t,r,i,a){A.isAtStartOfLine()||A.write(" "),n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a&&A.writeLine();}function y(t,n){j||(I&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),b(t,n?g:h),I&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"));}function h(t,r,i,a){n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a?A.writeLine():A.write(" ");}function v(t,n){-1!==R&&t===R||(T(t)?C(n):e.forEachLeadingCommentRange(O,t,n,t));}function b(t,n){(-1===M||t!==M&&t!==B)&&e.forEachTrailingCommentRange(O,t,n);}function x(){w=void 0,O=void 0,P=void 0,F=void 0;}function S(e){A=e;}function k(t){O=(w=t).text,P=e.getLineStarts(w),F=void 0;}function T(t){return void 0!==F&&e.lastOrUndefined(F).nodePos===t}function C(t){var n=e.lastOrUndefined(F).detachedCommentEndPos;F.length-1?F.pop():F=void 0,e.forEachLeadingCommentRange(O,n,t,n);}function D(t){var n=e.emitDetachedComments(O,P,A,E,t,L,j);n&&(F?F.push(n):F=[n]);}function E(t,r,i,a,o,s){n&&n(a),e.writeCommentRange(t,r,i,a,o,s),n&&n(o);}function N(t,n){return e.isRecognizedTripleSlashComment(O,t,n)}var A,w,O,P,F,I=t.extendedDiagnostics,L=e.getNewLineCharacter(t),R=-1,M=-1,B=-1,K=!1,j=t.removeComments;return{reset:x,setWriter:S,setSourceFile:k,emitNodeWithComments:r,emitBodyWithDetachedComments:l,emitTrailingCommentsOfPosition:y,emitLeadingCommentsOfPosition:f}}e.createCommentWriter=t;}(r||(r={}));!function(e){function t(t,r,i){function a(e,i){var a=e.declarationFilePath;n(t,r,o,a,i,!1);}var o=e.createDiagnosticCollection();return e.forEachEmittedFile(t,a,i),o.getDiagnostics(i?i.fileName:void 0)}function n(t,n,r,i,a,o){function s(e){return be.substring(e.pos,e.end).indexOf("@internal")>=0}function c(t){if(t){var n=e.getLeadingCommentRanges(be,t.pos);if(e.forEach(n,s))return;oe(t);}}function u(){var t=e.createTextWriter(ge);t.trackSymbol=f,t.reportInaccessibleThisError=g,t.reportPrivateInBaseOfClassExpression=m,t.writeKeyword=t.write,t.writeOperator=t.write,t.writePunctuation=t.write,t.writeSpace=t.write,t.writeStringLiteral=t.writeLiteral,t.writeParameter=t.write,t.writeProperty=t.write,t.writeSymbol=t.write,l(t);}function l(e){pe=e,ce=e.write,de=e.writeTextOfNode,ue=e.writeLine,le=e.increaseIndent,_e=e.decreaseIndent;}function _(t){var n=pe;e.forEach(t,function(t){var n;226===t.kind?n=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(Oe,function(e){return e.node===n?e:void 0});if(!r&&Ce&&(r=e.forEach(Ce,function(e){return e.node===n?e:void 0})),r)if(238===r.node.kind)r.isVisible=!0;else{u();for(var i=r.indent;i;i--)le();233===n.kind&&(e.Debug.assert(void 0===Ce),Ce=[]),O(n),233===n.kind&&(r.subModuleElementDeclarationEmitInfo=Ce,Ce=void 0),r.asynchronousOutput=pe.getText();}}),l(n);}function d(t){if(t){De||(De=e.createMap());for(var n=0,r=t;n")));}(t);case 159:return function(e){i(e.typeName),e.typeArguments&&(ce("<"),x(e.typeArguments,T),ce(">"));}(t);case 162:return function(e){ce("typeof "),i(e.exprName);}(t);case 164:return function(e){T(e.elementType),ce("[]");}(t);case 165:return function(e){ce("["),x(e.elementTypes,T),ce("]");}(t);case 166:return function(e){b(e.types," | ",T);}(t);case 167:return function(e){b(e.types," & ",T);}(t);case 168:return function(e){ce("("),T(e.type),ce(")");}(t);case 170:return function(t){ce(e.tokenToString(t.operator)),ce(" "),T(t.type);}(t);case 171:return function(e){T(e.objectType),ce("["),T(e.indexType),ce("]");}(t);case 172:return function(e){var t=he;he=e,ce("{"),ue(),le(),e.readonlyToken&&ce("readonly "),ce("["),r(e.typeParameter.name),ce(" in "),T(e.typeParameter.constraint),ce("]"),e.questionToken&&ce("?"),ce(": "),T(e.type),ce(";"),ue(),_e(),ce("}"),he=t;}(t);case 160:case 161:return re(t);case 163:return function(e){ce("{"),e.members.length&&(ue(),le(),v(e.members),_e()),ce("}");}(t);case 71:case 143:return i(t);case 158:return function(e){de(be,e.parameterName),ce(" is "),T(e.type);}(t)}}function C(t){be=t.text,xe=e.getLineStarts(t),Se=t.identifiers,ke=e.isExternalModule(t),he=t,e.emitDetachedComments(be,xe,pe,e.writeCommentRange,t,ge,!0),v(t.statements);}function D(e){if(!Se.has(e))return e;for(var t=0;;){var n=e+"_"+ ++t;if(!Se.has(n))return n}}function E(e,t,r,i){var a=D(t);return i&&ce("declare "),ce("const "),ce(a),ce(": "),pe.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,he,18436,pe),ce(";"),ue(),a}function N(t){if(71===t.expression.kind)ce(t.isExportEquals?"export = ":"export default "),de(be,t.expression);else{var r=E(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},we);ce(t.isExportEquals?"export = ":"export default "),ce(r);}ce(";"),ue(),71===t.expression.kind&&_(n.collectLinkedAliases(t.expression));}function A(e){return n.isDeclarationVisible(e)}function w(e,t){if(t)O(e);else if(237===e.kind||265===e.parent.kind&&ke){var r=void 0;if(Ce&&265!==e.parent.kind)Ce.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});else{if(238===e.kind){var i=e;i.importClause&&(r=i.importClause.name&&n.isDeclarationVisible(i.importClause)||L(i.importClause.namedBindings));}Oe.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});}}}function O(t){switch(t.kind){case 228:return ne(t);case 208:return ee(t);case 230:return H(t);case 229:return G(t);case 231:return z(t);case 232:return U(t);case 233:return J(t);case 237:return I(t);case 238:return R(t);default:e.Debug.fail("Unknown symbol kind");}}function P(t){if(265===t.parent.kind){var n=e.getModifierFlags(t);1&n&&ce("export "),512&n?ce("default "):230!==t.kind&&we&&ce("declare ");}}function F(e){8&e?ce("private "):16&e&&ce("protected "),32&e&&ce("static "),64&e&&ce("readonly "),128&e&&ce("abstract ");}function I(t){function n(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),de(be,t.name),ce(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(k(t.moduleReference,n),ce(";")):(ce("require("),M(t),ce(");")),pe.writeLine();}function L(t){if(t)return 240===t.kind?n.isDeclarationVisible(t):e.forEach(t.elements,function(e){return n.isDeclarationVisible(e)})}function R(t){if(Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),t.importClause){var r=pe.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&de(be,t.importClause.name),t.importClause.namedBindings&&L(t.importClause.namedBindings)&&(r!==pe.getTextPos()&&ce(", "),240===t.importClause.namedBindings.kind?(ce("* as "),de(be,t.importClause.namedBindings.name)):(ce("{ "),x(t.importClause.namedBindings.elements,B,n.isDeclarationVisible),ce(" }"))),ce(" from ");}M(t),ce(";"),pe.writeLine();}function M(r){ve=ve||233!==r.kind;var i;if(237===r.kind){var a=r;i=e.getExternalModuleImportEqualsDeclarationExpression(a);}else i=233===r.kind?r.name:(a=r).moduleSpecifier;if(9===i.kind&&me&&(ye.out||ye.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,n,r);if(o)return ce('"'),ce(o),void ce('"')}de(be,i);}function B(e){e.propertyName&&(de(be,e.propertyName),ce(" as ")),de(be,e.name);}function K(e){B(e),_(n.collectLinkedAliases(e.propertyName||e.name));}function j(e){Ne(e),ce("export "),e.exportClause?(ce("{ "),x(e.exportClause.elements,K),ce(" }")):ce("*"),e.moduleSpecifier&&(ce(" from "),M(e)),ce(";"),pe.writeLine();}function J(t){for(Ne(t),P(t),e.isGlobalScopeAugmentation(t)?ce("global "):(ce(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?M(t):de(be,t.name));t.body&&234!==t.body.kind;)t=t.body,ce("."),de(be,t.name);var n=he;t.body?(he=t,ce(" {"),ue(),le(),v(t.body.statements),_e(),ce("}"),ue(),he=n):ce(";");}function z(t){function n(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}var r=he;he=t,Ne(t),P(t),ce("type "),de(be,t.name),$(t.typeParameters),ce(" = "),k(t.type,n),ce(";"),ue(),he=r;}function U(t){Ne(t),P(t),e.isConst(t)&&ce("const "),ce("enum "),de(be,t.name),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue();}function q(t){Ne(t),de(be,t.name);var r=n.getConstantValue(t);void 0!==r&&(ce(" = "),ce(e.getTextOfConstantValue(r))),ce(","),ue();}function V(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function $(t){function n(t){function n(){var n;switch(t.parent.kind){case 229:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150:n=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 228:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231:n=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind);}return{diagnosticMessage:n,errorNode:t,typeName:t.name}}le(),Ne(t),_e(),de(be,t.name),t.constraint&&!V(t)&&(ce(" extends "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.constraint)):k(t.constraint,n)),t.default&&!V(t)&&(ce(" = "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.default)):k(t.default,n));}t&&(ce("<"),x(t,n),ce(">"));}function W(t,n){function r(t){function r(){var r;return r=229===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}e.isEntityNameExpression(t.expression)?k(t,r):n||95!==t.expression.kind||ce("null");}t&&(ce(n?" implements ":" extends "),x(t,r));}function G(t){var n=he;he=t;var r,i=e.getClassExtendsHeritageClauseElement(t);i&&!e.isEntityNameExpression(i.expression)&&(r=95===i.expression.kind?"null":E(i.expression,t.name.escapedText+"_base",{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:i,typeName:t.name},!e.findAncestor(t,function(e){return 233===e.kind}))),Ne(t),P(t),e.hasModifier(t,128)&&ce("abstract "),ce("class "),de(be,t.name),$(t.typeParameters),i&&(e.isEntityNameExpression(i.expression)?W([i],!1):(ce(" extends "),ce(r),i.typeArguments&&(ce("<"),x(i.typeArguments,T),ce(">")))),W(e.getClassImplementsHeritageClauseElements(t),!0),ce(" {"),ue(),le(),function(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&X(t);});}(e.getFirstConstructorWithBody(t)),v(t.members),_e(),ce("}"),ue(),he=n;}function H(t){Ne(t),P(t),ce("interface "),de(be,t.name);var n=he;he=t,$(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&W(r,!1),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue(),he=n;}function X(t){e.hasDynamicName(t)||(Ne(t),F(e.getModifierFlags(t)),Y(t),ce(";"),ue());}function Y(t){function r(n){return 226===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:149===t.kind||148===t.kind||146===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:229===t.parent.kind||146===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}function i(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function a(e){for(var t=[],n=0,r=e.elements;n0?e.parameters[0].type:void 0}function r(t){var n;return 154===i.kind?(n=e.hasModifier(i.parent,32)?t.errorModuleName?e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:i.parameters[0],typeName:i.name}):(n=e.hasModifier(i,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0,{diagnosticMessage:n,errorNode:i.name,typeName:void 0})}if(!e.hasDynamicName(t)){var i,a=e.getAllAccessorDeclarations(t.parent.members,t);if(t===a.firstAccessor){if(Ne(a.getAccessor),Ne(a.setAccessor),F(e.getModifierFlags(t)|(a.setAccessor?0:64)),de(be,t.name),!e.hasModifier(t,8)){i=t;var o=n(t);if(!o){var s=153===t.kind?a.setAccessor:a.getAccessor;(o=n(s))&&(i=s);}y(t,o,r);}ce(";"),ue();}}}function ne(t){e.hasDynamicName(t)||n.isImplementationOfOverload(t)||(Ne(t),228===t.kind?P(t):151!==t.kind&&152!==t.kind||F(e.getModifierFlags(t)),228===t.kind?(ce("function "),de(be,t.name)):152===t.kind?ce("constructor"):(de(be,t.name),e.hasQuestionToken(t)&&ce("?")),ie(t));}function re(e){Ne(e),ie(e);}function ie(t){function n(n){var r;switch(t.kind){case 156:r=n.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 155:r=n.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 157:r=n.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 151:case 150:r=e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:229===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 228:r=n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:e.Debug.fail("This is unknown kind for signature: "+t.kind);}return{diagnosticMessage:r,errorNode:t.name||t}}var r=he;he=t;var i=!1;if(157===t.kind)F(e.getModifierFlags(t)),ce("[");else{if(152===t.kind&&e.hasModifier(t,8))return ce("();"),void ue();if(156===t.kind||161===t.kind)ce("new ");else if(160===t.kind){var a=pe.getText();t.typeParameters&&"<"===a.charAt(a.length-1)&&(i=!0,ce("("));}$(t.typeParameters),ce("(");}x(t.parameters,ae),ce(157===t.kind?"]":")");var o=160===t.kind||161===t.kind;o||163===t.parent.kind?t.type&&(ce(o?" => ":": "),T(t.type)):152===t.kind||e.hasModifier(t,8)||h(t,n),he=r,o?i&&ce(")"):(ce(";"),ue());}function ae(t){function r(e){var n=i(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function i(n){switch(t.parent.kind){case 152:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 156:return n.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 155:return n.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 157:return n.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 151:case 150:return e.hasModifier(t.parent,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 228:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:e.Debug.fail("This is unknown parent for parameter: "+t.parent.kind);}}function a(e){if(174===e.kind)ce("{"),x(e.elements,o),ce("}");else if(175===e.kind){ce("[");var t=e.elements;x(t,o),t&&t.hasTrailingComma&&ce(", "),ce("]");}}function o(t){200===t.kind?ce(" "):176===t.kind&&(t.propertyName&&(de(be,t.propertyName),ce(": ")),t.name&&(e.isBindingPattern(t.name)?a(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&ce("..."),de(be,t.name))));}le(),Ne(t),t.dotDotDotToken&&ce("..."),e.isBindingPattern(t.name)?a(t.name):de(be,t.name),n.isOptionalParameter(t)&&ce("?"),_e(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?Q(t):e.hasModifier(t.parent,8)||y(t,t.type,r);}function oe(e){switch(e.kind){case 228:case 233:case 237:case 230:case 229:case 231:case 232:return w(e,A(e));case 208:return w(e,Z(e));case 238:return w(e,!e.importClause);case 244:return j(e);case 152:case 151:case 150:return ne(e);case 156:case 155:case 157:return re(e);case 153:case 154:return te(e);case 149:case 148:return X(e);case 264:return q(e);case 243:return N(e);case 265:return C(e)}}function se(n,r,a){function o(t,i){var a=266===i.kind;a&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),s=t.declarationFilePath||t.jsFilePath,c=a);}var s,c=!1;return n.isDeclarationFile?s=n.fileName:e.forEachEmittedFile(t,o,n,a),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(i)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Pe+='/// '+ge),c}var ce,ue,le,_e,de,pe,fe=266===a.kind?a.sourceFiles:[a],me=266===a.kind,ge=t.getNewLine(),ye=t.getCompilerOptions();u();var he,ve,be,xe,Se,ke,Te,Ce,De,Ee=!1,Ne=ye.removeComments?e.noop:S,Ae=ye.stripInternal?c:oe,we=!0,Oe=[],Pe="",Fe=[],Ie=!1,Le=[];return e.forEach(fe,function(n){if(!e.isSourceFileJavaScript(n)){if(ye.noResolve||e.forEach(n.referencedFiles,function(r){var i=e.tryResolveScriptReference(t,n,r);i&&!e.contains(Fe,i)&&(se(i,!me&&!Ie,o)&&(Ie=!0),Fe.push(i));}),ve=!1,me&&e.isExternalModule(n)?e.isExternalModule(n)&&(we=!1,ce('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),ue(),le(),C(n),_e(),ce("}"),ue()):(we=!0,C(n)),Oe.length){var r=pe;e.forEach(Oe,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(238===t.node.kind),u(),e.Debug.assert(0===t.indent||1===t.indent&&me);for(n=0;n'+ge;}),{reportedDeclarationError:Ee,moduleElementDeclarationEmitInfo:Le,synchronousDeclarationOutput:pe.getText(),referencesOutput:Pe}}function r(t,r,i,a,o,s){function c(t,n){var r=0,i="";return e.forEach(n,function(e){e.asynchronousOutput&&(i+=t.substring(r,e.outputPos),i+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),r=e.outputPos);}),i+=t.substring(r)}var u=n(i,a,o,t,r,s),l=u.reportedDeclarationError||i.isEmitBlocked(t)||i.getCompilerOptions().noEmit;if(!l){var _=266===r.kind?r.sourceFiles:[r],d=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(i,o,t,d,i.getCompilerOptions().emitBOM,_);}return l}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=r;}(r||(r={}));!function(e){function t(t,i,a,o){var s=e.isArray(a)?a:e.getSourceFilesToEmit(t,a),c=t.getCompilerOptions();if(c.outFile||c.out)s.length&&i({jsFilePath:d=c.outFile||c.out,sourceMapFilePath:p=n(d,c),declarationFilePath:f=c.declaration?e.removeFileExtension(d)+".d.ts":""},e.createBundle(s),o);else for(var u=0,l=s;u "),v(e.type);}function te(e){Kn("new "),On(e,e.typeParameters),Pn(e,e.parameters),Kn(" => "),v(e.type);}function ne(e){Kn("typeof "),v(e.exprName);}function re(t){Kn("{");var n=1&e.getEmitFlags(t)?448:65;Rn(t,t.members,262144|n),Kn("}");}function ie(e){v(e.elementType),Kn("[]");}function ae(e){Kn("["),Rn(e,e.elementTypes,336),Kn("]");}function oe(e){Rn(e,e.types,260);}function se(e){Rn(e,e.types,264);}function ce(e){Kn("("),v(e.type),Kn(")");}function ue(){Kn("this");}function le(e){$n(e.operator),Kn(" "),v(e.type);}function _e(e){v(e.objectType),Kn("["),v(e.indexType),Kn("]");}function de(t){var n=e.getEmitFlags(t);Kn("{"),1&n?Kn(" "):(jn(),Jn()),t.readonlyToken&&(v(t.readonlyToken),Kn(" ")),Kn("["),S(3,t.typeParameter),Kn("]"),h(t.questionToken),Kn(": "),v(t.type),Kn(";"),1&n?Kn(" "):(jn(),zn()),Kn("}");}function pe(e){x(e.literal);}function fe(e){var t=e.elements;0===t.length?Kn("{}"):(Kn("{"),Rn(e,t,432),Kn("}"));}function me(e){0===e.elements.length?Kn("[]"):(Kn("["),Rn(e,e.elements,304),Kn("]"));}function ge(e){En(e.propertyName,": "),h(e.dotDotDotToken),v(e.name),Cn(" = ",e.initializer);}function ye(e){Mn(e,e.elements,4466|(e.multiLine?32768:0));}function he(t){var n=65536&e.getEmitFlags(t);n&&Jn();var r=t.multiLine?32768:0,i=kr.languageVersion>=1?32:0;Rn(t,t.properties,263122|i|r),n&&zn();}function ve(t){var n=!1,r=!1;if(!(131072&e.getEmitFlags(t))){var i=t.expression.end,a=e.skipTrivia(kr.text,t.expression.end)+1,o=e.createToken(23);o.pos=i,o.end=a,n=nr(t,t.expression,o),r=nr(t,o,t.name);}x(t.expression),Xn(n),Kn(!n&&be(t.expression)?"..":"."),Xn(r),v(t.name),Yn(n,r);}function be(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=or(n);return!n.numericLiteralFlags&&r.indexOf(e.tokenToString(23))<0}if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){var i=e.getConstantValue(n);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}function xe(e){x(e.expression),Kn("["),x(e.argumentExpression),Kn("]");}function Se(e){x(e.expression),wn(e,e.typeArguments),Mn(e,e.arguments,1296);}function ke(e){Kn("new "),x(e.expression),wn(e,e.typeArguments),Mn(e,e.arguments,9488);}function Te(e){x(e.tag),Kn(" "),x(e.template);}function Ce(e){Kn("<"),v(e.type),Kn(">"),x(e.expression);}function De(e){Kn("("),x(e.expression),Kn(")");}function Ee(e){vt(e);}function Ne(e){An(e,e.decorators),kn(e,e.modifiers),xt(e,Ae);}function Ae(e){On(e,e.typeParameters),In(e,e.parameters),Tn(": ",e.type),Kn(" "),v(e.equalsGreaterThanToken);}function we(e){Kn("delete "),x(e.expression);}function Oe(e){Kn("typeof "),x(e.expression);}function Pe(e){Kn("void "),x(e.expression);}function Fe(e){Kn("await "),x(e.expression);}function Ie(e){$n(e.operator),Le(e)&&Kn(" "),x(e.operand);}function Le(e){var t=e.operand;return 192===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Re(e){x(e.operand),$n(e.operator);}function Me(e){var t=26!==e.operatorToken.kind,n=nr(e,e.left,e.operatorToken),r=nr(e,e.operatorToken,e.right);x(e.left),Xn(n,t?" ":void 0),Gr(e.operatorToken.pos),Vn(e.operatorToken),Wr(e.operatorToken.end,!0),Xn(r," "),x(e.right),Yn(n,r);}function Be(e){var t=nr(e,e.condition,e.questionToken),n=nr(e,e.questionToken,e.whenTrue),r=nr(e,e.whenTrue,e.colonToken),i=nr(e,e.colonToken,e.whenFalse);x(e.condition),Xn(t," "),v(e.questionToken),Xn(n," "),x(e.whenTrue),Yn(t,n),Xn(r," "),v(e.colonToken),Xn(i," "),x(e.whenFalse),Yn(r,i);}function Ke(e){v(e.head),Rn(e,e.templateSpans,131072);}function je(e){Kn("yield"),v(e.asteriskToken),Cn(" ",e.expression);}function Je(e){Kn("..."),x(e.expression);}function ze(e){Nt(e);}function Ue(e){x(e.expression),wn(e,e.typeArguments);}function qe(e){x(e.expression),e.type&&(Kn(" as "),v(e.type));}function Ve(e){x(e.expression),Kn("!");}function $e(e){qn(e.keywordToken,e.pos),Kn("."),v(e.name);}function We(e){x(e.expression),v(e.literal);}function Ge(e){qn(17,e.pos,e),He(e,!e.multiLine&&rr(e)),Jn(),Gr(e.statements.end),zn(),qn(18,e.statements.end,e);}function He(t,n){var r=n||1&e.getEmitFlags(t)?384:65;Rn(t,t.statements,r);}function Xe(e){kn(e,e.modifiers),v(e.declarationList),Kn(";");}function Ye(){Kn(";");}function Qe(e){x(e.expression),Kn(";");}function Ze(e){var t=qn(90,e.pos,e);Kn(" "),qn(19,t,e),x(e.expression),qn(20,e.expression.end,e),Nn(e,e.thenStatement),e.elseStatement&&(Wn(e),qn(82,e.thenStatement.end,e),211===e.elseStatement.kind?(Kn(" "),v(e.elseStatement)):Nn(e,e.elseStatement));}function et(t){Kn("do"),Nn(t,t.statement),e.isBlock(t.statement)?Kn(" "):Wn(t),Kn("while ("),x(t.expression),Kn(");");}function tt(e){Kn("while ("),x(e.expression),Kn(")"),Nn(e,e.statement);}function nt(e){var t=qn(88,e.pos);Kn(" "),qn(19,t,e),at(e.initializer),Kn(";"),Cn(" ",e.condition),Kn(";"),Cn(" ",e.incrementor),Kn(")"),Nn(e,e.statement);}function rt(e){var t=qn(88,e.pos);Kn(" "),qn(19,t),at(e.initializer),Kn(" in "),x(e.expression),qn(20,e.expression.end),Nn(e,e.statement);}function it(e){var t=qn(88,e.pos);Kn(" "),En(e.awaitModifier," "),qn(19,t),at(e.initializer),Kn(" of "),x(e.expression),qn(20,e.expression.end),Nn(e,e.statement);}function at(e){void 0!==e&&(227===e.kind?v(e):x(e));}function ot(e){qn(77,e.pos),Tn(" ",e.label),Kn(";");}function st(e){qn(72,e.pos),Tn(" ",e.label),Kn(";");}function ct(t,n,r){var i=r&&e.getParseTreeNode(r);return i&&i.kind===r.kind&&(n=e.skipTrivia(kr.text,n)),n=qn(t,n,r),i&&i.kind===r.kind&&Wr(n,!0),n}function ut(e){ct(96,e.pos,e),Cn(" ",e.expression),Kn(";");}function lt(e){Kn("with ("),x(e.expression),Kn(")"),Nn(e,e.statement);}function _t(e){var t=qn(98,e.pos);Kn(" "),qn(19,t),x(e.expression),qn(20,e.expression.end),Kn(" "),v(e.caseBlock);}function dt(e){v(e.label),Kn(": "),v(e.statement);}function pt(e){Kn("throw"),Cn(" ",e.expression),Kn(";");}function ft(e){Kn("try "),v(e.tryBlock),e.catchClause&&(Wn(e),v(e.catchClause)),e.finallyBlock&&(Wn(e),Kn("finally "),v(e.finallyBlock));}function mt(e){qn(78,e.pos),Kn(";");}function gt(e){v(e.name),Tn(": ",e.type),Cn(" = ",e.initializer);}function yt(t){Kn(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),Rn(t,t.declarations,272);}function ht(e){vt(e);}function vt(e){An(e,e.decorators),kn(e,e.modifiers),Kn("function"),h(e.asteriskToken),Kn(" "),b(e.name),xt(e,St);}function bt(e,t){Tt(t);}function xt(t,n){var r=t.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(t);i&&Jn(),524288&e.getEmitFlags(t)?(n(t),Lr?Lr(4,r,bt):Tt(r)):(sr(),n(t),Lr?Lr(4,r,bt):Tt(r),cr()),i&&zn();}else n(t),Kn(" "),x(r);else n(t),Kn(";");}function St(e){On(e,e.typeParameters),Pn(e,e.parameters),Tn(": ",e.type);}function kt(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,kr))return!1;if(Qn(t,t.statements,2)||er(t,t.statements,2))return!1;for(var n,r=0,i=t.statements;r0&&v(e.attributes),Kn("/>");}function Qt(e){Kn("<"),on$$1(e.tagName),Un(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&v(e.attributes),Kn(">");}function Zt(e){Ar.writeLiteral(ar(e,!0));}function en(e){Kn("");}function tn(e){Rn(e,e.properties,131328);}function nn(e){v(e.name),Tn("=",e.initializer);}function rn(e){Kn("{..."),x(e.expression),Kn("}");}function an(e){e.expression&&(Kn("{"),h(e.dotDotDotToken),x(e.expression),Kn("}"));}function on$$1(e){71===e.kind?x(e):v(e);}function sn(e){Kn("case "),x(e.expression),Kn(":"),un(e,e.statements);}function cn(e){Kn("default:"),un(e,e.statements);}function un(t,n){var r=1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],kr));n.length>0&&Wr(n.pos);var i=81985;r&&(Kn(" "),i&=-66),Rn(t,n,i);}function ln(e){Kn(" "),$n(e.token),Kn(" "),Rn(e,e.types,272);}function _n(e){var t=qn(74,e.pos);Kn(" "),e.variableDeclaration&&(qn(19,t),v(e.variableDeclaration),qn(20,e.variableDeclaration.end),Kn(" ")),v(e.block);}function dn(t){v(t.name),Kn(": ");var n=t.initializer;if(Wr&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);Wr(r.pos);}x(n);}function pn(e){v(e.name),e.objectAssignmentInitializer&&(Kn(" = "),x(e.objectAssignmentInitializer));}function fn(e){e.expression&&(Kn("..."),x(e.expression));}function mn(e){v(e.name),Cn(" = ",e.initializer);}function gn(t){jn();var n=t.statements;!$r||0!==n.length&&e.isPrologueDirective(n[0])&&!e.nodeIsSynthesized(n[0])?yn(t):$r(t,n,yn);}function yn(t){var n=t.statements;sr(),P(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});Rn(t,n,1,-1===r?n.length:r),cr();}function hn(e){x(e.expression);}function vn(e){Mn(e,e.elements,272);}function bn(t,n,r){for(var i=0;i0)&&jn(),v(a),r&&r.set(a.expression.text,!0));}return t.length}function xn(t){if(e.isSourceFile(t))m(t),bn(t.statements);else for(var n=e.createMap(),r=0,i=t.sourceFiles;r=r.length||0===o;if(_&&16384&i)return Kr&&Kr(r),void(jr&&jr(r));if(7680&i&&Kn(c(i)),Kr&&Kr(r),_)1&i?jn():128&i&&!(262144&i)&&Kn(" ");else{var d=0==(131072&i),p=d;Qn(n,r,i)?(jn(),p=!1):128&i&&Kn(" "),64&i&&Jn();for(var f=void 0,m=void 0,g=s(i),y=0;y"],e[4096]=["[","]"],e}();e.forEachEmittedFile=t,e.emitFiles=a,e.createPrinter=o;var d;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i";}(d||(d={}));var p;!function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.DelimitersMask=28]="DelimitersMask",e[e.AllowTrailingComma=32]="AllowTrailingComma",e[e.Indented=64]="Indented",e[e.SpaceBetweenBraces=128]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",e[e.Braces=512]="Braces",e[e.Parenthesis=1024]="Parenthesis",e[e.AngleBrackets=2048]="AngleBrackets",e[e.SquareBrackets=4096]="SquareBrackets",e[e.BracketsMask=7680]="BracketsMask",e[e.OptionalIfUndefined=8192]="OptionalIfUndefined",e[e.OptionalIfEmpty=16384]="OptionalIfEmpty",e[e.Optional=24576]="Optional",e[e.PreferNewLine=32768]="PreferNewLine",e[e.NoTrailingNewLine=65536]="NoTrailingNewLine",e[e.NoInterveningComments=131072]="NoInterveningComments",e[e.NoSpaceIfEmpty=262144]="NoSpaceIfEmpty",e[e.SingleElement=524288]="SingleElement",e[e.Modifiers=131328]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=448]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=65]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=336]="TupleTypeElements",e[e.UnionTypeConstituents=260]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=432]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=304]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=263122]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",e[e.CommaListElements=272]="CommaListElements",e[e.CallExpressionArguments=1296]="CallExpressionArguments",e[e.NewExpressionArguments=9488]="NewExpressionArguments",e[e.TemplateExpressionSpans=131072]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=384]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=65]="MultiLineBlockStatements",e[e.VariableDeclarationList=272]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=256]="ClassHeritageClauses",e[e.ClassMembers=65]="ClassMembers",e[e.InterfaceMembers=65]="InterfaceMembers",e[e.EnumMembers=81]="EnumMembers",e[e.CaseBlockClauses=65]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=432]="NamedImportsOrExportsElements",e[e.JsxElementChildren=131072]="JsxElementChildren",e[e.JsxElementAttributes=131328]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=272]="HeritageClauseTypes",e[e.SourceFileStatements=65537]="SourceFileStatements",e[e.Decorators=24577]="Decorators",e[e.TypeArguments=26960]="TypeArguments",e[e.TypeParameters=26960]="TypeParameters",e[e.Parameters=1360]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters";}(p||(p={}));}(r||(r={}));!function(e){function t(t,n,r){for(void 0===r&&(r="tsconfig.json");;){var i=e.combinePaths(t,r);if(n(i))return i;var a=e.getDirectoryPath(t);if(a===t)break;t=a;}}function n(t,n){var r=e.getDirectoryPath(n),i=e.isRootedDiskPath(t)?t:e.combinePaths(r,t);return e.normalizePath(i)}function r(t,n,r){var i;return e.forEach(t,function(t){var a=e.getNormalizedPathComponents(t,n);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;se.getRootLength(t)&&!a(t)&&(o(e.getDirectoryPath(t)),e.sys.createDirectory(t));}function s(t,n,r){l||(l=e.createMap());var i=e.sys.createHash(n),a=e.sys.getModifiedTime(t);if(a){var o=l.get(t);if(o&&o.byteOrderMark===r&&o.hash===i&&o.mtime.getTime()===a.getTime())return}e.sys.writeFile(t,n,r);var s=e.sys.getModifiedTime(t);l.set(t,{hash:i,byteOrderMark:r,mtime:s});}function c(n,r,i,a){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(n))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?s(n,r,i):e.sys.writeFile(n,r,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite");}catch(e){a&&a(e.message);}}function u(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var l,_=e.createMap(),d=e.getNewLineCharacter(t),p=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:i,getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},writeFile:c,getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:r,getNewLine:function(){return d},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+d)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:p}}function a(t,n,r){var i=t.getOptionsDiagnostics(r).concat(t.getSyntacticDiagnostics(n,r),t.getGlobalDiagnostics(r),t.getSemanticDiagnostics(n,r));return t.getCompilerOptions().declaration&&(i=i.concat(t.getDeclarationDiagnostics(n,r))),e.sortAndDeduplicateDiagnostics(i)}function o(t,n){for(var r="",i=0,a=t;i=4,N=(v+1+"").length;E&&(N=Math.max(k.length,N)),r+=e.sys.newLine;for(var A=m;A<=v;A++){E&&m+10||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var l=h().getEmitResolver(a.outFile||a.out?void 0:n);e.performance.mark("beforeEmit");var _=o?[]:e.getTransformers(a,s),d=e.emitFiles(l,p(r),n,o,_);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}function T(e){return C(c(e))}function C(e){return Ve.get(e)}function D(t,n,r){return t?n(t,r):e.sortAndDeduplicateDiagnostics(e.flatMap(ge.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),n(e,r)}))}function E(e,t){return D(e,w,t)}function N(e,t){return D(e,P,t)}function A(e,t){var n=ge.getCompilerOptions();return!e||n.out||n.outFile?R(e,t):D(e,K,t)}function w(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=L(t),e.isCheckJsEnabledForFile(t,a)&&(t.additionalSyntacticDiagnostics=e.concatenate(t.additionalSyntacticDiagnostics,t.jsDocDiagnostics))),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function O(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(ve=void 0,he=void 0),t}}function P(e,t){return B(e,t,ke,F)}function F(t,n){return O(function(){if(a.skipLibCheck&&t.isDeclarationFile||a.skipDefaultLibCheck&&t.hasNoDefaultLib)return e.emptyArray;var r=h();e.Debug.assert(!!t.bindDiagnostics);var i=!e.isSourceFileJavaScript(t)||e.isCheckJsEnabledForFile(t,a),o=i?t.bindDiagnostics:e.emptyArray,s=i?r.getDiagnostics(t,n):e.emptyArray,c=De.getDiagnostics(t.fileName),u=Le.getDiagnostics(t.fileName),l=o.concat(s,c,u);return e.isSourceFileJavaScript(t)?e.filter(l,I):l})}function I(t){var n=t.file,r=t.start;if(n)for(var i=e.getLineStarts(n),a=e.computeLineAndCharacterOfPosition(i,r).line;a>0;){var o=n.text.slice(i[a-1],i[a]),s=g.exec(o);if(!s)return!0;if(s[3])return!1;a--;}return!0}function L(t){return O(function(){function n(t){switch(u.kind){case 146:case 149:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 226:if(u.type===t)return void c.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 237:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 243:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 259:if(108===t.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 230:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 233:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 231:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 232:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 203:return void c.push(s(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 202:return void c.push(s(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 184:e.Debug.fail();}var i=u;u=t,e.forEachChild(t,n,r),u=i;}function r(t){switch(u.decorators!==t||a.experimentalDecorators||c.push(s(u,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),u.kind){case 229:case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 208:if(t===u.modifiers)return i(t,208===u.kind);break;case 149:if(t===u.modifiers){for(var r=0,l=t;r0),_.path=n,o.useCaseSensitiveFileNames()){var m=n.toLowerCase(),g=$e.get(m);g?X(t,g.fileName,i,s,c):$e.set(m,_);}Ie=Ie||_.hasNoDefaultLib,a.noResolve||(Z(_,r),ee(_)),ie(_),r?Se.unshift(_):Se.push(_);}return _}function Z(t,r){e.forEach(t.referencedFiles,function(e){H(n(e.fileName,t.fileName),r,void 0,t,e.pos,e.end);});}function ee(t){for(var n=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=je(n,t.fileName),i=0;iEe,y=m&&!f(a,l)&&!a.noResolve&&un&&(Le.add(e.createDiagnosticForNodeInSourceFile(a.configFile,f.initializer.elements[n],r,i,o,s)),c=!1);}}c&&Le.add(e.createCompilerDiagnostic(r,i,o,s));}function ce(t,n,r,i){for(var a=!0,o=0,s=ue();o1})&&le(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir");}if(!a.noEmit&&a.allowJs&&a.declaration&&le(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),a.checkJs&&!a.allowJs&&Le.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),a.emitDecoratorMetadata&&!a.experimentalDecorators&&le(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),a.jsxFactory?(a.reactNamespace&&le(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(a.jsxFactory,_)||_e("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,a.jsxFactory)):a.reactNamespace&&!e.isIdentifierText(a.reactNamespace,_)&&_e("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,a.reactNamespace),!a.noEmit&&!a.suppressOutputPathCheck){var b=p(),x=e.createMap();e.forEachEmittedFile(b,function(e){t(e.jsFilePath,x),t(e.declarationFilePath,x);});}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),ge}function f(t,n){function r(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return t.allowJs?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_allowJs_is_not_set}switch(n.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||i();case".js":return i()}}function m(t){return e.Debug.assert(t.every(function(e){return void 0!==e}),"A name is undefined.",function(){return JSON.stringify(t)}),t}var g=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;e.findConfigFile=t,e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=r,e.createCompilerHost=i,e.getPreEmitDiagnostics=a,e.formatDiagnostics=o;var y="",h="",v="",b="",x=" ",S="",k="...";e.formatDiagnosticsWithColorAndContext=l,e.flattenDiagnosticMessageText=_,e.createProgram=p,e.getResolutionDiagnostic=f;}(r||(r={}));!function(e){function t(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function n(){if(te)return te;var t=e.createMap(),n=e.createMap();return e.forEach(e.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name);}),te={optionNameMap:t,shortOptionNames:n}}function r(t){return i(t,e.createCompilerDiagnostic)}function i(t,n){var r=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return n(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,r)}function a(e,t,n){return J(e,U(t||""),n)}function o(t,n,r){if(void 0===n&&(n=""),n=U(n),!e.startsWith(n,"-")){if(""===n)return[];var i=n.split(",");switch(t.element.type){case"number":return e.map(i,parseInt);case"string":return e.map(i,function(e){return e||""});default:return e.filter(e.map(i,function(e){return a(t.element,e,r)}),function(e){return!!e})}}}function s(t,n){function r(t){for(var n=0;n=i.length)break;var s=o;if(34===i.charCodeAt(s)){for(o++;o32;)o++;a.push(i.substring(s,o));}}r(a);}else l.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t));}var s={},u=[],l=[];return r(t),{options:s,fileNames:u,errors:l}}function c(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=n(),i=r.optionNameMap,a=r.shortOptionNames;if(t){var o=a.get(e);void 0!==o&&(e=o);}return i.get(e)}function u(e,t){var n=d(e,t);return"string"==typeof n?l(e,n):{config:{},error:n}}function l(t,n){var r=e.parseJsonText(t,n);return{config:m(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function _(t,n){var r=d(t,n);return"string"==typeof r?e.parseJsonText(t,r):{parseDiagnostics:[r]}}function d(t,n){var r;try{r=n(t);}catch(n){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):r}function p(t){return e.arrayToMap(t,function(e){return e.name})}function f(){return void 0===ne&&(ne=p([{name:"compilerOptions",type:"object",elementOptions:p(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])),ne}function m(e,t){return g(e,t,void 0,void 0)}function g(t,n,r,a){function o(i,o,s,l){for(var _={},d=0,p=i.properties;d=0)return s.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o.concat([u]).join(" -> "))),{raw:t||m(n,s)};var l=t?D(t,r,i,c,a,s):E(n,r,i,c,a,s);if(l.extendedConfigPath){o=o.concat([u]);var _=A(n,l.extendedConfigPath,r,i,c,o,s);if(_&&T(_)){var d=_.raw,p=l.raw,f=function(e){var t=p[e]||d[e];t&&(p[e]=t);};f("include"),f("exclude"),f("files"),void 0===p.compileOnSave&&(p.compileOnSave=d.compileOnSave),l.options=e.assign({},_.options,l.options);}}return l}function D(t,n,r,i,a,o){e.hasProperty(t,"excludes")&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var s=I(t.compilerOptions,r,o,a),c=R(t.typeAcquisition||t.typingOptions,r,o,a);t.compileOnSave=w(t,r,o);var u;return t.extends&&("string"!=typeof t.extends?o.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")):u=N(t.extends,n,r,i,o,e.createCompilerDiagnostic)),{raw:t,options:s,typeAcquisition:c,extendedConfigPath:u}}function E(t,n,r,i,a,o){var s,c,u,l=F(a),_={onSetValidOptionKeyValueInParent:function(t,n,i){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t),("compilerOptions"===t?l:"typeAcquisition"===t?s||(s=L(a)):c||(c=L(a)))[n.name]=K(n,r,i);},onSetValidOptionKeyValueInRoot:function(s,c,l,_){switch(s){case"extends":return void(u=N(l,n,r,i,o,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,_,n,r)}));case"files":return void(0===l.length&&o.push(e.createDiagnosticForNodeInSourceFile(t,_,e.Diagnostics.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(n,r,i,a){"excludes"===n&&o.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));}},d=g(t,o,f(),_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:L(a)),{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}function N(t,n,r,i,a,o){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var s=e.toPath(t,r,i);if(n.fileExists(s)||e.endsWith(s,".json")||(s+=".json",n.fileExists(s)))return s;a.push(o(e.Diagnostics.File_0_does_not_exist,t));}else a.push(o(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t));}function A(t,n,r,i,a,o,s){var c=_(n,function(e){return r.readFile(e)});if(t&&(t.extendedSourceFiles||(t.extendedSourceFiles=[])).push(c.fileName),c.parseDiagnostics.length)s.push.apply(s,c.parseDiagnostics);else{var u=e.getDirectoryPath(n),l=C(void 0,c,r,u,e.getBaseFileName(n),o,s);if(t&&(g=t.extendedSourceFiles).push.apply(g,c.extendedSourceFiles),T(l)){var d=e.convertToRelativePath(u,i,a),p=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(d,t)},f=function(t){m[t]&&(m[t]=e.map(m[t],p));},m=l.raw;f("include"),f("exclude"),f("files");}return l;var g;}}function w(t,n,r){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var i=B(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return!("boolean"!=typeof i||!i)&&i}}function O(e,t,n){var r=[];return{options:I(e,t,r,n),errors:r}}function P(e,t,n){var r=[];return{options:R(e,t,r,n),errors:r}}function F(t){return"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{}}function I(t,n,r,i){var a=F(i);return M(e.optionDeclarations,t,n,a,e.Diagnostics.Unknown_compiler_option_0,r),a}function L(t){return{enable:"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function R(n,r,i,a){var o=L(a),s=t(n);return M(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,i),o}function M(t,n,r,i,a,o){if(n){var s=p(t);for(var c in n){var u=s.get(c);u?i[u.name]=B(u,n[c],r,o):o.push(e.createCompilerDiagnostic(a,c));}}}function B(t,n,r,i){if(h(t,n)){var a=t.type;return"list"===a&&e.isArray(n)?z(t,n,r,i):"string"!=typeof a?J(t,n,i):j(t,r,n)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,y(t)));}function K(t,n,r){if("list"===t.type){var i=t;return i.element.isFilePath||"string"!=typeof i.element.type?e.filter(e.map(r,function(e){return K(i.element,n,e)}),function(e){return!!e}):r}return"string"!=typeof t.type?t.type.get("string"==typeof r?r.toLowerCase():r):j(t,n,r)}function j(t,n,r){return t.isFilePath&&""===(r=e.normalizePath(e.combinePaths(n,r)))&&(r="."),r}function J(e,t,n){var i=t.toLowerCase(),a=e.type.get(i);if(void 0!==a)return a;n.push(r(e));}function z(t,n,r,i){return e.filter(e.map(n,function(e){return B(t.element,e,r,i)}),function(e){return!!e})}function U(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function q(t,n,r,i,a,o,s,c,u){i=e.normalizePath(i);var l=o.useCaseSensitiveFileNames?Y:Q,_=e.createMap(),d=e.createMap();n&&(n=V(n,s,!1,u,"include")),r&&(r=V(r,s,!0,u,"exclude"));var p=W(n,r,i,o.useCaseSensitiveFileNames),f=e.getSupportedExtensions(a,c);if(t)for(var m=0,g=t;m0)for(var v=0,b=o.readDirectory(i,f,r,n,void 0);v=n.end}function A(e,t,n){return e.pos<=t&&e.end>=n}function w(e,t,n){return O(e.pos,e.end,t,n)}function O(e,t,n,r){return Math.max(e,n)t||!F(e,n)}function F(t,n){if(e.nodeIsMissing(t))return!1;switch(t.kind){case 229:case 230:case 232:case 178:case 174:case 163:case 207:case 234:case 235:case 241:case 245:return I(t,18,n);case 260:return F(t.block,n);case 182:if(!t.arguments)return!0;case 181:case 185:case 168:return I(t,20,n);case 160:case 161:return F(t.type,n);case 152:case 153:case 154:case 228:case 186:case 151:case 150:case 156:case 155:case 187:return t.body?F(t.body,n):t.type?F(t.type,n):R(t,20,n);case 233:return t.body&&F(t.body,n);case 211:return t.elseStatement?F(t.elseStatement,n):F(t.thenStatement,n);case 210:return F(t.expression,n)||R(t,25);case 177:case 175:case 180:case 144:case 165:return I(t,22,n);case 157:return t.type?F(t.type,n):R(t,22,n);case 257:case 258:return!1;case 214:case 215:case 216:case 213:return F(t.statement,n);case 212:return M(t,106,n)?I(t,20,n):F(t.statement,n);case 162:return F(t.exprName,n);case 189:case 188:case 190:case 197:case 198:return F(t.expression,n);case 183:return F(t.template,n);case 196:return F(e.lastOrUndefined(t.templateSpans),n);case 205:return e.nodeIsPresent(t.literal);case 244:case 238:return e.nodeIsPresent(t.moduleSpecifier);case 192:return F(t.operand,n);case 194:return F(t.right,n);case 195:return F(t.whenFalse,n);default:return!0}}function I(t,n,r){var i=t.getChildren(r);if(i.length){var a=e.lastOrUndefined(i);if(a.kind===n)return!0;if(25===a.kind&&1!==i.length)return i[i.length-2].kind===n}return!1}function L(t){var n=B(t);if(n){var r=n.getChildren();return{listItemIndex:e.indexOf(r,t),list:n}}}function R(e,t,n){return!!M(e,t,n)}function M(t,n,r){return e.forEach(t.getChildren(r),function(e){return e.kind===n&&e})}function B(t){var n=e.forEach(t.parent.getChildren(),function(n){if(e.isSyntaxList(n)&&n.pos<=t.pos&&n.end>=t.end)return n});return e.Debug.assert(!n||e.contains(n.getChildren(),t)),n}function K(e,t,n){return J(e,t,n,function(e){return ne(e.kind)})}function j(e,t,n){return J(e,t,n,function(e){return re(e.kind)})}function J(e,t,n,r){return U(e,t,!1,r,!1,n)}function z(e,t,n,r){return U(e,t,!0,void 0,r,n)}function U(t,n,r,i,a,o){var s=t;e:for(;;){if(e.isToken(s))return s;for(var c=0,u=s.getChildren();cn)break;var _=l.getEnd();if(n<_||n===_&&(1===l.kind||a)){s=l;continue e}if(i&&_===n){var d=$(n,t,l);if(d&&i(d))return d}}}return s}}function q(t,n){var r=z(t,n,!1);return e.isToken(r)&&n>r.getStart(t)&&nt.end||o.pos===t.end)&&Z(o))return r(o)}}return r(n)}function $(t,n,r,i){function a(t){if(e.isToken(t))return t;var n=t.getChildren(),r=s(n,n.length);return r&&a(r)}function o(c){if(e.isToken(c))return c;for(var u=c.getChildren(),l=0;l=t||10===_.kind&&d===_.end?(p=s(u,l))&&a(p):o(_)}}if(e.Debug.assert(void 0!==r||265===c.kind||e.isJSDocCommentContainingNode(c)),u.length){var p=s(u,u.length);return p&&a(p)}}function s(e,t){for(var n=t-1;n>=0;n--)if(Z(e[n]))return e[n]}return o(r||n)}function W(t,n){var r=$(n,t);if(r&&e.isStringTextContainingNode(r)){var i=r.getStart(),a=r.getEnd();if(ir.getStart(t)}function X(t,n,r,i){function a(r){return e.forEach(r,function(e){return Y(e,n,t.text)&&(!i||i(e))})}return void 0===r&&(r=z(t,n,!1)),n<=r.getStart(t)&&(a(e.getLeadingCommentRanges(t.text,r.pos))||a(e.getTrailingCommentRanges(t.text,r.pos)))}function Y(e,t,n){var r=e.pos,i=e.end,a=e.kind;return r=e.pos+3&&"/"===n[e.pos]&&"*"===n[e.pos+1]&&"*"===n[e.pos+2]}var i=z(t,n,!1),a=e.getLeadingCommentRanges(t.text,i.pos);return e.forEach(a,r)}function Z(e){return 0!==e.getWidth()}function ee(t){var n=e.getCombinedModifierFlags(t),r=[];return 8&n&&r.push("private"),16&n&&r.push("protected"),4&n&&r.push("public"),32&n&&r.push("static"),128&n&&r.push("abstract"),1&n&&r.push("export"),e.isInAmbientContext(t)&&r.push("declare"),r.length>0?r.join(","):""}function te(t){return 159===t.kind||181===t.kind?t.typeArguments:e.isFunctionLike(t)||229===t.kind||230===t.kind?t.typeParameters:void 0}function ne(t){return 71===t||e.isKeyword(t)}function re(e){return 9===e||8===e||ne(e)}function ie(e){return 2===e||3===e}function ae(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))}function oe(e){return 17<=e&&e<=70}function se(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&146===e.declarations[0].kind}function n(n,i){return r(n,function(n){var r=n.flags;return 3&r?t(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r?e.SymbolDisplayPartKind.propertyName:32768&r?e.SymbolDisplayPartKind.propertyName:65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r?e.SymbolDisplayPartKind.aliasName:2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(i))}function r(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function i(){return r(" ",e.SymbolDisplayPartKind.space)}function a(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}function s(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}function c(t){var n=e.stringToToken(t);return void 0===n?u(t):a(n)}function u(t){return r(t,e.SymbolDisplayPartKind.text)}function l(e){return e.getNewLine?e.getNewLine():C}function _(){return r("\n",e.SymbolDisplayPartKind.lineBreak)}function d(e){try{return e(T),T.displayParts()}finally{T.clear();}}function p(e,t,n,r){return d(function(i){e.getSymbolDisplayBuilder().buildTypeDisplay(t,i,n,r);})}function f(e,t,n,r,i){return d(function(a){e.getSymbolDisplayBuilder().buildSymbolDisplay(t,a,n,r,i);})}function m(e,t,n,r){return r|=65536,d(function(i){e.getSymbolDisplayBuilder().buildSignatureDisplay(t,i,n,r);})}function g(t,n,r){if(y(r)||e.isStringOrNumericLiteral(r)&&144===r.parent.kind)return e.getTextOfIdentifierOrLiteral(r);var i=e.getLocalSymbolForExportDefault(n);return t.symbolToString(i||n)}function y(e){return e.parent&&(242===e.parent.kind||246===e.parent.kind)&&e.parent.propertyName===e}function h(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(34===e.charCodeAt(0)||39===e.charCodeAt(0))?e.substring(1,t-1):e}function v(t,n){for(var r=[],i=2;i=0){var _=c-o;_>0&&i.push({length:_,classification:e.TokenClass.Whitespace});}i.push({length:u,classification:r(l)}),o=c+u;}var d=n.length-o;return d>0&&i.push({length:d,classification:e.TokenClass.Whitespace}),{entries:i,finalLexState:t.endOfLineState}}function r(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:default:return e.TokenClass.Identifier}}function i(e,t,r){return n(a(e,t,r),e)}function a(n,r,i){function a(e,t,n){if(8!==n){0===e&&o>0&&(e+=o);var r=(t-=o)-(e-=o);r>0&&(f.spans.push(e),f.spans.push(r),f.spans.push(n));}}for(var o=0,s=0,p=0;d.length>0;)d.pop();switch(r){case 3:n='"\\\n'+n,o=3;break;case 2:n="'\\\n"+n,o=3;break;case 1:n="/*\n"+n,o=3;break;case 4:n="`\n"+n,o=2;break;case 5:n="}\n"+n,o=2;case 6:d.push(14);}l.setText(n);var f={endOfLineState:0,spans:[]},m=0;do{if(s=l.scan(),!e.isTrivia(s)){if(41!==s&&63!==s||_[p]){if(23===p&&c(s))s=71;else if(c(p)&&c(s)&&!t(p,s))s=71;else if(71===p&&27===s)m++;else if(29===s&&m>0)m--;else if(119===s||136===s||133===s||122===s||137===s)m>0&&!i&&(s=71);else if(14===s)d.push(s);else if(17===s)d.length>0&&d.push(s);else if(18===s&&d.length>0){var g=e.lastOrUndefined(d);14===g?16===(s=l.reScanTemplateToken())?d.pop():e.Debug.assertEqual(s,15,"Should have been a template middle."):(e.Debug.assertEqual(g,17,"Should have been an open brace"),d.pop());}}else 12===l.reScanSlashToken()&&(s=12);p=s;}!function(){var t=l.getTokenPos(),r=l.getTextPos();if(a(t,r,u(s)),r>=n.length)if(9===s){var i=l.getTokenText();if(l.isUnterminated()){for(var o=i.length-1,c=0;92===i.charCodeAt(o-c);)c++;if(1&c){var _=i.charCodeAt(0);f.endOfLineState=34===_?3:2;}}}else 3===s?l.isUnterminated()&&(f.endOfLineState=1):e.isTemplateLiteralKind(s)?l.isUnterminated()&&(16===s?f.endOfLineState=5:13===s?f.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+s)):d.length>0&&14===e.lastOrUndefined(d)&&(f.endOfLineState=6);}();}while(1!==s);return f}function o(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}function s(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function c(e){return e>=72&&e<=142}function u(t){if(c(t))return 3;if(o(t)||s(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}var l=e.createScanner(5,!1),_=[];_[71]=!0,_[9]=!0,_[8]=!0,_[12]=!0,_[99]=!0,_[43]=!0,_[44]=!0,_[20]=!0,_[22]=!0,_[18]=!0,_[101]=!0,_[86]=!0;var d=[];return{getClassificationsForLine:i,getEncodedLexicalClassifications:a}}function n(e,t,n,r,a){return o(i(e,t,n,r,a))}function r(e,t){switch(t){case 233:case 229:case 230:case 228:e.throwIfCancellationRequested();}}function i(t,n,i,a,o){function s(e,t,n){l.push(e),l.push(t),l.push(n);}function c(t,n){var r=t.getFlags();if(0!=(788448&r)){if(32&r)return 11;if(384&r)return 12;if(524288&r)return 16;if(2&n){if(64&r)return 13;if(262144&r)return 15}else if(1536&r&&(4&n||1&n&&function(t){return e.forEach(t.declarations,function(t){return 233===t.kind&&1===e.getModuleInstanceState(t)})}(t)))return 14}}function u(i){if(i&&e.textSpanIntersectsWith(o,i.getFullStart(),i.getFullWidth())){var l=i.kind;if(r(n,l),71===l&&!e.nodeIsMissing(i)){var _=i;if(a.has(_.escapedText)){var d=t.getSymbolAtLocation(i);if(d){var p=c(d,e.getMeaningFromLocation(i));p&&s(i.getStart(),i.getWidth(),p);}}}e.forEachChild(i,u);}}var l=[];return u(i),{spans:l,endOfLineState:0}}function a(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value"}}function o(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],i=0;i=0),i>0){var s=n||m(t.kind,t);s&&a(r,i,s);}return!0}function f(e){switch(e.parent&&e.parent.kind){case 251:if(e.parent.tagName===e)return 19;break;case 252:if(e.parent.tagName===e)return 20;break;case 250:if(e.parent.tagName===e)return 21;break;case 253:if(e.parent.name===e)return 22}}function m(t,n){if(e.isKeyword(t))return 3;if((27===t||29===t)&&n&&e.getTypeArgumentOrTypeParameterList(n.parent))return 10;if(e.isPunctuation(t)){if(n){if(58===t&&(226===n.parent.kind||149===n.parent.kind||146===n.parent.kind||253===n.parent.kind))return 5;if(194===n.parent.kind||192===n.parent.kind||193===n.parent.kind||195===n.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 253===n.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(n)switch(n.parent.kind){case 229:if(n.parent.name===n)return 11;return;case 145:if(n.parent.name===n)return 15;return;case 230:if(n.parent.name===n)return 13;return;case 232:if(n.parent.name===n)return 12;return;case 233:if(n.parent.name===n)return 14;return;case 146:if(n.parent.name===n)return e.isThisIdentifier(n)?3:17;return}return 2}}function g(i){if(i&&e.decodedTextSpanIntersectsWith(y,h,i.pos,i.getFullWidth())){r(t,i.kind);for(var a=0,o=i.getChildren(n);a=e.pos&&n<=e.end&&e});if(c){var u={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},_=t.text.substr(c.pos,n-c.pos),d=T.exec(_);if(d){var p=d[1],f=d[2],g=d[3],y=e.getDirectoryPath(t.path);if("path"===f){var h=m(g,c.pos+p.length);u.entries=a(g,y,e.getSupportedExtensions(r),!0,h,i,t.path);}else{var v={start:c.pos+p.length,length:d[0].length-p.length};u.entries=l(i,r,y,v);}}return u}}}}function l(t,n,r,i,a){if(void 0===a&&(a=[]),n.types)for(var o=0,s=n.types;o=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}function y(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}function h(e,t){return k(e,e.getDirectories)}function v(e,t,n,r,i){return k(e,e.readDirectory)}function b(e,t){return k(e,e.readFile)}function x(e,t){return k(e,e.fileExists)}function S(t,n){try{return e.directoryProbablyExists(n,t)}catch(e){}}function k(e,t){for(var n=[],r=2;r0&&(se=L(r,i)),!0}function g(n){var r=241===n.kind?238:244,i=e.getAncestor(n,r).moduleSpecifier;if(!i)return!1;ne=!0,re=!1;var a=t.getSymbolAtLocation(i);if(!a)return se=e.emptyArray,!0;var o=t.getExportsAndPropertiesOfModule(a);return se=I(o,n.elements),!0}function y(n){ne=!0,re=!0,oe=1;var r=e.getClassExtendsHeritageClauseElement(n),i=e.getClassImplementsHeritageClauseElements(n);if(r||i){var a=G.parent,o=e.isClassElement(a)&&e.getModifierFlags(a);if(71===G.kind&&!B(G))switch(G.getText()){case"private":o|=8;break;case"static":o|=32;}if(!(8&o)){var s=void 0;r&&(s=t.getTypeAtLocation(r),32&o&&(s=t.getTypeOfSymbolAtLocation(s.symbol,n)));var c=32&o?e.emptyArray:e.flatMap(i||e.emptyArray,function(e){return t.getPropertiesOfType(t.getTypeAtLocation(e))});se=R(s?t.getPropertiesOfType(s):e.emptyArray,c,n.members,o);}}}function S(t){if(t)switch(t.kind){case 17:case 26:var n=t.parent;if(e.isObjectLiteralExpression(n)||e.isObjectBindingPattern(n))return n}}function k(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 241:case 245:return e.parent}}}function C(t){return e.isClassElement(t.parent)&&e.isClassLike(t.parent.parent)}function D(t){return e.isParameter(t)&&e.isConstructorDeclaration(t.parent)}function E(t){return t.parent&&D(t.parent)&&(b(t.kind)||e.isDeclarationName(t))}function N(t){if(t)switch(t.kind){case 17:case 26:if(e.isClassLike(t.parent))return t.parent;break;case 25:case 18:if(e.isClassLike(ee))return ee;break;default:if(C(t)&&(h(t.kind)||v(t.getText())))return t.parent.parent}if(ee&&286===ee.kind&&e.isClassLike(ee.parent))return ee.parent}function A(t){if(t)switch(t.kind){case 19:case 26:return e.isConstructorDeclaration(t.parent)&&t.parent;default:if(E(t))return t.parent.parent}}function w(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 179:case 254:case 253:case 255:if(t&&(250===t.kind||251===t.kind))return t;if(253===t.kind)return t.parent.parent;break;case 9:if(t&&(253===t.kind||255===t.kind))return t.parent.parent;break;case 18:if(t&&256===t.kind&&t.parent&&253===t.parent.kind)return t.parent.parent.parent;if(t&&255===t.kind)return t.parent.parent}}}function O(t){var n=t.parent.kind;switch(t.kind){case 26:return 226===n||227===n||208===n||232===n||P(n)||230===n||175===n||231===n||e.isClassLike(t.parent)&&t.parent.typeParameters&&t.parent.typeParameters.end>=t.pos;case 23:return 175===n;case 56:return 176===n;case 21:return 175===n;case 19:return 260===n||P(n);case 17:return 232===n||230===n||163===n;case 25:return 148===n&&t.parent&&t.parent.parent&&(230===t.parent.parent.kind||163===t.parent.parent.kind);case 27:return 229===n||199===n||230===n||231===n||e.isFunctionLikeKind(n);case 115:return 149===n&&!e.isClassLike(t.parent.parent);case 24:return 146===n||t.parent&&t.parent.parent&&175===t.parent.parent.kind;case 114:case 112:case 113:return 146===n&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 242===n||246===n||240===n;case 125:case 135:if(C(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 138:return!0}if(v(t.getText())&&C(t))return!1;if(E(t)&&(!e.isIdentifier(t)||x(t.getText())||B(t)))return!1;switch(t.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)}function P(t){return e.isFunctionLikeKind(t)&&152!==t}function F(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function I(t,n){for(var r=e.createUnderscoreEscapedMap(),i=0,a=n;is))for(var u=c.length-1;u>=0;u--){var l=c[u];if(t>=l.pos)return l}}}function C(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}var D;!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.ConstructorParameterKeywords=2]="ConstructorParameterKeywords";}(D||(D={})),t.getCompletionsAtPosition=n,t.getCompletionEntryDetails=d,t.getCompletionEntrySymbol=p;var E=[];}(e.Completions||(e.Completions={}));}(r||(r={}));!function(e){!function(t){function n(t,n,a,s,c){var u=e.getTouchingWord(a,s,!0);if(u!==a){if(e.Debug.assert(void 0!==u.parent),e.isJsxOpeningElement(u.parent)&&u.parent.tagName===u||e.isJsxClosingElement(u.parent)){var l=u.parent.parent,_=[l.openingElement,l.closingElement].map(function(e){return r(e.tagName,a)});return[{fileName:a.fileName,highlightSpans:_}]}return i(u,t,n,c)||o(u,a)}}function r(t,n){return{fileName:n.fileName,textSpan:e.createTextSpanFromNode(t,n),kind:"none"}}function i(t,n,r,i){var o=e.FindAllReferences.getReferenceEntriesForNode(t,n,i,r);return o&&a(o)}function a(t){for(var n=e.createMap(),r=0,i=t;r=0&&!g(n,r[i],106);i--);var a=d(t.statement);return e.forEach(a,function(e){p(t,e)&&g(n,e.getFirstToken(),72,77);}),n}function b(e){var t=f(e);if(t)switch(t.kind){case 214:case 215:case 216:case 212:case 213:return v(t);case 221:return x(t)}}function x(t){var n=[];return g(n,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(r){g(n,r.getFirstToken(),73,79);var i=d(r);e.forEach(i,function(e){p(t,e)&&g(n,e.getFirstToken(),72);});}),n}function S(t,n){var r=[];return g(r,t.getFirstToken(),102),t.catchClause&&g(r,t.catchClause.getFirstToken(),74),t.finallyBlock&&g(r,e.findChildOfKind(t,87,n),87),r}function k(t){var n=_(t);if(n){var r=[];return e.forEach(l(n),function(e){g(r,e.getFirstToken(),100);}),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,function(e){g(r,e.getFirstToken(),96);}),r}}function T(t){var n=e.getContainingFunction(t);if(n&&s(n.body,207)){var r=[];return e.forEachReturnStatement(n.body,function(e){g(r,e.getFirstToken(),96);}),e.forEach(l(n.body),function(e){g(r,e.getFirstToken(),100);}),r}}function C(t,n){for(var i=[];s(t.parent,211)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var a=t.getChildren();g(i,a[0],90);for(c=a.length-1;c>=0&&!g(i,a[c],82);c--);if(!s(t.elseStatement,211))break;t=t.elseStatement;}for(var o=[],c=0;c=u.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){_=!1;break}if(_){o.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),l.end),kind:"reference"}),c++;continue}}o.push(r(i[c],n));}return o}function D(e,t){for(var n=e.parent;222===n.kind;n=n.parent)if(n.label.escapedText===t)return!0;return!1}t.getDocumentHighlights=n;}(e.DocumentHighlights||(e.DocumentHighlights={}));}(r||(r={}));!function(e){function t(t,n){function r(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function i(t,n){var r=p.get(t);return!r&&n&&p.set(t,r=e.createMap()),r}function a(){var t=e.arrayFrom(p.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return p.get(e).forEach(function(e,n){t.push({name:n,refCount:e.languageServiceRefCount,references:e.owners.slice(0)});}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)}function o(t,i,a,o,c){return s(t,e.toPath(t,n,f),i,r(i),a,o,c)}function s(e,t,n,r,i,a,o){return l(e,t,n,r,i,a,!0,o)}function c(t,i,a,o,s){return u(t,e.toPath(t,n,f),i,r(i),a,o,s)}function u(e,t,n,r,i,a,o){return l(e,t,n,r,i,a,!1,o)}function l(t,n,r,a,o,s,c,u){var l=i(a,!0),_=l.get(n);return _?(_.sourceFile.version!==s&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,o,s,o.getChangeRange(_.sourceFile.scriptSnapshot))),c&&_.languageServiceRefCount++):(_={sourceFile:e.createLanguageServiceSourceFile(t,o,r.target,s,!1,u),languageServiceRefCount:1,owners:[]},l.set(n,_)),_.sourceFile}function _(t,i){return d(e.toPath(t,n,f),r(i))}function d(t,n){var r=i(n,!1);e.Debug.assert(void 0!==r);var a=r.get(t);a.languageServiceRefCount--,e.Debug.assert(a.languageServiceRefCount>=0),0===a.languageServiceRefCount&&r.delete(t);}void 0===n&&(n="");var p=e.createMap(),f=e.createGetCanonicalFileName(!!t);return{acquireDocument:o,acquireDocumentWithKey:s,updateDocument:c,updateDocumentWithKey:u,releaseDocument:_,releaseDocumentWithKey:d,reportStats:a,getKeyForCompilationSettings:r}}e.createDocumentRegistry=t;}(r||(r={}));!function(e){!function(n){function r(e,n,r){var o=c(e,n,r);return function(s,c,u){var l=i(e,o,c,n,r),_=l.directImports,d=l.indirectUsers;return t({indirectUsers:d},a(_,s,c.exportKind,n,u))}}function i(t,n,r,i,a){function s(t){var n=_(t);if(n)for(var r=0,o=n;r=0&&!(c>r.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),5)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),5)||i.push(c),c=a.indexOf(n,c+s+1);}return i}function y(n,r){for(var i=[],a=n.getSourceFile(),o=r.text,s=0,c=g(a,o,n);s0);for(var n=0,r=t;n0);for(var n=e.PatternMatchKind.camelCase,r=0,i=t;r0)return r}switch(t.kind){case 265:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 187:case 228:case 186:case 229:case 199:return 512&e.getModifierFlags(t)?"default":w(t);case 152:return"constructor";case 156:return"new()";case 155:return"()";case 157:return"[]";case 283:return b(t);default:return""}}function b(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&208===t.kind&&t.declarationList.declarations.length>0){var n=t.declarationList.declarations[0].name;if(71===n.kind)return n.text}return""}function x(t){function n(e){if(r(e)&&(i.push(e),e.children))for(var t=0,a=e.children;t0?e.declarationNameToString(t.name):226===t.parent.kind?e.declarationNameToString(t.parent.name):194===t.parent.kind&&58===t.parent.operatorToken.kind?a(t.parent.left).replace(L,""):261===t.parent.kind&&t.parent.name?a(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function O(e){return 186===e.kind||187===e.kind||199===e.kind}var P,F,I,L=/\s+/g,R=[],M=[];t.getNavigationBarItems=n,t.getNavigationTree=r;}(e.NavigationBar||(e.NavigationBar={}));}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r,i,a){if(n&&r&&i){var o={textSpan:e.createTextSpanFromBounds(r.pos,i.end),hintSpan:e.createTextSpanFromNode(n,t),bannerText:l,autoCollapse:a};u.push(o);}}function i(t,n){if(t){var r={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:l,autoCollapse:n};u.push(r);}}function a(r){var a=e.getLeadingCommentRangesOfNode(r,t);if(a){for(var s=-1,c=-1,u=!0,l=0,_=0,d=a;_1&&i({kind:2,pos:t,end:n},!1);}function s(t){return e.isFunctionBlock(t)&&187!==t.parent.kind}function c(i){if(n.throwIfCancellationRequested(),!(_>d)){switch(e.isDeclaration(i)&&a(i),i.kind){case 207:if(!e.isFunctionBlock(i)){var o=i.parent,p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t);if(212===o.kind||215===o.kind||216===o.kind||214===o.kind||211===o.kind||213===o.kind||220===o.kind||260===o.kind){r(o,p,f,s(i));break}if(224===o.kind){var m=o;if(m.tryBlock===i){r(o,p,f,s(i));break}if(m.finallyBlock===i){var g=e.findChildOfKind(m,87,t);if(g){r(g,p,f,s(i));break}}}var y=e.createTextSpanFromNode(i);u.push({textSpan:y,hintSpan:y,bannerText:l,autoCollapse:s(i)});break}case 234:var p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t);r(i.parent,p,f,s(i));break;case 229:case 230:case 232:case 178:case 235:r(i,p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t),s(i));break;case 177:r(i,e.findChildOfKind(i,21,t),e.findChildOfKind(i,22,t),s(i));}_++,e.forEachChild(i,c),_--;}}var u=[],l="...",_=0,d=20;return c(t),u}t.collectElements=n;}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}));}(r||(r={}));!function(e){function t(e,t,n,r){return{kind:e,punctuationStripped:t,isCaseSensitive:n,camelCaseWeight:r}}function n(n){function o(e){return b||!e}function c(t){if(!o(t))return f(t,e.lastOrUndefined(v))}function l(t,n){if(!o(n)){var r=f(n,e.lastOrUndefined(v));if(r&&(t=t||[],!(v.length-1>t.length))){for(var i=r,a=v.length-2,s=t.length-1;a>=0;a-=1,s-=1){var c=v[a],u=f(t[s],c);if(!u)return;e.addRange(i,u);}return i}}}function _(e){var t=h.get(e);return t||h.set(e,t=m(e)),t}function d(n,r,i){var o=s(n,r.textLowerCase);if(0===o)return r.text.length===n.length?t(x.exact,i,n===r.text):t(x.prefix,i,e.startsWith(n,r.text));var c=r.isLowerCase;if(c){if(o>0)for(var u=0,l=_(n);u0)return t(x.substring,i,!0);if(!c&&r.characterSpans.length>0){var p=_(n),f=y(n,p,r,!1);if(void 0!==f)return t(x.camelCase,i,!0,f);if(void 0!==(f=y(n,p,r,!0)))return t(x.camelCase,i,!1,f)}return c&&r.text.length0&&a(n.charCodeAt(o))?t(x.substring,i,!1):void 0}function p(e){for(var t=0;tt.length)return!1;if(r)for(l=0;l1}}function r(e){return{totalTextChunk:p(e),subWordTextChunks:d(e)}}function i(e){return 0===e.subWordTextChunks.length}function a(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function o(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function s(e,t){for(var n=e.length-t.length,r=0;r<=n;r++)if(c(e,t,r))return r;return-1}function c(e,t,n){for(var r=0;r=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function l(e){return e>=48&&e<=57}function _(e){return a(e)||o(e)||l(e)||95===e||36===e}function d(e){for(var t=[],n=0,r=0,i=0;i0&&(t.push(p(e.substr(n,r))),r=0);return r>0&&t.push(p(e.substr(n,r))),t}function p(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:f(e)}}function f(e){return g(e,!1)}function m(e){return g(e,!0)}function g(t,n){for(var r=[],i=0,a=1;a0){if(e.some(c,o))return a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(71===t.kind&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.stripQuotes(e.getDeclaredName(n,s,t)),l=e.SymbolDisplay.getSymbolKind(n,s,t);return l?i(u,n.getFullyQualifiedName(s),l,e.SymbolDisplay.getSymbolModifiers(s),t,r):void 0}}else if(9===t.kind)return o(t)?a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):i(u=e.stripQuotes(t.text),u,"var","",t,r)}function i(e,t,n,r,i,a){return{canRename:!0,kind:n,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:r,triggerSpan:o(i,a)}}function a(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function o(t,n){var r=t.getStart(n),i=t.getWidth(n);return 9===t.kind&&(r+=1,i-=2),e.createTextSpan(r,i)}function s(t){return 71===t.kind||9===t.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||e.isThis(t)}t.getRenameInfo=n;}(e.Rename||(e.Rename={}));}(r||(r={}));!function(e){!function(t){function n(t,n,i,a){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(n,i);if(s){var c=_(s,i,n);if(c){a.throwIfCancellationRequested();var u=c.invocation,l=[],d=o.getResolvedSignature(u,l,c.argumentCount);if(a.throwIfCancellationRequested(),l.length)return p(l,d,c,o);if(e.isSourceFileJavaScript(n))return r(c,t)}}}function r(e,t){if(181===e.invocation.kind){var n=e.invocation.expression,r=71===n.kind?n:179===n.kind?n.name:void 0;if(r&&r.escapedText)for(var i=t.getTypeChecker(),a=0,o=t.getSourceFiles();a0&&26===e.lastOrUndefined(n).kind&&r++,r}function s(t,n,r){return e.Debug.assert(r>=n.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(n.kind)?e.isInsideTemplateLiteral(n,r)?0:t+2:t+1}function c(t,n,r){var i=13===t.template.kind?1:t.template.templateSpans.length+1;return 0!==n&&e.Debug.assertLessThan(n,i),{kind:2,invocation:t,argumentsSpan:l(t,r),argumentIndex:n,argumentCount:i}}function u(t,n){var r=t.getFullStart(),i=e.skipTrivia(n.text,t.getEnd(),!1);return e.createTextSpan(r,i-r)}function l(t,n){var r=t.template,i=r.getStart(),a=r.getEnd();return 196===r.kind&&0===e.lastOrUndefined(r.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(n.text,a,!1)),e.createTextSpan(i,a-i)}function _(t,n,r){for(var a=t;265!==a.kind;a=a.parent){if(e.isFunctionBlock(a))return;(a.posa.parent.end)&&e.Debug.fail("Node of kind "+a.kind+" is not a subspan of its parent of kind "+a.parent.kind);var o=i(a,n,r);if(o)return o}}function d(t,n,r){var i=t.getChildren(r),a=i.indexOf(n);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function p(t,n,r,i){function a(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildParameterDisplay(t,e,u)});return{name:t.name,documentation:t.getDocumentationComment(),displayParts:n,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function o(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildTypeParameterDisplay(t,e,u)});return{name:t.symbol.name,documentation:e.emptyArray,displayParts:n,isOptional:!1}}var s=r.argumentCount,c=r.argumentsSpan,u=r.invocation,l=r.argumentIndex,_=0===r.kind,d=e.getInvokedExpression(u),p=i.getSymbolAtLocation(d),f=p&&e.symbolToDisplayParts(i,p,void 0,void 0),m=e.map(t,function(t){var n,r=[],s=[];f&&e.addRange(r,f);var c;if(_){c=!1,r.push(e.punctuationPart(27));var l=(t.target||t).typeParameters;n=l&&l.length>0?e.map(l,o):e.emptyArray,s.push(e.punctuationPart(29));var d=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(t.thisParameter,t.parameters,e,u)});e.addRange(s,d);}else{c=t.hasRestParameter;var p=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(t.typeParameters,e,u)});e.addRange(r,p),r.push(e.punctuationPart(19)),n=e.map(t.parameters,a),s.push(e.punctuationPart(20));}var m=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildReturnTypeDisplay(t,e,u)});return e.addRange(s,m),{isVariadic:c,prefixDisplayParts:r,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:n,documentation:t.getDocumentationComment(),tags:t.getJsDocTags()}});0!==l&&e.Debug.assertLessThan(l,s);var g=t.indexOf(n);return e.Debug.assert(-1!==g),{items:m,applicableSpan:c,selectedItemIndex:g,argumentIndex:l,argumentCount:s}}!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments";}(t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=n,t.getImmediatelyContainingArgumentInfo=i,t.getContainingArgumentInfo=_;}(e.SignatureHelp||(e.SignatureHelp={}));}(r||(r={}));!function(e){!function(t){function n(t,n,i){var a=e.getCombinedLocalAndExportSymbolFlags(n);if(32&a)return e.getDeclarationOfKind(n,199)?"local class":"class";if(384&a)return"enum";if(524288&a)return"type";if(64&a)return"interface";if(262144&a)return"type parameter";var o=r(t,n,i);if(""===o){if(262144&a)return"type parameter";if(8&a)return"enum member";if(2097152&a)return"alias";if(1536&a)return"module"}return o}function r(t,n,r){if(t.isUndefinedSymbol(n))return"var";if(t.isArgumentsSymbol(n))return"local var";if(99===r.kind&&e.isExpression(r))return"parameter";var i=e.getCombinedLocalAndExportSymbolFlags(n);if(3&i)return e.isFirstDeclarationOfSymbolParameter(n)?"parameter":n.valueDeclaration&&e.isConst(n.valueDeclaration)?"const":e.forEach(n.declarations,e.isLet)?"let":o(n)?"local var":"var";if(16&i)return o(n)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(4&i){if(33554432&i&&6&n.checkFlags){var a=e.forEach(t.getRootSymbols(n),function(t){var n=t.getFlags();if(98311&n)return"property";e.Debug.assert(!!(8192&n));});return a||(t.getTypeOfSymbolAtLocation(n,r).getCallSignatures().length?"method":"property")}return r.parent&&e.isJsxAttribute(r.parent)?"JSX attribute":"property"}return""}function i(t){return t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):""}function a(t,i,a,o,s,c){function u(){b.length&&b.push(e.lineBreakPart());}function l(){b.push(e.spacePart()),b.push(e.keywordPart(92)),b.push(e.spacePart());}function _(n,r){var i=e.symbolToDisplayParts(t,n,r||a,void 0,3);e.addRange(b,i);}function d(t,n){u(),n&&(p(n),b.push(e.spacePart()),_(t));}function p(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void b.push(e.textOrKeywordPart(t));default:return b.push(e.punctuationPart(19)),b.push(e.textOrKeywordPart(t)),void b.push(e.punctuationPart(20))}}function f(n,r,i){e.addRange(b,e.signatureToDisplayParts(t,n,o,64|i)),r.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(19)),b.push(e.operatorPart(37)),b.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),b.push(e.spacePart()),b.push(e.textPart(2===r.length?"overload":"overloads")),b.push(e.punctuationPart(20))),g=n.getDocumentationComment(),y=n.getJsDocTags();}function m(n,r){var i=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplayFromSymbol(n,e,r);});e.addRange(b,i);}void 0===c&&(c=e.getMeaningFromLocation(s));var g,y,h,v,b=[],x=e.getCombinedLocalAndExportSymbolFlags(i),S=r(t,i,s),k=99===s.kind&&e.isExpression(s);if(""!==S||32&x||2097152&x){"getter"!==S&&"setter"!==S||(S="property");P=void 0;if(v=k?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(i.exportSymbol||i,s)){if(s.parent&&179===s.parent.kind){var T=s.parent.name;(T===s||T&&0===T.getFullWidth())&&(s=s.parent);}var C=void 0;if(e.isCallOrNewExpression(s)?C=s:e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)?C=s.parent:s.parent&&e.isJsxOpeningLikeElement(s.parent)&&e.isFunctionLike(i.valueDeclaration)&&(C=s.parent),C){var D=[];!(P=t.getResolvedSignature(C,D))&&D.length&&(P=D[0]);var E=182===C.kind||e.isCallExpression(C)&&97===C.expression.kind,N=E?v.getConstructSignatures():v.getCallSignatures();if(e.contains(N,P.target)||e.contains(N,P)||(P=N.length?N[0]:void 0),P){switch(E&&32&x?(S="constructor",d(v.symbol,S)):2097152&x?(p(S="alias"),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),_(i)):d(i,S),S){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":b.push(e.punctuationPart(56)),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),32768&v.flags&&16&v.objectFlags||!v.symbol||e.addRange(b,e.symbolToDisplayParts(t,v.symbol,o,void 0,1)),f(P,N,16);break;default:f(P,N);}h=!0;}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&x)||123===s.kind&&152===s.parent.kind){var A=s.parent;if(e.find(i.declarations,function(e){return e===(123===s.kind?A.parent:A)})){N=152===A.kind?v.getNonNullableType().getConstructSignatures():v.getNonNullableType().getCallSignatures();P=t.isImplementationOfOverload(A)?N[0]:t.getSignatureFromDeclaration(A),152===A.kind?(S="constructor",d(v.symbol,S)):d(155!==A.kind||2048&v.symbol.flags||4096&v.symbol.flags?i:v.symbol,S),f(P,N),h=!0;}}}}if(32&x&&!h&&!k&&(e.getDeclarationOfKind(i,199)?p("local class"):b.push(e.keywordPart(75)),b.push(e.spacePart()),_(i),m(i,a)),64&x&&2&c&&(u(),b.push(e.keywordPart(109)),b.push(e.spacePart()),_(i),m(i,a)),524288&x&&(u(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(i),m(i,a),b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(i),o,1024))),384&x&&(u(),e.forEach(i.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(76)),b.push(e.spacePart())),b.push(e.keywordPart(83)),b.push(e.spacePart()),_(i)),1536&x){u();var w=(M=e.getDeclarationOfKind(i,233))&&M.name&&71===M.name.kind;b.push(e.keywordPart(w?129:128)),b.push(e.spacePart()),_(i);}if(262144&x&&2&c)if(u(),b.push(e.punctuationPart(19)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(20)),b.push(e.spacePart()),_(i),i.parent)l(),_(i.parent,o),m(i.parent,o);else{var O=e.getDeclarationOfKind(i,145);if(e.Debug.assert(void 0!==O),M=O.parent)if(e.isFunctionLikeKind(M.kind)){l();var P=t.getSignatureFromDeclaration(M);156===M.kind?(b.push(e.keywordPart(94)),b.push(e.spacePart())):155!==M.kind&&M.name&&_(M.symbol),e.addRange(b,e.signatureToDisplayParts(t,P,a,64));}else 231===M.kind&&(l(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(M.symbol),m(M.symbol,a));}if(8&x&&(S="enum member",d(i,"enum member"),264===(M=i.declarations[0]).kind)){var F=t.getConstantValue(M);void 0!==F&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.displayPart(e.getTextOfConstantValue(F),"number"==typeof F?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)));}if(2097152&x&&(u(),236===i.declarations[0].kind?(b.push(e.keywordPart(84)),b.push(e.spacePart()),b.push(e.keywordPart(129))):b.push(e.keywordPart(91)),b.push(e.spacePart()),_(i),e.forEach(i.declarations,function(n){if(237===n.kind){var r=n;if(e.isExternalModuleImportEqualsDeclaration(r))b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.keywordPart(132)),b.push(e.punctuationPart(19)),b.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(20));else{var i=t.getSymbolAtLocation(r.moduleReference);i&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),_(i,o));}return!0}})),!h)if(""!==S){if(v)if(k?(u(),b.push(e.keywordPart(99))):d(i,S),"property"===S||"JSX attribute"===S||3&x||"local var"===S||k)if(b.push(e.punctuationPart(56)),b.push(e.spacePart()),v.symbol&&262144&v.symbol.flags){var I=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(v,e,o);});e.addRange(b,I);}else e.addRange(b,e.typeToDisplayParts(t,v,o));else(16&x||8192&x||16384&x||131072&x||98304&x||"method"===S)&&f((N=v.getNonNullableType().getCallSignatures())[0],N);}else S=n(t,i,s);if(!g&&(g=i.getDocumentationComment(),y=i.getJsDocTags(),0===g.length&&4&x&&i.parent&&e.forEach(i.parent.declarations,function(e){return 265===e.kind})))for(var L=0,R=i.declarations;L0))break}}return{displayParts:b,documentation:g,symbolKind:S,tags:y}}function o(t){return!t.parent&&e.forEach(t.declarations,function(t){if(186===t.kind)return!0;if(226!==t.kind&&228!==t.kind)return!1;for(var n=t.parent;!e.isFunctionBlock(n);n=n.parent)if(265===n.kind||234===n.kind)return!1;return!0})}t.getSymbolKind=n,t.getSymbolModifiers=i,t.getSymbolDisplayPartsDocumentationAndSymbolKind=a;}(e.SymbolDisplay||(e.SymbolDisplay={}));}(r||(r={}));!function(e){function t(t,n){var i=[],a=n.compilerOptions?r(n.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=n.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);n.moduleName&&(s.moduleName=n.moduleName),n.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(n.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),_={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,n){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=n):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=n);},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},d=e.createProgram([o],a,_);return n.reportDiagnostics&&(e.addRange(i,d.getSyntacticDiagnostics(s)),e.addRange(i,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,n.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:i,sourceMapText:u}}function n(n,r,i,a,o){var s=t(n,{compilerOptions:r,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText}function r(t,n){i=i||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var r=0,a=i;r>=5,n+=5;return t},t.prototype.IncreaseInsertionIndex=function(t){var n=this.rulesInsertionIndexBitmap>>t&31;n++,e.Debug.assert((31&n)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");var r=this.rulesInsertionIndexBitmap&~(31<=0},e.prototype.isSpecific=function(){return!0},e}(),a=function(){function e(e){this.token=e;}return e.prototype.GetTokens=function(){return[this.token]},e.prototype.Contains=function(e){return e===this.token},e.prototype.isSpecific=function(){return!0},e}(),o=function(){function e(){}return e.prototype.GetTokens=function(){return n},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e.prototype.isSpecific=function(){return!1},e}(),s=function(){function e(e){this.except=e;}return e.prototype.GetTokens=function(){var e=this;return n.filter(function(t){return t!==e.except})},e.prototype.Contains=function(e){return e!==this.except},e.prototype.isSpecific=function(){return!1},e}();!function(t){function r(e){return new a(e)}function c(e){return new i(e)}function u(t,n,r){void 0===r&&(r=[]);for(var a=[],o=t;o<=n;o++)e.indexOf(r,o)<0&&a.push(o);return new i(a)}function l(e){return new s(e)}t.FromToken=r,t.FromTokens=c,t.FromRange=u,t.AnyExcept=l,t.Any=new o,t.AnyIncludingMultilineComments=t.FromTokens(n.concat([3])),t.Keywords=t.FromRange(72,142),t.BinaryOperators=t.FromRange(27,70),t.BinaryKeywordOperators=t.FromTokens([92,93,142,118,126]),t.UnaryPrefixOperators=t.FromTokens([43,44,52,51]),t.UnaryPrefixExpressions=t.FromTokens([8,71,19,21,17,99,94]),t.UnaryPreincrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostincrementExpressions=t.FromTokens([71,20,22,94]),t.UnaryPredecrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostdecrementExpressions=t.FromTokens([71,20,22,94]),t.Comments=t.FromTokens([2,3]),t.TypeNames=t.FromTokens([71,133,136,122,137,105,119]);}(t.TokenRange||(t.TokenRange={}));}(t.Shared||(t.Shared={}));}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){var n=function(){function n(){this.globalRules=new t.Rules;var e=this.globalRules.HighPriorityCommonRules.slice(0).concat(this.globalRules.UserConfigurableRules).concat(this.globalRules.LowPriorityCommonRules);this.rulesMap=t.RulesMap.create(e);}return n.prototype.getRuleName=function(e){return this.globalRules.getRuleName(e)},n.prototype.getRuleByName=function(e){return this.globalRules[e]},n.prototype.getRulesMap=function(){return this.rulesMap},n.prototype.getFormatOptions=function(){return this.options},n.prototype.ensureUpToDate=function(t){this.options&&e.compareDataObjects(this.options,t)||(this.options=e.clone(t));},n}();t.RulesProvider=n;}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r,i){var a=n.getLineAndCharacterOfPosition(t).line;if(0===a)return[];for(var o=e.getEndLinePosition(a,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(o));)o--;return e.isLineBreak(n.text.charCodeAt(o))&&o--,y({pos:e.getStartPositionOfLine(a-1,n),end:o+1},n,i,r,2)}function r(e,t,n,r){return g(u(c(e,25,t)),t,r,n,3)}function i(t,n,r,i){var a=c(t,17,n);if(!a)return[];var o=u(a.parent);return y({pos:e.getLineStartPositionForPosition(o.getStart(n),n),end:t},n,i,r,4)}function a(e,t,n,r){return g(u(c(e,18,t)),t,r,n,5)}function o(e,t,n){return y({pos:0,end:e.text.length},e,n,t,0)}function s(t,n,r,i,a){return y({pos:e.getLineStartPositionForPosition(t,r),end:n},r,a,i,1)}function c(t,n,r){var i=e.findPrecedingToken(t,r);return i&&i.kind===n&&t===i.getEnd()?i:void 0}function u(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!l(t.parent,t);)t=t.parent;return t}function l(t,n){switch(t.kind){case 229:case 230:return e.rangeContainsRange(t.members,n);case 233:var r=t.body;return r&&234===r.kind&&e.rangeContainsRange(r.statements,n);case 265:case 207:case 234:return e.rangeContainsRange(t.statements,n);case 260:return e.rangeContainsRange(t.block.statements,n)}return!1}function _(t,n){function r(i){var a=e.forEachChild(i,function(r){return e.startEndContainsRange(r.getStart(n),r.end,t)&&r});if(a){var o=r(a);if(o)return o}return i}return r(n)}function d(t,n){function r(){return!1}if(!t.length)return r;var i=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!i.length)return r;var a=0;return function(t){for(;;){if(a>=i.length)return!1;var n=i[a];if(t.end<=n.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,n.start,n.start+n.length))return!0;a++;}}}function p(t,n,r){var i=t.getStart(r);if(i===n.pos&&t.end===n.end)return i;var a=e.findPrecedingToken(n.pos,r);return a?a.end>=n.pos?t.pos:a.end:t.pos}function f(e,n,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(e,i))return n.indentSize;a=o,i=e,e=e.parent;}return 0}function m(e,n,r,i,a,o){var s={pos:0,end:n.text.length};return h(s,e,i,a,t.getFormattingScanner(n.text,r,s.pos,s.end),o.getFormatOptions(),o,1,function(e){return!1},n)}function g(t,n,r,i,a){return t?y({pos:e.getLineStartPositionForPosition(t.getStart(n),n),end:t.end},n,r,i,a):[]}function y(e,n,r,i,a){var o=_(e,n);return h(e,o,t.SmartIndenter.getIndentationForNode(o,e,n,r),f(o,r,n),t.getFormattingScanner(n.text,n.languageVariant,p(o,e,n),e.end),r,i,a,d(n.parseDiagnostics,e),n)}function h(n,r,i,a,o,s,c,u,l,_){function d(n,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,n,r)||e.rangeContainsStartEnd(a,n,r)){if(-1!==o)return o}else{var c=_.getLineAndCharacterOfPosition(n).line,u=e.getLineStartPositionForPosition(n,_),l=t.SmartIndenter.findFirstNonWhitespaceColumn(u,n,_,s);if(c!==i||n===l){var d=t.SmartIndenter.getBaseIndentation(s);return d>l?d:l}}return-1}function p(e,n,r,i,a,o){var c=r,u=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0;return o===n?(c=n===M?B:a.getIndentation(),u=Math.min(s.indentSize,a.getDelta(e)+u)):-1===c&&(c=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,n,_)?a.getIndentation():a.getIndentation()+a.getDelta(e)),{indentation:c,delta:u}}function f(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 229:return 75;case 230:return 109;case 228:return 89;case 232:return 232;case 153:return 125;case 154:return 135;case 151:if(t.asteriskToken)return 39;case 149:case 146:return e.getNameOfDeclaration(t).kind}}function m(e,n,r,i){function a(n,r){return t.SmartIndenter.nodeWillIndentChild(e,r,!0)?n:0}return{getIndentationForComment:function(e,t,n){switch(e){case 18:case 22:case 20:return r+a(i,n)}return-1!==t?t:r},getIndentationForToken:function(t,o,s){if(n!==t&&e.decorators&&o===f(e))return r;switch(o){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return r;case 41:case 29:if(251===s.kind||252===s.kind||250===s.kind)return r;break;case 21:case 22:if(172!==s.kind)return r}return n!==t?r+a(i,s):r},getIndentation:function(){return r},getDelta:function(e){return a(i,e)},recomputeIndentation:function(n){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(n?r+=s.indentSize:r-=s.indentSize,i=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0);}}}function g(t,r,i,a,s,c){function u(r,i,a,s,c,u,l,f){var m=r.getStart(_),y=_.getLineAndCharacterOfPosition(m).line,h=y;r.decorators&&(h=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line);var v=-1;if(l&&-1!==(v=d(m,r.end,c,n,i))&&(i=v),!e.rangeOverlapsWithStartEnd(n,r.pos,r.end))return r.endm);)x(b,t,s,t);if(!o.isOnToken())return i;if(e.isToken(r)&&10!==r.kind){var b=o.readTokenInfo(r);return e.Debug.assert(b.token.end===r.end,"Token end is child end"),x(b,t,s,r),i}var S=147===r.kind?y:u,k=p(r,y,v,t,s,S);return g(r,T,y,h,k.indentation,k.delta),T=t,f&&177===a.kind&&-1===i&&(i=k.indentation),i}function f(n,r,i,a){e.Debug.assert(e.isNodeArray(n));var s=v(r,n),c=b(s),l=a,d=i;if(0!==s)for(;o.isOnToken()&&!((h=o.readTokenInfo(r)).token.end>n.pos);)if(h.token.kind===s){d=_.getLineAndCharacterOfPosition(h.token.pos).line;var f=p(h.token,d,-1,r,a,i);x(h,r,l=m(r,i,f.indentation,f.delta),r);}else x(h,r,a,r);for(var g=-1,y=0;yt.end)break;x(C,t,S,t);}}}function y(t,r,i,a){for(var o=0,s=t;o0){var S=x(b,s);O(h,v.character,S);}else w(h,v.character);}}}else i||k(n.pos,r,!1);}function E(t,n,r){for(var i=t;io)){var s=N(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(_.text.charCodeAt(s-1))),w(s,o+1-s));}}}function N(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(_.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function A(t,n,r){return{span:e.createTextSpan(t,n),newText:r}}function w(e,t){t&&j.push(A(e,t,""));}function O(e,t,n){(t||n)&&j.push(A(e,t,n));}function P(e,t,n,r,i){switch(e.Operation.Action){case 1:return;case 8:t.end!==r.pos&&w(t.end,r.pos-t.end);break;case 4:if(1!==e.Flag&&n!==i)return;1!==i-n&&O(t.end,r.pos-t.end,s.newLineCharacter);break;case 2:if(1!==e.Flag&&n!==i)return;1===r.pos-t.end&&32===_.text.charCodeAt(t.end)||O(t.end,r.pos-t.end," ");}}var F,I,L,R,M,B,K=new t.FormattingContext(_,u,s),j=[];if(o.advance(),o.isOnToken()){var J=_.getLineAndCharacterOfPosition(r.getStart(_)).line,z=J;r.decorators&&(z=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line),g(r,r,J,z,i,a);}if(!o.isOnToken()){var U=o.getCurrentLeadingTrivia();U&&(y(U,r,r,void 0),function(){var e=I?I.end:n.pos;E(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(n.end).line+1,I);}());}return o.close(),j}function v(e,t){switch(e.kind){case 152:case 228:case 186:case 151:case 150:case 187:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 181:case 182:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 159:if(e.typeArguments===t)return 27}return 0}function b(e){switch(e){case 19:return 20;case 27:return 29}return 0}function x(e,t){function n(e,t){for(var n="",r=0;rr.text.length)return i(o);if(o.indentStyle===e.IndentStyle.None)return 0;var _=e.findPrecedingToken(n,r);if(!_)return i(o);if(e.isStringOrRegularExpressionOrTemplateLiteral(_.kind)&&_.getStart(r)<=n&&_.end>n)return 0;var d=r.getLineAndCharacterOfPosition(n).line;if(o.indentStyle===e.IndentStyle.Block){for(var p=n;p>0;){var g=r.text.charCodeAt(p);if(!e.isWhiteSpaceLike(g))break;p--;}var y=e.getLineStartPositionForPosition(p,r);return t.findFirstNonWhitespaceColumn(y,p,r,o)}if(26===_.kind&&194!==_.parent.kind&&-1!==(T=s(_,r,o)))return T;for(var h,v,b,x=_;x;){if(e.positionBelongsToNode(x,n,r)&&S(x,h)){v=l(x,r);var k=u(_,x,d,r);b=0!==k?c&&2===k?o.indentSize:0:d!==v.line?o.indentSize:0;break}var T=f(x,r,o);if(-1!==T)return T;if(-1!==(T=m(x,r,o)))return T+o.indentSize;h=x,x=x.parent;}return x?a(x,v,void 0,b,r,o):i(o)}function r(e,t,n,r){return a(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,r)}function i(e){return e.baseIndentSize||0}function a(e,t,n,r,a,s){for(var u,l=e.parent;l;){var d=!0;if(n){var p=e.getStart(a);d=pn.end;}if(d&&-1!==(y=f(e,a,s)))return y+r;var g=(u=o(l,e,a)).line===t.line||_(l,e,t.line,a);if(d){var y=c(e,l,t,g,a,s);if(-1!==y)return y+r;if(-1!==(y=m(e,a,s)))return y+r}S(l,e)&&!g&&(r+=s.indentSize),t=u,l=(e=l).parent;}return r+i(s)}function o(e,t,n){var r=p(t,n);return r?n.getLineAndCharacterOfPosition(r.pos):n.getLineAndCharacterOfPosition(e.getStart(n))}function s(t,n,r){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?g(i.list.getChildren(),i.listItemIndex-1,n,r):-1}function c(t,n,r,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(265===n.kind||!i)?y(r,a,o):-1}function u(t,n,r,i){var a=e.findNextToken(t,n);return a?17===a.kind?1:18===a.kind&&r===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,n,r,i){if(211===t.kind&&t.elseStatement===n){var a=e.findChildOfKind(t,82,i);return e.Debug.assert(void 0!==a),l(a,i).line===r}return!1}function d(t,n,r){return t&&e.rangeContainsStartEnd(t,n,r)?t:void 0}function p(e,t){if(e.parent)switch(e.parent.kind){case 159:return d(e.parent.typeArguments,e.getStart(t),e.getEnd());case 178:return e.parent.properties;case 177:return e.parent.elements;case 228:case 186:case 187:case 151:case 150:case 155:case 152:case 161:case 156:n=e.getStart(t);return d(e.parent.typeParameters,n,e.getEnd())||d(e.parent.parameters,n,e.getEnd());case 229:return d(e.parent.typeParameters,e.getStart(t),e.getEnd());case 182:case 181:var n=e.getStart(t);return d(e.parent.typeArguments,n,e.getEnd())||d(e.parent.arguments,n,e.getEnd());case 227:return d(e.parent.declarations,e.getStart(t),e.getEnd());case 241:case 245:return d(e.parent.elements,e.getStart(t),e.getEnd())}}function f(t,n,r){var i=p(t,n);return i?function(i){var a=e.indexOf(i,t);return-1!==a?g(i,a,n,r):-1}(i):-1}function m(t,n,r){if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,a=function(e){for(;;)switch(e.kind){case 181:case 182:case 179:case 180:e=e.expression;break;default:return e}}(i);if(i===a)return-1;var o=n.getLineAndCharacterOfPosition(i.end),s=n.getLineAndCharacterOfPosition(a.end);return o.line===s.line?-1:y(o,n,r)}return-1}function g(t,n,r,i){e.Debug.assert(n>=0&&n=0;o--)if(26!==t[o].kind){if(r.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,r,i);a=l(t[o],r);}return-1}function y(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return v(r,r+e.character,t,n)}function h(t,n,r,i){for(var a=0,o=0,s=t;s=0;r--){var i=n[r];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span));}return t}function y(t){return e.skipTrivia(t,0)===t.length}function h(t){var r=e.visitEachChild(t,h,e.nullTransformationContext,v,h),a=e.nodeIsSynthesized(r)?r:Object.create(r);return a.pos=n(t),a.end=i(t),a}function v(t,r,a,o,s){var c=e.visitNodes(t,r,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=n(t),u.end=i(t),u}var b;!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start";}(b=t.Position||(t.Position={}));var x;!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes";}(x||(x={})),t.getSeparatorCharacter=c,t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=l;var S=function(){function t(t,n,r){this.newLine=t,this.rulesProvider=n,this.validator=r,this.changes=[],this.newLineCharacter=e.getNewLineCharacter({newLine:t});}return t.fromCodeFixContext=function(e){return new t(p(e),e.rulesProvider)},t.prototype.deleteRange=function(e,t){return this.changes.push({kind:x.Remove,sourceFile:e,range:t}),this},t.prototype.deleteNode=function(e,t,n){void 0===n&&(n={});var r=u(e,t,n,b.FullStart),i=l(e,t,n);return this.changes.push({kind:x.Remove,sourceFile:e,range:{pos:r,end:i}}),this},t.prototype.deleteNodeRange=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.FullStart),a=l(e,n,r);return this.changes.push({kind:x.Remove,sourceFile:e,range:{pos:i,end:a}}),this},t.prototype.deleteNodeInList=function(t,n){var r=e.formatting.SmartIndenter.getContainingList(n,t);if(!r)return e.Debug.fail("node is not a list element"),this;var i=r.indexOf(n);if(i<0)return this;if(1===r.length)return this.deleteNode(t,n),this;if(i!==r.length-1){var a=e.getTokenAtPosition(t,n.end,!1);if(a&&_(n,a)){var o=e.skipTrivia(t.text,u(t,n,{},b.FullStart),!1,!0),s=r[i+1],c=e.skipTrivia(t.text,u(t,s,{},b.FullStart),!1,!0);this.deleteRange(t,{pos:o,end:c});}}else{var l=e.getTokenAtPosition(t,r[i-1].end,!1);l&&_(n,l)&&this.deleteNodeRange(t,l,n);}return this},t.prototype.replaceRange=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,range:t,options:r,node:n}),this},t.prototype.replaceNode=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.Start),a=l(e,t,r);return this.replaceWithSingle(e,i,a,n,r)},t.prototype.replaceNodeRange=function(e,t,n,r,i){void 0===i&&(i={});var a=u(e,t,i,b.Start),o=l(e,n,i);return this.replaceWithSingle(e,a,o,r,i)},t.prototype.replaceWithSingle=function(e,t,n,r,i){return this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,options:i,node:r,range:{pos:t,end:n}}),this},t.prototype.replaceWithMultiple=function(e,t,n,r,i){return this.changes.push({kind:x.ReplaceWithMultipleNodes,sourceFile:e,options:i,nodes:r,range:{pos:t,end:n}}),this},t.prototype.replaceNodeWithNodes=function(e,t,n,r){var i=u(e,t,r,b.Start),a=l(e,t,r);return this.replaceWithMultiple(e,i,a,n,r)},t.prototype.replaceNodesWithNodes=function(t,n,r,i){var a=u(t,n[0],i,b.Start),o=l(t,e.lastOrUndefined(n),i);return this.replaceWithMultiple(t,a,o,r,i)},t.prototype.replaceRangeWithNodes=function(e,t,n,r){return this.replaceWithMultiple(e,t.pos,t.end,n,r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,n,r,i){var a=u(e,t,i,b.Start),o=l(e,n,i);return this.replaceWithMultiple(e,a,o,r,i)},t.prototype.insertNodeAt=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,options:r,node:n,range:{pos:t,end:t}}),this},t.prototype.insertNodeBefore=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.Start);return this.replaceWithSingle(e,i,i,n,r)},t.prototype.insertNodeAfter=function(t,n,r,i){void 0===i&&(i={}),(e.isStatementButNotDeclaration(n)||149===n.kind||148===n.kind||150===n.kind)&&59!==t.text.charCodeAt(n.end-1)&&this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,options:{},range:{pos:n.end,end:n.end},node:e.createToken(25)});var a=l(t,n,i);return this.replaceWithSingle(t,a,a,r,i)},t.prototype.insertNodeInListAfter=function(t,n,r){var i=e.formatting.SmartIndenter.getContainingList(n,t);if(!i)return e.Debug.fail("node is not a list element"),this;var a=i.indexOf(n);if(a<0)return this;var c=n.getEnd();if(a!==i.length-1){var u=e.getTokenAtPosition(t,n.end,!1);if(u&&_(n,u)){var l=e.getLineAndCharacterOfPosition(t,o(t.text,i[a+1].getFullStart())),p=e.getLineAndCharacterOfPosition(t,u.end),f=void 0,m=void 0;p.line===l.line?(m=u.end,f=d(l.character-p.character)):m=e.getStartPositionOfLine(l.line,t),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:m,end:i[a+1].getStart(t)},node:r,options:{prefix:f,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,i[a+1].getStart(t))}});}}else{var g=n.getStart(t),y=e.getLineStartPositionForPosition(g,t),h=void 0,v=!1;if(1===i.length)h=26;else{var b=e.findPrecedingToken(n.pos,t);h=_(n,b)?b.kind:26,v=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==y;}if(s(t.text,n.end)&&(v=!0),v){this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:e.createToken(h),options:{}});var S=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(y,g,t,this.rulesProvider.getFormatOptions()),k=e.skipTrivia(t.text,c,!0,!1);k!==c&&e.isLineBreak(t.text.charCodeAt(k-1))&&k--,this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:k,end:k},node:r,options:{indentation:S,prefix:this.newLineCharacter}});}else this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:r,options:{prefix:e.tokenToString(h)+" "}});}return this},t.prototype.getChanges=function(){for(var n=this,r=e.createMap(),i=0,a=this.changes;i0&&(r=r.concat(n));}),r}var a=[];t.registerCodeFix=n,t.getSupportedErrorCodes=r,t.getFixes=i;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(e){a.set(e.name,e);}function r(t){return e.flatMapIter(a.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?[]:e.getAvailableActions(t)})}function i(e,t,n){var r=a.get(t);return r&&r.getEditsForAction(e,n)}var a=e.createMap();t.registerRefactor=n,t.getApplicableRefactors=r,t.getEditsForRefactor=i;}(e.refactor||(e.refactor={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.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.code],getCodeActions:function(t){var n=t.sourceFile,r=e.getTokenAtPosition(n,t.span.start,!1),i=e.getAncestor(r,143);if(e.Debug.assert(!!i,"Expected position to be owned by a qualified name."),e.isIdentifier(i.left)){var a=i.left.getText(n),o=i.right.getText(n),s=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(i.left,void 0),e.createLiteralTypeNode(e.createLiteral(o))),c=e.textChanges.ChangeTracker.fromCodeFixContext(t);return c.replaceNode(n,i,s),[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Rewrite_as_the_indexed_access_type_0),[a+'["'+o+'"]']),changes:c.getChanges()}]}}});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){function r(e,t,n,r){if(!n){var i=s.getIndexInfoOfType(e,t);if(i){var a=s.indexInfoToIndexSignatureDeclaration(i,t,c);r.push(a);}}}var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1),s=n.program.getTypeChecker(),c=e.getContainingClass(o);if(c){for(var u=e.getOpenBraceOfClassLike(c,i),l=s.getTypeAtLocation(c),_=e.getClassImplementsHeritageClauseElements(c),d=!!s.getIndexTypeOfType(l,1),p=!!s.getIndexTypeOfType(l,0),f=[],m=0,g=_;m0&&function(e,r,i){e.push({description:i,changes:t.newNodesToChanges(r,u,n)});}(f,b,x);}return f}}t.registerCodeFix({errorCodes:[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){function r(r){if(181===o.parent.parent.kind){var i=o.parent.parent,a=t.createMethodFromCallExpression(i,c,r,u),s=e.textChanges.ChangeTracker.fromCodeFixContext(n);return s.insertNodeAfter(m,g,a,{suffix:n.newLineCharacter}),{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(u?e.Diagnostics.Declare_method_0:e.Diagnostics.Declare_static_method_0),[c]),changes:s.getChanges()}}}var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1);if(71===o.kind&&e.isPropertyAccessExpression(o.parent)){var s,c=o.getText(i),u=!1;if(99===o.parent.expression.kind){var l=e.getThisContainer(o,!1);if(!e.isClassElement(l))return;s=l.parent,u=s&&e.hasModifier(l,32);}else{var _=n.program.getTypeChecker(),d=o.parent.expression,p=_.getTypeAtLocation(d);if(32768&p.flags){var f=p.symbol;32&f.flags&&(s=f.declarations&&f.declarations[0],p!==_.getDeclaredTypeOfSymbol(f)&&(u=!0));}}if(s&&e.isClassLike(s)){var m=e.getSourceFileOfNode(s),g=e.getOpenBraceOfClassLike(s,m);return e.isInJavaScriptFile(m)?function(t,i){var a,o=r(!1);if(o&&(a=[o]),i){if(199===t.kind)return a;var s=t.name.getText(),u=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier(s),c),e.createIdentifier("undefined"))),l=e.textChanges.ChangeTracker.fromCodeFixContext(n);l.insertNodeAfter(m,t,u,{suffix:n.newLineCharacter});var _={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_static_property_0),[c]),changes:l.getChanges()};return(a||(a=[])).push(_),a}var d=e.getFirstConstructorWithBody(t);if(!d)return a;var p=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createThis(),c),e.createIdentifier("undefined"))),f=e.textChanges.ChangeTracker.fromCodeFixContext(n);f.insertNodeAt(m,d.body.getEnd()-1,p,{prefix:n.newLineCharacter,suffix:n.newLineCharacter});var g={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_property_0_in_the_constructor),[c]),changes:f.getChanges()};return(a||(a=[])).push(g),a}(s,u):function(t,i){var a,s=r(!0);s&&(a=[s]);var u;if(194===o.parent.parent.kind){var l=o.parent.parent,_=o.parent===l.left?l.right:l.left,d=n.program.getTypeChecker(),p=d.getWidenedType(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(_)));u=d.typeToTypeNode(p,t);}u=u||e.createKeywordTypeNode(119);var f=e.createProperty(void 0,i?[e.createToken(115)]:void 0,c,void 0,u,void 0),y=e.textChanges.ChangeTracker.fromCodeFixContext(n);if(y.insertNodeAfter(m,g,f,{suffix:n.newLineCharacter}),(a||(a=[])).push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Declare_property_0),[c]),changes:y.getChanges()}),!i){var h=e.createKeywordTypeNode(136),v=e.createParameter(void 0,void 0,void 0,"x",void 0,h,void 0),b=e.createIndexSignature(void 0,void 0,[v],u),x=e.textChanges.ChangeTracker.fromCodeFixContext(n);x.insertNodeAfter(m,g,b,{suffix:n.newLineCharacter}),a.push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_property_0),[c]),changes:x.getChanges()});}return a}(s,u)}}}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t){var n,i=t.sourceFile,a=e.getTokenAtPosition(i,t.span.start,!1),o=t.program.getTypeChecker();if(e.isPropertyAccessExpression(a.parent)&&a.parent.name===a){e.Debug.assert(71===a.kind);var s=o.getTypeAtLocation(a.parent.expression);n=o.getSuggestionForNonexistentProperty(a,s);}else{var c=e.getMeaningFromLocation(a);n=o.getSuggestionForNonexistentSymbol(a,e.getTextOfNode(a),r(c));}if(n)return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_spelling_to_0),[n]),changes:[{fileName:i.fileName,textChanges:[{span:{start:a.getStart(),length:a.getWidth()},newText:n}]}]}]}function r(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=793064),1&e&&(t|=107455),t}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1),s=n.program.getTypeChecker();if(e.isClassLike(o.parent)){var c=o.parent,u=e.getClassExtendsHeritageClauseElement(c),l=s.getTypeAtLocation(u),_=s.getPropertiesOfType(l).filter(r),d=t.createMissingMemberNodes(c,_,s),p=t.newNodesToChanges(d,e.getOpenBraceOfClassLike(c,i),n);if(p&&p.length>0)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:p}]}}function r(t){var n=t.getDeclarations();e.Debug.assert(!!(n&&n.length>0));var r=e.getModifierFlags(n[0]);return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code],getCodeActions:n}),t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions:function(t){function n(t){if(210===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,n)}var r=t.sourceFile,i=e.getTokenAtPosition(r,t.span.start,!1);if(99===i.kind){var a=e.getContainingFunction(i),o=n(a.body);if(o){if(o.expression&&181===o.expression.kind)for(var s=o.expression.arguments,c=0;c0){var s=o[0].getFirstToken();if(s&&85===s.kind){var c=e.textChanges.ChangeTracker.fromCodeFixContext(t);c.replaceNode(n,s,e.createToken(108));for(var u=1;u=0;)switch(o=s,s=e.indexOf("/",o+1),c){case 0:e.indexOf("/node_modules/",o)===o&&(n=o,r=s,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(o+1)?c=2:(i=s,c=3);break;case 3:c=e.indexOf("/node_modules/",o)===o?1:3;}return a=o,c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:a}:void 0}function d(e,t){for(var n=0,r=t;n=0;y--){var h=l.statements[y];if(237===h.kind||238===h.kind){u=h;break}}var v=e.createGetCanonicalFileName(p),b=e.stripQuotes(n||function(){var n=l.fileName,i=r.valueDeclaration.getSourceFile().fileName,a=e.getDirectoryPath(n),o=t.program.getCompilerOptions();return function(){var t=r.valueDeclaration;if(e.isModuleDeclaration(t)&&e.isStringLiteral(t.name))return t.name.text}()||function(){var n=e.getEffectiveTypeRoots(o,t.host);if(n)for(var r=0,a=e.map(n,function(t){return e.toPath(t,void 0,v)});r=l.length+_.length&&e.startsWith(t,l)&&e.endsWith(t,_)){var d=t.substr(l.length,t.length-_.length);return r.replace("*",d)}}else if(c===t||c===n)return r}return t}}}()||function(){if(o.rootDirs){var t=d(i,o.rootDirs),n=d(a,o.rootDirs);if(void 0!==t){var r=void 0!==n?g(t,n):t;return e.removeFileExtension(r)}}}()||e.removeFileExtension(g(i,a))}()),x=s(),S=a?e.createImportClause(e.createIdentifier(i),void 0):o?e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(i))):e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,e.createIdentifier(i))])),k=e.createLiteral(b);k.singleQuote=function(){var t=e.forEach(l.statements,function(t){if(e.isImportDeclaration(t)||e.isExportDeclaration(t)){if(t.moduleSpecifier&&e.isStringLiteral(t.moduleSpecifier))return t.moduleSpecifier}else if(e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteral(t.moduleReference.expression))return t.moduleReference.expression});if(t)return 39===l.text.charCodeAt(t.getStart())}();var T=e.createImportDeclaration(void 0,void 0,S,k);return u?x.insertNodeAfter(l,u,T,{suffix:t.newLineCharacter}):x.insertNodeAt(l,function(t){var n=t.text,r=e.getLeadingCommentRanges(n,0);if(!r)return 0;var i=0;r.length&&3===r[0].kind&&e.isPinnedComment(n,r[0])&&(i=r[0].end+1,r=r.slice(1));for(var a=0,o=r;a0?function(t){for(var n,r,i,a=[],u=0,d=t;u=o)return{span:{start:o,length:0},newText:"// @ts-ignore"+r}}return{span:{start:n,length:0},newText:(n===o?"":r)+"// @ts-ignore"+r}}function r(t){var r=t.sourceFile,i=t.program,a=t.newLineCharacter,o=t.span;if(e.isInJavaScriptFile(r)&&e.isCheckJsEnabledForFile(r,i.getCompilerOptions()))return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[{fileName:r.fileName,textChanges:[n(r,o.start,a)]}]},{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[{fileName:r.fileName,textChanges:[{span:{start:r.checkJsDirective?r.checkJsDirective.pos:0,length:r.checkJsDirective?r.checkJsDirective.end-r.checkJsDirective.pos:0},newText:"// @ts-nocheck"+a}]}]}]}t.registerCodeFix({errorCodes:function(){var t=e.Diagnostics;return Object.keys(t).filter(function(n){return t[n]&&t[n].category===e.DiagnosticCategory.Error}).map(function(e){return t[e].code})}(),getCodeActions:r});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r){for(var i=r.sourceFile,a=e.textChanges.ChangeTracker.fromCodeFixContext(r),o=0,s=t;og.length){var v=r.getSignatureFromDeclaration(a[a.length-1]),b=i(v,n,u());b&&y.push(b);}else{e.Debug.assert(a.length===g.length);var x=s(g,c,f,d);y.push(x);}return y;default:return}}}function a(t,n,r,i){var a,s=o(t.arguments.length,void 0,void 0,r);if(r)for(var c=e.length(t.typeArguments),l=0;l=r?e.createToken(55):void 0,i?e.createKeywordTypeNode(119):void 0,void 0);a.push(s);}return a}function s(t,n,r,i){for(var a=t[0],s=t[0].minArgumentCount,u=!1,l=0;l=a.parameters.length&&(!_.hasRestParameter||a.hasRestParameter)&&(a=_);}var d=a.parameters.length-(a.hasRestParameter?1:0),p=a.parameters.map(function(e){return e.name}),f=o(d,p,s,!0);if(u){var m=e.createArrayTypeNode(e.createKeywordTypeNode(119)),g=e.createParameter(void 0,void 0,e.createToken(24),p[d]||"rest",d>=s?e.createToken(55):void 0,m,void 0);f.push(g);}return c(i,n,r,void 0,f,void 0)}function c(t,n,r,i,a,o){return e.createMethod(void 0,t,void 0,n,r?e.createToken(55):void 0,i,a,o,u())}function u(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function l(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.newNodesToChanges=n,t.createMissingMemberNodes=r,t.createMethodFromCallExpression=a,t.createStubbedMethod=c;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){!function(n){function r(t){if(e.isInJavaScriptFile(t.file)){var n=t.startPosition,r=e.getTokenAtPosition(t.file,n,!1),i=t.program.getTypeChecker().getSymbolAtLocation(r);return i&&e.isDeclarationOfFunctionOrClassExpression(i)&&(i=i.valueDeclaration.initializer.symbol),i&&16&i.flags&&i.members&&i.members.size>0?[{name:o.name,description:o.description,actions:[{description:o.description,name:a}]}]:void 0}}function i(t,n){function r(t,n){void 0===n&&(n=!1),p.some(function(n){return e.isNodeDescendantOf(t,n)})||(p.push(t),n?f.push(function(){return h.deleteNodeInList(c,t)}):f.push(function(){return h.deleteNode(c,t)}));}function i(t){function n(t,n){return e.isFunctionLike(n)}function i(t,i){if(4&t.flags){var a=t.valueDeclaration,s=a.parent;if(n(a,s.right)){if(r(s.parent&&210===s.parent.kind?s.parent:s),!s.right)return e.createProperty([],i,t.name,void 0,void 0,void 0);switch(s.right.kind){case 186:var u=s.right;return o(s,f=e.createMethod(void 0,i,void 0,a.name,void 0,void 0,u.parameters,void 0,u.body)),f;case 187:var l=s.right,_=l.body,d=void 0;if(207===_.kind)d=_;else{var p=_;d=e.createBlock([e.createReturn(p)]);}var f=e.createMethod(void 0,i,void 0,a.name,void 0,void 0,l.parameters,void 0,d);return o(s,f),f;default:if(e.isSourceFileJavaScript(c))return;var m=e.createProperty(void 0,i,a.name,void 0,void 0,s.right);return o(s.parent,m),m}}}}var a=[];return t.members&&t.members.forEach(function(e){var t=i(e,void 0);t&&a.push(t);}),t.exports&&t.exports.forEach(function(t){var n=i(t,[e.createToken(115)]);n&&a.push(n);}),a}function o(t,n){e.forEachLeadingCommentRange(c.text,t.pos,function(t,r,i,a){3===i?(t+=2,r-=2):t+=2,e.addSyntheticLeadingComment(n,i,c.text.slice(t,r),a);});}if(a===n){var s=t.startPosition,c=t.file,u=t.program.getTypeChecker(),l=e.getTokenAtPosition(c,s,!1),_=u.getSymbolAtLocation(l),d=t.rulesProvider.getFormatOptions().newLineCharacter,p=[],f=[];if(19&_.flags){var m,g,y=_.valueDeclaration,h=e.textChanges.ChangeTracker.fromCodeFixContext(t);switch(y.kind){case 228:m=y,r(y),g=function(t){var n=i(_);return t.body&&n.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,n)}(y);break;case 226:m=y.parent.parent,1===y.parent.declarations.length?r(m):r(y,!0),g=function(t){var n=t.initializer;if(n&&186===n.kind&&71===t.name.kind){var r=i(n.symbol);return n.body&&r.unshift(e.createConstructor(void 0,void 0,n.parameters,n.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,r)}}(y);}if(g){h.insertNodeAfter(c,m,g,{suffix:d});for(var v=0,b=f;v=n.start+n.length)return(s||(s=[])).push(e.createDiagnosticForNode(t,E.CannotExtractFunction)),!0}else _|=N.UsesThis;}if(!t||e.isFunctionLike(t)||e.isClassLike(t)){switch(t.kind){case 228:case 229:265===t.parent.kind&&void 0===t.parent.externalModuleIndicator&&(s||(s=[])).push(e.createDiagnosticForNode(t,E.FunctionWillNotBeVisibleInTheNewScope));}return!1}var o=u;switch(t.kind){case 211:case 224:u=0;break;case 207:t.parent&&224===t.parent.kind&&t.finallyBlock===t&&(u=4);break;case 257:u|=1;break;default:e.isIterationStatement(t,!1)&&(u|=3);}switch(t.kind){case 169:case 99:_|=N.UsesThis;break;case 222:var d=t.label;(c||(c=[])).push(d.escapedText),e.forEachChild(t,r),c.pop();break;case 218:case 217:(d=t.label)?e.contains(c,d.escapedText)||(s||(s=[])).push(e.createDiagnosticForNode(t,E.CannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(218===t.kind?1:2)||(s||(s=[])).push(e.createDiagnosticForNode(t,E.CannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 191:_|=N.IsAsyncFunction;break;case 197:_|=N.IsGenerator;break;case 219:4&u?_|=N.HasReturn:(s||(s=[])).push(e.createDiagnosticForNode(t,E.CannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(t,r);}u=o;}var a;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return";}(a||(a={})),!(e.isStatement(t)||e.isExpression(t)&&T(t)))return[e.createDiagnosticForNode(t,E.StatementOrExpressionExpected)];if(e.isInAmbientContext(t))return[e.createDiagnosticForNode(t,E.CannotExtractAmbientBlock)];var o=e.getContainingClass(t);o&&i(t,o);var s,c,u=4;return r(t),s}var s=n.length||0;if(0===s)return{errors:[e.createFileDiagnostic(t,n.start,s,E.StatementOrExpressionExpected)]};var c=S(e.getTokenAtPosition(t,n.start,!1),t,n),u=S(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(n)),t,n),l=[],_=N.None;if(!c||!u)return{errors:[e.createFileDiagnostic(t,n.start,s,E.CannotExtractFunction)]};if(c.parent!==u.parent){var d=e.skipParentheses(c.parent),p=e.skipParentheses(u.parent);if(!(e.isBinaryExpression(d)&&e.isBinaryExpression(p)&&e.isNodeDescendantOf(d,p)))return r(t,n.start,s,E.CannotExtractFunction);c=u=p;}if(c!==u){if(!C(c.parent))return r(t,n.start,s,E.CannotExtractFunction);for(var f=[],m=0,g=c.parent.statements;m=t&&e.isFunctionLike(a)&&!e.isConstructorDeclaration(a))return a}}((v(i.range)?e.lastOrUndefined(i.range):i.range).end,n);O?w.insertNodeBefore(a.file,O,T,{suffix:a.newLineCharacter+a.newLineCharacter}):w.insertNodeBefore(a.file,n.getLastToken(),T,{prefix:a.newLineCharacter,suffix:a.newLineCharacter});var P=[],F=g(n,i,_),I=e.createCall(F,void 0,S);if(i.facts&N.IsGenerator&&(I=e.createYield(e.createToken(39),I)),i.facts&N.IsAsyncFunction&&(I=e.createAwait(I)),s){E&&P.push(e.createVariableStatement(void 0,[e.createVariableDeclaration(E,e.createKeywordTypeNode(119))]));var L=h(s);E&&L.unshift(e.createShorthandPropertyAssignment(E)),1===L.length?E?P.push(e.createReturn(e.createIdentifier(E))):(P.push(e.createStatement(e.createBinary(L[0].name,58,I))),i.facts&N.HasReturn&&P.push(e.createReturn())):(P.push(e.createStatement(e.createBinary(e.createObjectLiteral(L),58,I))),E&&P.push(e.createReturn(e.createIdentifier(E))));}else i.facts&N.HasReturn?P.push(e.createReturn(I)):v(i.range)?P.push(e.createStatement(I)):P.push(I);v(i.range)?w.replaceNodesWithNodes(a.file,i.range,P,{nodeSeparator:a.newLineCharacter,suffix:a.newLineCharacter}):w.replaceNodeWithNodes(a.file,i.range,P,{nodeSeparator:a.newLineCharacter});var R=w.getChanges(),M=(v(i.range)?i.range[0]:i.range).getSourceFile().fileName;return{renameFilename:M,renameLocation:m(R,M,_),edits:R}}function m(t,n,r){for(var i=0,a=0,o=t;a=s)return f;if(y.set(f,s),m){for(var g=0,h=_;g=0)){var r=a.getSymbolAtLocation(n);if(r&&f.some(function(e){return e===r})){for(var i=0,o=p;i0&&p[n].push(e.createDiagnosticForNode(i,E.CannotCombineWritesAndReturns));}(x);return f.length&&e.forEachChild(b,u),{target:h,usagesPerScope:_,errorsPerScope:p}}function S(t,n,r){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!k(r,t.parent,n))return t;t=t.parent;}}function k(t,n,r){return e.textSpanContainsPosition(t,n.getStart(r))&&n.getEnd()<=e.textSpanEnd(t)}function T(e){switch(e.parent.kind){case 264:return!1}switch(e.kind){case 9:return 238!==e.parent.kind&&242!==e.parent.kind;case 198:case 174:case 176:return!1;case 71:return 176!==e.parent.kind&&242!==e.parent.kind&&246!==e.parent.kind}return!0}function C(e){switch(e.kind){case 207:case 265:case 234:case 257:return!0;default:return!1}}var D={name:"Extract Method",description:e.Diagnostics.Extract_function.message,getAvailableActions:r,getEditsForAction:i};t.registerRefactor(D);var E;!function(t){function n(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.CannotExtractFunction=n("Cannot extract function."),t.StatementOrExpressionExpected=n("Statement or expression expected."),t.CannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),t.CannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),t.CannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),t.CannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),t.TypeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),t.FunctionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),t.InsufficientSelection=n("Select more than a single identifier."),t.CannotExtractExportedEntity=n("Cannot extract exported declaration"),t.CannotCombineWritesAndReturns=n("Cannot combine writes and returns"),t.CannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),t.CannotExtractAmbientBlock=n("Cannot extract code from ambient contexts");}(E||(E={}));var N;!function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion";}(N||(N={})),n.getRangeToExtract=a,n.getExtractionAtIndex=u,n.getPossibleExtractions=l;var A;!function(e){e[e.Read=1]="Read",e[e.Write=2]="Write";}(A||(A={}));}(t.extractMethod||(t.extractMethod={}));}(e.refactor||(e.refactor={}));}(r||(r={}));!function(e){function t(t,n,r,i){var a=e.isNodeKind(t)?new S(t,n,r):71===t?new D(71,n,r):new C(t,n,r);return a.parent=i,a}function r(t){var n=!0;for(var r in t)if(e.hasProperty(t,r)&&!i(r)){n=!1;break}if(n)return t;var a={};for(var r in t)e.hasProperty(t,r)&&(a[i(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=t[r]);return a}function i(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function a(t){return t?e.map(t,function(e){return e.text}).join(""):""}function o(){return{target:1,jsx:1}}function s(){return e.codefix.getSupportedErrorCodes()}function c(e,t,n){e.version=n,e.scriptSnapshot=t;}function u(t,n,r,i,a,o){var s=n.getText(0,n.getLength()),u=e.createSourceFile(t,s,r,a,o);return c(u,n,i),u}function l(t,n,r,i,a){if(i&&r!==t.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",l=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&l?s+l:s||l;else{var _=n.getText(i.span.start,i.span.start+i.newLength);o=s&&l?s+_+l:s?s+_:_+l;}var d=e.updateSourceFile(t,o,i,a);return c(d,n,r),d.nameTable=void 0,t!==d&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),d}return u(t.fileName,n,t.languageVersion,r,!0,t.scriptKind)}function _(t,n){function i(e){t.log&&t.log(e);}function a(e){var t=se.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function o(e){return x.ensureUpToDate(e),x}function s(){function r(t){return a(t,e.toPath(t,de,pe))}function a(t,r){e.Debug.assert(void 0!==u);var i=u.getOrCreateEntryByPath(t,r);if(i){if(!d){var a=se&&se.getSourceFileByPath(r);if(a)return e.Debug.assertEqual(i.scriptKind,a.scriptKind,"Registered script kind should match new script kind.",r),n.updateDocumentWithKey(t,r,_,f,i.scriptSnapshot,i.version,i.scriptKind)}return n.acquireDocumentWithKey(t,r,_,f,i.scriptSnapshot,i.version,i.scriptKind)}}function o(t){if(!t)return!1;var n=t.path||e.toPath(t.fileName,de,pe);return t.version===u.getVersion(n)}if(t.getProjectVersion){var s=t.getProjectVersion();if(s){if(ce===s)return;ce=s;}}var c=t.getTypeRootsVersion?t.getTypeRootsVersion():0;ue!==c&&(i("TypeRoots version has changed; provide new program"),se=void 0,ue=c);var u=new O(t,pe);if(!function(){if(!se)return!1;var t=u.getRootFileNames();if(se.getSourceFiles().length!==t.length)return!1;for(var n=0,r=t;n0&&!function(e){return-1!==e.indexOf("/node_modules/")}(i.fileName))for(var u=function(){var t=/(?:\/\/+\s*)/.source,i=/(?:\/\*+\s*)/.source,a="("+/(?:^(?:\s|\*)*)/.source+"|"+t+"|"+i+")",o="(?:"+e.map(n,function(e){return"("+r(e.text)+")"}).join("|")+")",s=/(?:$|\*\/)/.source,c=a+("("+o+/(?:.*?)/.source+")")+s;return new RegExp(c,"gim")}(),l=void 0;l=u.exec(o);){_e.throwIfCancellationRequested();e.Debug.assert(l.length===n.length+3);var _=l[1],d=l.index+_.length;if(e.isInComment(i,d)){for(var p=void 0,f=0;f=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}(o.charCodeAt(d+p.text.length))){var m=l[2];c.push({descriptor:p,message:m,position:d});}}}return c}function ne(n,r){s();var i=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(se.getTypeChecker(),i,pe,a(n),r)}function re(e,n,r){var i="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:e,startPosition:i[0],endPosition:i[1],program:c(),newLineCharacter:t.getNewLine(),rulesProvider:o(r),cancellationToken:_e}}function ie(t,n){s();var r=a(t);return e.refactor.getApplicableRefactors(re(r,n))}function ae(t,n,r,i,o){s();var c=a(t);return e.refactor.getEditsForRefactor(re(c,r,n),i,o)}void 0===n&&(n=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var oe=new P(t);x=x||new e.formatting.RulesProvider;var se,ce,ue=0,le=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),_e=new F(t.getCancellationToken&&t.getCancellationToken()),de=t.getCurrentDirectory();!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var pe=e.createGetCanonicalFileName(le);return{dispose:l,cleanupSemanticCache:u,getSyntacticDiagnostics:_,getSemanticDiagnostics:d,getCompilerOptionsDiagnostics:p,getSyntacticClassifications:q,getSemanticClassifications:z,getEncodedSyntacticClassifications:V,getEncodedSemanticClassifications:U,getCompletionsAtPosition:f,getCompletionEntryDetails:m,getCompletionEntrySymbol:g,getSignatureHelpItems:I,getQuickInfoAtPosition:y,getDefinitionAtPosition:h,getImplementationAtPosition:b,getTypeDefinitionAtPosition:v,getReferencesAtPosition:D,findReferences:N,getOccurrencesAtPosition:S,getDocumentHighlights:k,getNameOrDottedNameSpan:M,getBreakpointStatementAtPosition:B,getNavigateToItems:A,getRenameInfo:ne,findRenameLocations:C,getNavigationBarItems:K,getNavigationTree:j,getOutliningSpans:$,getTodoComments:te,getBraceMatchingAtPosition:W,getIndentationAtPosition:G,getFormattingEditsForRange:H,getFormattingEditsForDocument:X,getFormattingEditsAfterKeystroke:Y,getDocCommentTemplateAtPosition:Z,isValidBraceCompletionAtPosition:ee,getCodeFixesAtPosition:Q,getEmitOutput:w,getNonBoundSourceFile:L,getSourceFile:R,getProgram:c,getApplicableRefactors:ie,getEditsForRefactor:ae}}function d(e){return e.nameTable||p(e),e.nameTable}function p(t){var n=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(r){if(e.isIdentifier(r)&&r.escapedText||e.isStringOrNumericLiteral(r)&&f(r)){var i=e.getEscapedTextOfIdentifierOrLiteral(r);n.set(i,void 0===n.get(i)?r.pos:-1);}if(e.forEachChild(r,t),r.jsDoc)for(var a=0,o=r.jsDoc;a285});return r.kind<143?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<143?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}(),k=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.parent=void 0;}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,n){return e.getTokenPosOfNode(this,t,n)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return(e||this.getSourceFile()).text.substring(this.getStart(),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),T=function(){function t(e,t){this.flags=e,this.escapedName=t;}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.unescapeLeadingUnderscores(this.escapedName)},enumerable:!0,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),C=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.kind=t,i}return n(t,e),t}(k),D=function(t){function r(e,n,r){return t.call(this,n,r)||this}return n(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.unescapeLeadingUnderscores(this.escapedText)},enumerable:!0,configurable:!0}),r}(k);D.prototype.kind=71;var E=function(){function e(e,t){this.checker=e,this.flags=t;}return e.prototype.getFlags=function(){return this.flags},e.prototype.getSymbol=function(){return this.symbol},e.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},e.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},e.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},e.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},e.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},e.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},e.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},e.prototype.getBaseTypes=function(){return 32768&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e}(),N=function(){function t(e){this.checker=e;}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=this.declaration?e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]):[]),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),A=function(t){function r(e,n,r){return t.call(this,e,n,r)||this}return n(r,t),r.prototype.update=function(t,n){return e.updateSourceFile(this,t,n)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,n){return e.getPositionOfLineAndCharacter(this,t,n)},r.prototype.getLineEndOfPosition=function(e){var t,n=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();n+1>=r.length&&(t=this.getEnd()),t||(t=r[n+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){function t(e){var t=r(e);t&&a.add(t,e);}function n(e){var t=a.get(e);return t||a.set(e,t=[]),t}function r(t){var n=e.getNameOfDeclaration(t);if(n){var r=e.getTextOfIdentifierOrLiteral(n);if(void 0!==r)return r;if(144===n.kind){var i=n.expression;return 179===i.kind?i.name.text:e.getTextOfIdentifierOrLiteral(i)}}}function i(a){switch(a.kind){case 228:case 186:case 151:case 150:var o=a,s=r(o);if(s){var c=n(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o);}e.forEachChild(a,i);break;case 229:case 199:case 230:case 231:case 232:case 233:case 237:case 246:case 242:case 239:case 240:case 153:case 154:case 163:t(a),e.forEachChild(a,i);break;case 146:if(!e.hasModifier(a,92))break;case 226:case 176:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 264:case 149:case 148:t(a);break;case 244:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 238:var _=a.importClause;_&&(_.name&&t(_),_.namedBindings&&(240===_.namedBindings.kind?t(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;default:e.forEachChild(a,i);}}var a=e.createMultiMap();return e.forEachChild(this,i),a},r}(S),w=function(){function t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n;}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();e.toEditorSettings=r,e.displayPartsToString=a,e.getDefaultCompilerOptions=o,e.getSupportedCodeFixes=s;var O=function(){function t(t,n){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var r=0,i=t.getScriptFileNames();r=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=I,e.createLanguageService=_,e.getNameTable=d,e.getContainingObjectLiteralElement=g,e.getPropertySymbolsFromContextualType=y,e.getPropertySymbolsFromType=h,e.getDefaultLibFilePath=b,e.objectAllocator=function(){return{getNodeConstructor:function(){return S},getTokenConstructor:function(){return C},getIdentifierConstructor:function(){return D},getSourceFileConstructor:function(){return A},getSymbolConstructor:function(){return T},getTypeConstructor:function(){return E},getSignatureConstructor:function(){return N},getSourceMapSourceConstructor:function(){return w}}}();}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r){var i=n.decorators?e.skipTrivia(t.text,n.decorators.end):n.getStart(t);return e.createTextSpanFromBounds(i,(r||n).getEnd())}function i(t,n){return r(t,e.findNextToken(n,n.parent))}function a(e,n){return u(e&&_===t.getLineAndCharacterOfPosition(e.getStart(t)).line?e:n)}function o(n){return e.createTextSpanFromBounds(e.skipTrivia(t.text,n.pos),n.end)}function s(n){return u(e.findPrecedingToken(n.pos,t))}function c(t){return u(e.findNextToken(t,t.parent))}function u(n){function l(n){return 227===n.parent.kind&&n.parent.declarations[0]===n?r(e.findPrecedingToken(n.pos,t,n.parent),n):r(n)}function _(n){return 215===n.parent.parent.kind?u(n.parent.parent):e.isBindingPattern(n.name)?y(n.name):n.initializer||e.hasModifier(n,1)||216===n.parent.parent.kind?l(n):227===n.parent.kind&&n.parent.declarations[0]!==n?u(e.findPrecedingToken(n.pos,t,n.parent)):void 0}function d(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}function p(t){if(e.isBindingPattern(t.name))return y(t.name);if(d(t))return r(t);var n=t.parent,i=e.indexOf(n.parameters,t);return i?p(n.parameters[i-1]):u(n.body)}function f(t){return e.hasModifier(t,1)||229===t.parent.kind&&152!==t.kind}function m(n){switch(n.parent.kind){case 233:if(1!==e.getModuleInstanceState(n.parent))return;case 213:case 211:case 215:return a(n.parent,n.statements[0]);case 214:case 216:return a(e.findPrecedingToken(n.pos,t,n.parent),n.statements[0])}return u(n.statements[0])}function g(e){if(227!==e.initializer.kind)return u(e.initializer);var t=e.initializer;return t.declarations.length>0?u(t.declarations[0]):void 0}function y(t){var n=e.forEach(t.elements,function(e){return 200!==e.kind?e:void 0});return n?u(n):176===t.parent.kind?r(t.parent):l(t.parent)}function h(t){e.Debug.assert(175!==t.kind&&174!==t.kind);var n=177===t.kind?t.elements:t.properties,i=e.forEach(n,function(e){return 200!==e.kind?e:void 0});return i?u(i):r(194===t.parent.kind?t.parent:t)}if(n)switch(n.kind){case 208:return _(n.declarationList.declarations[0]);case 226:case 149:case 148:return _(n);case 146:return p(n);case 228:case 151:case 150:case 153:case 154:case 152:case 186:case 187:return function(e){if(e.body)return f(e)?r(e):u(e.body)}(n);case 207:if(e.isFunctionBlock(n))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return f(e.parent)?a(e.parent,t):u(t)}(n);case 234:return m(n);case 260:return m(n.block);case 210:return r(n.expression);case 219:return r(n.getChildAt(0),n.expression);case 213:return i(n,n.expression);case 212:return u(n.statement);case 225:return r(n.getChildAt(0));case 211:return i(n,n.expression);case 222:return u(n.statement);case 218:case 217:return r(n.getChildAt(0),n.label);case 214:return function(e){return e.initializer?g(e):e.condition?r(e.condition):e.incrementor?r(e.incrementor):void 0}(n);case 215:return i(n,n.expression);case 216:return g(n);case 221:return i(n,n.expression);case 257:case 258:return u(n.statements[0]);case 224:return m(n.tryBlock);case 223:case 243:return r(n,n.expression);case 237:return r(n,n.moduleReference);case 238:case 244:return r(n,n.moduleSpecifier);case 233:if(1!==e.getModuleInstanceState(n))return;case 229:case 232:case 264:case 176:return r(n);case 220:return u(n.statement);case 147:return o(n.parent.decorators);case 174:case 175:return y(n);case 230:case 231:return;case 25:case 1:return a(e.findPrecedingToken(n.pos,t));case 26:return s(n);case 17:return function(n){switch(n.parent.kind){case 232:var r=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 229:var i=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),i.members.length?i.members[0]:i.getLastToken(t));case 235:return a(n.parent.parent,n.parent.clauses[0])}return u(n.parent)}(n);case 18:return function(t){switch(t.parent.kind){case 234:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 232:case 229:return r(t);case 207:if(e.isFunctionBlock(t.parent))return r(t);case 260:return u(e.lastOrUndefined(t.parent.statements));case 235:var n=t.parent,i=e.lastOrUndefined(n.clauses);if(i)return u(e.lastOrUndefined(i.statements));return;case 174:var a=t.parent;return u(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return r(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}(n);case 22:return function(t){switch(t.parent.kind){case 175:var n=t.parent;return r(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return r(e.lastOrUndefined(i.elements)||i)}return u(t.parent)}}(n);case 19:return function(e){return 212===e.parent.kind||181===e.parent.kind||182===e.parent.kind?s(e):185===e.parent.kind?c(e):u(e.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 152:case 213:case 212:case 214:case 216:case 181:case 182:case 185:return s(e);default:return u(e.parent)}}(n);case 56:return function(t){return e.isFunctionLike(t.parent)||261===t.parent.kind||146===t.parent.kind?s(t):u(t.parent)}(n);case 29:case 27:return function(e){return 184===e.parent.kind?c(e):u(e.parent)}(n);case 106:return function(e){return 212===e.parent.kind?i(e,e.parent.expression):u(e.parent)}(n);case 82:case 74:case 87:return c(n);case 142:return function(e){return 216===e.parent.kind?c(e):u(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return h(n);if((71===n.kind||198===n.kind||261===n.kind||262===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return r(n);if(194===n.kind){b=n;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left))return h(b.left);if(58===b.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.parent))return r(n);if(26===b.operatorToken.kind)return u(b.left)}if(e.isPartOfExpression(n))switch(n.parent.kind){case 212:return s(n);case 147:return u(n.parent);case 214:case 216:return r(n);case 194:if(26===n.parent.operatorToken.kind)return r(n);break;case 187:if(n.parent.body===n)return r(n)}if(261===n.parent.kind&&n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return u(n.parent.initializer);if(184===n.parent.kind&&n.parent.type===n)return c(n.parent.type);if(e.isFunctionLike(n.parent)&&n.parent.type===n)return s(n);if(226===n.parent.kind||146===n.parent.kind){var v=n.parent;if(v.initializer===n||v.type===n||e.isAssignmentOperator(n.kind))return s(n)}if(194===n.parent.kind){var b=n.parent;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left)&&(b.right===n||b.operatorToken===n))return s(n)}return u(n.parent)}}if(!t.isDeclarationFile){var l=e.getTokenAtPosition(t,n,!1),_=t.getLineAndCharacterOfPosition(n).line;if((!(t.getLineAndCharacterOfPosition(l.getStart(t)).line>_)||(l=e.findPrecedingToken(l.pos,t))&&t.getLineAndCharacterOfPosition(l.getEnd()).line===_)&&!e.isInAmbientContext(l))return u(l)}}t.spanInSourceFileAtLocation=n;}(e.BreakpointResolver||(e.BreakpointResolver={}));}(r||(r={}));!function(e){function t(t,n,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,r,a,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}e.transform=t;}(r||(r={}));var r,i=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message);}function a(e,n,r,i){var a;i&&(e.log(n),a=t.timestamp());var o=r();if(i){var s=t.timestamp();if(e.log(n+" completed in "+(s-a)+" msec"),"string"==typeof o){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'");}}return o}function o(e,t,n,r){return s(e,t,!0,n,r)}function s(e,n,i,o,s){try{var c=a(e,n,o,s);return i?JSON.stringify({result:c}):c}catch(i){return i instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,i),i.description=n,JSON.stringify({error:i}))}}function c(e,t){return e.map(function(e){return u(e,t)})}function u(e,n){return{message:t.flattenDiagnosticMessageText(e.messageText,n),start:e.start,length:e.length,category:t.DiagnosticCategory[e.category].toLowerCase(),code:e.code}}function l(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var _=function(){function e(e){this.scriptSnapshotShim=e;}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var n=e,r=this.scriptSnapshotShim.getChangeRange(n.scriptSnapshotShim);if(null===r)return null;var i=JSON.parse(r);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose();},e}(),d=function(){function e(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,r){var i=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return t.map(e,function(e){var n=t.getProperty(i,e);return n?{resolvedFileName:n,extension:t.extensionFromPath(n),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,r){var i=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return t.map(e,function(e){return t.getProperty(i,e)})});}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e);},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e);},e.prototype.error=function(e){this.shimHost.error(e);},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new _(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();t.LanguageServiceShimHostAdapter=d;var p=function(){function e(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"realpath"in this.shimHost&&(this.realpath=function(e){return t.shimHost.realpath(e)});}return e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();t.CoreServicesShimHostAdapter=p;var f=function(){function e(e){this.factory=e,e.registerShim(this);}return e.prototype.dispose=function(e){this.factory.unregisterShim(this);},e}();t.realizeDiagnostics=c;var m=function(e){function r(t,n,r){var i=e.call(this,t)||this;return i.host=n,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return n(r,e),r.prototype.forwardJSONCall=function(e,t){return o(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,i&&i.CollectGarbage&&(i.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t);},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null});},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null});},r.prototype.realizeDiagnostics=function(e){var n=t.getNewLineOrDefaultFromHost(this.host);return t.realizeDiagnostics(e,n)},r.prototype.getSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(n,r))})},r.prototype.getSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(n,r))})},r.prototype.getEncodedSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(n,r)))})},r.prototype.getEncodedSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(n,r)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var n=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(n)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var n=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(n)})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return n.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,n){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNameOrDottedNameSpan(e,t,n)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t)})},r.prototype.getDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return n.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t)})},r.prototype.findRenameLocations=function(e,t,n,r){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+n+", "+r+")",function(){return i.languageService.findRenameLocations(e,t,n,r)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,t,n)})},r.prototype.getIndentationAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(n);return r.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var n=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return n.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(e,n,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+n+")",function(){var a=i.languageService.getDocumentHighlights(e,n,JSON.parse(r)),o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+")",function(){return n.languageService.getCompletionsAtPosition(e,t)})},r.prototype.getCompletionEntryDetails=function(e,t,n){var r=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+n+"')",function(){return r.languageService.getCompletionEntryDetails(e,t,n)})},r.prototype.getFormattingEditsForRange=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+n+")",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,t,n,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var r=JSON.parse(t);return n.languageService.getFormattingEditsForDocument(e,r)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+n+"')",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,t,n,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,n){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNavigateToItems(e,t,n)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var n=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return n.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},r.prototype.getEmitOutputObject=function(e){var t=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(f),g=function(e){function r(n,r){var i=e.call(this,n)||this;return i.logger=r,i.logPerformance=!1,i.classifier=t.createClassifier(),i}return n(r,e),r.prototype.getEncodedLexicalClassifications=function(e,t,n){var r=this;return o(this.logger,"getEncodedLexicalClassifications",function(){return l(r.classifier.getEncodedLexicalClassifications(e,t,n))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,n){for(var r=this.classifier.getClassificationsForLine(e,t,n),i="",a=0,o=r.entries;a",""":'"',"'":"'","`":"`"},freeGlobal="object"==typeof commonjsGlobal$$1&&commonjsGlobal$$1&&commonjsGlobal$$1.Object===Object&&commonjsGlobal$$1,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),unescapeHtmlChar=basePropertyOf(htmlUnescapes),objectProto=Object.prototype,objectToString=objectProto.toString,Symbol=root.Symbol,symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0,index=unescape$1;const ts$1=typescript,unescape=index,SyntaxKind$1=ts$1.SyntaxKind,ASSIGNMENT_OPERATORS=[SyntaxKind$1.EqualsToken,SyntaxKind$1.PlusEqualsToken,SyntaxKind$1.MinusEqualsToken,SyntaxKind$1.AsteriskEqualsToken,SyntaxKind$1.SlashEqualsToken,SyntaxKind$1.PercentEqualsToken,SyntaxKind$1.LessThanLessThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken,SyntaxKind$1.AmpersandEqualsToken,SyntaxKind$1.BarEqualsToken,SyntaxKind$1.CaretEqualsToken],LOGICAL_OPERATORS=[SyntaxKind$1.BarBarToken,SyntaxKind$1.AmpersandAmpersandToken],TOKEN_TO_TEXT={};TOKEN_TO_TEXT[SyntaxKind$1.OpenBraceToken]="{",TOKEN_TO_TEXT[SyntaxKind$1.CloseBraceToken]="}",TOKEN_TO_TEXT[SyntaxKind$1.OpenParenToken]="(",TOKEN_TO_TEXT[SyntaxKind$1.CloseParenToken]=")",TOKEN_TO_TEXT[SyntaxKind$1.OpenBracketToken]="[",TOKEN_TO_TEXT[SyntaxKind$1.CloseBracketToken]="]",TOKEN_TO_TEXT[SyntaxKind$1.DotToken]=".",TOKEN_TO_TEXT[SyntaxKind$1.DotDotDotToken]="...",TOKEN_TO_TEXT[SyntaxKind$1.SemicolonToken]=";",TOKEN_TO_TEXT[SyntaxKind$1.CommaToken]=",",TOKEN_TO_TEXT[SyntaxKind$1.LessThanToken]="<",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.LessThanEqualsToken]="<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanEqualsToken]=">=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsToken]="==",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsToken]="!=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsEqualsToken]="===",TOKEN_TO_TEXT[SyntaxKind$1.InstanceOfKeyword]="instanceof",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsEqualsToken]="!==",TOKEN_TO_TEXT[SyntaxKind$1.EqualsGreaterThanToken]="=>",TOKEN_TO_TEXT[SyntaxKind$1.PlusToken]="+",TOKEN_TO_TEXT[SyntaxKind$1.MinusToken]="-",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskToken]="*",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskToken]="**",TOKEN_TO_TEXT[SyntaxKind$1.SlashToken]="/",TOKEN_TO_TEXT[SyntaxKind$1.PercentToken]="%",TOKEN_TO_TEXT[SyntaxKind$1.PlusPlusToken]="++",TOKEN_TO_TEXT[SyntaxKind$1.MinusMinusToken]="--",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanToken]="<<",TOKEN_TO_TEXT[SyntaxKind$1.LessThanSlashToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanToken]=">>>",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandToken]="&",TOKEN_TO_TEXT[SyntaxKind$1.BarToken]="|",TOKEN_TO_TEXT[SyntaxKind$1.CaretToken]="^",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationToken]="!",TOKEN_TO_TEXT[SyntaxKind$1.TildeToken]="~",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandAmpersandToken]="&&",TOKEN_TO_TEXT[SyntaxKind$1.BarBarToken]="||",TOKEN_TO_TEXT[SyntaxKind$1.QuestionToken]="?",TOKEN_TO_TEXT[SyntaxKind$1.ColonToken]=":",TOKEN_TO_TEXT[SyntaxKind$1.EqualsToken]="=",TOKEN_TO_TEXT[SyntaxKind$1.PlusEqualsToken]="+=",TOKEN_TO_TEXT[SyntaxKind$1.MinusEqualsToken]="-=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskEqualsToken]="*=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskEqualsToken]="**=",TOKEN_TO_TEXT[SyntaxKind$1.SlashEqualsToken]="/=",TOKEN_TO_TEXT[SyntaxKind$1.PercentEqualsToken]="%=",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanEqualsToken]="<<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanEqualsToken]=">>=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken]=">>>=",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandEqualsToken]="&=",TOKEN_TO_TEXT[SyntaxKind$1.BarEqualsToken]="|=",TOKEN_TO_TEXT[SyntaxKind$1.CaretEqualsToken]="^=",TOKEN_TO_TEXT[SyntaxKind$1.AtToken]="@",TOKEN_TO_TEXT[SyntaxKind$1.InKeyword]="in";var nodeUtils$2={SyntaxKind:SyntaxKind$1,isAssignmentOperator:isAssignmentOperator,isLogicalOperator:isLogicalOperator,getTextForTokenKind:getTextForTokenKind,isESTreeClassMember:isESTreeClassMember,hasModifier:hasModifier,isComma:isComma,getBinaryExpressionType:getBinaryExpressionType,getLocFor:getLocFor,getLoc:getLoc,isToken:isToken,isJSXToken:isJSXToken,getDeclarationKind:getDeclarationKind,getTSNodeAccessibility:getTSNodeAccessibility,hasStaticModifierFlag:hasStaticModifierFlag,findNextToken:findNextToken,findFirstMatchingToken:findFirstMatchingToken,findChildOfKind:findChildOfKind,findFirstMatchingAncestor:findFirstMatchingAncestor,findAncestorOfKind:findAncestorOfKind,hasJSXAncestor:hasJSXAncestor,unescapeIdentifier:unescapeIdentifier,unescapeStringLiteralText:unescapeStringLiteralText,isComputedProperty:isComputedProperty,isOptional:isOptional,fixExports:fixExports,getTokenType:getTokenType,convertToken:convertToken,convertTokens:convertTokens,getNodeContainer:getNodeContainer,isWithinTypeAnnotation:isWithinTypeAnnotation,isTypeKeyword:isTypeKeyword};const nodeUtils$1=nodeUtils$2,AST_NODE_TYPES=astNodeTypes$1,SyntaxKind=nodeUtils$1.SyntaxKind;var convert$2=function e(t){function n(t){return e({node:t,parent:p,ast:m,additionalOptions:g})}function r(e){const t=n(e),r=e.getFullStart()-1,i=nodeUtils$1.getLocFor(r,e.end,m);return{type:AST_NODE_TYPES.TypeAnnotation,loc:i,range:[r,e.end],typeAnnotation:t}}function i(e){const t=e[0],r=e[e.length-1],a=nodeUtils$1.findNextToken(r,m);return{type:AST_NODE_TYPES.TypeParameterInstantiation,range:[t.pos-1,a.end],loc:nodeUtils$1.getLocFor(t.pos-1,a.end,m),params:e.map(e=>{if(nodeUtils$1.isTypeKeyword(e.kind))return{type:AST_NODE_TYPES[`TS${SyntaxKind[e.kind]}`],range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,m)};return{type:AST_NODE_TYPES.TSTypeReference,range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,m),typeName:n(e.typeName||e),typeParameters:e.typeArguments?i(e.typeArguments):void 0}})}}function a(t){const n=t[0],r=t[t.length-1],i=nodeUtils$1.findNextToken(r,m);return{type:AST_NODE_TYPES.TypeParameterDeclaration,range:[n.pos-1,i.end],loc:nodeUtils$1.getLocFor(n.pos-1,i.end,m),params:t.map(t=>{const n=nodeUtils$1.unescapeIdentifier(t.name.text);const r=t.constraint?e({node:t.constraint,parent:t,ast:m,additionalOptions:g}):void 0;const i=t.default?e({node:t.default,parent:t,ast:m,additionalOptions:g}):t.default;return{type:AST_NODE_TYPES.TypeParameter,range:[t.getStart(),t.getEnd()],loc:nodeUtils$1.getLoc(t,m),name:n,constraint:r,default:i}})}}function o(e){const t=n(e.expression),r={type:AST_NODE_TYPES.ClassImplements,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=i(e.typeArguments)),r}function s(e){const t=n(e.expression),r={type:AST_NODE_TYPES.TSInterfaceHeritage,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=i(e.typeArguments)),r}function c(e){return e&&e.length?e.map(e=>{const t=n(e.expression);return{type:AST_NODE_TYPES.Decorator,range:[e.getStart(),e.end],loc:nodeUtils$1.getLoc(e,m),expression:t}}):[]}function u(e){return e&&e.length?e.map(e=>{const t=n(e);if(!e.decorators||!e.decorators.length)return t;return Object.assign(t,{decorators:c(e.decorators)})}):[]}function l(e){const t=nodeUtils$1.convertToken(e,m);if(t.type===AST_NODE_TYPES.JSXMemberExpression){const r=p.tagName.expression.kind===SyntaxKind.PropertyAccessExpression;t.object=n(p.tagName.expression),t.property=n(p.tagName.name),t.object.type=r?AST_NODE_TYPES.JSXMemberExpression:AST_NODE_TYPES.JSXIdentifier,t.property.type=AST_NODE_TYPES.JSXIdentifier,e.expression.kind===SyntaxKind.ThisKeyword&&(t.object.name="this");}else t.type=AST_NODE_TYPES.JSXIdentifier,t.name=t.value;return delete t.value,t}function _(e){if(!e||!e.length)return;const t={};for(let n=0;n!t[n]);r&&r.length&&(y.modifiers=r.map(n));}function d(e){const t=p.type.getEnd();e.range[1]=t;const n=nodeUtils$1.getLocFor(e.range[0],e.range[1],m);e.loc=n;}const p=t.node,f=t.parent,m=t.ast,g=t.additionalOptions||{};if(!p)return null;let y={type:"",range:[p.getStart(),p.end],loc:nodeUtils$1.getLoc(p,m)};switch(p.kind){case SyntaxKind.SourceFile:Object.assign(y,{type:AST_NODE_TYPES.Program,body:[],sourceType:p.externalModuleIndicator?"module":"script"}),p.statements.forEach(e=>{const t=n(e);t&&y.body.push(t);}),y.range[1]=p.endOfFileToken.end,y.loc=nodeUtils$1.getLocFor(p.getStart(),y.range[1],m);break;case SyntaxKind.Block:Object.assign(y,{type:AST_NODE_TYPES.BlockStatement,body:p.statements.map(n)});break;case SyntaxKind.Identifier:Object.assign(y,{type:AST_NODE_TYPES.Identifier,name:nodeUtils$1.unescapeIdentifier(p.text)});break;case SyntaxKind.WithStatement:Object.assign(y,{type:AST_NODE_TYPES.WithStatement,object:n(p.expression),body:n(p.statement)});break;case SyntaxKind.ReturnStatement:Object.assign(y,{type:AST_NODE_TYPES.ReturnStatement,argument:n(p.expression)});break;case SyntaxKind.LabeledStatement:Object.assign(y,{type:AST_NODE_TYPES.LabeledStatement,label:n(p.label),body:n(p.statement)});break;case SyntaxKind.BreakStatement:case SyntaxKind.ContinueStatement:Object.assign(y,{type:SyntaxKind[p.kind],label:n(p.label)});break;case SyntaxKind.IfStatement:Object.assign(y,{type:AST_NODE_TYPES.IfStatement,test:n(p.expression),consequent:n(p.thenStatement),alternate:n(p.elseStatement)});break;case SyntaxKind.SwitchStatement:Object.assign(y,{type:AST_NODE_TYPES.SwitchStatement,discriminant:n(p.expression),cases:p.caseBlock.clauses.map(n)});break;case SyntaxKind.CaseClause:case SyntaxKind.DefaultClause:Object.assign(y,{type:AST_NODE_TYPES.SwitchCase,test:n(p.expression),consequent:p.statements.map(n)});break;case SyntaxKind.ThrowStatement:Object.assign(y,{type:AST_NODE_TYPES.ThrowStatement,argument:n(p.expression)});break;case SyntaxKind.TryStatement:Object.assign(y,{type:AST_NODE_TYPES.TryStatement,block:e({node:p.tryBlock,parent:null,ast:m,additionalOptions:g}),handler:n(p.catchClause),finalizer:n(p.finallyBlock)});break;case SyntaxKind.CatchClause:Object.assign(y,{type:AST_NODE_TYPES.CatchClause,param:p.variableDeclaration?n(p.variableDeclaration.name):null,body:n(p.block)});break;case SyntaxKind.WhileStatement:Object.assign(y,{type:AST_NODE_TYPES.WhileStatement,test:n(p.expression),body:n(p.statement)});break;case SyntaxKind.DoStatement:Object.assign(y,{type:AST_NODE_TYPES.DoWhileStatement,test:n(p.expression),body:n(p.statement)});break;case SyntaxKind.ForStatement:Object.assign(y,{type:AST_NODE_TYPES.ForStatement,init:n(p.initializer),test:n(p.condition),update:n(p.incrementor),body:n(p.statement)});break;case SyntaxKind.ForInStatement:case SyntaxKind.ForOfStatement:{const e=!(!p.awaitModifier||p.awaitModifier.kind!==SyntaxKind.AwaitKeyword);Object.assign(y,{type:SyntaxKind[p.kind],left:n(p.initializer),right:n(p.expression),body:n(p.statement),await:e});break}case SyntaxKind.FunctionDeclaration:{let e=AST_NODE_TYPES.FunctionDeclaration;if(p.modifiers&&p.modifiers.length){const t=nodeUtils$1.hasModifier(SyntaxKind.DeclareKeyword,p);t&&(e=AST_NODE_TYPES.DeclareFunction);}p.parent&&p.parent.kind===SyntaxKind.ModuleBlock&&(e=AST_NODE_TYPES.TSNamespaceFunctionDeclaration),Object.assign(y,{type:e,id:n(p.name),generator:!!p.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),params:u(p.parameters),body:n(p.body)}),p.type&&(y.returnType=r(p.type)),p.typeParameters&&p.typeParameters.length&&(y.typeParameters=a(p.typeParameters)),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.VariableDeclaration:Object.assign(y,{type:AST_NODE_TYPES.VariableDeclarator,id:n(p.name),init:n(p.initializer)}),p.type&&(y.id.typeAnnotation=r(p.type),d(y.id));break;case SyntaxKind.VariableStatement:Object.assign(y,{type:AST_NODE_TYPES.VariableDeclaration,declarations:p.declarationList.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(p.declarationList)}),y=nodeUtils$1.fixExports(p,y,m);break;case SyntaxKind.VariableDeclarationList:Object.assign(y,{type:AST_NODE_TYPES.VariableDeclaration,declarations:p.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(p)});break;case SyntaxKind.ExpressionStatement:Object.assign(y,{type:AST_NODE_TYPES.ExpressionStatement,expression:n(p.expression)});break;case SyntaxKind.ThisKeyword:Object.assign(y,{type:AST_NODE_TYPES.ThisExpression});break;case SyntaxKind.ArrayLiteralExpression:{const e=nodeUtils$1.findAncestorOfKind(p,SyntaxKind.BinaryExpression),t=p.parent&&p.parent.kind===SyntaxKind.ForOfStatement,r=p.parent&&p.parent.kind===SyntaxKind.ForInStatement;let i;e&&(i=e.left===p||nodeUtils$1.findChildOfKind(e.left,SyntaxKind.ArrayLiteralExpression,m)===p),i||t||r?Object.assign(y,{type:AST_NODE_TYPES.ArrayPattern,elements:p.elements.map(n)}):Object.assign(y,{type:AST_NODE_TYPES.ArrayExpression,elements:p.elements.map(n)});break}case SyntaxKind.ObjectLiteralExpression:{const e=nodeUtils$1.findFirstMatchingAncestor(p,e=>e.kind===SyntaxKind.BinaryExpression||e.kind===SyntaxKind.ArrowFunction),t=e&&e.kind===SyntaxKind.BinaryExpression&&e.operatorToken.kind===SyntaxKind.FirstAssignment?e:null;let r=!1;t&&(r=t.left===p||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ObjectLiteralExpression,m)===p),r?Object.assign(y,{type:AST_NODE_TYPES.ObjectPattern,properties:p.properties.map(n)}):Object.assign(y,{type:AST_NODE_TYPES.ObjectExpression,properties:p.properties.map(n)});break}case SyntaxKind.PropertyAssignment:Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:n(p.initializer),computed:nodeUtils$1.isComputedProperty(p.name),method:!1,shorthand:!1,kind:"init"});break;case SyntaxKind.ShorthandPropertyAssignment:p.objectAssignmentInitializer?Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:{type:AST_NODE_TYPES.AssignmentPattern,left:n(p.name),right:n(p.objectAssignmentInitializer),loc:y.loc,range:y.range},computed:!1,method:!1,shorthand:!0,kind:"init"}):Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:n(p.initializer||p.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.ComputedPropertyName:if(f.kind!==SyntaxKind.ObjectLiteralExpression)return n(p.expression);Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:n(p.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.PropertyDeclaration:{const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p);Object.assign(y,{type:e?AST_NODE_TYPES.TSAbstractClassProperty:AST_NODE_TYPES.ClassProperty,key:n(p.name),value:n(p.initializer),computed:nodeUtils$1.isComputedProperty(p.name),static:nodeUtils$1.hasStaticModifierFlag(p),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0}),p.type&&(y.typeAnnotation=r(p.type)),p.decorators&&(y.decorators=c(p.decorators));const t=nodeUtils$1.getTSNodeAccessibility(p);t&&(y.accessibility=t),p.name.kind===SyntaxKind.Identifier&&p.questionToken&&(y.key.optional=!0),y.key.type===AST_NODE_TYPES.Literal&&p.questionToken&&(y.optional=!0);break}case SyntaxKind.GetAccessor:case SyntaxKind.SetAccessor:case SyntaxKind.MethodDeclaration:{const e=nodeUtils$1.findFirstMatchingToken(p.name,m,e=>{if(!e||!e.kind)return!1;return"("===nodeUtils$1.getTextForTokenKind(e.kind)}),t=m.getLineAndCharacterOfPosition(e.getStart()),i=p.kind===SyntaxKind.MethodDeclaration,o={type:AST_NODE_TYPES.FunctionExpression,id:null,generator:!!p.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),body:n(p.body),range:[p.parameters.pos-1,y.range[1]],loc:{start:{line:t.line+1,column:t.character},end:y.loc.end}};if(p.type&&(o.returnType=r(p.type)),f.kind===SyntaxKind.ObjectLiteralExpression)o.params=p.parameters.map(n),Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:o,computed:nodeUtils$1.isComputedProperty(p.name),method:i,shorthand:!1,kind:"init"});else{o.params=u(p.parameters);const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p)?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition;Object.assign(y,{type:e,key:n(p.name),value:o,computed:nodeUtils$1.isComputedProperty(p.name),static:nodeUtils$1.hasStaticModifierFlag(p),kind:"method"}),p.decorators&&(y.decorators=c(p.decorators));const t=nodeUtils$1.getTSNodeAccessibility(p);t&&(y.accessibility=t);}y.key.type===AST_NODE_TYPES.Identifier&&p.questionToken&&(y.key.optional=!0),p.kind===SyntaxKind.GetAccessor?y.kind="get":p.kind===SyntaxKind.SetAccessor?y.kind="set":y.static||p.name.kind!==SyntaxKind.StringLiteral||"constructor"!==p.name.text||(y.kind="constructor"),p.typeParameters&&p.typeParameters.length&&(o.typeParameters=a(p.typeParameters));break}case SyntaxKind.Constructor:{const e=nodeUtils$1.hasStaticModifierFlag(p),t=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p),r=e?nodeUtils$1.findNextToken(p.getFirstToken(),m):p.getFirstToken(),i=m.getLineAndCharacterOfPosition(p.parameters.pos-1),a={type:AST_NODE_TYPES.FunctionExpression,id:null,params:u(p.parameters),generator:!1,expression:!1,async:!1,body:n(p.body),range:[p.parameters.pos-1,y.range[1]],loc:{start:{line:i.line+1,column:i.character},end:y.loc.end}},o=m.getLineAndCharacterOfPosition(r.getStart()),s=m.getLineAndCharacterOfPosition(r.getEnd()),c=!!p.name&&nodeUtils$1.isComputedProperty(p.name);let l;l=c?{type:AST_NODE_TYPES.Literal,value:"constructor",raw:p.name.getText(),range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:s.line+1,column:s.character}}}:{type:AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:s.line+1,column:s.character}}},Object.assign(y,{type:t?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition,key:l,value:a,computed:c,static:e,kind:e||c?"method":"constructor"});const _=nodeUtils$1.getTSNodeAccessibility(p);_&&(y.accessibility=_);break}case SyntaxKind.FunctionExpression:Object.assign(y,{type:AST_NODE_TYPES.FunctionExpression,id:n(p.name),generator:!!p.asteriskToken,params:u(p.parameters),body:n(p.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),expression:!1}),p.type&&(y.returnType=r(p.type)),p.typeParameters&&p.typeParameters.length&&(y.typeParameters=a(p.typeParameters));break;case SyntaxKind.SuperKeyword:Object.assign(y,{type:AST_NODE_TYPES.Super});break;case SyntaxKind.ArrayBindingPattern:Object.assign(y,{type:AST_NODE_TYPES.ArrayPattern,elements:p.elements.map(n)});break;case SyntaxKind.OmittedExpression:return null;case SyntaxKind.ObjectBindingPattern:Object.assign(y,{type:AST_NODE_TYPES.ObjectPattern,properties:p.elements.map(n)});break;case SyntaxKind.BindingElement:if(f.kind===SyntaxKind.ArrayBindingPattern){const t=e({node:p.name,parent:f,ast:m,additionalOptions:g});if(p.initializer)Object.assign(y,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(p.initializer)});else{if(!p.dotDotDotToken)return t;Object.assign(y,{type:AST_NODE_TYPES.RestElement,argument:t});}}else f.kind===SyntaxKind.ObjectBindingPattern&&(p.dotDotDotToken?Object.assign(y,{type:AST_NODE_TYPES.ExperimentalRestProperty,argument:n(p.propertyName||p.name),computed:Boolean(p.propertyName&&p.propertyName.kind===SyntaxKind.ComputedPropertyName),shorthand:!p.propertyName}):Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.propertyName||p.name),value:n(p.name),computed:Boolean(p.propertyName&&p.propertyName.kind===SyntaxKind.ComputedPropertyName),method:!1,shorthand:!p.propertyName,kind:"init"}),p.initializer&&(y.value={type:AST_NODE_TYPES.AssignmentPattern,left:n(p.name),right:n(p.initializer),range:[p.name.getStart(),p.initializer.end],loc:nodeUtils$1.getLocFor(p.name.getStart(),p.initializer.end,m)}));break;case SyntaxKind.ArrowFunction:Object.assign(y,{type:AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:u(p.parameters),body:n(p.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),expression:p.body.kind!==SyntaxKind.Block}),p.type&&(y.returnType=r(p.type)),p.typeParameters&&p.typeParameters.length&&(y.typeParameters=a(p.typeParameters));break;case SyntaxKind.YieldExpression:Object.assign(y,{type:AST_NODE_TYPES.YieldExpression,delegate:!!p.asteriskToken,argument:n(p.expression)});break;case SyntaxKind.AwaitExpression:Object.assign(y,{type:AST_NODE_TYPES.AwaitExpression,argument:n(p.expression)});break;case SyntaxKind.NoSubstitutionTemplateLiteral:Object.assign(y,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[{type:AST_NODE_TYPES.TemplateElement,value:{raw:m.text.slice(p.getStart()+1,p.end-1),cooked:p.text},tail:!0,range:y.range,loc:y.loc}],expressions:[]});break;case SyntaxKind.TemplateExpression:Object.assign(y,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[n(p.head)],expressions:[]}),p.templateSpans.forEach(e=>{y.expressions.push(n(e.expression));y.quasis.push(n(e.literal));});break;case SyntaxKind.TaggedTemplateExpression:Object.assign(y,{type:AST_NODE_TYPES.TaggedTemplateExpression,tag:n(p.tag),quasi:n(p.template)});break;case SyntaxKind.TemplateHead:case SyntaxKind.TemplateMiddle:case SyntaxKind.TemplateTail:{const e=p.kind===SyntaxKind.TemplateTail;Object.assign(y,{type:AST_NODE_TYPES.TemplateElement,value:{raw:m.text.slice(p.getStart()+1,p.end-(e?1:2)),cooked:p.text},tail:e});break}case SyntaxKind.SpreadElement:{let e=AST_NODE_TYPES.SpreadElement;p.parent&&p.parent.parent&&p.parent.parent.kind===SyntaxKind.BinaryExpression&&(p.parent.parent.left===p.parent?e=AST_NODE_TYPES.RestElement:p.parent.parent.right===p.parent&&(e=AST_NODE_TYPES.SpreadElement)),Object.assign(y,{type:e,argument:n(p.expression)});break}case SyntaxKind.SpreadAssignment:{let e=AST_NODE_TYPES.ExperimentalSpreadProperty;p.parent&&p.parent.parent&&p.parent.parent.kind===SyntaxKind.BinaryExpression&&(p.parent.parent.right===p.parent?e=AST_NODE_TYPES.ExperimentalSpreadProperty:p.parent.parent.left===p.parent&&(e=AST_NODE_TYPES.ExperimentalRestProperty)),Object.assign(y,{type:e,argument:n(p.expression)});break}case SyntaxKind.Parameter:{let t;if(p.dotDotDotToken?(t=n(p.name),Object.assign(y,{type:AST_NODE_TYPES.RestElement,argument:t})):p.initializer?(t=n(p.name),Object.assign(y,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(p.initializer)})):(t=e({node:p.name,parent:f,ast:m,additionalOptions:g}),y=t),p.type&&(t.typeAnnotation=r(p.type),d(t)),p.questionToken&&(t.optional=!0),p.modifiers)return{type:AST_NODE_TYPES.TSParameterProperty,range:[p.getStart(),p.end],loc:nodeUtils$1.getLoc(p,m),accessibility:nodeUtils$1.getTSNodeAccessibility(p)||void 0,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p)||void 0,export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0,parameter:y};break}case SyntaxKind.ClassDeclaration:case SyntaxKind.ClassExpression:{const e=p.heritageClauses||[];let t=SyntaxKind[p.kind],r=e.length?e[e.length-1]:p.name;if(p.typeParameters&&p.typeParameters.length){const e=p.typeParameters[p.typeParameters.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,m)),y.typeParameters=a(p.typeParameters);}if(p.modifiers&&p.modifiers.length){p.kind===SyntaxKind.ClassDeclaration&&nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p)&&(t=`TSAbstract${t}`);const e=p.modifiers[p.modifiers.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,m));}else r||(r=p.getFirstToken());const s=nodeUtils$1.findNextToken(r,m),u=e.find(e=>e.token===SyntaxKind.ExtendsKeyword);u&&u.types[0]&&u.types[0].typeArguments&&(y.superTypeParameters=i(u.types[0].typeArguments));const l=e.find(e=>e.token===SyntaxKind.ImplementsKeyword);Object.assign(y,{type:t,id:n(p.name),body:{type:AST_NODE_TYPES.ClassBody,body:[],range:[s.getStart(),y.range[1]],loc:nodeUtils$1.getLocFor(s.getStart(),p.end,m)},superClass:u&&u.types[0]?n(u.types[0].expression):null}),l&&(y.implements=l.types.map(o)),p.decorators&&(y.decorators=c(p.decorators));const _=p.members.filter(nodeUtils$1.isESTreeClassMember);_.length&&(y.body.body=_.map(n)),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.ModuleBlock:Object.assign(y,{type:AST_NODE_TYPES.TSModuleBlock,body:p.statements.map(n)});break;case SyntaxKind.ImportDeclaration:Object.assign(y,{type:AST_NODE_TYPES.ImportDeclaration,source:n(p.moduleSpecifier),specifiers:[]}),p.importClause&&(p.importClause.name&&y.specifiers.push(n(p.importClause)),p.importClause.namedBindings&&(p.importClause.namedBindings.kind===SyntaxKind.NamespaceImport?y.specifiers.push(n(p.importClause.namedBindings)):y.specifiers=y.specifiers.concat(p.importClause.namedBindings.elements.map(n))));break;case SyntaxKind.NamespaceImport:Object.assign(y,{type:AST_NODE_TYPES.ImportNamespaceSpecifier,local:n(p.name)});break;case SyntaxKind.ImportSpecifier:Object.assign(y,{type:AST_NODE_TYPES.ImportSpecifier,local:n(p.name),imported:n(p.propertyName||p.name)});break;case SyntaxKind.ImportClause:Object.assign(y,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(p.name)}),y.range[1]=p.name.end,y.loc=nodeUtils$1.getLocFor(y.range[0],y.range[1],m);break;case SyntaxKind.NamedImports:Object.assign(y,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(p.name)});break;case SyntaxKind.ExportDeclaration:p.exportClause?Object.assign(y,{type:AST_NODE_TYPES.ExportNamedDeclaration,source:n(p.moduleSpecifier),specifiers:p.exportClause.elements.map(n),declaration:null}):Object.assign(y,{type:AST_NODE_TYPES.ExportAllDeclaration,source:n(p.moduleSpecifier)});break;case SyntaxKind.ExportSpecifier:Object.assign(y,{type:AST_NODE_TYPES.ExportSpecifier,local:n(p.propertyName||p.name),exported:n(p.name)});break;case SyntaxKind.ExportAssignment:p.isExportEquals?Object.assign(y,{type:AST_NODE_TYPES.TSExportAssignment,expression:n(p.expression)}):Object.assign(y,{type:AST_NODE_TYPES.ExportDefaultDeclaration,declaration:n(p.expression)});break;case SyntaxKind.PrefixUnaryExpression:case SyntaxKind.PostfixUnaryExpression:{const e=nodeUtils$1.getTextForTokenKind(p.operator);Object.assign(y,{type:/^(?:\+\+|--)$/.test(e)?AST_NODE_TYPES.UpdateExpression:AST_NODE_TYPES.UnaryExpression,operator:e,prefix:p.kind===SyntaxKind.PrefixUnaryExpression,argument:n(p.operand)});break}case SyntaxKind.DeleteExpression:Object.assign(y,{type:AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:n(p.expression)});break;case SyntaxKind.VoidExpression:Object.assign(y,{type:AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:n(p.expression)});break;case SyntaxKind.TypeOfExpression:Object.assign(y,{type:AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:n(p.expression)});break;case SyntaxKind.BinaryExpression:if(nodeUtils$1.isComma(p.operatorToken)){Object.assign(y,{type:AST_NODE_TYPES.SequenceExpression,expressions:[]});const e=n(p.left),t=n(p.right);e.type===AST_NODE_TYPES.SequenceExpression?y.expressions=y.expressions.concat(e.expressions):y.expressions.push(e),t.type===AST_NODE_TYPES.SequenceExpression?y.expressions=y.expressions.concat(t.expressions):y.expressions.push(t);}else if(p.operatorToken&&p.operatorToken.kind===SyntaxKind.AsteriskAsteriskEqualsToken)Object.assign(y,{type:AST_NODE_TYPES.AssignmentExpression,operator:nodeUtils$1.getTextForTokenKind(p.operatorToken.kind),left:n(p.left),right:n(p.right)});else if(Object.assign(y,{type:nodeUtils$1.getBinaryExpressionType(p.operatorToken),operator:nodeUtils$1.getTextForTokenKind(p.operatorToken.kind),left:n(p.left),right:n(p.right)}),y.type===AST_NODE_TYPES.AssignmentExpression){const e=nodeUtils$1.findAncestorOfKind(p,SyntaxKind.ArrayLiteralExpression),t=e&&nodeUtils$1.findAncestorOfKind(e,SyntaxKind.BinaryExpression);let n;t&&(n=t.left===e||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ArrayLiteralExpression,m)===e),n&&(delete y.operator,y.type=AST_NODE_TYPES.AssignmentPattern);}break;case SyntaxKind.PropertyAccessExpression:if(nodeUtils$1.isJSXToken(f)){const e={type:AST_NODE_TYPES.MemberExpression,object:n(p.expression),property:n(p.name)},t=p.expression.kind===SyntaxKind.PropertyAccessExpression;p.expression.kind===SyntaxKind.ThisKeyword&&(e.object.name="this"),e.object.type=t?AST_NODE_TYPES.MemberExpression:AST_NODE_TYPES.JSXIdentifier,e.property.type=AST_NODE_TYPES.JSXIdentifier,Object.assign(y,e);}else Object.assign(y,{type:AST_NODE_TYPES.MemberExpression,object:n(p.expression),property:n(p.name),computed:!1});break;case SyntaxKind.ElementAccessExpression:Object.assign(y,{type:AST_NODE_TYPES.MemberExpression,object:n(p.expression),property:n(p.argumentExpression),computed:!0});break;case SyntaxKind.ConditionalExpression:Object.assign(y,{type:AST_NODE_TYPES.ConditionalExpression,test:n(p.condition),consequent:n(p.whenTrue),alternate:n(p.whenFalse)});break;case SyntaxKind.CallExpression:Object.assign(y,{type:AST_NODE_TYPES.CallExpression,callee:n(p.expression),arguments:p.arguments.map(n)}),p.typeArguments&&p.typeArguments.length&&(y.typeParameters=i(p.typeArguments));break;case SyntaxKind.NewExpression:Object.assign(y,{type:AST_NODE_TYPES.NewExpression,callee:n(p.expression),arguments:p.arguments?p.arguments.map(n):[]}),p.typeArguments&&p.typeArguments.length&&(y.typeParameters=i(p.typeArguments));break;case SyntaxKind.MetaProperty:{const e=nodeUtils$1.convertToken(p.getFirstToken(),m);Object.assign(y,{type:AST_NODE_TYPES.MetaProperty,meta:{type:AST_NODE_TYPES.Identifier,range:e.range,loc:e.loc,name:"new"},property:n(p.name)});break}case SyntaxKind.StringLiteral:Object.assign(y,{type:AST_NODE_TYPES.Literal,raw:m.text.slice(y.range[0],y.range[1])}),f.name&&f.name===p?y.value=nodeUtils$1.unescapeIdentifier(p.text):y.value=nodeUtils$1.unescapeStringLiteralText(p.text);break;case SyntaxKind.NumericLiteral:Object.assign(y,{type:AST_NODE_TYPES.Literal,value:Number(p.text),raw:m.text.slice(y.range[0],y.range[1])});break;case SyntaxKind.RegularExpressionLiteral:{const e=p.text.slice(1,p.text.lastIndexOf("/")),t=p.text.slice(p.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(e,t);}catch(e){n=null;}Object.assign(y,{type:AST_NODE_TYPES.Literal,value:n,raw:p.text,regex:{pattern:e,flags:t}});break}case SyntaxKind.TrueKeyword:Object.assign(y,{type:AST_NODE_TYPES.Literal,value:!0,raw:"true"});break;case SyntaxKind.FalseKeyword:Object.assign(y,{type:AST_NODE_TYPES.Literal,value:!1,raw:"false"});break;case SyntaxKind.NullKeyword:nodeUtils$1.isWithinTypeAnnotation(p)?Object.assign(y,{type:AST_NODE_TYPES.TSNullKeyword}):Object.assign(y,{type:AST_NODE_TYPES.Literal,value:null,raw:"null"});break;case SyntaxKind.ImportKeyword:Object.assign(y,{type:AST_NODE_TYPES.Import});break;case SyntaxKind.EmptyStatement:case SyntaxKind.DebuggerStatement:!function(){Object.assign(y,{type:SyntaxKind[p.kind]});}();break;case SyntaxKind.JsxElement:Object.assign(y,{type:AST_NODE_TYPES.JSXElement,openingElement:n(p.openingElement),closingElement:n(p.closingElement),children:p.children.map(n)});break;case SyntaxKind.JsxSelfClosingElement:{p.kind=SyntaxKind.JsxOpeningElement;const e=n(p);e.selfClosing=!0,Object.assign(y,{type:AST_NODE_TYPES.JSXElement,openingElement:e,closingElement:null,children:[]});break}case SyntaxKind.JsxOpeningElement:Object.assign(y,{type:AST_NODE_TYPES.JSXOpeningElement,selfClosing:!1,name:l(p.tagName),attributes:p.attributes.properties.map(n)});break;case SyntaxKind.JsxClosingElement:Object.assign(y,{type:AST_NODE_TYPES.JSXClosingElement,name:l(p.tagName)});break;case SyntaxKind.JsxExpression:{const e=m.getLineAndCharacterOfPosition(y.range[0]+1),t=p.expression?n(p.expression):{type:AST_NODE_TYPES.JSXEmptyExpression,loc:{start:{line:e.line+1,column:e.character},end:{line:y.loc.end.line,column:y.loc.end.column-1}},range:[y.range[0]+1,y.range[1]-1]};Object.assign(y,{type:AST_NODE_TYPES.JSXExpressionContainer,expression:t});break}case SyntaxKind.JsxAttribute:{const e=nodeUtils$1.convertToken(p.name,m);e.type=AST_NODE_TYPES.JSXIdentifier,e.name=e.value,delete e.value,Object.assign(y,{type:AST_NODE_TYPES.JSXAttribute,name:e,value:n(p.initializer)});break}case SyntaxKind.JsxText:{const e=p.getFullStart(),t=p.getEnd(),n=g.useJSXTextNode?AST_NODE_TYPES.JSXText:AST_NODE_TYPES.Literal;Object.assign(y,{type:n,value:m.text.slice(e,t),raw:m.text.slice(e,t)}),y.loc=nodeUtils$1.getLocFor(e,t,m),y.range=[e,t];break}case SyntaxKind.JsxSpreadAttribute:Object.assign(y,{type:AST_NODE_TYPES.JSXSpreadAttribute,argument:n(p.expression)});break;case SyntaxKind.FirstNode:Object.assign(y,{type:AST_NODE_TYPES.TSQualifiedName,left:n(p.left),right:n(p.right)});break;case SyntaxKind.ParenthesizedExpression:return e({node:p.expression,parent:f,ast:m,additionalOptions:g});case SyntaxKind.TypeAliasDeclaration:{const e={type:AST_NODE_TYPES.VariableDeclarator,id:n(p.name),init:n(p.type),range:[p.name.getStart(),p.end]};e.loc=nodeUtils$1.getLocFor(e.range[0],e.range[1],m),p.typeParameters&&p.typeParameters.length&&(e.typeParameters=a(p.typeParameters)),Object.assign(y,{type:AST_NODE_TYPES.VariableDeclaration,kind:nodeUtils$1.getDeclarationKind(p),declarations:[e]}),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.MethodSignature:{Object.assign(y,{type:AST_NODE_TYPES.TSMethodSignature,optional:nodeUtils$1.isOptional(p),computed:nodeUtils$1.isComputedProperty(p.name),key:n(p.name),params:u(p.parameters),typeAnnotation:p.type?r(p.type):null,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(p);e&&(y.accessibility=e),p.typeParameters&&(y.typeParameters=a(p.typeParameters));break}case SyntaxKind.PropertySignature:{Object.assign(y,{type:AST_NODE_TYPES.TSPropertySignature,optional:nodeUtils$1.isOptional(p)||void 0,computed:nodeUtils$1.isComputedProperty(p.name),key:n(p.name),typeAnnotation:p.type?r(p.type):void 0,initializer:n(p.initializer)||void 0,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p)||void 0,export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(p);e&&(y.accessibility=e);break}case SyntaxKind.IndexSignature:{Object.assign(y,{type:AST_NODE_TYPES.TSIndexSignature,index:n(p.parameters[0]),typeAnnotation:p.type?r(p.type):null,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(p);e&&(y.accessibility=e);break}case SyntaxKind.ConstructSignature:Object.assign(y,{type:AST_NODE_TYPES.TSConstructSignature,params:u(p.parameters),typeAnnotation:p.type?r(p.type):null}),p.typeParameters&&(y.typeParameters=a(p.typeParameters));break;case SyntaxKind.InterfaceDeclaration:{const e=p.heritageClauses||[];let t=e.length?e[e.length-1]:p.name;if(p.typeParameters&&p.typeParameters.length){const e=p.typeParameters[p.typeParameters.length-1];(!t||e.pos>t.pos)&&(t=nodeUtils$1.findNextToken(e,m)),y.typeParameters=a(p.typeParameters);}const r=e.length>0,i=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p),o=nodeUtils$1.findNextToken(t,m),c={type:AST_NODE_TYPES.TSInterfaceBody,body:p.members.map(e=>n(e)),range:[o.getStart(),y.range[1]],loc:nodeUtils$1.getLocFor(o.getStart(),p.end,m)};Object.assign(y,{abstract:i,type:AST_NODE_TYPES.TSInterfaceDeclaration,body:c,id:n(p.name),heritage:r?e[0].types.map(s):[]}),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.FirstTypeNode:Object.assign(y,{type:AST_NODE_TYPES.TSTypePredicate,parameterName:n(p.parameterName),typeAnnotation:r(p.type)}),y.typeAnnotation.loc=y.typeAnnotation.typeAnnotation.loc,y.typeAnnotation.range=y.typeAnnotation.typeAnnotation.range;break;case SyntaxKind.EnumDeclaration:Object.assign(y,{type:AST_NODE_TYPES.TSEnumDeclaration,id:n(p.name),members:p.members.map(n)}),_(p.modifiers),y=nodeUtils$1.fixExports(p,y,m),p.decorators&&(y.decorators=c(p.decorators));break;case SyntaxKind.EnumMember:Object.assign(y,{type:AST_NODE_TYPES.TSEnumMember,id:n(p.name)}),p.initializer&&(y.initializer=n(p.initializer));break;case SyntaxKind.ModuleDeclaration:Object.assign(y,{type:AST_NODE_TYPES.TSModuleDeclaration,id:n(p.name)}),p.body&&(y.body=n(p.body)),_(p.modifiers),y=nodeUtils$1.fixExports(p,y,m);break;default:!function(){const e=`TS${SyntaxKind[p.kind]}`;if(g.errorOnUnknownASTType&&!AST_NODE_TYPES[e])throw new Error(`Unknown AST_NODE_TYPE: "${e}"`);y.type=e,Object.keys(p).filter(e=>!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)).forEach(e=>{if("type"===e)y.typeAnnotation=p.type?r(p.type):null;else if("typeArguments"===e)y.typeParameters=p.typeArguments?i(p.typeArguments):null;else if("typeParameters"===e)y.typeParameters=p.typeParameters?a(p.typeParameters):null;else if("decorators"===e){const e=c(p.decorators);e&&e.length&&(y.decorators=e);}else Array.isArray(p[e])?y[e]=p[e].map(n):p[e]&&"object"==typeof p[e]?y[e]=n(p[e]):y[e]=p[e];});}();}return y};const ts$2=typescript,nodeUtils$4=nodeUtils$2;var convertComments_1={convertComments:convertComments$1};const convert$1=convert$2,convertComments=convertComments_1.convertComments,nodeUtils=nodeUtils$2;var astConverter=(e,t)=>{if(e.parseDiagnostics.length)throw convertError(e.parseDiagnostics[0]);const n=convert$1({node:e,parent:null,ast:e,additionalOptions:{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1}});t.tokens&&(n.tokens=nodeUtils.convertTokens(e));t.comment&&(n.comments=convertComments(e,t.code));return n},semver$1=createCommonjsModule$$1(function(e,t){function n(e,t){if(e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>H)return null;if(!(t?Y[fe]:Y[_e]).test(e))return null;try{return new a(e,t)}catch(e){return null}}function r(e,t){var r=n(e,t);return r?r.version:null}function i(e,t){var r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}function a(e,t){if(e instanceof a){if(e.loose===t)return e;e=e.version;}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>H)throw new TypeError("version is longer than "+H+" characters");if(!(this instanceof a))return new a(e,t);G("SemVer",e,t),this.loose=t;var n=e.trim().match(t?Y[fe]:Y[_e]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>X||this.major<0)throw new TypeError("Invalid major version");if(this.minor>X||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>X||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&tt?1:0}function u(e,t){return c(t,e)}function l(e,t){return new a(e,t).major}function _(e,t){return new a(e,t).minor}function d(e,t){return new a(e,t).patch}function p(e,t,n){return new a(e,n).compare(new a(t,n))}function f(e,t){return p(e,t,!0)}function m(e,t,n){return p(t,e,n)}function g(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})}function y(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})}function h(e,t,n){return p(e,t,n)>0}function v(e,t,n){return p(e,t,n)<0}function b(e,t,n){return 0===p(e,t,n)}function x(e,t,n){return 0!==p(e,t,n)}function S(e,t,n){return p(e,t,n)>=0}function k(e,t,n){return p(e,t,n)<=0}function T(e,t,n,r){var i;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e===n;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e!==n;break;case"":case"=":case"==":i=b(e,n,r);break;case"!=":i=x(e,n,r);break;case">":i=h(e,n,r);break;case">=":i=S(e,n,r);break;case"<":i=v(e,n,r);break;case"<=":i=k(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return i}function C(e,t){if(e instanceof C){if(e.loose===t)return e;e=e.value;}if(!(this instanceof C))return new C(e,t);G("comparator",e,t),this.loose=t,this.parse(e),this.semver===Be?this.value="":this.value=this.operator+this.semver.version,G("comp",this);}function D(e,t){if(e instanceof D)return e.loose===t?e:new D(e.raw,t);if(e instanceof C)return new D(e.value,t);if(!(this instanceof D))return new D(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format();}function E(e,t){return new D(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function N(e,t){return G("comp",e),e=P(e,t),G("caret",e),e=w(e,t),G("tildes",e),e=I(e,t),G("xrange",e),e=R(e,t),G("stars",e),e}function A(e){return!e||"x"===e.toLowerCase()||"*"===e}function w(e,t){return e.trim().split(/\s+/).map(function(e){return O(e,t)}).join(" ")}function O(e,t){var n=t?Y[Ce]:Y[Te];return e.replace(n,function(t,n,r,i,a){G("tilde",e,t,n,r,i,a);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(i)?o=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":a?(G("replaceTilde pr",a),"-"!==a.charAt(0)&&(a="-"+a),o=">="+n+"."+r+"."+i+a+" <"+n+"."+(+r+1)+".0"):o=">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0",G("tilde return",o),o})}function P(e,t){return e.trim().split(/\s+/).map(function(e){return F(e,t)}).join(" ")}function F(e,t){G("caret",e,t);var n=t?Y[Ae]:Y[Ne];return e.replace(n,function(t,n,r,i,a){G("caret",e,t,n,r,i,a);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(i)?o="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":a?(G("replaceCaret pr",a),"-"!==a.charAt(0)&&(a="-"+a),o="0"===n?"0"===r?">="+n+"."+r+"."+i+a+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+a+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+a+" <"+(+n+1)+".0.0"):(G("no pr"),o="0"===n?"0"===r?">="+n+"."+r+"."+i+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+" <"+(+n+1)+".0.0"),G("caret return",o),o})}function I(e,t){return G("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return L(e,t)}).join(" ")}function L(e,t){e=e.trim();var n=t?Y[xe]:Y[be];return e.replace(n,function(t,n,r,i,a,o){G("xRange",e,t,n,r,i,a,o);var s=A(r),c=s||A(i),u=c||A(a),l=u;return"="===n&&l&&(n=""),s?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(i=0),u&&(a=0),">"===n?(n=">=",c?(r=+r+1,i=0,a=0):u&&(i=+i+1,a=0)):"<="===n&&(n="<",c?r=+r+1:i=+i+1),t=n+r+"."+i+"."+a):c?t=">="+r+".0.0 <"+(+r+1)+".0.0":u&&(t=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0"),G("xRange return",t),t})}function R(e,t){return G("replaceStars",e,t),e.trim().replace(Y[Le],"")}function M(e,t,n,r,i,a,o,s,c,u,l,_,d){return t=A(n)?"":A(r)?">="+n+".0.0":A(i)?">="+n+"."+r+".0":">="+t,s=A(c)?"":A(u)?"<"+(+c+1)+".0.0":A(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s,(t+" "+s).trim()}function B(e,t){for(n=0;n0){var r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function K(e,t,n){try{t=new D(t,n);}catch(e){return!1}return t.test(e)}function j(e,t,n){var r=null,i=null;try{var o=new D(t,n);}catch(e){return null}return e.forEach(function(e){o.test(e)&&(r&&-1!==i.compare(e)||(i=new a(r=e,n)));}),r}function J(e,t,n){var r=null,i=null;try{var o=new D(t,n);}catch(e){return null}return e.forEach(function(e){o.test(e)&&(r&&1!==i.compare(e)||(i=new a(r=e,n)));}),r}function z(e,t){try{return new D(e,t).range||"*"}catch(e){return null}}function U(e,t,n){return V(e,t,"<",n)}function q(e,t,n){return V(e,t,">",n)}function V(e,t,n,r){e=new a(e,r),t=new D(t,r);var i,o,s,c,u;switch(n){case">":i=h,o=k,s=v,c=">",u=">=";break;case"<":i=v,o=S,s=h,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(K(e,t,r))return!1;for(var l=0;l=0.0.0")),_=_||e,d=d||e,i(e.semver,_.semver,r)?_=e:s(e.semver,d.semver,r)&&(d=e);}),_.operator===c||_.operator===u)return!1;if((!d.operator||d.operator===c)&&o(e,d.semver))return!1;if(d.operator===u&&s(e,d.semver))return!1}return!0}function $(e,t){var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}function W(e,t,n){return e=new D(e,n),t=new D(t,n),e.intersects(t)}t=e.exports=a;var G;G="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var H=256,X=Number.MAX_SAFE_INTEGER||9007199254740991,Y=t.re=[],Q=t.src=[],Z=0,ee=Z++;Q[ee]="0|[1-9]\\d*";var te=Z++;Q[te]="[0-9]+";var ne=Z++;Q[ne]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var re=Z++;Q[re]="("+Q[ee]+")\\.("+Q[ee]+")\\.("+Q[ee]+")";var ie=Z++;Q[ie]="("+Q[te]+")\\.("+Q[te]+")\\.("+Q[te]+")";var ae=Z++;Q[ae]="(?:"+Q[ee]+"|"+Q[ne]+")";var oe=Z++;Q[oe]="(?:"+Q[te]+"|"+Q[ne]+")";var se=Z++;Q[se]="(?:-("+Q[ae]+"(?:\\."+Q[ae]+")*))";var ce=Z++;Q[ce]="(?:-?("+Q[oe]+"(?:\\."+Q[oe]+")*))";var ue=Z++;Q[ue]="[0-9A-Za-z-]+";var le=Z++;Q[le]="(?:\\+("+Q[ue]+"(?:\\."+Q[ue]+")*))";var _e=Z++,de="v?"+Q[re]+Q[se]+"?"+Q[le]+"?";Q[_e]="^"+de+"$";var pe="[v=\\s]*"+Q[ie]+Q[ce]+"?"+Q[le]+"?",fe=Z++;Q[fe]="^"+pe+"$";var me=Z++;Q[me]="((?:<|>)?=?)";var ge=Z++;Q[ge]=Q[te]+"|x|X|\\*";var ye=Z++;Q[ye]=Q[ee]+"|x|X|\\*";var he=Z++;Q[he]="[v=\\s]*("+Q[ye]+")(?:\\.("+Q[ye]+")(?:\\.("+Q[ye]+")(?:"+Q[se]+")?"+Q[le]+"?)?)?";var ve=Z++;Q[ve]="[v=\\s]*("+Q[ge]+")(?:\\.("+Q[ge]+")(?:\\.("+Q[ge]+")(?:"+Q[ce]+")?"+Q[le]+"?)?)?";var be=Z++;Q[be]="^"+Q[me]+"\\s*"+Q[he]+"$";var xe=Z++;Q[xe]="^"+Q[me]+"\\s*"+Q[ve]+"$";var Se=Z++;Q[Se]="(?:~>?)";var ke=Z++;Q[ke]="(\\s*)"+Q[Se]+"\\s+",Y[ke]=new RegExp(Q[ke],"g");var Te=Z++;Q[Te]="^"+Q[Se]+Q[he]+"$";var Ce=Z++;Q[Ce]="^"+Q[Se]+Q[ve]+"$";var De=Z++;Q[De]="(?:\\^)";var Ee=Z++;Q[Ee]="(\\s*)"+Q[De]+"\\s+",Y[Ee]=new RegExp(Q[Ee],"g");var Ne=Z++;Q[Ne]="^"+Q[De]+Q[he]+"$";var Ae=Z++;Q[Ae]="^"+Q[De]+Q[ve]+"$";var we=Z++;Q[we]="^"+Q[me]+"\\s*("+pe+")$|^$";var Oe=Z++;Q[Oe]="^"+Q[me]+"\\s*("+de+")$|^$";var Pe=Z++;Q[Pe]="(\\s*)"+Q[me]+"\\s*("+pe+"|"+Q[he]+")",Y[Pe]=new RegExp(Q[Pe],"g");var Fe=Z++;Q[Fe]="^\\s*("+Q[he]+")\\s+-\\s+("+Q[he]+")\\s*$";var Ie=Z++;Q[Ie]="^\\s*("+Q[ve]+")\\s+-\\s+("+Q[ve]+")\\s*$";var Le=Z++;Q[Le]="(<|>)?=?\\s*\\*";for(var Re=0;Re=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=o,t.diff=s,t.compareIdentifiers=c;var Me=/^[0-9]+$/;t.rcompareIdentifiers=u,t.major=l,t.minor=_,t.patch=d,t.compare=p,t.compareLoose=f,t.rcompare=m,t.sort=g,t.rsort=y,t.gt=h,t.lt=v,t.eq=b,t.neq=x,t.gte=S,t.lte=k,t.cmp=T,t.Comparator=C;var Be={};C.prototype.parse=function(e){var t=this.loose?Y[we]:Y[Oe],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new a(n[2],this.loose):this.semver=Be;},C.prototype.toString=function(){return this.value},C.prototype.test=function(e){return G("Comparator.test",e,this.loose),this.semver===Be||("string"==typeof e&&(e=new a(e,this.loose)),T(e,this.operator,this.semver,this.loose))},C.prototype.intersects=function(e,t){if(!(e instanceof C))throw new TypeError("a Comparator is required");var n;if(""===this.operator)return n=new D(e.value,t),K(this.value,n,t);if(""===e.operator)return n=new D(this.value,t),K(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=T(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=T(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||a&&o||s||c},t.Range=D,D.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},D.prototype.toString=function(){return this.range},D.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),G("range",e,t);var n=t?Y[Ie]:Y[Fe];e=e.replace(n,M),G("hyphen replace",e),e=e.replace(Y[Pe],"$1$2$3"),G("comparator trim",e,Y[Pe]),e=(e=(e=e.replace(Y[ke],"$1~")).replace(Y[Ee],"$1^")).split(/\s+/).join(" ");var r=t?Y[we]:Y[Oe],i=e.split(" ").map(function(e){return N(e,t)}).join(" ").split(/\s+/);return this.loose&&(i=i.filter(function(e){return!!e.match(r)})),i=i.map(function(e){return new C(e,t)})},D.prototype.intersects=function(e,t){if(!(e instanceof D))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return e.set.some(function(e){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=E,D.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new a(e,this.loose));for(var t=0;t=4"},repository="eslint/typescript-eslint-parser",bugs={url:"https://github.com/eslint/typescript-eslint-parser/issues"},license="BSD-2-Clause",devDependencies={"babel-code-frame":"^6.26.0",babylon:"7.0.0-beta.24",eslint:"4.6.1","eslint-config-eslint":"4.0.0","eslint-plugin-node":"5.1.1","eslint-release":"0.10.3",glob:"^7.1.2",jest:"21.0.1","lodash.isplainobject":"^4.0.6","npm-license":"0.3.3",shelljs:"0.7.8","shelljs-nodecli":"0.1.1",typescript:"~2.5.1"},keywords=["ast","ecmascript","javascript","typescript","parser","syntax","eslint"],scripts={test:"node Makefile.js test && npm run ast-alignment-tests",jest:"jest","ast-alignment-tests":"jest --config={} ./tests/ast-alignment/spec.js",lint:"node Makefile.js lint",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta"},dependencies={"lodash.unescape":"4.0.1",semver:"5.4.1"},peerDependencies={typescript:"*"},jest={testRegex:"tests/lib/.+\\.js$",testPathIgnorePatterns:[],collectCoverage:!0,coverageReporters:["text-summary"]},_package={name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest},_package$1=Object.freeze({name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest,default:_package}),require$$4$2=_package$1&&_package$1.default||_package$1;const astNodeTypes=astNodeTypes$1,ts=typescript,convert=astConverter,semver=semver$1,SUPPORTED_TYPESCRIPT_VERSIONS=require$$4$2.devDependencies.typescript,ACTIVE_TYPESCRIPT_VERSION=ts.version,isRunningSupportedTypeScriptVersion=semver.satisfies(ACTIVE_TYPESCRIPT_VERSION,SUPPORTED_TYPESCRIPT_VERSIONS);let extra,warnedAboutTSVersion=!1;var version$$1=require$$4$2.version,parse_1=parse$1;!function(){let e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in astNodeTypes)astNodeTypes.hasOwnProperty(e)&&(t[e]=astNodeTypes[e]);"function"==typeof Object.freeze&&Object.freeze(t);}();var parser={version:version$$1,parse:parse_1};const createError=parserCreateError,includeShebang=parserIncludeShebang;var parserTypescript=parse;module.exports=parserTypescript; }); var parserTypescript = unwrapExports(parserTypescript_1); diff --git a/yarn.lock b/yarn.lock index e863ac761..e071e9cb3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1411,10 +1411,6 @@ esprima@^2.7.1: version "2.7.3" resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" -esprima@^3.1.1: - version "3.1.3" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" - esprima@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" @@ -2456,14 +2452,7 @@ js-tokens@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" -js-yaml@^3.7.0, js-yaml@^3.8.4: - version "3.8.4" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.4.tgz#520b4564f86573ba96662af85a8cafa7b4b5a6f6" - dependencies: - argparse "^1.0.7" - esprima "^3.1.1" - -js-yaml@^3.8.1, js-yaml@^3.9.0: +js-yaml@^3.7.0, js-yaml@^3.8.1, js-yaml@^3.8.4, js-yaml@^3.9.0: version "3.9.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.9.1.tgz#08775cebdfdd359209f0d2acd383c8f86a6904a0" dependencies: @@ -3660,11 +3649,7 @@ sax@^1.2.1: version "1.2.2" resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.2.tgz#fd8631a23bc7826bef5d871bdb87378c95647828" -"semver@2 || 3 || 4 || 5", semver@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" - -semver@5.4.1: +"semver@2 || 3 || 4 || 5", semver@5.4.1, semver@^5.3.0: version "5.4.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e"