"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function createError(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}function includeShebang(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(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(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.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(e){return(e=toString(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 isComment(e){return e.kind===SyntaxKind$1.SingleLineCommentTrivia||e.kind===SyntaxKind$1.MultiLineCommentTrivia}function isJSDocComment(e){return e.kind===SyntaxKind$1.JSDocComment}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 typescript.unescapeIdentifier(e)}function unescapeStringLiteralText(e){return lodash_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={type:o?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:t,range:[r.getStart(),t.range[1]],loc:getLocFor(r.getStart(),t.range[1],n)};return o||(c.specifiers=[],c.source=null),c}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(!isComment(r)&&!isJSDocComment(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()===typescript.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.getLocFor(i.pos,i.end,t);return convertTypeScriptCommentToEsprimaComment(r,o,i.pos,i.end,s.start,s.end)}function convertComments(e,t){const n=[],r=typescript.createScanner(e.languageVersion,!1,0,t);let i=r.scan();for(;i!==typescript.SyntaxKind.EndOfFileToken;){const a=r.getTokenPos(),o=r.getTextPos();let s=null;switch(i){case typescript.SyntaxKind.SingleLineCommentTrivia:case typescript.SyntaxKind.MultiLineCommentTrivia:{const i=getCommentFromTriviaScanner(r,e,t);n.push(i);break}case typescript.SyntaxKind.CloseBraceToken:if((s=nodeUtils.getNodeContainer(e,a,o)).kind===typescript.SyntaxKind.TemplateMiddle||s.kind===typescript.SyntaxKind.TemplateTail){i=r.reScanTemplateToken();continue}break;case typescript.SyntaxKind.SlashToken:case typescript.SyntaxKind.SlashEqualsToken:if((s=nodeUtils.getNodeContainer(e,a,o)).kind===typescript.SyntaxKind.RegularExpressionLiteral){i=r.reScanSlashToken();continue}}i=r.scan()}return n}function resetExtra(){extra={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},useJSXTextNode:!1,log:console.log}}function generateAST(e,t,n){n=n||{};const r=String;if("string"==typeof e||e instanceof String||(e=r(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=r(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),n.isParseForESLint&&(extra.parseForESLint=!0)),!isRunningSupportedTypeScriptVersion&&!warnedAboutTSVersion){const 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.","============="];extra.log(e.join("\n\n")),warnedAboutTSVersion=!0}const i=extra.ecmaFeatures.jsx?"eslint.tsx":"eslint.ts",a={fileExists:()=>!0,getCanonicalFileName:()=>i,getCurrentDirectory:()=>"",getDefaultLibFileName:()=>"lib.d.ts",getNewLine:()=>"\n",getSourceFile:t=>typescript.createSourceFile(t,e,typescript.ScriptTarget.Latest,!0),readFile:()=>null,useCaseSensitiveFileNames:()=>!0,writeFile:()=>null},o=typescript.createProgram([i],{noResolve:!0,target:typescript.ScriptTarget.Latest,jsx:extra.ecmaFeatures.jsx?"preserve":void 0},a).getSourceFile(i);return extra.code=e,astConverter(o,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 parserCreateError(e.message,{start:{line:e.lineNumber,column:e.column+1}})}return delete n.tokens,parserIncludeShebang(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=_interopDefault(require("fs")),path=_interopDefault(require("path")),os=_interopDefault(require("os")),crypto=_interopDefault(require("crypto")),module$1=_interopDefault(require("module")),parserCreateError=createError,parserIncludeShebang=includeShebang,astNodeTypes={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",TSTypeAnnotation:"TSTypeAnnotation",TSTypeLiteral:"TSTypeLiteral",TSTypeOperator:"TSTypeOperator",TSTypeParameter:"TSTypeParameter",TSTypeParameterDeclaration:"TSTypeParameterDeclaration",TSTypeParameterInstantiation:"TSTypeParameterInstantiation",TSTypePredicate:"TSTypePredicate",TSTypeReference:"TSTypeReference",TSUnionType:"TSUnionType",TSUndefinedKeyword:"TSUndefinedKeyword",TSVoidKeyword:"TSVoidKeyword",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"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""===(i=c.join("/"))&&(i=s?"/":"."),a?(a.path=i,r(a)):i}function a(e){return e}function o(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 s(e,t){return e===t?0:e>t?1:-1}t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var c=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,u=/^data:.+\,.+$/;t.urlParse=n,t.urlGenerate=r,t.normalize=i,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var a=n(t),o=n(e);if(o&&(e=o.path||"/"),a&&!a.scheme)return o&&(a.scheme=o.scheme),r(a);if(a||t.match(u))return t;if(o&&!o.host&&!o.path)return o.host=t,r(o);var s="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=s,r(o)):s},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(c)},t.relative=function(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)};var l=!("__proto__"in Object.create(null));t.toSetString=l?a:function(e){return o(e)?"$"+e:e},t.fromSetString=l?a:function(e){return o(e)?e.slice(1):e},t.compareByOriginalPositions=function(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:0!=(r=e.generatedLine-t.generatedLine)?r:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(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:0!=(r=e.originalColumn-t.originalColumn)?r:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=s(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:s(e.name,t.name)}}),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=createCommonjsModule(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},ArraySet$2=arraySet.ArraySet,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.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.getArg(e,"line"),n={source:util.getArg(e,"source"),originalLine:t,originalColumn:util.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=util.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.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.getArg(a,"generatedLine",null),column:util.getArg(a,"generatedColumn",null),lastColumn:util.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.getArg(a,"generatedLine",null),column:util.getArg(a,"generatedColumn",null),lastColumn:util.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.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,quickSort(y,util.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.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=util.join(this.sourceRoot,i)));var a=util.getArg(r,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:util.getArg(r,"originalLine",null),column:util.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.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=util.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.getArg(e,"source");if(null!=this.sourceRoot&&(t=util.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.getArg(e,"line"),originalColumn:util.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,util.getArg(e,"bias",SourceMapConsumer$2.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===n.source)return{line:util.getArg(i,"generatedLine",null),column:util.getArg(i,"generatedColumn",null),lastColumn:util.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.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;n>1);switch(r(n(e[c]),s)){case-1:a=c+1;break;case 0:return c;case 1:o=c-1}}return~a}function C(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 E(e,t){return tt.call(e,t)}function N(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 A(e,t){e.forEach(function(e,n){t.set(n,e)})}function P(e,t,n){if(void 0===n&&(n=U),e===t)return!0;if(!e||!t)return!1;for(var r in e)if(tt.call(e,r)){if(void 0===!tt.call(t,r))return!1;if(!n(e[r],t[r]))return!1}for(var r in t)if(tt.call(t,r)&&!tt.call(e,r))return!1;return!0}function w(e,t,r){void 0===r&&(r=B);for(var i=n(),a=0,o=e;at?1:0)}function $(e,t){return W(e,t)}function X(e){return e.file?e.file.fileName:void 0}function Q(e,t){for(;e&&t;){var n=$(R(e)?e:e.messageText,R(t)?t:t.messageText);if(n)return n;e=R(e)?void 0:e.next,t=R(t)?void 0:t.next}return e||t?e?1:-1:0}function Y(e){return e.replace(/\\/g,"/")}function Z(e){if(47===e.charCodeAt(0)){if(47!==e.charCodeAt(1))return 1;var t=e.indexOf("/",2);if(t<0)return 2;var n=e.indexOf("/",t+1);return n<0?t+1:n+1}if(58===e.charCodeAt(1)&&(47===e.charCodeAt(2)||92===e.charCodeAt(2)))return 3;if(0===e.lastIndexOf("file:///",0))return"file:///".length;var r=e.indexOf("://");return-1!==r?r+"://".length:0}function ee(t,n){for(var r=[],i=0,a=t.substr(n).split(e.directorySeparator);i0&&".."!==T(r)?r.pop():o&&r.push(o))}return r}function te(e){return ne(e).path}function ne(t){var n=Z(t=Y(t)),r=t.substr(0,n),i=ee(t,n);if(i.length){var a=r+i.join(e.directorySeparator);return{path:re(t)?a+e.directorySeparator:a,parts:i}}return{path:r,parts:i}}function re(e){return e.charCodeAt(e.length-1)===at}function ie(t){return t.substr(0,Math.max(Z(t),t.lastIndexOf(e.directorySeparator)))}function ae(e){return e&&!ue(e)&&ke(e,"://")}function oe(e){return e.target||0}function se(t){return"number"==typeof t.module?t.module:oe(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function ce(e){for(var t=!1,n=0;n1&&""===T(s)&&s.pop();var c;for(c=0;c=0&&e.indexOf(t,n)===n}function ke(e,t){return-1!==e.indexOf(t)}function Te(e){return ke(ye(e),".")}function De(e,t){return e.length>t.length&&Se(e,t)}function Ce(e,t){for(var n=0,r=t;n0;)c+=")?",d--;return c}}function we(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Fe(e,t,n,r,i){e=te(e);var a=he(i=te(i),e);return{includeFilePatterns:c(Ne(n,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Ee(n,a,"files"),includeDirectoryPattern:Ee(n,a,"directories"),excludePattern:Ee(t,a,"exclude"),basePaths:Oe(e,n,r)}}function Oe(t,n,r){var i=[t];if(n){for(var a=[],o=0,s=n;oi&&(i=c.prefix.length,r=s)}return r}function Qe(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&xe(t,n)&&Se(t,r)}function Ye(e){mt.assert(ce(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function Ze(t){return i(e.supportedTypescriptExtensionsForExtractExtension,function(e){return De(t,e)})||i(e.supportedJavascriptExtensions,function(e){return De(t,e)})}e.emptyArray=[],e.createMap=n,e.createUnderscoreEscapedMap=function(){return new et},e.createSymbolTable=function(e){var t=n();if(e)for(var r=0,i=e;r=0;n--){var r=e[n];if(t(r,n))return r}},e.findIndex=a,e.findMap=function(e,t){for(var n=0;n0&&mt.assertGreaterThanOrEqual(n(t[a],t[a-1]),0);t:for(var o=i;io&&mt.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[a],e[i])){case-1:r.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return r},e.sum=function(e,t){for(var n=0,r=0,i=e;r4&&(i=z(i,arguments,4)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code}},e.formatMessage=function(e,t){var n=J(t);return arguments.length>2&&(n=z(n,arguments,2)),n},e.createCompilerDiagnostic=function(e){var t=J(e);return arguments.length>1&&(t=z(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}},e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var n=J(t);return arguments.length>2&&(n=z(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}},e.concatenateDiagnosticMessageChains=function(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e},e.equateValues=U,e.equateStringsCaseInsensitive=q,e.equateStringsCaseSensitive=V,e.compareValues=H,e.compareStringsCaseInsensitive=G,e.compareStringsCaseSensitive=$;var nt,rt,it=function(){function e(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var r=n(e,t);return r<0?-1:r>0?1:0}function t(t){var n=new Intl.Collator(t,{usage:"sort",sensitivity:"variant"}).compare;return function(t,r){return e(t,r,n)}}function n(t){function n(e,t){return e.localeCompare(t)}return void 0!==t?r():function(t,r){return e(t,r,n)}}function r(){function t(e,t){return n(e.toUpperCase(),t.toUpperCase())||n(e,t)}function n(e,t){return et?1:0}return function(n,r){return e(n,r,t)}}var i,a,o="object"==typeof Intl&&"function"==typeof Intl.Collator?t:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?n:r;return function(e){return void 0===e?i||(i=o(e)):"en-US"===e?a||(a=o(e)):o(e)}}();e.getUILocale=function(){return rt},e.setUILocale=function(e){rt!==e&&(rt=e,nt=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(nt||(nt=it(rt)))(e,t)},e.compareProperties=function(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])},e.compareDiagnostics=function(e,t){return $(X(e),X(t))||H(e.start,t.start)||H(e.length,t.length)||H(e.code,t.code)||Q(e.messageText,t.messageText)||0},e.compareBooleans=function(e,t){return H(e?1:0,t?1:0)},e.normalizeSlashes=Y,e.getRootLength=Z,e.directorySeparator="/";var at=47;e.normalizePath=te,e.normalizePathAndParts=ne,e.pathEndsWithDirectorySeparator=re,e.getDirectoryPath=ie,e.isUrl=ae,e.pathIsRelative=function(e){return/^\.\.?($|[\\/])/.test(e)},e.getEmitScriptTarget=oe,e.getEmitModuleKind=se,e.getEmitModuleResolutionKind=function(t){var n=t.moduleResolution;return void 0===n&&(n=se(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),n},e.getAllowSyntheticDefaultImports=function(t){var n=se(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop?n!==e.ModuleKind.None&&n=0;n--)if(De(e,t[n]))return Re(n,t);return 0},e.adjustExtensionPriority=Re,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var ft=[".d.ts",".ts",".js",".tsx",".jsx"];e.removeFileExtension=Be,e.tryRemoveExtension=Ke,e.removeExtension=je,e.changeExtension=function(e,t){return Be(e)+t},e.removeMinAndVersionNumbers=function(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")},e.objectAllocator={getNodeConstructor:function(){return qe},getTokenConstructor:function(){return qe},getIdentifierConstructor:function(){return qe},getSourceFileConstructor:function(){return qe},getSymbolConstructor:function(){return ze},getTypeConstructor:function(){return Je},getSignatureConstructor:function(){return Ue},getSourceMapSourceConstructor:function(){return Ve}};!function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={}));var mt;!function(t){function n(e,t,i,a){e||(i&&(t+="\r\nVerbose Debug Information: "+("string"==typeof i?i:i())),r(t?"False expression: "+t:"False expression.",a||n))}function r(e,t){var n=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||r),n}function i(e,t){return n(void 0!==e&&null!==e,t),e}function a(e,t,n){return r(t||"Illegal value: "+e,n||a)}function o(e,t){for(var n=[],r=0;r<=30;r++){var i=1<=e},t.assert=n,t.assertEqual=function(e,t,n,i){e!==t&&r("Expected "+e+" === "+t+". "+(n?i?n+" "+i:n:""))},t.assertLessThan=function(e,t,n){e>=t&&r("Expected "+e+" < "+t+". "+(n||""))},t.assertLessThanOrEqual=function(e,t){e>t&&r("Expected "+e+" <= "+t)},t.assertGreaterThanOrEqual=function(e,t){e= "+t)},t.fail=r,t.assertDefined=i,t.assertEachDefined=function(e,t){for(var n=0,r=e;n=0)},e.extensionIsTypeScript=function(e){return".ts"===e||".tsx"===e||".d.ts"===e},e.extensionFromPath=function(e){var t=Ze(e);if(void 0!==t)return t;mt.fail("File "+e+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==Ze(e)},e.tryGetExtensionFromPath=Ze,e.getAnyExtensionFromPath=function(e){var t=ye(e),n=t.lastIndexOf(".");if(n>=0)return t.substring(n)},e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.and=function(e,t){return function(n){return e(n)&&t(n)}},e.or=function(e,t){return function(n){return e(n)||t(n)}},e.assertTypeIsNever=function(e){},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.singleElementArray=function(e){return void 0===e?void 0:[e]}}(r||(r={}));!function(e){function t(){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=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)};var n;!function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(n=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),e.getNodeMajorVersion=t,e.sys=function(){function r(t,n){var i=e.getDirectoryPath(t),a=""!==i&&t!==i&&!n.directoryExists(i);a&&r(i,n),!a&&n.directoryExists(t)||n.createDirectory(t)}var i,a="\ufeff";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=a+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&&process.nextTick&&!process.browser&&void 0!==commonjsRequire&&(i=function(){function r(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}function i(e,t,r){function i(r,i){var a=0==+r.mtime,o=0==+i.mtime,s=!a&&o,c=a&&!o,u=s?n.Created:c?n.Deleted:n.Changed;u===n.Changed&&+r.mtime<=+i.mtime||t(e,u)}return d.watchFile(e,{persistent:!0,interval:r||250},i),{close:function(){return d.unwatchFile(e,i)}}}function o(e,t,r){function a(){void 0===s&&(s=!h||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!r});var n=d.watch(e,s,t);return n.on("error",function(){l(e)||(c=o(),t("rename",""))}),n}function o(){return i(e,function(r,i){i===n.Created&&l(e)&&(c.close(),c=a(),t("rename",""))})}var s,c=l(e)?a():o();return{close:function(){c.close()}}}function s(t){try{for(var n=[],r=[],i=0,a=d.readdirSync(t||".").sort();i=4,v=f.platform(),b="win32"!==v&&"win64"!==v&&!u(r(__filename));!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(m||(m={}));var x={clearScreen:function(){process.stdout.write("c")},args:process.argv.slice(2),newLine:f.EOL,useCaseSensitiveFileNames:b,write:function(e){process.stdout.write(e)},readFile:function(e,t){if(u(e)){var n=d.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")}},writeFile:function(e,t,n){n&&(t=a+t);var r;try{r=d.openSync(e,"w"),d.writeSync(r,t,void 0,"utf8")}finally{void 0!==r&&d.closeSync(r)}},watchFile:function(e,t,n){if(g){var r=y.addFile(e,t);return{close:function(){return y.removeFile(r)}}}return i(e,t,n)},watchDirectory:function(t,n,r){return o(t,function(r,i){"rename"===r&&n(i?e.normalizePath(e.combinePaths(t,i)):i)},r)},resolvePath:function(e){return p.resolve(e)},fileExists:u,directoryExists:l,createDirectory:function(e){x.directoryExists(e)||d.mkdirSync(e)},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:function(t){return e.filter(d.readdirSync(t),function(n){return c(e.combinePaths(t,n),1)})},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(t,n,r,i,a){return e.matchFiles(t,n,r,i,b,process.cwd(),a,s)},getModifiedTime:function(e){try{return d.statSync(e).mtime}catch(e){return}},createHash:_?function(e){var t=_.createHash("md5");return t.update(e),t.digest("hex")}:function(e){return""+e.split("").map(function(e){return e.charCodeAt(0)}).reduce(function(e,t){return(e<<5)+e+t},5381)},getMemoryUsage:function(){return commonjsGlobal.gc&&commonjsGlobal.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=d.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){process.exit(e)},realpath:function(e){try{return d.realpathSync(e)}catch(t){return 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 x}()),i){var o=i.writeFile;i.writeFile=function(t,n,a){var s=e.getDirectoryPath(e.normalizeSlashes(t));s&&!i.directoryExists(s)&&r(s,i),o.call(i,t,n,a)}}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_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name: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_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_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),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."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),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."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),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}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1: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_or_type_query: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 or type query."),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_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract: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_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports: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_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),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?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),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}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_declaration_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_declaration_0_2718","Duplicate declaration '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),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_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: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."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),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}'."),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."),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(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),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."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' 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."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),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:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_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. ========"),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_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read."),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_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read."),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_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."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Found_package_json_at_0_Package_ID_is_1:t(6190,e.DiagnosticCategory.Message,"Found_package_json_at_0_Package_ID_is_1_6190","Found 'package.json' at '{0}'. Package ID is '{1}'."),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}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime:t(7038,e.DiagnosticCategory.Error,"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038","A namespace-style import cannot be called or constructed, and will cause a failure at runtime."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),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."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one `@augments` or `@extends` tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),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."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:t(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),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"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{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}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),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_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module")}}(r||(r={}));!function(e){function t(e){return e>=71}function n(e,t){if(e=1?n(e,E):n(e,D)}function i(e,t){return t>=1?n(e,N):n(e,C)}function a(e){for(var t=new Array,n=0,r=0;n127&&_(i)&&(t.push(r),r=n)}}return t.push(r),t}function o(t,n,r,i){(n<0||n>=t.length)&&e.Debug.fail("Bad line number. Line: "+n+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,a(i)):"unknown"));var o=t[n]+r;return n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function _(e){return 10===e||13===e||8232===e||8233===e}function d(e){return e>=48&&e<=57}function p(e){return e>=48&&e<=55}function f(t,n){if(e.Debug.assert(n>=0),0===n||_(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+P=0&&n127&&u(g)){p&&_(g)&&(d=!0),n++;continue}break e}}return p&&(m=i(s,c,l,d,a,m)),m}function v(e,t,n,r,i){return h(!0,e,t,!1,n,r,i)}function b(e,t,n,r,i){return h(!0,e,t,!0,n,r,i)}function x(e,t,n,r,i,a){return a||(a=[]),a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function S(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&r(e,t)}function k(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&i(e,t)}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 29===e||t(e)};var T=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:142,function:89,get:125,if:90,implements:108,import:91,in:92,infer:126,instanceof:93,interface:109,is:127,keyof:128,let:110,module:129,namespace:130,never:131,new:94,null:95,number:134,object:135,package:111,private:112,protected:113,public:114,readonly:132,require:133,global:143,return:96,set:136,static:115,string:137,super:97,switch:98,symbol:138,this:99,throw:100,true:101,try:102,type:139,typeof:103,undefined:140,unique:141,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:144,"{":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}),D=[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],C=[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],E=[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],N=[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 A=function(e){var t=[];return e.forEach(function(e,n){t[e]=n}),t}(T);e.tokenToString=function(e){return A[e]},e.stringToToken=function(e){return T.get(e)},e.computeLineStarts=a,e.getPositionOfLineAndCharacter=function(e,t,n){return o(s(e),t,n,e.text)},e.computePositionOfLineAndCharacter=o,e.getLineStarts=s,e.computeLineAndCharacterOfPosition=c,e.getLineAndCharacterOfPosition=function(e,t){return c(s(e),t)},e.isWhiteSpaceLike=u,e.isWhiteSpaceSingleLine=l,e.isLineBreak=_,e.isOctalDigit=p,e.couldStartTrivia=function(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}},e.skipTrivia=function(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&&u(a)){n++;continue}}return n}};var P="<<<<<<<".length,w=/^#!.*/;e.forEachLeadingCommentRange=function(e,t,n,r){return h(!1,e,t,!1,n,r)},e.forEachTrailingCommentRange=function(e,t,n,r){return h(!1,e,t,!0,n,r)},e.reduceEachLeadingCommentRange=v,e.reduceEachTrailingCommentRange=b,e.getLeadingCommentRanges=function(e,t){return v(e,t,x,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return b(e,t,x,void 0,void 0)},e.getShebang=function(e){var t=w.exec(e);if(t)return t[0]},e.isIdentifierStart=S,e.isIdentifierPart=k,e.isIdentifierText=function(e,t){if(!S(e.charCodeAt(0),t))return!1;for(var n=1;n=48&&u<=57)o=16*o+u-48;else if(u>=65&&u<=70)o=16*o+u-65+10;else{if(!(u>=97&&u<=102))break;o=16*o+u-97+10}U++,i++,c=!1}}return i=q){r+=a.substring(i,U),$|=4,h(e.Diagnostics.Unterminated_string_literal);break}var o=a.charCodeAt(U);if(o===n){r+=a.substring(i,U),U++;break}if(92!==o||t){if(_(o)&&!t){r+=a.substring(i,U),$|=4,h(e.Diagnostics.Unterminated_string_literal);break}U++}else r+=a.substring(i,U),r+=P(),i=U}return r}function A(){for(var t,n=96===a.charCodeAt(U),r=++U,i="";;){if(U>=q){i+=a.substring(r,U),$|=4,h(e.Diagnostics.Unterminated_template_literal),t=n?13:16;break}var o=a.charCodeAt(U);if(96===o){i+=a.substring(r,U),U++,t=n?13:16;break}if(36===o&&U+1=q)return h(e.Diagnostics.Unexpected_end_of_text),"";var t=a.charCodeAt(U);switch(U++,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 U=0?String.fromCharCode(n):(h(e.Diagnostics.Hexadecimal_digit_expected),"")}function F(){var t=C(1,!1),n=!1;return t<0?(h(e.Diagnostics.Hexadecimal_digit_expected),n=!0):t>1114111&&(h(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),U>=q?(h(e.Diagnostics.Unexpected_end_of_text),n=!0):125===a.charCodeAt(U)?U++:(h(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":O(t)}function O(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 I(){if(U+5=0&&k(r,n)))break;e+=a.substring(t,U),e+=String.fromCharCode(r),t=U+=6}}return e+=a.substring(t,U)}function L(){var e=G.length;if(e>=2&&e<=11){var t=G.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(H=T.get(G)))return H}return H=71}function R(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var n=0,r=0,i=!1,o=!1;;){var s=a.charCodeAt(U);if(95!==s){i=!0;var c=s-48;if(!d(s)||c>=t)break;n=n*t+c,U++,r++,o=!1}else $|=512,i?(i=!1,o=!0):o?h(e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted,U,1):h(e.Diagnostics.Numeric_separators_are_not_allowed_here,U,1),U++}return 0===r?-1:95===a.charCodeAt(U-1)?(h(e.Diagnostics.Numeric_separators_are_not_allowed_here,U-1,1),n):n}function B(){for(V=U,$=0;;){if(W=U,U>=q)return H=1;var t=a.charCodeAt(U);if(35===t&&0===U&&g(a,U)){if(U=y(a,U),r)continue;return H=6}switch(t){case 10:case 13:if($|=1,r){U++;continue}return 13===t&&U+1=0&&S(u,n)?(U+=6,G=String.fromCharCode(u)+M(),H=L()):(h(e.Diagnostics.Invalid_character),U++,H=0);default:if(S(t,n)){for(U++;U=q)return H=1;var e=a.charCodeAt(U);if(60===e)return 47===a.charCodeAt(U+1)?(U+=2,H=28):(U++,H=27);if(123===e)return U++,H=17;for(var t=0;U=0),U=t,V=t,W=t,H=0,G=void 0,$=0}void 0===i&&(i=0);var U,q,V,W,H,G,$;return z(a,s,c),{getStartPos:function(){return V},getTextPos:function(){return U},getToken:function(){return H},getTokenPos:function(){return W},getTokenText:function(){return a.substring(W,U)},getTokenValue:function(){return G},hasExtendedUnicodeEscape:function(){return 0!=(8&$)},hasPrecedingLineBreak:function(){return 0!=(1&$)},isIdentifier:function(){return 71===H||H>107},isReservedWord:function(){return H>=72&&H<=107},isUnterminated:function(){return 0!=(4&$)},getTokenFlags:function(){return $},reScanGreaterToken:function(){if(29===H){if(62===a.charCodeAt(U))return 62===a.charCodeAt(U+1)?61===a.charCodeAt(U+2)?(U+=3,H=67):(U+=2,H=47):61===a.charCodeAt(U+1)?(U+=2,H=66):(U++,H=46);if(61===a.charCodeAt(U))return U++,H=31}return H},reScanSlashToken:function(){if(41===H||63===H){for(var t=W+1,r=!1,i=!1;;){if(t>=q){$|=4,h(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=a.charCodeAt(t);if(_(o)){$|=4,h(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=q)return H=1;V=U,W=U;var e=a.charCodeAt(U);switch(U++,e){case 9:case 11:case 12:case 32:for(;U=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 s(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function c(e){return!s(e)}function u(e,t){return 42===e.charCodeAt(t.pos+1)&&33===e.charCodeAt(t.pos+2)}function l(t,n,r){return s(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((n||a(t)).text,t.pos,!1,!0):r&&e.hasJSDocNodes(t)?l(t.jsDoc[0]):293===t.kind&&t._children.length>0?l(t._children[0],n,r):e.skipTrivia((n||a(t)).text,t.pos)}function _(t,n,r){if(void 0===r&&(r=!1),s(n))return"";var i=t.text;return i.substring(r?n.pos:e.skipTrivia(i,n.pos),n.end)}function d(t,n){return s(n)?"":t.substring(e.skipTrivia(t,n.pos),n.end)}function p(e,t){return void 0===t&&(t=!1),_(a(e),e,t)}function f(e){return e.pos}function m(e){var t=e.emitNode;return t&&t.flags}function g(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function y(e){var t=fe(e);return 230===t.kind&&267===t.parent.kind}function h(e){return e&&237===e.kind&&(9===e.name.kind||x(e))}function v(t){return e.isModuleDeclaration(t)&&9===t.name.kind}function b(e){return e&&237===e.kind&&!e.body}function x(e){return!!(512&e.flags)}function S(t,n){switch(t.kind){case 272:case 239:case 267:case 237:case 218:case 219:case 220:case 154:case 153:case 155:case 156:case 232:case 190:case 191:return!0;case 211:return n&&!e.isFunctionLike(n)}return!1}function k(e){return 0===t(e)?"(Missing)":p(e)}function T(t){switch(t.kind){case 71:return t.escapedText;case 9:case 8:return g(t.text);case 146:return se(t.expression)?g(t.expression.text):void 0;default:e.Debug.assertNever(t)}}function D(n){switch(n.kind){case 71:return 0===t(n)?e.idText(n):p(n);case 145:return D(n.left)+"."+D(n.right);case 183:return D(n.expression)+"."+D(n.name)}}function C(t,n,r,i,a,o,s){var c=A(t,n);return e.createFileDiagnostic(t,c.start,c.length,r,i,a,o,s)}function E(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 N(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&211===n.body.kind){var i=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(i=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(o,r.end)}function P(t){return!!(2&e.getCombinedNodeFlags(t))||!!(2048&e.getCombinedModifierFlags(t))}function w(t){if(160<=t.kind&&t.kind<=177)return!0;switch(t.kind){case 119:case 134:case 137:case 122:case 138:case 140:case 131:return!0;case 105:return 194!==t.parent.kind;case 205:return!Ye(t);case 147:return 176===t.parent.kind||171===t.parent.kind;case 71:145===t.parent.kind&&t.parent.right===t?t=t.parent:183===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(71===t.kind||145===t.kind||183===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 145:case 183:case 99:var n=t.parent;if(164===n.kind)return!1;if(160<=n.kind&&n.kind<=177)return!0;switch(n.kind){case 205:return!Ye(n);case 147:return t===n.constraint;case 151:case 150:case 148:case 230:return t===n.type;case 232:case 190:case 191:case 154:case 153:case 152:case 155:case 156:return t===n.type;case 157:case 158:case 159:case 188:return t===n.type;case 185:case 186:return e.contains(n.typeArguments,t);case 187:return!1}}return!1}function F(e){if(e)switch(e.kind){case 180:case 271:case 148:case 268:case 151:case 150:case 269:case 230:return!0}return!1}function O(e){return 231===e.parent.kind&&212===e.parent.parent.kind}function I(t,n){for(;;){if(!(t=t.parent))return;switch(t.kind){case 146:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 149:148===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 191:if(!n)continue;case 232:case 190:case 237:case 151:case 150:case 153:case 152:case 154:case 155:case 156:case 157:case 158:case 159:case 236:case 272:return t}}}function M(e,t,n){switch(e.kind){case 233:return!0;case 151:return 233===t.kind;case 155:case 156:case 153:return void 0!==e.body&&233===t.kind;case 148:return void 0!==t.body&&(154===t.kind||153===t.kind||156===t.kind)&&233===n.kind}return!1}function L(e,t,n){return void 0!==e.decorators&&M(e,t,n)}function R(e,t,n){return L(e,t,n)||B(e,t)}function B(t,n){switch(t.kind){case 233:return e.forEach(t.members,function(e){return R(e,t,n)});case 153:case 156:return e.forEach(t.parameters,function(e){return L(e,t,n)})}}function K(e){var t=e.parent;return(255===t.kind||254===t.kind||256===t.kind)&&t.tagName===e}function j(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 206:case 188:case 207:case 189:case 190:case 203:case 191:case 194:case 192:case 193:case 196:case 197:case 198:case 199:case 202:case 200:case 13:case 204:case 253:case 254:case 257:case 201:case 195:case 208:return!0;case 145:for(;145===e.parent.kind;)e=e.parent;return 164===e.parent.kind||K(e);case 71:if(164===e.parent.kind||K(e))return!0;case 8:case 9:case 99:return z(e);default:return!1}}function z(e){var t=e.parent;switch(t.kind){case 230:case 148:case 151:case 150:case 271:case 268:case 180:return t.initializer===e;case 214:case 215:case 216:case 217:case 223:case 224:case 225:case 264:case 227:return t.expression===e;case 218:var n=t;return n.initializer===e&&231!==n.initializer.kind||n.condition===e||n.incrementor===e;case 219:case 220:var r=t;return r.initializer===e&&231!==r.initializer.kind||r.expression===e;case 188:case 206:case 209:case 146:return e===t.expression;case 149:case 263:case 262:case 270:return!0;case 205:return t.expression===e&&Ye(t);default:return j(t)}}function J(e){return 241===e.kind&&252===e.moduleReference.kind}function U(e){return q(e)}function q(e){return e&&!!(65536&e.flags)}function V(e){if(!q(e))return 0;if(58!==e.operatorToken.kind||183!==e.left.kind)return 0;var t=e.left;if(71===t.expression.kind){var n=t.expression;return"exports"===n.escapedText?1:"module"===n.escapedText&&"exports"===t.name.escapedText?2:5}if(99===t.expression.kind)return 4;if(183===t.expression.kind){var r=t.expression;if(71===r.expression.kind){if("module"===r.expression.escapedText&&"exports"===r.name.escapedText)return 1;if("prototype"===r.name.escapedText)return 3}}return 0}function W(t){return e.isExpressionStatement(t)&&t.expression&&e.isBinaryExpression(t.expression)&&58===t.expression.operatorToken.kind&&t.expression.right}function H(e){switch(e.kind){case 212:var t=G(e);return t&&t.initializer;case 151:return e.initializer}}function G(t){return e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&t.declarationList.declarations[0]}function $(e){return 237===e.kind&&e.body&&237===e.body.kind&&e.body}function X(t){var n=Q(t),r=W(n)||H(n)||G(n)||$(n)||n;return r&&e.isFunctionLike(r)?r:void 0}function Q(t){return e.Debug.assert(282===t.parent.kind),t.parent.parent}function Y(e){return void 0!==e.dotDotDotToken}function Z(e){for(var t=e.parent;;){switch(t.kind){case 198:var n=t.operatorToken.kind;return $e(n)&&t.left===e?58===n?1:2:0;case 196:case 197:var r=t.operator;return 43===r||44===r?2:0;case 219:case 220:return t.initializer===e?1:0;case 189:case 181:case 202:case 207:e=t;break;case 269:if(t.name!==e)return 0;e=t.parent;break;case 268:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ee(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function te(e){return ee(e,189)}function ne(e){return Ze(e.expression)}function re(e,t){if(e)for(var n=0,r=e;n0){var t=2===e.parameters.length&&Oe(e.parameters[0]);return e.parameters[t?1:0]}}function Oe(e){return Ie(e.name)}function Ie(e){return e&&71===e.kind&&Me(e)}function Me(e){return 99===e.originalKeywordKind}function Le(t,n){return e.hasType(t)?t.type:n||q(t)?e.getJSDocType(t):void 0}function Re(e,t,n,r){Be(e,t,n.pos,r)}function Be(e,t,n,r){r&&r.length&&n!==r[0].pos&&we(e,n)!==we(e,r[0].pos)&&t.writeLine()}function Ke(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=58&&e<=70}function Xe(t){if(205===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function Qe(t,n){return e.isBinaryExpression(t)&&(n?58===t.operatorToken.kind:$e(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Ye(e){return void 0!==Xe(e)}function Ze(e){return 71===e.kind||183===e.kind&&Ze(e.expression)}function et(t){return t&&e.length(t.declarations)>0&&Je(t.declarations[0],512)}function tt(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 nt(e,t,n){void 0===e&&(e=0);var r=rt(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 rt(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 it(e,t){return{pos:e,end:t}}function at(e,t){return it(t,e.end)}function ot(e){return e.decorators&&e.decorators.length>0?at(e,e.decorators.end):e}function st(e,t,n){return ct(ut(e,n),t.end,n)}function ct(e,t,n){return e===t||Pe(n,e)===Pe(n,t)}function ut(t,n){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(n.text,t.pos)}function lt(e){return void 0!==e.initializer}function _t(e){return 33554432&e.flags?e.checkFlags:0}function dt(e){function t(){return n.parent&&214===n.parent.kind?1:2}var n=e.parent;if(!n)return 0;switch(n.kind){case 197:case 196:var r=n.operator;return 43===r||44===r?t():0;case 198:var i=n,a=i.left,o=i.operatorToken;return a===e&&$e(o.kind)?t():0;case 183:return n.name!==e?0:dt(n);default:return 0}}function pt(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if("object"==typeof e[n]){if(!pt(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function ft(t,n){for(;;){var r=n(t);if(void 0!==r)return r;var i=e.getDirectoryPath(t);if(i===t)return;t=i}}function mt(e){if(32&e.flags){var t=gt(e);return!!t&&Je(t,128)}return!1}function gt(t){return e.find(t.declarations,e.isClassLike)}function yt(e){return 65536&e.flags?e.objectFlags:0}e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.getDeclarationOfKind=function(e,t){var n=e.declarations;if(n)for(var r=0,i=n;r=0),e.getLineStarts(n)[t]},e.nodePosToString=function(t){var n=a(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"},e.getEndLinePosition=o,e.nodeIsMissing=s,e.nodeIsPresent=c,e.isRecognizedTripleSlashComment=function(t,n,r){if(47===t.charCodeAt(n+1)&&n+2/;var vt=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var bt=/^(\/\/\/\s*/;e.isPartOfTypeNode=w,e.isChildOfNodeWithKind=function(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},e.forEachReturnStatement=function(t,n){function r(t){switch(t.kind){case 223:return n(t);case 239:case 211:case 215:case 216:case 217:case 218:case 219:case 220:case 224:case 225:case 264:case 265:case 226:case 228:case 267:return e.forEachChild(t,r)}}return r(t)},e.forEachYieldExpression=function(t,n){function r(t){switch(t.kind){case 201:n(t);var i=t.expression;return void(i&&r(i));case 236:case 234:case 237:case 235:case 233:case 203:return;default:if(e.isFunctionLike(t)){if(t.name&&146===t.name.kind)return void r(t.name.expression)}else w(t)||e.forEachChild(t,r)}}return r(t)},e.getRestParameterElementType=function(t){return t&&166===t.kind?t.elementType:t&&161===t.kind?e.singleOrUndefined(t.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 234:case 233:case 203:case 165:return e.members;case 182:return e.properties}},e.isVariableLike=F,e.isVariableDeclarationInVariableStatement=O,e.isValidESSymbolDeclaration=function(t){return e.isVariableDeclaration(t)?P(t)&&e.isIdentifier(t.name)&&O(t):e.isPropertyDeclaration(t)?qe(t)&&Ue(t):e.isPropertySignature(t)&&qe(t)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 153:case 152:case 154:case 155:case 156:case 232:case 190:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),226!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(t){return t&&211===t.kind&&e.isFunctionLike(t.parent)},e.isObjectLiteralMethod=function(e){return e&&153===e.kind&&182===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 153===e.kind&&(182===e.parent.kind||203===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=function(t,n,r){return e.filter(t.properties,function(e){if(268===e.kind){var t=T(e.name);return n===t||r&&r===t}})},e.getContainingFunction=function(t){return e.findAncestor(t.parent,e.isFunctionLike)},e.getContainingClass=function(t){return e.findAncestor(t.parent,e.isClassLike)},e.getThisContainer=I,e.getNewTargetContainer=function(e){var t=I(e,!1);if(t)switch(t.kind){case 154:case 232:case 190:return t}},e.getSuperContainer=function(t,n){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 146:t=t.parent;break;case 232:case 190:case 191:if(!n)continue;case 151:case 150:case 153:case 152:case 154:case 155:case 156:return t;case 149:148===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(190===e.kind||191===e.kind){for(var t=e,n=e.parent;189===n.kind;)t=n,n=n.parent;if(185===n.kind&&n.expression===t)return n}},e.isSuperProperty=function(e){var t=e.kind;return(183===t||184===t)&&97===e.expression.kind},e.isThisProperty=function(e){var t=e.kind;return(183===t||184===t)&&99===e.expression.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 161:return e.typeName;case 205:return Ze(e.expression)?e.expression:void 0;case 71:case 145:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 187:return e.tag;case 255:case 254:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=M,e.nodeIsDecorated=L,e.nodeOrChildIsDecorated=R,e.childIsDecorated=B,e.isJSXTagName=K,e.isExpressionNode=j,e.isInExpressionContext=z,e.isExternalModuleImportEqualsDeclaration=J,e.getExternalModuleImportEqualsDeclarationExpression=function(t){return e.Debug.assert(J(t)),t.moduleReference.expression},e.isInternalModuleImportEqualsDeclaration=function(e){return 241===e.kind&&252!==e.moduleReference.kind},e.isSourceFileJavaScript=U,e.isInJavaScriptFile=q,e.isInJSDoc=function(e){return e&&!!(1048576&e.flags)},e.isJSDocIndexSignature=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(137===t.typeArguments[0].kind||134===t.typeArguments[0].kind)},e.isRequireCall=function(e,t){if(185!==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},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===_(t,e).charCodeAt(0)},e.isDeclarationOfFunctionOrClassExpression=function(e){if(e.valueDeclaration&&230===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&(190===t.initializer.kind||203===t.initializer.kind)}return!1},e.getRightMostAssignedExpression=function(e){for(;Qe(e,!0);)e=e.right;return e},e.isExportsIdentifier=function(t){return e.isIdentifier(t)&&"exports"===t.escapedText},e.isModuleExportsPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText},e.getSpecialPropertyAssignmentKind=V,e.isSpecialPropertyDeclaration=function(t){return q(t)&&t.parent&&214===t.parent.kind&&!!e.getJSDocTypeTag(t.parent)},e.getExternalModuleName=function(e){if(242===e.kind)return e.moduleSpecifier;if(241===e.kind){var t=e.moduleReference;if(252===t.kind)return t.expression}return 248===e.kind?e.moduleSpecifier:v(e)?e.name:void 0},e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 242:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 241:return t;case 248:return;default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 242===e.kind&&e.importClause&&!!e.importClause.name},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 148:case 153:case 152:case 269:case 268:case 151:case 150:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(e){return 280===e.kind&&e.parameters.length>0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText},e.getJSDocCommentsAndTags=function(t){function n(t){var i=t.parent;i&&(268===i.kind||151===i.kind||$(i))&&n(i),i&&i.parent&&(G(i.parent)===t||W(i.parent))&&n(i.parent),i&&i.parent&&i.parent.parent&&H(i.parent.parent)===t&&n(i.parent.parent),(e.isBinaryExpression(t)&&0!==V(t)||183===t.kind&&t.parent&&214===t.parent.kind)&&n(i),148===t.kind&&(r=e.addRange(r,e.getJSDocParameterTags(t))),F(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(r=e.addRange(r,t.initializer.jsDoc)),e.hasJSDocNodes(t)&&(r=e.addRange(r,t.jsDoc))}var r;return n(t),r||e.emptyArray},e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var n=t.name.escapedText,r=X(t);if(r){var i=e.find(r.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===n});return i&&i.symbol}}},e.getHostSignatureFromJSDoc=X,e.getJSDocHost=Q,e.getTypeParameterFromJsDoc=function(t){var n=t.name.escapedText,r=t.parent.parent.parent.typeParameters;return e.find(r,function(e){return e.name.escapedText===n})},e.hasRestParameter=function(t){var n=e.lastOrUndefined(t.parameters);return n&&Y(n)},e.isRestParameter=Y;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=Z,e.isAssignmentTarget=function(e){return 0!==Z(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 211:case 212:case 224:case 215:case 225:case 239:case 264:case 265:case 226:case 218:case 219:case 220:case 216:case 217:case 228:case 267:return!0}return!1},e.walkUpParenthesizedTypes=function(e){return ee(e,172)},e.walkUpParenthesizedExpressions=te,e.isDeleteTarget=function(e){return(183===e.kind||184===e.kind)&&(e=te(e.parent))&&192===e.kind},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){switch(t.kind){case 71:case 9:case 8:return e.isDeclaration(t.parent)&&t.parent.name===t;default:return!1}},e.isAnyDeclarationName=function(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!==V(n)&&e.getNameOfDeclaration(n)===t;default:return!1}},e.isLiteralComputedPropertyDeclarationName=function(t){return(9===t.kind||8===t.kind)&&146===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 151:case 150:case 153:case 152:case 155:case 156:case 271:case 268:case 183:return t.name===e;case 145:if(t.right===e){for(;145===t.kind;)t=t.parent;return 164===t.kind}return!1;case 180:case 246:return t.propertyName===e;case 250:case 260:return!0}return!1},e.isAliasSymbolDeclaration=function(e){return 241===e.kind||240===e.kind||243===e.kind&&!!e.name||244===e.kind||246===e.kind||250===e.kind||247===e.kind&&ne(e)},e.exportAssignmentIsAlias=ne,e.getClassExtendsHeritageClauseElement=function(e){var t=re(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0},e.getClassImplementsHeritageClauseElements=function(e){var t=re(e.heritageClauses,108);return t?t.types:void 0},e.getInterfaceBaseTypeNodes=function(e){var t=re(e.heritageClauses,85);return t?t.types:void 0},e.getHeritageClause=re,e.tryResolveScriptReference=function(t,n,r){if(!t.getCompilerOptions().noResolve){var i=e.isRootedDiskPath(r.fileName)?r.fileName:e.combinePaths(e.getDirectoryPath(n.fileName),r.fileName);return t.getSourceFile(i)}},e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.getFileReferenceFromReferencePath=function(t,n){var r=/^\/\/\/\s*=97&&t<=122||e.indexOf("-")>-1};var Ct=/[^\u0000-\u007F]/g;e.escapeNonAsciiString=ke;var Et=[""," "];e.getIndentString=Te,e.getIndentSize=De,e.createTextWriter=function(t){function n(e){e&&e.length&&(o&&(i+=Te(a),o=!1),i+=e)}function r(){i="",a=0,o=!0,s=0,c=0}var i,a,o,s,c;return r(),{write:n,rawWrite:function(e){void 0!==e&&(o&&(o=!1),i+=e)},writeTextOfNode:function(e,t){n(d(e,t))},writeLiteral:function(t){if(t&&t.length){n(t);var r=e.computeLineStarts(t);r.length>1&&(s=s+r.length-1,c=i.length-t.length+e.lastOrUndefined(r))}},writeLine:function(){o||(s++,c=(i+=t).length,o=!0)},increaseIndent:function(){a++},decreaseIndent:function(){a--},getIndent:function(){return a},getTextPos:function(){return i.length},getLine:function(){return s+1},getColumn:function(){return o?a*De()+1:i.length-c+1},getText:function(){return i},isAtStartOfLine:function(){return o},clear:r,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:n,writeOperator:n,writeParameter:n,writeProperty:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeSymbol:n}},e.getResolvedExternalModuleName=Ce,e.getExternalModuleNameFromDeclaration=function(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!r.isDeclarationFile)return Ce(e,r)},e.getExternalModuleNameFromPath=Ee,e.getOwnEmitOutputFilePath=function(t,n,r){var i=n.getCompilerOptions();return(i.outDir?e.removeFileExtension(Ae(t,n,i.outDir)):e.removeFileExtension(t.fileName))+r},e.getDeclarationEmitOutputFilePath=function(t,n){var r=n.getCompilerOptions(),i=r.declarationDir||r.outDir,a=i?Ae(t,n,i):t.fileName;return e.removeFileExtension(a)+".d.ts"},e.getSourceFilesToEmit=function(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))&&Ne(t,r,i)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return Ne(e,r,i)})},e.sourceFileMayBeEmitted=Ne,e.getSourceFilePathInNewDir=Ae,e.writeFile=function(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)},e.getLineOfLocalPosition=Pe,e.getLineOfLocalPositionFromLineMap=we,e.getFirstConstructorWithBody=function(t){return e.forEach(t.members,function(e){if(154===e.kind&&c(e.body))return e})},e.getSetAccessorTypeAnnotationNode=function(e){var t=Fe(e);return t&&t.type},e.getThisParameter=function(e){if(e.parameters.length){var t=e.parameters[0];if(Oe(t))return t}},e.parameterIsThisKeyword=Oe,e.isThisIdentifier=Ie,e.identifierIsThisKeyword=Me,e.getAllAccessorDeclarations=function(t,n){var r,i,a,o;return ce(n)?(r=n,155===n.kind?a=n:156===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){155!==e.kind&&156!==e.kind||Je(e,32)!==Je(n,32)||_e(e.name)===_e(n.name)&&(r?i||(i=e):r=e,155!==e.kind||a||(a=e),156!==e.kind||o||(o=e))}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=Le,e.getEffectiveReturnTypeNode=function(t,n){return t.type?t.type:n||q(t)?e.getJSDocReturnType(t):void 0},e.getEffectiveTypeParameterDeclarations=function(t,n){if(t.typeParameters)return t.typeParameters;if(n||q(t)){var r=e.getJSDocTemplateTag(t);return r&&r.typeParameters}},e.getEffectiveSetAccessorTypeAnnotationNode=function(e,t){var n=Fe(e);return n&&Le(n,t)},e.emitNewLineBeforeLeadingComments=Re,e.emitNewLineBeforeLeadingCommentsOfPosition=Be,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,n,r){n!==r&&we(e,n)!==we(e,r)&&t.writeLine()},e.emitComments=Ke,e.emitDetachedComments=function(t,n,r,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return u(t,e)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var _=[],d=void 0,p=0,f=c;p=g+2))break;_.push(m),d=m}if(_.length){var g=we(n,e.lastOrUndefined(_).end);we(n,e.skipTrivia(t,a.pos))>=g+2&&(Re(n,r,a,c),Ke(t,n,r,_,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(_).end})}}return l},e.writeCommentRange=function(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%De(),m=Te((p-f)/De());for(r.rawWrite(m);f;)r.rawWrite(" "),f--}else r.rawWrite("")}je(t,a,r,o,l,d),l=d}else r.write(t.substring(i,a))},e.hasModifiers=function(e){return 0!==We(e)},e.hasModifier=Je,e.hasStaticModifier=Ue,e.hasReadonlyModifier=qe,e.getSelectedModifierFlags=Ve,e.getModifierFlags=We,e.getModifierFlagsNoCache=He,e.modifierToFlag=Ge,e.isLogicalOperator=function(e){return 54===e||53===e||51===e},e.isAssignmentOperator=$e,e.tryGetClassExtendingExpressionWithTypeArguments=Xe,e.isAssignmentExpression=Qe,e.isDestructuringAssignment=function(e){if(Qe(e,!0)){var t=e.left.kind;return 182===t||181===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Ye,e.isExpressionWithTypeArgumentsInClassImplementsClause=function(t){return 205===t.kind&&Ze(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)},e.isEntityNameExpression=Ze,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 145===e.parent.kind&&e.parent.right===e||183===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 182===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 181===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(e){return et(e)?e.declarations[0].localSymbol:void 0},e.tryExtractTypeScriptExtension=function(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(n){return e.fileExtensionIs(t,n)})};var Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=function(e){for(var t,n,r,i,a="",o=tt(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+=Nt.charAt(t)+Nt.charAt(n)+Nt.charAt(r)+Nt.charAt(i),s+=3;return a};var At="\r\n",Pt="\n";e.getNewLineCharacter=function(t,n){switch(t.newLine){case 0:return At;case 1:return Pt}return n?n():e.sys?e.sys.newLine:At},e.formatSyntaxKind=function(t){return nt(t,e.SyntaxKind,!1)},e.formatModifierFlags=function(t){return nt(t,e.ModifierFlags,!0)},e.formatTransformFlags=function(t){return nt(t,e.TransformFlags,!0)},e.formatEmitFlags=function(t){return nt(t,e.EmitFlags,!0)},e.formatSymbolFlags=function(t){return nt(t,e.SymbolFlags,!0)},e.formatTypeFlags=function(t){return nt(t,e.TypeFlags,!0)},e.formatObjectFlags=function(t){return nt(t,e.ObjectFlags,!0)},e.createRange=it,e.moveRangeEnd=function(e,t){return it(e.pos,t)},e.moveRangePos=at,e.moveRangePastDecorators=ot,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?at(e,e.modifiers.end):ot(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,n){return it(t,t+e.tokenToString(n).length)},e.rangeIsOnSingleLine=function(e,t){return st(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,n){return ct(ut(e,n),ut(t,n),n)},e.rangeEndPositionsAreOnSameLine=function(e,t,n){return ct(e.end,t.end,n)},e.rangeStartIsOnSameLineAsRangeEnd=st,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,n){return ct(e.end,ut(t,n),n)},e.positionsAreOnSameLine=ct,e.getStartPositionOfRange=ut,e.isDeclarationNameOfEnumOrNamespace=function(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 236:case 237:return n===n.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,lt)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.getCheckFlags=_t,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var n=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?n:-29&n}if(6&_t(t)){var r=t.checkFlags;return(256&r?8:64&r?4:16)|(512&r?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===dt(e)},e.isWriteAccess=function(e){return 0!==dt(e)};var wt;!function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(wt||(wt={})),e.compareDataObjects=pt,e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMap=function(e,t,n){var r=n.createNewValue,i=n.onDeleteValue,a=n.onExistingValue;e.forEach(function(n,r){var o=t.get(r);void 0===o?(e.delete(r),i(n,r)):a&&a(n,o,r)}),t.forEach(function(t,n){e.has(n)||e.set(n,r(n,t))})},e.forEachAncestorDirectory=ft,e.isAbstractConstructorType=function(e){return!!(16&yt(e))&&!!e.symbol&&mt(e.symbol)},e.isAbstractConstructorSymbol=mt,e.getClassLikeDeclarationOfSymbol=gt,e.getObjectFlags=yt,e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(e,t){return!!ft(e,function(e){return!!t(e)||void 0})},e.isUMDExportSymbol=function(t){return t&&t.declarations&&t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])}}(r||(r={})),function(e){function t(e){return e.start+e.length}function n(e){return 0===e.length}function r(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function i(e,t){return r(e,t-e)}function a(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function o(t){return!!e.isBindingPattern(t)&&e.every(t.elements,s)}function s(t){return!!e.isOmittedExpression(t)||o(t.name)}function c(t){for(;t&&(180===t.kind||e.isBindingPattern(t));)t=t.parent;return t}function u(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function l(e){return 0==(8&e.flags)}function _(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function d(t){var n=t.parent.parent;if(n){if(e.isDeclaration(n))return p(n);switch(n.kind){case 212:if(n.declarationList&&n.declarationList.declarations[0])return p(n.declarationList.declarations[0]);return;case 214:var r=n.expression;switch(r.kind){case 183:return r.name;case 184:var i=r.argumentExpression;if(e.isIdentifier(i))return i}return;case 1:return;case 189:return p(n.expression);case 226:if(e.isDeclaration(n.statement)||e.isExpression(n.statement))return p(n.statement);return;default:e.Debug.assertNever(n,"Found typedef tag attached to node which it should not be!")}}}function p(t){var n=m(t);return e.isIdentifier(n)?n:void 0}function f(e){return e.name||d(e)}function m(t){if(t){switch(t.kind){case 71:return t;case 292:case 287:var n=t.name;if(145===n.kind)return n.right;break;case 198:var r=t;switch(e.getSpecialPropertyAssignmentKind(r)){case 1:case 4:case 5:case 3:return r.left.name;default:return}case 291:return f(t);case 247:var i=t.expression;return e.isIdentifier(i)?i:void 0}return t.name}}function g(t){if(t.name&&e.isIdentifier(t.name)){var n=t.name.escapedText;return h(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n})}}function y(e){return v(e,288)}function h(t){var n=t.jsDocCache;return void 0===n&&(t.jsDocCache=n=e.flatMap(e.getJSDocCommentsAndTags(t),function(t){return e.isJSDoc(t)?t.tags:t})),n}function v(t,n){var r=h(t);return e.find(r,function(e){return e.kind===n})}e.getDefaultLibFileName=function(e){switch(e.target){case 6: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"}},e.textSpanEnd=t,e.textSpanIsEmpty=n,e.textSpanContainsPosition=function(e,n){return n>=e.start&&n=e.start&&t(n)<=t(e)},e.textSpanOverlapsWith=function(e,n){return Math.max(e.start,n.start)=e.start},e.textSpanIntersectsWith=function(e,n,r){var i=n+r;return n<=t(e)&&i>=e.start},e.decodedTextSpanIntersectsWith=function(e,t,n,r){var i=n+r;return n<=e+t&&i>=e},e.textSpanIntersectsWithPosition=function(e,n){return n<=t(e)&&n>=e.start},e.textSpanIntersection=function(e,n){var r=Math.max(e.start,n.start),a=Math.min(t(e),t(n));if(r<=a)return i(r,a)},e.createTextSpan=r,e.createTextSpanFromBounds=i,e.textChangeRangeNewSpan=function(e){return r(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return n(e.span)&&0===e.newLength},e.createTextChangeRange=a,e.unchangedTextChangeRange=a(r(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(n){if(0===n.length)return e.unchangedTextChangeRange;if(1===n.length)return n[0];for(var r=n[0],o=r.span.start,s=t(r.span),c=o+r.newLength,u=1;u=145}function n(e){return 8<=e&&e<=13}function r(e){return 13<=e&&e<=16}function i(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 132:case 115:return!0}return!1}function a(e){return e&&s(e.kind)}function o(e){switch(e){case 232:case 153:case 154:case 155:case 156:case 190:case 191:return!0;default:return!1}}function s(e){switch(e){case 152:case 157:case 158:case 159:case 162:case 280:case 163:return!0;default:return o(e)}}function c(e){return e>=160&&e<=177||119===e||134===e||135===e||122===e||137===e||138===e||99===e||105===e||140===e||95===e||131===e||205===e||275===e||276===e||277===e||278===e||279===e||280===e||281===e}function u(e){switch(e.kind){case 178:case 182:return!0}return!1}function l(e){switch(e.kind){case 179:case 181:return!0}return!1}function _(e){switch(e){case 183:case 184:case 186:case 185:case 253:case 254:case 257:case 187:case 181:case 189:case 182:case 203:case 190:case 71:case 12:case 8:case 9:case 13:case 200:case 86:case 95:case 99:case 101:case 97:case 207:case 208:case 91:return!0;default:return!1}}function d(e){switch(e){case 196:case 197:case 192:case 193:case 194:case 195:case 188:return!0;default:return _(e)}}function p(t){return f(e.skipPartiallyEmittedExpressions(t).kind)}function f(e){switch(e){case 199:case 201:case 191:case 198:case 202:case 206:case 204:case 296:case 295:return!0;default:return d(e)}}function m(e){return 295===e.kind}function g(e){return 294===e.kind}function y(e,t){switch(e.kind){case 218:case 219:case 220:case 216:case 217:return!0;case 226:return t&&y(e.statement,t)}return!1}function h(e){return 191===e||180===e||233===e||203===e||154===e||236===e||271===e||250===e||232===e||190===e||155===e||243===e||241===e||246===e||234===e||260===e||153===e||152===e||237===e||240===e||244===e||148===e||268===e||151===e||150===e||156===e||269===e||235===e||147===e||230===e||291===e}function v(e){return 232===e||251===e||233===e||234===e||235===e||236===e||237===e||242===e||241===e||248===e||247===e||240===e}function b(e){return 222===e||221===e||229===e||216===e||214===e||213===e||219===e||220===e||218===e||215===e||226===e||223===e||225===e||227===e||228===e||212===e||217===e||224===e||294===e||298===e||297===e}function x(t){return 211===t.kind&&((void 0===t.parent||228!==t.parent.kind&&267!==t.parent.kind)&&!e.isFunctionBlock(t))}function S(e){return e.kind>=284&&e.kind<=292}function k(e){return!!e.initializer}e.isSyntaxList=function(e){return 293===e.kind},e.isNode=function(e){return t(e.kind)},e.isNodeKind=t,e.isToken=function(e){return e.kind>=0&&e.kind<=144},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=n,e.isLiteralExpression=function(e){return n(e.kind)},e.isTemplateLiteralKind=r,e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 15===t||16===t},e.isStringTextContainingNode=function(e){return 9===e.kind||r(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isModifierKind=i,e.isModifier=function(e){return i(e.kind)},e.isEntityName=function(e){var t=e.kind;return 145===t||71===t},e.isPropertyName=function(e){var t=e.kind;return 71===t||9===t||8===t||146===t},e.isBindingName=function(e){var t=e.kind;return 71===t||178===t||179===t},e.isFunctionLike=a,e.isFunctionLikeDeclaration=function(e){return e&&o(e.kind)},e.isFunctionLikeKind=s,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&a(t.parent)},e.isClassElement=function(e){var t=e.kind;return 154===t||151===t||153===t||155===t||156===t||159===t||210===t||251===t},e.isClassLike=function(e){return e&&(233===e.kind||203===e.kind)},e.isAccessor=function(e){return e&&(155===e.kind||156===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 153:case 155:case 156:return!0;default:return!1}},e.isTypeElement=function(e){var t=e.kind;return 158===t||157===t||150===t||152===t||159===t||251===t},e.isObjectLiteralElementLike=function(e){var t=e.kind;return 268===t||269===t||270===t||153===t||155===t||156===t||251===t},e.isTypeNode=function(e){return c(e.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 162:case 163:return!0}return!1},e.isBindingPattern=function(e){if(e){var t=e.kind;return 179===t||178===t}return!1},e.isAssignmentPattern=function(e){var t=e.kind;return 181===t||182===t},e.isArrayBindingElement=function(e){var t=e.kind;return 180===t||204===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 230:case 148:case 180:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return u(e)||l(e)},e.isObjectBindingOrAssignmentPattern=u,e.isArrayBindingOrAssignmentPattern=l,e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 183===t||145===t},e.isCallLikeExpression=function(e){switch(e.kind){case 255:case 254:case 185:case 186:case 187:case 149:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 185===e.kind||186===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 200===t||13===t},e.isLeftHandSideExpression=function(t){return _(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpression=function(t){return d(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 197:return!0;case 196:return 43===e.operator||44===e.operator;default:return!1}},e.isExpression=p,e.isAssertionExpression=function(e){var t=e.kind;return 188===t||206===t},e.isPartiallyEmittedExpression=m,e.isNotEmittedStatement=g,e.isNotEmittedOrPartiallyEmittedNode=function(e){return g(e)||m(e)},e.isIterationStatement=y,e.isForInOrOfStatement=function(e){return 219===e.kind||220===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||p(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||p(t)},e.isModuleBody=function(e){var t=e.kind;return 238===t||237===t||71===t},e.isNamespaceBody=function(e){var t=e.kind;return 238===t||237===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 71===t||237===t},e.isNamedImportBindings=function(e){var t=e.kind;return 245===t||244===t},e.isModuleOrEnumDeclaration=function(e){return 237===e.kind||236===e.kind},e.isDeclaration=function(t){return 147===t.kind?290!==t.parent.kind||e.isInJavaScriptFile(t):h(t.kind)},e.isDeclarationStatement=function(e){return v(e.kind)},e.isStatementButNotDeclaration=function(e){return b(e.kind)},e.isStatement=function(e){var t=e.kind;return b(t)||v(t)||x(e)},e.isModuleReference=function(e){var t=e.kind;return 252===t||145===t||71===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 99===t||71===t||183===t},e.isJsxChild=function(e){var t=e.kind;return 253===t||263===t||254===t||10===t||257===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 260===t||262===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 9===t||263===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 255===t||254===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 264===t||265===t},e.isJSDocNode=function(e){return e.kind>=274&&e.kind<=292},e.isJSDocCommentContainingNode=function(t){return 282===t.kind||S(t)||e.isJSDocTypeLiteral(t)},e.isJSDocTag=S,e.isSetAccessor=function(e){return 156===e.kind},e.isGetAccessor=function(e){return 155===e.kind},e.hasJSDocNodes=function(e){return!!e.jsDoc&&e.jsDoc.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=k,e.hasOnlyExpressionInitializer=function(t){return k(t)&&!e.isForStatement(t)&&!e.isForInStatement(t)&&!e.isForOfStatement(t)&&!e.isJsxAttribute(t)},e.isObjectLiteralElement=function(e){switch(e.kind){case 260:case 262:case 268:case 269:case 153:case 155:case 156:return!0;default:return!1}},e.isTypeReferenceType=function(e){return 161===e.kind||205===e.kind},e.isStringLiteralLike=function(e){return 9===e.kind||13===e.kind}}(r||(r={}));!function(e){function t(e,t){return t&&e(t)}function n(e,t,n){if(n){if(t)return t(n);for(var r=0,i=n;r107)}function W(t,n,r){return void 0===r&&(r=!0),I()===t?(r&&M(),!0):(n?P(n):P(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function H(e){return I()===e&&(M(),!0)}function G(e){if(I()===e)return X()}function $(t,n,r){return G(t)||re(t,!1,n||e.Diagnostics._0_expected,r||e.tokenToString(t))}function X(){var e=Z(I());return M(),ne(e)}function Q(){return 25===I()||(18===I()||1===I()||xa.hasPrecedingLineBreak())}function Y(){return Q()?(25===I()&&M(),!0):W(25)}function Z(t,n){ga++;var r=n>=0?n:xa.getStartPos();return e.isNodeKind(t)||0===t?new sa(t,r,r):71===t?new ua(t,r,r):new ca(t,r,r)}function ee(e){var t=Z(e);return 2&xa.getTokenFlags()&&c(t),t}function te(e,t,n){var r=e.length,i=r>=1&&r<=4?e.slice():e;return i.pos=t,i.end=void 0===n?xa.getStartPos():n,i}function ne(e,t){return e.end=void 0===t?xa.getStartPos():t,ba&&(e.flags|=ba),ka&&(ka=!1,e.flags|=32768),e}function re(t,n,r,i){n?w(xa.getStartPos(),0,r,i):P(r,i);var a=Z(t);return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),ne(a)}function ie(e){var t=ya.get(e);return void 0===t&&ya.set(e,t=e),t}function ae(t,n){if(ha++,t){var r=Z(71);return 71!==I()&&(r.originalKeywordKind=I()),r.escapedText=e.escapeLeadingUnderscores(ie(xa.getTokenValue())),M(),ne(r)}return re(71,1===I(),n||e.Diagnostics.Identifier_expected)}function oe(e){return ae(V(),e)}function se(t){return ae(e.tokenIsIdentifierOrKeyword(I()),t)}function ce(){return e.tokenIsIdentifierOrKeyword(I())||9===I()||8===I()}function ue(e){if(9===I()||8===I()){var t=Qe();return t.text=ie(t.text),t}return e&&21===I()?_e():se()}function le(){return ue(!0)}function _e(){var e=Z(146);return W(21),e.expression=h(cn),W(22),ne(e)}function de(e){return I()===e&&q(fe)}function pe(){return M(),!xa.hasPrecedingLineBreak()&&ge()}function fe(){return 76===I()?83===M():84===I()?(M(),79===I()?U(ye):39!==I()&&118!==I()&&17!==I()&&ge()):79===I()?ye():115===I()?(M(),ge()):pe()}function me(){return e.isModifierKind(I())&&q(fe)}function ge(){return 21===I()||17===I()||39===I()||24===I()||ce()}function ye(){return M(),75===I()||89===I()||109===I()||117===I()&&U(jr)||120===I()&&U(zr)}function he(t,n){if(we(t))return!0;switch(t){case 0:case 1:case 3:return!(25===I()&&n)&&Vr();case 2:return 73===I()||79===I();case 4:return U(Dt);case 5:return U(hi)||25===I()&&!n;case 6:return 21===I()||ce();case 12:return 21===I()||39===I()||24===I()||ce();case 17:return ce();case 9:return 21===I()||24===I()||ce();case 7:return 17===I()?U(ve):n?V()&&!ke():an()&&!ke();case 8:return ii();case 10:return 26===I()||24===I()||ii();case 18:return V();case 15:if(26===I())return!0;case 11:return 24===I()||on();case 16:return pt();case 19:case 20:return 26===I()||jt();case 21:return Fi();case 22:return e.tokenIsIdentifierOrKeyword(I());case 13:return e.tokenIsIdentifierOrKeyword(I())||17===I();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function ve(){if(e.Debug.assert(17===I()),18===M()){var t=M();return 26===t||17===t||85===t||108===t}return!0}function be(){return M(),V()}function xe(){return M(),e.tokenIsIdentifierOrKeyword(I())}function Se(){return M(),e.tokenIsIdentifierOrKeywordOrGreaterThan(I())}function ke(){return(108===I()||85===I())&&U(Te)}function Te(){return M(),on()}function De(){return M(),jt()}function Ce(e){if(1===I())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===I();case 3:return 18===I()||73===I()||79===I();case 7:return 17===I()||85===I()||108===I();case 8:return Ee();case 18:return 29===I()||19===I()||17===I()||85===I()||108===I();case 11:return 20===I()||25===I();case 15:case 20:case 10:return 22===I();case 16:case 17:return 20===I()||22===I();case 19:return 26!==I();case 21:return 17===I()||18===I();case 13:return 29===I()||41===I();case 14:return 27===I()&&U(qi)}}function Ee(){return!!Q()||(!!Dn(I())||36===I())}function Ne(){for(var e=0;e<23;e++)if(va&1<=0&&(c.hasTrailingComma=!0),c}function qe(){return te([],O())}function Ve(e,t,n,r){if(W(n)){var i=Ue(e,t);return W(r),i}return qe()}function We(e,t){for(var n=e?se(t):oe(t),r=xa.getStartPos();H(23);){if(27===I()){n.jsdocDotPos=r;break}r=xa.getStartPos(),n=He(n,Ge(e))}return n}function He(e,t){var n=Z(145,e.pos);return n.left=e,n.right=t,ne(n)}function Ge(t){return xa.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(I())&&U(Kr)?re(71,!0,e.Diagnostics.Identifier_expected):t?se():oe()}function $e(){var t=Z(200);t.head=Ye(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var n=[],r=O();do{n.push(Xe())}while(15===e.lastOrUndefined(n).literal.kind);return t.templateSpans=te(n,r),ne(t)}function Xe(){var t=Z(209);t.expression=h(cn);var n;return 18===I()?(B(),n=Ze()):n=$(16,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=n,ne(t)}function Qe(){return et(I())}function Ye(){var t=et(I());return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function Ze(){var t=et(I());return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function et(e){var t=Z(e),n=xa.getTokenValue();return t.text=n,xa.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),xa.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&xa.getTokenFlags()),M(),ne(t),t}function tt(){var t=Z(161);return t.typeName=We(!0,e.Diagnostics.Type_expected),xa.hasPrecedingLineBreak()||27!==I()||(t.typeArguments=Ve(19,tn,27,29)),ne(t)}function nt(e){M();var t=Z(160,e.pos);return t.parameterName=e,t.type=tn(),ne(t)}function rt(){var e=Z(173);return M(),ne(e)}function it(){var e=Z(275);return M(),ne(e)}function at(){var e=xa.getStartPos();if(M(),26===I()||18===I()||20===I()||29===I()||58===I()||49===I())return ne(t=Z(276,e));var t=Z(277,e);return t.type=tn(),ne(t)}function ot(){if(U(Ui)){var e=ee(280);return M(),mt(56,36,e),ne(e)}var t=Z(161);return t.typeName=se(),ne(t)}function st(){var e=Z(148);return 99!==I()&&94!==I()||(e.name=se(),W(56)),e.type=tn(),ne(e)}function ct(e){var t=Z(e);return M(),t.type=Kt(),ne(t)}function ut(){var e=Z(164);return W(103),e.exprName=We(!0),ne(e)}function lt(){var e=Z(147);return e.name=oe(),H(85)&&(jt()||!on()?e.constraint=tn():e.expression=Rn()),H(58)&&(e.default=tn()),ne(e)}function _t(){if(27===I())return Ve(18,lt,27,29)}function dt(){if(H(56))return tn()}function pt(){return 24===I()||ii()||e.isModifierKind(I())||57===I()||jt(!0)}function ft(){var t=ee(148);return 99===I()?(t.name=ae(!0),t.type=dt(),ne(t)):(t.decorators=vi(),t.modifiers=bi(),t.dotDotDotToken=G(24),t.name=ai(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(I())&&M(),t.questionToken=G(55),t.type=dt(),t.initializer=un(),ne(t))}function mt(e,t,n){32&t||(n.typeParameters=_t()),n.parameters=ht(t),n.type=gt(e,!!(4&t))}function gt(e,t){return yt(e,t)?Zt():void 0}function yt(t,n){return 36===t?(W(t),!0):!!H(56)||!(!n||36!==I())&&(P(e.Diagnostics._0_expected,e.tokenToString(56)),M(),!0)}function ht(e){if(W(19)){var t=C(),n=A();p(!!(1&e)),m(!!(2&e));var r=Ue(16,32&e?st:ft);if(p(t),m(n),!W(20)&&8&e)return;return r}return 8&e?void 0:qe()}function vt(){H(26)||Y()}function bt(e){var t=ee(e);return 158===e&&W(94),mt(56,4,t),vt(),ne(t)}function xt(){return 21===I()&&U(St)}function St(){if(M(),24===I()||22===I())return!0;if(e.isModifierKind(I())){if(M(),V())return!0}else{if(!V())return!1;M()}return 56===I()||26===I()||55===I()&&(M(),56===I()||26===I()||22===I())}function kt(e){return e.kind=159,e.parameters=Ve(16,ft,21,22),e.type=rn(),vt(),ne(e)}function Tt(e){return e.name=le(),e.questionToken=G(55),19===I()||27===I()?(e.kind=152,mt(56,4,e)):(e.kind=150,e.type=rn(),58===I()&&(e.initializer=un())),vt(),ne(e)}function Dt(){if(19===I()||27===I())return!0;for(var t;e.isModifierKind(I());)t=!0,M();return 21===I()||(ce()&&(t=!0,M()),!!t&&(19===I()||27===I()||55===I()||56===I()||26===I()||Q()))}function Ct(){if(19===I()||27===I())return bt(157);if(94===I()&&U(Et))return bt(158);var e=ee(0);return e.modifiers=bi(),xt()?kt(e):Tt(e)}function Et(){return M(),19===I()||27===I()}function Nt(){var e=Z(165);return e.members=At(),ne(e)}function At(){var e;return W(17)?(e=Ae(4,Ct),W(18)):e=qe(),e}function Pt(){return M(),37===I()||38===I()?132===M():(132===I()&&M(),21===I()&&be()&&92===M())}function wt(){var e=Z(147);return e.name=oe(),W(92),e.constraint=tn(),ne(e)}function Ft(){var e=Z(176);return W(17),132!==I()&&37!==I()&&38!==I()||(e.readonlyToken=X(),132!==e.readonlyToken.kind&&$(132)),W(21),e.typeParameter=wt(),W(22),55!==I()&&37!==I()&&38!==I()||(e.questionToken=X(),55!==e.questionToken.kind&&$(55)),e.type=rn(),Y(),W(18),ne(e)}function Ot(){var e=Z(167);return e.elementTypes=Ve(20,tn,21,22),ne(e)}function It(){var e=Z(172);return W(19),e.type=tn(),W(20),ne(e)}function Mt(e){var t=ee(e);return 163===e&&W(94),mt(36,4,t),ne(t)}function Lt(){var e=X();return 23===I()?void 0:e}function Rt(e){var t,n=Z(177);e&&((t=Z(196)).operator=38,M());var r=101===I()||86===I()?X():et(I());return e&&(t.operand=r,ne(t),r=t),n.literal=r,ne(n)}function Bt(){return 8===M()}function Kt(){switch(I()){case 119:case 137:case 134:case 138:case 122:case 140:case 131:case 135:return q(Lt)||tt();case 39:return it();case 55:return at();case 89:return ot();case 51:return ct(278);case 13:case 9:case 8:case 101:case 86:return Rt();case 38:return U(Bt)?Rt(!0):tt();case 105:case 95:return X();case 99:var e=rt();return 127!==I()||xa.hasPrecedingLineBreak()?e:nt(e);case 103:return ut();case 17:return U(Pt)?Ft():Nt();case 21:return Ot();case 19:return It();default:return tt()}}function jt(e){switch(I()){case 119:case 137:case 134:case 122:case 138:case 141:case 105:case 140:case 95:case 99:case 103:case 131:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 135:case 39:case 55:case 51:case 24:case 126:return!0;case 38:return!e&&U(Bt);case 19:return!e&&U(zt);default:return V()}}function zt(){return M(),20===I()||pt()||jt()}function Jt(){for(var e=Kt();!xa.hasPrecedingLineBreak();)switch(I()){case 58:if(!(1048576&ba))return e;e=Ut(279,e);break;case 51:e=Ut(278,e);break;case 55:if(!(1048576&ba)&&U(De))return e;e=Ut(277,e);break;case 21:if(W(21),jt())(t=Z(175,e.pos)).objectType=e,t.indexType=tn(),W(22),e=ne(t);else{var t=Z(166,e.pos);t.elementType=e,W(22),e=ne(t)}break;default:return e}return e}function Ut(e,t){M();var n=Z(e,t.pos);return n.type=t,ne(n)}function qt(e){var t=Z(174);return W(e),t.operator=e,t.type=Wt(),ne(t)}function Vt(){var e=Z(171);W(126);var t=Z(147);return t.name=oe(),e.typeParameter=ne(t),ne(e)}function Wt(){var e=I();switch(e){case 128:case 141:return qt(e);case 126:return Vt();case 24:var t=Z(281);return M(),t.type=Jt(),ne(t)}return Jt()}function Ht(e,t,n){H(n);var r=t();if(I()===n){for(var i=[r];H(n);)i.push(t());var a=Z(e,r.pos);a.types=te(i,r.pos),r=ne(a)}return r}function Gt(){return Ht(169,Wt,48)}function $t(){return Ht(168,Gt,49)}function Xt(){return 27===I()||19===I()&&U(Yt)}function Qt(){if(e.isModifierKind(I())&&bi(),V()||99===I())return M(),!0;if(21===I()||17===I()){var t=da.length;return ai(),t===da.length}return!1}function Yt(){if(M(),20===I()||24===I())return!0;if(Qt()){if(56===I()||26===I()||55===I()||58===I())return!0;if(20===I()&&(M(),36===I()))return!0}return!1}function Zt(){var e=V()&&q(en),t=tn();if(e){var n=Z(160,e.pos);return n.parameterName=e,n.type=t,ne(n)}return t}function en(){var e=oe();if(127===I()&&!xa.hasPrecedingLineBreak())return M(),e}function tn(){return g(20480,nn)}function nn(e){if(Xt())return Mt(162);if(94===I())return Mt(163);var t=$t();if(!e&&!xa.hasPrecedingLineBreak()&&H(85)){var n=Z(170,t.pos);return n.checkType=t,n.extendsType=nn(!0),W(55),n.trueType=nn(),W(56),n.falseType=nn(),ne(n)}return t}function rn(){return H(56)?tn():void 0}function an(){switch(I()){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 U(Et);default:return V()}}function on(){if(an())return!0;switch(I()){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!!En()||V()}}function sn(){return 17!==I()&&89!==I()&&75!==I()&&57!==I()&&on()}function cn(){var e=N();e&&f(!1);for(var t,n=ln();t=G(26);)n=An(n,t,ln());return e&&f(!0),n}function un(){return H(58)?ln():void 0}function ln(){if(_n())return pn();var t=mn()||vn();if(t)return t;var n=Tn(0);return 71===n.kind&&36===I()?fn(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(L())?An(n,X(),ln()):kn(n)}function _n(){return 116===I()&&(!!C()||U(Jr))}function dn(){return M(),!xa.hasPrecedingLineBreak()&&V()}function pn(){var e=Z(201);return M(),xa.hasPrecedingLineBreak()||39!==I()&&!on()?ne(e):(e.asteriskToken=G(39),e.expression=ln(),ne(e))}function fn(t,n){e.Debug.assert(36===I(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var r;n?(r=Z(191,n.pos)).modifiers=n:r=Z(191,t.pos);var i=Z(148,t.pos);return i.name=t,ne(i),r.parameters=te([i],i.pos,i.end),r.equalsGreaterThanToken=$(36),r.body=Sn(!!n),c(ne(r))}function mn(){var t=gn();if(0!==t){var n=1===t?xn(!0):q(hn);if(n){var r=e.hasModifier(n,256),i=I();return n.equalsGreaterThanToken=$(36),n.body=36===i||17===i?Sn(r):oe(),ne(n)}}}function gn(){return 19===I()||27===I()||120===I()?U(yn):36===I()?1:0}function yn(){if(120===I()){if(M(),xa.hasPrecedingLineBreak())return 0;if(19!==I()&&27!==I())return 0}var t=I(),n=M();if(19===t){if(20===n)switch(M()){case 36:case 56:case 17:return 1;default:return 0}if(21===n||17===n)return 2;if(24===n)return 1;if(e.isModifierKind(n)&&120!==n&&U(be))return 1;if(!V())return 0;switch(M()){case 56:return 1;case 55:return M(),56===I()||26===I()||58===I()||20===I()?1:0;case 26:case 58:case 20:return 2}return 0}return e.Debug.assert(27===t),V()?1===_a.languageVariant?U(function(){var e=M();if(85===e)switch(M()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function hn(){return xn(!1)}function vn(){if(120===I()&&1===U(bn)){var e=xi();return fn(Tn(0),e)}}function bn(){if(120===I()){if(M(),xa.hasPrecedingLineBreak()||36===I())return 0;var e=Tn(0);if(!xa.hasPrecedingLineBreak()&&71===e.kind&&36===I())return 1}return 0}function xn(t){var n=ee(191);if(n.modifiers=xi(),mt(56,(e.hasModifier(n,256)?2:0)|(t?0:8),n),n.parameters&&(t||36===I()||17===I()))return n}function Sn(e){return 17===I()?xr(e?2:0):25!==I()&&89!==I()&&75!==I()&&Vr()&&!sn()?xr(16|(e?2:0)):e?S(ln):k(ln)}function kn(t){var n=G(55);if(!n)return t;var r=Z(199,t.pos);return r.condition=t,r.questionToken=n,r.whenTrue=g(Sa,ln),r.colonToken=$(56),r.whenFalse=e.nodeIsPresent(r.colonToken)?ln():re(71,!1,e.Diagnostics._0_expected,e.tokenToString(56)),ne(r)}function Tn(e){return Cn(e,Rn())}function Dn(e){return 92===e||144===e}function Cn(e,t){for(;;){L();var n=Nn();if(!(40===I()?n>=e:n>e))break;if(92===I()&&E())break;if(118===I()){if(xa.hasPrecedingLineBreak())break;M(),t=Pn(t,tn())}else t=An(t,X(),Tn(n))}return t}function En(){return(!E()||92!==I())&&Nn()>0}function Nn(){switch(I()){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 An(e,t,n){var r=Z(198,e.pos);return r.left=e,r.operatorToken=t,r.right=n,ne(r)}function Pn(e,t){var n=Z(206,e.pos);return n.expression=e,n.type=t,ne(n)}function wn(){var e=Z(196);return e.operator=I(),M(),e.operand=Bn(),ne(e)}function Fn(){var e=Z(192);return M(),e.expression=Bn(),ne(e)}function On(){var e=Z(193);return M(),e.expression=Bn(),ne(e)}function In(){var e=Z(194);return M(),e.expression=Bn(),ne(e)}function Mn(){return 121===I()&&(!!A()||U(Jr))}function Ln(){var e=Z(195);return M(),e.expression=Bn(),ne(e)}function Rn(){if(Kn()){var t=jn();return 40===I()?Cn(Nn(),t):t}var n=I(),r=Bn();if(40===I()){var i=e.skipTrivia(ma,r.pos);188===r.kind?w(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):w(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 Bn(){switch(I()){case 37:case 38:case 52:case 51:return wn();case 80:return Fn();case 103:return On();case 105:return In();case 27:return rr();case 121:if(Mn())return Ln();default:return jn()}}function Kn(){switch(I()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==_a.languageVariant)return!1;default:return!0}}function jn(){if(43===I()||44===I())return(n=Z(196)).operator=I(),M(),n.operand=zn(),ne(n);if(1===_a.languageVariant&&27===I()&&U(Se))return Vn(!0);var t=zn();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(43===I()||44===I())&&!xa.hasPrecedingLineBreak()){var n=Z(197,t.pos);return n.operand=t,n.operator=I(),M(),ne(n)}return t}function zn(){var e;return 91===I()&&U(Et)?(_a.flags|=524288,e=X()):e=97===I()?Un():Jn(),ar(e)}function Jn(){return ir(ur())}function Un(){var t=X();if(19===I()||23===I()||21===I())return t;var n=Z(183,t.pos);return n.expression=t,$(23,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=Ge(!0),ne(n)}function qn(e,t){return e.kind===t.kind&&(71===e.kind?e.escapedText===t.escapedText:99===e.kind||e.name.escapedText===t.name.escapedText&&qn(e.expression,t.expression))}function Vn(t){var n,r=Xn(t);if(255===r.kind)(i=Z(253,r.pos)).openingElement=r,i.children=Gn(i.openingElement),i.closingElement=tr(t),qn(i.openingElement.tagName,i.closingElement.tagName)||w(i.closingElement.pos,i.closingElement.end-i.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(ma,i.openingElement.tagName)),n=ne(i);else if(258===r.kind){var i=Z(257,r.pos);i.openingFragment=r,i.children=Gn(i.openingFragment),i.closingFragment=nr(t),n=ne(i)}else e.Debug.assert(254===r.kind),n=r;if(t&&27===I()){var a=q(function(){return Vn(!0)});if(a){P(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=Z(198,n.pos);return o.end=a.end,o.left=n,o.right=a,o.operatorToken=re(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return n}function Wn(){var e=Z(10);return e.containsOnlyWhiteSpaces=11===fa,fa=xa.scanJsxToken(),ne(e)}function Hn(){switch(I()){case 10:case 11:return Wn();case 17:return Yn(!1);case 27:return Vn(!1)}e.Debug.fail("Unknown JSX child kind "+I())}function Gn(t){var n=[],r=O(),i=va;for(va|=16384;;){if(fa=xa.reScanJsxToken(),28===I())break;if(1===I()){if(e.isJsxOpeningFragment(t))w(t.pos,t.end-t.pos,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var a=t.tagName;w(a.pos,a.end-a.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ma,a))}break}if(7===I())break;var o=Hn();o&&n.push(o)}return va=i,te(n,r)}function $n(){var e=Z(261);return e.properties=Ae(13,Zn),ne(e)}function Xn(e){var t=xa.getStartPos();if(W(27),29===I())return W(29),ne(Z(258,t));var n,r=Qn(),i=$n();return 29===I()?(n=Z(255,t),j()):(W(41),e?W(29):(W(29,void 0,!1),j()),n=Z(254,t)),n.tagName=r,n.attributes=i,ne(n)}function Qn(){K();for(var e=99===I()?X():se();H(23);){var t=Z(183,e.pos);t.expression=e,t.name=Ge(!0),e=ne(t)}return e}function Yn(e){var t=Z(263);return W(17),18!==I()&&(t.dotDotDotToken=G(24),t.expression=ln()),e?W(18):(W(18,void 0,!1),j()),ne(t)}function Zn(){if(17===I())return er();K();var e=Z(260);if(e.name=se(),58===I())switch(z()){case 9:e.initializer=Qe();break;default:e.initializer=Yn(!0)}return ne(e)}function er(){var e=Z(262);return W(17),W(24),e.expression=cn(),W(18),ne(e)}function tr(e){var t=Z(256);return W(28),t.tagName=Qn(),e?W(29):(W(29,void 0,!1),j()),ne(t)}function nr(t){var n=Z(259);if(W(28),e.tokenIsIdentifierOrKeyword(I())){var r=Qn();w(r.pos,r.end-r.pos,e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment)}return t?W(29):(W(29,void 0,!1),j()),ne(n)}function rr(){var e=Z(188);return W(27),e.type=tn(),W(29),e.expression=Bn(),ne(e)}function ir(e){for(;;)if(G(23)){var t=Z(183,e.pos);t.expression=e,t.name=Ge(!0),e=ne(t)}else if(51!==I()||xa.hasPrecedingLineBreak())if(N()||!H(21)){if(13!==I()&&14!==I())return e;var n=Z(187,e.pos);n.tag=e,n.template=13===I()?Qe():$e(),e=ne(n)}else{var r=Z(184,e.pos);if(r.expression=e,22!==I()&&(r.argumentExpression=h(cn),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var i=r.argumentExpression;i.text=ie(i.text)}W(22),e=ne(r)}else{M();var a=Z(207,e.pos);a.expression=e,e=ne(a)}}function ar(e){for(;;)if(e=ir(e),27!==I()){if(19!==I())return e;var t=Z(185,e.pos);t.expression=e,t.arguments=or(),e=ne(t)}else{var n=q(sr);if(!n)return e;(t=Z(185,e.pos)).expression=e,t.typeArguments=n,t.arguments=or(),e=ne(t)}}function or(){W(19);var e=Ue(11,pr);return W(20),e}function sr(){if(H(27)){var e=Ue(19,tn);if(W(29))return e&&cr()?e:void 0}}function cr(){switch(I()){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 ur(){switch(I()){case 8:case 9:case 13:return Qe();case 99:case 97:case 95:case 101:case 86:return X();case 19:return lr();case 21:return fr();case 17:return gr();case 120:if(!U(zr))break;return yr();case 75:return ki();case 89:return yr();case 94:return vr();case 41:case 63:if(12===R())return Qe();break;case 14:return $e()}return oe(e.Diagnostics.Expression_expected)}function lr(){var e=ee(189);return W(19),e.expression=h(cn),W(20),ne(e)}function _r(){var e=Z(202);return W(24),e.expression=ln(),ne(e)}function dr(){return 24===I()?_r():26===I()?Z(204):ln()}function pr(){return g(Sa,dr)}function fr(){var e=Z(181);return W(21),xa.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ue(15,dr),W(22),ne(e)}function mr(){var e=ee(0);if(G(24))return e.kind=270,e.expression=ln(),ne(e);if(e.decorators=vi(),e.modifiers=bi(),de(125))return gi(e,155);if(de(136))return gi(e,156);var t=G(39),n=V();if(e.name=le(),e.questionToken=G(55),t||19===I()||27===I())return pi(e,t);if(n&&(26===I()||18===I()||58===I())){e.kind=269;var r=G(58);r&&(e.equalsToken=r,e.objectAssignmentInitializer=h(ln))}else e.kind=268,W(56),e.initializer=h(ln);return ne(e)}function gr(){var e=Z(182);return W(17),xa.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ue(12,mr,!0),W(18),ne(e)}function yr(){var t=N();t&&f(!1);var n=ee(190);n.modifiers=bi(),W(89),n.asteriskToken=G(39);var r=n.asteriskToken?1:0,i=e.hasModifier(n,256)?2:0;return n.name=r&&i?T(hr):r?b(hr):i?S(hr):hr(),mt(56,r|i,n),n.body=xr(r|i),t&&f(!0),ne(n)}function hr(){return V()?oe():void 0}function vr(){var e=xa.getStartPos();if(W(94),H(23)){var t=Z(208,e);return t.keywordToken=94,t.name=se(),ne(t)}var n=Z(186,e);return n.expression=Jn(),n.typeArguments=q(sr),(n.typeArguments||19===I())&&(n.arguments=or()),ne(n)}function br(e,t){var n=Z(211);return W(17,t)||e?(xa.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=Ae(1,Gr),W(18)):n.statements=qe(),ne(n)}function xr(e,t){var n=C();p(!!(1&e));var r=A();m(!!(2&e));var i=N();i&&f(!1);var a=br(!!(16&e),t);return i&&f(!0),p(n),m(r),a}function Sr(){var e=Z(213);return W(25),ne(e)}function kr(){var e=Z(215);return W(90),W(19),e.expression=h(cn),W(20),e.thenStatement=Gr(),e.elseStatement=H(82)?Gr():void 0,ne(e)}function Tr(){var e=Z(216);return W(81),e.statement=Gr(),W(106),W(19),e.expression=h(cn),W(20),H(25),ne(e)}function Dr(){var e=Z(217);return W(106),W(19),e.expression=h(cn),W(20),e.statement=Gr(),ne(e)}function Cr(){var e=O();W(88);var t=G(121);W(19);var n=void 0;25!==I()&&(n=104===I()||110===I()||76===I()?ci(!0):v(cn));var r;if(t?W(144):H(144)){var i=Z(220,e);i.awaitModifier=t,i.initializer=n,i.expression=h(ln),W(20),r=i}else if(H(92)){var a=Z(219,e);a.initializer=n,a.expression=h(cn),W(20),r=a}else{var o=Z(218,e);o.initializer=n,W(25),25!==I()&&20!==I()&&(o.condition=h(cn)),W(25),20!==I()&&(o.incrementor=h(cn)),W(20),r=o}return r.statement=Gr(),ne(r)}function Er(e){var t=Z(e);return W(222===e?72:77),Q()||(t.label=oe()),Y(),ne(t)}function Nr(){var e=Z(223);return W(96),Q()||(e.expression=h(cn)),Y(),ne(e)}function Ar(){var e=Z(224);return W(107),W(19),e.expression=h(cn),W(20),e.statement=y(4194304,Gr),ne(e)}function Pr(){var e=Z(264);return W(73),e.expression=h(cn),W(56),e.statements=Ae(3,Gr),ne(e)}function wr(){var e=Z(265);return W(79),W(56),e.statements=Ae(3,Gr),ne(e)}function Fr(){return 73===I()?Pr():wr()}function Or(){var e=Z(225);W(98),W(19),e.expression=h(cn),W(20);var t=Z(239);return W(17),t.clauses=Ae(2,Fr),W(18),e.caseBlock=ne(t),ne(e)}function Ir(){var e=Z(227);return W(100),e.expression=xa.hasPrecedingLineBreak()?void 0:h(cn),Y(),ne(e)}function Mr(){var e=Z(228);return W(102),e.tryBlock=br(!1),e.catchClause=74===I()?Lr():void 0,e.catchClause&&87!==I()||(W(87),e.finallyBlock=br(!1)),ne(e)}function Lr(){var e=Z(267);return W(74),H(19)?(e.variableDeclaration=si(),W(20)):e.variableDeclaration=void 0,e.block=br(!1),ne(e)}function Rr(){var e=Z(229);return W(78),Y(),ne(e)}function Br(){var e=ee(0),t=h(cn);return 71===t.kind&&H(56)?(e.kind=226,e.label=t,e.statement=Gr()):(e.kind=214,e.expression=t,Y()),ne(e)}function Kr(){return M(),e.tokenIsIdentifierOrKeyword(I())&&!xa.hasPrecedingLineBreak()}function jr(){return M(),75===I()&&!xa.hasPrecedingLineBreak()}function zr(){return M(),89===I()&&!xa.hasPrecedingLineBreak()}function Jr(){return M(),(e.tokenIsIdentifierOrKeyword(I())||8===I()||9===I())&&!xa.hasPrecedingLineBreak()}function Ur(){for(;;)switch(I()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 139:return dn();case 129:case 130:return Yr();case 117:case 120:case 124:case 112:case 113:case 114:case 132:if(M(),xa.hasPrecedingLineBreak())return!1;continue;case 143:return M(),17===I()||71===I()||84===I();case 91:return M(),9===I()||39===I()||17===I()||e.tokenIsIdentifierOrKeyword(I());case 84:if(M(),58===I()||39===I()||17===I()||79===I()||118===I())return!0;continue;case 115:M();continue;default:return!1}}function qr(){return U(Ur)}function Vr(){switch(I()){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 qr()||U(Et);case 76:case 84:return qr();case 120:case 124:case 109:case 129:case 130:case 139:case 143:return!0;case 114:case 112:case 113:case 115:case 132:return qr()||!U(Kr);default:return on()}}function Wr(){return M(),V()||17===I()||21===I()}function Hr(){return U(Wr)}function Gr(){switch(I()){case 25:return Sr();case 17:return br(!1);case 104:return li(ee(230));case 110:if(Hr())return li(ee(230));break;case 89:return _i(ee(232));case 75:return Ti(ee(233));case 90:return kr();case 81:return Tr();case 106:return Dr();case 88:return Cr();case 77:return Er(221);case 72:return Er(222);case 96:return Nr();case 107:return Ar();case 98:return Or();case 100:return Ir();case 102:case 74:case 87:return Mr();case 78:return Rr();case 57:return Xr();case 120:case 109:case 139:case 129:case 130:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 132:case 143:if(qr())return Xr()}return Br()}function $r(e){return 124===e.kind}function Xr(){var t=ee(0);if(t.decorators=vi(),t.modifiers=bi(),e.some(t.modifiers,$r)){for(var n=0,r=t.modifiers;n=1&&(o=0,r.push(xa.getTokenText())),e=0;break;case 57:xa.setTextPos(xa.getTextPos()-1);case 1:break e;case 5:if(2===o)t(xa.getTokenText());else{var c=xa.getTokenText();void 0!==n&&e+c.length>n&&r.push(c.slice(n-e-1)),e+=c.length}break;case 39:if(0===o){o=1,e+=1;break}default:o=2,t(xa.getTokenText())}s=A()}return i(r),a(r),0===r.length?void 0:r.join("")}function l(e,t){var n=Z(284,e.pos);return n.atToken=e,n.tagName=t,ne(n)}function _(e){B?B.push(e):(B=[e],K=e.pos),j=e.end}function d(){return s(),17===I()?n():void 0}function p(){var e=H(21),t=F();return e&&(s(),G(58)&&cn(),W(22)),{name:t,isBracketed:e}}function f(t){switch(t.kind){case 135:return!0;case 166: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?Z(287,e.pos):Z(292,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,ne(u)}function g(t,n){if(t&&f(t.type)){for(var r=Z(274,xa.getTokenPos()),i=void 0,a=void 0,o=xa.getStartPos(),s=void 0;i=q(function(){return D(1,n)});)s=e.append(s,i);if(s)return a=Z(283,o),a.jsDocPropertyTags=s,166===t.type.kind&&(a.isArrayType=!0),r.type=ne(a),ne(r)}}function y(t,n){e.forEach(B,function(e){return 288===e.kind})&&w(n.pos,xa.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=Z(288,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),ne(r)}function h(t,r){e.forEach(B,function(e){return 289===e.kind})&&w(r.pos,xa.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.escapedText);var i=Z(289,t.pos);return i.atToken=t,i.tagName=r,i.typeExpression=n(!0),ne(i)}function v(e,t){var n=Z(285,e.pos);return n.atToken=e,n.tagName=t,n.class=b(),ne(n)}function b(){var e=H(17),t=Z(205);t.expression=x(),t.typeArguments=wi();var n=ne(t);return e&&W(18),n}function x(){for(var e=M(!0);H(23);){var t=Z(183,e.pos);t.expression=e,t.name=M(),e=ne(t)}return e}function S(e,t){var n=Z(286,e.pos);return n.atToken=e,n.tagName=t,ne(n)}function k(t,n){function r(e){var t=xa.getTokenPos(),n=M();if(n&&H(23)){var i=Z(237,t);return i.flags|=e,i.name=n,i.body=r(4),ne(i)}return n&&4&e&&(n.isInJSDocNamespace=!0),n}var i=d();s();var a=Z(291,t.pos);if(a.atToken=t,a.tagName=n,a.fullName=r(0),a.fullName)for(var o=a.fullName;;){if(71===o.kind||!o.body){a.name=71===o.kind?o:o.name;break}o=o.body}if(s(),a.typeExpression=i,!i||f(i.type)){for(var c=void 0,u=void 0,l=void 0,_=xa.getStartPos();c=q(function(){return D(0)});)if(u||(u=Z(283,_)),289===c.kind){if(l)break;l=c}else u.jsDocPropertyTags=e.append(u.jsDocPropertyTags,c);u&&(i&&166===i.type.kind&&(u.isArrayType=!0),a.typeExpression=l&&l.typeExpression&&!f(l.typeExpression.type)?l.typeExpression:ne(u))}return ne(a)}function T(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 D(t,n){for(var r=!0,i=!1;;)switch(A()){case 57:if(r){var a=C(t);return!(a&&287===a.kind&&(e.isIdentifier(a.name)||!T(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 C(t){e.Debug.assert(57===I());var n=Z(57);n.end=xa.getTextPos(),A();var r=M();if(s(),!r)return!1;var i;switch(r.escapedText){case"type":return 0===t&&h(n,r);case"prop":case"property":i=0;break;case"arg":case"argument":case"param":i=1;break;default:return!1}if(t!==i)return!1;var a=m(n,r,t);return a.comment=u(a.end-a.pos),a}function E(t,n){e.some(B,e.isJSDocTemplateTag)&&w(n.pos,xa.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);for(var r=[],i=O();;){var a=Z(147),o=N();if(s(),!o)return void w(xa.getStartPos(),0,e.Diagnostics.Identifier_expected);if(a.name=o,ne(a),r.push(a),26!==I())break;A(),s()}var c=Z(290,t.pos);return c.atToken=t,c.tagName=n,c.typeParameters=te(r,i),ne(c),c}function N(){var e=H(17),t=M();return e&&W(18),t}function A(){return fa=xa.scanJSDocToken()}function F(){var e=M(!0);for(H(21)&&W(22);H(23);){var t=M(!0);H(21)&&W(22),e=He(e,t)}return e}function M(t){if(void 0===t&&(t=!1),!e.tokenIsIdentifierOrKeyword(I()))return t?re(71,!0,e.Diagnostics.Identifier_expected):void P(e.Diagnostics.Identifier_expected);var n=xa.getTokenPos(),r=xa.getTextPos(),i=Z(71,n);return i.escapedText=e.escapeLeadingUnderscores(L.substring(n,r)),ne(i,r),A(),i}var L=ma;t=t||0;var R=void 0===r?L.length:t+r;r=R-t,e.Debug.assert(t>=0),e.Debug.assert(t<=R),e.Debug.assert(R<=L.length);var B,K,j,z,J=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(L,t)?(xa.scanRange(t+3,r-5,function(){function e(e){r||(r=s),J.push(e),s+=e.length}for(var n=1,r=void 0,s=t-Math.max(L.lastIndexOf("\n",t),0)+4,u=A();5===u;)u=A();4===u&&(n=0,s=0,u=A());e:for(;;){switch(u){case 57:0===n||1===n?(a(J),c(s),n=0,r=void 0,s++):e(xa.getTokenText());break;case 4:J.push(xa.getTokenText()),n=0,s=0;break;case 39:var l=xa.getTokenText();1===n||2===n?(n=2,e(l)):(n=1,s+=l.length);break;case 71:e(xa.getTokenText()),n=2;break;case 5:var _=xa.getTokenText();2===n?J.push(_):void 0!==r&&s+_.length>r&&J.push(_.slice(r-s-1)),s+=_.length;break;case 1:break e;default:n=2,e(xa.getTokenText())}u=A()}i(J),a(J),z=o()}),z):z}t.parseJSDocTypeExpressionForTests=function(e,t,r){a(e,6,void 0,1),_a=l("file.js",6,1,!1),xa.setText(e,t,r),fa=xa.scan();var i=n(),s=da;return o(),i?{jsDocTypeExpression:i,diagnostics:s}:void 0},t.parseJSDocTypeExpression=n,t.parseIsolatedJSDocComment=function(e,t,n){a(e,6,void 0,1),_a={languageVariant:0,text:e};var i=r(t,n),s=da;return o(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(e,t,n){var i=fa,a=da.length,o=ka,s=r(t,n);return s&&(s.parent=e),65536&ba&&(_a.jsDocDiagnostics||(_a.jsDocDiagnostics=[]),(c=_a.jsDocDiagnostics).push.apply(c,da)),fa=i,da.length=a,ka=o,s;var c};var i;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(i||(i={}));var s;!function(e){e[e.Property=0]="Property",e[e.Parameter=1]="Parameter"}(s||(s={})),t.parseJSDocCommentWorker=r}(Ca=t.JSDocParser||(t.JSDocParser={}))}(l||(l={}));var _;!function(t){function n(t,n,a,s,c,u){function l(t){var n="";if(u&&i(t)&&(n=s.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=a,t.end+=a,u&&i(t)&&e.Debug.assert(n===c.substring(t.pos,t.end)),r(t,l,_),e.hasJSDocNodes(t))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 o(t,n){if(n){var i=t.pos;r(t,function(t){e.Debug.assert(t.pos>=i),i=t.end}),e.Debug.assert(i<=t.end)}}function s(t,i,s,c,u,l,_,d){function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>s)n(t,!1,u,l,_,d);else{var m=t.end;if(m>=i)return t.intersectsChange=!0,t._children=void 0,a(t,i,s,c,u),r(t,p,f),void o(t,d);e.Debug.assert(ms)n(t,!0,u,l,_,d);else{var r=t.end;if(r>=i){t.intersectsChange=!0,t._children=void 0,a(t,i,s,c,u);for(var o=0,f=t;o0&&i<=1;i++){var a=u(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 u(t,n){function i(t){var n=void 0;return r(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(r(t,a),o){var c=function(e){for(;;){var t=i(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=160&&e<=177)return-3;switch(e){case 185:case 186:case 181:return 940049729;case 237:return 977327425;case 148:return 939525441;case 191:return 1003902273;case 190:case 232:return 1003935041;case 231:return 948962625;case 233:case 203:return 942011713;case 154:return 1003668801;case 153:case 155:case 156:return 1003668801;case 119:case 134:case 131:case 137:case 135:case 122:case 138:case 105:case 147:case 150:case 152:case 157:case 158:case 159:case 234:case 235:return-3;case 182:return 942740801;case 267:return 940574017;case 178:case 179:return 940049729;case 188:case 206:case 295:case 189:case 97:return 536872257;case 183:case 184:return 671089985;default:return 939525441}}function L(t,n){n.parent=t,e.forEachChild(n,function(e){return L(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 R;!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",e[e.IsInferenceContainer=256]="IsInferenceContainer"}(R||(R={}));var B=function(){function n(t,n,r,i,a){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||At,t,n,r,i,a)}function a(t,n){return!(!e.getStrictOptionValue(n,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}function c(e,t){return Yt++,new $t(e,t)}function u(t,n,r){if(t.flags|=r,n.symbol=t,t.declarations?t.declarations.push(n):t.declarations=[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&&237===i.kind)&&(t.valueDeclaration=n)}}function l(t){if(247===t.kind)return t.isExportEquals?"export=":"default";var n=e.getNameOfDeclaration(t);if(n){if(e.isAmbientModule(t)){var r=e.getTextOfIdentifierOrLiteral(n);return e.isGlobalScopeAugmentation(t)?"__global":'"'+r+'"'}if(146===n.kind){var i=n.expression;return e.isStringOrNumericLiteral(i)?e.escapeLeadingUnderscores(i.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.idText(i.name)))}return e.isPropertyNameLiteral(n)?e.getEscapedTextOfIdentifierOrLiteral(n):void 0}switch(t.kind){case 154:return"__constructor";case 162:case 157:return"__call";case 163:case 158:return"__new";case 159:return"__index";case 248:return"__export";case 198:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 232:case 233:return e.hasModifier(t,512)?"default":void 0;case 280:return e.isJSDocConstructSignature(t)?"__new":"__call";case 148:return e.Debug.assert(280===t.parent.kind),"arg"+t.parent.parameters.indexOf(t);case 291:var a=e.getNameOfJSDocTypedef(t);return void 0!==a?a.escapedText:void 0}}function _(t){return t.name?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(l(t))}function d(t,r,i,a,o,s){e.Debug.assert(!e.hasDynamicName(i));var d,p=e.hasModifier(i,512),f=p&&r?"default":l(i);if(void 0===f)d=c(0,"__missing");else if(d=t.get(f),2885600&a&&Xt.set(f,!0),d){if(s&&!d.isReplaceableByMethod)return d;if(d.flags&o)if(d.isReplaceableByMethod)t.set(f,d=c(0,f));else{i.name&&(i.name.parent=i);var m=2&d.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;(384&d.flags||384&a)&&(m=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations),d.declarations&&d.declarations.length&&(p?m=e.Diagnostics.A_module_cannot_have_multiple_default_exports:d.declarations&&d.declarations.length&&(p||247===i.kind&&!i.isExportEquals)&&(m=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(d.declarations,function(t){At.bindDiagnostics.push(n(e.getNameOfDeclaration(t)||t,m,_(t)))}),At.bindDiagnostics.push(n(e.getNameOfDeclaration(i)||i,m,_(i))),d=c(0,f)}}else t.set(f,d=c(0,f)),s&&(d.isReplaceableByMethod=!0);return u(d,i,a),d.parent=r,d}function p(t,n,r){var i=1&e.getCombinedModifierFlags(t);if(2097152&n)return 250===t.kind||241===t.kind&&i?d(Ot.symbol.exports,Ot.symbol,t,n,r):d(Ot.locals,void 0,t,n,r);291===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var a=e.isJSDocTypedefTag(t)&&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=d(Ot.locals,void 0,t,o,r);return s.exportSymbol=d(Ot.symbol.exports,Ot.symbol,t,n,r),t.localSymbol=s,s}return d(Ot.locals,void 0,t,n,r)}function f(t,n){var r=Ot,i=It;if(1&n?(Ot=It=t,32&n&&(Ot.locals=e.createSymbolTable()),he(Ot)):2&n&&((It=t).locals=void 0),4&n){var a=Bt,o=Kt,s=jt,c=zt,u=Vt,l=Wt,_=16&n&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);_||(Bt={flags:2},144&n&&(Bt.container=t)),zt=_||154===t.kind?C():void 0,Kt=void 0,jt=void 0,Vt=void 0,Wt=!1,m(t),t.flags&=-1409,!(1&Bt.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=128,Wt&&(t.flags|=256)),272===t.kind&&(t.flags|=Ht),zt&&(A(zt,Bt),Bt=I(zt),154===t.kind&&(t.returnFlowNode=Bt)),_||(Bt=a),Kt=o,jt=s,zt=c,Vt=u,Wt=l}else if(64&n)Rt=!1,m(t),t.flags=Rt?64|t.flags:-65&t.flags;else if(256&n){var d=Mt;Mt=t,t.locals=void 0,m(t),Mt=d}else m(t);Ot=r,It=i}function m(e){if(Qt)h(e);else if(536870912&e.transformFlags)Qt=!0,h(e),Qt=!1,tn|=e.transformFlags&~M(e.kind);else{var t=tn;tn=0,h(e),tn=t|s(e,tn)}}function g(t){if(void 0!==t)if(Qt)e.forEach(t,$e);else{var n=tn;tn=0;for(var r=0,i=0,a=t;i=108&&t.originalKeywordKind<=116)||e.isIdentifierName(t)||2097152&t.flags||At.parseDiagnostics.length||At.bindDiagnostics.push(n(t,Ie(t),e.declarationNameToString(t)))}function Ie(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:At.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 Me(t){Gt&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Ke(t,t.left)}function Le(e){Gt&&e.variableDeclaration&&Ke(e,e.variableDeclaration.name)}function Re(t){if(Gt&&71===t.expression.kind){var n=e.getErrorSpanForNode(At,t.expression);At.bindDiagnostics.push(e.createFileDiagnostic(At,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Be(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}function Ke(t,n){if(n&&71===n.kind){var r=n;if(Be(r)){var i=e.getErrorSpanForNode(At,n);At.bindDiagnostics.push(e.createFileDiagnostic(At,i.start,i.length,je(t),e.idText(r)))}}}function je(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:At.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function ze(e){Gt&&Ke(e,e.name)}function Je(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:At.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 Ue(t){if(wt<2&&272!==It.kind&&237!==It.kind&&!e.isFunctionLike(It)){var n=e.getErrorSpanForNode(At,t);At.bindDiagnostics.push(e.createFileDiagnostic(At,n.start,n.length,Je(t)))}}function qe(t){Gt&&32&t.numericLiteralFlags&&At.bindDiagnostics.push(n(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Ve(e){Gt&&Ke(e,e.operand)}function We(e){Gt&&(43!==e.operator&&44!==e.operator||Ke(e,e.operand))}function He(t){Gt&&Ge(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Ge(t,n,r,i,a){var o=e.getSpanOfTokenAtPosition(At,t.pos);At.bindDiagnostics.push(e.createFileDiagnostic(At,o.start,o.length,n,r,i,a))}function $e(t){if(t){t.parent=Ft;var n=Gt;if(e.isInJavaScriptFile(t)&&Xe(t),Ze(t),t.kind>144){var r=Ft;Ft=t;var i=ye(t);0===i?m(t):f(t,i),Ft=r}else Qt||0!=(536870912&t.transformFlags)||(tn|=s(t,0));Gt=n}}function Xe(t){if(e.hasJSDocNodes(t))for(var n=0,r=t.jsDoc;n1)}function k(t,n,r){function i(t,n){return function(r){return GS.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 T(e){if(33554432&e.flags)return e;var t=n(e);return RS[t]||(RS[t]={})}function D(e){var n=t(e);return BS[n]||(BS[n]={flags:0})}function C(t){return 272===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=se(i);if(a===ax||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(Jn(i.symbol),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&&151===i.parent.kind&&i.parent.initializer===i)if(e.hasModifier(i.parent,32)){if(153===n.kind)return!0}else if(151!==n.kind||e.hasModifier(n,32)||e.getContainingClass(t)!==e.getContainingClass(n))return!0})}var i=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(n);if(i!==a){if(Rb&&(i.externalModuleIndicator||a.externalModuleIndicator)||!Mb.outFile&&!Mb.out||gu(n)||2097152&t.flags)return!0;if(r(n,t))return!0;var o=s.getSourceFiles();return o.indexOf(i)<=o.indexOf(a)}if(t.pos<=n.pos){if(180===t.kind){var c=e.getAncestor(n,180);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=l?u.substr(0,l-"...".length)+"...":u}function Ze(e){return 9469291&e}function et(t,n,r,i){function a(i){var a=e.createTypePredicateNode(1===t.kind?e.createIdentifier(t.parameterName):e.createThisTypeNode(),Wb.typeToTypeNode(t.type,n,3113472|Ze(r))),o=e.createPrinter({removeComments:!0}),s=n&&e.getSourceFileOfNode(n);return o.writeNode(4,a,s,i),i}return i?a(i).getText():e.usingSingleLineStringWriter(a)}function tt(e){for(var t=[],n=0,r=0;r=0){for(var r=wS.length,i=n;i=0;n--){if(dt(wS[n],OS[n]))return-1;if(wS[n]===e&&OS[n]===t)return n}return-1}function dt(t,n){if(0===n)return T(t).type;if(2===n)return T(t).declaredType;if(1===n)return t.resolvedBaseConstructorType;if(3===n)return t.resolvedReturnType;if(4===n){var r=t.resolvedBaseConstraint;return r&&r!==Fx}e.Debug.fail("Unhandled TypeSystemPropertyName "+n)}function pt(){return wS.pop(),OS.pop(),FS.pop()}function ft(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 230:case 231:case 246:case 245:case 244:case 243:return!1;default:return!0}}))&&t.parent}function mt(t){var n=kn(Ne(t));return n.typeParameters?Bi(n,e.map(n.typeParameters,function(e){return sx})):n}function gt(e,t){var n=qr(e,t);return n?Wt(n):void 0}function yt(e){return e&&0!=(1&e.flags)}function ht(e){var t=Ee(e);return t&&T(t).type||Ct(e,!1)}function vt(t){return 146===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function bt(t,n,r){if(16384&(t=al(t,function(e){return!(12288&e.flags)})).flags)return Cx;if(131072&t.flags)return ol(t,function(e){return bt(e,n,r)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=n;o=2?Ea(sx):Hx;var o=Oa(e.map(i,function(t){return e.isOmittedExpression(t)?sx:Nt(t,n,r)}));return n&&((o=Ki(o)).pattern=t),o}function wt(e,t,n){return 178===e.kind?At(e,t,n):Pt(e,t,n)}function Ft(t,n){var r=Ct(t,!0);return r?(n&&Vc(t,r),1024&r.flags&&(e.isBindingElement(t)||!t.type)&&r.symbol!==Ee(t)&&(r=bx),zc(r)):(r=e.isParameter(t)&&t.dotDotDotToken?Hx:sx,n&&Ub&&(Ot(t)||qc(t,r)),r)}function Ot(t){var n=e.getRootDeclaration(t);return Gm(148===n.kind?n.parent:n)}function It(t){var n=e.getEffectiveTypeAnnotationNode(t);if(n)return zo(n)}function Mt(t){var n=T(t);if(!n.type){if(4194304&t.flags)return n.type=mt(t);var r=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(r))return n.type=sx;if(247===r.kind)return n.type=dm(r.expression);if(e.isInJavaScriptFile(r)&&e.isJSDocPropertyLikeTag(r)&&r.typeExpression)return n.type=zo(r.typeExpression.type);if(!lt(t,0))return lx;var i=void 0;if(198===r.kind||183===r.kind&&198===r.parent.kind)i=Et(t);else if(e.isJSDocPropertyTag(r)||e.isPropertyAccessExpression(r)||e.isIdentifier(r)||e.isMethodDeclaration(r)&&!e.isObjectLiteralMethod(r)||e.isMethodSignature(r)){if(9136&t.flags)return zt(t);i=It(r)||sx}else e.isPropertyAssignment(r)?i=It(r)||sm(r):e.isJsxAttribute(r)?i=It(r)||nd(r):e.isShorthandPropertyAssignment(r)?i=It(r)||om(r.name,0):e.isObjectLiteralMethod(r)?i=It(r)||cm(r,0):e.isParameter(r)||e.isPropertyDeclaration(r)||e.isPropertySignature(r)||e.isVariableDeclaration(r)||e.isBindingElement(r)?i=Ft(r,!0):e.Debug.fail("Unhandled declaration kind! "+e.Debug.showSyntaxKind(r));pt()||(i=Vt(t)),n.type=i}return n.type}function Lt(t){if(t){if(155===t.kind){var n=e.getEffectiveReturnTypeNode(t);return n&&zo(n)}var r=e.getEffectiveSetAccessorTypeAnnotationNode(t);return r&&zo(r)}}function Rt(e){var t=$v(e);return t&&t.symbol}function Bt(e){return fi(ci(e))}function Kt(t){var n=T(t);if(!n.type){var r=e.getDeclarationOfKind(t,155),i=e.getDeclarationOfKind(t,156);if(r&&e.isInJavaScriptFile(r)){var a=St(r);if(a)return n.type=a}if(!lt(t,0))return lx;var o=void 0,s=Lt(r);if(s)o=s;else{var c=Lt(i);c?o=c:r&&r.body?o=pf(r):(Ub&&(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=sx)}pt()||(o=sx,Ub&&p(e.getDeclarationOfKind(t,155),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 jt(e){var t=sn(fn(e));return 1081344&t.flags?t:void 0}function zt(t){var n=T(t);if(!n.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))n.type=sx;else{var r=Ie(16,t);if(32&t.flags){var i=jt(t);n.type=i?Ya([r,i]):r}else n.type=jb&&16777216&t.flags?Ac(r):r}return n.type}function Jt(e){var t=T(e);return t.type||(t.type=bn(e)),t.type}function Ut(e){var t=T(e);if(!t.type){var n=se(e);t.type=107455&n.flags?Wt(n):lx}return t.type}function qt(t){var n=T(t);if(!n.type)if(100===Fb)p(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),n.type=lx;else{if(!lt(t,0))return lx;Fb++;var r=ps(Wt(n.target),n.mapper);Fb--,pt()||(r=Vt(t)),n.type=r}return n.type}function Vt(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(p(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xe(t)),lx):(Ub&&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)),sx)}function Wt(t){return 1&e.getCheckFlags(t)?qt(t):2048&e.getCheckFlags(t)?nu(t):7&t.flags?Mt(t):9136&t.flags?zt(t):8&t.flags?Jt(t):98304&t.flags?Kt(t):2097152&t.flags?Ut(t):lx}function Ht(t,n){return void 0!==t&&void 0!==n&&0!=(4&e.getObjectFlags(t))&&t.target===n}function Gt(t){return 4&e.getObjectFlags(t)?t.target:t}function $t(t,n){function r(t){if(7&e.getObjectFlags(t)){var i=Gt(t);return i===n||e.forEach(cn(i),r)}if(262144&t.flags)return e.forEach(t.types,r)}return r(t)}function Xt(t,n){for(var r=0,i=n;r0)return!0;if(1081344&e.flags){var t=wr(e);return t&&_n(t)&&tn(t)}return!1}function rn(t){var n=t.symbol.valueDeclaration;if(e.isInJavaScriptFile(n)){var r=e.getJSDocAugmentsTag(n);if(r)return r.class}return e.getClassExtendsHeritageClauseElement(n)}function an(t,n,r){var i=e.length(n),a=e.isInJavaScriptFile(r);return e.filter(Wr(t,1),function(t){return(a||i>=oi(t.typeParameters))&&i<=e.length(t.typeParameters)})}function on(t,n,r){var i=an(t,n,r),a=e.map(n,zo);return e.sameMap(i,function(t){return e.some(t.typeParameters)?bi(t,a,e.isInJavaScriptFile(r)):t})}function sn(t){if(!t.resolvedBaseConstructorType){var n=t.symbol.valueDeclaration,r=e.getClassExtendsHeritageClauseElement(n),i=rn(t);if(!i)return t.resolvedBaseConstructorType=_x;if(!lt(t,1))return lx;var a=dm(i.expression);if(r&&i!==r&&(e.Debug.assert(!r.typeArguments),dm(r.expression)),327680&a.flags&&vr(a),!pt())return p(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Xe(t.symbol)),t.resolvedBaseConstructorType=lx;if(!(1&a.flags||a===fx||nn(a)))return p(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Ye(a)),t.resolvedBaseConstructorType=lx;t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function cn(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[Aa(Va(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&un(t),64&t.symbol.flags&&dn(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function un(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var n=jr(sn(t));if(!(327681&n.flags))return t.resolvedBaseTypes=e.emptyArray;var r,i=rn(t),a=ta(i),o=n&&n.symbol?kn(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&ln(o))r=zi(i,n.symbol,a);else if(1&n.flags)r=n;else{var s=on(n,i.typeArguments,i);if(!s.length)return p(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;r=yi(s[0])}return r===lx?t.resolvedBaseTypes=e.emptyArray:_n(r)?t===r||$t(r,t)?(p(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ye(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray):(t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[r]):(p(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Ye(r)),t.resolvedBaseTypes=e.emptyArray)}function ln(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 _n(t){return 134283265&t.flags&&!hr(t)||262144&t.flags&&!e.forEach(t.types,function(e){return!_n(e)})}function dn(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var n=0,r=t.symbol.declarations;n=_&&o<=d){var p=d?xi(l,si(a,l.typeParameters,_,i)):$n(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}function Qn(e,t,n,r,i){for(var a=0,o=e;a0)return;for(a=1;a1){var _=c.thisParameter;if(e.forEach(u,function(e){return e.thisParameter})){var d=Va(e.map(u,function(e){return e.thisParameter?Wt(e.thisParameter):sx}),2);_=Fc(c.thisParameter,d)}(l=$n(c)).thisParameter=_,l.unionSignatures=u}(i||(i=[])).push(l)}}}return i||e.emptyArray}function er(e,t){for(var n=[],r=!1,i=0,a=e;i0&&(l=e.map(l,function(e){var t=$n(e);return t.resolvedReturnType=ar(yi(e),o,c),t})),a=e.concatenate(a,l)}i=e.concatenate(i,Wr(u,0)),n=rr(n,$r(u,0)),r=rr(r,$r(u,1))}(c);Re(t,Ob,i,a,n,r)}function sr(t){var n=t.symbol;if(t.target)Re(t,i=Pn(br(t.target),t.mapper,!1),r=qo(Wr(t.target,0),t.mapper),u=qo(Wr(t.target,1),t.mapper),a=ms($r(t.target,0),t.mapper),s=ms($r(t.target,1),t.mapper));else if(2048&n.flags){var r=di((i=Jn(n)).get("__call"));Re(t,i,r,u=di(i.get("__new")),a=wi(n,0),s=wi(n,1))}else{var i=Ob,a=void 0;if(n.exports&&(i=Se(n)),Re(t,i,e.emptyArray,e.emptyArray,void 0,void 0),32&n.flags){var o=sn(c=fn(n));1409024&o.flags?wn(i=e.createSymbolTable(Le(i)),kr(o)):o===sx&&(a=Pi(sx,!1))}var s=384&n.flags?xS:void 0;if(Re(t,i,e.emptyArray,e.emptyArray,a,s),8208&n.flags&&(t.callSignatures=di(n)),32&n.flags){var c=fn(n),u=di(n.members.get("__constructor"));u.length||(u=Xn(c)),t.constructSignatures=u}}}function cr(t){for(var n=$r(t.source,0),r=fr(t.mappedType),i=!(1&r),a=4&r?0:16777216,o=n&&Pi(ru(n.type,t.mappedType),i&&n.isReadonly),s=e.createSymbolTable(),c=0,u=kr(t.source);c=2):134217728&t.flags?Cx:t}function zr(t,n){for(var r,i=131072&t.flags,a=i?24:0,o=i?0:16777216,s=4,c=0,u=0,l=t.types;u=0),r>=n.minArgumentCount}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function ri(e){var t=e.parameterName,n=zo(e.type);return 71===t.kind?ii(t&&t.escapedText,t&&ym(e.parent.parameters,t),n):ai(n)}function ii(e,t,n){return{kind:1,parameterName:e,parameterIndex:t,type:n}}function ai(e){return{kind:0,type:e}}function oi(e){var t=0;if(e)for(var n=0;n=r&&o<=a){for(t||(t=[]),s=o;sc.arguments.length&&!d.type||ei(d)||l||(a=r.length)}if(!(155!==t.kind&&156!==t.kind||Ln(t)||s&&o)){var f=155===t.kind?156:155,m=e.getDeclarationOfKind(Ee(t),f);m&&(o=Rt(m))}var g=154===t.kind?fn(Ce(t.parent.symbol)):void 0,y=g?g.localTypeParameters:Yr(t),h=li(t,u,g),v=e.hasRestParameter(t)||e.isInJavaScriptFile(t)&&ui(t,r);n.resolvedSignature=Gn(t,y,o,r,h,void 0,a,v,i)}return n.resolvedSignature}function ui(t,n){var r=e.lastOrUndefined(t.parameters),i=r&&e.getJSDocParameterTags(r),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0});if(!a&&!_i(t))return!1;var o=f(3,"args");return o.type=a?Aa(zo(a.type)):Hx,o.isRestParameter=!0,a&&n.pop(),n.push(o),!0}function li(t,n,r){if(n)return zo(t.parameters[0].type);if(r)return r;var i=e.getEffectiveReturnTypeNode(t);return i?zo(i):155!==t.kind||Ln(t)?e.nodeIsMissing(t.body)?sx:void 0:Lt(e.getDeclarationOfKind(Ee(t),156))}function _i(t){function n(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.escapedText&&e.isExpressionNode(t);case 151:case 153:case 155:case 156:return 146===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,n)}}var r=D(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=n(t.body)),r.containsArgumentsReference}function di(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(ci(i))}}return n}function pi(e){var t=pe(e,e);if(t){var n=ge(t);if(n)return Wt(n)}return sx}function fi(e){if(e.thisParameter)return Wt(e.thisParameter)}function mi(e){return void 0!==gi(e)}function gi(t){if(!t.resolvedTypePredicate){if(t.target){var n=gi(t.target);t.resolvedTypePredicate=n?rs(n,t.mapper):gS}else if(t.unionSignatures)t.resolvedTypePredicate=Wa(t.unionSignatures)||gS;else{var r=t.declaration;t.resolvedTypePredicate=r&&r.type&&160===r.type.kind?ri(r.type):gS}e.Debug.assert(!!t.resolvedTypePredicate)}return t.resolvedTypePredicate===gS?void 0:t.resolvedTypePredicate}function yi(t){if(!t.resolvedReturnType){if(!lt(t,3))return lx;var n=void 0;if(n=t.target?ps(yi(t.target),t.mapper):t.unionSignatures?Va(e.map(t.unionSignatures,yi),2):pf(t.declaration),!pt()&&(n=sx,Ub)){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 hi(e){return!e.resolvedReturnType&&_t(e,3)>=0}function vi(t){if(t.hasRestParameter){var n=Wt(e.lastOrUndefined(t.parameters));if(4&e.getObjectFlags(n)&&n.target===jx)return n.typeArguments[0]}return sx}function bi(t,n,r){n=si(n,t.typeParameters,oi(t.typeParameters),r);var i=t.instantiations||(t.instantiations=e.createMap()),a=Li(n),o=i.get(a);return o||i.set(a,o=xi(t,n)),o}function xi(e,t){return is(e,Go(e.typeParameters,t),!0)}function Si(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=ki(e)):e}function ki(e){return is(e,$o(e.typeParameters),!0)}function Ti(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=Di(e)):e}function Di(t){return bi(t,e.map(t.typeParameters,function(e){return e.target&&!Dr(e.target)?e.target:e}),e.isInJavaScriptFile(t.declaration))}function Ci(t){var n=t.typeParameters;if(n){var r=$o(n);return is(t,Go(n,e.map(n,function(e){return ps(wr(e),r)||Cx})),!0)}return t}function Ei(t){if(!t.isolatedSignatureType){var n=154===t.declaration.kind||158===t.declaration.kind,r=Ie(16);r.members=Ob,r.properties=e.emptyArray,r.callSignatures=n?e.emptyArray:[t],r.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=r}return t.isolatedSignatureType}function Ni(e){return e.members.get("__index")}function Ai(e,t){var n=1===t?134:137,r=Ni(e);if(r)for(var i=0,a=r.declarations;i1&&(t+=":"+a),r+=a}return t}function Ri(e,t){for(var n=0,r=0,i=e;ra.length)){var u=c&&285!==t.parent.kind;if(p(t,s===a.length?u?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:u?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ye(i,void 0,2),s,a.length),!c)return lx}return Bi(i,e.concatenate(i.outerTypeParameters,si(r,a,s,c)))}return Qi(t,n)?i:lx}function Ji(t,n){var r=kn(t),i=T(t),a=i.typeParameters,o=Li(n),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=ps(r,Go(a,si(n,a,oi(a),e.isInJavaScriptFile(t.valueDeclaration))))),s}function Ui(t,n,r){var i=kn(n),a=T(n).typeParameters;if(a){var o=e.length(t.typeArguments),s=oi(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),lx):Ji(n,r)}return Qi(t,n)?i:lx}function qi(t){switch(t.kind){case 161:return t.typeName;case 205:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function Vi(e,t){return e?de(e,t)||ax:ax}function Wi(e,t){var n=ta(e);if(t===ax)return lx;var r=Hi(e,t,n);if(r)return r;var i=Tn(t);if(i)return Qi(e,t)?32768&i.flags?$i(i,e):i:lx;if(!(107455&t.flags&&Xi(e)))return lx;var a=Wt(t);if(a.symbol&&!Wp(a)){var o=Hi(e,a.symbol,n);if(o)return o}return Vi(qi(e),793064),a}function Hi(t,n,r){return 96&n.flags?zi(t,n,r):524288&n.flags?Ui(t,n,r):16&n.flags&&Xi(t)&&(n.members||e.getJSDocClassTag(n.valueDeclaration))?Vp(n):void 0}function Gi(e,t){var n=Fe(4194304);return n.typeParameter=e,n.substitute=t,n}function $i(t,n){for(var r;e.isPartOfTypeNode(n);){var i=n.parent;170===i.kind&&n===i.trueType&&zo(i.checkType)===t&&(r=e.append(r,zo(i.extendsType))),n=i}return r?Gi(t,Ya(e.append(r,t))):t}function Xi(e){return 1048576&e.flags&&161===e.kind}function Qi(t,n){return!t.typeArguments||(p(t,e.Diagnostics.Type_0_is_not_generic,n?Xe(n):e.declarationNameToString(t.typeName)),!1)}function Yi(t){if(e.isIdentifier(t.typeName)){var n=t.typeArguments;switch(t.typeName.escapedText){case"String":return Qi(t),mx;case"Number":return Qi(t),gx;case"Boolean":return Qi(t),vx;case"Void":return Qi(t),xx;case"Undefined":return Qi(t),_x;case"Null":return Qi(t),px;case"Function":case"function":return Qi(t),Kx;case"Array":case"array":return n&&n.length?void 0:Hx;case"Promise":case"promise":return n&&n.length?void 0:_f(sx);case"Object":if(n&&2===n.length){if(e.isJSDocIndexSignature(t)){var r=zo(n[0]),i=Pi(zo(n[1]),!1);return Be(void 0,Ob,e.emptyArray,e.emptyArray,r===mx&&i,r===gx&&i)}return sx}return Qi(t),sx}}}function Zi(e){var t=zo(e.type);return jb?Nc(t,8192):t}function ea(e){var t=D(e);if(!t.resolvedType){var n=void 0,r=void 0,i=793064;Xi(e)&&(r=Yi(e),i|=107455),r||(r=Wi(e,n=Vi(qi(e),i))),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function ta(t){return e.map(t.typeArguments,zo)}function na(e){var t=D(e);return t.resolvedType||(t.resolvedType=zc(dm(e.exprName))),t.resolvedType}function ra(t,n){function r(e){for(var t=0,n=e.declarations;t=0}function Ra(e){for(var t=0,n=0,r=e.types;nt[a-1].id?~a:e.binarySearch(t,r,Ma,e.compareValues);o<0&&(65536&i&&16&r.objectFlags&&r.symbol&&8208&r.symbol.flags&&ja(t,r)||t.splice(~o,0,r))}return n}function Ka(e,t,n){for(var r=0,i=n;r0;)za(t[--n],t)&&e.orderedRemoveItemAt(t,n)}function qa(t,n){for(var r=t.length;r>0;){var i=t[--r];(32&i.flags&&32&n||64&i.flags&&64&n||1024&i.flags&&128&n||96&i.flags&&8388608&i.flags&&La(t,i.regularType))&&e.orderedRemoveItemAt(t,r)}}function Va(e,t,n,r){if(void 0===t&&(t=1),0===e.length)return Sx;if(1===e.length)return e[0];var i=[],a=Ka(i,0,e);if(1&a)return sx;switch(t){case 1:256&a&&qa(i,a);break;case 2:Ua(i)}return 0===i.length?4&a?16&a?px:fx:2&a?16&a?_x:dx:Sx:Ga(i,n,r)}function Wa(t){for(var n,r=[],i=0,a=t;i=t?Cx:n}}function Qo(e){return!!e.signature}function Yo(e){return e&&Qo(e)?Hc(e.signature,2|e.flags,e.compareTypes,e.inferences):e}function Zo(e,t){return function(n){return ps(e(n),t)}}function es(e,t,n){return function(r){return r===e?t:n(r)}}function ts(e){return 32768&e.flags?ux:e}function ns(e){var t=Fe(32768);return t.symbol=e.symbol,t.target=e,t}function rs(t,n){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:ps(t.type,n)}:{kind:0,type:ps(t.type,n)}}function is(t,n,r){var i;if(t.typeParameters&&!r){i=e.map(t.typeParameters,ns),n=Zo(Go(t.typeParameters,i),n);for(var a=0,o=i;an.parameters.length)return 0;t.typeParameters&&t.typeParameters!==n.typeParameters&&(t=_p(t,n=Ti(n),void 0,s));var c=n.declaration?n.declaration.kind:0,u=!r&&zb&&153!==c&&152!==c&&154!==c,l=-1,_=fi(t);if(_&&_!==xx){var d=fi(n);if(d){if(!(k=!u&&s(_,d,!1)||s(d,_,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;l&=k}}for(var p=Is(t),f=Is(n),m=Ms(t,p,n,f),g=t.parameters,y=n.parameters,h=0;h0||Ih(t))&&N(n)&&!A(t,n)){if(i){var p=Wr(t,0),m=Wr(t,1);p.length>0&&_(yi(p[0]),n,!1)||m.length>0&&_(yi(m[0]),n,!1)?s(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Ye(t),Ye(n)):s(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Ye(t),Ye(n))}return 0}var x=0,k=K,T=H;return H=!1,131072&t.flags?x=r===lk?v(t,n,i&&!(16382&t.flags)):b(t,n,i&&!(16382&t.flags)):(131072&n.flags?x=g(t,n,i&&!(16382&t.flags)&&!(16382&n.flags)):262144&n.flags?(H=!0,x=h(t,n,i)):262144&t.flags&&(x=v(t,n,!1)),!x&&(8355840&t.flags||8355840&n.flags)&&(x=S(t,n,i))&&(K=k)),H=T,!x&&i&&(65536&t.flags&&16382&n.flags?u(t,n):t.symbol&&65536&t.flags&&Bx===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)),x}function d(e,t){var n,r=e.flags&t.flags;return 65536&r?S(e,t,!1):393216&r&&(n=m(e,t))&&(n&=m(t,e))?n:524288&r?_(e.type,t.type,!1):1048576&r&&(n=_(e.objectType,t.objectType,!1))&&(n&=_(e.indexType,t.indexType,!1))?n:2097152&r&&(n=_(e.checkType,t.checkType,!1))&&(n&=_(e.extendsType,t.extendsType,!1))&&(n&=_(e.trueType,t.trueType,!1))&&(n&=_(e.falseType,t.falseType,!1))&&xo(e)===xo(t)?n:4194304&r?_(e.substitute,t.substitute,!1):0}function f(t,n,a,o){if(Of(n,65536)&&!(512&e.getObjectFlags(n))){var c=!!(4096&e.getObjectFlags(t));if((r===ck||r===uk||r===lk)&&(nl(Bx,n)||!c&&Rs(n)))return!1;if(a)return f(t,a,void 0,o);for(var u=function(r){if(!Cd(n,r.escapedName,c)){if(o)if(e.Debug.assert(!!i),e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i))s(e.Diagnostics.Property_0_does_not_exist_on_type_1,Xe(r),Ye(n));else{var a=t.symbol&&e.firstOrUndefined(t.symbol.declarations),u=void 0;if(r.valueDeclaration&&e.findAncestor(r.valueDeclaration,function(e){return e===a})){var l=r.valueDeclaration;e.Debug.assertNode(l,e.isObjectLiteralElementLike),i=l,e.isIdentifier(l.name)&&(u=qd(l.name,n))}void 0!==u?s(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Xe(r),Ye(n),u):s(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Xe(r),Ye(n))}return{value:!0}}},l=0,_=br(t);l<_.length;l++){var d=u(_[l]);if("object"==typeof d)return d.value}}return!1}function m(e,t){for(var n=-1,r=0,i=e.types;r0&&e.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(262144&t.flags)&&e.every(t.types,N)}function A(t,n){for(var r=!!(4096&e.getObjectFlags(t)),i=0,a=kr(t);i":r+="-"+o.id}return r}function $s(e,t,n){if(n===_k&&e.id>t.id){var r=e;e=t,t=r}if(Hs(e)&&Hs(t)){var i=[];return Gs(e,i)+","+Gs(t,i)}return e.id+","+t.id}function Xs(t,n){if(!(6&e.getCheckFlags(t)))return n(t);for(var r=0,i=t.containingType.types;r=5&&65536&e.flags){var r=e.symbol;if(r)for(var i=0,a=0;a=5)return!0}}return!1}function nc(e,t){return 0!==rc(e,t,xs)}function rc(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(Dy(t)!==Dy(n))return 0}else if((16777216&t.flags)!=(16777216&n.flags))return 0;return kf(t)!==kf(n)?0:r(Wt(t),Wt(n))}function ic(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 ac(t,n,r,i,a,o){if(t===n)return-1;if(!ic(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;t=Si(t),n=Si(n);var s=-1;if(!i){var c=fi(t);if(c){var u=fi(n);if(u){if(!(d=o(c,u)))return 0;s&=d}}}for(var l=n.parameters.length,_=0;_=e.parameters.length-1}function cc(e){for(var t,n=0,r=e;n1){var n=e.filter(t,lu);if(n.length){var r=zc(Va(n,2));return e.concatenate(e.filter(t,function(e){return!lu(e)}),[r])}}return t}function du(t,n){var r=t.inferences[n],i=r.inferredType;if(!i){if(r.candidates){var a=_u(r.candidates),o=t.signature,s=!r.topLevel||uu(r.typeParameter)||!r.isFixed&&Yc(yi(o),r.typeParameter)?a:e.sameMap(a,vc);16384&(i=zc(1&t.flags||4&r.priority?Va(s,2):lc(s))).flags&&r.contraCandidates&&(i=_c(r.contraCandidates))}else if(r.contraCandidates)i=_c(r.contraCandidates);else if(2&t.flags)i=kx;else{var c=Rr(r.typeParameter);i=c?ps(c,Zo(Xo(t.signature.typeParameters,n),t)):pu(!!(4&t.flags))}i=bc(i),r.inferredType=i;var u=Dr(t.signature.typeParameters[n]);if(u){var l=ps(u,t);t.compareTypes(i,qn(l,i))||(r.inferredType=i=bc(l))}}return i}function pu(e){return e?sx:Cx}function fu(e){for(var t=[],n=0;n=2||0==(34&n.flags)||267===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),i=Bl(t.parent,r),a=r,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}o&&(i&&(D(a).flags|=65536),218===r.kind&&e.getAncestor(n.valueDeclaration,231).parent===r&&jl(t,r)&&(D(n.valueDeclaration).flags|=2097152),D(n.valueDeclaration).flags|=262144),i&&(D(n.valueDeclaration).flags|=131072)}}function jl(t,n){for(var r=t;189===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(196===r.parent.kind||197===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 zl(e,t){D(e).flags|=2,151===t.kind||154===t.kind?D(t.parent).flags|=4:D(t).flags|=4}function Jl(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,Jl)}function Ul(e){var t=D(e);return void 0===t.hasSuperCall&&(t.superCall=Jl(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function ql(e){return sn(kn(Ee(e)))===fx}function Vl(t,n,r){var i=n.parent;if(e.getClassExtendsHeritageClauseElement(i)&&!ql(i)){var a=Ul(n);(!a||a.end>t.pos)&&p(t,r)}}function Wl(t){var n=e.getThisContainer(t,!0),r=!1;switch(154===n.kind&&Vl(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),191===n.kind&&(n=e.getThisContainer(n,!1),r=Lb<2),n.kind){case 237:p(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 236:p(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 154:$l(t,n)&&p(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 151:case 150:e.hasModifier(n,32)&&p(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 146:p(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}r&&zl(t,n);var i=Hl(t,n);return!i&&qb&&p(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),i||sx}function Hl(t,n){if(void 0===n&&(n=e.getThisContainer(t,!1)),e.isFunctionLike(n)&&(!a_(t)||e.getThisParameter(n))){if(190===n.kind&&198===n.parent.kind&&3===e.getSpecialPropertyAssignmentKind(n.parent)){var r=dm(n.parent.left.expression.expression).symbol;if(r&&r.members&&16&r.flags)return Dl(t,Vp(r))}var i=Bt(n)||e_(n);if(i)return Dl(t,i)}if(e.isClassLike(n.parent)){var a=Ee(n.parent);return Dl(t,o=e.hasModifier(n,32)?Wt(a):kn(a).thisType)}if(e.isInJavaScriptFile(t)){var o=Gl(n);if(o&&o!==lx)return Dl(t,o)}}function Gl(t){var n=e.getJSDocType(t);if(n&&280===n.kind){var r=n;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return zo(r.parameters[0].type)}}function $l(t,n){return!!e.findAncestor(t,function(e){return e===n?"quit":148===e.kind})}function Xl(t){var n=185===t.parent.kind&&t.parent.expression===t,r=e.getSuperContainer(t,!0),i=!1;if(!n)for(;r&&191===r.kind;)r=e.getSuperContainer(r,!0),i=Lb<2;var a=0;if(!function(t){return!(!t||(n?154!==t.kind:!e.isClassLike(t.parent)&&182!==t.parent.kind||(e.hasModifier(t,32)?153!==t.kind&&152!==t.kind&&155!==t.kind&&156!==t.kind:153!==t.kind&&152!==t.kind&&155!==t.kind&&156!==t.kind&&151!==t.kind&&150!==t.kind&&154!==t.kind)))}(r)){var o=e.findAncestor(t,function(e){return e===r?"quit":146===e.kind});return o&&146===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)||182===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),lx}if(n||154!==r.kind||Vl(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,D(t).flags|=a,153===r.kind&&e.hasModifier(r,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?D(r).flags|=4096:D(r).flags|=2048),i&&zl(t.parent,r),182===r.parent.kind)return Lb<2?(p(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),lx):sx;var s=r.parent;if(!e.getClassExtendsHeritageClauseElement(s))return p(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),lx;var c=kn(Ee(s)),u=c&&cn(c)[0];return u?154===r.kind&&$l(t,r)?(p(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),lx):512===a?sn(c):qn(u,c.thisType):lx}function Ql(e){return 153!==e.kind&&155!==e.kind&&156!==e.kind||182!==e.parent.kind?190===e.kind&&268===e.parent.kind?e.parent.parent:void 0:e.parent}function Yl(t){return 4&e.getObjectFlags(t)&&t.target===Wx?t.typeArguments[0]:void 0}function Zl(t){return ol(t,function(t){return 262144&t.flags?e.forEach(t.types,Yl):Yl(t)})}function e_(t){if(191!==t.kind){if(hs(t)){var n=K_(t);if(n){var r=n.thisParameter;if(r)return Wt(r)}}var i=e.isInJavaScriptFile(t);if(qb||i){var a=Ql(t);if(a){for(var o=S_(a),s=a,c=o;c;){var u=Zl(c);if(u)return ps(u,T_(a));if(268!==s.parent.kind)break;c=S_(s=s.parent.parent)}return o?Pc(o):nm(a)}var l=t.parent;if(198===l.kind&&58===l.operatorToken.kind){var _=l.left;if(183===_.kind||184===_.kind){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&mu(d)===p.symbol)return}return nm(d)}}}}}function t_(t){var n=t.parent;if(hs(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){if(d=n.parameters.indexOf(t),t.dotDotDotToken){for(var i=[],a=d;a0&&(s=No(s,r(),t.symbol,c,0),o=[],a=e.createSymbolTable(),g=!1,y=!1,d=0),!X_(D=dm(x.expression)))return p(x,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),lx;s=No(s,D,t.symbol,c,0),v=b+1;continue}e.Debug.assert(155===x.kind||156===x.kind),oh(x)}!k&&Ln(x)?U_(x.name)?y=!0:g=!0:a.set(S.escapedName,S),o.push(S)}if(l)for(var P=0,w=kr(u);P0&&(s=No(s,r(),t.symbol,c,0)),s):r()}function X_(t){return!!(134217729&t.flags||14560&Tc(t)&&X_(Dc(t))||65536&t.flags&&!hr(t)||393216&t.flags&&!e.forEach(t.types,function(e){return!X_(e)}))}function Q_(e,t){return Dd(e,t),Sd()||sx}function Y_(e,t){return Dd(e.openingElement,t),td(e.closingElement.tagName)?sd(e.closingElement):dm(e.closingElement.tagName),Sd()||sx}function Z_(t,n){return Dd(t.openingFragment,n),2===Mb.jsx&&Mb.jsxFactory&&p(t,e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory),Sd()||sx}function ed(t){return!e.stringContains(t,"-")}function td(t){switch(t.kind){case 183:case 99:return!1;case 71:return e.isIntrinsicJsxName(t.escapedText);default:e.Debug.fail()}}function nd(e,t){return e.initializer?om(e.initializer,t):yx}function rd(t,n){function r(){var t=Be(a.symbol,o,e.emptyArray,e.emptyArray,void 0,void 0);return t.flags|=33554432,t.objectFlags|=4224,t}for(var i,a=t.attributes,o=e.createSymbolTable(),s=Cx,c=!1,u=!1,l=_d(),_=0,d=a.properties;_0&&(s=No(s,r(),a.symbol,0,4096),o=e.createSymbolTable()),yt(y=nm(m.expression,n))&&(c=!0),X_(y)?s=No(s,y,t.symbol,0,4096):i=i?Ya([i,y]):y}c||o.size>0&&(s=No(s,r(),a.symbol,0,4096));var v=253===t.parent.kind?t.parent:void 0;if(v&&v.openingElement===t&&v.children.length>0){var b=id(v,n);if(!c&&l&&""!==l){u&&p(a,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(l));var x=f(33554436,l);x.type=1===b.length?b[0]:Aa(Va(b));var S=e.createSymbolTable();S.set(l,x),s=No(s,Be(a.symbol,S,e.emptyArray,e.emptyArray,void 0,void 0),a.symbol,0,4096)}}return c?sx:i&&s!==Cx?Ya([i,s]):i||s}function id(e,t){for(var n=[],r=0,i=e.children;r1&&p(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function ld(){return ik||(ik=!0,QS=ud(_.ElementAttributesPropertyNameContainer)),QS}function _d(){return ak||(ak=!0,YS=ud(_.ElementChildrenAttributeNameContainer)),YS}function dd(e){if(e){if(262144&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(ld()));else if(Ns(i,r,t.attributes.properties.length>0?t.attributes:t)&&!yt(i)&&!yt(r))for(var a=0,o=t.attributes.properties;an?o-n:1,u=t.length>n+o?n+o:t.length;i[0]=o;for(var l=o,_=1;_n)return;var p=r;r=i,i=p}var f=r[t.length];return f>n?void 0:f}function Gd(t,n,r){if(t&&Bb&&106500&t.flags&&t.valueDeclaration&&e.hasModifier(t.valueDeclaration,8)&&(!n||!e.isWriteOnlyAccess(n)||65536&t.flags&&!(32768&t.flags))){if(r){var i=e.findAncestor(n,e.isFunctionLikeDeclaration);if(i&&i.symbol===t)return}(1&e.getCheckFlags(t)?T(t).target:t).isReferenced=67108863}}function $d(e,t){var n=183===e.kind?e.expression:e.left;return Yd(e,n,t,zc(dm(n)))}function Xd(e,t,n){return Yd(e,e.expression,n.escapedName,t)&&(!(8192&n.flags)||Qd(n,t))}function Qd(t,n){var r=Wr(Pc(zt(t)),0);return e.Debug.assert(0!==r.length),r.some(function(e){var t=fi(e);return!t||Ts(n,t)})}function Yd(t,n,r,i){if(i===lx||yt(i))return!0;var a=qr(i,r);return a?Fd(t,n,i,a):e.isInJavaScriptFile(t)&&131072&i.flags&&i.types.some(function(e){return Yd(t,n,r,e)})}function Zd(t){var n=t.initializer;if(231===n.kind){var r=n.declarations[0];if(r&&!e.isBindingPattern(r.name))return Ee(r)}else if(71===n.kind)return mu(n)}function ep(e){return Xr(e,1)&&!Xr(e,0)}function tp(t){var n=e.skipParentheses(t);if(71===n.kind){var r=mu(n);if(3&r.flags)for(var i=t,a=t.parent;a;){if(219===a.kind&&i===a.statement&&Zd(a)===r&&ep(lm(a.expression)))return!0;i=a,a=a.parent}}return!1}function np(t){var n=Id(t.expression),r=t.argumentExpression;if(!r){var i=e.getSourceFileOfNode(t);if(186===t.parent.kind&&t.parent.expression===t)_b(i,a=e.skipTrivia(i.text,t.expression.end),(o=t.end)-a,e.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead);else{var a=t.end-"]".length,o=t.end;_b(i,a,o-a,e.Diagnostics.Expression_expected)}return lx}var s=tp(r)?gx:dm(r);return n===lx||n===kx?n:Lf(n)&&9!==r.kind?(p(r,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),lx):Jm(mo(n,s,t),t)}function rp(t,n,r){if(n===lx)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0==(1536&n.flags))return r&&p(t,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(t)),!1;var i=t.expression,a=mu(i);if(!a)return!1;var o=la(!0);return!(!o||a!==o&&(r&&p(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),1))}function ip(t){return e.isCallOrNewExpression(t)}function ap(t){return ip(t)&&e.forEach(t.typeArguments,nh),187===t.kind?dm(t.template):149!==t.kind&&e.forEach(t.arguments,function(e){dm(e)}),yS}function op(e){return ap(e),hS}function sp(t,n){var r,i,a,o,s=0,c=-1;e.Debug.assert(!n.length);for(var u=0,l=t;u=d&&o.length<=_))return!1;if(c>=0)return sc(r,c)||r.minArgumentCount<=c&&cr.parameters.length)return!1;var p=a>=r.minArgumentCount;return s||p}function lp(e){if(65536&e.flags){var t=vr(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function _p(t,n,r,i){var a=Hc(t,1,i);return Wc(n,t,function(e,t){ou(a.inferences,ps(e,r||Ib),t)}),r||ou(a.inferences,yi(n),yi(t),4),bi(t,fu(a),e.isInJavaScriptFile(n.declaration))}function dp(e,t,n){var r=af(e,0),i=tm(t.attributes,r,Ib);ou(n.inferences,i,r);var a=af(e,0),o=tm(t.attributes,a,n);return ou(n.inferences,o,a),fu(n)}function pp(t,n,r,i,a){for(var o=0,s=a.inferences;o0?[t.attributes]:e.emptyArray:t.arguments||e.emptyArray}function vp(e,t,n){if(149!==e.kind)return t.length;switch(e.parent.kind){case 233:case 203:return 1;case 151:return 2;case 153:case 155:case 156:return 0===Lb?2:n.parameters.length>=3?3:2;case 148:return 3}}function bp(t){if(233===t.kind)return Wt(n=Ee(t));if(148===t.kind&&154===(t=t.parent).kind){var n=Ee(t);return Wt(n)}return 151===t.kind||153===t.kind||155===t.kind||156===t.kind?Fh(t):(e.Debug.fail("Unsupported decorator target."),lx)}function xp(t){if(233===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),lx;if(148===t.kind&&154===(t=t.parent).kind)return sx;if(151===t.kind||153===t.kind||155===t.kind||156===t.kind){var n=t;switch(n.name.kind){case 71:return Mo(e.idText(n.name));case 8:case 9:return Mo(n.name.text);case 146:var r=H_(n.name);return If(r,1536)?r:mx;default:return e.Debug.fail("Unsupported property name."),lx}}return e.Debug.fail("Unsupported decorator target."),lx}function Sp(t){return 233===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),lx):148===t.kind?gx:151===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),lx):153===t.kind||155===t.kind||156===t.kind?Ta(Nh(t)):(e.Debug.fail("Unsupported decorator target."),lx)}function kp(t,n){return 0===n?bp(t.parent):1===n?xp(t.parent):2===n?Sp(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),lx)}function Tp(e,t){return 149===e.kind?kp(e,t):0===t&&187===e.kind?ua():void 0}function Dp(e,t,n){if(149!==e.kind&&(0!==n||187!==e.kind))return t[n]}function Cp(e,t,n){return 149===e.kind?e.expression:0===t&&187===e.kind?e.template:n}function Ep(t,n,r,i){function a(n,r,i){if(void 0===i&&(i=!1),y=void 0,h=void 0,f){if(c=n[0],!up(t,p,c,i))return;return gp(t,p,c,r,d,!1)?c:void(y=c)}for(var a=0;a0?d[d.indexOf(!0)]=!1:d=void 0}}}var o,s=187===t.kind,u=149===t.kind,l=e.isJsxOpeningLikeElement(t);s||u||l||(o=t.typeArguments,97!==t.expression.kind&&e.forEach(o,nh));var _=r||[];if(sp(n,_),!_.length)return GS.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),op(t);var d,p=hp(t),f=1===_.length&&!_[0].typeParameters,m=0;if(!u&&!f)for(var g=s?1:0;g1&&(v=a(_,sk,b)),v||(v=a(_,ck,b)),v)return v;if(y){if(l)return y;gp(t,p,y,ck,void 0,!0)}else if(h)fp(h,t.typeArguments,!0,i);else if(o&&e.every(n,function(t){return e.length(t.typeParameters)!==o.length})){for(var x=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY,k=0,T=n;k-1,P=N?x:x0);var O=Np(_,void 0===Gb?p.length:Gb),I=_[O],M=I.typeParameters;if(M&&ip(t)&&t.typeArguments){for(var L=t.typeArguments.map(Nh);L.length>M.length;)L.pop();for(;L.length=t)return i;a.parameters.length>r&&(r=a.parameters.length,n=i)}return n}function Ap(t,n){if(97===t.expression.kind){var r=Xl(t.expression);if(r!==lx){var i=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(i)return Ep(t,on(r,i.typeArguments,i),n)}return ap(t)}var a=Id(t.expression,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(a===kx)return bS;var o=jr(a);if(o===lx)return op(t);var s=Wr(o,0),c=Wr(o,1);return Pp(a,o,s.length,c.length)?(a!==lx&&t.typeArguments&&p(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),ap(t)):s.length?Ep(t,s,n):(c.length?p(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ye(a)):Op(t,o,0),op(t))}function Pp(e,t,n,r){return yt(e)||yt(t)&&32768&e.flags||!n&&!r&&!(147456&t.flags)&&Ts(e,Kx)}function wp(t,n){if(t.arguments&&Lb<1){var r=cp(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=Id(t.expression);if(i===kx)return bS;if((i=jr(i))===lx)return op(t);if(yt(i))return t.typeArguments&&p(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),ap(t);var a=Wr(i,1);if(a.length){if(!Fp(t,a[0]))return op(t);var o=i.symbol&&e.getClassLikeDeclarationOfSymbol(i.symbol);return o&&e.hasModifier(o,128)?(p(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),op(t)):Ep(t,a,n)}var s=Wr(i,0);if(s.length){var c=Ep(t,s,n);return Up(c.declaration)||yi(c)===xx||p(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),fi(c)===xx&&p(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return Op(t,i,1),op(t)}function Fp(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,i=e.getSelectedModifierFlags(r,24);if(!i)return!0;var a=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=kn(r.parent.symbol);if(!bh(t,a)){var s=e.getContainingClass(t);if(s)for(var c=cn(Nh(s));c.length;){var u=c[0];if(16&i&&u.symbol===r.parent.symbol)return!0;c=cn(u)}return 8&i&&p(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ye(o)),16&i&&p(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ye(o)),!1}return!0}function Op(t,n,r){p(t,0===r?e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature,Ye(n)),Ip(n,r)}function Ip(t,n){if(t.symbol){var r=T(t.symbol).originatingImport;if(r&&!e.isImportCall(r)){var i=Wr(Wt(T(t.symbol).target),n);if(!i||!i.length)return;p(r,e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime)}}}function Mp(e,t){var n=dm(e.tag),r=jr(n);if(r===lx)return op(e);var i=Wr(r,0),a=Wr(r,1);return Pp(n,r,i.length,a.length)?ap(e):i.length?Ep(e,i,t):(Op(e,r,0),op(e))}function Lp(t){switch(t.parent.kind){case 233:case 203:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 148:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 151:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 153:case 155:case 156:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function Rp(t,n){var r=dm(t.expression),i=jr(r);if(i===lx)return op(t);var a=Wr(i,0),o=Wr(i,1);if(Pp(r,i,a.length,o.length))return ap(t);if(Bp(t,a)){var s=e.getTextOfNode(t.expression,!1);return p(t,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,s),op(t)}var c=Lp(t);if(!a.length){var u=void 0;return u=e.chainDiagnosticMessages(u,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Ye(i)),u=e.chainDiagnosticMessages(u,c),GS.add(e.createDiagnosticForNodeFromMessageChain(t,u)),Ip(i,0),op(t)}return Ep(t,a,n,c)}function Bp(t,n){return n.length&&e.every(n,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length0)return Ep(e,s,n)}function zp(t,n){switch(t.kind){case 185:return Ap(t,n);case 186:return wp(t,n);case 187:return Mp(t,n);case 149:return Rp(t,n);case 255:case 254:return jp(t,dm(t.tagName),n)||hS}e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function Jp(e,t){var n=D(e),r=n.resolvedSignature;if(r&&r!==vS&&!t)return r;n.resolvedSignature=vS;var i=zp(e,t);return n.resolvedSignature=DS===CS?i:r,i}function Up(t){if(t&&e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?Ee(t):e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?Ee(t.initializer):void 0;return n&&void 0!==n.members}return!1}function qp(t){if(e.isDeclarationOfFunctionOrClassExpression(t)&&(t=Ee(t.valueDeclaration.initializer)),Up(t.valueDeclaration))return Vp(t);if(3&t.flags){var n=Wt(t);if(n.symbol&&!Wp(n)&&Up(n.symbol.valueDeclaration))return Vp(n.symbol)}}function Vp(t){var n=T(t);return n.inferredClassType||(n.inferredClassType=Be(t,Jn(t)||Ob,e.emptyArray,e.emptyArray,void 0,void 0)),n.inferredClassType}function Wp(t){return t.symbol&&16&e.getObjectFlags(t)&&T(t.symbol).inferredClassType===t}function Hp(t){Iv(t,t.typeArguments)||Lv(t.arguments);var n=Jp(t);if(97===t.expression.kind)return xx;if(186===t.kind){var r=n.declaration;if(r&&154!==r.kind&&158!==r.kind&&163!==r.kind&&!e.isJSDocConstructSignature(r)){var i=dm(t.expression).symbol;i||71!==t.expression.kind||(i=mu(t.expression));var a=i&&qp(i);return a||(Ub&&p(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),sx)}}if(e.isInJavaScriptFile(t)&&Qp(t))return pi(t.arguments[0]);var o=yi(n);return 1536&o.flags&&Gp(t)?Bo(e.walkUpParenthesizedExpressions(t.parent)):o}function Gp(t){if(!e.isCallExpression(t))return!1;var n=t.expression;if(e.isPropertyAccessExpression(n)&&"for"===n.name.escapedText&&(n=n.expression),!e.isIdentifier(n)||"Symbol"!==n.escapedText)return!1;var r=la(!1);return!!r&&r===P(n,"Symbol",107455,void 0,void 0,!1)}function $p(t){if(Lv(t.arguments)||Sb(t),0===t.arguments.length)return df(t,sx);for(var n=t.arguments[0],r=nm(n),i=1;i0?af(e,0):Sx}function sf(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=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};Ns(r.type,Nh(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=Ni(Ee(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));HS.push(t.id);var l=tg(u,n,r);if(HS.pop(),!l)return;return i.awaitedTypeOfType=l}var _=gt(t,"then");if(!(_&&Wr(_,0).length>0))return i.awaitedTypeOfType=t;n&&(e.Debug.assert(!!r),p(n,r))}function ng(t){var n=e.getEffectiveReturnTypeNode(t),r=zo(n);if(Lb>=2){if(r===lx)return lx;var i=da(!0);if(i!==Ax&&!Ht(r,i))return p(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),lx}else{if(ig(n),r===lx)return lx;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,Ye(r)),lx;var o=de(a,107455,!0),s=o?Wt(o):lx;if(s===lx)return 71===a.kind&&"Promise"===a.escapedText&&Gt(r)===da(!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)),lx;var c=fa(!0);if(c===Cx)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)),lx;if(!Ns(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 lx;var u=a&&Uy(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.idText(u),e.entityNameToString(a)),lx}return eg(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 rg(t){var n=yi(Jp(t));if(!(1&n.flags)){var r,i,a=Lp(t);switch(t.parent.kind){case 233:r=Va([Wt(Ee(t.parent)),xx]);break;case 148:r=xx,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 151:r=xx,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 153:case 155:case 156:r=Va([Ta(Nh(t.parent)),xx])}Ns(n,r,t,a,function(){return i})}}function ig(t){ag(t&&e.getEntityNameFromTypeNode(t))}function ag(e){if(e){var t=Uy(e),n=2097152|(71===e.kind?793064:1920),r=P(t,t.escapedText,n,void 0,void 0,!0);r&&2097152&r.flags&&Pe(r)&&!$h(se(r))&&ue(r)}}function og(t){var n=sg(t);n&&e.isEntityName(n)&&ag(n)}function sg(t){if(t)switch(t.kind){case 169:case 168:for(var n=void 0,r=0,i=t.types;r0),r.length>1&&p(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=fg(t.class.expression),a=e.getClassExtendsHeritageClauseElement(n);if(a){var o=fg(a.expression);o&&i.escapedText!==o.escapedText&&p(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else p(n,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}function fg(e){switch(e.kind){case 71:return e;case 183:return e.name;default:return}}function mg(t){ug(t),xm(t);var n=e.getFunctionFlags(t);if(t.name&&146===t.name.kind&&H_(t.name),!Ln(t)){var r=Ee(t),i=t.localSymbol||r,a=e.find(i.declarations,function(e){return e.kind===t.kind&&!(65536&e.flags)});t===a&&Xm(i),r.parent&&e.getDeclarationOfKind(r,t.kind)===t&&Xm(r)}var o=152===t.kind?void 0:t.body;nh(o);var s=e.getEffectiveReturnTypeNode(t);if(0==(1&n)){var u=s&&(2&n?ng(t):zo(s));vf(t,u)}c&&!s&&(Ub&&e.nodeIsMissing(o)&&!Gm(t)&&qc(t,sx),1&n&&e.nodeIsPresent(o)&&yi(ci(t))),gg(t)}function gg(e){pS&&pS.push(e)}function yg(){if(pS)for(var t=0,n=pS;t=e.ModuleKind.ES2015)&&(Ng(t,n,"require")||Ng(t,n,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var r=ft(t);272===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 Mg(t,n){if(!(Lb>=4)&&Ng(t,n,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var r=ft(t);272===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 Lg(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(230!==t.kind||t.initializer)){var n=Ee(t);if(1&n.flags){if(!e.isIdentifier(t.name))throw e.Debug.fail();var r=P(t,t.name.escapedText,3,void 0,void 0,!1);if(r&&r!==n&&2&r.flags&&3&Pd(r)){var i=e.getAncestor(r.valueDeclaration,231),a=212===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(211===a.kind&&e.isFunctionLike(a.parent)||238===a.kind||237===a.kind||272===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 Rg(t){function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(183===i.kind)return n(i.expression);if(71!==i.kind)return e.forEachChild(i,n);var a=P(i,i.escapedText,2204607,void 0,void 0,!1);if(a&&a!==ax&&a.valueDeclaration)if(a.valueDeclaration!==t){if(e.getEnclosingBlockScopeContainer(a.valueDeclaration)===r){if(148===a.valueDeclaration.kind||180===a.valueDeclaration.kind){if(a.valueDeclaration.pos=1&&Jg(t.declarations[0])}function Zg(e,t){return ey(Id(e),e,!0,void 0!==t)}function ey(e,t,n,r){return yt(e)?e:ty(e,t,n,r,!0)||sx}function ty(t,n,r,i,a){var o=Lb>=2,s=!o&&Mb.downlevelIteration;if(o||s||i){var c=ny(t,o?n:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(r){if(131072&u.flags){var d=t.types,f=e.filter(d,function(e){return!(524322&e.flags)});f!==d&&(u=Va(f,2))}else 524322&u.flags&&(u=Sx);if((_=u!==t)&&(Lb<1&&n&&(p(n,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),16384&u.flags))return mx}if(!pc(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,Ye(u)),_?mx:void 0;var m=Xr(u,1);return _&&m?524322&m.flags?mx:Va([m,mx],2):m}function ny(t,n,r,i,a){if(!yt(t))return ol(t,function(t){var o=t;if(r){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(Ht(t,ma(!1))||Ht(t,ya(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(Ht(t,ha(!1))||Ht(t,ba(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=r&>(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||i&>(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!yt(c)){var u=c&&Wr(c,0);if(e.some(u)){var l=ry(Va(e.map(u,yi),2),n,!!s);return a&&n&&l&&Ns(t,s?Da(l):Ea(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)}})}function ry(t,n,r){if(!yt(t)){var i=t;if(r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(Ht(t,(r?ga:va)(!1)))return r?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=gt(t,"next");if(!yt(a)){var o=a?Wr(a,0):e.emptyArray;if(0!==o.length){var s=Va(e.map(o,yi),2);if(!(yt(s)||r&&(s=Ym(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),yt(s)))){var c=s&>(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 iy(e,t){if(!yt(e))return ny(e,void 0,t,!t,!1)||ry(e,void 0,t)}function ay(e){vb(e)||Zv(e)}function oy(t){return 155===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,156))}function sy(t,n){var r=2==(3&e.getFunctionFlags(t))?Zm(n):n;return r&&Of(r,2049)}function cy(t){if(!vb(t)){var n=e.getContainingFunction(t);if(n){var r=yi(ci(n)),i=e.getFunctionFlags(n),a=1&i;if(jb||t.expression||16384&r.flags){var o=t.expression?nm(t.expression):_x;if(a)return;if(156===n.kind)t.expression&&p(t,e.Diagnostics.Setters_cannot_return_a_value);else if(154===n.kind)t.expression&&!Ns(o,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)||oy(n))if(2&i){var s=Zm(r),c=eg(o,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);s&&Ns(c,s,t)}else Ns(o,r,t)}else 154===n.kind||!Mb.noImplicitReturns||sy(n,r)||a||p(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else lb(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}function uy(t){vb(t)||16384&t.flags&&lb(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),dm(t.expression);var n=e.getSourceFileOfNode(t);if(!ub(n)){var r=e.getSpanOfTokenAtPosition(n,t.pos).start;_b(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 ly(t){vb(t);var n,r=!1,i=dm(t.expression),a=yc(i);e.forEach(t.caseBlock.clauses,function(o){if(265===o.kind&&!r)if(void 0===n)n=o;else{var s=e.getSourceFileOfNode(t),u=e.skipTrivia(s.text,o.pos);_b(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&&264===o.kind){var l=dm(o.expression),_=yc(l),d=i;_&&a||(l=_?hc(l):l,d=hc(i)),Hf(d,l)||As(l,d,o.expression,void 0)}e.forEach(o.statements,nh)}),t.caseBlock.locals&&gg(t.caseBlock)}function _y(t){vb(t)||e.findAncestor(t.parent,function(n){if(e.isFunctionLike(n))return"quit";if(226===n.kind&&n.label.escapedText===t.label.escapedText){var r=e.getSourceFileOfNode(t);return db(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(r.text,t.label)),!0}}),nh(t.statement)}function dy(t){vb(t)||void 0===t.expression&&xb(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&dm(t.expression)}function py(t){vb(t),Cg(t.tryBlock);var n=t.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)lb(n.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)lb(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)&&db(n.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}Cg(n.block)}t.finallyBlock&&Cg(t.finallyBlock)}function fy(t){function n(t,n,r,i,a,o){if(a&&!e.isKnownSymbol(t)){var s=t.valueDeclaration;if(1!==o||(s?U_(e.getNameOfDeclaration(s)):W_(t.escapedName))){var c;!s||198!==s.kind&&146!==e.getNameOfDeclaration(s).kind&&t.parent!==r.symbol?i?c=i:2&e.getObjectFlags(r)&&(c=e.forEach(cn(r),function(e){return xr(e,t.escapedName)&&Xr(e,o)})?void 0:r.symbol.declarations[0]):c=s,c&&!Ts(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),Ye(n),Ye(a))}}}var r=Ai(t.symbol,1),i=Ai(t.symbol,0),a=Xr(t,0),o=Xr(t,1);if((a||o)&&(e.forEach(br(t),function(e){var s=Wt(e);n(e,s,t,i,a,0),n(e,s,t,r,o,1)}),1&e.getObjectFlags(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(236!==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 Ky(t){for(var n=0,r=t.declarations;n1&&!i&&r(t,Mb.preserveConstEnums||Mb.isolatedModules)){var s=Ky(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.pos=e.ModuleKind.ES2015&&!(2097152&t.flags)&&db(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function $y(t){if(!Xy(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!hv(t)&&e.hasModifiers(t)&&lb(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||qy(t)))if(t.exportClause){e.forEach(t.exportClause.elements,Qy);var n=238===t.parent.kind&&e.isAmbientModule(t.parent.parent),r=!n&&238===t.parent.kind&&!t.moduleSpecifier&&2097152&t.flags;272===t.parent.kind||n||r||p(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=pe(t,t.moduleSpecifier);i&&he(i)&&p(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Xe(i)),Rb!==e.ModuleKind.System&&Rb!==e.ModuleKind.ES2015&&Rb!==e.ModuleKind.ESNext&&mv(t,32768)}}function Xy(e,t){var n=272===e.parent.kind||238===e.parent.kind||237===e.parent.kind;return n||lb(e,t),!n}function Qy(t){if(Vy(t),Mb.declaration&&ut(t.propertyName||t.name,!0),!t.parent.parent.moduleSpecifier){var n=t.propertyName||t.name,r=P(n,n.escapedText,2998271,void 0,void 0,!0);r&&(r===Hb||C(ft(r.declarations[0])))?p(n,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(n)):ce(t)}}function Yy(t){if(!Xy(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var n=272===t.parent.kind?t.parent:t.parent.parent;237!==n.kind||e.isAmbientModule(n)?(!hv(t)&&e.hasModifiers(t)&&lb(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),71===t.expression.kind?(ce(t),Mb.declaration&&ut(t.expression,!0)):nm(t.expression),eh(n),2097152&t.flags&&!e.isEntityNameExpression(t.expression)&&db(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||2097152&t.flags||(Rb>=e.ModuleKind.ES2015?db(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):Rb===e.ModuleKind.System&&db(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):t.isExportEquals?p(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):p(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}function Zy(t){return e.forEachEntry(t.exports,function(e,t){return"export="!==t})}function eh(t){var n=Ee(t),r=T(n);if(!r.exportsChecked){var i=n.exports.get("export=");if(i&&Zy(n)){var a=q(i)||i.valueDeclaration;it(a)||p(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=ke(n);o&&o.forEach(function(t,n){var r=t.declarations,i=t.flags;if("__export"!==n&&!(1984&i)){var a=e.countWhere(r,bk);if(!(524288&i&&a<=2)&&a>1)for(var o=0,s=r;o0?e.concatenate(a,i):i}return e.forEach(s.getSourceFiles(),ch),GS.getDiagnostics()}function dh(){if(!c)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function ph(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(4194304&t.flags)return[];var a=e.createSymbolTable(),o=!1;return function(){for(;t;){switch(t.locals&&!C(t)&&i(t.locals,n),t.kind){case 237:i(Ee(t).exports,2623475&n);break;case 236:i(Ee(t).exports,8&n);break;case 203:t.name&&r(t.symbol,n);case 233:case 234:o||i(Jn(Ee(t)),793064&n);break;case 190:t.name&&r(t.symbol,n)}e.introducesArgumentsExoticObject(t)&&r($b,n),o=e.hasModifier(t,32),t=t.parent}i(kS,n)}(),Zr(a)}function fh(e){return 71===e.kind&&mh(e.parent)&&e.parent.name===e}function mh(e){switch(e.kind){case 147:case 233:case 234:case 235:case 236:return!0}}function gh(e){for(var t=e;t.parent&&145===t.parent.kind;)t=t.parent;return t.parent&&161===t.parent.kind}function yh(e){for(var t=e;t.parent&&183===t.parent.kind;)t=t.parent;return t.parent&&205===t.parent.kind}function hh(t,n){for(var r;(t=e.getContainingClass(t))&&!(r=n(t)););return r}function vh(t,n){return e.findAncestor(t,function(t){return!(!e.isConstructorDeclaration(t)||!e.nodeIsPresent(t.body)||t.parent!==n)||!(t!==n&&!e.isFunctionLikeDeclaration(t))&&"quit"})}function bh(e,t){return!!hh(e,function(e){return e===t})}function xh(e){for(;145===e.parent.kind;)e=e.parent;return 241===e.parent.kind?e.parent.moduleReference===e&&e.parent:247===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function Sh(e){return void 0!==xh(e)}function kh(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return Ee(t.parent);case 4:case 2:case 5:return Ee(t.parent.parent)}}function Th(t){if(e.isDeclarationName(t))return Ee(t.parent);if(e.isInJavaScriptFile(t)&&183===t.parent.kind&&t.parent===t.parent.parent.left){var n=kh(t);if(n)return n}if(247===t.parent.kind&&e.isEntityNameExpression(t))return de(t,2998271);if(183!==t.kind&&Sh(t)){var r=e.getAncestor(t,241);return e.Debug.assert(void 0!==r),le(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),yh(t)){var i=0;205===t.parent.kind?(i=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(i|=107455)):i=1920,i|=2097152;var a=e.isEntityNameExpression(t)?de(t,i):void 0;if(a)return a}if(287===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(147===t.parent.kind&&290===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var o=e.getTypeParameterFromJsDoc(t.parent);return o&&o.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(71===t.kind){if(e.isJSXTagName(t)&&td(t)){var s=sd(t.parent);return s===ax?void 0:s}return de(t,107455,!1,!0)}if(183===t.kind||145===t.kind){var c=D(t);return c.resolvedSymbol?c.resolvedSymbol:(183===t.kind?Ld(t):Rd(t),c.resolvedSymbol)}}else{if(gh(t))return de(t,i=161===t.parent.kind?793064:1920,!1,!0);if(260===t.parent.kind)return bd(t.parent)}return 160===t.parent.kind?de(t,1):void 0}function Dh(t){if(272===t.kind)return e.isExternalModule(t)?Ce(t.symbol):void 0;if(!(4194304&t.flags)){if(i(t))return Ee(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return Ee(t.parent.parent);if(71===t.kind){if(Sh(t))return Th(t);if(180===t.parent.kind&&178===t.parent.parent.kind&&t===t.parent.propertyName){var n=Nh(t.parent.parent),r=n&&qr(n,t.escapedText);if(r)return r}}switch(t.kind){case 71:case 183:case 145:return Th(t);case 99:var a=e.getThisContainer(t,!1);if(e.isFunctionLike(a)){var o=ci(a);if(o.thisParameter)return o.thisParameter}if(e.isInExpressionContext(t))return dm(t).symbol;case 173:return jo(t).symbol;case 97:return dm(t).symbol;case 123:var s=t.parent;if(s&&154===s.kind)return s.parent.symbol;return;case 9:case 13:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(242===t.parent.kind||248===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent))return pe(t,t);case 8:var c=e.isElementAccessExpression(t.parent)?t.parent.argumentExpression===t?lm(t.parent.expression):void 0:e.isLiteralTypeNode(t.parent)&&e.isIndexedAccessTypeNode(t.parent.parent)?zo(t.parent.parent.objectType):void 0;return c&&qr(c,e.escapeLeadingUnderscores(t.text));case 79:case 89:case 36:return Ee(t.parent);default:return}}}function Ch(e){if(e&&269===e.kind)return de(e.name,2204607)}function Eh(e){return e.parent.parent.moduleSpecifier?Z(e.parent.parent,e):de(e.propertyName||e.name,2998271)}function Nh(t){if(4194304&t.flags)return lx;if(e.isPartOfTypeNode(t)){var n=zo(t);return n&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(n=qn(n,(r=Nh(e.getContainingClass(t))).thisType)),n}if(e.isExpressionNode(t))return wh(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var r=kn(Ee(e.getContainingClass(t))),a=cn(r)[0];return a&&qn(a,r.thisType)}if(mh(t))return kn(o=Ee(t));if(fh(t))return(o=Dh(t))&&kn(o);if(e.isDeclaration(t))return Wt(o=Ee(t));if(i(t))return(o=Dh(t))&&Wt(o);if(e.isBindingPattern(t))return Ct(t.parent,!0);if(Sh(t)){var o=Dh(t);if(o){var s=kn(o);return s!==lx?s:Wt(o)}}return lx}function Ah(t){if(e.Debug.assert(182===t.kind||181===t.kind),220===t.parent.kind)return qf(t,(n=Zg(t.parent.expression,t.parent.awaitModifier))||lx);if(198===t.parent.kind){var n=lm(t.parent.right);return qf(t,n||lx)}if(268===t.parent.kind)return zf(Ah(t.parent.parent)||lx,t.parent);e.Debug.assert(181===t.parent.kind);var r=Ah(t.parent),i=ey(r||lx,t.parent,!1,!1)||lx;return Uf(t.parent,r,t.parent.elements.indexOf(t),i||lx)}function Ph(e){var t=Ah(e.parent.parent);return t&&qr(t,e.escapedText)}function wh(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Io(lm(t))}function Fh(t){var n=Ee(t.parent);return e.hasModifier(t,32)?Wt(n):kn(n)}function Oh(t){t=jr(t);var n=e.createSymbolTable(kr(t));return Ih(t)&&e.forEach(kr(Kx),function(e){n.has(e.escapedName)||n.set(e.escapedName,e)}),Le(n)}function Ih(t){return e.typeHasCallOrConstructSignatures(t,Xb)}function Mh(t){var n=Lh(t);return n?e.flatMap(n,Mh):[t]}function Lh(t){if(6&e.getCheckFlags(t))return e.mapDefined(T(t).containingType.types,function(e){return qr(e,t.escapedName)});if(33554432&t.flags){var n=t,r=n.leftSpread,i=n.rightSpread,a=n.syntheticOrigin;return r?[r,i]:a?[a]:e.singleElementArray(Rh(t))}}function Rh(e){for(var t,n=e;n=T(n).target;)t=n;return t}function Bh(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier))||183===t.parent.kind&&t.parent.name===t||lv(t)!==$b)}function Kh(t){var n=pe(t.parent,t);if(!n||e.isShorthandAmbientModuleSymbol(n))return!0;var r=he(n),i=T(n=ge(n));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=r?!!(107455&n.flags):e.forEachEntry(ke(n),function(e){return(e=oe(e))&&!!(107455&e.flags)})),i.exportsSomeValue}function jh(t){var n=t.parent;return n&&e.isModuleOrEnumDeclaration(n)&&t===n.name}function zh(t,n){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=lv(t,jh(t));if(r){if(1048576&r.flags){var i=Ce(r.exportSymbol);if(!n&&944&i.flags&&!(3&i.flags))return;r=i}var a=Ne(r);if(a){if(512&a.flags&&272===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)&&Ee(t)===a})}}}}function Jh(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=lv(t);if(ae(n,107455))return q(n)}}function Uh(t){if(418&t.flags){var n=T(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)){var i=D(t.valueDeclaration);if(P(r.parent,t.escapedName,107455,void 0,void 0,!1))n.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(r,!1),s=211===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 qh(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=lv(t);if(n&&Uh(n))return n.valueDeclaration}}function Vh(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var n=Ee(t);if(n)return Uh(n)}return!1}function Wh(t){switch(t.kind){case 241:case 243:case 244:case 246:case 250:return Gh(Ee(t)||ax);case 248:var n=t.exportClause;return n&&e.forEach(n.elements,Wh);case 247:return!t.expression||71!==t.expression.kind||Gh(Ee(t)||ax)}return!1}function Hh(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||272!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&Gh(Ee(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function Gh(e){var t=se(e);return t===ax||107455&t.flags&&(Mb.preserveConstEnums||!$h(t))}function $h(e){return Rf(e)||e.constEnumOnlyModule}function Xh(t,n){if(e.isAliasSymbolDeclaration(t)){var r=Ee(t);if(r&&T(r).referenced)return!0;var i=T(r).target;if(i&&1&e.getModifierFlags(t)&&107455&i.flags)return!0}return!!n&&e.forEachChild(t,function(e){return Xh(e,n)})}function Qh(t){if(e.nodeIsPresent(t.body)){var n=di(Ee(t));return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function Yh(t){return jb&&!ni(t)&&t.initializer&&!e.hasModifier(t,92)}function Zh(t){return jb&&ni(t)&&!t.initializer&&e.hasModifier(t,92)}function ev(e){return D(e).flags}function tv(e){return Iy(e.parent),D(e).enumMemberValue}function nv(e){switch(e.kind){case 271:case 183:case 184:return!0}return!1}function rv(t){if(271===t.kind)return tv(t);var n=D(t).resolvedSymbol;return n&&8&n.flags&&e.isConstEnumDeclaration(n.valueDeclaration.parent)?tv(n.valueDeclaration):void 0}function iv(e){return 65536&e.flags&&Wr(e,0).length>0}function av(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=de(t,107455,!0,!1,n),i=de(t,793064,!0,!1,n);if(r&&r===i){var a=pa(!1);if(a&&r===a)return e.TypeReferenceSerializationKind.Promise;var o=Wt(r);if(o&&nn(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.ObjectType;var s=kn(i);return s===lx?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:If(s,30720)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:If(s,136)?e.TypeReferenceSerializationKind.BooleanType:If(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:If(s,524322)?e.TypeReferenceSerializationKind.StringLikeType:Sc(s)?e.TypeReferenceSerializationKind.ArrayLikeType:If(s,1536)?e.TypeReferenceSerializationKind.ESSymbolType:iv(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:dc(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function ov(e,t,n,r){var i=Ee(e),a=!i||133120&i.flags?lx:vc(Wt(i));1024&a.flags&&a.symbol===i&&(n|=1048576),131072&n&&(a=Ac(a)),Ye(a,t,1024|n,r)}function sv(e,t,n,r){Ye(yi(ci(e)),t,1024|n,r)}function cv(e,t,n,r){Ye(zc(wh(e)),t,1024|n,r)}function uv(t){return kS.has(e.escapeLeadingUnderscores(t))}function lv(t,n){var r=D(t).resolvedSymbol;if(r)return r;var i=t;if(n){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=ft(a))}return P(i,t.escapedText,3253183,void 0,void 0,!0)}function _v(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=lv(t);if(n)return Ae(n).valueDeclaration}}function dv(t){if(e.isConst(t)){var n=Wt(Ee(t));return!!(96&n.flags&&8388608&n.flags)}return!1}function pv(e,t){var n=Wt(Ee(e));t.writeStringLiteral(at(n))}function fv(t){var n=e.getExternalModuleName(t),r=fe(n,n,void 0);if(r)return e.getDeclarationOfKind(r,272)}function mv(t,n){if((Tb&n)!==n&&Mb.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,Mb)&&!(2097152&t.flags)){var i=yv(r,t);if(i!==ax)for(var a=n&~Tb,o=1;o<=65536;o<<=1)if(a&o){var s=gv(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)}Tb|=n}}}function gv(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";case 65536:return"__makeTemplateObject";default:e.Debug.fail("Unrecognized helper")}}function yv(t,n){return Db||(Db=me(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||ax),Db}function hv(e){return vv(e)||bv(e)}function vv(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 153!==t.kind||e.nodeIsPresent(t.body)?lb(t,e.Diagnostics.Decorators_are_not_valid_here):lb(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(155===t.kind||156===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return lb(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function bv(t){var n=xv(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 Tv(t,n){switch(t.kind){case 153:case 232:case 190:case 191:return!1}return db(n,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Dv(t){if(t&&t.hasTrailingComma){var n=t.end-",".length,r=t.end;return _b(t[0],n,r-n,e.Diagnostics.Trailing_comma_not_allowed)}}function Cv(t,n){if(t&&0===t.length){var r=t.pos-"<".length;return _b(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function Ev(t){for(var n=!1,r=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function Iv(e,t){return Dv(t)||Ov(e,t)}function Mv(t){if(t)for(var n=0,r=t;n1)return lb(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0}else{if(e.Debug.assert(108===o.token),r)return lb(o,e.Diagnostics.implements_clause_already_seen);r=!0}Rv(o)}}function jv(t){var n=!1;if(t.heritageClauses)for(var r=0,i=t.heritageClauses;r1)return a=219===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,lb(n.declarations[1],a);var i=r[0];if(i.initializer){var a=219===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 db(i.name,a)}if(i.type)return db(i,a=219===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 Hv(t){var n=t.kind;if(Lb<1)return db(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(2097152&t.flags)return db(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===t.body&&!e.hasModifier(t,128))return _b(t,t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&e.hasModifier(t,128))return db(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return db(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!Gv(t))return db(t.name,155===n?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(156===n){if(t.type)return db(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=t.parameters[0];if(r.dotDotDotToken)return db(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return db(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return db(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function Gv(e){return $v(e)||e.parameters.length===(155===e.kind?0:1)}function $v(t){if(t.parameters.length===(155===t.kind?1:2))return e.getThisParameter(t)}function Xv(t){if(141===t.operator){if(138!==t.type.kind)return db(t.type,e.Diagnostics._0_expected,e.tokenToString(138));var n=e.walkUpParenthesizedTypes(t.parent);switch(n.kind){case 230:var r=n;if(71!==r.name.kind)return db(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(r))return db(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&r.parent.flags))return db(n.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 151:if(!e.hasModifier(n,32)||!e.hasModifier(n,64))return db(n.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 150:if(!e.hasModifier(n,64))return db(n.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return db(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}}function Qv(e,t){if(Rn(e))return db(e,t)}function Yv(t){if(Nv(t))return!0;if(153===t.kind){if(182===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||120!==e.first(t.modifiers).kind))return lb(t,e.Diagnostics.Modifiers_cannot_appear_here);if(Uv(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return _b(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(Jv(t))return!0}if(e.isClassLike(t.parent)){if(2097152&t.flags)return Qv(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(153===t.kind&&!t.body)return Qv(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(234===t.parent.kind)return Qv(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(165===t.parent.kind)return Qv(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Zv(t){for(var n=t;n;){if(e.isFunctionLike(n))return db(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 226:if(t.label&&n.label.escapedText===t.label.escapedText)return!(221!==t.kind||e.isIterationStatement(n.statement,!0))&&db(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 225:if(222===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!t.label)return!1}n=n.parent}if(t.label)return db(t,r=222===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=222===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 db(t,r)}function eb(t){if(t.dotDotDotToken){var n=t.parent.elements;if(t!==e.last(n))return db(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(179===t.name.kind||178===t.name.kind)return db(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.propertyName)return db(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);if(t.initializer)return _b(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function tb(e){return 9===e.kind||8===e.kind||196===e.kind&&38===e.operator&&8===e.operand.kind}function nb(t){if(219!==t.parent.parent.kind&&220!==t.parent.parent.kind)if(2097152&t.flags){if(t.initializer){if(!e.isConst(t)||t.type)return n="=".length,_b(t,t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!tb(t.initializer))return db(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!tb(t.initializer))){var n="=".length;return _b(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 db(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return db(t,e.Diagnostics.const_declarations_must_be_initialized)}return t.exclamationToken&&(212!==t.parent.parent.kind||!t.type||t.initializer||2097152&t.flags)?db(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context):(Mb.module===e.ModuleKind.ES2015||Mb.module===e.ModuleKind.ESNext||Mb.module===e.ModuleKind.System||Mb.noEmit||2097152&t.parent.parent.flags||!e.hasModifier(t.parent.parent,1)||rb(t.name),(e.isLet(t)||e.isConst(t))&&ib(t.name))}function rb(t){if(71===t.kind){if("__esModule"===e.idText(t))return db(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 lb(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!ub(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return GS.add(e.createFileDiagnostic(o,s.start,s.length,n,r,i,a)),!0}}function _b(t,n,r,i,a,o,s){var c=e.getSourceFileOfNode(t);if(!ub(c))return GS.add(e.createFileDiagnostic(c,n,r,i,a,o,s)),!0}function db(t,n,r,i,a){if(!ub(e.getSourceFileOfNode(t)))return GS.add(e.createDiagnosticForNode(t,n,r,i,a)),!0}function pb(t){var n=e.getEffectiveTypeParameterDeclarations(t);if(n){var r=e.isNodeArray(n)?n:e.first(n),i=r.pos;return _b(t,i,r.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function fb(t){var n=e.getEffectiveReturnTypeNode(t);if(n)return db(n,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function mb(t){if(e.isClassLike(t.parent)){if(Qv(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0}else if(234===t.parent.kind){if(Qv(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return db(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(165===t.parent.kind){if(Qv(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return db(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}return 2097152&t.flags&&t.initializer?lb(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts):e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||2097152&t.flags||e.hasModifier(t,160))?db(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context):void 0}function gb(t){return 234!==t.kind&&235!==t.kind&&242!==t.kind&&241!==t.kind&&248!==t.kind&&247!==t.kind&&240!==t.kind&&!e.hasModifier(t,515)&&lb(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function yb(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,177)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,271)&&(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 db(r?t.parent:t,n,i)}}}function xb(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!ub(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return GS.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,n,r,i,a)),!0}}function Sb(t){if(Rb===e.ModuleKind.ES2015)return db(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return db(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=t.arguments;return 1!==n.length?db(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(n[0])?db(n[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):void 0}var kb,Tb,Db,Cb=e.objectAllocator.getSymbolConstructor(),Eb=e.objectAllocator.getTypeConstructor(),Nb=e.objectAllocator.getSignatureConstructor(),Ab=0,Pb=0,wb=0,Fb=0,Ob=e.createSymbolTable(),Ib=e.identity,Mb=s.getCompilerOptions(),Lb=e.getEmitScriptTarget(Mb),Rb=e.getEmitModuleKind(Mb),Bb=!!Mb.noUnusedLocals||!!Mb.noUnusedParameters,Kb=e.getAllowSyntheticDefaultImports(Mb),jb=e.getStrictOptionValue(Mb,"strictNullChecks"),zb=e.getStrictOptionValue(Mb,"strictFunctionTypes"),Jb=e.getStrictOptionValue(Mb,"strictPropertyInitialization"),Ub=e.getStrictOptionValue(Mb,"noImplicitAny"),qb=e.getStrictOptionValue(Mb,"noImplicitThis"),Vb=function(){function t(t,i){if(r&&n(t)){for(var a,o=0,s=t.declarations;o0){var c=r(i.slice(0,ji(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return s.encounteredError||524288&s.flags?e.createTupleTypeNode([]):void(s.encounteredError=!0)}if(2048&s.flags&&t.symbol.valueDeclaration&&203===t.symbol.valueDeclaration.kind)return u(t);var l=t.target.outerTypeParameters,_=0,d=void 0;if(l)for(var m=l.length;_0){var T=(t.target.typeParameters||e.emptyArray).length;k=r(i.slice(_,T),s)}return k&&((71===x.kind?x:x.right).typeArguments=void 0),e.createTypeReferenceNode(x,k)}(t);if(32768&t.flags||3&b)return x=t.symbol?_(t.symbol,s,793064,!1):e.createIdentifier("?"),e.createTypeReferenceNode(x,void 0);if(!g&&t.aliasSymbol&&(16384&s.flags||qe(t.aliasSymbol,s.enclosingDeclaration))){var x=p(t.aliasSymbol),S=r(t.aliasTypeArguments,s);return e.createTypeReferenceNode(x,S)}if(393216&t.flags){var k=r(131072&t.flags?tt(t.types):t.types,s);return k&&k.length>0?e.createUnionOrIntersectionTypeNode(131072&t.flags?168:169,k):void(s.encounteredError||262144&s.flags||(s.encounteredError=!0))}if(48&b)return e.Debug.assert(!!(65536&t.flags)),u(t);if(524288&t.flags)return D=n(t.type,s),e.createTypeOperatorNode(D);if(1048576&t.flags){var T=n(t.objectType,s),D=n(t.indexType,s);return e.createIndexedAccessTypeNode(T,D)}if(2097152&t.flags){var C=n(t.checkType,s),E=n(t.extendsType,s),N=n(t.trueType,s),A=n(t.falseType,s);return e.createConditionalTypeNode(C,E,N,A)}if(4194304&t.flags)return n(t.typeParameter,s);e.Debug.fail("Should be unreachable.")}else s.encounteredError=!0}function r(t,r){if(e.some(t)){for(var i=[],a=0,o=t;a0)),a}function u(t,n){var r;return 524384&Dy(t).flags&&(r=e.createNodeArray(e.map(Zt(t),function(e){return o(e,n)}))),r}function l(t,n,i){e.Debug.assert(t&&0<=n&&n0?e.createQualifiedName(a(t,r-1),c):c}var o=c(t,n,r);return!i||1===o.length||n.encounteredError||65536&n.flags||(n.encounteredError=!0),a(o,o.length-1)}function d(t,n,r){function i(t,r){var a=l(t,r,n),o=t[r];0===r&&(n.flags|=16777216);var s=st(o,n);0===r&&(n.flags^=16777216);var c=s.charCodeAt(0),u=e.isIdentifierStart(c,Lb);if(0===r||u){var _=e.setEmitFlags(e.createIdentifier(s,a),16777216);return _.symbol=o,r>0?e.createPropertyAccess(i(t,r-1),_):_}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var d=void 0;return e.isSingleOrDoubleQuote(c)?(d=e.createLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===c:""+ +s===s&&(d=e.createLiteral(+s)),d||((d=e.setEmitFlags(e.createIdentifier(s,a),16777216)).symbol=o),e.createElementAccess(i(t,r-1),d)}var a=c(t,n,r);return i(a,a.length-1)}return{typeToTypeNode:function(r,i,a,o){e.Debug.assert(void 0===i||0==(8&i.flags));var s=t(i,a,o),c=n(r,s);return s.encounteredError?void 0:c},indexInfoToIndexSignatureDeclaration:function(n,r,a,o,s){e.Debug.assert(void 0===a||0==(8&a.flags));var c=t(a,o,s),u=i(n,r,c);return c.encounteredError?void 0:u},signatureToSignatureDeclaration:function(n,r,i,o,s){e.Debug.assert(void 0===i||0==(8&i.flags));var c=t(i,o,s),u=a(n,r,c);return c.encounteredError?void 0:u},symbolToEntityName:function(n,r,i,a,o){e.Debug.assert(void 0===i||0==(8&i.flags));var s=t(i,a,o),c=_(n,s,r,!1);return s.encounteredError?void 0:c},symbolToExpression:function(n,r,i,a,o){e.Debug.assert(void 0===i||0==(8&i.flags));var s=t(i,a,o),c=d(n,s,r);return s.encounteredError?void 0:c},symbolToTypeParameterDeclarations:function(n,r,i,a){e.Debug.assert(void 0===r||0==(8&r.flags));var o=t(r,i,a),s=u(n,o);return o.encounteredError?void 0:s},symbolToParameterDeclaration:function(n,r,i,a){e.Debug.assert(void 0===r||0==(8&r.flags));var o=t(r,i,a),c=s(n,o);return o.encounteredError?void 0:c},typeParameterToDeclaration:function(n,r,i,a){e.Debug.assert(void 0===r||0==(8&r.flags));var s=t(r,i,a),c=o(n,s);return s.encounteredError?void 0:c}}}(),Hb=f(4,"undefined");Hb.declarations=[];var Gb,$b=f(4,"arguments"),Xb={getNodeCount:function(){return e.sum(s.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(s.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(s.getSourceFiles(),"symbolCount")+Pb},getTypeCount:function(){return Ab},isUndefinedSymbol:function(e){return e===Hb},isArgumentsSymbol:function(e){return e===$b},isUnknownSymbol:function(e){return e===ax},getMergedSymbol:Ce,getDiagnostics:lh,getGlobalDiagnostics:function(){return dh(),GS.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,n){return(n=e.getParseTreeNode(n))?Cl(t,n):lx},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:kn,getPropertiesOfType:kr,getPropertyOfType:function(t,n){return qr(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:$r,getSignaturesOfType:Wr,getIndexTypeOfType:Xr,getBaseTypes:cn,getBaseTypeOfLiteralType:hc,getWidenedType:zc,getTypeFromTypeNode:function(t){return(t=e.getParseTreeNode(t,e.isTypeNode))?zo(t):lx},getParameterType:af,getReturnTypeOfSignature:yi,getNullableType:Nc,getNonNullableType:Pc,typeToTypeNode:Wb.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Wb.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Wb.signatureToSignatureDeclaration,symbolToEntityName:Wb.symbolToEntityName,symbolToExpression:Wb.symbolToExpression,symbolToTypeParameterDeclarations:Wb.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Wb.symbolToParameterDeclaration,typeParameterToDeclaration:Wb.typeParameterToDeclaration,getSymbolsInScope:function(t,n){return(t=e.getParseTreeNode(t))?ph(t,n):[]},getSymbolAtLocation:function(t){return(t=e.getParseTreeNode(t))?Dh(t):void 0},getShorthandAssignmentValueSymbol:function(t){return(t=e.getParseTreeNode(t))?Ch(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return(t=e.getParseTreeNode(t,e.isExportSpecifier))?Eh(t):void 0},getExportSymbolOfSymbol:function(e){return Ce(e.exportSymbol||e)},getTypeAtLocation:function(t){return(t=e.getParseTreeNode(t))?Nh(t):lx},getPropertySymbolOfDestructuringAssignment:function(t){return(t=e.getParseTreeNode(t,e.isIdentifier))?Ph(t):void 0},signatureToString:function(t,n,r,i){return Qe(t,e.getParseTreeNode(n),r,i)},typeToString:function(t,n,r){return Ye(t,e.getParseTreeNode(n),r)},symbolToString:function(t,n,r,i){return Xe(t,e.getParseTreeNode(n),r,i)},typePredicateToString:function(t,n,r){return et(t,e.getParseTreeNode(n),r)},writeSignature:function(t,n,r,i,a){return Qe(t,e.getParseTreeNode(n),r,i,a)},writeType:function(t,n,r,i){return Ye(t,e.getParseTreeNode(n),r,i)},writeSymbol:function(t,n,r,i,a){return Xe(t,e.getParseTreeNode(n),r,i,a)},writeTypePredicate:function(t,n,r,i){return et(t,e.getParseTreeNode(n),r,i)},getSymbolDisplayBuilder:function(){function t(t){return{write:e.noop,writeTextOfNode:e.noop,writeLine:e.noop,increaseIndent:function(){return t.increaseIndent()},decreaseIndent:function(){return t.decreaseIndent()},getText:function(){return""},rawWrite:e.noop,writeLiteral:function(e){return t.writeStringLiteral(e)},getTextPos:function(){return 0},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},clear:function(){return t.clear()},writeKeyword:function(e){return t.writeKeyword(e)},writeOperator:function(e){return t.writeOperator(e)},writePunctuation:function(e){return t.writePunctuation(e)},writeSpace:function(e){return t.writeSpace(e)},writeStringLiteral:function(e){return t.writeStringLiteral(e)},writeParameter:function(e){return t.writeParameter(e)},writeProperty:function(e){return t.writeProperty(e)},writeSymbol:function(e,n){return t.writeSymbol(e,n)},trackSymbol:function(e,n,r){return t.trackSymbol&&t.trackSymbol(e,n,r)},reportInaccessibleThisError:function(){return t.reportInaccessibleThisError&&t.reportInaccessibleThisError()},reportPrivateInBaseOfClassExpression:function(e){return t.reportPrivateInBaseOfClassExpression&&t.reportPrivateInBaseOfClassExpression(e)},reportInaccessibleUniqueSymbolError:function(){return t.reportInaccessibleUniqueSymbolError&&t.reportInaccessibleUniqueSymbolError()}}}return{buildTypeDisplay:function(e,n,r,i){Ye(e,r,i,t(n))},buildSymbolDisplay:function(e,n,r,i,a){Xe(e,r,i,4|a,t(n))},buildSignatureDisplay:function(e,n,r,i,a){Qe(e,r,i,a,t(n))},buildIndexSignatureDisplay:function(n,r,i,a,o){var s=Wb.indexInfoToIndexSignatureDeclaration(n,i,a,3112960|Ze(o),r);e.createPrinter({removeComments:!0}).writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(a)),t(r))},buildParameterDisplay:function(n,r,i,a){var o=Wb.symbolToParameterDeclaration(n,i,3112960|Ze(a),r);e.createPrinter({removeComments:!0}).writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildTypeParameterDisplay:function(n,r,i,a){var o=Wb.typeParameterToDeclaration(n,i,3121152|Ze(a),r);e.createPrinter({removeComments:!0}).writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildTypePredicateDisplay:function(e,n,r,i){et(e,r,i,t(n))},buildTypeParameterDisplayFromSymbol:function(n,r,i,a){var o=Wb.symbolToTypeParameterDeclarations(n,i,3112960|Ze(a),r);e.createPrinter({removeComments:!0}).writeList(26896,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildDisplayForParametersAndDelimiters:function(n,r,i,a,o){var s=e.createPrinter({removeComments:!0}),c=3121152|Ze(o),u=n?[Wb.symbolToParameterDeclaration(n,a,c)]:[],l=e.createNodeArray(u.concat(e.map(r,function(e){return Wb.symbolToParameterDeclaration(e,a,c)})));s.writeList(1296,l,e.getSourceFileOfNode(e.getParseTreeNode(a)),t(i))},buildDisplayForTypeParametersAndDelimiters:function(n,r,i,a){var o=e.createPrinter({removeComments:!0}),s=e.createNodeArray(e.map(n,function(e){return Wb.typeParameterToDeclaration(e,i,Ze(a))}));o.writeList(26896,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildReturnTypeDisplay:function(n,r,i,a){r.writePunctuation(":"),r.writeSpace(" ");var o=gi(n);if(o)return et(o,i,a,t(r));var s=Wb.typeToTypeNode(yi(n),i,3112960|Ze(a),r);e.createPrinter({removeComments:!0}).writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))}}},getAugmentedPropertiesOfType:Oh,getRootSymbols:Mh,getContextualType:function(t){return(t=e.getParseTreeNode(t,e.isExpression))?k_(t):void 0},getContextualTypeForArgumentAtIndex:function(t,n){return(t=e.getParseTreeNode(t,e.isCallLikeExpression))&&c_(t,n)},getContextualTypeForJsxAttribute:function(t){return(t=e.getParseTreeNode(t,e.isJsxAttributeLike))&&x_(t)},isContextSensitive:gs,getFullyQualifiedName:_e,getResolvedSignature:function(t,n,r){t=e.getParseTreeNode(t,e.isCallLikeExpression),Gb=r;var i=t?Jp(t,n):void 0;return Gb=void 0,i},getConstantValue:function(t){return(t=e.getParseTreeNode(t,nv))?rv(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&$d(t,e.escapeLeadingUnderscores(n))},isValidPropertyAccessForCompletions:function(t,n,r){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessExpression))&&Xd(t,n,r)},getSignatureFromDeclaration:function(t){return(t=e.getParseTreeNode(t,e.isFunctionLike))?ci(t):void 0},isImplementationOfOverload:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?Qh(n):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=T(t);if(!n.immediateTarget){var r=q(t);e.Debug.assert(!!r),n.immediateTarget=ie(r,!0)}return n.immediateTarget},getAliasedSymbol:se,getEmitResolver:function(e,t){return lh(e,t),Vb},getExportsOfModule:ve,getExportsAndPropertiesOfModule:function(t){var n=ve(t),r=ge(t);return r!==t&&e.addRange(n,kr(Wt(r))),n},getSymbolWalker:e.createGetSymbolWalker(vi,gi,yi,cn,vr,Wt,mu,Gr,Ii,Uy),getAmbientModules:function(){return Lx||(Lx=[],kS.forEach(function(e,t){o.test(t)&&Lx.push(e)})),Lx},getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return(t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement))?hd(t):void 0},getJsxIntrinsicTagNames:function(){var t=od(_.IntrinsicElements);return t?kr(t):e.emptyArray},isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&ni(t)},tryGetMemberInModuleExports:function(t,n){return be(e.escapeLeadingUnderscores(t),n)},tryGetMemberInModuleExportsAndProperties:function(t,n){return xe(e.escapeLeadingUnderscores(t),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return ti(e,!1)},getApparentType:jr,getUnionType:Va,createAnonymousType:Be,createSignature:Gn,createSymbol:f,createIndexInfo:Pi,getAnyType:function(){return sx},getStringType:function(){return mx},getNumberType:function(){return gx},createPromiseType:_f,createArrayType:Aa,getBooleanType:function(){return vx},getVoidType:function(){return xx},getUndefinedType:function(){return _x},getNullType:function(){return px},getESSymbolType:function(){return bx},getNeverType:function(){return Sx},isSymbolAccessible:We,isArrayLikeType:pc,getAllPossiblePropertiesOfTypes:function(t){var n=Va(t);if(!(131072&n.flags))return Oh(n);for(var r=e.createSymbolTable(),i=0,a=t;i>",0,sx),yS=Gn(void 0,void 0,void 0,e.emptyArray,sx,void 0,0,!1,!1),hS=Gn(void 0,void 0,void 0,e.emptyArray,lx,void 0,0,!1,!1),vS=Gn(void 0,void 0,void 0,e.emptyArray,sx,void 0,0,!1,!1),bS=Gn(void 0,void 0,void 0,e.emptyArray,kx,void 0,0,!1,!1),xS=Pi(mx,!0),SS=Pi(sx,!1),kS=e.createSymbolTable(),TS=e.createMap(),DS=0,CS=0,ES=0,NS=!1,AS=Mo(""),PS=Mo(0),wS=[],FS=[],OS=[],IS=0,MS=10,LS=[],RS=[],BS=[],KS=[],jS=[],zS=[],JS=[],US=[],qS=[],VS=[],WS=[],HS=[],GS=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"}(fS||(fS={}));var $S,XS,QS,YS,ZS,ek=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),tk=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),nk=e.createMapFromTemplate({string:mx,number:gx,boolean:vx,symbol:bx,undefined:_x}),rk=Va(e.arrayFrom(ek.keys(),Mo)),ik=!1,ak=!1,ok=e.createUnderscoreEscapedMap(),sk=e.createMap(),ck=e.createMap(),uk=e.createMap(),lk=e.createMap(),_k=e.createMap(),dk=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ResolvedBaseConstraint=4]="ResolvedBaseConstraint"}(ZS||(ZS={}));var pk;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential",e[e.Contextual=3]="Contextual"}(pk||(pk={}));var fk;!function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(fk||(fk={}));var mk;!function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(mk||(mk={}));var gk;!function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(gk||(gk={}));var yk;!function(e){e[e.Any=1]="Any",e[e.Undefined=2]="Undefined",e[e.Null=4]="Null",e[e.Never=8]="Never",e[e.NonWideningType=16]="NonWideningType",e[e.String=32]="String",e[e.Number=64]="Number",e[e.ESSymbol=128]="ESSymbol",e[e.LiteralOrUniqueESSymbol=256]="LiteralOrUniqueESSymbol",e[e.ObjectType=512]="ObjectType",e[e.EmptyObject=1024]="EmptyObject",e[e.Union=2048]="Union"}(yk||(yk={}));var hk;!function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(hk||(hk={}));var vk=e.createSymbolTable();vk.set(Hb.escapedName,Hb);var bk=e.and(th,function(t){return!e.isAccessor(t)});return function(){for(var t=0,n=s.getSourceFiles();t0&&(a[c-s]=u)}s>0&&(a.length-=s)}},e.compareEmitHelpers=function(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)},e.setOriginalNode=Bt}(r||(r={})),function(e){function t(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 n(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function r(t,i){if(e.isQualifiedName(t)){var a=r(t.left,i),o=e.createIdentifier(e.idText(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccess(a,o)}return n(e.idText(t),i)}function i(t,i,a){return t?r(t,a):e.createPropertyAccess(n(i,a),"createElement")}function a(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function o(t,n,r){if(!n)return t;var i=e.updateLabel(n,n.label,226===n.statement.kind?o(t,n.statement):t);return r&&r(n),i}function s(e,t){var n=P(e);switch(n.kind){case 71:return t;case 99:case 8:case 9:return!1;case 181:return 0!==n.elements.length;case 182:return n.properties.length>0;default:return!0}}function c(t){if(e.isQualifiedName(t)){var n=c(t.left),r=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(n,r),t)}return e.getMutableClone(t)}function u(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function l(t,n,r,i){var a=e.getAllAccessorDeclarations(t,n),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(n===o){var l=[];if(s){var _=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(_,s),e.setOriginalNode(_,s);var d=e.createPropertyAssignment("get",_);l.push(d)}if(c){var p=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(p,c),e.setOriginalNode(p,c);var f=e.createPropertyAssignment("set",p);l.push(f)}l.push(e.createPropertyAssignment("enumerable",e.createTrue())),l.push(e.createPropertyAssignment("configurable",e.createTrue()));var m=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,u(n.name),e.createObjectLiteral(l,i)]),o);return e.aggregateTransformFlags(m)}}function _(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),n.initializer),n),n))}function d(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),e.getSynthesizedClone(n.name)),n),n))}function p(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n))}function f(e,t,n){return m(e,t,n,8192)}function m(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 g(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 y(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function h(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(198,26)?t:e.setTextRange(e.createParen(t),t)}function D(t){return 170===t.kind?e.createParenthesizedType(t):t}function C(t){switch(t.kind){case 168:case 169:case 162:case 163:return e.createParenthesizedType(t)}return D(t)}function E(e,t){for(;;){switch(e.kind){case 197:e=e.operand;continue;case 198:e=e.left;continue;case 199:e=e.condition;continue;case 185:if(t)return e;case 184:case 183:case 295:e=e.expression;continue}return e}}function N(e,t){switch(void 0===t&&(t=7),e.kind){case 189:return 0!=(1&t);case 188:case 206:case 207:return 0!=(2&t);case 295:return 0!=(4&t)}return!1}function A(t,n){void 0===n&&(n=7);var r;do{r=t,1&n&&(t=P(t)),2&n&&(t=w(t)),4&n&&(t=e.skipPartiallyEmittedExpressions(t))}while(r!==t);return t}function P(e){for(;189===e.kind;)e=e.expression;return e}function w(t){for(;e.isAssertionExpression(t)||207===t.kind;)t=t.expression;return t}function F(t,n){switch(t.kind){case 189:return e.updateParen(t,n);case 188:return e.updateTypeAssertion(t,t.type,n);case 206:return e.updateAsExpression(t,n,t.type);case 207:return e.updateNonNullExpression(t,n);case 295:return e.updatePartiallyEmittedExpression(t,n)}}function O(t){return 189===t.kind&&e.nodeIsSynthesized(t)&&e.nodeIsSynthesized(e.getSourceMapRange(t))&&e.nodeIsSynthesized(e.getCommentRange(t))&&!e.some(e.getSyntheticLeadingComments(t))&&!e.some(e.getSyntheticTrailingComments(t))}function I(e,t,n){return void 0===n&&(n=7),e&&N(e,n)&&!O(e)?F(e,I(e.expression,t)):t}function M(t){return e.setStartsOnNewLine(t,!0)}function L(t){var n=e.getOriginalNode(t,e.isSourceFile),r=n&&n.emitNode;return r&&r.externalHelpersModuleName}function R(t,n){var r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r&&e.createLiteral(r)}function B(t,n,r){if(t)return t.moduleName?e.createLiteral(t.moduleName):t.isDeclarationFile||!r.out&&!r.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(n,t.fileName))}function K(e,t,n,r){return B(n.getExternalModuleFileFromDeclaration(e),t,r)}function j(t){return e.isDeclarationBindingElement(t)?t.initializer:e.isPropertyAssignment(t)?e.isAssignmentExpression(t.initializer,!0)?t.initializer.right:void 0:e.isShorthandPropertyAssignment(t)?t.objectAssignmentInitializer:e.isAssignmentExpression(t,!0)?t.right:e.isSpreadElement(t)?j(t.expression):void 0}function z(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?z(t.left):e.isSpreadElement(t)?z(t.expression):t;switch(t.kind){case 268:return z(t.initializer);case 269:return t.name;case 270:return z(t.expression)}}function J(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(t.name),t),t);var n=H(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(n,t.initializer),t),t):n}return e.Debug.assertNode(t,e.isExpression),t}function U(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){var n=H(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.Debug.assertNode(t,e.isObjectLiteralElementLike),t}function q(e){switch(e.kind){case 179:case 181:return W(e);case 178:case 182:return V(e)}}function V(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,U)),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function W(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,J)),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function H(t){return e.isBindingPattern(t)?q(t):(e.Debug.assertNode(t,e.isExpression),t)}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:function(){},getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop},e.createTypeCheck=function(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))},e.createMemberAccessForPropertyName=t,e.createFunctionCall=function(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),i)},e.createFunctionApply=function(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),i)},e.createArraySlice=function(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)},e.createArrayConcat=function(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)},e.createMathPow=function(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)},e.createExpressionForJsxElement=function(t,n,r,a,o,s,c){var u=[r];if(a&&u.push(a),o&&o.length>0)if(a||u.push(e.createNull()),o.length>1)for(var l=0,_=o;l<_.length;l++){var d=_[l];M(d),u.push(d)}else u.push(o[0]);return e.setTextRange(e.createCall(i(t,n,s),void 0,u),c)},e.createExpressionForJsxFragment=function(t,r,a,o,s){var c=[e.createPropertyAccess(n(r,o),"Fragment")];if(c.push(e.createNull()),a&&a.length>0)if(a.length>1)for(var u=0,l=a;u= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=function(t,n,r){return t.requestEmitHelper(G),e.setTextRange(e.createCall(a("__values"),void 0,[n]),r)};var $={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=function(t,n,r,i){return t.requestEmitHelper($),e.setTextRange(e.createCall(a("__read"),void 0,void 0!==r?[n,e.createLiteral(r)]:[n]),i)};var X={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=function(t,n,r){return t.requestEmitHelper($),t.requestEmitHelper(X),e.setTextRange(e.createCall(a("__spread"),void 0,n),r)},e.createForOfBindingStatement=function(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)},e.insertLeadingStatement=function(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)},e.restoreEnclosingLabel=o,e.createCallBinding=function(t,n,r,i){var a,o,c=A(t,7);if(e.isSuperProperty(c))a=e.createThis(),o=c;else if(97===c.kind)a=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),c):c;else if(4096&e.getEmitFlags(c))a=e.createVoidZero(),o=k(c);else switch(c.kind){case 183:s(c.expression,i)?(a=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,c.expression),c.expression),c.name),e.setTextRange(o,c)):(a=c.expression,o=c);break;case 184:s(c.expression,i)?(a=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,c.expression),c.expression),c.argumentExpression),e.setTextRange(o,c)):(a=c.expression,o=c);break;default:a=e.createVoidZero(),o=k(t)}return{target:o,thisArg:a}},e.inlineExpressions=function(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)},e.createExpressionFromEntityName=c,e.createExpressionForPropertyName=u,e.createExpressionForObjectLiteralElementLike=function(e,t,n){switch(t.kind){case 155:case 156:return l(e.properties,t,n,e.multiLine);case 268:return _(t,n);case 269:return d(t,n);case 153:return p(t,n)}},e.getInternalName=function(e,t,n){return m(e,t,n,49152)},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.getLocalName=function(e,t,n){return m(e,t,n,16384)},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.getExportName=f,e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.getDeclarationName=function(e,t,n){return m(e,t,n)},e.getExternalModuleOrNamespaceExportName=function(t,n,r,i){return t&&e.hasModifier(n,1)?g(t,m(n),r,i):f(n,r,i)},e.getNamespaceMemberName=g,e.convertToFunctionBody=function(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)},e.convertFunctionDeclarationToExpression=function(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),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(n,!0),e.aggregateTransformFlags(n),n},e.addPrologue=function(e,t,n,r){return v(e,t,h(e,t,n),r)},e.addStandardPrologue=h,e.addCustomPrologue=v,e.startsWithUseStrict=function(t){var n=e.firstOrUndefined(t);return void 0!==n&&e.isPrologueDirective(n)&&y(n)},e.ensureUseStrict=function(t){for(var n=!1,r=0,i=t;rs-i)&&(a=s-i),(i>0||a0&&d<=144||173===d)return o;switch(d){case 71:return e.updateIdentifier(o,l(o.typeArguments,c,s));case 145:return e.updateQualifiedName(o,t(o.left,c,e.isEntityName),t(o.right,c,e.isIdentifier));case 146:return e.updateComputedPropertyName(o,t(o.expression,c,e.isExpression));case 147:return e.updateTypeParameterDeclaration(o,t(o.name,c,e.isIdentifier),t(o.constraint,c,e.isTypeNode),t(o.default,c,e.isTypeNode));case 148:return e.updateParameter(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.dotDotDotToken,_,e.isToken),t(o.name,c,e.isBindingName),t(o.questionToken,_,e.isToken),t(o.type,c,e.isTypeNode),t(o.initializer,c,e.isExpression));case 149:return e.updateDecorator(o,t(o.expression,c,e.isExpression));case 150:return e.updatePropertySignature(o,l(o.modifiers,c,e.isToken),t(o.name,c,e.isPropertyName),t(o.questionToken,_,e.isToken),t(o.type,c,e.isTypeNode),t(o.initializer,c,e.isExpression));case 151:return e.updateProperty(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.name,c,e.isPropertyName),t(o.questionToken,_,e.isToken),t(o.type,c,e.isTypeNode),t(o.initializer,c,e.isExpression));case 152:return e.updateMethodSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),t(o.type,c,e.isTypeNode),t(o.name,c,e.isPropertyName),t(o.questionToken,_,e.isToken));case 153:return e.updateMethod(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.asteriskToken,_,e.isToken),t(o.name,c,e.isPropertyName),t(o.questionToken,_,e.isToken),l(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,u,l),t(o.type,c,e.isTypeNode),a(o.body,c,u));case 154:return e.updateConstructor(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),i(o.parameters,c,u,l),a(o.body,c,u));case 155:return e.updateGetAccessor(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.name,c,e.isPropertyName),i(o.parameters,c,u,l),t(o.type,c,e.isTypeNode),a(o.body,c,u));case 156:return e.updateSetAccessor(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.name,c,e.isPropertyName),i(o.parameters,c,u,l),a(o.body,c,u));case 157:return e.updateCallSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),t(o.type,c,e.isTypeNode));case 158:return e.updateConstructSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),t(o.type,c,e.isTypeNode));case 159:return e.updateIndexSignature(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),l(o.parameters,c,e.isParameterDeclaration),t(o.type,c,e.isTypeNode));case 160:return e.updateTypePredicateNode(o,t(o.parameterName,c),t(o.type,c,e.isTypeNode));case 161:return e.updateTypeReferenceNode(o,t(o.typeName,c,e.isEntityName),l(o.typeArguments,c,e.isTypeNode));case 162:return e.updateFunctionTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),t(o.type,c,e.isTypeNode));case 163:return e.updateConstructorTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),t(o.type,c,e.isTypeNode));case 164:return e.updateTypeQueryNode(o,t(o.exprName,c,e.isEntityName));case 165:return e.updateTypeLiteralNode(o,l(o.members,c,e.isTypeElement));case 166:return e.updateArrayTypeNode(o,t(o.elementType,c,e.isTypeNode));case 167:return e.updateTypleTypeNode(o,l(o.elementTypes,c,e.isTypeNode));case 168:return e.updateUnionTypeNode(o,l(o.types,c,e.isTypeNode));case 169:return e.updateIntersectionTypeNode(o,l(o.types,c,e.isTypeNode));case 170:return e.updateConditionalTypeNode(o,t(o.checkType,c,e.isTypeNode),t(o.extendsType,c,e.isTypeNode),t(o.trueType,c,e.isTypeNode),t(o.falseType,c,e.isTypeNode));case 171:return e.updateInferTypeNode(o,t(o.typeParameter,c,e.isTypeParameterDeclaration));case 172:return e.updateParenthesizedType(o,t(o.type,c,e.isTypeNode));case 174:return e.updateTypeOperatorNode(o,t(o.type,c,e.isTypeNode));case 175:return e.updateIndexedAccessTypeNode(o,t(o.objectType,c,e.isTypeNode),t(o.indexType,c,e.isTypeNode));case 176:return e.updateMappedTypeNode(o,t(o.readonlyToken,_,e.isToken),t(o.typeParameter,c,e.isTypeParameterDeclaration),t(o.questionToken,_,e.isToken),t(o.type,c,e.isTypeNode));case 177:return e.updateLiteralTypeNode(o,t(o.literal,c,e.isExpression));case 178:return e.updateObjectBindingPattern(o,l(o.elements,c,e.isBindingElement));case 179:return e.updateArrayBindingPattern(o,l(o.elements,c,e.isArrayBindingElement));case 180:return e.updateBindingElement(o,t(o.dotDotDotToken,_,e.isToken),t(o.propertyName,c,e.isPropertyName),t(o.name,c,e.isBindingName),t(o.initializer,c,e.isExpression));case 181:return e.updateArrayLiteral(o,l(o.elements,c,e.isExpression));case 182:return e.updateObjectLiteral(o,l(o.properties,c,e.isObjectLiteralElementLike));case 183:return e.updatePropertyAccess(o,t(o.expression,c,e.isExpression),t(o.name,c,e.isIdentifier));case 184:return e.updateElementAccess(o,t(o.expression,c,e.isExpression),t(o.argumentExpression,c,e.isExpression));case 185:return e.updateCall(o,t(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 186:return e.updateNew(o,t(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 187:return e.updateTaggedTemplate(o,t(o.tag,c,e.isExpression),t(o.template,c,e.isTemplateLiteral));case 188:return e.updateTypeAssertion(o,t(o.type,c,e.isTypeNode),t(o.expression,c,e.isExpression));case 189:return e.updateParen(o,t(o.expression,c,e.isExpression));case 190:return e.updateFunctionExpression(o,l(o.modifiers,c,e.isModifier),t(o.asteriskToken,_,e.isToken),t(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,u,l),t(o.type,c,e.isTypeNode),a(o.body,c,u));case 191:return e.updateArrowFunction(o,l(o.modifiers,c,e.isModifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,u,l),t(o.type,c,e.isTypeNode),t(o.equalsGreaterThanToken,c,e.isToken),a(o.body,c,u));case 192:return e.updateDelete(o,t(o.expression,c,e.isExpression));case 193:return e.updateTypeOf(o,t(o.expression,c,e.isExpression));case 194:return e.updateVoid(o,t(o.expression,c,e.isExpression));case 195:return e.updateAwait(o,t(o.expression,c,e.isExpression));case 196:return e.updatePrefix(o,t(o.operand,c,e.isExpression));case 197:return e.updatePostfix(o,t(o.operand,c,e.isExpression));case 198:return e.updateBinary(o,t(o.left,c,e.isExpression),t(o.right,c,e.isExpression),t(o.operatorToken,c,e.isToken));case 199:return e.updateConditional(o,t(o.condition,c,e.isExpression),t(o.questionToken,c,e.isToken),t(o.whenTrue,c,e.isExpression),t(o.colonToken,c,e.isToken),t(o.whenFalse,c,e.isExpression));case 200:return e.updateTemplateExpression(o,t(o.head,c,e.isTemplateHead),l(o.templateSpans,c,e.isTemplateSpan));case 201:return e.updateYield(o,t(o.asteriskToken,_,e.isToken),t(o.expression,c,e.isExpression));case 202:return e.updateSpread(o,t(o.expression,c,e.isExpression));case 203:return e.updateClassExpression(o,l(o.modifiers,c,e.isModifier),t(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 205:return e.updateExpressionWithTypeArguments(o,l(o.typeArguments,c,e.isTypeNode),t(o.expression,c,e.isExpression));case 206:return e.updateAsExpression(o,t(o.expression,c,e.isExpression),t(o.type,c,e.isTypeNode));case 207:return e.updateNonNullExpression(o,t(o.expression,c,e.isExpression));case 208:return e.updateMetaProperty(o,t(o.name,c,e.isIdentifier));case 209:return e.updateTemplateSpan(o,t(o.expression,c,e.isExpression),t(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 211:return e.updateBlock(o,l(o.statements,c,e.isStatement));case 212:return e.updateVariableStatement(o,l(o.modifiers,c,e.isModifier),t(o.declarationList,c,e.isVariableDeclarationList));case 214:return e.updateStatement(o,t(o.expression,c,e.isExpression));case 215:return e.updateIf(o,t(o.expression,c,e.isExpression),t(o.thenStatement,c,e.isStatement,e.liftToBlock),t(o.elseStatement,c,e.isStatement,e.liftToBlock));case 216:return e.updateDo(o,t(o.statement,c,e.isStatement,e.liftToBlock),t(o.expression,c,e.isExpression));case 217:return e.updateWhile(o,t(o.expression,c,e.isExpression),t(o.statement,c,e.isStatement,e.liftToBlock));case 218:return e.updateFor(o,t(o.initializer,c,e.isForInitializer),t(o.condition,c,e.isExpression),t(o.incrementor,c,e.isExpression),t(o.statement,c,e.isStatement,e.liftToBlock));case 219:return e.updateForIn(o,t(o.initializer,c,e.isForInitializer),t(o.expression,c,e.isExpression),t(o.statement,c,e.isStatement,e.liftToBlock));case 220:return e.updateForOf(o,t(o.awaitModifier,c,e.isToken),t(o.initializer,c,e.isForInitializer),t(o.expression,c,e.isExpression),t(o.statement,c,e.isStatement,e.liftToBlock));case 221:return e.updateContinue(o,t(o.label,c,e.isIdentifier));case 222:return e.updateBreak(o,t(o.label,c,e.isIdentifier));case 223:return e.updateReturn(o,t(o.expression,c,e.isExpression));case 224:return e.updateWith(o,t(o.expression,c,e.isExpression),t(o.statement,c,e.isStatement,e.liftToBlock));case 225:return e.updateSwitch(o,t(o.expression,c,e.isExpression),t(o.caseBlock,c,e.isCaseBlock));case 226:return e.updateLabel(o,t(o.label,c,e.isIdentifier),t(o.statement,c,e.isStatement,e.liftToBlock));case 227:return e.updateThrow(o,t(o.expression,c,e.isExpression));case 228:return e.updateTry(o,t(o.tryBlock,c,e.isBlock),t(o.catchClause,c,e.isCatchClause),t(o.finallyBlock,c,e.isBlock));case 230:return e.updateVariableDeclaration(o,t(o.name,c,e.isBindingName),t(o.type,c,e.isTypeNode),t(o.initializer,c,e.isExpression));case 231:return e.updateVariableDeclarationList(o,l(o.declarations,c,e.isVariableDeclaration));case 232:return e.updateFunctionDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.asteriskToken,_,e.isToken),t(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,u,l),t(o.type,c,e.isTypeNode),a(o.body,c,u));case 233:return e.updateClassDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isClassElement));case 234:return e.updateInterfaceDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.heritageClauses,c,e.isHeritageClause),l(o.members,c,e.isTypeElement));case 235:return e.updateTypeAliasDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.name,c,e.isIdentifier),l(o.typeParameters,c,e.isTypeParameterDeclaration),t(o.type,c,e.isTypeNode));case 236:return e.updateEnumDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.name,c,e.isIdentifier),l(o.members,c,e.isEnumMember));case 237:return e.updateModuleDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.name,c,e.isIdentifier),t(o.body,c,e.isModuleBody));case 238:return e.updateModuleBlock(o,l(o.statements,c,e.isStatement));case 239:return e.updateCaseBlock(o,l(o.clauses,c,e.isCaseOrDefaultClause));case 240:return e.updateNamespaceExportDeclaration(o,t(o.name,c,e.isIdentifier));case 241:return e.updateImportEqualsDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.name,c,e.isIdentifier),t(o.moduleReference,c,e.isModuleReference));case 242:return e.updateImportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.importClause,c,e.isImportClause),t(o.moduleSpecifier,c,e.isExpression));case 243:return e.updateImportClause(o,t(o.name,c,e.isIdentifier),t(o.namedBindings,c,e.isNamedImportBindings));case 244:return e.updateNamespaceImport(o,t(o.name,c,e.isIdentifier));case 245:return e.updateNamedImports(o,l(o.elements,c,e.isImportSpecifier));case 246:return e.updateImportSpecifier(o,t(o.propertyName,c,e.isIdentifier),t(o.name,c,e.isIdentifier));case 247:return e.updateExportAssignment(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.expression,c,e.isExpression));case 248:return e.updateExportDeclaration(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),t(o.exportClause,c,e.isNamedExports),t(o.moduleSpecifier,c,e.isExpression));case 249:return e.updateNamedExports(o,l(o.elements,c,e.isExportSpecifier));case 250:return e.updateExportSpecifier(o,t(o.propertyName,c,e.isIdentifier),t(o.name,c,e.isIdentifier));case 252:return e.updateExternalModuleReference(o,t(o.expression,c,e.isExpression));case 253:return e.updateJsxElement(o,t(o.openingElement,c,e.isJsxOpeningElement),l(o.children,c,e.isJsxChild),t(o.closingElement,c,e.isJsxClosingElement));case 254:return e.updateJsxSelfClosingElement(o,t(o.tagName,c,e.isJsxTagNameExpression),t(o.attributes,c,e.isJsxAttributes));case 255:return e.updateJsxOpeningElement(o,t(o.tagName,c,e.isJsxTagNameExpression),t(o.attributes,c,e.isJsxAttributes));case 256:return e.updateJsxClosingElement(o,t(o.tagName,c,e.isJsxTagNameExpression));case 257:return e.updateJsxFragment(o,t(o.openingFragment,c,e.isJsxOpeningFragment),l(o.children,c,e.isJsxChild),t(o.closingFragment,c,e.isJsxClosingFragment));case 260:return e.updateJsxAttribute(o,t(o.name,c,e.isIdentifier),t(o.initializer,c,e.isStringLiteralOrJsxExpression));case 261:return e.updateJsxAttributes(o,l(o.properties,c,e.isJsxAttributeLike));case 262:return e.updateJsxSpreadAttribute(o,t(o.expression,c,e.isExpression));case 263:return e.updateJsxExpression(o,t(o.expression,c,e.isExpression));case 264:return e.updateCaseClause(o,t(o.expression,c,e.isExpression),l(o.statements,c,e.isStatement));case 265:return e.updateDefaultClause(o,l(o.statements,c,e.isStatement));case 266:return e.updateHeritageClause(o,l(o.types,c,e.isExpressionWithTypeArguments));case 267:return e.updateCatchClause(o,t(o.variableDeclaration,c,e.isVariableDeclaration),t(o.block,c,e.isBlock));case 268:return e.updatePropertyAssignment(o,t(o.name,c,e.isPropertyName),t(o.initializer,c,e.isExpression));case 269:return e.updateShorthandPropertyAssignment(o,t(o.name,c,e.isIdentifier),t(o.objectAssignmentInitializer,c,e.isExpression));case 270:return e.updateSpreadAssignment(o,t(o.expression,c,e.isExpression));case 271:return e.updateEnumMember(o,t(o.name,c,e.isPropertyName),t(o.initializer,c,e.isExpression));case 272:return e.updateSourceFileNode(o,r(o.statements,c,u));case 295:return e.updatePartiallyEmittedExpression(o,t(o.expression,c,e.isExpression));case 296:return e.updateCommaList(o,l(o.elements,c,e.isExpression));default:return 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<=144)return i;if(u>=160&&u<=177)return i;var l=i;switch(r.kind){case 210:case 213:case 204:case 229:case 294:break;case 145:l=t(r.left,a,l),l=t(r.right,a,l);break;case 146:l=t(r.expression,a,l);break;case 148: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 149:l=t(r.expression,a,l);break;case 150: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 151: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 153: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 154:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 155: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 156: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 178:case 179:l=s(r.elements,c,l);break;case 180:l=t(r.propertyName,a,l),l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 181:l=s(r.elements,c,l);break;case 182:l=s(r.properties,c,l);break;case 183:l=t(r.expression,a,l),l=t(r.name,a,l);break;case 184:l=t(r.expression,a,l),l=t(r.argumentExpression,a,l);break;case 185:case 186:l=t(r.expression,a,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 187:l=t(r.tag,a,l),l=t(r.template,a,l);break;case 188:l=t(r.type,a,l),l=t(r.expression,a,l);break;case 190: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 191: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 189:case 192:case 193:case 194:case 195:case 201:case 202:case 207:l=t(r.expression,a,l);break;case 196:case 197:l=t(r.operand,a,l);break;case 198:l=t(r.left,a,l),l=t(r.right,a,l);break;case 199:l=t(r.condition,a,l),l=t(r.whenTrue,a,l),l=t(r.whenFalse,a,l);break;case 200:l=t(r.head,a,l),l=s(r.templateSpans,c,l);break;case 203: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 205:l=t(r.expression,a,l),l=s(r.typeArguments,c,l);break;case 206:l=t(r.expression,a,l),l=t(r.type,a,l);break;case 209:l=t(r.expression,a,l),l=t(r.literal,a,l);break;case 211:l=s(r.statements,c,l);break;case 212:l=s(r.modifiers,c,l),l=t(r.declarationList,a,l);break;case 214:l=t(r.expression,a,l);break;case 215:l=t(r.expression,a,l),l=t(r.thenStatement,a,l),l=t(r.elseStatement,a,l);break;case 216:l=t(r.statement,a,l),l=t(r.expression,a,l);break;case 217:case 224:l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 218: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 219:case 220:l=t(r.initializer,a,l),l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 223:case 227:l=t(r.expression,a,l);break;case 225:l=t(r.expression,a,l),l=t(r.caseBlock,a,l);break;case 226:l=t(r.label,a,l),l=t(r.statement,a,l);break;case 228:l=t(r.tryBlock,a,l),l=t(r.catchClause,a,l),l=t(r.finallyBlock,a,l);break;case 230:l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 231:l=s(r.declarations,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.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 233: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 236: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 237: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 238:l=s(r.statements,c,l);break;case 239:l=s(r.clauses,c,l);break;case 241: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 242: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 243:l=t(r.name,a,l),l=t(r.namedBindings,a,l);break;case 244:l=t(r.name,a,l);break;case 245:case 249:l=s(r.elements,c,l);break;case 246:case 250:l=t(r.propertyName,a,l),l=t(r.name,a,l);break;case 247:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.expression,a,l);break;case 248: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 252:l=t(r.expression,a,l);break;case 253:l=t(r.openingElement,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingElement,a,l);break;case 257:l=t(r.openingFragment,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingFragment,a,l);break;case 254:case 255:l=t(r.tagName,a,l),l=t(r.attributes,a,l);break;case 261:l=s(r.properties,c,l);break;case 256:l=t(r.tagName,a,l);break;case 260:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 262:case 263:l=t(r.expression,a,l);break;case 264:l=t(r.expression,a,l);case 265:l=s(r.statements,c,l);break;case 266:l=s(r.types,c,l);break;case 267:l=t(r.variableDeclaration,a,l),l=t(r.block,a,l);break;case 268:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 269:l=t(r.name,a,l),l=t(r.objectAssignmentInitializer,a,l);break;case 270:l=t(r.expression,a,l);break;case 271:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 272:l=s(r.statements,c,l);break;case 295:l=t(r.expression,a,l);break;case 296:l=s(r.elements,c,l)}return l}function i(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=o(t);return e.computeTransformFlagsForNode(t,n)}function a(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,a=e;r1&&r(t.importClause.namedBindings)}function o(t){return e.isDefaultImport(t)||1===n(t)&&r(t.importClause.namedBindings)}function s(t,n,r){if(e.isBindingPattern(t.name))for(var i=0,a=t.name.elements;i=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=_;g=e.ModuleKind.ES2015);return e.updateSourceFileNode(t,e.visitLexicalEnvironment(t.statements,l,i,0,n))}function b(t){if(t.decorators&&t.decorators.length>0)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;e.some(n)&&(r|=1);var i=e.getClassExtendsHeritageClauseElement(t);return i&&95!==e.skipOuterExpressions(i.expression).kind&&(r|=64),b(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),yt(t)?r|=8:bt(t)?r|=32:vt(t)&&(r|=16),Yt<=1&&7&r&&(r|=128),r}function k(t){var n=_n;_n=void 0;var r=M(t,!0),a=S(t,r);128&a&&i.startLexicalEnvironment();var o=t.name||(5&a?e.getGeneratedNameForNode(t):void 0),s=2&a?D(t,o,a):T(t,o,a),c=[s];if(e.some(_n)&&c.push(e.createStatement(e.inlineExpressions(_n))),_n=n,1&a&&K(c,r,128&a?e.getInternalName(t):e.getLocalName(t)),Z(c,t,!1),Z(c,t,!0),ne(c,t),128&a){var u=e.createTokenRange(e.skipTrivia(nn.text,t.members.end),18),l=e.getInternalName(t),_=e.createPartiallyEmittedExpression(l);_.end=u.end,e.setEmitFlags(_,1536);var d=e.createReturn(_);d.pos=u.pos,e.setEmitFlags(d,1920),c.push(d),e.addRange(c,i.endLexicalEnvironment());var p=e.createImmediatelyInvokedArrowFunction(c);e.setEmitFlags(p,33554432);var f=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(t,!1,!1),void 0,p)]));e.setOriginalNode(f,t),e.setCommentRange(f,t),e.setSourceMapRange(f,e.moveRangePastDecorators(t)),e.startOnNewLine(f),c=[f]}return 8&a?St(c,t):(128&a||2&a)&&(32&a?c.push(e.createExportDefault(e.getLocalName(t,!1,!0))):16&a&&c.push(e.createExternalModuleExport(e.getLocalName(t,!1,!0)))),c.length>1&&(c.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(s,4194304|e.getEmitFlags(s))),e.singleOrMany(c)}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,c,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 D(t,n,r){var i=e.moveRangePastDecorators(t),a=Nt(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,c,e.isHeritageClause),u=E(t,0!=(64&r)),l=e.createClassExpression(void 0,n,void 0,s,u);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 C(t){var n=_n;_n=void 0;var r=M(t,!0),i=e.visitNodes(t.heritageClauses,c,e.isHeritageClause),a=E(t,e.some(i,function(e){return 85===e.token})),o=e.createClassExpression(void 0,t.name,void 0,i,a);if(e.setOriginalNode(o,t),e.setTextRange(o,t),e.some(r)||e.some(_n)){var s=[],u=8388608&$t.getNodeCheckFlags(t),l=e.createTempVariable(Gt,!!u);if(u){Ft();var _=e.getSynthesizedClone(l);_.autoGenerateFlags&=-17,un[e.getOriginalNodeId(t)]=_}return e.setEmitFlags(o,65536|e.getEmitFlags(o)),s.push(e.startOnNewLine(e.createAssignment(l,o))),e.addRange(s,e.map(_n,e.startOnNewLine)),_n=n,e.addRange(s,j(r,l)),s.push(e.startOnNewLine(l)),e.inlineExpressions(s)}return _n=n,o}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(t,n){var r=e.forEach(t.members,R),a=262144&t.transformFlags,o=e.getFirstConstructorWithBody(t);if(!r&&!a)return e.visitEachChild(o,c,i);var s=A(o),u=P(t,o,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,u),o||t),o))}function A(t){return e.visitParameterList(t&&t.parameters,c,i)||[]}function P(t,n,r){var i=[],a=0;if(Wt(),n){a=w(n,i);var o=F(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,M(t,!1),e.createThis()),n&&e.addRange(i,e.visitNodes(n.body.statements,c,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,Ht()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),n?n.body.statements:t.members),!0),n?n.body:void 0)}function w(t,n){if(t.body){var r=t.body.statements,i=e.addPrologue(n,r,!1,c);if(i===r.length)return i;var a=r[i];return 214===a.kind&&e.isSuperCall(a.expression)?(n.push(e.visitNode(a,c,e.isStatement)),i+1):i}return 0}function F(t){return e.filter(t.parameters,O)}function O(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 M(t,n){return e.filter(t.members,n?L:R)}function L(e){return B(e,!0)}function R(e){return B(e,!1)}function B(t,n){return 151===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function K(t,n,r){for(var i=0,a=n;i0?151===r.kind?e.createVoidZero():e.createNull():void 0,u=t(i,a,o,s,c,e.moveRangePastDecorators(r));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(n){var r=Y(n,n,H(n));if(r){var a=un&&un[e.getOriginalNodeId(n)],o=e.getLocalName(n,!1,!0),s=t(i,r,o),c=e.createAssignment(o,a?e.createAssignment(a,s):s);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(n)),c}}function ie(t){return e.visitNode(t.expression,c,e.isExpression)}function ae(t,n){var a;if(t){a=[];for(var o=0,s=t;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 };'},c={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 };'},u={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,n,i,a){t.requestEmitHelper(r);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),i?e.createExpressionFromEntityName(i):e.createVoidZero(),o])}var n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),e.transformES2017=function(n){function r(t){if(0==(16&t.transformFlags))return t;switch(t.kind){case 120:return;case 195:return l(t);case 153:return _(t);case 232:return d(t);case 190:return p(t);case 191:return f(t);default:return e.visitEachChild(t,r,n)}}function i(t){if(e.isNodeWithPossibleHoistedDeclaration(t))switch(t.kind){case 212:return o(t);case 218:return u(t);case 219:return s(t);case 220:return c(t);case 267:return a(t);case 211:case 225:case 239:case 264:case 265:case 228:case 216:case 217:case 215:case 224:case 226:return e.visitEachChild(t,i,n);default:return e.Debug.assertNever(t,"Unhandled node.")}return r(t)}function a(t){var r=e.createUnderscoreEscapedMap();m(t.variableDeclaration,r);var a;if(r.forEach(function(t,n){O.has(n)&&(a||(a=e.cloneMap(O)),a.delete(n))}),a){var o=O;O=a;var s=e.visitEachChild(t,i,n);return O=o,s}return e.visitEachChild(t,i,n)}function o(t){if(g(t.declarationList)){var i=y(t.declarationList,!1);return i?e.createStatement(i):void 0}return e.visitEachChild(t,r,n)}function s(t){return e.updateForIn(t,g(t.initializer)?y(t.initializer,!0):e.visitNode(t.initializer,r,e.isForInitializer),e.visitNode(t.expression,r,e.isExpression),e.visitNode(t.statement,i,e.isStatement,e.liftToBlock))}function c(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,r,e.isToken),g(t.initializer)?y(t.initializer,!0):e.visitNode(t.initializer,r,e.isForInitializer),e.visitNode(t.expression,r,e.isExpression),e.visitNode(t.statement,i,e.isStatement,e.liftToBlock))}function u(t){return e.updateFor(t,g(t.initializer)?y(t.initializer,!1):e.visitNode(t.initializer,r,e.isForInitializer),e.visitNode(t.condition,r,e.isExpression),e.visitNode(t.incrementor,r,e.isExpression),e.visitNode(t.statement,i,e.isStatement,e.liftToBlock))}function l(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,r,e.isExpression)),t),t)}function _(t){return e.updateMethod(t,void 0,e.visitNodes(t.modifiers,r,e.isModifier),t.asteriskToken,t.name,void 0,void 0,e.visitParameterList(t.parameters,r,n),void 0,2&e.getFunctionFlags(t)?S(t):e.visitFunctionBody(t.body,r,n))}function d(t){return e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,r,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,r,n),void 0,2&e.getFunctionFlags(t)?S(t):e.visitFunctionBody(t.body,r,n))}function p(t){return e.updateFunctionExpression(t,e.visitNodes(t.modifiers,r,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,r,n),void 0,2&e.getFunctionFlags(t)?S(t):e.visitFunctionBody(t.body,r,n))}function f(t){return e.updateArrowFunction(t,e.visitNodes(t.modifiers,r,e.isModifier),void 0,e.visitParameterList(t.parameters,r,n),void 0,t.equalsGreaterThanToken,2&e.getFunctionFlags(t)?S(t):e.visitFunctionBody(t.body,r,n))}function m(t,n){var r=t.name;if(e.isIdentifier(r))n.set(r.escapedText,!0);else for(var i=0,a=r.elements;i=2&&(4096&R.getNodeCheckFlags(i)?(D(),e.addEmitHelper(h,e.advancedAsyncSuperHelper)):2048&R.getNodeCheckFlags(i)&&(D(),e.addEmitHelper(h,e.asyncSuperHelper))),d=h}return O=u,d}function k(t,n){return e.isBlock(t)?e.updateBlock(t,e.visitNodes(t.statements,i,e.isStatement,n)):e.convertToFunctionBody(e.visitNode(t,i,e.isConciseBody))}function T(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=R.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}function D(){0==(1&F)&&(F|=1,n.enableSubstitution(185),n.enableSubstitution(183),n.enableSubstitution(184),n.enableEmitNotification(233),n.enableEmitNotification(153),n.enableEmitNotification(155),n.enableEmitNotification(156),n.enableEmitNotification(154))}function C(e){switch(e.kind){case 183:return E(e);case 184:return N(e);case 185:return A(e)}return e}function E(t){return 97===t.expression.kind?w(e.createLiteral(e.idText(t.name)),t):t}function N(e){return 97===e.expression.kind?w(e.argumentExpression,e):e}function A(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?E(n):N(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function P(e){var t=e.kind;return 233===t||154===t||153===t||155===t||156===t}function w(t,n){return 4096&j?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 F,O,I=n.resumeLexicalEnvironment,M=n.endLexicalEnvironment,L=n.hoistVariableDeclaration,R=n.getEmitResolver(),B=n.getCompilerOptions(),K=e.getEmitScriptTarget(B),j=0,z=n.onEmitNode,J=n.onSubstituteNode;return n.onEmitNode=function(e,t,n){if(1&F&&P(t)){var r=6144&R.getNodeCheckFlags(t);if(r!==j){var i=j;return j=r,z(e,t,n),void(j=i)}}z(e,t,n)},n.onSubstituteNode=function(e,t){return t=J(e,t),1===e&&j?C(t):t},function(t){if(t.isDeclarationFile)return t;var i=e.visitEachChild(t,r,n);return e.addEmitHelpers(i,n.readEmitHelpers()),i}};var r={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,n){return t.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(s),e.createCall(e.getHelperName("__assign"),void 0,n))}function n(t,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__await"),void 0,[n])}function r(t,n){return t.requestEmitHelper(c),t.requestEmitHelper(u),(n.emitNode||(n.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),n])}function i(t,n,r){return t.requestEmitHelper(c),t.requestEmitHelper(l),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}function a(t,n,r){return t.requestEmitHelper(_),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}var o;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(o||(o={})),e.transformESNext=function(o){function s(e){return l(e,!1)}function c(e){return l(e,!0)}function u(e){if(120!==e.kind)return e}function l(t,n){if(0==(8&t.transformFlags))return t;switch(t.kind){case 195:return _(t);case 201:return d(t);case 226:return p(t);case 182:return m(t);case 198:return v(t,n);case 230:return b(t);case 220:return k(t,void 0);case 218:return x(t);case 194:return S(t);case 154:return A(t);case 153:return F(t);case 155:return P(t);case 156:return w(t);case 232:return O(t);case 190:return M(t);case 191:return I(t);case 148:return N(t);case 214:return g(t);case 189:return y(t,n);case 267:return h(t);default:return e.visitEachChild(t,s,o)}}function _(t){return 2&te&&1&te?e.setOriginalNode(e.setTextRange(e.createYield(n(o,e.visitNode(t.expression,s,e.isExpression))),t),t):e.visitEachChild(t,s,o)}function d(t){if(2&te&&1&te&&t.asteriskToken){var r=e.visitNode(t.expression,s,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(n(o,e.updateYield(t,t.asteriskToken,i(o,a(o,r,r),r)))),t),t)}return e.visitEachChild(t,s,o)}function p(t){if(2&te){var n=e.unwrapInnermostStatementOfLabel(t);return 220===n.kind&&n.awaitModifier?k(n,t):e.restoreEnclosingLabel(e.visitEachChild(n,s,o),t)}return e.visitEachChild(t,s,o)}function f(t){for(var n,r=[],i=0,a=t;i=2&&(4096&$.getNodeCheckFlags(t)?(K(),e.addEmitHelper(a,e.advancedAsyncSuperHelper)):2048&$.getNodeCheckFlags(t)&&(K(),e.addEmitHelper(a,e.asyncSuperHelper))),a}function R(t){W();var n=0,r=[],i=e.visitNode(t.body,s,e.isConciseBody);e.isBlock(i)&&(n=e.addPrologue(r,i.statements,!1,s)),e.addRange(r,B(void 0,t));var a=H();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 B(t,n){for(var r=0,i=n.parameters;r 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 '},l={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 '},_={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || 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){e.transformJsx=function(n){function r(e){return 4&e.transformFlags?i(e):e}function i(t){switch(t.kind){case 253:return o(t,!1);case 254:return s(t,!1);case 257:return c(t,!1);case 263:return x(t);default:return e.visitEachChild(t,r,n)}}function a(t){switch(t.kind){case 10:return f(t);case 263:return x(t);case 253:return o(t,!0);case 254:return s(t,!0);case 257:return c(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function o(e,t){return u(e.openingElement,e.children,t,e)}function s(e,t){return u(e,void 0,t,e)}function c(e,t){return l(e.openingFragment,e.children,t,e)}function u(t,r,i,o){var s,c=v(t),u=t.attributes.properties;if(0===u.length)s=e.createNull();else{var l=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,_):e.createObjectLiteral(e.map(t,d))}));e.isJsxSpreadAttribute(u[0])&&l.unshift(e.createObjectLiteral()),(s=e.singleOrUndefined(l))||(s=e.createAssignHelper(n,l))}var p=e.createExpressionForJsxElement(n.getEmitResolver().getJsxFactoryEntity(),k.reactNamespace,c,s,e.mapDefined(r,a),t,o);return i&&e.startOnNewLine(p),p}function l(t,r,i,o){var s=e.createExpressionForJsxFragment(n.getEmitResolver().getJsxFactoryEntity(),k.reactNamespace,e.mapDefined(r,a),t,o);return i&&e.startOnNewLine(s),s}function _(t){return e.visitNode(t.expression,r,e.isExpression)}function d(t){var n=b(t),r=p(t.initializer);return e.createPropertyAssignment(n,r)}function p(t){if(void 0===t)return e.createTrue();if(9===t.kind){var n=e.createLiteral(h(t.text)||t.text);return n.singleQuote=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,S),e.setTextRange(n,t)}if(263===t.kind)return void 0===t.expression?e.createTrue():x(t);e.Debug.failBadSyntaxKind(t)}function f(t){var n=m(e.getTextOfNode(t,!0));return void 0===n?void 0:e.createLiteral(n)}function m(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=P(a,t,s,i,o);1!==c&&2!==c||o++,t&&(1===c&&(wt|=4096),e.addRange(a,e.visitNodes(t.body.statements,u,e.isStatement,o))),!s||2===c||t&&A(t.body)||a.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(a,kt()),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 A(t){if(223===t.kind)return!0;if(215===t.kind){var n=t;if(n.elseStatement)return A(n.thenStatement)&&A(n.elseStatement)}else if(211===t.kind){var r=e.lastOrUndefined(t.statements);if(r&&A(r))return!0}return!1}function P(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()),dt(),1;var o,s,c=n.body.statements;if(a0?t.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,u,r,0,o))),1048576)):a&&t.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,u,e.isExpression))),1048576))}function R(t,n,r,i){i=e.visitNode(i,u,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));e.startOnNewLine(a),e.setTextRange(a,n),e.setEmitFlags(a,1048992),t.push(a)}function B(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function K(t,n,r){var i=e.lastOrUndefined(n.parameters);if(B(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&&191!==n.kind&&z(t,n,e.createThis())}function z(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&wt){var i=void 0;switch(n.kind){case 191:return t;case 153:case 155:case 156:i=e.createVoidZero();break;case 154:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 232:case 190: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 U(t,n){for(var r=0,i=n.members;r0&&(o=!0),e.isBlock(l))a=e.addCustomPrologue(c,l.statements,a,u),n=l.statements,e.addRange(c,e.visitNodes(l.statements,u,e.isStatement,a)),!o&&l.multiLine&&(o=!0);else{e.Debug.assert(191===t.kind),n=e.moveRangeEnd(l,-1);var _=t.equalsGreaterThanToken;e.nodeIsSynthesized(_)||e.nodeIsSynthesized(l)||(e.rangeEndIsOnSameLineAsRangeStart(_,l,At)?s=!0:o=!0);var d=e.visitNode(l,u,e.isExpression),p=e.createReturn(d);e.setTextRange(p,l),e.setEmitFlags(p,1440),c.push(p),i=l}var f=r.endLexicalEnvironment();e.addRange(c,f),J(c,t,!1),!o&&f&&f.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(c),n),o);return e.setTextRange(m,t.body),!o&&s&&e.setEmitFlags(m,1),i&&e.setTokenSourceMapRange(m,18,i),e.setOriginalNode(m,t.body),m}function Z(t){var n=e.visitFunctionBody(t.body,l,r);return e.updateBlock(n,e.setTextRange(e.createNodeArray(J(n.statements,t,!0)),n.statements))}function ee(t,n){if(n)return e.visitEachChild(t,u,r);var i=256&wt?a(4032,512):a(3904,128),s=e.visitEachChild(t,u,r);return o(i,0,0),s}function te(t){switch(t.expression.kind){case 189:return e.updateStatement(t,ne(t.expression,!1));case 198:return e.updateStatement(t,re(t.expression,!1))}return e.visitEachChild(t,u,r)}function ne(t,n){if(!n)switch(t.expression.kind){case 189:return e.updateParen(t,ne(t.expression,!1));case 198:return e.updateParen(t,re(t.expression,!1))}return e.visitEachChild(t,u,r)}function re(t,n){return e.isDestructuringAssignment(t)?e.flattenDestructuringAssignment(t,u,r,0,n):e.visitEachChild(t,u,r)}function ie(t){var n,i=a(0,e.hasModifier(t,1)?32:0);if(Ot&&0==(3&t.declarationList.flags)){for(var s=void 0,c=0,l=t.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 ht(t){return 1&It&&16&wt?e.setTextRange(e.createIdentifier("_this"),t):t}function vt(t,n){return e.hasModifier(n,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function bt(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)||214!==r.kind)return!1;var i=r.expression;if(!e.nodeIsSynthesized(i)||185!==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)||202!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}var xt=r.startLexicalEnvironment,St=r.resumeLexicalEnvironment,kt=r.endLexicalEnvironment,Tt=r.hoistVariableDeclaration,Dt=r.getCompilerOptions(),Ct=r.getEmitResolver(),Et=r.onSubstituteNode,Nt=r.onEmitNode;r.onEmitNode=function(t,n,r){if(1&It&&e.isFunctionLike(n)){var i=a(16286,8&e.getEmitFlags(n)?81:65);return Nt(t,n,r),void o(i,0,0)}Nt(t,n,r)},r.onSubstituteNode=function(t,n){return n=Et(t,n),1===t?mt(n):e.isIdentifier(n)?pt(n):n};var At,Pt,wt,Ft,Ot,It;return function(t){if(t.isDeclarationFile)return t;At=t,Pt=t.text;var n=p(t);return e.addEmitHelpers(n,r.readEmitHelpers()),At=void 0,Pt=void 0,Ft=void 0,wt=0,n}};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 })();"},u={name:"typescript:makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'}}(r||(r={}));!function(e){e.transformES5=function(t){function n(t){var n=i(t.name);return n?e.setTextRange(e.createElementAccess(t.expression,n),t):t}function r(t){var n=e.isIdentifier(t.name)&&i(t.name);return n?e.updatePropertyAssignment(t,n,t.initializer):t}function i(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(n>=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}var a,o,s=t.getCompilerOptions();1!==s.jsx&&3!==s.jsx||(a=t.onEmitNode,t.onEmitNode=function(t,n,r){switch(n.kind){case 255:case 256:case 254:var i=n.tagName;o[e.getOriginalNodeId(i)]=!0}a(t,n,r)},t.enableEmitNotification(255),t.enableEmitNotification(256),t.enableEmitNotification(254),o=[]);var c=t.onSubstituteNode;return t.onSubstituteNode=function(t,i){return i.id&&o&&o[i.id]?c(t,i):(i=c(t,i),e.isPropertyAccessExpression(i)?n(i):e.isPropertyAssignment(i)?r(i):i)},t.enableSubstitution(183),t.enableSubstitution(268),function(e){return e}}}(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(t,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__generator"),void 0,[e.createThis(),n])}var r;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(r||(r={}));var i;!function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(i||(i={}));var a;!function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(a||(a={}));var o;!function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(o||(o={}));var s;!function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(s||(s={})),e.transformGenerators=function(r){function i(t){var n=t.transformFlags;return Ft?a(t):wt?o(t):256&n?c(t):512&n?e.visitEachChild(t,i,r):t}function a(e){switch(e.kind){case 216:return K(e);case 217:return z(e);case 225:return ee(e);case 226:return ne(e);default:return o(e)}}function o(t){switch(t.kind){case 232:return u(t);case 190:return l(t);case 155:case 156:return _(t);case 212:return p(t);case 218:return U(t);case 219:return V(t);case 222:return $(t);case 221:return H(t);case 223:return Q(t);default:return 16777216&t.transformFlags?s(t):33554944&t.transformFlags?e.visitEachChild(t,i,r):t}}function s(t){switch(t.kind){case 198:return f(t);case 199:return x(t);case 201:return S(t);case 181:return k(t);case 182:return D(t);case 184:return C(t);case 185:return E(t);case 186:return N(t);default:return e.visitEachChild(t,i,r)}}function c(t){switch(t.kind){case 232:return u(t);case 190:return l(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,i,r)}}function u(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,i,r),void 0,d(t.body)),t),t);else{var n=wt,a=Ft;wt=!1,Ft=!1,t=e.visitEachChild(t,i,r),wt=n,Ft=a}return wt?void kt(t):t}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,i,r),void 0,d(t.body)),t),t);else{var n=wt,a=Ft;wt=!1,Ft=!1,t=e.visitEachChild(t,i,r),wt=n,Ft=a}return t}function _(t){var n=wt,a=Ft;return wt=!1,Ft=!1,t=e.visitEachChild(t,i,r),wt=n,Ft=a,t}function d(t){var n=[],r=wt,a=Ft,o=Ot,s=It,c=Mt,u=Lt,l=Rt,_=Bt,d=Qt,p=Kt,f=jt,m=zt,g=Jt;wt=!0,Ft=!1,Ot=void 0,It=void 0,Mt=void 0,Lt=void 0,Rt=void 0,Bt=void 0,Qt=1,Kt=void 0,jt=void 0,zt=void 0,Jt=e.createTempVariable(void 0),xt();var y=e.addPrologue(n,t.statements,!1,i);A(t.statements,y);var h=tt();return e.addRange(n,St()),n.push(e.createReturn(h)),wt=r,Ft=a,Ot=o,It=s,Mt=c,Lt=u,Rt=l,Bt=_,Qt=d,Kt=p,jt=f,zt=m,Jt=g,e.setTextRange(e.createBlock(n,t.multiLine),t)}function p(t){if(16777216&t.transformFlags)M(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n=59&&e<=70}function g(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 y(t){var n=t.left,a=t.right;if(ae(a)){var o=void 0;switch(n.kind){case 183:o=e.updatePropertyAccess(n,ue(e.visitNode(n.expression,i,e.isLeftHandSideExpression)),n.name);break;case 184:o=e.updateElementAccess(n,ue(e.visitNode(n.expression,i,e.isLeftHandSideExpression)),ue(e.visitNode(n.argumentExpression,i,e.isExpression)));break;default:o=e.visitNode(n,i,e.isExpression)}var s=t.operatorToken.kind;return m(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(ue(o),g(s),e.visitNode(a,i,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(a,i,e.isExpression))}return e.visitEachChild(t,i,r)}function h(t){if(ae(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return v(t);if(26===t.operatorToken.kind)return b(t);var n=e.getMutableClone(t);return n.left=ue(e.visitNode(t.left,i,e.isExpression)),n.right=e.visitNode(t.right,i,e.isExpression),n}return e.visitEachChild(t,i,r)}function v(t){var n=_e(),r=le();return Ve(r,e.visitNode(t.left,i,e.isExpression),t.left),53===t.operatorToken.kind?Ge(n,r,t.left):He(n,r,t.left),Ve(r,e.visitNode(t.right,i,e.isExpression),t.right),de(n),r}function b(t){function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(ae(t)&&r.length>0&&(et(1,[e.createStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,i,e.isExpression)))}var r=[];return n(t.left),n(t.right),e.inlineExpressions(r)}function x(t){if(ae(t.whenTrue)||ae(t.whenFalse)){var n=_e(),a=_e(),o=le();return Ge(n,e.visitNode(t.condition,i,e.isExpression),t.condition),Ve(o,e.visitNode(t.whenTrue,i,e.isExpression),t.whenTrue),We(a),de(n),Ve(o,e.visitNode(t.whenFalse,i,e.isExpression),t.whenFalse),de(a),o}return e.visitEachChild(t,i,r)}function S(t){var n=_e(),a=e.visitNode(t.expression,i,e.isExpression);return t.asteriskToken?$e(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(r,a,t):a,t):Xe(a,t),de(n),Je(t)}function k(e){return T(e.elements,void 0,void 0,e.multiLine)}function T(t,n,r,a){var o,s=oe(t);if(s>0){o=le();var c=e.visitNodes(t,i,e.isExpression,0,s);Ve(o,e.createArrayLiteral(n?[n].concat(c):c)),n=void 0}var u=e.reduceLeft(t,function(t,r){if(ae(r)&&t.length>0){var s=void 0!==o;o||(o=le()),Ve(o,s?e.createArrayConcat(o,[e.createArrayLiteral(t,a)]):e.createArrayLiteral(n?[n].concat(t):t,a)),n=void 0,t=[]}return t.push(e.visitNode(r,i,e.isExpression)),t},[],s);return o?e.createArrayConcat(o,[e.createArrayLiteral(u,a)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(u):u,a),r)}function D(t){var n=t.properties,r=t.multiLine,a=oe(n),o=le();Ve(o,e.createObjectLiteral(e.visitNodes(n,i,e.isObjectLiteralElementLike,0,a),r));var s=e.reduceLeft(n,function(n,a){ae(a)&&n.length>0&&(qe(e.createStatement(e.inlineExpressions(n))),n=[]);var s=e.createExpressionForObjectLiteralElementLike(t,a,o),c=e.visitNode(s,i,e.isExpression);return c&&(r&&e.startOnNewLine(c),n.push(c)),n},[],a);return s.push(r?e.startOnNewLine(e.getMutableClone(o)):o),e.inlineExpressions(s)}function C(t){if(ae(t.argumentExpression)){var n=e.getMutableClone(t);return n.expression=ue(e.visitNode(t.expression,i,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(t.argumentExpression,i,e.isExpression),n}return e.visitEachChild(t,i,r)}function E(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,ae)){var n=e.createCallBinding(t.expression,Tt,Ct,!0),a=n.target,o=n.thisArg;return e.setOriginalNode(e.createFunctionApply(ue(e.visitNode(a,i,e.isLeftHandSideExpression)),o,T(t.arguments),t),t)}return e.visitEachChild(t,i,r)}function N(t){if(e.forEach(t.arguments,ae)){var n=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Tt),a=n.target,o=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(ue(e.visitNode(a,i,e.isExpression)),o,T(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,i,r)}function A(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0);l++)u.push(L(i));u.length&&(qe(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function L(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,i,e.isExpression)),t)}function R(t){if(ae(t))if(ae(t.thenStatement)||ae(t.elseStatement)){var n=_e(),r=t.elseStatement?_e():void 0;Ge(t.elseStatement?r:n,e.visitNode(t.expression,i,e.isExpression),t.expression),P(t.thenStatement),t.elseStatement&&(We(n),de(r),P(t.elseStatement)),de(n)}else qe(e.visitNode(t,i,e.isStatement));else qe(e.visitNode(t,i,e.isStatement))}function B(t){if(ae(t)){var n=_e(),r=_e();Te(n),de(r),P(t.statement),de(n),He(r,e.visitNode(t.expression,i,e.isExpression)),De()}else qe(e.visitNode(t,i,e.isStatement))}function K(t){return Ft?(ke(),t=e.visitEachChild(t,i,r),De(),t):e.visitEachChild(t,i,r)}function j(t){if(ae(t)){var n=_e(),r=Te(n);de(n),Ge(r,e.visitNode(t.expression,i,e.isExpression)),P(t.statement),We(n),De()}else qe(e.visitNode(t,i,e.isStatement))}function z(t){return Ft?(ke(),t=e.visitEachChild(t,i,r),De(),t):e.visitEachChild(t,i,r)}function J(t){if(ae(t)){var n=_e(),r=_e(),a=Te(r);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?M(o):qe(e.setTextRange(e.createStatement(e.visitNode(o,i,e.isExpression)),o))}de(n),t.condition&&Ge(a,e.visitNode(t.condition,i,e.isExpression)),P(t.statement),de(r),t.incrementor&&qe(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,i,e.isExpression)),t.incrementor)),We(n),De()}else qe(e.visitNode(t,i,e.isStatement))}function U(t){Ft&&ke();var n=t.initializer;if(n&&e.isVariableDeclarationList(n)){for(var a=0,o=n.declarations;a0?e.inlineExpressions(e.map(c,L)):void 0,e.visitNode(t.condition,i,e.isExpression),e.visitNode(t.incrementor,i,e.isExpression),e.visitNode(t.statement,i,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,i,r);return Ft&&De(),t}function q(t){if(ae(t)){var n=le(),r=le(),a=e.createLoopVariable(),o=t.initializer;Tt(a),Ve(n,e.createArrayLiteral()),qe(e.createForIn(r,e.visitNode(t.expression,i,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(n,"push"),void 0,[r])))),Ve(a,e.createLiteral(0));var s=_e(),c=_e(),u=Te(c);de(s),Ge(u,e.createLessThan(a,e.createPropertyAccess(n,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var _=0,d=o.declarations;_0?We(n,t):qe(t)}function H(t){if(Ft){var n=Re(t.label&&e.idText(t.label));if(n>0)return je(n,t)}return e.visitEachChild(t,i,r)}function G(t){var n=Le(t.label?e.idText(t.label):void 0);n>0?We(n,t):qe(t)}function $(t){if(Ft){var n=Le(t.label&&e.idText(t.label));if(n>0)return je(n,t)}return e.visitEachChild(t,i,r)}function X(t){Qe(e.visitNode(t.expression,i,e.isExpression),t)}function Q(t){return ze(e.visitNode(t.expression,i,e.isExpression),t)}function Y(t){ae(t)?(ye(ue(e.visitNode(t.expression,i,e.isExpression))),P(t.statement),he()):qe(e.visitNode(t,i,e.isStatement))}function Z(t){if(ae(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,a=Ee(),o=ue(e.visitNode(t.expression,i,e.isExpression)),s=[],c=-1,u=0;u0)break;d.push(e.createCaseClause(e.visitNode(l.expression,i,e.isExpression),[je(s[u],l.expression)]))}else p++;d.length&&(qe(e.createSwitch(o,e.createCaseBlock(d))),_+=d.length,d=[]),p>0&&(_+=p,p=0)}for(We(c>=0?s[c]:a),u=0;u=0;n--){var r=Lt[n];if(!Oe(r))break;if(r.labelText===e)return!0}return!1}function Le(e){if(Lt)if(e)for(t=Lt.length-1;t>=0;t--){if(Oe(n=Lt[t])&&n.labelText===e)return n.breakLabel;if(Fe(n)&&Me(e,t-1))return n.breakLabel}else for(var t=Lt.length-1;t>=0;t--){var n=Lt[t];if(Fe(n))return n.breakLabel}return 0}function Re(e){if(Lt)if(e){for(t=Lt.length-1;t>=0;t--)if(Ie(n=Lt[t])&&Me(e,t-1))return n.continueLabel}else for(var t=Lt.length-1;t>=0;t--){var n=Lt[t];if(Ie(n))return n.continueLabel}return 0}function Be(t){if(t>0){void 0===Bt&&(Bt=[]);var n=e.createLiteral(-1);return void 0===Bt[t]?Bt[t]=[n]:Bt[t].push(n),n}return e.createOmittedExpression()}function Ke(n){var r=e.createLiteral(n);return e.addSyntheticTrailingComment(r,3,t(n)),r}function je(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([Ke(3),Be(t)])),n)}function ze(t,n){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Ke(2),t]:[Ke(2)])),n)}function Je(t){return e.setTextRange(e.createCall(e.createPropertyAccess(Jt,"sent"),void 0,[]),t)}function Ue(){et(0)}function qe(e){e?et(1,[e]):Ue()}function Ve(e,t,n){et(2,[e,t],n)}function We(e,t){et(3,[e],t)}function He(e,t,n){et(4,[e,t],n)}function Ge(e,t,n){et(5,[e,t],n)}function $e(e,t){et(7,[e],t)}function Xe(e,t){et(6,[e],t)}function Qe(e,t){et(8,[e],t)}function Ye(e,t){et(9,[e],t)}function Ze(){et(10)}function et(e,t,n){void 0===Kt&&(Kt=[],jt=[],zt=[]),void 0===Rt&&de(_e());var r=Kt.length;Kt[r]=e,jt[r]=t,zt[r]=n}function tt(){Yt=0,Zt=0,Ut=void 0,qt=!1,Vt=!1,Wt=void 0,Ht=void 0,Gt=void 0,$t=void 0,Xt=void 0;var t=nt();return n(r,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Jt)],void 0,e.createBlock(t,t.length>0)),524288))}function nt(){if(Kt){for(var t=0;t=0;n--){var r=Xt[n];Ht=[e.createWith(r.expression,e.createBlock(Ht))]}if($t){var i=$t.startLabel,a=$t.catchLabel,o=$t.finallyLabel,s=$t.endLabel;Ht.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Jt,"trys"),"push"),void 0,[e.createArrayLiteral([Be(i),Be(a),Be(o),Be(s)])]))),$t=void 0}t&&Ht.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Jt,"label"),e.createLiteral(Zt+1))))}Wt.push(e.createCaseClause(e.createLiteral(Zt),Ht||[])),Ht=void 0}function st(e){if(Rt)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,n){return t.getCompilerOptions().importHelpers?e.createCall(e.getHelperName("__exportStar"),void 0,[n,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),void 0,[n])}e.transformModule=function(o){function s(t){switch(t){case e.ModuleKind.AMD:return l;case e.ModuleKind.UMD:return _;default:return u}}function c(){return!(ue.exportEquals||!e.isExternalModule(ce))}function u(t){Y();var r=[],i=e.getStrictOptionValue(te,"alwaysStrict")||!te.noImplicitUseStrict&&e.isExternalModule(ce),a=e.addPrologue(r,t.statements,i,g);c()&&e.append(r,J()),e.append(r,e.visitNode(ue.externalHelpersImportDeclaration,g,e.isStatement)),e.addRange(r,e.visitNodes(t.statements,g,e.isStatement,a)),m(r,!1),e.addRange(r,Z());var s=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(r),t.statements));return ue.hasExportStarsToExportValues&&!te.importHelpers&&e.addEmitHelper(s,n),e.addEmitHelpers(s,o.readEmitHelpers()),s}function l(t){var n=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(t,re,te),i=d(t,!0),a=i.aliasedModuleNames,s=i.unaliasedModuleNames,c=i.importAliasNames,u=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,s)),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(c),void 0,f(t))])))]),t.statements));return e.addEmitHelpers(u,o.readEmitHelpers()),u}function _(t){var n=d(t,!1),r=n.aliasedModuleNames,i=n.unaliasedModuleNames,a=n.importAliasNames,s=e.tryGetModuleNameFromFile(t,re,te),c=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,(s?[s]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,i)),e.createIdentifier("factory")])))])))],!0),void 0)),u=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(c,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,f(t))]))]),t.statements));return e.addEmitHelpers(u,o.readEmitHelpers()),u}function d(t,n){for(var r=[],i=[],a=[],o=0,s=t.amdDependencies;o=2?r=e.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(r=e.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),n&&e.setEmitFlags(r,8));var l=e.createNew(e.createIdentifier("Promise"),void 0,[r]);return te.esModuleInterop?(o.requestEmitHelper(i),e.createCall(e.createPropertyAccess(l,e.createIdentifier("then")),void 0,[e.getHelperName("__importStar")])):l}function x(t,n){var r=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),a=e.createCall(e.createIdentifier("require"),void 0,t?[t]:[]);te.esModuleInterop&&(o.requestEmitHelper(i),a=e.createCall(e.getHelperName("__importStar"),void 0,[a]));var s;return ie>=2?s=e.createArrowFunction(void 0,void 0,[],void 0,void 0,a):(s=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(a)])),n&&e.setEmitFlags(s,8)),e.createCall(e.createPropertyAccess(r,"then"),void 0,[s])}function S(t,n){return!te.esModuleInterop||67108864&e.getEmitFlags(t)?n:e.getImportNeedsImportStarHelper(t)?(o.requestEmitHelper(i),e.createCall(e.getHelperName("__importStar"),void 0,[n])):e.getImportNeedsImportDefaultHelper(t)?(o.requestEmitHelper(a),e.createCall(e.getHelperName("__importDefault"),void 0,[n])):n}function k(t){var n,r=e.getNamespaceDeclarationNode(t);if(ae!==e.ModuleKind.AMD){if(!t.importClause)return e.setTextRange(e.createStatement(T(t)),t);var i=[];r&&!e.isDefaultImport(t)?i.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,S(t,T(t)))):(i.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),void 0,S(t,T(t)))),r&&e.isDefaultImport(t)&&i.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)))),n=e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(i,ie>=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)],ie>=2?2:0))));if(O(t)){var a=e.getOriginalNodeId(t);pe[a]=M(pe[a],t)}else n=M(n,t);return e.singleOrMany(n)}function T(t){var n=e.getExternalModuleNameLiteral(t,ce,re,ne,te),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function D(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var n;if(ae!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(q(t.name,T(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,T(t))],ie>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(q(e.getExportName(t),e.getLocalName(t))),t))),O(t)){var r=e.getOriginalNodeId(t);pe[r]=L(pe[r],t)}else n=L(n,t);return e.singleOrMany(n)}function C(n){if(n.moduleSpecifier){var r=e.getGeneratedNameForNode(n);if(n.exportClause){var i=[];ae!==e.ModuleKind.AMD&&i.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,T(n))])),n));for(var a=0,s=n.exportClause.elements;a0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is suspended."),p[m]=u,f[m]=l,m++,u=void 0,l=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is already suspended."),g=!0},resumeLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(g,"Lexical environment is not suspended."),g=!1},endLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is suspended.");var t;if((u||l)&&(l&&(t=l.slice()),u)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(u));t?t.push(n):t=[n]}return m--,u=p[m],l=f[m],0===m&&(p=[],f=[]),t},hoistVariableDeclaration:function(t){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(e.createVariableDeclaration(t),64);u?u.push(n):u=[n]},hoistFunctionDeclaration:function(t){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),l?l.push(t):l=[t]},requestEmitHelper:function(t){e.Debug.assert(v>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),_=e.append(_,t)},readEmitHelpers:function(){e.Debug.assert(v>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed.");var t=_;return _=void 0,t},enableSubstitution:function(t){e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),d[t]|=1},enableEmitNotification:function(t){e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),d[t]|=2},isSubstitutionEnabled:s,isEmitNotificationEnabled:c,get onSubstituteNode(){return y},set onSubstituteNode(t){e.Debug.assert(v<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),y=t},get onEmitNode(){return h},set onEmitNode(t){e.Debug.assert(v<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),h=t}},x=0,S=i;x>=5)>0&&(r|=32),n+=t(r)}while(e>0);return n}var r={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=function(t,i){function a(t){return _.skipTrivia?_.skipTrivia(t):e.skipTrivia(d,t)}function o(){x||(_=void 0,p=void 0,f=void 0,m=void 0,g=void 0,y=void 0,h=void 0)}function s(){if(m&&m!==g){var t=g.emittedColumn;if(g.emittedLine===m.emittedLine)h.sourceMapMappings&&(h.sourceMapMappings+=",");else{for(var r=g.emittedLine;r=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),h.sourceMapMappings+=n(m.nameIndex-y),y=m.nameIndex),g=m,h.sourceMapDecodedMappings.push(g)}}function c(t){if(!x&&!e.positionIsSynthesized(t)){b&&e.performance.mark("beforeSourcemap");var n=e.getLineAndCharacterOfPosition(_,t);n.line++,n.character++;var r=i.getLine(),a=i.getColumn();!m||m.emittedLine!==r||m.emittedColumn!==a||m.sourceIndex===f&&(m.sourceLine>n.line||m.sourceLine===n.line&&m.sourceColumn>n.character)?(s(),m={emittedLine:r,emittedColumn:a,sourceLine:n.line,sourceColumn:n.character,sourceIndex:f}):(m.sourceLine=n.line,m.sourceColumn=n.character,m.sourceIndex=f),b&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function u(n){if(!x){d=(_=n).text;var r=v.sourceRoot?t.getCommonSourceDirectory():p,i=e.getRelativePathToDirectoryOrUrl(r,_.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);-1===(f=h.sourceMapSources.indexOf(i))&&(f=h.sourceMapSources.length,h.sourceMapSources.push(i),h.inputSourceFileNames.push(_.fileName),v.inlineSources&&h.sourceMapSourcesContent.push(_.text))}}function l(){if(!x)return s(),JSON.stringify({version:3,file:h.sourceMapFile,sourceRoot:h.sourceMapSourceRoot,sources:h.sourceMapSources,names:h.sourceMapNames,mappings:h.sourceMapMappings,sourcesContent:h.sourceMapSourcesContent})}var _,d,p,f,m,g,y,h,v=t.getCompilerOptions(),b=v.extendedDiagnostics,x=!(v.sourceMap||v.inlineSourceMap);return{initialize:function(n,i,a){x||(h&&o(),_=void 0,d=void 0,f=-1,m=void 0,g=r,y=0,(h={sourceMapFilePath:i,jsSourceMappingURL:v.inlineSourceMap?void 0:e.getBaseFileName(e.normalizeSlashes(i)),sourceMapFile:e.getBaseFileName(e.normalizeSlashes(n)),sourceMapSourceRoot:v.sourceRoot||"",sourceMapSources:[],inputSourceFileNames:[],sourceMapNames:[],sourceMapMappings:"",sourceMapSourcesContent:v.inlineSources?[]:void 0,sourceMapDecodedMappings:[]}).sourceMapSourceRoot=e.normalizeSlashes(h.sourceMapSourceRoot),h.sourceMapSourceRoot.length&&47!==h.sourceMapSourceRoot.charCodeAt(h.sourceMapSourceRoot.length-1)&&(h.sourceMapSourceRoot+=e.directorySeparator),v.mapRoot?(p=e.normalizeSlashes(v.mapRoot),272===a.kind&&(p=e.getDirectoryPath(e.getSourceFilePathInNewDir(a,t,p))),e.isRootedDiskPath(p)||e.isUrl(p)?h.jsSourceMappingURL=e.combinePaths(p,h.jsSourceMappingURL):(p=e.combinePaths(t.getCommonSourceDirectory(),p),h.jsSourceMappingURL=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(n)),e.combinePaths(p,h.jsSourceMappingURL),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):p=e.getDirectoryPath(e.normalizePath(n)))},reset:o,getSourceMapData:function(){return h},setSourceFile:u,emitPos:c,emitNodeWithSourceMap:function(e,t,n){if(x)return n(e,t);if(t){var r=t.emitNode,i=r&&r.flags,o=r&&r.sourceMapRange,s=o||t,l=s.pos,d=s.end,p=o&&o.source,f=_;p===f&&(p=void 0),p&&u(p),294!==t.kind&&0==(16&i)&&l>=0&&c(a(l)),p&&u(f),64&i?(x=!0,n(e,t),x=!1):n(e,t),p&&u(p),294!==t.kind&&0==(32&i)&&d>=0&&c(d),p&&u(f)}},emitTokenWithSourceMap:function(e,t,n,r,i){if(x)return i(t,n,r);var o=e&&e.emitNode,s=o&&o.flags,u=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t];return r=a(u?u.pos:r),0==(128&s)&&r>=0&&c(r),r=i(t,n,r),u&&(r=u.end),0==(256&s)&&r>=0&&c(r),r},getText:l,getSourceMappingURL:function(){if(!x){if(v.inlineSourceMap){var t=e.convertToBase64(l());return h.jsSourceMappingURL="data:application/json;base64,"+t}return h.jsSourceMappingURL}}}};var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"}(r||(r={}));!function(e){e.createCommentWriter=function(t,n){function r(t,n,r,o,s){var u=r&&r.leadingComments;e.some(u)&&(E&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(u,i),E&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),c(t,n,o,s);var l=r&&r.trailingComments;e.some(l)&&(E&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,a),E&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function i(e){2===e.kind&&S.writeLine(),o(e),e.hasTrailingNewLine||2===e.kind?S.writeLine():S.write(" ")}function a(e){S.isAtStartOfLine()||S.write(" "),o(e),e.hasTrailingNewLine&&S.writeLine()}function o(t){var n=s(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,S,0,n.length,N)}function s(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function c(e,t,n,r){2048&n?(O=!0,r(e,t),O=!1):r(e,t)}function u(e,t){F=!1,t?m(e,_):0===e&&m(e,l)}function l(e,t,n,r,i){x(e,t)&&_(e,t,n,r,i)}function _(t,r,i,a,o){F||(e.emitNewLineBeforeLeadingCommentOfPosition(D,S,o,t),F=!0),n&&n(t),e.writeCommentRange(T,D,S,t,r,N),n&&n(r),a?S.writeLine():3===i&&S.write(" ")}function d(e){g(e,p)}function p(t,r,i,a){S.isAtStartOfLine()||S.write(" "),n&&n(t),e.writeCommentRange(T,D,S,t,r,N),n&&n(r),a&&S.writeLine()}function f(t,r,i,a){n&&n(t),e.writeCommentRange(T,D,S,t,r,N),n&&n(r),a?S.writeLine():S.write(" ")}function m(t,n){-1!==A&&t===A||(y(t)?h(n):e.forEachLeadingCommentRange(T,t,n,t))}function g(t,n){(-1===P||t!==P&&t!==w)&&e.forEachTrailingCommentRange(T,t,n)}function y(t){return void 0!==C&&e.lastOrUndefined(C).nodePos===t}function h(t){var n=e.lastOrUndefined(C).detachedCommentEndPos;C.length-1?C.pop():C=void 0,e.forEachLeadingCommentRange(T,n,t,n)}function v(t){var n=e.emitDetachedComments(T,D,S,b,t,N,O);n&&(C?C.push(n):C=[n])}function b(t,r,i,a,o,s){n&&n(a),e.writeCommentRange(t,r,i,a,o,s),n&&n(o)}function x(t,n){return e.isRecognizedTripleSlashComment(T,t,n)}var S,k,T,D,C,E=t.extendedDiagnostics,N=e.getNewLineCharacter(t),A=-1,P=-1,w=-1,F=!1,O=t.removeComments;return{reset:function(){k=void 0,T=void 0,D=void 0,C=void 0},setWriter:function(e){S=e},setSourceFile:function(t){T=(k=t).text,D=e.getLineStarts(k),C=void 0},emitNodeWithComments:function(t,n,i){if(O)i(t,n);else if(n){F=!1;var a=n.emitNode,o=a&&a.flags,s=a&&a.commentRange||n,c=s.pos,l=s.end;if(c<0&&l<0||c===l)r(t,n,a,o,i);else{E&&e.performance.mark("preEmitNodeWithComment");var _=294!==n.kind,p=c<0||0!=(512&o)||10===n.kind,f=l<0||0!=(1024&o)||10===n.kind;p||u(c,_);var m=A,g=P,y=w;p||(A=c),f||(P=l,231===n.kind&&(w=l)),E&&e.performance.measure("commentTime","preEmitNodeWithComment"),r(t,n,a,o,i),E&&e.performance.mark("postEmitNodeWithComment"),A=m,P=g,w=y,!f&&_&&d(l),E&&e.performance.measure("commentTime","postEmitNodeWithComment")}}},emitBodyWithDetachedComments:function(t,n,r){E&&e.performance.mark("preEmitBodyWithDetachedComments");var i=n.pos,a=n.end,o=e.getEmitFlags(t),s=i<0||0!=(512&o),c=O||a<0||0!=(1024&o);s||v(n),E&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!O?(O=!0,r(t),O=!1):r(t),E&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(u(n.end,!0),F&&!S.isAtStartOfLine()&&S.writeLine()),E&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")},emitTrailingCommentsOfPosition:function(t,n){O||(E&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),g(t,n?p:f),E&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))},emitLeadingCommentsOfPosition:function(e){O||-1===e||u(e,!0)}}}}(r||(r={}));!function(e){function t(t,n,r,i,a,o){function s(t){var n=ke.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function c(){var t=e.createTextWriter(ve);t.trackSymbol=p,t.reportInaccessibleThisError=g,t.reportInaccessibleUniqueSymbolError=m,t.reportPrivateInBaseOfClassExpression=f,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,u(t)}function u(e){ge=e,_e=e.write,me=e.writeTextOfNode,de=e.writeLine,pe=e.increaseIndent,fe=e.decreaseIndent}function l(t){var n=ge;e.forEach(t,function(t){var n;230===t.kind?n=t.parent.parent:245===t.kind||246===t.kind||243===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(Ie,function(e){return e.node===n?e:void 0});if(!r&&Ne&&(r=e.forEach(Ne,function(e){return e.node===n?e:void 0})),r)if(242===r.node.kind)r.isVisible=!0;else{c();for(var i=r.indent;i;i--)pe();237===n.kind&&(e.Debug.assert(void 0===Ne),Ne=[]),P(n),237===n.kind&&(r.subModuleElementDeclarationEmitInfo=Ne,Ne=void 0),r.asynchronousOutput=ge.getText()}}),u(n)}function _(t){if(t){Ae||(Ae=e.createMap());for(var n=0,r=t;n")))}(t);case 161:return function(e){i(e.typeName),e.typeArguments&&(_e("<"),x(e.typeArguments,k),_e(">"))}(t);case 164:return function(e){_e("typeof "),i(e.exprName)}(t);case 166:return function(e){k(e.elementType),_e("[]")}(t);case 167:return function(e){_e("["),x(e.elementTypes,k),_e("]")}(t);case 168:return function(e){b(e.types," | ",k)}(t);case 169:return function(e){b(e.types," & ",k)}(t);case 170:return function(e){k(e.checkType),_e(" extends "),k(e.extendsType),_e(" ? ");var t=xe;xe=e.trueType,k(e.trueType),xe=t,_e(" : "),k(e.falseType)}(t);case 171:return function(e){_e("infer "),me(ke,e.typeParameter.name)}(t);case 172:return function(e){_e("("),k(e.type),_e(")")}(t);case 174:return function(t){_e(e.tokenToString(t.operator)),_e(" "),k(t.type)}(t);case 175:return function(e){k(e.objectType),_e("["),k(e.indexType),_e("]")}(t);case 176:return function(e){var t=xe;xe=e,_e("{"),de(),pe(),e.readonlyToken&&_e(37===e.readonlyToken.kind?"+readonly ":38===e.readonlyToken.kind?"-readonly ":"readonly "),_e("["),r(e.typeParameter.name),_e(" in "),k(e.typeParameter.constraint),_e("]"),e.questionToken&&_e(37===e.questionToken.kind?"+?":38===e.questionToken.kind?"-?":"?"),_e(": "),k(e.type),_e(";"),de(),fe(),_e("}"),xe=t}(t);case 162:case 163:return oe(t);case 165:return function(e){_e("{"),e.members.length&&(de(),pe(),v(e.members),fe()),_e("}")}(t);case 71:case 145:return i(t);case 160:return function(e){me(ke,e.parameterName),_e(" is "),k(e.type)}(t)}}function T(t){ke=t.text,Te=e.getLineStarts(t),De=t.identifiers,Ce=e.isExternalModule(t),xe=t,e.emitDetachedComments(ke,Te,ge,e.writeCommentRange,t,ve,!0),v(t.statements)}function D(e){if(!De.has(e))return e;for(var t=0;;){var n=e+"_"+ ++t;if(!De.has(n))return n}}function C(e,t,r,i){var a=D(t);return i&&_e("declare "),_e("const "),_e(a),_e(": "),ge.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,xe,6152,ge),_e(";"),de(),a}function E(t){if(e.isSourceFile(t.parent)&&(Se=!0),71===t.expression.kind)_e(t.isExportEquals?"export = ":"export default "),me(ke,t.expression);else{var r=C(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},Oe);_e(t.isExportEquals?"export = ":"export default "),_e(r)}_e(";"),de(),71===t.expression.kind&&l(n.collectLinkedAliases(t.expression))}function N(e){return n.isDeclarationVisible(e)}function A(e,t){if(t)P(e);else if(241===e.kind||272===e.parent.kind&&Ce){var r=void 0;if(Ne&&272!==e.parent.kind)Ne.push({node:e,outputPos:ge.getTextPos(),indent:ge.getIndent(),isVisible:r});else{if(242===e.kind){var i=e;i.importClause&&(r=i.importClause.name&&n.isDeclarationVisible(i.importClause)||I(i.importClause.namedBindings))}Ie.push({node:e,outputPos:ge.getTextPos(),indent:ge.getIndent(),isVisible:r})}}}function P(t){switch(t.kind){case 232:return re(t);case 212:return te(t);case 234:return G(t);case 233:return H(t);case 235:return z(t);case 236:return J(t);case 237:return j(t);case 241:return O(t);case 242:return M(t);default:e.Debug.fail("Unknown symbol kind")}}function w(t){if(272===t.parent.kind){var n=e.getModifierFlags(t);1&n&&(Se=!0,_e("export ")),512&n?_e("default "):234!==t.kind&&Oe&&_e("declare ")}}function F(e){8&e?_e("private "):16&e&&_e("protected "),32&e&&_e("static "),64&e&&_e("readonly "),128&e&&_e("abstract ")}function O(t){we(t),e.hasModifier(t,1)&&_e("export "),_e("import "),me(ke,t.name),_e(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(S(t.moduleReference,function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}),_e(";")):(_e("require("),L(t),_e(");")),ge.writeLine()}function I(e){if(e)return 244===e.kind?n.isDeclarationVisible(e):e.elements.some(function(e){return n.isDeclarationVisible(e)})}function M(t){if(we(t),e.hasModifier(t,1)&&_e("export "),_e("import "),t.importClause){var r=ge.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&me(ke,t.importClause.name),t.importClause.namedBindings&&I(t.importClause.namedBindings)&&(r!==ge.getTextPos()&&_e(", "),244===t.importClause.namedBindings.kind?(_e("* as "),me(ke,t.importClause.namedBindings.name)):(_e("{ "),x(t.importClause.namedBindings.elements,R,n.isDeclarationVisible),_e(" }"))),_e(" from ")}L(t),_e(";"),ge.writeLine()}function L(r){Se=Se||237!==r.kind;var i=241===r.kind?e.getExternalModuleImportEqualsDeclarationExpression(r):237===r.kind?r.name:r.moduleSpecifier;if(9===i.kind&&he&&(be.out||be.outFile)){var a=e.getExternalModuleNameFromDeclaration(t,n,r);if(a)return _e('"'),_e(a),void _e('"')}me(ke,i)}function R(e){e.propertyName&&(me(ke,e.propertyName),_e(" as ")),me(ke,e.name)}function B(e){R(e),l(n.collectLinkedAliases(e.propertyName||e.name))}function K(e){Se=!0,we(e),_e("export "),e.exportClause?(_e("{ "),x(e.exportClause.elements,B),_e(" }")):_e("*"),e.moduleSpecifier&&(_e(" from "),L(e)),_e(";"),ge.writeLine()}function j(t){for(we(t),w(t),e.isGlobalScopeAugmentation(t)?_e("global "):(_e(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?L(t):me(ke,t.name));t.body&&238!==t.body.kind;)t=t.body,_e("."),me(ke,t.name);var n=xe;t.body?(xe=t,_e(" {"),de(),pe(),v(t.body.statements),fe(),_e("}"),de(),xe=n):_e(";")}function z(t){var n=xe;xe=t,we(t),w(t),_e("type "),me(ke,t.name),V(t.typeParameters),_e(" = "),S(t.type,function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}),_e(";"),de(),xe=n}function J(t){we(t),w(t),e.isConst(t)&&_e("const "),_e("enum "),me(ke,t.name),_e(" {"),de(),pe(),v(t.members),fe(),_e("}"),de()}function U(t){we(t),me(ke,t.name);var r=n.getConstantValue(t);void 0!==r&&(_e(" = "),_e(e.getTextOfConstantValue(r))),_e(","),de()}function q(t){return 153===t.parent.kind&&e.hasModifier(t.parent,8)}function V(t){t&&(_e("<"),x(t,function(t){function n(){var n;switch(t.parent.kind){case 233:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 234:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 158:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 157:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 153:case 152: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:233===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 232:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 235: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}}pe(),we(t),fe(),me(ke,t.name),t.constraint&&!q(t)&&(_e(" extends "),162===t.parent.kind||163===t.parent.kind||t.parent.parent&&165===t.parent.parent.kind?(e.Debug.assert(153===t.parent.kind||152===t.parent.kind||162===t.parent.kind||163===t.parent.kind||157===t.parent.kind||158===t.parent.kind),k(t.constraint)):S(t.constraint,n)),t.default&&!q(t)&&(_e(" = "),162===t.parent.kind||163===t.parent.kind||t.parent.parent&&165===t.parent.parent.kind?(e.Debug.assert(153===t.parent.kind||152===t.parent.kind||162===t.parent.kind||163===t.parent.kind||157===t.parent.kind||158===t.parent.kind),k(t.default)):S(t.default,n))}),_e(">"))}function W(t,n){t&&(_e(n?" implements ":" extends "),x(t,function(t){e.isEntityNameExpression(t.expression)?S(t,function(){var r;return r=233===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)}}):n||95!==t.expression.kind||_e("null")}))}function H(t){var n=xe;xe=t;var r,i=e.getClassExtendsHeritageClauseElement(t);i&&!e.isEntityNameExpression(i.expression)&&(r=95===i.expression.kind?"null":C(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 237===e.kind}))),we(t),w(t),e.hasModifier(t,128)&&_e("abstract "),_e("class "),me(ke,t.name),V(t.typeParameters),i&&(e.isEntityNameExpression(i.expression)?W([i],!1):(_e(" extends "),_e(r),i.typeArguments&&(_e("<"),x(i.typeArguments,k),_e(">")))),W(e.getClassImplementsHeritageClauseElements(t),!0),_e(" {"),de(),pe(),function(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&$(t)})}(e.getFirstConstructorWithBody(t)),v(t.members),fe(),_e("}"),de(),xe=n}function G(t){we(t),w(t),_e("interface "),me(ke,t.name);var n=xe;xe=t,V(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&W(r,!1),_e(" {"),de(),pe(),v(t.members),fe(),_e("}"),de(),xe=n}function $(t){e.hasDynamicName(t)&&!n.isLateBound(t)||(we(t),F(e.getModifierFlags(t)),Y(t),_e(";"),de())}function X(t){return!!t&&e.isBindingPattern(t)&&e.some(t.elements,function(t){return!e.isOmittedExpression(t)&&Q(t)})}function Q(e){return n.isDeclarationVisible(e)||X(e.name)}function Y(t){function r(n){return 230===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:151===t.kind||150===t.kind||148===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:233===t.parent.kind||148===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 i(n){return 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:233===t.parent.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}if(!e.hasDynamicName(t)||n.isLateBound(t)){var a,o=e.getAllAccessorDeclarations(t.parent.members,t);if(t===o.firstAccessor){if(we(o.getAccessor),we(o.setAccessor),F(e.getModifierFlags(t)|(o.setAccessor?0:64)),ie(t,function(e){var n=i(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}),!e.hasModifier(t,8)){a=t;var s=r(t);if(!s){var c=155===t.kind?o.setAccessor:o.getAccessor;(s=r(c))&&(a=c)}y(t,s,function(t){var n;return n=156===a.kind?e.hasModifier(a,32)?t.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.hasModifier(a,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:a.name,typeName:a.name}})}_e(";"),de()}}}function re(t){function r(n){return e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:233===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}e.hasDynamicName(t)&&!n.isLateBound(t)||n.isImplementationOfOverload(t)||(we(t),232===t.kind?w(t):153!==t.kind&&154!==t.kind||F(e.getModifierFlags(t)),232===t.kind?(_e("function "),me(ke,t.name)):154===t.kind?_e("constructor"):(ie(t,function(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}),e.hasQuestionToken(t)&&_e("?")),se(t))}function ie(t,r){e.hasDynamicName(t)?(e.Debug.assert(n.isLateBound(t)),ae(t,r)):me(ke,t.name)}function ae(e,t){ge.getSymbolAccessibilityDiagnostic=t;var r=e.name.expression;d(n.isEntityNameVisible(r,xe)),_(n.getTypeReferenceDirectivesForEntityName(r)),me(ke,e.name)}function oe(e){we(e),se(e)}function se(t){var n=xe;xe=t;var r=!1;if(159===t.kind)F(e.getModifierFlags(t)),_e("[");else{if(154===t.kind&&e.hasModifier(t,8))return _e("();"),void de();if(158===t.kind||163===t.kind)_e("new ");else if(162===t.kind){var i=ge.getText();t.typeParameters&&"<"===i.charAt(i.length-1)&&(r=!0,_e("("))}V(t.typeParameters),_e("(")}x(t.parameters,ce),_e(159===t.kind?"]":")");var a=162===t.kind||163===t.kind;a||165===t.parent.kind?t.type&&(_e(a?" => ":": "),k(t.type)):154===t.kind||e.hasModifier(t,8)||h(t,function(n){var r;switch(t.kind){case 158: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 157: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 159: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 153:case 152: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:233===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 232: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}}),xe=n,a?r&&_e(")"):(_e(";"),de())}function ce(t){function r(n){switch(t.parent.kind){case 154: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 158: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 157: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 159: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 153:case 152: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:233===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 232: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 i(e){if(178===e.kind)_e("{"),x(e.elements,a),_e("}");else if(179===e.kind){_e("[");var t=e.elements;x(t,a),t&&t.hasTrailingComma&&_e(", "),_e("]")}}function a(t){204===t.kind?_e(" "):180===t.kind&&(t.propertyName&&(me(ke,t.propertyName),_e(": ")),t.name&&(e.isBindingPattern(t.name)?i(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&_e("..."),me(ke,t.name))))}pe(),we(t),t.dotDotDotToken&&_e("..."),e.isBindingPattern(t.name)?i(t.name):me(ke,t.name),n.isOptionalParameter(t)&&_e("?"),fe(),162===t.parent.kind||163===t.parent.kind||165===t.parent.parent.kind?Z(t):e.hasModifier(t.parent,8)||y(t,t.type,function(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0})}function ue(e){switch(e.kind){case 232:case 237:case 241:case 234:case 233:case 235:case 236:return A(e,N(e));case 212:return A(e,ee(e));case 242:return A(e,!e.importClause);case 248:return K(e);case 154:case 153:case 152:return re(e);case 158:case 157:case 159:return oe(e);case 155:case 156:return ne(e);case 151:case 150:return $(e);case 271:return U(e);case 247:return E(e);case 272:return T(e)}}function le(n,r,a){var o,s=!1;return n.isDeclarationFile?o=n.fileName:e.forEachEmittedFile(t,function(t,i){var a=273===i.kind;a&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),o=t.declarationFilePath||t.jsFilePath,s=a)},n,a),o&&(o=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(i)),o,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Me+='/// '+ve),s}var _e,de,pe,fe,me,ge,ye=273===a.kind?a.sourceFiles:[a],he=273===a.kind,ve=t.getNewLine(),be=t.getCompilerOptions();c();var xe,Se,ke,Te,De,Ce,Ee,Ne,Ae,Pe=!1,we=be.removeComments?e.noop:function(t){if(t){var n=e.getJSDocCommentRanges(t,ke);e.emitNewLineBeforeLeadingComments(Te,ge,t,n),e.emitComments(ke,Te,ge,n,!1,!0,ve,e.writeCommentRange)}},Fe=be.stripInternal?function(t){if(t){var n=e.getLeadingCommentRanges(ke,t.pos);if(e.forEach(n,s))return;ue(t)}}:ue,Oe=!0,Ie=[],Me="",Le=[],Re=!1,Be=[];return e.forEach(ye,function(n){if(!e.isSourceFileJavaScript(n)){if(be.noResolve||e.forEach(n.referencedFiles,function(r){var i=e.tryResolveScriptReference(t,n,r);i&&!e.contains(Le,i)&&(le(i,!he&&!Re,o)&&(Re=!0),Le.push(i))}),Se=!1,he&&e.isExternalModule(n)?e.isExternalModule(n)&&(Oe=!1,_e('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),de(),pe(),T(n),fe(),_e("}"),de()):(Oe=!0,T(n)),Ie.length){var r=ge;e.forEach(Ie,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(242===t.node.kind),c(),e.Debug.assert(0===t.indent||1===t.indent&&he);for(n=0;n'+ve}),{reportedDeclarationError:Pe,moduleElementDeclarationEmitInfo:Be,synchronousDeclarationOutput:ge.getText(),referencesOutput:Me}}e.getDeclarationDiagnostics=function(n,r,i){var a=e.createDiagnosticCollection();return e.forEachEmittedFile(n,function(e,i){var o=e.declarationFilePath;t(n,r,a,o,i,!1)},i),a.getDiagnostics(i?i.fileName:void 0)},e.writeDeclarationFile=function(n,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=t(i,a,o,n,r,s),l=u.reportedDeclarationError||i.isEmitBlocked(n)||i.getCompilerOptions().noEmit;if(!l||s){var _=273===r.kind?r.sourceFiles:[r],d=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(i,o,n,d,i.getCompilerOptions().emitBOM,_)}return l}}(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){if(s.length&&(m=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)))return m}else for(var u=0,l=s;u"),ir(),h(e.type)}function ee(e){yi("function"),Jn(e,e.parameters),yi(":"),h(e.type)}function te(e){yi("?"),h(e.type)}function ne(e){yi("!"),h(e.type)}function re(e){h(e.type),yi("=")}function ie(e){tr("new"),ir(),zn(e,e.typeParameters),Jn(e,e.parameters),ir(),Zn("=>"),ir(),h(e.type)}function ae(e){tr("typeof"),ir(),h(e.exprName)}function oe(t){Zn("{");var n=1&e.getEmitFlags(t)?448:65;Wn(t,t.members,262144|n),Zn("}")}function se(e){h(e.elementType),Zn("["),Zn("]")}function ce(e){yi("..."),h(e.type)}function ue(e){Zn("["),Wn(e,e.elementTypes,336),Zn("]")}function le(e){Wn(e,e.types,260)}function _e(e){Wn(e,e.types,264)}function de(e){h(e.checkType),ir(),tr("extends"),ir(),h(e.extendsType),ir(),Zn("?"),ir(),h(e.trueType),ir(),Zn(":"),ir(),h(e.falseType)}function pe(e){tr("infer"),ir(),h(e.typeParameter)}function fe(e){Zn("("),h(e.type),Zn(")")}function me(){tr("this")}function ge(e){_r(e.operator,tr),ir(),h(e.type)}function ye(e){h(e.objectType),Zn("["),h(e.indexType),Zn("]")}function he(t){var n=e.getEmitFlags(t);Zn("{"),1&n?ir():(or(),sr()),t.readonlyToken&&(h(t.readonlyToken),132!==t.readonlyToken.kind&&tr("readonly"),ir()),Zn("["),x(3,t.typeParameter),Zn("]"),t.questionToken&&(h(t.questionToken),55!==t.questionToken.kind&&Zn("?")),Zn(":"),ir(),h(t.type),vi(),1&n?ir():(or(),cr()),Zn("}")}function ve(e){b(e.literal)}function be(e){Zn("{"),Wn(e,e.elements,262576),Zn("}")}function xe(e){Zn("["),Wn(e,e.elements,262448),Zn("]")}function Se(e){y(e.dotDotDotToken),e.propertyName&&(h(e.propertyName),Zn(":"),ir()),h(e.name),On(e.initializer)}function ke(e){Hn(e,e.elements,4466|(e.multiLine?32768:0))}function Te(t){var n=65536&e.getEmitFlags(t);n&&sr();var r=t.multiLine?32768:0,i=Ur.languageVersion>=1?32:0;Wn(t,t.properties,263122|i|r),n&&cr()}function De(t){var n=!1,r=!1;if(!(131072&e.getEmitFlags(t))){var i=t.expression.end,a=e.skipTrivia(Ur.text,t.expression.end)+1,o=e.createToken(23);o.pos=i,o.end=a,n=xr(t,t.expression,o),r=xr(t,o,t.name)}b(t.expression),mr(n),Zn(!n&&Ce(t.expression)?"..":"."),mr(r),h(t.name),gr(n,r)}function Ce(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=Dr(n);return!n.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(23))}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 Ee(e){b(e.expression),Zn("["),b(e.argumentExpression),Zn("]")}function Ne(e){b(e.expression),jn(e,e.typeArguments),Hn(e,e.arguments,1296)}function Ae(e){tr("new"),ir(),b(e.expression),jn(e,e.typeArguments),Hn(e,e.arguments,9488)}function Pe(e){b(e.tag),ir(),b(e.template)}function we(e){Zn("<"),h(e.type),Zn(">"),b(e.expression)}function Fe(e){Zn("("),b(e.expression),Zn(")")}function Oe(e){Dt(e)}function Ie(e){Kn(e,e.decorators),wn(e,e.modifiers),Et(e,Me)}function Me(e){zn(e,e.typeParameters),qn(e,e.parameters),Fn(e.type),ir(),h(e.equalsGreaterThanToken)}function Le(e){tr("delete"),ir(),b(e.expression)}function Re(e){tr("typeof"),ir(),b(e.expression)}function Be(e){tr("void"),ir(),b(e.expression)}function Ke(e){tr("await"),ir(),b(e.expression)}function je(e){_r(e.operator,nr),ze(e)&&ir(),b(e.operand)}function ze(e){var t=e.operand;return 196===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Je(e){b(e.operand),_r(e.operator,nr)}function Ue(e){var t=26!==e.operatorToken.kind,n=xr(e,e.left,e.operatorToken),r=xr(e,e.operatorToken,e.right);b(e.left),mr(n,t?" ":void 0),gi(e.operatorToken.pos),lr(e.operatorToken,nr),mi(e.operatorToken.end,!0),mr(r," "),b(e.right),gr(n,r)}function qe(e){var t=xr(e,e.condition,e.questionToken),n=xr(e,e.questionToken,e.whenTrue),r=xr(e,e.whenTrue,e.colonToken),i=xr(e,e.colonToken,e.whenFalse);b(e.condition),mr(t," "),h(e.questionToken),mr(n," "),b(e.whenTrue),gr(t,n),mr(r," "),h(e.colonToken),mr(i," "),b(e.whenFalse),gr(r,i)}function Ve(e){h(e.head),Wn(e,e.templateSpans,131072)}function We(e){tr("yield"),h(e.asteriskToken),Ln(e.expression)}function He(e){Zn("..."),b(e.expression)}function Ge(e){It(e)}function $e(e){b(e.expression),jn(e,e.typeArguments)}function Xe(e){b(e.expression),e.type&&(ir(),tr("as"),ir(),h(e.type))}function Qe(e){b(e.expression),nr("!")}function Ye(e){ur(e.keywordToken,e.pos,Zn),Zn("."),h(e.name)}function Ze(e){b(e.expression),h(e.literal)}function et(e){ur(17,e.pos,Zn,e),tt(e,!e.multiLine&&Sr(e)),sr(),gi(e.statements.end),cr(),ur(18,e.statements.end,Zn,e)}function tt(t,n){var r=n||1&e.getEmitFlags(t)?384:65;Wn(t,t.statements,r)}function nt(e){wn(e,e.modifiers),h(e.declarationList),vi()}function rt(){vi()}function it(e){b(e.expression),vi()}function at(e){var t=ur(90,e.pos,tr,e);ir(),ur(19,t,Zn,e),b(e.expression),ur(20,e.expression.end,Zn,e),Bn(e,e.thenStatement),e.elseStatement&&(dr(e),ur(82,e.thenStatement.end,tr,e),215===e.elseStatement.kind?(ir(),h(e.elseStatement)):Bn(e,e.elseStatement))}function ot(t){tr("do"),Bn(t,t.statement),e.isBlock(t.statement)?ir():dr(t),tr("while"),ir(),Zn("("),b(t.expression),Zn(");")}function st(e){tr("while"),ir(),Zn("("),b(e.expression),Zn(")"),Bn(e,e.statement)}function ct(e){var t=ur(88,e.pos,tr);ir(),ur(19,t,Zn,e),_t(e.initializer),vi(),Ln(e.condition),vi(),Ln(e.incrementor),Zn(")"),Bn(e,e.statement)}function ut(e){var t=ur(88,e.pos,tr);ir(),ur(19,t,Zn),_t(e.initializer),ir(),tr("in"),ir(),b(e.expression),ur(20,e.expression.end,Zn),Bn(e,e.statement)}function lt(e){var t=ur(88,e.pos,tr);ir(),Rn(e.awaitModifier),ur(19,t,Zn),_t(e.initializer),ir(),tr("of"),ir(),b(e.expression),ur(20,e.expression.end,Zn),Bn(e,e.statement)}function _t(e){void 0!==e&&(231===e.kind?h(e):b(e))}function dt(e){ur(77,e.pos,tr),Mn(e.label),vi()}function pt(e){ur(72,e.pos,tr),Mn(e.label),vi()}function ft(t,n,r,i){var a=i&&e.getParseTreeNode(i);return a&&a.kind===i.kind&&(n=e.skipTrivia(Ur.text,n)),n=ur(t,n,r,i),a&&a.kind===i.kind&&mi(n,!0),n}function mt(e){ft(96,e.pos,tr,e),Ln(e.expression),vi()}function gt(e){tr("with"),ir(),Zn("("),b(e.expression),Zn(")"),Bn(e,e.statement)}function yt(e){var t=ur(98,e.pos,tr);ir(),ur(19,t,Zn),b(e.expression),ur(20,e.expression.end,Zn),ir(),h(e.caseBlock)}function ht(e){h(e.label),Zn(":"),ir(),h(e.statement)}function vt(e){tr("throw"),Ln(e.expression),vi()}function bt(e){tr("try"),ir(),h(e.tryBlock),e.catchClause&&(dr(e),h(e.catchClause)),e.finallyBlock&&(dr(e),tr("finally"),ir(),h(e.finallyBlock))}function xt(e){ur(78,e.pos,tr),vi()}function St(e){h(e.name),Fn(e.type),On(e.initializer)}function kt(t){tr(e.isLet(t)?"let":e.isConst(t)?"const":"var"),ir(),Wn(t,t.declarations,272)}function Tt(e){Dt(e)}function Dt(e){Kn(e,e.decorators),wn(e,e.modifiers),tr("function"),y(e.asteriskToken),ir(),v(e.name),Et(e,Nt)}function Ct(e,t){Pt(t)}function Et(t,n){var r=t.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(t);i&&sr(),Cr(t),n(t),ri?ri(4,r,Ct):Pt(r),Er(t),i&&cr()}else n(t),ir(),b(r);else n(t),vi()}function Nt(e){zn(e,e.typeParameters),Jn(e,e.parameters),Fn(e.type)}function At(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,Ur))return!1;if(yr(t,t.statements,2)||vr(t,t.statements,2))return!1;for(var n,r=0,i=t.statements;r0&&h(e.attributes),Zn("/>")}function an(e){h(e.openingFragment),Wn(e,e.children,131072),h(e.closingFragment)}function on(t){Zn("<"),e.isJsxOpeningElement(t)&&(pn(t.tagName),t.attributes.properties&&t.attributes.properties.length>0&&(ir(),h(t.attributes))),Zn(">")}function sn(e){hi(),Qr.writeLiteral(Tr(e,!0))}function cn(t){Zn("")}function un(e){Wn(e,e.properties,131328)}function ln(e){h(e.name),In("=",Zn,e.initializer,h)}function _n(e){Zn("{..."),b(e.expression),Zn("}")}function dn(e){e.expression&&(Zn("{"),y(e.dotDotDotToken),b(e.expression),Zn("}"))}function pn(e){71===e.kind?b(e):h(e)}function fn(e){tr("case"),ir(),b(e.expression),Zn(":"),gn(e,e.statements)}function mn(e){tr("default"),Zn(":"),gn(e,e.statements)}function gn(t,n){var r=1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],Ur));n.length>0&&mi(n.pos);var i=81985;r&&(ir(),i&=-66),Wn(t,n,i)}function yn(e){ir(),_r(e.token,tr),ir(),Wn(e,e.types,272)}function hn(e){var t=ur(74,e.pos,tr);ir(),e.variableDeclaration&&(ur(19,t,Zn),h(e.variableDeclaration),ur(20,e.variableDeclaration.end,Zn),ir()),h(e.block)}function vn(t){h(t.name),Zn(":"),ir();var n=t.initializer;if(mi&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);mi(r.pos)}b(n)}function bn(e){h(e.name),e.objectAssignmentInitializer&&(ir(),Zn("="),ir(),b(e.objectAssignmentInitializer))}function xn(e){e.expression&&(Zn("..."),b(e.expression))}function Sn(e){h(e.name),On(e.initializer)}function kn(t){or();var n=t.statements;!fi||0!==n.length&&e.isPrologueDirective(n[0])&&!e.nodeIsSynthesized(n[0])?Tn(t):fi(t,n,Tn)}function Tn(t){var n=t.statements;Cr(t),w(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});Wn(t,n,1,-1===r?n.length:r),Er(t)}function Dn(e){b(e.expression)}function Cn(e){Hn(e,e.elements,272)}function En(t,n,r){for(var i=0;i0)&&or(),h(a),r&&r.set(a.expression.text,!0))}return t.length}function Nn(t){if(e.isSourceFile(t))f(t),En(t.statements);else for(var n=e.createMap(),r=0,i=t.sourceFiles;r=r.length||0===c;if(l&&16384&i)return si&&si(r),void(ci&&ci(r));if(7680&i&&Zn(o(i)),si&&si(r),l)1&i?or():128&i&&!(262144&i)&&ir();else{var _=0==(131072&i),d=_;yr(n,r,i)?(or(),d=!1):128&i&&ir(),64&i&&sr();for(var p=void 0,f=void 0,m=0;m"],e[4096]=["[","]"],e}();e.forEachEmittedFile=t,e.emitFiles=function(n,r,o,s,c){function u(t,n,i){var a=273===i.kind?i:void 0,o=272===i.kind?i:void 0,s=a?a.sourceFiles:[o];b.initialize(t,n,i),a?(_=e.createMap(),d=!1,T.writeBundle(a,v)):(d=!0,T.writeFile(o,v)),v.writeLine();var c=b.getSourceMappingURL();c&&v.write("//# sourceMappingURL="+c),p.sourceMap&&!p.inlineSourceMap&&e.writeFile(r,y,n,b.getText(),!1,s),m&&m.push(b.getSourceMapData()),e.writeFile(r,y,t,v.getText(),p.emitBOM,s),b.reset(),v.clear(),l=void 0,_=void 0,d=!1}var l,_,d,p=r.getCompilerOptions(),f=e.getEmitModuleKind(p),m=p.sourceMap||p.inlineSourceMap?[]:void 0,g=p.listEmittedFiles?[]:void 0,y=e.createDiagnosticCollection(),h=r.getNewLine(),v=e.createTextWriter(h),b=e.createSourceMapWriter(r,v),x=!1,S=e.getSourceFilesToEmit(r,o),k=e.transformNodes(n,r,p,S,c,!1),T=a(p,{hasGlobalName:n.hasGlobalName,onEmitNode:k.emitNodeWithNotification,substituteNode:k.substituteNode,onEmitSourceMapOfNode:b.emitNodeWithSourceMap,onEmitSourceMapOfToken:b.emitTokenWithSourceMap,onEmitSourceMapOfPosition:b.emitPos,onEmitHelpers:function(t,n){var r=!1,i=273===t.kind?t:void 0;if(!i||f!==e.ModuleKind.None){for(var a=i?i.sourceFiles.length:1,o=0;oe.getRootLength(t)&&!r(t)&&(i(e.getDirectoryPath(t)),e.sys.createDirectory(t))}function a(t,n,r){s||(s=e.createMap());var i=e.sys.createHash(n),a=e.sys.getModifiedTime(t);if(a){var o=s.get(t);if(o&&o.byteOrderMark===r&&o.hash===i&&o.mtime.getTime()===a.getTime())return}e.sys.writeFile(t,n,r);var c=e.sys.getModifiedTime(t);s.set(t,{hash:i,byteOrderMark:r,mtime:c})}function o(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var s,c=e.createMap(),u=e.getNewLineCharacter(t),l=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:function(r,i,a){var o;try{e.performance.mark("beforeIORead"),o=e.sys.readFile(r,t.charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(r,o,i,n):void 0},getDefaultLibLocation:o,getDefaultLibFileName:function(t){return e.combinePaths(o(),e.getDefaultLibFileName(t))},writeFile:function(n,r,o,s){try{e.performance.mark("beforeIOWrite"),i(e.getDirectoryPath(e.normalizePath(n))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?a(n,r,o):e.sys.writeFile(n,r,o),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){s&&s(e.message)}},getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:function(t){return e.sys.useCaseSensitiveFileNames?t:t.toLowerCase()},getNewLine:function(){return u},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+u)},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:l}}function i(t,n){var r=e.DiagnosticCategory[t.category].toLowerCase()+" TS"+t.code+": "+c(t.messageText,n.getNewLine())+n.getNewLine();if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName;return e.convertToRelativePath(s,n.getCurrentDirectory(),function(e){return n.getCanonicalFileName(e)})+"("+(a+1)+","+(o+1)+"): "+r}return r}function a(t){switch(t){case e.DiagnosticCategory.Warning:return m.Yellow;case e.DiagnosticCategory.Error:return m.Red;case e.DiagnosticCategory.Message:return m.Blue}}function o(e,t){return t+e+h}function s(e,t){for(;e.length=4,A=(T+1+"").length;N&&(A=Math.max(v.length,A)),_+=n.getNewLine();for(var P=x;P<=T;P++){N&&x+10||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var l=v().getEmitResolver(a.outFile||a.out?void 0:n,i);e.performance.mark("beforeEmit");var _=o?[]:e.getTransformers(a,s),d=e.emitFiles(l,y(r),n,o,_);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}function k(e){return T(c(e))}function T(e){return Je.get(e)}function D(t,n,r){return t?n(t,r):e.sortAndDeduplicateDiagnostics(e.flatMap(ue.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),n(e,r)}))}function C(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=w(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function E(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(de=void 0,_e=void 0),t}}function N(e,t){return I(e,t,ge,A)}function A(t,n){return E(function(){if(a.skipLibCheck&&t.isDeclarationFile||a.skipDefaultLibCheck&&t.hasNoDefaultLib)return e.emptyArray;var r=v();e.Debug.assert(!!t.bindDiagnostics);var i=e.isCheckJsEnabledForFile(t,a),o=3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||i,s=o?t.bindDiagnostics:e.emptyArray,c=o?r.getDiagnostics(t,n):e.emptyArray,u=ve.getDiagnostics(t.fileName),l=Pe.getDiagnostics(t.fileName),_=s.concat(c,u,l);return i&&(_=e.concatenate(_,t.jsDocDiagnostics)),e.filter(_,P)})}function P(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=f.exec(o);if(!s)return!0;if(s[3])return!1;a--}return!0}function w(t){return E(function(){function n(t){switch(u.kind){case 148:case 151:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 153:case 152:case 154:case 155:case 156:case 190:case 232:case 191:case 230: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 241:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 247:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 266:if(108===t.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 234:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 237:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 235:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 236:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 207:return void c.push(s(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 206:return void c.push(s(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 188: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 233:case 153:case 152:case 154:case 155:case 156:case 190:case 232:case 191:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 212:if(t===u.modifiers)return i(t,212===u.kind);break;case 151:if(t===u.modifiers){for(var r=0,l=t;r0),_.path=n,o.useCaseSensitiveFileNames()){var m=n.toLowerCase(),g=Ue.get(m);g?J(t,g.fileName,i,s,c):Ue.set(m,_)}Ee=Ee||_.hasNoDefaultLib,a.noResolve||(V(_,r),W(_)),X(_),r?me.unshift(_):me.push(_)}return _}function V(n,r){e.forEach(n.referencedFiles,function(e){z(t(e.fileName,n.fileName),r,void 0,n,e.pos,e.end)})}function W(t){for(var n=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=Le(n,t.fileName),i=0;ibe,h=m&&!_(a,u)&&!a.noResolve&&on&&(Pe.add(e.createDiagnosticForNodeInSourceFile(a.configFile,f.initializer.elements[n],r,i,o,s)),c=!1)}}c&&Pe.add(e.createCompilerDiagnostic(r,i,o,s))}function ee(t,n,r,i){for(var a=!0,o=0,s=te();o1})&&ne(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!a.noEmit&&a.allowJs&&a.declaration&&ne(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),a.checkJs&&!a.allowJs&&Pe.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),a.emitDeclarationOnly&&(a.declaration||ne(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDeclarationOnly","declarations"),a.noEmit&&ne(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),a.emitDecoratorMetadata&&!a.experimentalDecorators&&ne(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),a.jsxFactory?(a.reactNamespace&&ne(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(a.jsxFactory,l)||re("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,a.jsxFactory)):a.reactNamespace&&!e.isIdentifierText(a.reactNamespace,l)&&re("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,a.reactNamespace),!a.noEmit&&!a.suppressOutputPathCheck){var b=y(),x=e.createMap();e.forEachEmittedFile(b,function(e){a.emitDeclarationOnly||t(e.jsFilePath,x),t(e.declarationFilePath,x)})}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),ue},e.getResolutionDiagnostic=_}(r||(r={}));!function(e){e.getFileEmitOutput=function(e,t,n,r,i){var a=[],o=e.emit(t,function(e,t,n){a.push({name:e,writeByteOrderMark:n,text:t})},r,n,i);return{outputFiles:a,emitSkipped:o.emitSkipped}}}(r||(r={})),function(e){!function(t){function n(t,n,r){function i(t){a||(a=e.createMap()),a.set(t,!0)}var a;if(n.imports&&n.imports.length>0)for(var o=t.getTypeChecker(),s=0,c=n.imports;s0)for(var p=0,f=n.referencedFiles;p0?o(l.outputFiles[0].text):u}return i.set(r.path,c),!u||c!==u}function o(t,n){if(!t.allFileNames){var r=n.getSourceFiles();t.allFileNames=r===e.emptyArray?e.emptyArray:r.map(function(e){return e.fileName})}return t.allFileNames}function s(t,n){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0];return e[1].has(n)?t:void 0}))}function c(t){for(var n=0,r=t.statements;n0;){var f=p.pop();if(!d.has(f)){var m=n.getSourceFileByPath(f);d.set(f,m),m&&a(t,n,m,i,o,l)&&p.push.apply(p,s(t,f))}}return e.arrayFrom(e.mapDefinedIterator(d.values(),function(e){return e}))}t.canReuseOldState=r,t.create=function(t,i,a){for(var o=e.createMap(),s=t.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():void 0,c=e.createMap(),u=r(s,a),l=0,_=t.getSourceFiles();l<_.length;l++){var d=_[l],p=d.version,f=u&&a.fileInfos.get(d.path);if(s){var m=n(t,d,i);m&&s.set(d.path,m)}o.set(d.path,{version:p,signature:f&&f.signature})}return{fileInfos:o,referencedMap:s,hasCalledUpdateShapeSignature:c,allFilesExcludingDefaultLibraryFile:void 0,allFileNames:void 0}},t.getFilesAffectedBy=function(t,n,r,o,s,c){var u=c||e.createMap(),d=n.getSourceFileByPath(r);if(!d)return e.emptyArray;if(!a(t,n,d,u,o,s))return[d];var p=(t.referencedMap?_:l)(t,n,d,u,o,s);return c||i(t,u),p},t.updateSignaturesFromCache=i,t.getAllDependencies=function(t,n,r){var i=n.getCompilerOptions();if(i.outFile||i.out)return o(t,n);if(!t.referencedMap||!e.isExternalModule(r)&&!c(r))return o(t,n);for(var a=e.createMap(),s=[r.path];s.length;){var u=s.pop();if(!a.has(u)){a.set(u,!0);var l=t.referencedMap.get(u);if(l)for(var _=l.keys(),d=_.next(),p=d.value,f=d.done;!f;m=_.next(),p=m.value,f=m.done,m)s.push(p)}}return e.arrayFrom(e.mapDefinedIterator(a.keys(),function(e){var t=n.getSourceFileByPath(e);return t?t.fileName:e}));var m}}(e.BuilderState||(e.BuilderState={}))}(r||(r={}));!function(e){function t(t,n){return t===n||t&&n&&t.size===n.size&&!e.forEachKey(t,function(e){return!n.has(e)})}function n(n,r,i){var a=e.BuilderState.create(n,r,i);a.program=n;var o=n.getCompilerOptions();o.outFile||o.out||(a.semanticDiagnosticsPerFile=e.createMap()),a.changedFilesSet=e.createMap();var s=e.BuilderState.canReuseOldState(a.referencedMap,i),c=s&&i.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile;s&&(i.currentChangedFilePath||e.Debug.assert(!(i.affectedFiles||i.currentAffectedFilesSignatures&&i.currentAffectedFilesSignatures.size),"Cannot reuse if only few affected files of currentChangedFile were iterated"),c&&e.Debug.assert(!e.forEachKey(i.changedFilesSet,function(e){return i.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),e.copyEntries(i.changedFilesSet,a.changedFilesSet));var u=a.referencedMap,l=s&&i.referencedMap;return a.fileInfos.forEach(function(n,r){var o,_;if(!s||!(o=i.fileInfos.get(r))||o.version!==n.version||!t(_=u&&u.get(r),l&&l.get(r))||_&&e.forEachKey(_,function(e){return!a.fileInfos.has(e)&&i.fileInfos.has(e)}))a.changedFilesSet.set(r,!0);else if(c){var d=i.semanticDiagnosticsPerFile.get(r);d&&a.semanticDiagnosticsPerFile.set(r,d)}}),a}function r(t,n){e.Debug.assert(!n||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==n||!t.semanticDiagnosticsPerFile.has(n.path))}function i(t,n,r){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,o=t.semanticDiagnosticsPerFile,s=t.affectedFilesIndex;s0;n--)if(0===(r=t.indexOf(e.directorySeparator,r)+1))return!1;return!0}function p(e){return d(e,47===e.charCodeAt(0)?3:1)}function f(e,t){return p(t)||(e.ignore=!0),e}function m(t,n){if(o(q,n))return{dir:U,dirPath:q};for(var r=e.getDirectoryPath(e.getNormalizedAbsolutePath(t,B())),i=e.getDirectoryPath(n);e.stringContains(i,"/node_modules/");)r=e.getDirectoryPath(r),i=e.getDirectoryPath(i);if(l(i))return f({dir:r,dirPath:i},e.getDirectoryPath(i));if(void 0!==q)for(;!o(i,q);){var a=e.getDirectoryPath(i);if(a===i)break;i=a,r=e.getDirectoryPath(r)}return f({dir:r,dirPath:i},i)}function g(t){return e.fileExtensionIsOneOf(t,j)}function y(e,t){for(var n=e.failedLookupLocations,r=t.failedLookupLocations,i=0;i1),z.set(s,c-1)));var u=m(o,s),l=u.dirPath;u.ignore||J.get(l).refCount--}}function x(n,r){return t.watchDirectoryOfFailedLookupLocation(n,function(n){var i=t.toPath(n);K&&K.addOrDeleteFileOrDirectory(n,i),(!O&&r===q||l(r)||e.getDirectoryPath(i)===r)&&E(i,r===i)&&t.onInvalidatedResolution()},1)}function S(e,t){var n=e.get(t);n&&(n.forEach(v),e.delete(t))}function k(e){S(I,e),S(L,e)}function T(t,n,r){var i=e.createMap();t.forEach(function(t,a){var o=e.getDirectoryPath(a),s=i.get(o);s||(s=e.createMap(),i.set(o,s)),t.forEach(function(t,i){s.has(i)||(s.set(i,!0),!t.isInvalidated&&n(t,r)&&(t.isInvalidated=!0,(F||(F=e.createMap())).set(a,!0)))})})}function D(){var n=t.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation;return I.size>n||L.size>n}function C(e){D()?O=!0:(T(I,e,i),T(L,e,a))}function E(n,r){var i;if(r)i=function(e){return o(n,t.toPath(e))};else{var a=e.getDirectoryPath(n);if(_(a)||l(a))i=function(r){return t.toPath(r)===n||e.startsWith(t.toPath(r),n)};else{if(!g(n)&&!z.has(n))return!1;if(e.isEmittedFileOfProgram(t.getCurrentProgram(),n))return!1;i=function(e){return t.toPath(e)===n}}}var s=F&&F.size;return C(function(t){return e.some(t.failedLookupLocations,i)}),O||F&&F.size!==s}function N(){e.clearMap(V,e.closeFileWatcher)}function A(e,n){return t.watchTypeRootsDirectory(n,function(e){var n=t.toPath(e);K&&K.addOrDeleteFileOrDirectory(e,n),t.onChangedAutomaticTypeDirectiveNames()},1)}function P(n){var r=e.getDirectoryPath(e.getDirectoryPath(n)),i=t.toPath(r);return i===q||p(i)}var w,F,O=!1,I=e.createMap(),M=e.createMap(),L=e.createMap(),R=e.createMap(),B=e.memoize(function(){return t.getCurrentDirectory()}),K=t.getCachedDirectoryStructureHost(),j=[".ts",".tsx",".js",".jsx",".json"],z=e.createMap(),J=e.createMap(),U=n&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(n,B())),q=U&&t.toPath(U),V=e.createMap();return{startRecordingFilesWithChangedResolutions:function(){w=[]},finishRecordingFilesWithChangedResolutions:function(){var e=w;return w=void 0,e},startCachingPerDirectoryResolution:s,finishCachingPerDirectoryResolution:function(){O=!1,J.forEach(function(e,t){0===e.refCount&&(J.delete(t),e.watcher.close())}),s()},resolveModuleNames:function(e,t,n){return u(e,t,I,M,c,i,n,r)},resolveTypeReferenceDirectives:function(t,n){return u(t,n,L,R,e.resolveTypeReferenceDirective,a,void 0,!1)},removeResolutionsOfFile:k,invalidateResolutionOfFile:function(e){k(e),C(function(n,r){var i=r(n);return i&&t.toPath(i.resolvedFileName)===e})},createHasInvalidatedResolution:function(t){if(O||t)return F=void 0,e.returnTrue;var n=F;return F=void 0,function(e){return n&&n.has(e)}},updateTypeRootsWatch:function(){var n=t.getCompilationSettings();if(n.types)N();else{var r=e.getEffectiveTypeRoots(n,{directoryExists:P,getCurrentDirectory:B});r?e.mutateMap(V,e.arrayToMap(r,function(e){return t.toPath(e)}),{createNewValue:A,onDeleteValue:e.closeFileWatcher}):N()}},closeTypeRootsWatch:N,clear:function(){e.clearMap(J,e.closeFileWatcherOf),z.clear(),N(),I.clear(),L.clear(),O=!1,s()}}}}(r||(r={}));!function(e){function t(t,n){var r=t===e.sys?c:{getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.newLine},getCanonicalFileName:e.createGetCanonicalFileName(t.useCaseSensitiveFileNames)};if(!n)return function(n){return t.write(e.formatDiagnostic(n,r))};var i=new Array(1);return function(n){i[0]=n,t.write(e.formatDiagnosticsWithColorAndContext(i,r)+r.getNewLine()),i[0]=void 0}}function n(t,n,r){!t.clearScreen||n.code===e.Diagnostics.Compilation_complete_Watching_for_file_changes.code||r.extendedDiagnostics||r.diagnostics||t.clearScreen()}function r(t,r){return r?function(r,i,a){n(t,r,a);var o="["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ";o+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+(i+i+i),t.write(o)}:function(r,i,a){n(t,r,a);var o=(new Date).toLocaleTimeString()+" - ";o+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+(i+i+i),t.write(o)}}function i(t,n,r){var i;try{i=r.readFile(t)}catch(n){c=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message);return void r.onUnRecoverableConfigFileDiagnostic(c)}if(i){var a=e.parseJsonText(t,i);a.parseDiagnostics.forEach(function(e){return r.onConfigFileDiagnostic(e)});var o=r.getCurrentDirectory(),s=e.parseJsonSourceFileConfigFileContent(a,r,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),o),n,e.getNormalizedAbsolutePath(t,o));return s.errors.forEach(function(e){return r.onConfigFileDiagnostic(e)}),s}var c=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t);r.onUnRecoverableConfigFileDiagnostic(c)}function a(t,n,r){var i=t.getSyntacticDiagnostics().slice(),a=!1;0===i.length&&(e.addRange(i,t.getOptionsDiagnostics()),e.addRange(i,t.getGlobalDiagnostics()),0===i.length&&(a=!0));var o=t.emit(),s=o.emittedFiles,c=o.emitSkipped,u=o.diagnostics;if(e.addRange(i,u),a&&e.addRange(i,t.getSemanticDiagnostics()),e.sortAndDeduplicateDiagnostics(i).forEach(n),r){var l=t.getCurrentDirectory();e.forEach(s,function(t){var n=e.getNormalizedAbsolutePath(t,l);r("TSFILE: "+n)}),t.getCompilerOptions().listFiles&&e.forEach(t.getSourceFiles(),function(e){r(e.fileName)})}return c&&i.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:i.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function o(t,n,i,o){function s(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}void 0===t&&(t=e.sys),n||(n=e.createEmitAndSemanticDiagnosticsBuilderProgram);var c=t,l=function(e){return t.write(e+t.newLine)};return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:function(){return t.getCurrentDirectory()},getDefaultLibLocation:s,getDefaultLibFileName:function(t){return e.combinePaths(s(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,n){return t.readFile(e,n)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,n,r,i,a){return t.readDirectory(e,n,r,i,a)},realpath:t.realpath&&function(e){return t.realpath(e)},getEnvironmentVariable:t.getEnvironmentVariable&&function(e){return t.getEnvironmentVariable(e)},watchFile:t.watchFile?function(e,n,r){return t.watchFile(e,n,r)}:function(){return u},watchDirectory:t.watchDirectory?function(e,n,r){return t.watchDirectory(e,n,r)}:function(){return u},setTimeout:t.setTimeout?function(e,n){for(var r=[],i=2;ie.getRootLength(t)&&!n.directoryExists(t)&&(E(e.getDirectoryPath(t)),n.createDirectory(t))}var N,A,P,w,F,O,I=e.createMap(),M=!1,L=!1,R=n.useCaseSensitiveFileNames(),B=n.getCurrentDirectory(),K=function(){return B},j=function(e,t){return n.readFile(e,t)},z=n.configFileName,J=n.optionsToExtend,U=void 0===J?{}:J,q=n.createProgram,V=n.rootFiles,W=n.options,H=n.configFileSpecs,G=n.configFileWildCardDirectories,$=z&&e.createCachedDirectoryStructureHost(n,B,R);$&&n.onCachedDirectoryStructureHostCreate&&n.onCachedDirectoryStructureHostCreate($);var X=$||n,Q={useCaseSensitiveFileNames:R,readDirectory:function(e,t,n,r,i){return X.readDirectory(e,t,n,r,i)},fileExists:function(e){return n.fileExists(e)},readFile:j,getCurrentDirectory:K,onConfigFileDiagnostic:n.onConfigFileDiagnostic,onUnRecoverableConfigFileDiagnostic:n.onUnRecoverableConfigFileDiagnostic};z&&!V&&v();var Y=n.trace&&function(e){n.trace(e+ae)},Z=Y&&(W.diagnostics||W.extendedDiagnostics),ee=Z?Y:e.noop,te=W.extendedDiagnostics?e.addFileWatcherWithLogging:Z?e.addFileWatcherWithOnlyTriggerLogging:e.addFileWatcher,ne=W.extendedDiagnostics?e.addFilePathWatcherWithLogging:e.addFilePathWatcher,re=W.extendedDiagnostics?e.addDirectoryWatcherWithLogging:e.addDirectoryWatcher,ie=e.createGetCanonicalFileName(R),ae=o();ee("Current directory: "+B+" CaseSensitiveFileNames: "+R),z&&te(n,z,function(){e.Debug.assert(!!z),A=e.ConfigFileProgramReloadLevel.Full,m()},ee);var oe={getSourceFile:function(e,t,n,r){return _(e,s(e),t,n,r)},getSourceFileByPath:_,getDefaultLibLocation:n.getDefaultLibLocation&&function(){return n.getDefaultLibLocation()},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:function(t,r,i,a){try{e.performance.mark("beforeIOWrite"),E(e.getDirectoryPath(e.normalizePath(t))),n.writeFile(t,r,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:K,useCaseSensitiveFileNames:function(){return R},getCanonicalFileName:ie,getNewLine:function(){return ae},fileExists:l,readFile:j,trace:Y,directoryExists:X.directoryExists&&function(e){return X.directoryExists(e)},getDirectories:X.getDirectories&&function(e){return X.getDirectories(e)},realpath:n.realpath&&function(e){return n.realpath(e)},getEnvironmentVariable:n.getEnvironmentVariable?function(e){return n.getEnvironmentVariable(e)}:function(){return""},onReleaseOldSourceFile:function(e,t){var n=I.get(e.path);n&&(c(n)?(O||(O=[])).push(e.path):n.sourceFile===e&&(I.delete(e.path),se.removeResolutionsOfFile(e.path)))},createHash:n.createHash&&function(e){return n.createHash(e)},toPath:s,getCompilationSettings:function(){return W},watchDirectoryOfFailedLookupLocation:S,watchTypeRootsDirectory:S,getCachedDirectoryStructureHost:function(){return $},onInvalidatedResolution:m,onChangedAutomaticTypeDirectiveNames:function(){L=!0,m()},maxNumberOfFilesToIterateForInvalidation:n.maxNumberOfFilesToIterateForInvalidation,getCurrentProgram:i,writeLog:ee},se=e.createResolutionCache(oe,z?e.getDirectoryPath(e.getNormalizedAbsolutePath(z,B)):B,!1);oe.resolveModuleNames=n.resolveModuleNames?function(e,t,r){return n.resolveModuleNames(e,t,r)}:function(e,t,n){return se.resolveModuleNames(e,t,n)},oe.resolveTypeReferenceDirectives=n.resolveTypeReferenceDirectives?function(e,t){return n.resolveTypeReferenceDirectives(e,t)}:function(e,t){return se.resolveTypeReferenceDirectives(e,t)};var ce=!!n.resolveModuleNames||!!n.resolveTypeReferenceDirectives;return f(e.Diagnostics.Starting_compilation_in_watch_mode),a(),D(),z?{getCurrentProgram:r,getProgram:a}:{getCurrentProgram:r,getProgram:a,updateRootFileNames:function(t){e.Debug.assert(!z,"Cannot update root file names with config file watch mode"),V=t,m()}}}}(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(Q)return Q;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)}),Q={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 R(e,K(t||""),n)}function o(t,n,r){if(void 0===n&&(n=""),n=K(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(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 c(t,n){var r=e.parseJsonText(t,n);return{config:p(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function u(t,n){var r=l(t,n);return e.isString(r)?e.parseJsonText(t,r):{parseDiagnostics:[r]}}function l(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 _(t){return e.arrayToMap(t,function(e){return e.name})}function d(){return void 0===Y&&(Y=_([{name:"compilerOptions",type:"object",elementOptions:_(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:_(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:_(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])),Y}function p(e,t){return f(e,t,void 0,void 0)}function f(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([c]).join(" -> "))),{raw:t||p(n,s)};var u=t?T(t,r,i,a,s):D(n,r,i,a,s);if(u.extendedConfigPath){o=o.concat([c]);var l=E(n,u.extendedConfigPath,r,i,o,s);if(l&&S(l)){var _=l.raw,d=u.raw,f=function(e){var t=d[e]||_[e];t&&(d[e]=t)};f("include"),f("exclude"),f("files"),void 0===d.compileOnSave&&(d.compileOnSave=_.compileOnSave),u.options=e.assign({},l.options,u.options)}}return u}function T(t,n,r,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o=P(t.compilerOptions,r,a,i),s=F(t.typeAcquisition||t.typingOptions,r,a,i);t.compileOnSave=N(t,r,a);var c;if(t.extends)if(e.isString(t.extends)){var u=i?v(i,r):r;c=C(t.extends,n,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:o,typeAcquisition:s,extendedConfigPath:c}}function D(t,n,r,i,a){var o,s,c,u=A(i),l={onSetValidOptionKeyValueInParent:function(t,n,a){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t),("compilerOptions"===t?u:"typeAcquisition"===t?o||(o=w(i)):s||(s=w(i)))[n.name]=M(n,r,a)},onSetValidOptionKeyValueInRoot:function(o,s,u,l){switch(o){case"extends":var _=i?v(i,r):r;return void(c=C(u,n,_,a,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,l,n,r)}));case"files":return void(0===u.length&&a.push(e.createDiagnosticForNodeInSourceFile(t,l,e.Diagnostics.The_files_list_in_config_file_0_is_empty,i||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(n,r,i,o){"excludes"===n&&a.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},_=f(t,a,d(),l);return o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:w(i)),{raw:_,options:u,typeAcquisition:o,extendedConfigPath:c}}function C(t,n,r,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,r);if(n.fileExists(o)||e.endsWith(o,".json")||(o+=".json",n.fileExists(o)))return o;i.push(a(e.Diagnostics.File_0_does_not_exist,t))}else i.push(a(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t))}function E(t,n,r,i,a,o){var s=u(n,function(e){return r.readFile(e)});if(t&&(t.extendedSourceFiles||(t.extendedSourceFiles=[])).push(s.fileName),s.parseDiagnostics.length)o.push.apply(o,s.parseDiagnostics);else{var c=e.getDirectoryPath(n),l=k(void 0,s,r,c,e.getBaseFileName(n),a,o);if(t&&(m=t.extendedSourceFiles).push.apply(m,s.extendedSourceFiles),S(l)){var _=e.convertToRelativePath(c,i,e.identity),d=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(_,t)},p=function(t){f[t]&&(f[t]=e.map(f[t],d))},f=l.raw;p("include"),p("exclude"),p("files")}return l;var m}}function N(t,n,r){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var i=I(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return!("boolean"!=typeof i||!i)&&i}}function A(t){return"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function P(t,n,r,i){var a=A(i);return O(e.optionDeclarations,t,n,a,e.Diagnostics.Unknown_compiler_option_0,r),a}function w(t){return{enable:"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function F(n,r,i,a){var o=w(a),s=t(n);return O(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,i),o}function O(t,n,r,i,a,o){if(n){var s=_(t);for(var c in n){var u=s.get(c);u?i[u.name]=I(u,n[c],r,o):o.push(e.createCompilerDiagnostic(a,c))}}}function I(t,n,r,i){if(g(t,n)){var a=t.type;return"list"===a&&e.isArray(n)?B(t,n,r,i):e.isString(a)?L(t,r,n):R(t,n,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,m(t)))}function M(t,n,r){if(!h(r)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(r,function(e){return M(i.element,n,e)}),function(e){return!!e}):r}return e.isString(t.type)?L(t,n,r):t.type.get(e.isString(r)?r.toLowerCase():r)}}function L(t,n,r){return t.isFilePath&&""===(r=e.normalizePath(e.combinePaths(n,r)))&&(r="."),r}function R(e,t,n){if(!h(t)){var i=t.toLowerCase(),a=e.type.get(i);if(void 0!==a)return a;n.push(r(e))}}function B(t,n,r,i){return e.filter(e.map(n,function(e){return I(t.element,e,r,i)}),function(e){return!!e})}function K(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function j(t,n,r,i,a,o,s,c,u){i=e.normalizePath(i);var l,_;return n&&(l=J(n,s,!1,u,"include")),r&&(_=J(r,s,!0,u,"exclude")),z({filesSpecs:t,includeSpecs:n,excludeSpecs:r,validatedIncludeSpecs:l,validatedExcludeSpecs:_,wildcardDirectories:q(l,_,i,o.useCaseSensitiveFileNames)},i,a,o,c)}function z(t,n,r,i,a){void 0===a&&(a=[]),n=e.normalizePath(n);var o=i.useCaseSensitiveFileNames?G:$,s=e.createMap(),c=e.createMap(),u=t.filesSpecs,l=t.validatedIncludeSpecs,_=t.validatedExcludeSpecs,d=t.wildcardDirectories,p=e.getSupportedExtensions(r,a);if(u)for(var f=0,m=u;f0)for(var h=0,v=i.readDirectory(n,p,_,l,void 0);h=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 c={},u=[],l=[];return r(t),{options:c,fileNames:u,errors:l}},e.readConfigFile=function(t,n){var r=l(t,n);return e.isString(r)?c(t,r):{config:{},error:r}},e.parseConfigFileTextToJson=c,e.readJsonConfigFile=u;var Y;e.convertToObject=p,e.generateTSConfig=function(t,r,i){function a(e){return"string"===e.type||"number"===e.type||"boolean"===e.type?void 0:"list"===e.type?a(e.element):e.type}function o(t,n){return e.forEachEntry(n,function(e,n){if(e===t)return n})}function s(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":return e.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.type.keys().next().value}}function c(e){return Array(e+1).join(" ")}var u=function(t){var r=e.createMap(),i=n().optionNameMap;for(var s in t)!function(n){if(e.hasProperty(t,n)){if(i.has(n)&&i.get(n).category===e.Diagnostics.Command_line_Options)return"continue";var s=t[n],c=i.get(n.toLowerCase());if(c){var u=a(c);u?"list"===c.type?r.set(n,s.map(function(e){return o(e,u)})):r.set(n,o(s,u)):r.set(n,s)}}}(s);return r}(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),n=0,a=e.optionDeclarations;n=n.end}function m(e,t,n,r){return Math.max(e,n)=t.end)return n});return e.Debug.assert(!n||e.contains(n.getChildren(),t)),n}function x(e,t,n,r){return k(e,t,!1,r,!1,n)}function S(e,t,n,r){return k(e,t,!0,void 0,r,n)}function k(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=T(n,t,l);if(d&&i(d))return d}}}return s}}function T(t,n,r,i){function a(o){if(D(o))return o;for(var s=o.getChildren(n),c=0;c=t||!P(u)||N(u)?(l=E(s,c))&&C(l,n):a(u)}if(e.Debug.assert(void 0!==r||272===o.kind||e.isJSDocCommentContainingNode(o)),s.length){var l=E(s,s.length);return l&&C(l,n)}}var o=a(r||n);return e.Debug.assert(!(o&&N(o))),o}function D(t){return e.isToken(t)&&!N(t)}function C(e,t){if(D(e))return e;var n=e.getChildren(t),r=E(n,n.length);return r&&C(r,t)}function E(t,n){for(var r=n-1;r>=0;r--)if(N(t[r]))e.Debug.assert(r>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(P(t[r]))return t[r]}function N(t){return e.isJsxText(t)&&t.containsOnlyWhiteSpaces}function A(t,n,r,i){return!!e.formatting.getRangeOfEnclosingComment(t,n,!1,void 0,r,i)}function P(e){return 0!==e.getWidth()}function w(t){return 71===t||e.isKeyword(t)}function F(e){return 9===e||8===e||w(e)}function O(e){if(181===e.kind||182===e.kind){if(198===e.parent.kind&&e.parent.left===e&&58===e.parent.operatorToken.kind)return!0;if(220===e.parent.kind&&e.parent.initializer===e)return!0;if(O(268===e.parent.kind?e.parent.parent:e.parent))return!0}return!1}function I(e,t){return{span:e,newText:t}}e.scanner=e.createScanner(6,!0);!function(e){e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(a){return 272===a.kind?1:247===a.parent.kind?7:r(a)?n(a):e.isDeclarationName(a)?t(a.parent):s(a)?2:i(a)?4:e.isTypeParameterDeclaration(a.parent)?(e.Debug.assert(e.isJSDocTemplateTag(a.parent.parent)),2):1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(e){return c(e,185)},e.isNewExpressionTarget=function(e){return c(e,186)},e.climbPastPropertyAccess=u,e.getTargetLabel=function(e,t){for(;e;){if(226===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.isJumpStatementTarget=l,e.isLabelName=function(e){return _(e)||l(e)},e.isRightSideOfQualifiedName=function(e){return 145===e.parent.kind&&e.parent.right===e},e.isRightSideOfPropertyAccess=d,e.isNameOfModuleDeclaration=function(e){return 237===e.parent.kind&&e.parent.name===e},e.isNameOfFunctionDeclaration=function(t){return 71===t.kind&&e.isFunctionLike(t.parent)&&t.parent.name===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 151:case 150:case 268:case 271:case 153:case 152:case 155:case 156:case 237:return e.getNameOfDeclaration(t.parent)===t;case 184:return t.parent.argumentExpression===t;case 146:return!0;case 177:return 175===t.parent.parent.kind}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(e){for(291===e.kind&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 272:case 153:case 152:case 232:case 190:case 155:case 156:case 233:case 234:case 236:case 237:return e}}},e.getNodeKind=p,e.isThis=function(t){switch(t.kind){case 99:return!0;case 71:return e.identifierIsThisKeyword(t)&&148===t.parent.kind;default:return!1}};var M=/^\/\/\/\s*=n},e.rangeOverlapsWithStartEnd=function(e,t,n){return m(e.pos,e.end,t,n)},e.startEndOverlapsWithStartEnd=m,e.positionBelongsToNode=function(t,n,r){return e.Debug.assert(t.pos<=n),nr.getStart(t)&&nt.end||o.pos===t.end)&&P(o))return r(o)}}return r(n)},e.findPrecedingToken=T,e.isInString=function(t,n,r){if(void 0===r&&(r=T(n,t)),r&&e.isStringTextContainingNode(r)){var i=r.getStart(),a=r.getEnd();if(ir.getStart(t)},e.isInComment=A,e.hasDocComment=function(t,n){var r=S(t,n,!1),i=e.getLeadingCommentRanges(t.text,r.pos);return e.forEach(i,function(e){var n=t.text;return n.length>=e.pos+3&&"/"===n[e.pos]&&"*"===n[e.pos+1]&&"*"===n[e.pos+2]})},e.getNodeModifiers=function(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"),2097152&t.flags&&r.push("declare"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 161===t.kind||185===t.kind?t.typeArguments:e.isFunctionLike(t)||233===t.kind||234===t.kind?t.typeParameters:void 0},e.isWord=w,e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 17<=e&&e<=70},e.isInsideTemplateLiteral=function(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&148===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(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function a(t){return r(t,e.SymbolDisplayPartKind.text)}function o(){return r("\n",e.SymbolDisplayPartKind.lineBreak)}function s(e){try{return e(_),_.displayParts()}finally{_.clear()}}function c(t){return e.isSingleOrDoubleQuote(t.charCodeAt(0))}function u(t,n){return e.ensureScriptKind(t,n&&n.getScriptKind&&n.getScriptKind(t))}function l(t){if(void 0!==t){var n=e.visitEachChild(t,l,e.nullTransformationContext);if(n===t){var r=e.getSynthesizedClone(t);return e.isStringLiteral(r)?r.textSourceNode=t:e.isNumericLiteral(r)&&(r.numericLiteralFlags=t.numericLiteralFlags),r.pos=t.pos,r.end=t.end,r}return n.parent=void 0,n}}e.isFirstDeclarationOfSymbolParameter=t;var _=function(){function t(){if(c){var t=e.getIndentString(u);t&&s.push(r(t,e.SymbolDisplayPartKind.space)),c=!1}}function i(e,n){t(),s.push(r(e,n))}function a(){s=[],c=!0,u=0}var s,c,u;a();var l=function(t){return i(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){return s},writeKeyword:function(t){return i(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return i(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return i(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return i(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return i(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return i(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return i(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return i(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){t(),s.push(n(e,r))},writeLine:function(){s.push(o()),c=!0},write:l,writeTextOfNode:l,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return u},increaseIndent:function(){u++},decreaseIndent:function(){u--},clear:a,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}();e.symbolPart=n,e.displayPart=r,e.spacePart=function(){return r(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=i,e.punctuationPart=function(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var n=e.stringToToken(t);return void 0===n?a(t):i(n)},e.textPart=a;var d="\r\n";e.getNewLineOrDefaultFromHost=function(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||d},e.lineBreakPart=o,e.mapToDisplayParts=s,e.typeToDisplayParts=function(e,t,n,r){return s(function(i){e.writeType(t,n,1024|r,i)})},e.symbolToDisplayParts=function(e,t,n,r,i){return s(function(a){e.writeSymbol(t,n,r,8|i,a)})},e.signatureToDisplayParts=function(e,t,n,r){return r|=25632,s(function(i){e.writeSignature(t,n,r,void 0,i)})},e.isImportOrExportSpecifierName=function(e){return e.parent&&(246===e.parent.kind||250===e.parent.kind)&&e.parent.propertyName===e},e.stripQuotes=function(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&c(e)?e.substring(1,t-1):e},e.startsWithQuote=c,e.scriptKindIs=function(t,n){for(var r=[],i=2;i0&&(e+=n);var a=t-e;a>0&&i.push(e-n,a,r)}}function r(t,n){for(var r=[],a=t.spans,o=0,s=0;s=0){var _=c-o;_>0&&r.push({length:_,classification:e.TokenClass.Whitespace})}r.push({length:u,classification:i(l)}),o=c+u}var d=n.length-o;return d>0&&r.push({length:d,classification:e.TokenClass.Whitespace}),{entries:r,finalLexState:t.endOfLineState}}function i(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:return e.TokenClass.Identifier}}function a(t,n){if(!e.isAccessibilityModifier(t))return!0;switch(n){case 125:case 136:case 123:case 115:return!0;default:return!1}}function o(t){switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:throw e.Debug.assertNever(t)}}function s(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 c(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function u(t){if(e.isKeyword(t))return 3;if(s(t)||c(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}}function l(e,t){switch(t){case 237:case 233:case 234:case 232:e.throwIfCancellationRequested()}}function _(t,n,r,i,a){function o(e,t,n){s.push(e),s.push(t-e),s.push(n)}var s=[];return r.forEachChild(function s(c){if(c&&e.textSpanIntersectsWith(a,c.pos,c.getFullWidth())){if(l(n,c.kind),e.isIdentifier(c)&&!e.nodeIsMissing(c)&&i.has(c.escapedText)){var u=t.getSymbolAtLocation(c),_=u&&d(u,e.getMeaningFromLocation(c),t);_&&o(c.getStart(r),c.getEnd(),_)}c.forEachChild(s)}}),{spans:s,endOfLineState:0}}function d(e,t,n){var r=e.getFlags();return 0==(2885600&r)?void 0:32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&p(e)?14:void 0:2097152&r?d(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0}function p(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}function f(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 m(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],i=0;i=0),o>0){var s=n||m(t.kind,t);s&&i(r,o,s)}return!0}function f(e){switch(e.parent&&e.parent.kind){case 255:if(e.parent.tagName===e)return 19;break;case 256:if(e.parent.tagName===e)return 20;break;case 254:if(e.parent.tagName===e)return 21;break;case 260: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&&(230===n.parent.kind||151===n.parent.kind||148===n.parent.kind||260===n.parent.kind))return 5;if(198===n.parent.kind||196===n.parent.kind||197===n.parent.kind||199===n.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 260===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 233:if(n.parent.name===n)return 11;return;case 147:if(n.parent.name===n)return 15;return;case 234:if(n.parent.name===n)return 13;return;case 236:if(n.parent.name===n)return 12;return;case 237:if(n.parent.name===n)return 14;return;case 148:if(n.parent.name===n)return e.isThisIdentifier(n)?3:17;return}return 2}}function g(r){if(r&&e.decodedTextSpanIntersectsWith(y,h,r.pos,r.getFullWidth())){l(t,r.kind);for(var i=0,a=r.getChildren(n);i0&&b--;break;case 119:case 137:case 134:case 122:case 138:b>0&&!c&&(l=71);break;case 14:d.push(l);break;case 17:d.length>0&&d.push(l);break;case 18:if(d.length>0){var t=e.lastOrUndefined(d);14===t?16===(l=s.reScanTemplateToken())?d.pop():e.Debug.assertEqual(l,15,"Should have been a template middle."):(e.Debug.assertEqual(t,17,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;23===_?l=71:e.isKeyword(_)&&e.isKeyword(l)&&!a(_,l)&&(l=71)}}(),_=l);var x=s.getTextPos();if(n(s.getTokenPos(),x,g,u(l),v),x>=r.length){var S=t(s,l,e.lastOrUndefined(d));void 0!==S&&(h=S)}}while(1!==l);return{endOfLineState:h,spans:v}}var s=e.createScanner(6,!1);return{getClassificationsForLine:function(e,t,n){return r(i(e,t,n),e)},getEncodedLexicalClassifications:i}};var y=e.arrayToNumericMap([71,9,8,12,99,43,44,20,22,18,101,86],function(e){return e},function(){return!0});e.getSemanticClassifications=function(e,t,n,r,i){return m(_(e,t,n,r,i))},e.getEncodedSemanticClassifications=_,e.getSyntacticClassifications=function(e,t,n){return m(g(e,t,n))},e.getEncodedSyntacticClassifications=g}(r||(r={}));!function(e){!function(t){!function(t){function n(e,t,n){return{name:e,kind:t,span:n}}function r(t,n,r,i){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(n,t))});var a=e.firstDefined(t,function(t){return e.containsPath(t,r,n,i)?r.substr(t.length):void 0});return e.deduplicate(t.map(function(t){return e.combinePaths(t,a)}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function i(e,t,n,i,o,s,c,u,l){for(var _=[],d=0,p=r(e,c.project||u.getCurrentDirectory(),n,!(u.useCaseSensitiveFileNames&&u.useCaseSensitiveFileNames()));d=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){if("./"===e.normalizeSlashes(t))return"";var n=e.normalizePath(t);return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(n):n}function h(e,t){return k(e,e.getDirectories,t)||[]}function v(t,n,r,i,a){return k(t,t.readDirectory,n,r,i,a)||e.emptyArray}function b(e,t){return k(e,e.readFile,t)}function x(e,t){return k(e,e.fileExists,t)}function S(t,n){try{return e.directoryProbablyExists(n,t)}catch(e){}}function k(e,t){for(var n=[],r=2;r=e.pos&&n<=e.end});if(c){var u=t.text.slice(c.pos,n),l=T.exec(u);if(l){var _=l[1],p=l[2],f=l[3],g=e.getDirectoryPath(t.path);switch(p){case"path":var y=m(f,c.pos+_.length);return a(f,g,e.getSupportedExtensions(r),!0,y,i,t.path);case"types":return d(i,r,g,e.createTextSpan(c.pos+_.length,l[0].length-_.length));default:return}}}};var T=/^(\/\/\/\s*0&&(ye=V(r,e.Debug.assertDefined(i))),!0}function T(n){var r=245===n.kind?242:248,i=e.getAncestor(n,r).moduleSpecifier;if(!i)return!1;fe=3,me=!1;var a=t.getSymbolAtLocation(i);if(!a)return ye=e.emptyArray,!0;var o=t.getExportsAndPropertiesOfModule(a);return ye=q(o,n.elements),!0}function D(n){fe=3,me=!0,ge=1;var r=e.getClassExtendsHeritageClauseElement(n),i=e.getClassImplementsHeritageClauseElements(n);if(r||i){var a=re.parent,o=e.isClassElement(a)&&e.getModifierFlags(a);if(71===re.kind&&!G(re))switch(re.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))});ye=W(s?t.getPropertiesOfType(s):e.emptyArray,c,n.members,o)}}}function C(t){if(t)switch(t.kind){case 17:case 26:var n=t.parent;if(e.isObjectLiteralExpression(n)||e.isObjectBindingPattern(n))return n}}function E(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 245:case 249:return e.parent}}}function N(t){return e.isClassElement(t.parent)&&e.isClassLike(t.parent.parent)}function A(t){return e.isParameter(t)&&e.isConstructorDeclaration(t.parent)}function P(t){return t.parent&&A(t.parent)&&(O(t.kind)||e.isDeclarationName(t))}function M(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(_e))return _e;if(N(_e)&&_e.parent.name===_e)return _e.parent.parent;break;default:if(N(t)&&(w(t.kind)||F(t.getText())))return t.parent.parent}if(_e&&293===_e.kind&&e.isClassLike(_e.parent))return _e.parent}function L(t){if(t)switch(t.kind){case 19:case 26:return e.isConstructorDeclaration(t.parent)&&t.parent;default:if(P(t))return t.parent.parent}}function B(t){if(t){var n,r=e.findAncestor(t.parent,function(t){return e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||n!==t.body)||void(n=t)});return r&&r}}function j(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 183:case 261:case 260:case 262:if(t&&(254===t.kind||255===t.kind))return t;if(260===t.kind)return t.parent.parent;break;case 9:if(t&&(260===t.kind||262===t.kind))return t.parent.parent;break;case 18:if(t&&263===t.kind&&t.parent&&260===t.parent.kind)return t.parent.parent.parent;if(t&&262===t.kind)return t.parent.parent}}}function z(t){var n=t.parent.kind;switch(t.kind){case 26:return 230===n||231===n||212===n||236===n||J(n)||234===n||179===n||235===n||e.isClassLike(t.parent)&&t.parent.typeParameters&&t.parent.typeParameters.end>=t.pos;case 23:return 179===n;case 56:return 180===n;case 21:return 179===n;case 19:return 267===n||J(n);case 17:return 236===n||234===n||165===n;case 25:return 150===n&&t.parent&&t.parent.parent&&(234===t.parent.parent.kind||165===t.parent.parent.kind);case 27:return 233===n||203===n||234===n||235===n||e.isFunctionLikeKind(n);case 115:return 151===n&&!e.isClassLike(t.parent.parent);case 24:return 148===n||t.parent&&t.parent.parent&&179===t.parent.parent.kind;case 114:case 112:case 113:return 148===n&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 246===n||250===n||244===n;case 125:case 136:if(N(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 139:return!0}if(F(t.getText())&&N(t))return!1;if(P(t)&&(!e.isIdentifier(t)||I(t.getText())||G(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)&&!(e.isClassLike(t.parent)&&(t!==ne||i>ne.end))}function J(t){return e.isFunctionLikeKind(t)&&154!==t}function U(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function q(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 B(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}function K(t,n,r){if(!(131072&t.flags))return e.Debug.assertEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined");var i=t.types,a=r?i:i.filter(function(t){return!(16382&t.flags||n.isArrayLikeType(t)||e.typeHasCallOrConstructSignatures(t,n))});return e.Debug.assertEachDefined(n.getAllPossiblePropertiesOfTypes(a),"getAllPossiblePropertiesOfTypes() should all be defined")}var j;!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.ConstructorParameterKeywords=2]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=3]="FunctionLikeBodyKeywords",e[e.TypeKeywords=4]="TypeKeywords"}(j||(j={})),t.getCompletionsAtPosition=function(o,s,c,u,l,_,d,p){if(e.isInReferenceComment(l,_)){var m=t.PathCompletions.getTripleSlashReferenceCompletion(l,_,u,o);return m&&r(m)}var y=e.findPrecedingToken(_,l);if(e.isInString(l,_,y))return y&&e.isStringLiteralLike(y)?n(g(l,y,_,s,u,o),l,s,c):void 0;if(y&&e.isBreakOrContinueStatement(y.parent)&&(72===y.kind||77===y.kind||71===y.kind))return f(y.parent);var h=N(s,c,l,_,d,p,u.target);if(h)switch(h.kind){case 0:return a(l,s,u,c,h,p.includeInsertTextCompletions);case 1:return i(e.JsDoc.getJSDocTagNameCompletions());case 2:return i(e.JsDoc.getJSDocTagCompletions());case 3:return i(e.JsDoc.getJSDocParameterNameCompletions(h.tag));default:throw e.Debug.assertNever(h)}};var z;!function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(z||(z={})),t.getCompletionEntryDetails=function(t,n,r,i,a,o,s,c,u,l){var _=t.getTypeChecker(),d=o.name,p=h(_,n,r,i,a,o,s);switch(p.type){case"request":var f=p.request;switch(f.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(d);case 2:return e.JsDoc.getJSDocTagCompletionDetails(d);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(d);default:return e.Debug.assertNever(f)}case"symbol":var m=p.symbol,g=p.location,y=b(p.symbolToOriginInfoMap,m,t,_,c,r,i,p.previousToken,u,l,s),v=y.codeActions,x=y.sourceDisplay,S=e.SymbolDisplay.getSymbolModifiers(m),k=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(_,m,i,g,g,7),T=k.displayParts,D=k.documentation,C=k.symbolKind,E=k.tags;return{name:d,kindModifiers:S,kind:C,displayParts:T,documentation:D,tags:E,codeActions:v,source:x};case"none":if(V().some(function(e){return e.name===d}))return{name:d,kind:"keyword",kindModifiers:"",displayParts:[e.displayPart(d,e.SymbolDisplayPartKind.keyword)],documentation:void 0,tags:void 0,codeActions:void 0,source:void 0};return}},t.getCompletionEntrySymbol=function(e,t,n,r,i,a,o){var s=h(e,t,n,r,i,a,o);return"symbol"===s.type?s.symbol:void 0};var J;!function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName"}(J||(J={}));var U;!function(e){e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None"}(U||(U={}));var q=[],V=e.memoize(function(){for(var t=[],n=72;n<=144;n++)t.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:"0"});return t})}(e.Completions||(e.Completions={}))}(r||(r={}));!function(e){!function(t){function n(t,n){return{fileName:n.fileName,textSpan:e.createTextSpanFromNode(t,n),kind:"none"}}function r(t,n,r,i,a){var o=e.FindAllReferences.getReferenceEntriesForNode(t,n,r,a,i);if(o){var s=e.arrayToMultiMap(o.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(s.entries(),function(e){return{fileName:e[0],highlightSpans:e[1]}})}}function i(e,t){var n=a(e,t);if(n&&0!==n.length)return[{fileName:t.fileName,highlightSpans:n}]}function a(t,r){function i(n,i){return a(t.parent,n,function(t){return e.mapDefined(t.symbol.declarations,function(t){return n(t)?e.find(t.getChildren(r),function(t){return e.contains(i,t.kind)}):void 0})})}function a(e,t,n){return t(e)?o(n(e,r)):void 0}function o(e){return e&&e.map(function(e){return n(e,r)})}switch(t.kind){case 90:case 82:return e.isIfStatement(t.parent)?x(t.parent,r):void 0;case 96:return a(t.parent,e.isReturnStatement,b);case 100:return a(t.parent,e.isThrowStatement,v);case 102:case 74:case 87:return a(74===t.kind?t.parent.parent:t.parent,e.isTryStatement,h);case 98:return a(t.parent,e.isSwitchStatement,y);case 73:case 79:return a(t.parent.parent.parent,e.isSwitchStatement,y);case 72:case 77:return a(t.parent,e.isBreakOrContinueStatement,g);case 88:case 106:case 81:return a(t.parent,function(t){return e.isIterationStatement(t,!0)},m);case 123:return i(e.isConstructorDeclaration,[123]);case 125:case 136:return i(e.isAccessor,[125,136]);default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?o(d(t.kind,t.parent)):void 0}}function o(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?o(t.catchClause):t.tryBlock&&o(t.tryBlock),o(t.finallyBlock)):e.isFunctionLike(t)?void 0:u(t,o)}function s(t){for(var n=t;n.parent;){var r=n.parent;if(e.isFunctionBlock(r)||272===r.kind)return r;if(e.isTryStatement(r)&&r.tryBlock===n&&r.catchClause)return n;n=r}}function c(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:u(t,c)}function u(t,n){var r=[];return t.forEachChild(function(t){var i=n(t);void 0!==i&&r.push.apply(r,e.toArray(i))}),r}function l(e,t){var n=_(t);return n&&n===e}function _(t){return e.findAncestor(t,function(n){switch(n.kind){case 225:if(221===t.kind)return!1;case 218:case 219:case 220:case 217:case 216:return!t.label||k(n,t.label.escapedText);default:return e.isFunctionLike(n)&&"quit"}})}function d(t,n){var r=e.modifierToFlag(t);return e.mapDefined(p(n,r),function(n){if(e.getModifierFlags(n)&r){var i=e.find(n.modifiers,function(e){return e.kind===t});return e.Debug.assert(!!i),i}})}function p(t,n){var r=t.parent;switch(r.kind){case 238:case 272:case 211:case 264:case 265:return 128&n&&e.isClassDeclaration(t)?t.members.concat([t]):r.statements;case 154:case 153:case 232:return r.parameters.concat(e.isClassLike(r.parent)?r.parent.members:[]);case 233:case 203:var i=r.members;if(28&n){var a=e.find(r.members,e.isConstructorDeclaration);if(a)return i.concat(a.parameters)}else if(128&n)return i.concat([r]);return i;default:e.Debug.assertNever(r,"Invalid container kind.")}}function f(t,n){for(var r=[],i=2;i=0&&!f(n,r[i],106);i--);return e.forEach(c(t.statement),function(e){l(t,e)&&f(n,e.getFirstToken(),72,77)}),n}function g(e){var t=_(e);if(t)switch(t.kind){case 218:case 219:case 220:case 216:case 217:return m(t);case 225:return y(t)}}function y(t){var n=[];return f(n,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(r){f(n,r.getFirstToken(),73,79),e.forEach(c(r),function(e){l(t,e)&&f(n,e.getFirstToken(),72)})}),n}function h(t,n){var r=[];return f(r,t.getFirstToken(),102),t.catchClause&&f(r,t.catchClause.getFirstToken(),74),t.finallyBlock&&f(r,e.findChildOfKind(t,87,n),87),r}function v(t,n){var r=s(t);if(r){var i=[];return e.forEach(o(r),function(t){i.push(e.findChildOfKind(t,100,n))}),e.isFunctionBlock(r)&&e.forEachReturnStatement(r,function(t){i.push(e.findChildOfKind(t,96,n))}),i}}function b(t,n){var r=e.getContainingFunction(t);if(r){var i=[];return e.forEachReturnStatement(e.cast(r.body,e.isBlock),function(t){i.push(e.findChildOfKind(t,96,n))}),e.forEach(o(r.body),function(t){i.push(e.findChildOfKind(t,100,n))}),i}}function x(t,r){for(var i=S(t,r),a=[],o=0;o=s.end;l--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(l))){u=!1;break}if(u){a.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(n(i[o],r))}return a}function S(t,n){for(var r=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(n);f(r,i[0],90);for(var a=i.length-1;a>=0&&!f(r,i[a],82);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return r}function k(t,n){return!!e.findAncestor(t.parent,function(t){return e.isLabeledStatement(t)?t.label.escapedText===n:"quit"})}t.getDocumentHighlights=function(t,a,o,s,c){var u=e.getTouchingWord(o,s,!0);if(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 n(e.tagName,o)});return[{fileName:o.fileName,highlightSpans:_}]}return r(s,u,t,a,c)||i(u,o)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(r||(r={}));!function(e){e.createDocumentRegistry=function(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=u.get(t);return!r&&n&&u.set(t,r=e.createMap()),r}function a(e,t,n,r,i,a,o){return s(e,t,n,r,i,a,!0,o)}function o(e,t,n,r,i,a,o){return s(e,t,n,r,i,a,!1,o)}function s(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 c(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 u=e.createMap(),l=e.createGetCanonicalFileName(!!t);return{acquireDocument:function(t,i,o,s,c){return a(t,e.toPath(t,n,l),i,r(i),o,s,c)},acquireDocumentWithKey:a,updateDocument:function(t,i,a,s,c){return o(t,e.toPath(t,n,l),i,r(i),a,s,c)},updateDocumentWithKey:o,releaseDocument:function(t,i){return c(e.toPath(t,n,l),r(i))},releaseDocumentWithKey:c,reportStats:function(){var t=e.arrayFrom(u.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return u.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)},getKeyForCompilationSettings:r}}}(r||(r={}));!function(e){!function(n){function r(t,n,r,i,o){function s(t){var n=_(t);if(n)for(var r=0,a=n;r=0&&!(c>r.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),6)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),6)||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);se.major||this.major===e.major&&(this.minor>e.minor||this.minor===e.minor&&(!this.isPrerelease&&e.isPrerelease||this.isPrerelease===e.isPrerelease&&this.patch>e.patch))},e}();e.Semver=a}(r||(r={}));!function(e){!function(t){function n(t,n){return!e.Semver.parse(e.getProperty(n,"ts"+e.versionMajorMinor)||e.getProperty(n,"latest")).greaterThan(t.version)}t.isTypingUpToDate=n,t.nodeCoreModuleList=["buffer","querystring","events","http","cluster","zlib","os","https","punycode","repl","readline","vm","child_process","url","dns","net","dgram","fs","path","string_decoder","tls","crypto","stream","util","assert","tty","domain","constants","process","v8","timers","console"];var r=e.arrayToSet(t.nodeCoreModuleList);t.loadSafeList=function(t,n){var r=e.readConfigFile(n,function(e){return t.readFile(e)});return e.createMapFromTemplate(r.config)},t.loadTypesMap=function(t,n){var r=e.readConfigFile(n,function(e){return t.readFile(e)});if(r.config)return e.createMapFromTemplate(r.config.simpleMap)},t.discoverTypings=function(t,i,a,o,s,c,u,l,_){function d(e){g.has(e)||g.set(e,void 0)}function p(t,n){i&&i(n+": "+JSON.stringify(t)),e.forEach(t,d)}function f(n,r){if(t.fileExists(n)){r.push(n);var i=e.readConfigFile(n,function(e){return t.readFile(e)}).config;p(e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys),"Typing names in '"+n+"' dependencies")}}function m(n,r){if(r.push(n),t.directoryExists(n)){var a=t.readDirectory(n,[".json"],void 0,void 0,2);i&&i("Searching for typing names in "+n+"; all files: "+JSON.stringify(a));for(var o=[],s=0,c=a;si?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^/]+\/[^/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},t.renderPackageNameValidationFailure=function(t,n){switch(t){case 2:return"Package name '"+n+"' cannot be empty";case 3:return"Package name '"+n+"' should be less than "+i+" characters";case 4:return"Package name '"+n+"' cannot start with '.'";case 5:return"Package name '"+n+"' cannot start with '_'";case 1:return"Package '"+n+"' is scoped and currently is not supported";case 6:return"Package name '"+n+"' contains non URI safe characters";case 0:throw e.Debug.fail();default:e.Debug.assertNever(t)}}}(e.JsTyping||(e.JsTyping={}))}(r||(r={}));!function(e){!function(t){function n(e,t,n,a,o,u){var l=e.getMatchesForLastSegmentOfPattern(t);if(l)for(var _=0,d=n;_0);for(var n=0,r=t;n0);for(var n=e.PatternMatchKind.camelCase,r=0,i=t;r0)return i}switch(t.kind){case 272:var a=t;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"";case 191:case 232:case 190:case 233:case 203:return 512&e.getModifierFlags(t)?"default":F(t);case 154:return"constructor";case 158:return"new()";case 157:return"()";case 159:return"[]";case 291:return S(t);default:return""}}function S(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&212===t.kind&&t.declarationList.declarations.length>0){var n=t.declarationList.declarations[0].name;if(71===n.kind)return n.text}return""}function k(t){function n(e){if(r(e)&&(a.push(e),e.children))for(var t=0,i=e.children;t0?e.declarationNameToString(t.name):230===t.parent.kind?e.declarationNameToString(t.parent.name):198===t.parent.kind&&58===t.parent.operatorToken.kind?r(t.parent.left).replace(R,""):268===t.parent.kind&&t.parent.name?r(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function O(e){switch(e.kind){case 191:case 190:case 203:return!0;default:return!1}}var I,M,L,R=/\s+/g,B=[],K=[];t.getNavigationBarItems=function(t,r){I=r,M=t;try{return e.map(k(o(t)),D)}finally{n()}},t.getNavigationTree=function(e,t){I=t,M=e;try{return T(o(e))}finally{n()}}}(e.NavigationBar||(e.NavigationBar={}))}(r||(r={}));!function(e){!function(t){function n(t,n,r){function i(t){var i=o.getSymbolAtLocation(t);return void 0===i||(!(!c||i.name!==s)||e.FindAllReferences.getReferenceEntriesForNode(t.pos,t,r,[n],{isCancellationRequested:function(){return!1},throwIfCancellationRequested:function(){}}).filter(function(e){return"node"===e.type&&e.node.getSourceFile()===n}).length>1)}for(var o=r.getTypeChecker(),s=o.getJsxNamespace(),c=1===n.languageVariant&&r.getCompilerOptions().jsx,u=[],l=0,_=t;l<_.length;l++){var d=_[l],p=d.importClause;if(p){var f=p.name,m=p.namedBindings;if(f&&!i(f)&&(f=void 0),m)if(e.isNamespaceImport(m))i(m.name)||(m=void 0);else{var g=m.elements.filter(function(e){return i(e.propertyName||e.name)});g.length0?o[0]:c[0],b=0===h.length?void 0:0===c.length?e.createNamedImports(h):e.updateNamedImports(c[0].importClause.namedBindings,h);return u.push(a(v,p,b)),u}function a(t,n,r){return e.updateImportDeclaration(t,t.decorators,t.modifiers,e.updateImportClause(t.importClause,n,r),t.moduleSpecifier)}function o(t,n){var i=r(t),a=r(n);return e.compareBooleans(void 0===i,void 0===a)||e.compareBooleans(e.isExternalModuleNameRelative(i),e.isExternalModuleNameRelative(a))||e.compareStringsCaseSensitive(i,a)}t.organizeImports=function(t,a,s,c){var u=t.statements.filter(e.isImportDeclaration);if(0===u.length)return[];var l=e.group(u,function(e){return r(e.moduleSpecifier)}),_=e.stableSort(l,function(e,t){return o(e[0].moduleSpecifier,t[0].moduleSpecifier)}),d=e.flatMap(_,function(e){return r(e[0].moduleSpecifier)?i(n(e,t,c)):e}),p=e.textChanges.ChangeTracker.fromContext({host:s,formatContext:a});0===d.length?p.deleteNode(t,u[0]):p.replaceNodeWithNodes(t,u[0],d,{useNonAdjustedStartPosition:!1,useNonAdjustedEndPosition:!1,suffix:e.getNewLineOrDefaultFromHost(s,a.options)});for(var f=1;f1&&i.push(a(c,u))}var s=e.getLeadingCommentRangesOfNode(t,n);if(s){for(var c=-1,u=-1,l=0,_=0,d=s;_=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function a(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function o(e,t){for(var n=e.length-t.length,r=0;r<=n;r++)if(s(e,t,r))return r;return-1}function s(e,t,n){for(var r=0;r=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function u(e){return e>=48&&e<=57}function l(e){return i(e)||a(e)||u(e)||95===e||36===e}function _(e){for(var t=[],n=0,r=0,i=0;i0&&(t.push(d(e.substr(n,r))),r=0);return r>0&&t.push(d(e.substr(n,r))),t}function d(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:p(e)}}function p(e){return m(e,!1)}function f(e){return m(e,!0)}function m(t,n){for(var r=[],i=0,a=1;a0)for(var l=0,_=u(n);l<_.length;l++){var d=_[l];if(p(n,d,r.text,!0))return t(b.substring,a,p(n,d,r.text,!1))}}else if(n.indexOf(r.text)>0)return t(b.substring,a,!0);if(!c&&r.characterSpans.length>0){var f=u(n),g=m(n,f,r,!1);if(void 0!==g)return t(b.camelCase,a,!0,g);if(void 0!==(g=m(n,f,r,!0)))return t(b.camelCase,a,!1,g)}return c&&r.text.length0&&i(n.charCodeAt(s))?t(b.substring,a,!1):void 0}function _(e){for(var t=0;tt.length)return!1;if(r)for(l=0;lt.length))){for(var i=r,a=y.length-2,o=t.length-1;a>=0;a-=1,o-=1){var c=y[a],u=d(t[o],c);if(!u)return;e.addRange(i,u)}return i}}},getMatchesForLastSegmentOfPattern:function(t){if(!s(t))return d(t,e.lastOrUndefined(y))},patternContainsDots:y.length>1}},e.breakIntoCharacterSpans=p,e.breakIntoWordSpans=f}(r||(r={}));!function(e){e.preProcessFile=function(t,n,r){function i(){var t=e.scanner.scan();return 17===t?v++:18===t&&v--,t}function a(){var t=e.scanner.getTokenValue(),n=e.scanner.getTokenPos();return{fileName:t,pos:n,end:n+t.length}}function o(){f||(f=[]),f.push({ref:a(),depth:v})}function s(){y.push(a()),c()}function c(){0===v&&(b=!0)}function u(){var t=e.scanner.getToken();return 124===t&&(129===(t=i())&&9===(t=i())&&o(),!0)}function l(){var t=e.scanner.getToken();if(91===t){if(19===(t=i())){if(9===(t=i()))return s(),!0}else{if(9===t)return s(),!0;if(71===t||e.isKeyword(t))if(142===(t=i())){if(9===(t=i()))return s(),!0}else if(58===t){if(d(!0))return!0}else{if(26!==t)return!0;t=i()}if(17===t){for(t=i();18!==t&&1!==t;)t=i();18===t&&142===(t=i())&&9===(t=i())&&s()}else 39===t&&118===(t=i())&&(71===(t=i())||e.isKeyword(t))&&142===(t=i())&&9===(t=i())&&s()}return!0}return!1}function _(){var t=e.scanner.getToken();if(84===t){if(c(),17===(t=i())){for(t=i();18!==t&&1!==t;)t=i();18===t&&142===(t=i())&&9===(t=i())&&s()}else if(39===t)142===(t=i())&&9===(t=i())&&s();else if(91===t&&(71===(t=i())||e.isKeyword(t))&&58===(t=i())&&d(!0))return!0;return!0}return!1}function d(t){var n=t?i():e.scanner.getToken();return 133===n&&(19===(n=i())&&9===(n=i())&&s(),!0)}function p(){var t=e.scanner.getToken();if(71===t&&"define"===e.scanner.getTokenValue()){if(19!==(t=i()))return!0;if(9===(t=i())){if(26!==(t=i()))return!0;t=i()}if(21!==t)return!0;for(t=i();22!==t&&1!==t;)9===t&&s(),t=i();return!0}return!1}void 0===n&&(n=!0),void 0===r&&(r=!1);var f,m=[],g=[],y=[],h=!1,v=0,b=!1;if(n&&function(){for(e.scanner.setText(t),i();1!==e.scanner.getToken();)u()||l()||_()||r&&(d(!1)||p())||i();e.scanner.setText(void 0)}(),function(){var n=e.getLeadingCommentRanges(t,0);e.forEach(n,function(n){var r=t.substring(n.pos,n.end),i=e.getFileReferenceFromReferencePath(r,n);if(i){h=i.isNoDefaultLib;var a=i.fileReference;a&&(i.isTypeReferenceDirective?g:m).push(a)}})}(),b){if(f)for(var x=0,S=f;x0){if(e.some(c,o))return i(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.SymbolDisplay.getSymbolKind(n,s,t);if(!u)return;var l=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteral(t)&&146===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0;return r(_=l||n.symbolToString(s),l||n.getFullyQualifiedName(s),u,e.SymbolDisplay.getSymbolModifiers(s),t,a)}}else if(9===t.kind){if(o(t))return i(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);var _=e.stripQuotes(t.text);return r(_,_,"var","",t,a)}}function r(e,t,n,r,i,o){return{canRename:!0,kind:n,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:r,triggerSpan:a(i,o)}}function i(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function a(t,n){var r=t.getStart(n),i=t.getWidth(n);return 9===t.kind&&(r+=1,i-=2),e.createTextSpan(r,i)}function o(t){switch(t.kind){case 71:case 9:case 99:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}t.getRenameInfo=function(t,r,a,s,c){var u=e.memoize(function(){return a(e.normalizePath(r))}),l=e.getTouchingWord(s,c,!0);return(l&&o(l)?n(l,t,s,function(t){if(!r)return!1;var n=t.getSourceFile();return a(e.normalizePath(n.fileName))===u()}):void 0)||i(e.Diagnostics.You_cannot_rename_this_element)}}(e.Rename||(e.Rename={}))}(r||(r={}));!function(e){!function(t){function n(t,n){if(185===t.invocation.kind){var r=t.invocation.expression,i=e.isIdentifier(r)?r:e.isPropertyAccessExpression(r)?r.name:void 0;if(i&&i.escapedText)for(var a=n.getTypeChecker(),o=0,s=n.getSourceFiles();o0&&26===e.lastOrUndefined(n).kind&&r++,r}function o(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 s(t,n,r){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==n&&e.Debug.assertLessThan(n,i),{kind:2,invocation:t,argumentsSpan:u(t,r),argumentIndex:n,argumentCount:i}}function c(t,n){var r=t.getFullStart(),i=e.skipTrivia(n.text,t.getEnd(),!1);return e.createTextSpan(r,i-r)}function u(t,n){var r=t.template,i=r.getStart(),a=r.getEnd();return 200===r.kind&&0===e.lastOrUndefined(r.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(n.text,a,!1)),e.createTextSpan(i,a-i)}function l(t,n,i){for(var a=t;272!==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=r(a,n,i);if(o)return o}}function _(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 d(t,n,r,i){function a(t){var n=e.mapToDisplayParts(function(n){var r=i.symbolToParameterDeclaration(t,u,p);g.writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(u)),n)});return{name:t.name,documentation:t.getDocumentationComment(i),displayParts:n,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function o(t){var n=e.mapToDisplayParts(function(n){var r=i.typeParameterToDeclaration(t,u);g.writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(u)),n)});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),f=i.getSymbolAtLocation(d),m=f&&e.symbolToDisplayParts(i,f,void 0,void 0),g=e.createPrinter({removeComments:!0}),y=e.map(t,function(t){var n,r=[],s=[];m&&e.addRange(r,m);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(n){var r=t.thisParameter?[i.symbolToParameterDeclaration(t.thisParameter,u,p)]:[],a=e.createNodeArray(r.concat(e.map(t.parameters,function(e){return i.symbolToParameterDeclaration(e,u,p)})));g.writeList(1296,a,e.getSourceFileOfNode(e.getParseTreeNode(u)),n)});e.addRange(s,d)}else{c=t.hasRestParameter;var f=e.mapToDisplayParts(function(n){if(t.typeParameters&&t.typeParameters.length){var r=e.createNodeArray(e.map(t.typeParameters,function(e){return i.typeParameterToDeclaration(e,u)}));g.writeList(26896,r,e.getSourceFileOfNode(e.getParseTreeNode(u)),n)}});e.addRange(r,f),r.push(e.punctuationPart(19)),n=e.map(t.parameters,a),s.push(e.punctuationPart(20))}var y=e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var n=i.getTypePredicateOfSignature(t);n?i.writeTypePredicate(n,u,void 0,e):i.writeType(i.getReturnTypeOfSignature(t),u,void 0,e)});return e.addRange(s,y),{isVariadic:c,prefixDisplayParts:r,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:n,documentation:t.getDocumentationComment(i),tags:t.getJsDocTags()}});0!==l&&e.Debug.assertLessThan(l,s);var h=t.indexOf(n);return e.Debug.assert(-1!==h),{items:y,applicableSpan:c,selectedItemIndex:h,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=function(t,r,i,a){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(r,i);if(s){var c=l(s,i,r);if(c){a.throwIfCancellationRequested();var u=c.invocation,_=[],p=o.getResolvedSignature(u,_,c.argumentCount);if(a.throwIfCancellationRequested(),_.length)return d(_,p,c,o);if(e.isSourceFileJavaScript(r))return n(c,t)}}},t.getImmediatelyContainingArgumentInfo=r,t.getContainingArgumentInfo=l;var p=3121152}(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,203)?"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":a(n)?"local var":"var";if(16&i)return a(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 o=e.forEach(t.getRootSymbols(n),function(t){var n=t.getFlags();if(98311&n)return"property";e.Debug.assert(!!(8208&n))});return o||(t.getTypeOfSymbolAtLocation(n,r).getCallSignatures().length?"method":"property")}switch(r.parent&&r.parent.kind){case 255:case 253:case 254:return 71===r.kind?"property":"JSX attribute";case 260:return"JSX attribute";default:return"property"}}return""}function i(t,a,o,s,c,u,l){function _(){return T||(T=e.createPrinter({removeComments:!0})),T}function d(){C.length&&C.push(e.lineBreakPart()),p()}function p(){l&&(y("alias"),C.push(e.spacePart()))}function f(){C.push(e.spacePart()),C.push(e.keywordPart(92)),C.push(e.spacePart())}function m(n,r){l&&n===a&&(n=l);var i=e.symbolToDisplayParts(t,n,r||o,void 0,7);e.addRange(C,i)}function g(t,n){d(),n&&(y(n),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(C.push(e.spacePart()),m(t)))}function y(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void C.push(e.textOrKeywordPart(t));default:return C.push(e.punctuationPart(19)),C.push(e.textOrKeywordPart(t)),void C.push(e.punctuationPart(20))}}function h(n,r,i){e.addRange(C,e.signatureToDisplayParts(t,n,s,32|i)),r.length>1&&(C.push(e.spacePart()),C.push(e.punctuationPart(19)),C.push(e.operatorPart(37)),C.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),C.push(e.spacePart()),C.push(e.textPart(2===r.length?"overload":"overloads")),C.push(e.punctuationPart(20))),b=n.getDocumentationComment(t),x=n.getJsDocTags()}function v(n,r){var i=e.mapToDisplayParts(function(i){var a=t.symbolToTypeParameterDeclarations(n,r);_().writeList(26896,a,e.getSourceFileOfNode(e.getParseTreeNode(r)),i)});e.addRange(C,i)}void 0===u&&(u=e.getMeaningFromLocation(c));var b,x,S,k,T,D,C=[],E=e.getCombinedLocalAndExportSymbolFlags(a),N=r(t,a,c),A=99===c.kind&&e.isExpression(c);if(""!==N||32&E||2097152&E){"getter"!==N&&"setter"!==N||(N="property");B=void 0;if(k=A?t.getTypeAtLocation(c):t.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&183===c.parent.kind){var P=c.parent.name;(P===c||P&&0===P.getFullWidth())&&(c=c.parent)}var w=void 0;if(e.isCallOrNewExpression(c)?w=c:e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)?w=c.parent:c.parent&&e.isJsxOpeningLikeElement(c.parent)&&e.isFunctionLike(a.valueDeclaration)&&(w=c.parent),w){var F=[];B=t.getResolvedSignature(w,F);var O=186===w.kind||e.isCallExpression(w)&&97===w.expression.kind,I=O?k.getConstructSignatures():k.getCallSignatures();if(e.contains(I,B.target)||e.contains(I,B)||(B=I.length?I[0]:void 0),B){switch(O&&32&E?(N="constructor",g(k.symbol,N)):2097152&E?(y(N="alias"),C.push(e.spacePart()),O&&(C.push(e.keywordPart(94)),C.push(e.spacePart())),m(a)):g(a,N),N){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":C.push(e.punctuationPart(56)),C.push(e.spacePart()),65536&k.flags&&16&k.objectFlags||!k.symbol||(e.addRange(C,e.symbolToDisplayParts(t,k.symbol,s,void 0,5)),C.push(e.lineBreakPart())),O&&(C.push(e.keywordPart(94)),C.push(e.spacePart())),h(B,I,262144);break;default:h(B,I)}S=!0}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&E)||123===c.kind&&154===c.parent.kind){var M=c.parent;if(e.find(a.declarations,function(e){return e===(123===c.kind?M.parent:M)})){I=154===M.kind?k.getNonNullableType().getConstructSignatures():k.getNonNullableType().getCallSignatures();B=t.isImplementationOfOverload(M)?I[0]:t.getSignatureFromDeclaration(M),154===M.kind?(N="constructor",g(k.symbol,N)):g(157!==M.kind||2048&k.symbol.flags||4096&k.symbol.flags?a:k.symbol,N),h(B,I),S=!0}}}if(32&E&&!S&&!A&&(p(),e.getDeclarationOfKind(a,203)?y("local class"):C.push(e.keywordPart(75)),C.push(e.spacePart()),m(a),v(a,o)),64&E&&2&u&&(d(),C.push(e.keywordPart(109)),C.push(e.spacePart()),m(a),v(a,o)),524288&E&&(d(),C.push(e.keywordPart(139)),C.push(e.spacePart()),m(a),v(a,o),C.push(e.spacePart()),C.push(e.operatorPart(58)),C.push(e.spacePart()),e.addRange(C,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(a),s,8388608))),384&E&&(d(),e.forEach(a.declarations,e.isConstEnumDeclaration)&&(C.push(e.keywordPart(76)),C.push(e.spacePart())),C.push(e.keywordPart(83)),C.push(e.spacePart()),m(a)),1536&E){d();var L=($=e.getDeclarationOfKind(a,237))&&$.name&&71===$.name.kind;C.push(e.keywordPart(L?130:129)),C.push(e.spacePart()),m(a)}if(262144&E&&2&u)if(d(),C.push(e.punctuationPart(19)),C.push(e.textPart("type parameter")),C.push(e.punctuationPart(20)),C.push(e.spacePart()),m(a),a.parent)f(),m(a.parent,s),v(a.parent,s);else{var R=e.getDeclarationOfKind(a,147);if(e.Debug.assert(void 0!==R),$=R.parent)if(e.isFunctionLikeKind($.kind)){f();var B=t.getSignatureFromDeclaration($);158===$.kind?(C.push(e.keywordPart(94)),C.push(e.spacePart())):157!==$.kind&&$.name&&m($.symbol),e.addRange(C,e.signatureToDisplayParts(t,B,o,32))}else 235===$.kind&&(f(),C.push(e.keywordPart(139)),C.push(e.spacePart()),m($.symbol),v($.symbol,o))}if(8&E&&(N="enum member",g(a,"enum member"),271===($=a.declarations[0]).kind)){var K=t.getConstantValue($);void 0!==K&&(C.push(e.spacePart()),C.push(e.operatorPart(58)),C.push(e.spacePart()),C.push(e.displayPart(e.getTextOfConstantValue(K),"number"==typeof K?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&E){if(d(),!S){var j=t.getAliasedSymbol(a);if(j!==a&&j.declarations&&j.declarations.length>0){var z=j.declarations[0],J=e.getNameOfDeclaration(z);if(J){var U=e.isModuleWithStringLiteralName(z)&&e.hasModifier(z,2),q="default"!==a.name&&!U,V=i(t,j,e.getSourceFileOfNode(z),z,J,u,q?a:j);C.push.apply(C,V.displayParts),C.push(e.lineBreakPart()),D=V.documentation}}}switch(a.declarations[0].kind){case 240:C.push(e.keywordPart(84)),C.push(e.spacePart()),C.push(e.keywordPart(130));break;case 247:C.push(e.keywordPart(84)),C.push(e.spacePart()),C.push(e.keywordPart(a.declarations[0].isExportEquals?58:79));break;default:C.push(e.keywordPart(91))}C.push(e.spacePart()),m(a),e.forEach(a.declarations,function(n){if(241===n.kind){var r=n;if(e.isExternalModuleImportEqualsDeclaration(r))C.push(e.spacePart()),C.push(e.operatorPart(58)),C.push(e.spacePart()),C.push(e.keywordPart(133)),C.push(e.punctuationPart(19)),C.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),C.push(e.punctuationPart(20));else{var i=t.getSymbolAtLocation(r.moduleReference);i&&(C.push(e.spacePart()),C.push(e.operatorPart(58)),C.push(e.spacePart()),m(i,s))}return!0}})}if(!S)if(""!==N){if(k)if(A?(d(),C.push(e.keywordPart(99))):g(a,N),"property"===N||"JSX attribute"===N||3&E||"local var"===N||A)if(C.push(e.punctuationPart(56)),C.push(e.spacePart()),k.symbol&&262144&k.symbol.flags){var W=e.mapToDisplayParts(function(n){var r=t.typeParameterToDeclaration(k,s);_().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(s)),n)});e.addRange(C,W)}else e.addRange(C,e.typeToDisplayParts(t,k,s));else(16&E||8192&E||16384&E||131072&E||98304&E||"method"===N)&&(I=k.getNonNullableType().getCallSignatures()).length&&h(I[0],I)}else N=n(t,a,c);if(!b&&(b=a.getDocumentationComment(t),x=a.getJsDocTags(),0===b.length&&4&E&&a.parent&&e.forEach(a.parent.declarations,function(e){return 272===e.kind})))for(var H=0,G=a.declarations;H0))break}}return 0===b.length&&D&&(b=D),{displayParts:C,documentation:b,symbolKind:N,tags:x}}function a(t){return!t.parent&&e.forEach(t.declarations,function(t){if(190===t.kind)return!0;if(230!==t.kind&&232!==t.kind)return!1;for(var n=t.parent;!e.isFunctionBlock(n);n=n.parent)if(272===n.kind||238===n.kind)return!1;return!0})}t.getSymbolKind=n,t.getSymbolModifiers=function(t){var n=t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):"",r=t&&16777216&t.flags?"optional":"";return n&&r?n+","+r:n||r},t.getSymbolDisplayPartsDocumentationAndSymbolKind=i}(e.SymbolDisplay||(e.SymbolDisplay={}))}(r||(r={}));!function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.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=r.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);r.moduleName&&(s.moduleName=r.moduleName),r.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(r.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 r.reportDiagnostics&&(e.addRange(i,d.getSyntacticDiagnostics(s)),e.addRange(i,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,r.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:i,sourceMapText:u}}function n(t,n){r=r||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 i=0,a=r;i>=_;return n}function c(t,n){var r=1+(t>>n&d);return e.Debug.assert((r&d)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~(d<=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 s(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 c(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 u(t,n,r,i){return t?l({pos:e.getLineStartPositionForPosition(t.getStart(n),n),end:t.end},n,r,i):[]}function l(e,n,r,i){var u=a(e,n);return t.getFormattingScanner(n.text,n.languageVariant,s(u,e,n),e.end,function(a){return _(e,u,t.SmartIndenter.getIndentationForNode(u,e,n,r.options),c(u,r.options,n),a,r,i,o(n.parseDiagnostics,e),n)})}function _(n,r,i,a,o,s,c,u,l){function _(n,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,n,r)||e.rangeContainsStartEnd(a,n,r)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(n).line,c=e.getLineStartPositionForPosition(n,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,n,l,L);if(s!==i||n===u){var _=t.SmartIndenter.getBaseIndentation(L);return _>u?_:u}}return-1}function m(e,n,r,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(e)?L.indentSize:0;return o===n?{indentation:n===I?M:a.getIndentation(),delta:Math.min(L.indentSize,a.getDelta(e)+s)}:-1===r?19===e.kind&&n===I?{indentation:M,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,n,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:r,delta:s}}function g(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 233:return 75;case 234:return 109;case 232:return 89;case 236:return 236;case 155:return 125;case 156:return 136;case 153:if(t.asteriskToken)return 39;case 151:case 148:return e.getNameOfDeclaration(t).kind}}function y(e,n,r,i){function a(t,r,i){switch(r){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return!1;case 41:case 29:switch(i.kind){case 255:case 256:case 254:return!1}break;case 21:case 22:if(176!==i.kind)return!1}return n!==t&&!(e.decorators&&r===g(e))}function o(n){return t.SmartIndenter.nodeWillIndentChild(e,n,!0)?i:0}return{getIndentationForComment:function(e,t,n){switch(e){case 18:case 22:case 20:return r+o(n)}return-1!==t?t:r},getIndentationForToken:function(e,t,n){return a(e,t,n)?r+o(n):r},getIndentation:function(){return r},getDelta:o,recomputeIndentation:function(n){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(r+=n?L.indentSize:-L.indentSize,i=t.SmartIndenter.shouldIndentChildNode(e)?L.indentSize:0)}}}function h(t,r,i,a,s,c){function f(r,i,a,s,c,u,d,p){var f=r.getStart(l),g=l.getLineAndCharacterOfPosition(f).line,y=g;r.decorators&&(y=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,l)).line);var v=-1;if(d&&e.rangeContainsRange(n,a)&&-1!==(v=_(f,r.end,c,n,i))&&(i=v),!e.rangeOverlapsWithStartEnd(n,r.pos,r.end))return r.endf);)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=149===r.kind?g:u,k=m(r,g,v,t,s,S);return h(r,T,g,y,k.indentation,k.delta),10===r.kind&&D({pos:r.getStart(),end:r.getEnd()},k.indentation,!0,!1),T=t,p&&181===a.kind&&-1===i&&(i=k.indentation),i}function g(n,r,i,a){e.Debug.assert(e.isNodeArray(n));var s=d(r,n),c=p(s),u=a,_=i;if(0!==s)for(;o.isOnToken()&&!((b=o.readTokenInfo(r)).token.end>n.pos);)if(b.token.kind===s){_=l.getLineAndCharacterOfPosition(b.token.pos).line;var g=m(b.token,_,-1,r,a,i);x(b,r,u=y(r,i,g.indentation,g.delta),r)}else x(b,r,a,r);for(var h=-1,v=0;vt.end)break;x(C,t,k,t)}}}function v(t,r,i,a){for(var o=0,s=t;o0){var k=f(x,L);A(v,b.character,k)}else N(v,b.character)}}}else i||S(n.pos,r,!1)}function C(t,n,r){for(var i=t;io)){var s=E(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),N(s,o+1-s))}}}function E(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function N(t,n){n&&K.push(e.createTextChangeFromStartLength(t,n,""))}function A(t,n,r){(n||r)&&K.push(e.createTextChangeFromStartLength(t,n,r))}function P(e,t,n,r,i){var a=i!==n;switch(e.action){case 1:return 0;case 8:if(t.end!==r.pos)return N(t.end,r.pos-t.end),a?2:0;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!==i-n)return A(t.end,r.pos-t.end,L.newLineCharacter),a?0:1;break;case 2:if(1!==e.flags&&n!==i)return 0;if(1!==r.pos-t.end||32!==l.text.charCodeAt(t.end))return A(t.end,r.pos-t.end," "),a?2:0}return 0}var w,F,O,I,M,L=s.options,R=s.getRule,B=new t.FormattingContext(l,c,L),K=[];if(o.advance(),o.isOnToken()){var j=l.getLineAndCharacterOfPosition(r.getStart(l)).line,z=j;r.decorators&&(z=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,l)).line),h(r,r,j,z,i,a)}if(!o.isOnToken()){var J=o.getCurrentLeadingTrivia();J&&(v(J,r,r,void 0),function(){var e=w?w.end:n.pos;C(l.getLineAndCharacterOfPosition(e).line,l.getLineAndCharacterOfPosition(n.end).line+1,w)}())}return K}function d(e,t){switch(e.kind){case 154:case 232:case 190:case 153:case 152:case 191:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 185:case 186:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 161:if(e.typeArguments===t)return 27}return 0}function p(e){switch(e){case 19:return 20;case 27:return 29}return 0}function f(t,n){if((!y||y.tabSize!==n.tabSize||y.indentSize!==n.indentSize)&&(y={tabSize:n.tabSize,indentSize:n.indentSize},h=v=void 0),n.convertTabsToSpaces){var r=void 0,i=Math.floor(t/n.indentSize),a=t%n.indentSize;return v||(v=[]),void 0===v[i]?(r=e.repeatString(" ",n.indentSize*i),v[i]=r):r=v[i],a?r+e.repeatString(" ",a):r}var o=Math.floor(t/n.tabSize),s=t-o*n.tabSize,c=void 0;return h||(h=[]),void 0===h[o]?h[o]=c=e.repeatString("\t",o):c=h[o],s?c+e.repeatString(" ",s):c}var m;!function(e){e[e.Unknown=-1]="Unknown"}(m||(m={})),t.formatOnEnter=function(t,n,r){var i=n.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(a));)a--;return e.isLineBreak(n.text.charCodeAt(a))&&a--,l({pos:e.getStartPositionOfLine(i-1,n),end:a+1},n,r,2)},t.formatOnSemicolon=function(e,t,i){return u(r(n(e,25,t)),t,i,3)},t.formatOnOpeningCurly=function(t,i,a){var o=n(t,17,i);if(!o)return[];var s=r(o.parent);return l({pos:e.getLineStartPositionForPosition(s.getStart(i),i),end:t},i,a,4)},t.formatOnClosingCurly=function(e,t,i){return u(r(n(e,18,t)),t,i,5)},t.formatDocument=function(e,t){return l({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,n,r,i){return l({pos:e.getLineStartPositionForPosition(t,r),end:n},r,i,1)},t.formatNodeGivenIndentation=function(e,n,r,i,a,o){var s={pos:0,end:n.text.length};return t.getFormattingScanner(n.text,r,s.pos,s.end,function(t){return _(s,e,i,a,t,o,1,function(e){return!1},n)})};var g;!function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(g||(g={})),t.getRangeOfEnclosingComment=function(t,n,r,i,a,o){if(void 0===a&&(a=e.getTokenAtPosition(t,n,!1)),!(a.getStart(t)<=n&&n=0),a<=o)return S(e.getStartPositionOfLine(o,t),n,t,r);var s=e.getStartPositionOfLine(a,t),c=x(s,n,t,r),u=c.column,l=c.character;return 0===u?u:42===t.text.charCodeAt(s+l)?u-1:u}function i(t,n,r){for(var i=n;i>0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return S(e.getLineStartPositionForPosition(i,t),i,t,r)}function a(t,n,r,i,a,c){for(var u,l=r;l;){if(e.positionBelongsToNode(l,n,t)&&C(l,u,!0)){var p=d(l,t),f=_(r,l,i,t);return s(l,p,void 0,0!==f?a&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0,t,!0,c)}var m=y(l,t,c);if(-1!==m)return m;if(-1!==(m=h(l,t,c)))return m+c.indentSize;u=l,l=l.parent}return o(c)}function o(e){return e.baseIndentSize||0}function s(e,t,n,r,i,a,s){for(var u=e.parent;u;){var _=!0;if(n){var d=e.getStart(i);_=dn.end}if(_&&-1!==(v=y(e,i,s)))return v+r;var m=c(u,e,i),g=m.line===t.line||f(u,e,t.line,i);if(_){var v=l(e,u,t,g,i,s);if(-1!==v)return v+r;if(-1!==(v=h(e,i,s)))return v+r}C(u,e,a)&&!g&&(r+=s.indentSize);var b=p(u,e,t.line,i);u=(e=u).parent,t=b?i.getLineAndCharacterOfPosition(e.getStart(i)):m}return r+o(s)}function c(e,t,n){var r=g(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function u(t,n,r){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?v(i.list.getChildren(),i.listItemIndex-1,n,r):-1}function l(t,n,r,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(272===n.kind||!i)?b(r,a,o):-1}function _(t,n,r,i){var a=e.findNextToken(t,n);return a?17===a.kind?1:18===a.kind&&r===d(a,i).line?2:0:0}function d(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function p(t,n,r,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,n))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===r}function f(t,n,r,i){if(215===t.kind&&t.elseStatement===n){var a=e.findChildOfKind(t,82,i);return e.Debug.assert(void 0!==a),d(a,i).line===r}return!1}function m(t,n,r){return t&&e.rangeContainsStartEnd(t,n,r)?t:void 0}function g(e,t){if(e.parent)switch(e.parent.kind){case 161:return m(e.parent.typeArguments,e.getStart(t),e.getEnd());case 182:return e.parent.properties;case 181:return e.parent.elements;case 232:case 190:case 191:case 153:case 152:case 157:case 154:case 163:case 158:n=e.getStart(t);return m(e.parent.typeParameters,n,e.getEnd())||m(e.parent.parameters,n,e.getEnd());case 233:return m(e.parent.typeParameters,e.getStart(t),e.getEnd());case 186:case 185:var n=e.getStart(t);return m(e.parent.typeArguments,n,e.getEnd())||m(e.parent.arguments,n,e.getEnd());case 231:return m(e.parent.declarations,e.getStart(t),e.getEnd());case 245:case 249:return m(e.parent.elements,e.getStart(t),e.getEnd())}}function y(e,t,n){var r=g(e,t);if(r){var i=r.indexOf(e);if(-1!==i)return v(r,i,t,n)}return-1}function h(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 185:case 186:case 183:case 184: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:b(o,n,r)}return-1}function v(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 b(a,r,i);a=d(t[o],r)}return-1}function b(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return S(r,r+e.character,t,n)}function x(t,n,r,i){for(var a=0,o=0,s=t;ss.text.length)return o(c);if(c.indentStyle===e.IndentStyle.None)return 0;var _=e.findPrecedingToken(n,s),d=t.getRangeOfEnclosingComment(s,n,!0,_||null);if(d)return r(s,n,c,d);if(!_)return o(c);if(e.isStringOrRegularExpressionOrTemplateLiteral(_.kind)&&_.getStart(s)<=n&&n<_.end)return 0;var p=s.getLineAndCharacterOfPosition(n).line;if(c.indentStyle===e.IndentStyle.Block)return i(s,n,c);if(26===_.kind&&198!==_.parent.kind){var f=u(_,s,c);if(-1!==f)return f}return a(s,n,_,p,l,c)},n.getIndentationForNode=function(e,t,n,r){return s(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,!1,r)},n.getBaseIndentation=o;var N;!function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(N||(N={})),n.isArgumentAndStartLineOverlapsExpressionBeingCalled=p,n.childStartsOnTheSameLineWithElseInIfStatement=f,n.getContainingList=g,n.findFirstNonWhitespaceCharacterAndColumn=x,n.findFirstNonWhitespaceColumn=S,n.nodeWillIndentChild=T,n.shouldIndentChildNode=C}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(r||(r={}));!function(e){!function(t){function n(t){var n=t.__pos;return e.Debug.assert("number"==typeof n),n}function r(t,n){e.Debug.assert("number"==typeof n),t.__pos=n}function i(t){var n=t.__end;return e.Debug.assert("number"==typeof n),n}function a(t,n){e.Debug.assert("number"==typeof n),t.__end=n}function o(t,n){return e.skipTrivia(t,n,!1,!0)}function s(t,n){for(var r=n;r0?1:0,l=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,c)+u,t);return l=o(t.text,l),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,l),t)}function u(t,n,r){if(r.useNonAdjustedEndPosition||e.isExpression(n))return n.getEnd();var i=n.getEnd(),a=e.skipTrivia(t.text,i,!0);return a!==i&&e.isLineBreak(t.text.charCodeAt(a-1))?a:i}function l(e,t){return t&&e.parent&&(26===t.kind||25===t.kind&&182===e.parent.kind)}function _(e){for(var t="",n=0;n=0;r--){var i=n[r];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span))}return t}function m(t){return e.skipTrivia(t,0)===t.length}function g(t){var r=e.visitEachChild(t,g,e.nullTransformationContext,y,g),a=e.nodeIsSynthesized(r)?r:Object.create(r);return a.pos=n(t),a.end=i(t),a}function y(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}function h(t){function n(){if(a0)for(var i=0,a=n;i=l.length+_.length&&e.startsWith(n,l)&&e.endsWith(n,_)){var d=n.substr(l.length,n.length-_.length);return i.replace("*",d)}}else if(c===n||c===t)return i}}function h(t,n,r,i){var a=S(n,t,i);if(void 0!==a){var o=S(r,t,i),s=void 0!==o?C(a,o,i):a;return e.removeFileExtension(s)}}function v(t,n,r,i,a){var o=e.getEffectiveTypeRoots(t,n);return e.firstDefined(o,function(n){var o=e.toPath(n,void 0,r);if(e.startsWith(i,o))return k(i.substring(o.length+1),t,a)})}function b(t,n,r,i,a){if(e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs){var o=x(n);if(o){var s=function(t){var n=t.substring(0,o.packageRootIndex),a=e.combinePaths(n,"package.json");if(r.fileExists(a)){var s=JSON.parse(r.readFile(a));if(s){var c=s.typings||s.types||s.main;if(c&&e.toPath(c,n,i)===i(t))return n}}var u=e.removeFileExtension(t);return"/index"===i(u.substring(o.fileNameIndex))?u.substring(0,o.fileNameIndex):u}(n);return s=function(e){var t=e.substring(0,o.topLevelNodeModulesIndex);return 0===a.indexOf(t)?e.substring(o.topLevelPackageNameIndex+1):C(e,a,i)}(s),e.getPackageNameFromAtTypesDirectory(s)}}}function x(e){var t,n=0,r=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(t||(t={}));for(var o=0,s=0,c=0;s>=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 S(t,n,r){return e.firstDefined(n,function(e){var n=T(t,e,r);return D(n)?void 0:n})}function k(t,n,r){var i=e.removeFileExtension(t);return r?i+".js":e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs?e.removeSuffix(i,"/index"):i}function T(t,n,r){var i=e.getRelativePathToDirectoryOrUrl(n,t,n,r,!1);return e.isRootedDiskPath(i)?void 0:i}function D(t){return e.startsWith(t,"..")}function C(t,n,r){var i=e.getRelativePathToDirectoryOrUrl(n,t,n,r,!1);return e.pathIsRelative(i)?i:"./"+i}function E(t,r,i){var a=e.firstDefined(i,function(t){var i=t.declaration,a=t.importKind;if(242===i.kind&&i.importClause){var o=A(r,e.isImportClause(i.importClause)&&i.importClause||void 0,a);if(o){var s=e.stripQuotes(i.moduleSpecifier.getText());return n(e.Diagnostics.Add_0_to_existing_import_declaration_from_1,[r.symbolName,s],o)}}});if(a)return[a];var o=e.firstDefined(i,N);return(o?[o]:p(r.program,r.sourceFile,t,r.compilerOptions,r.getCanonicalFileName,r.host)).map(function(e){return u(r,e)})}function N(t){var n=t.declaration,r=t.importKind,i=242===n.kind?n.moduleSpecifier:252===n.moduleReference.kind?n.moduleReference.expression:void 0;return i&&e.isStringLiteral(i)?{moduleSpecifier:i.text,importKind:r}:void 0}function A(t,n,r){var i=t.symbolName,a=t.sourceFile,o=n.name,s=(241!==n.kind&&n).namedBindings;switch(r){case 1:return o?void 0:j.with(t,function(t){return t.replaceNode(a,n,e.createImportClause(e.createIdentifier(i),s))});case 0:var c=e.createImportSpecifier(void 0,e.createIdentifier(i));if(s&&245===s.kind&&0!==s.elements.length)return j.with(t,function(e){return e.insertNodeInListAfter(a,s.elements[s.elements.length-1],c)});if(!s||245===s.kind&&0===s.elements.length)return j.with(t,function(t){return t.replaceNode(a,n,e.createImportClause(o,e.createNamedImports([c])))});return;case 2:return s?void 0:j.with(t,function(t){return t.replaceNode(a,n,e.createImportClause(o,e.createNamespaceImport(e.createIdentifier(i))))});case 3:return;default:e.Debug.assertNever(r)}}function P(t,r,i){var a=r.symbolName,o=r.sourceFile,s=j.with(r,function(n){return n.replaceNode(o,i,e.createPropertyAccess(e.createIdentifier(t),i))});return n(e.Diagnostics.Change_0_to_1,[a,t+"."+a],s)}function w(t){var n,i=e.getTokenAtPosition(t.sourceFile,t.span.start,!1),o=t.program.getTypeChecker();if(e.isIdentifier(i)&&(n=o.getSymbolAtLocation(i)),!e.isUMDExportSymbol(n)){var s=i.parent,c=e.isJsxOpeningLikeElement(s);(e.isJsxOpeningLikeElement&&s.tagName===i||258===s.kind)&&(n=o.resolveName(o.getJsxNamespace(),c?s.tagName:s,107455,!1))}if(e.isUMDExportSymbol(n)){var u=o.getAliasedSymbol(n);if(u)return a([{moduleSymbol:u,importKind:F(t.program.getCompilerOptions())}],r(t,i,n.name))}}function F(t){if(e.getAllowSyntheticDefaultImports(t))return 1;var n=e.getEmitModuleKind(t);switch(n){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return 3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:throw e.Debug.assertNever(n)}}function O(t){function n(t,n,r){g.add(e.getUniqueSymbolId(n,u).toString(),{moduleSymbol:t,importKind:r})}var i=t.sourceFile,o=t.span,s=t.program,c=t.cancellationToken,u=s.getTypeChecker(),l=e.getTokenAtPosition(i,o.start,!1),_=e.isJsxOpeningLikeElement(l.parent)&&l.parent.tagName===l;if(_||e.isIdentifier(l)){var d=_?u.getJsxNamespace():l.text,p=s.getSourceFiles(),f=s.getCompilerOptions();e.Debug.assert("default"!==d);var m=e.getMeaningFromLocation(l),g=e.createMultiMap();return M(u,i,p,function(t){c.throwIfCancellationRequested();var r=u.tryGetMemberInModuleExports("default",t);if(r){var i=e.getLocalSymbolForExportDefault(r);(i&&i.escapedName===d||function(t){return e.firstDefined(t.declarations,function(t){if(e.isExportAssignment(t)){if(e.isIdentifier(t.expression))return t.expression.escapedText}else if(e.isExportSpecifier(t)&&(e.Debug.assert("default"===t.name.escapedText),t.propertyName))return t.propertyName.escapedText})}(r)===d||B(t,f.target)===d)&&I(i||r,m)&&n(t,i||r,1)}var a=u.tryGetMemberInModuleExportsAndProperties(d,t);a&&I(a,m)&&n(t,a,0)}),e.arrayFrom(e.flatMapIterator(g.values(),function(e){return a(e,r(t,l,d))}))}}function I(t,n){var r=t.declarations;return e.some(r,function(t){return!!(e.getMeaningFromDeclaration(t)&n)})}function M(e,t,n,r){L(e,n,function(e,n){(void 0===n||n!==t&&R(t.fileName,n.fileName))&&r(e)})}function L(t,n,r){for(var i=0,a=t.getAmbientModules();i=o)return{lineNumber:i,change:e.createTextChangeFromStartLength(o,0,"// @ts-ignore"+r)}}return{lineNumber:i,change:e.createTextChangeFromStartLength(n,0,(n===o?"":r)+"// @ts-ignore"+r)}}var r="disableJsDiagnostics",i=e.mapDefined(Object.keys(e.Diagnostics),function(t){var n=e.Diagnostics[t];return n.category===e.DiagnosticCategory.Error?n.code:void 0});t.registerCodeFix({errorCodes:i,getCodeActions:function(i){var a=i.sourceFile,o=i.program,s=i.span;if(e.isInJavaScriptFile(a)&&e.isCheckJsEnabledForFile(a,o.getCompilerOptions())){var c=e.getNewLineOrDefaultFromHost(i.host,i.formatContext.options);return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[t.createFileTextChanges(a.fileName,[n(a,s.start,c).change])],fixId:r},{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[t.createFileTextChanges(a.fileName,[e.createTextChange(a.checkJsDirective?e.createTextSpanFromBounds(a.checkJsDirective.pos,a.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+c)])],fixId:void 0}]}},fixIds:[r],getAllCodeActions:function(r){var a=e.createMap();return t.codeFixAllWithTextChanges(r,i,function(t,i){if(void 0!==i.start){var o=n(i.file,i.start,e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options)),s=o.lineNumber,c=o.change;e.addToSeen(a,s)&&t.push(c)}})}})}(e.codefix||(e.codefix={}))}(r||(r={}));!function(e){!function(t){function n(t,n,a,s){function l(e,t,i,o){var c=r(a,e,n,t,i,y,o);c&&s(c)}var _=t.getDeclarations();if(_&&_.length){var d=_[0],p=e.getSynthesizedDeepClone(e.getNameOfDeclaration(d)),f=u(e.getModifierFlags(d)),m=f?e.createNodeArray([f]):void 0,g=a.getWidenedType(a.getTypeOfSymbolAtLocation(t,n)),y=!!(16777216&t.flags);switch(d.kind){case 155:case 156:case 150:case 151:var h=a.typeToTypeNode(g,n);s(e.createProperty(void 0,m,p,y?e.createToken(55):void 0,h,void 0));break;case 152:case 153:var v=a.getSignaturesOfType(g,0);if(!e.some(v))break;if(1===_.length){e.Debug.assert(1===v.length),l(S=v[0],m,p,c());break}for(var b=0,x=v;bv.length){var S=a.getSignatureFromDeclaration(_[_.length-1]);l(S,m,p,c())}else e.Debug.assert(_.length===v.length),s(o(v,p,y,m))}}}function r(t,n,r,i,a,o,s){var c=t.signatureToSignatureDeclaration(n,153,r,256);if(c)return c.decorators=void 0,c.modifiers=i,c.name=a,c.questionToken=o?e.createToken(55):void 0,c.body=s,c}function i(t){return t&&e.createNodeArray(t.map(e.getSynthesizedDeepClone))}function a(t,n,r,i){for(var a=[],o=0;o=r?e.createToken(55):void 0,i?void 0:e.createKeywordTypeNode(119),void 0);a.push(s)}return a}function o(t,n,r,i){for(var o=t[0],c=t[0].minArgumentCount,u=!1,l=0,_=t;l<_.length;l++){var d=_[l];c=Math.min(d.minArgumentCount,c),d.hasRestParameter&&(u=!0),d.parameters.length>=o.parameters.length&&(!d.hasRestParameter||o.hasRestParameter)&&(o=d)}var p=o.parameters.length-(o.hasRestParameter?1:0),f=o.parameters.map(function(e){return e.name}),m=a(p,f,c,!1);if(u){var g=e.createArrayTypeNode(e.createKeywordTypeNode(119)),y=e.createParameter(void 0,void 0,e.createToken(24),f[p]||"rest",p>=c?e.createToken(55):void 0,g,void 0);m.push(y)}return s(i,n,r,void 0,m,void 0)}function s(t,n,r,i,a,o){return e.createMethod(void 0,t,void 0,n,r?e.createToken(55):void 0,i,a,o,c())}function c(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function u(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.createMissingMemberNodes=function(e,t,r,i){for(var a=e.symbol.members,o=0,s=t;ot&&(r?a=e.concatenate(a,e.map(c.argumentTypes.slice(t),function(e){return i.getBaseTypeOfLiteralType(e)})):a.push(i.getBaseTypeOfLiteralType(c.argumentTypes[t])))}if(a.length){var u=i.getWidenedType(i.getUnionType(a,2));return r?i.createArrayType(u):u}}function d(t,n){for(var r=[],i=0;i0?[{name:i,description:o,actions:[{description:o,name:a}]}]:void 0}}})}(t.convertFunctionToES6Class||(t.convertFunctionToES6Class={}))}(e.refactor||(e.refactor={}))}(r||(r={}));!function(e){!function(t){function n(t,i,a){function o(n){return!!n&&!!n.initializer&&e.isExportsOrModuleExportsOrAlias(t,n.initializer)}switch(void 0===a&&(a=!1),i.kind){case 185:return r(i);case 183:return e.isExportsOrModuleExportsOrAlias(t,i)||e.isExportsOrModuleExportsOrAlias(t,i.expression);case 231:return o(e.firstOrUndefined(i.declarations));case 230:return o(i);default:return e.isExpression(i)&&e.isExportsOrModuleExportsOrAlias(t,i)||!a&&n(t,i.parent,!0)}}function r(t){if(!e.isRequireCall(t,!0))return!1;var n=t.parent,r=e.isPropertyAccessExpression(n)?n.parent:n;if(e.isExpressionStatement(r)&&e.isSourceFile(r.parent))return!0;if(!e.isVariableDeclaration(r))return!1;var i=r.parent;if(231!==i.kind)return!1;var a=i.parent;return 212===a.kind&&272===a.parent.kind}function i(t,n,r){for(var i=0,a=t.imports;i1?[[y(r),h(r)],!0]:[[h(r)],!0]:[[y(r)],!1]}function y(e){return w(void 0,e)}function h(t){return w([e.createExportSpecifier(void 0,"default")],t)}function v(t,n){function r(){return P(i,e.createIdentifier(t),n)}var i=[e.createToken(84)];switch(n.kind){case 190:var a=n.name;if(a&&a.text!==t)return r();case 191:return D(t,i,n);case 203:return C(t,i,n);default:return r()}}function b(t,n,r,i,a,o,s){switch(n.kind){case 178:var c=e.mapAllOrFail(n.elements,function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:A(t.propertyName&&t.propertyName.text,t.name.text)});if(c)return[N(void 0,c,r)];case 179:var u=S(e.codefix.moduleSpecifierToValidIdentifier(r,s),o);return[N(e.createIdentifier(u),void 0,r),P(void 0,e.getSynthesizedDeepClone(n),e.createIdentifier(u))];case 71:return x(t,n,r,i,a,o);default:e.Debug.assertNever(n)}}function x(t,n,r,i,a,o){for(var s=a.getSymbolAtLocation(n),c=e.createMap(),u=!1,l=0,_=o.original.get(n.text);l<_.length;l++){var d=_[l];if(a.getSymbolAtLocation(d)===s&&d!==n){var p=d.parent;if(e.isPropertyAccessExpression(p)){var f=p.expression,m=p.name.text;e.Debug.assert(f===d);var g=c.get(m);void 0===g&&(g=S(m,o),c.set(m,g)),i.replaceNode(t,p,e.createIdentifier(g))}else u=!0}}var y=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),function(t){var n=t[0],r=t[1];return e.createImportSpecifier(n===r?void 0:e.createIdentifier(n),e.createIdentifier(r))}));return y||(u=!0),[N(u?e.getSynthesizedDeepClone(n):void 0,y,r)]}function S(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function k(t){var n=e.createMultiMap();return t.forEachChild(function t(r){e.isIdentifier(r)&&T(r)&&n.add(r.text,r),r.forEachChild(t)}),n}function T(e){var t=e.parent;switch(t.kind){case 183:return t.name!==e;case 180:return t.propertyName!==e;default:return!0}}function D(t,n,r){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(n,e.getSynthesizedDeepClones(r.modifiers)),e.getSynthesizedDeepClone(r.asteriskToken),t,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.parameters),e.getSynthesizedDeepClone(r.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(r.body)))}function C(t,n,r){return e.createClassDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(n,e.getSynthesizedDeepClones(r.modifiers)),t,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.heritageClauses),e.getSynthesizedDeepClones(r.members))}function E(t,n,r){return"default"===n?N(e.createIdentifier(t),void 0,r):N(void 0,[A(n,t)],r)}function N(t,n,r){var i=(t||n)&&e.createImportClause(t,n&&e.createNamedImports(n));return e.createImportDeclaration(void 0,void 0,i,e.createLiteral(r))}function A(t,n){return e.createImportSpecifier(void 0!==t&&t!==n?e.createIdentifier(t):void 0,e.createIdentifier(n))}function P(t,n,r){return e.createVariableStatement(t,e.createVariableDeclarationList([e.createVariableDeclaration(n,void 0,r)],2))}function w(t,n){return e.createExportDeclaration(void 0,void 0,t&&e.createNamedExports(t),void 0===n?void 0:e.createLiteral(n))}var F="Convert to ES6 module",O=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_ES6_module);t.registerRefactor(F,{getEditsForAction:function(t,n){e.Debug.assertEqual(F,n);var r=t.file,o=t.program;return e.Debug.assert(e.isSourceFileJavaScript(r)),{edits:e.textChanges.ChangeTracker.with(t,function(e){if(a(r,o.getTypeChecker(),e,o.getCompilerOptions().target))for(var t=0,n=o.getSourceFiles();t=n.start+n.length)return(s||(s=[])).push(e.createDiagnosticForNode(t,z.cannotExtractSuper)),!0}else l|=J.UsesThis}if(!t||e.isFunctionLikeDeclaration(t)||e.isClassLike(t)){switch(t.kind){case 232:case 233:272===t.parent.kind&&void 0===t.parent.externalModuleIndicator&&(s||(s=[])).push(e.createDiagnosticForNode(t,z.functionWillNotBeVisibleInTheNewScope))}return!1}var o=_;switch(t.kind){case 215:case 228:_=0;break;case 211:t.parent&&228===t.parent.kind&&t.parent.finallyBlock===t&&(_=4);break;case 264:_|=1;break;default:e.isIterationStatement(t,!1)&&(_|=3)}switch(t.kind){case 173:case 99:l|=J.UsesThis;break;case 226:var d=t.label;(c||(c=[])).push(d.escapedText),e.forEachChild(t,i),c.pop();break;case 222:case 221:(d=t.label)?e.contains(c,d.escapedText)||(s||(s=[])).push(e.createDiagnosticForNode(t,z.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_&(222===t.kind?1:2)||(s||(s=[])).push(e.createDiagnosticForNode(t,z.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 195:l|=J.IsAsyncFunction;break;case 201:l|=J.IsGenerator;break;case 223:4&_?l|=J.HasReturn:(s||(s=[])).push(e.createDiagnosticForNode(t,z.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(t,i)}_=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.Debug.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),!(e.isStatement(t)||e.isExpressionNode(t)&&B(t)))return[e.createDiagnosticForNode(t,z.statementOrExpressionExpected)];if(2097152&t.flags)return[e.createDiagnosticForNode(t,z.cannotExtractAmbientBlock)];var o=e.getContainingClass(t);o&&r(t,o);var s,c,_=4;return i(t),s}var a=n.length;if(0===a)return{errors:[e.createFileDiagnostic(t,n.start,a,z.cannotExtractEmpty)]};var s=L(e.getTokenAtPosition(t,n.start,!1),t,n),c=L(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(n)),t,n),u=[],l=J.None;if(!s||!c)return{errors:[e.createFileDiagnostic(t,n.start,a,z.cannotExtractRange)]};if(s.parent!==c.parent)return{errors:[e.createFileDiagnostic(t,n.start,a,z.cannotExtractRange)]};if(s!==c){if(!K(s.parent))return{errors:[e.createFileDiagnostic(t,n.start,a,z.cannotExtractRange)]};for(var _=[],d=0,p=s.parent.statements;d1)return t;r=t,t=t.parent}}function S(t,n,r,i){for(var a=0,o=-1,s=0,c=t;s=0),o}function k(e){var t=void 0,n=e.symbol;if(n&&n.declarations)for(var r=0,i=n.declarations;r0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.createBlock(t.statements,!0),returnValueProperty:void 0};var c,u=!1,l=e.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.createReturn(t)]);if(s||i.size){var _=e.visitNodes(l,o).slice();if(s&&!a&&e.isStatement(t)){var d=F(n,r);1===d.length?_.push(e.createReturn(d[0].name)):_.push(e.createReturn(e.createObjectLiteral(d)))}return{body:e.createBlock(_,!0),returnValueProperty:c}}return{body:e.createBlock(l,!0),returnValueProperty:void 0}}function E(t,n){function r(t){var i=n.get(e.getNodeId(t).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(t,r,e.nullTransformationContext)}return n.size?r(t):t}function N(t){if(e.isFunctionLikeDeclaration(t)){var n=t.body;if(e.isBlock(n))return n.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertTypeIsNever(t)}return e.emptyArray}function A(t,n){return e.find(N(n),function(n){return n.pos>=t&&e.isFunctionLikeDeclaration(n)&&!e.isConstructorDeclaration(n)})}function P(t,n){var r=n.members;e.Debug.assert(r.length>0);for(var i=void 0,a=!0,o=0,s=r;ot)return i||r[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==i)return c;a=!1}i=c}return e.Debug.assert(void 0!==i),i}function w(t,n){e.Debug.assert(!e.isClassLike(n));for(var r=void 0,i=t;i!==n;i=i.parent)s(i)&&(r=i);for(i=(r||t).parent;;i=i.parent){if(K(i)){for(var a=void 0,o=0,c=i.statements;ot.pos)break;a=u}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent)),i.parent.parent):(e.Debug.assert(void 0!==a),a)}if(i===n){e.Debug.fail("Didn't encounter a block-like before encountering scope");break}}}function F(t,n){var r=e.map(t,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)}),i=e.map(n,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)});return void 0===r?i:void 0===i?r:r.concat(i)}function O(t){return e.isArray(t)}function I(t,n){return O(t.range)?{pos:e.first(t.range).getStart(n),end:e.last(t.range).getEnd()}:t.range}function M(t,n,r,i,a,o){function s(t){return e.isDeclarationWithTypeParameters(t)&&void 0!==t.typeParameters&&t.typeParameters.length>0}function c(e){for(var t=0,n=a.getSymbolWalker(function(){return o.throwIfCancellationRequested(),!0}).walkType(e).visitedTypes;t=s)return l;if(I.set(l,s),_){for(var d=0,m=g;d=0)){var r=e.isIdentifier(n)?p(n):a.getSymbolAtLocation(n);if(r){var i=e.find(b,function(e){return e.symbol===r});if(i)if(e.isVariableDeclaration(i)){var o=i.symbol.id.toString();x.has(o)||(S.push(i),x.set(o,!0))}else k=k||i}e.forEachChild(n,d)}}function p(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?a.getShorthandAssignmentValueSymbol(t.parent):a.getSymbolAtLocation(t)}function f(t,n,r){if(t){var i=t.getDeclarations();if(i&&i.some(function(e){return e.parent===n}))return e.createIdentifier(t.name);var a=f(t.parent,n,r);if(void 0!==a)return r?e.createQualifiedName(a,e.createIdentifier(t.name)):e.createPropertyAccess(a,t.name)}}var m=e.createMap(),g=[],y=[],h=[],v=[],b=[],x=e.createMap(),S=[],k=void 0,T=O(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range,D=void 0;if(void 0===T){var C=t.range,E=e.first(C).getStart(),N=e.last(C).end;D=e.createFileDiagnostic(i,E,N-E,z.expressionExpected)}else 18432&a.getTypeAtLocation(T).flags&&(D=e.createDiagnosticForNode(T,z.uselessConstantType));for(var A=0,P=n;A0){for(var B=e.createMap(),K=0,j=L;void 0!==j&&K0&&(r.usages.size>0||r.typeParameterUsages.size>0)){var i=O(t.range)?t.range[0]:t.range;v[n].push(e.createDiagnosticForNode(i,z.cannotAccessVariablesFromNestedScopes))}var a=!1,o=void 0;if(g[n].usages.forEach(function(t){2===t.usage&&(a=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))}),e.Debug.assert(O(t.range)||0===S.length),a&&!O(t.range))s=e.createDiagnosticForNode(t.range,z.cannotWriteInExpression),h[n].push(s),v[n].push(s);else if(o&&n>0)s=e.createDiagnosticForNode(o,z.cannotExtractReadonlyPropertyInitializerOutsideConstructor),h[n].push(s),v[n].push(s);else if(k){var s=e.createDiagnosticForNode(k,z.cannotExtractExportedEntity);h[n].push(s),v[n].push(s)}}(G);return{target:M,usagesPerScope:g,functionErrorsPerScope:h,constantErrorsPerScope:v,exposedVariableDeclarations:S}}function L(t,n,r){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!R(r,t.parent,n))return t;t=t.parent}}function R(t,n,r){return e.textSpanContainsPosition(t,n.getStart(r))&&n.getEnd()<=e.textSpanEnd(t)}function B(e){switch(e.parent.kind){case 271:return!1}switch(e.kind){case 9:return 242!==e.parent.kind&&246!==e.parent.kind;case 202:case 178:case 180:return!1;case 71:return 180!==e.parent.kind&&246!==e.parent.kind&&250!==e.parent.kind}return!0}function K(e){switch(e.kind){case 211:case 272:case 238:case 264:return!0;default:return!1}}var j="Extract Symbol";t.registerRefactor(j,{getAvailableActions:r,getEditsForAction:i}),n.getAvailableActions=r,n.getEditsForAction=i;var z;!function(t){function n(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=n("Cannot extract range."),t.cannotExtractImport=n("Cannot extract import statement."),t.cannotExtractSuper=n("Cannot extract super call."),t.cannotExtractEmpty=n("Cannot extract empty range."),t.expressionExpected=n("expression expected."),t.uselessConstantType=n("No reason to extract constant of type."),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.cannotExtractIdentifier=n("Select more than a single identifier."),t.cannotExtractExportedEntity=n("Cannot extract exported declaration"),t.cannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),t.cannotExtractToOtherFunctionLike=n("Cannot extract method to a function-like scope that is not a function"),t.cannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block")}(z=n.Messages||(n.Messages={}));var J;!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"}(J||(J={})),n.getRangeToExtract=a;var U;!function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(U||(U={}));var q;!function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(q||(q={}))}(t.extractSymbol||(t.extractSymbol={}))}(e.refactor||(e.refactor={}))}(r||(r={}));!function(e){!function(t){!function(n){function r(t){var n=t.file,r=t.startPosition,a=e.getTokenAtPosition(n,r,!1);if(e.isStringLiteral(a)&&i(a)){var o=e.getResolvedModule(n,a.text);if(!o||!e.extensionIsTypeScript(o.extension))return e.codefix.tryGetCodeActionForInstallPackageTypes(t.host,n.fileName,a.text)}}function i(e){switch(e.parent.kind){case 242:case 252:return!0;default:return!1}}var a="Install missing types package",o="install",s="Install missing types package";t.registerRefactor(a,{getEditsForAction:function(t,n){return e.Debug.assertEqual(o,n),{edits:[],renameFilename:void 0,renameLocation:void 0,commands:r(t).commands}},getAvailableActions:function(t){if(!e.getStrictOptionValue(t.program.getCompilerOptions(),"noImplicitAny")){var n=r(t);return n&&[{name:a,description:s,actions:[{description:n.description,name:o}]}]}}})}(t.installTypesForPackage||(t.installTypesForPackage={}))}(e.refactor||(e.refactor={}))}(r||(r={}));!function(e){!function(t){!function(n){function r(t,n){for(var r=e.getTokenAtPosition(t,n,!1);;){switch(r.kind){case 241:var i=r,a=i.moduleReference;return 252===a.kind&&e.isStringLiteral(a.expression)?{importStatement:i,name:i.name,moduleSpecifier:a.expression}:void 0;case 242:var o=r,s=o.importClause;return s&&!s.name&&244===s.namedBindings.kind&&e.isStringLiteral(o.moduleSpecifier)?{importStatement:o,name:s.namedBindings.name,moduleSpecifier:o.moduleSpecifier}:void 0;case 244:case 252:case 91:case 71:case 9:case 39:break;default:return}r=r.parent}}var i="Convert to default import",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_default_import);t.registerRefactor(i,{getEditsForAction:function(t,n){var a=t.file,o=t.startPosition;e.Debug.assertEqual(i,n);var s=r(a,o);if(s){var c=s.importStatement,u=s.name,l=s.moduleSpecifier,_=e.createImportClause(u,void 0),d=e.createImportDeclaration(void 0,void 0,_,l);return{edits:e.textChanges.ChangeTracker.with(t,function(e){return e.replaceNode(a,c,d)}),renameFilename:void 0,renameLocation:void 0}}},getAvailableActions:function(t){var n=t.file,o=t.startPosition,s=t.program;if(e.getAllowSyntheticDefaultImports(s.getCompilerOptions())){var c=r(n,o);if(c){var u=e.getResolvedModule(n,c.moduleSpecifier.text),l=u&&s.getSourceFile(u.resolvedFileName);if(l&&l.externalModuleIndicator&&e.isExportAssignment(l.externalModuleIndicator)&&l.externalModuleIndicator.isExportEquals)return[{name:i,description:a,actions:[{description:a,name:i}]}]}}}})}(t.installTypesForPackage||(t.installTypesForPackage={}))}(e.refactor||(e.refactor={}))}(r||(r={}));!function(e){function t(t,n,r,i){var a=e.isNodeKind(t)?new g(t,n,r):71===t?new b(71,n,r):new v(t,n,r);return a.parent=i,a.flags=6387712&i.flags,a}function r(t){return e.getJSDocTags(t).some(function(e){return"inheritDoc"===e.tagName.text})}function i(t,n,r){var i=!1;return e.flatMap(a(t),function(t){if(i)return e.emptyArray;var a=r.getTypeAtLocation(t);if(!a)return e.emptyArray;var o=r.getPropertyOfType(a,n);if(!o)return e.emptyArray;var s=o.getDocumentationComment(r);return i=s.length>0,s})}function a(t){var n=t.parent;if(!n||!e.isClassDeclaration(n)&&!e.isInterfaceDeclaration(n))return e.emptyArray;var r=e.getClassExtendsHeritageClauseElement(n),i=r?[r]:e.emptyArray;return e.isClassLike(n)?e.concatenate(i,e.getClassImplementsHeritageClauseElements(n)):i}function o(t){var n=!0;for(var r in t)if(e.hasProperty(t,r)&&!s(r)){n=!1;break}if(n)return t;var i={};for(var r in t)e.hasProperty(t,r)&&(i[s(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=t[r]);return i}function s(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function c(){return{target:1,jsx:1}}function u(e,t,n){e.version=n,e.scriptSnapshot=t}function l(t,n,r,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(n),r,a,o);return u(s,n,i),s}function _(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):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var _=n.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+_+c:s?s+_:_+c}var d=e.updateSourceFile(t,o,i,a);return u(d,n,r),d.nameTable=void 0,t!==d&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),d}return l(t.fileName,n,t.languageVersion,r,!0,t.scriptKind)}function d(t){var n=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(r){if(e.isIdentifier(r)&&r.escapedText||e.isStringOrNumericLiteral(r)&&p(r)){var i=e.getEscapedTextOfIdentifierOrLiteral(r);n.set(i,void 0===n.get(i)?r.pos:-1)}if(e.forEachChild(r,t),e.hasJSDocNodes(r))for(var a=0,o=r.jsDoc;a292});return r.kind<145?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){this.assertHasRealPosition();var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<145?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}(),y=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||(e=this.getSourceFile()),e.text.substring(this.getStart(e),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}(),h=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.symbolName(this)},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(t){if(void 0===this.documentationComment)if(this.declarations){if(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations),(0===this.documentationComment.length||this.declarations.some(r))&&t)for(var n=0,a=this.declarations;n0){this.documentationComment.length>0&&o.push(e.lineBreakPart()),this.documentationComment=e.concatenate(o,this.documentationComment);break}}}else this.documentationComment=[];return this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),v=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}(y),b=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.idText(this)},enumerable:!0,configurable:!0}),r}(y);b.prototype.kind=71;var x=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 65536&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},e.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},e}(),S=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(){if(void 0===this.documentationComment)if(this.declaration){if(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]),0===this.documentationComment.length||r(this.declaration)){var t=i(this.declaration,this.declaration.symbol.getName(),this.checker);this.documentationComment.length>0&&t.push(e.lineBreakPart()),this.documentationComment=e.concatenate(t,this.documentationComment)}}else this.documentationComment=[];return this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),k=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);return n&&(e.isPropertyNameLiteral(n)?e.getTextOfIdentifierOrLiteral(n):146===n.kind&&e.isPropertyAccessExpression(n.expression)?n.expression.name.text:void 0)}function i(a){switch(a.kind){case 232:case 190:case 153:case 152: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 233:case 203:case 234:case 235:case 236:case 237:case 241:case 250:case 246:case 243:case 244:case 155:case 156:case 165:t(a),e.forEachChild(a,i);break;case 148:if(!e.hasModifier(a,92))break;case 230:case 180:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 271:case 151:case 150:t(a);break;case 248:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 242:var _=a.importClause;_&&(_.name&&t(_),_.namedBindings&&(244===_.namedBindings.kind?t(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 198:0!==e.getSpecialPropertyAssignmentKind(a)&&t(a);default:e.forEachChild(a,i)}}var a=e.createMultiMap();return e.forEachChild(this,i),a},r}(g),T=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=o,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=c,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var D=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=N,e.createLanguageService=function(t,n){function r(e){t.log&&t.log(e)}function i(e){var t=m.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function a(){function i(n){var r=e.toPath(n,x,S),i=c.getEntryByPath(r);return i?!e.isString(i):t.fileExists&&t.fileExists(n)}function a(t,r,i,a,o){e.Debug.assert(void 0!==c);var s=c.getOrCreateEntryByPath(t,r);if(s){if(!o){var u=m&&m.getSourceFileByPath(r);if(u)return e.Debug.assertEqual(s.scriptKind,u.scriptKind,"Registered script kind should match new script kind.",r),n.updateDocumentWithKey(t,r,_,p,s.scriptSnapshot,s.version,s.scriptKind)}return n.acquireDocumentWithKey(t,r,_,p,s.scriptSnapshot,s.version,s.scriptKind)}}if(t.getProjectVersion){var o=t.getProjectVersion();if(o){if(g===o&&!t.hasChangedAutomaticTypeDirectiveNames)return;g=o}}var s=t.getTypeRootsVersion?t.getTypeRootsVersion():0;h!==s&&(r("TypeRoots version has changed; provide new program"),m=void 0,h=s);var c=new D(t,S),u=c.getRootFileNames(),l=t.hasInvalidatedResolution||e.returnFalse;if(!e.isProgramUptoDate(m,u,c.compilationSettings(),function(e){return c.getVersion(e)},i,l,t.hasChangedAutomaticTypeDirectiveNames)){var _=c.compilationSettings(),d={getSourceFile:function(t,n,r,i){return a(t,e.toPath(t,x,S),0,0,i)},getSourceFileByPath:a,getCancellationToken:function(){return b},getCanonicalFileName:S,useCaseSensitiveFileNames:function(){return v},getNewLine:function(){return e.getNewLineCharacter(_,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return x},fileExists:i,readFile:function(n){var r=e.toPath(n,x,S),i=c.getEntryByPath(r);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(n)},realpath:t.realpath&&function(e){return t.realpath(e)},directoryExists:function(n){return e.directoryProbablyExists(n,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},onReleaseOldSourceFile:function(e,t){var r=n.getKeyForCompilationSettings(t);n.releaseDocumentWithKey(e.path,r)},hasInvalidatedResolution:l,hasChangedAutomaticTypeDirectiveNames:t.hasChangedAutomaticTypeDirectiveNames};t.trace&&(d.trace=function(e){return t.trace(e)}),t.resolveModuleNames&&(d.resolveModuleNames=function(e,n,r){return t.resolveModuleNames(e,n,r)}),t.resolveTypeReferenceDirectives&&(d.resolveTypeReferenceDirectives=function(e,n){return t.resolveTypeReferenceDirectives(e,n)});var p=n.getKeyForCompilationSettings(_);m=e.createProgram(u,_,d,m),c=void 0,m.getTypeChecker()}}function s(){return a(),m}function c(t,n){if((e.isIdentifier(t)||e.isStringLiteral(t))&&e.isPropertyAssignment(t.parent)&&t.parent.name===t){var r=n.getContextualType(t.parent.parent);if(r){var i=n.getPropertyOfType(r,e.getTextOfIdentifierOrLiteral(t));if(i)return i}}return n.getSymbolAtLocation(t)}function u(t,n,r){a();var o=e.map(r,function(t){return e.Debug.assertDefined(m.getSourceFile(t))}),s=i(t);return e.DocumentHighlights.getDocumentHighlights(m,b,s,n,o)}function l(t,n,r){a();var o=[];if(r&&r.isForRename)for(var s=0,c=m.getSourceFiles();s0&&!function(t){return e.stringContains(t,"/node_modules/")}(o.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(s);){b.throwIfCancellationRequested(),e.Debug.assert(l.length===n.length+3);var _=l[1],d=l.index+_.length;if(e.isInComment(o,d)){for(var p=void 0,f=0;f=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}(s.charCodeAt(d+p.text.length))){var m=l[2];c.push({descriptor:p,message:m,position:d})}}}return c},getBraceMatchingAtPosition:function(t,n){var r=y.getCurrentSourceFile(t),i=e.getTouchingToken(r,n,!1),a=i.getStart(r)===n?k.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,r);return o?[e.createTextSpanFromNode(i,r),e.createTextSpanFromNode(o,r)].sort(function(e,t){return e.start-t.start}):e.emptyArray},getIndentationAtPosition:function(t,n,i){var a=e.timestamp(),s=o(i),c=y.getCurrentSourceFile(t);r("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-a)),a=e.timestamp();var u=e.formatting.SmartIndenter.getIndentation(n,c,s);return r("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-a)),u},getFormattingEditsForRange:function(t,n,r,i){var a=y.getCurrentSourceFile(t);return e.formatting.formatSelection(n,r,a,e.formatting.getFormatContext(o(i)))},getFormattingEditsForDocument:function(t,n){return e.formatting.formatDocument(y.getCurrentSourceFile(t),e.formatting.getFormatContext(o(n)))},getFormattingEditsAfterKeystroke:function(t,n,r,i){var a=y.getCurrentSourceFile(t),s=e.formatting.getFormatContext(o(i));if(!e.isInComment(a,n))switch(r){case"{":return e.formatting.formatOnOpeningCurly(n,a,s);case"}":return e.formatting.formatOnClosingCurly(n,a,s);case";":return e.formatting.formatOnSemicolon(n,a,s);case"\n":return e.formatting.formatOnEnter(n,a,s)}return[]},getDocCommentTemplateAtPosition:function(n,r){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),y.getCurrentSourceFile(n),r)},isValidBraceCompletionAtPosition:function(t,n,r){if(60===r)return!1;var i=y.getCurrentSourceFile(t);if(e.isInString(i,n))return!1;if(e.isInsideJsxElementOrAttribute(i,n))return 123===r;if(e.isInTemplateString(i,n))return!1;switch(r){case 39:case 34:case 96:return!e.isInComment(i,n)}return!0},getSpanOfEnclosingComment:function(t,n,r){var i=y.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,n,r);return a&&e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(n,r,o,s,c){a();var u=i(n),l=e.createTextSpanFromBounds(r,o),_=e.formatting.getFormatContext(c);return e.flatMap(e.deduplicate(s,e.equateValues,e.compareValues),function(n){return b.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:n,sourceFile:u,span:l,program:m,host:t,cancellationToken:b,formatContext:_})})},getCombinedCodeFix:function(n,r,o){a(),e.Debug.assert("file"===n.type);var s=i(n.fileName),c=e.formatting.getFormatContext(o);return e.codefix.getAllFixes({fixId:r,sourceFile:s,program:m,host:t,cancellationToken:b,formatContext:c})},applyCodeActionCommand:function(t,n){var r="string"==typeof t?n:t;return e.isArray(r)?Promise.all(r.map(p)):p(r)},organizeImports:function(n,r){a(),e.Debug.assert("file"===n.type);var o=i(n.fileName),s=e.formatting.getFormatContext(r);return e.OrganizeImports.organizeImports(o,s,t,m)},getEmitOutput:function(n,r){a();var o=i(n),s=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(m,o,r,b,s)},getNonBoundSourceFile:_,getSourceFile:function(e){return _(e)},getProgram:s,getApplicableRefactors:function(t,n){a();var r=i(t);return e.refactor.getApplicableRefactors(f(r,n))},getEditsForRefactor:function(t,n,r,o,s){a();var c=i(t);return e.refactor.getEditsForRefactor(f(c,r,n),o,s)}};var T},e.getNameTable=function(e){return e.nameTable||d(e),e.nameTable},e.getContainingObjectLiteralElement=function(t){switch(t.kind){case 9:case 8:if(146===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 71:return!e.isObjectLiteralElement(t.parent)||182!==t.parent.parent.kind&&261!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}},e.getPropertySymbolsFromContextualType=function(e,t){var n=t.parent;return f(e.getContextualType(n),t.name)},e.getPropertySymbolsFromType=f,e.getDefaultLibFilePath=function(t){if("undefined"!=typeof __dirname)return __dirname+e.directorySeparator+e.getDefaultLibFileName(t);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")},e.objectAllocator={getNodeConstructor:function(){return g},getTokenConstructor:function(){return v},getIdentifierConstructor:function(){return b},getSourceFileConstructor:function(){return k},getSymbolConstructor:function(){return h},getTypeConstructor:function(){return x},getSignatureConstructor:function(){return S},getSourceMapSourceConstructor:function(){return T}}}(r||(r={}));!function(e){!function(t){t.spanInSourceFileAtLocation=function(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 231===n.parent.kind&&n.parent.declarations[0]===n?r(e.findPrecedingToken(n.pos,t,n.parent),n):r(n)}function _(n){return 219===n.parent.parent.kind?u(n.parent.parent):e.isBindingPattern(n.name)?y(n.name):n.initializer||e.hasModifier(n,1)||220===n.parent.parent.kind?l(n):231===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=n.parameters.indexOf(t);return e.Debug.assert(-1!==i),0!==i?p(n.parameters[i-1]):u(n.body)}function f(t){return e.hasModifier(t,1)||233===t.parent.kind&&154!==t.kind}function m(n){switch(n.parent.kind){case 237:if(1!==e.getModuleInstanceState(n.parent))return;case 217:case 215:case 219:return a(n.parent,n.statements[0]);case 218:case 220:return a(e.findPrecedingToken(n.pos,t,n.parent),n.statements[0])}return u(n.statements[0])}function g(e){if(231!==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 204!==e.kind?e:void 0});return n?u(n):180===t.parent.kind?r(t.parent):l(t.parent)}function h(t){e.Debug.assert(179!==t.kind&&178!==t.kind);var n=181===t.kind?t.elements:t.properties,i=e.forEach(n,function(e){return 204!==e.kind?e:void 0});return i?u(i):r(198===t.parent.kind?t.parent:t)}if(n)switch(n.kind){case 212:return _(n.declarationList.declarations[0]);case 230:case 151:case 150:return _(n);case 148:return p(n);case 232:case 153:case 152:case 155:case 156:case 154:case 190:case 191:return function(e){if(e.body)return f(e)?r(e):u(e.body)}(n);case 211: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 238:return m(n);case 267:return m(n.block);case 214:return r(n.expression);case 223:return r(n.getChildAt(0),n.expression);case 217:return i(n,n.expression);case 216:return u(n.statement);case 229:return r(n.getChildAt(0));case 215:return i(n,n.expression);case 226:return u(n.statement);case 222:case 221:return r(n.getChildAt(0),n.label);case 218:return function(e){return e.initializer?g(e):e.condition?r(e.condition):e.incrementor?r(e.incrementor):void 0}(n);case 219:return i(n,n.expression);case 220:return g(n);case 225:return i(n,n.expression);case 264:case 265:return u(n.statements[0]);case 228:return m(n.tryBlock);case 227:case 247:return r(n,n.expression);case 241:return r(n,n.moduleReference);case 242:case 248:return r(n,n.moduleSpecifier);case 237:if(1!==e.getModuleInstanceState(n))return;case 233:case 236:case 271:case 180:return r(n);case 224:return u(n.statement);case 149:return o(n.parent.decorators);case 178:case 179:return y(n);case 234:case 235: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 236:var r=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 233:var i=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),i.members.length?i.members[0]:i.getLastToken(t));case 239:return a(n.parent.parent,n.parent.clauses[0])}return u(n.parent)}(n);case 18:return function(t){switch(t.parent.kind){case 238:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 236:case 233:return r(t);case 211:if(e.isFunctionBlock(t.parent))return r(t);case 267:return u(e.lastOrUndefined(t.parent.statements));case 239:var n=t.parent,i=e.lastOrUndefined(n.clauses);if(i)return u(e.lastOrUndefined(i.statements));return;case 178: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 179: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 216===e.parent.kind||185===e.parent.kind||186===e.parent.kind?s(e):189===e.parent.kind?c(e):u(e.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 190:case 232:case 191:case 153:case 152:case 155:case 156:case 154:case 217:case 216:case 218:case 220:case 185:case 186:case 189:return s(e);default:return u(e.parent)}}(n);case 56:return function(t){return e.isFunctionLike(t.parent)||268===t.parent.kind||148===t.parent.kind?s(t):u(t.parent)}(n);case 29:case 27:return function(e){return 188===e.parent.kind?c(e):u(e.parent)}(n);case 106:return function(e){return 216===e.parent.kind?i(e,e.parent.expression):u(e.parent)}(n);case 82:case 74:case 87:return c(n);case 144:return function(e){return 220===e.parent.kind?c(e):u(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return h(n);if((71===n.kind||202===n.kind||268===n.kind||269===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return r(n);if(198===n.kind){if(b=n,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.isExpressionNode(n))switch(n.parent.kind){case 216:return s(n);case 149:return u(n.parent);case 218:case 220:return r(n);case 198:if(26===n.parent.operatorToken.kind)return r(n);break;case 191:if(n.parent.body===n)return r(n)}if(268===n.parent.kind&&n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return u(n.parent.initializer);if(188===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(230===n.parent.kind||148===n.parent.kind){var v=n.parent;if(v.initializer===n||v.type===n||e.isAssignmentOperator(n.kind))return s(n)}if(198===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===_)&&!(2097152&l.flags))return u(l)}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(r||(r={}));!function(e){e.transform=function(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}}(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"),t.isString(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.getDefinitionAndBoundSpan=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAndBoundSpan(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.getSpanOfEnclosingComment=function(e,t,n){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return r.languageService.getSpanOfEnclosingComment(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,n){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.getCompletionsAtPosition(e,t,n)})},r.prototype.getCompletionEntryDetails=function(e,t,n,r,i){var a=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+n+"')",function(){var o=void 0===r?void 0:JSON.parse(r);return a.languageService.getCompletionEntryDetails(e,t,n,o,i)})},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&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,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,lodash_unescape=unescape;const SyntaxKind$1=typescript.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",TOKEN_TO_TEXT[SyntaxKind$1.UniqueKeyword]="unique",TOKEN_TO_TEXT[SyntaxKind$1.KeyOfKeyword]="keyof";var nodeUtils={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,isComment:isComment,isJSDocComment:isJSDocComment};const SyntaxKind=nodeUtils.SyntaxKind;var convert=function e(t){function n(e){t.additionalOptions.parseForESLint&&!e.body&&(e.type=`TSEmptyBody${e.type}`)}function r(t){return e({node:t,parent:d,ast:f,additionalOptions:m})}function i(e){const t=r(e),n=e.getFullStart()-1,i=nodeUtils.getLocFor(n,e.end,f);return{type:astNodeTypes.TSTypeAnnotation,loc:i,range:[n,e.end],typeAnnotation:t}}function a(e){const t=e.pos-1;let n=e.end+1;if(e&&e.length){const t=e[0].parent;if(t&&(t.kind===SyntaxKind.CallExpression||t.kind===SyntaxKind.TypeReference)){const t=e[e.length-1];n=nodeUtils.findNextToken(t,f).end}}return{type:astNodeTypes.TSTypeParameterInstantiation,range:[t,n],loc:nodeUtils.getLocFor(t,n,f),params:e.map(e=>nodeUtils.isTypeKeyword(e.kind)?{type:astNodeTypes[`TS${SyntaxKind[e.kind]}`],range:[e.getStart(),e.getEnd()],loc:nodeUtils.getLoc(e,f)}:{type:astNodeTypes.TSTypeReference,range:[e.getStart(),e.getEnd()],loc:nodeUtils.getLoc(e,f),typeName:r(e.typeName||e),typeParameters:e.typeArguments?a(e.typeArguments):void 0})}}function o(t){const n=t[0],r=t[t.length-1],i=nodeUtils.findNextToken(r,f);return{type:astNodeTypes.TSTypeParameterDeclaration,range:[n.pos-1,i.end],loc:nodeUtils.getLocFor(n.pos-1,i.end,f),params:t.map(t=>{const n=nodeUtils.unescapeIdentifier(t.name.text),r=t.constraint?e({node:t.constraint,parent:t,ast:f,additionalOptions:m}):void 0,i=t.default?e({node:t.default,parent:t,ast:f,additionalOptions:m}):t.default;return{type:astNodeTypes.TSTypeParameter,range:[t.getStart(),t.getEnd()],loc:nodeUtils.getLoc(t,f),name:n,constraint:r,default:i}})}}function s(e){return e&&e.length?e.map(e=>{const t=r(e.expression);return{type:astNodeTypes.Decorator,range:[e.getStart(),e.end],loc:nodeUtils.getLoc(e,f),expression:t}}):[]}function c(e){return e&&e.length?e.map(e=>{const t=r(e);return e.decorators&&e.decorators.length?Object.assign(t,{decorators:s(e.decorators)}):t}):[]}function u(e){const t=nodeUtils.convertToken(e,f);if(t.type===astNodeTypes.JSXMemberExpression){const n=d.tagName.expression.kind===SyntaxKind.PropertyAccessExpression;t.object=r(d.tagName.expression),t.property=r(d.tagName.name),t.object.type=n?astNodeTypes.JSXMemberExpression:astNodeTypes.JSXIdentifier,t.property.type=astNodeTypes.JSXIdentifier,e.expression.kind===SyntaxKind.ThisKeyword&&(t.object.name="this")}else t.type=astNodeTypes.JSXIdentifier,t.name=t.value;return delete t.value,t}function l(e){if(!e||!e.length)return;const t={};for(let n=0;n!t[n]);n&&n.length&&(g.modifiers=n.map(r))}function _(e){const t=d.type.getEnd();e.range[1]=t;const n=nodeUtils.getLocFor(e.range[0],e.range[1],f);e.loc=n}const d=t.node,p=t.parent,f=t.ast,m=t.additionalOptions||{};if(!d)return null;let g={type:"",range:[d.getStart(),d.end],loc:nodeUtils.getLoc(d,f)};switch(d.kind){case SyntaxKind.SourceFile:Object.assign(g,{type:astNodeTypes.Program,body:[],sourceType:d.externalModuleIndicator?"module":"script"}),d.statements.forEach(e=>{const t=r(e);t&&g.body.push(t)}),g.range[1]=d.endOfFileToken.end,g.loc=nodeUtils.getLocFor(d.getStart(),g.range[1],f);break;case SyntaxKind.Block:Object.assign(g,{type:astNodeTypes.BlockStatement,body:d.statements.map(r)});break;case SyntaxKind.Identifier:Object.assign(g,{type:astNodeTypes.Identifier,name:nodeUtils.unescapeIdentifier(d.text)});break;case SyntaxKind.WithStatement:Object.assign(g,{type:astNodeTypes.WithStatement,object:r(d.expression),body:r(d.statement)});break;case SyntaxKind.ReturnStatement:Object.assign(g,{type:astNodeTypes.ReturnStatement,argument:r(d.expression)});break;case SyntaxKind.LabeledStatement:Object.assign(g,{type:astNodeTypes.LabeledStatement,label:r(d.label),body:r(d.statement)});break;case SyntaxKind.BreakStatement:case SyntaxKind.ContinueStatement:Object.assign(g,{type:SyntaxKind[d.kind],label:r(d.label)});break;case SyntaxKind.IfStatement:Object.assign(g,{type:astNodeTypes.IfStatement,test:r(d.expression),consequent:r(d.thenStatement),alternate:r(d.elseStatement)});break;case SyntaxKind.SwitchStatement:Object.assign(g,{type:astNodeTypes.SwitchStatement,discriminant:r(d.expression),cases:d.caseBlock.clauses.map(r)});break;case SyntaxKind.CaseClause:case SyntaxKind.DefaultClause:Object.assign(g,{type:astNodeTypes.SwitchCase,test:r(d.expression),consequent:d.statements.map(r)});break;case SyntaxKind.ThrowStatement:Object.assign(g,{type:astNodeTypes.ThrowStatement,argument:r(d.expression)});break;case SyntaxKind.TryStatement:Object.assign(g,{type:astNodeTypes.TryStatement,block:e({node:d.tryBlock,parent:null,ast:f,additionalOptions:m}),handler:r(d.catchClause),finalizer:r(d.finallyBlock)});break;case SyntaxKind.CatchClause:Object.assign(g,{type:astNodeTypes.CatchClause,param:d.variableDeclaration?r(d.variableDeclaration.name):null,body:r(d.block)});break;case SyntaxKind.WhileStatement:Object.assign(g,{type:astNodeTypes.WhileStatement,test:r(d.expression),body:r(d.statement)});break;case SyntaxKind.DoStatement:Object.assign(g,{type:astNodeTypes.DoWhileStatement,test:r(d.expression),body:r(d.statement)});break;case SyntaxKind.ForStatement:Object.assign(g,{type:astNodeTypes.ForStatement,init:r(d.initializer),test:r(d.condition),update:r(d.incrementor),body:r(d.statement)});break;case SyntaxKind.ForInStatement:case SyntaxKind.ForOfStatement:{const e=!(!d.awaitModifier||d.awaitModifier.kind!==SyntaxKind.AwaitKeyword);Object.assign(g,{type:SyntaxKind[d.kind],left:r(d.initializer),right:r(d.expression),body:r(d.statement),await:e});break}case SyntaxKind.FunctionDeclaration:{let e=astNodeTypes.FunctionDeclaration;d.modifiers&&d.modifiers.length&&nodeUtils.hasModifier(SyntaxKind.DeclareKeyword,d)&&(e=astNodeTypes.DeclareFunction),Object.assign(g,{type:e,id:r(d.name),generator:!!d.asteriskToken,expression:!1,async:nodeUtils.hasModifier(SyntaxKind.AsyncKeyword,d),params:c(d.parameters),body:r(d.body)}),d.type&&(g.returnType=i(d.type)),d.typeParameters&&d.typeParameters.length&&(g.typeParameters=o(d.typeParameters)),n(g),g=nodeUtils.fixExports(d,g,f);break}case SyntaxKind.VariableDeclaration:Object.assign(g,{type:astNodeTypes.VariableDeclarator,id:r(d.name),init:r(d.initializer)}),d.exclamationToken&&(g.definite=!0),d.type&&(g.id.typeAnnotation=i(d.type),_(g.id));break;case SyntaxKind.VariableStatement:Object.assign(g,{type:astNodeTypes.VariableDeclaration,declarations:d.declarationList.declarations.map(r),kind:nodeUtils.getDeclarationKind(d.declarationList)}),g=nodeUtils.fixExports(d,g,f);break;case SyntaxKind.VariableDeclarationList:Object.assign(g,{type:astNodeTypes.VariableDeclaration,declarations:d.declarations.map(r),kind:nodeUtils.getDeclarationKind(d)});break;case SyntaxKind.ExpressionStatement:Object.assign(g,{type:astNodeTypes.ExpressionStatement,expression:r(d.expression)});break;case SyntaxKind.ThisKeyword:Object.assign(g,{type:astNodeTypes.ThisExpression});break;case SyntaxKind.ArrayLiteralExpression:{const e=nodeUtils.findAncestorOfKind(d,SyntaxKind.BinaryExpression),t=d.parent&&d.parent.kind===SyntaxKind.ForOfStatement,n=d.parent&&d.parent.kind===SyntaxKind.ForInStatement;let i;e&&(i=e.left===d||nodeUtils.findChildOfKind(e.left,SyntaxKind.ArrayLiteralExpression,f)===d),i||t||n?Object.assign(g,{type:astNodeTypes.ArrayPattern,elements:d.elements.map(r)}):Object.assign(g,{type:astNodeTypes.ArrayExpression,elements:d.elements.map(r)});break}case SyntaxKind.ObjectLiteralExpression:{const e=nodeUtils.findFirstMatchingAncestor(d,e=>e.kind===SyntaxKind.BinaryExpression||e.kind===SyntaxKind.ArrowFunction),t=e&&e.kind===SyntaxKind.BinaryExpression&&e.operatorToken.kind===SyntaxKind.FirstAssignment?e:null;let n=!1;t&&(n=t.left===d||nodeUtils.findChildOfKind(t.left,SyntaxKind.ObjectLiteralExpression,f)===d),n?Object.assign(g,{type:astNodeTypes.ObjectPattern,properties:d.properties.map(r)}):Object.assign(g,{type:astNodeTypes.ObjectExpression,properties:d.properties.map(r)});break}case SyntaxKind.PropertyAssignment:Object.assign(g,{type:astNodeTypes.Property,key:r(d.name),value:r(d.initializer),computed:nodeUtils.isComputedProperty(d.name),method:!1,shorthand:!1,kind:"init"});break;case SyntaxKind.ShorthandPropertyAssignment:d.objectAssignmentInitializer?Object.assign(g,{type:astNodeTypes.Property,key:r(d.name),value:{type:astNodeTypes.AssignmentPattern,left:r(d.name),right:r(d.objectAssignmentInitializer),loc:g.loc,range:g.range},computed:!1,method:!1,shorthand:!0,kind:"init"}):Object.assign(g,{type:astNodeTypes.Property,key:r(d.name),value:r(d.initializer||d.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.ComputedPropertyName:if(p.kind!==SyntaxKind.ObjectLiteralExpression)return r(d.expression);Object.assign(g,{type:astNodeTypes.Property,key:r(d.name),value:r(d.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.PropertyDeclaration:{const e=nodeUtils.hasModifier(SyntaxKind.AbstractKeyword,d);Object.assign(g,{type:e?astNodeTypes.TSAbstractClassProperty:astNodeTypes.ClassProperty,key:r(d.name),value:r(d.initializer),computed:nodeUtils.isComputedProperty(d.name),static:nodeUtils.hasStaticModifierFlag(d),readonly:nodeUtils.hasModifier(SyntaxKind.ReadonlyKeyword,d)||void 0}),d.type&&(g.typeAnnotation=i(d.type)),d.decorators&&(g.decorators=s(d.decorators));const t=nodeUtils.getTSNodeAccessibility(d);t&&(g.accessibility=t),d.name.kind===SyntaxKind.Identifier&&d.questionToken&&(g.key.optional=!0),d.exclamationToken&&(g.definite=!0),g.key.type===astNodeTypes.Literal&&d.questionToken&&(g.optional=!0);break}case SyntaxKind.GetAccessor:case SyntaxKind.SetAccessor:case SyntaxKind.MethodDeclaration:{const e=nodeUtils.findFirstMatchingToken(d.name,f,e=>!(!e||!e.kind)&&"("===nodeUtils.getTextForTokenKind(e.kind)),t=f.getLineAndCharacterOfPosition(e.getStart()),a=d.kind===SyntaxKind.MethodDeclaration,u={type:astNodeTypes.FunctionExpression,id:null,generator:!!d.asteriskToken,expression:!1,async:nodeUtils.hasModifier(SyntaxKind.AsyncKeyword,d),body:r(d.body),range:[d.parameters.pos-1,g.range[1]],loc:{start:{line:t.line+1,column:t.character},end:g.loc.end}};if(d.type&&(u.returnType=i(d.type)),p.kind===SyntaxKind.ObjectLiteralExpression)u.params=d.parameters.map(r),Object.assign(g,{type:astNodeTypes.Property,key:r(d.name),value:u,computed:nodeUtils.isComputedProperty(d.name),method:a,shorthand:!1,kind:"init"});else{u.params=c(d.parameters);const e=nodeUtils.hasModifier(SyntaxKind.AbstractKeyword,d)?astNodeTypes.TSAbstractMethodDefinition:astNodeTypes.MethodDefinition;Object.assign(g,{type:e,key:r(d.name),value:u,computed:nodeUtils.isComputedProperty(d.name),static:nodeUtils.hasStaticModifierFlag(d),kind:"method"}),d.decorators&&(g.decorators=s(d.decorators));const t=nodeUtils.getTSNodeAccessibility(d);t&&(g.accessibility=t)}g.key.type===astNodeTypes.Identifier&&d.questionToken&&(g.key.optional=!0),d.kind===SyntaxKind.GetAccessor?g.kind="get":d.kind===SyntaxKind.SetAccessor?g.kind="set":g.static||d.name.kind!==SyntaxKind.StringLiteral||"constructor"!==d.name.text||(g.kind="constructor"),d.typeParameters&&d.typeParameters.length&&(u.typeParameters=o(d.typeParameters)),n(g.value);break}case SyntaxKind.Constructor:{const e=nodeUtils.hasStaticModifierFlag(d),t=nodeUtils.hasModifier(SyntaxKind.AbstractKeyword,d),i=e?nodeUtils.findNextToken(d.getFirstToken(),f):d.getFirstToken(),a=f.getLineAndCharacterOfPosition(d.parameters.pos-1),o={type:astNodeTypes.FunctionExpression,id:null,params:c(d.parameters),generator:!1,expression:!1,async:!1,body:r(d.body),range:[d.parameters.pos-1,g.range[1]],loc:{start:{line:a.line+1,column:a.character},end:g.loc.end}},s=f.getLineAndCharacterOfPosition(i.getStart()),u=f.getLineAndCharacterOfPosition(i.getEnd()),l=!!d.name&&nodeUtils.isComputedProperty(d.name);let _;_=l?{type:astNodeTypes.Literal,value:"constructor",raw:d.name.getText(),range:[i.getStart(),i.end],loc:{start:{line:s.line+1,column:s.character},end:{line:u.line+1,column:u.character}}}:{type:astNodeTypes.Identifier,name:"constructor",range:[i.getStart(),i.end],loc:{start:{line:s.line+1,column:s.character},end:{line:u.line+1,column:u.character}}},Object.assign(g,{type:t?astNodeTypes.TSAbstractMethodDefinition:astNodeTypes.MethodDefinition,key:_,value:o,computed:l,static:e,kind:e||l?"method":"constructor"});const p=nodeUtils.getTSNodeAccessibility(d);p&&(g.accessibility=p),n(g.value);break}case SyntaxKind.FunctionExpression:Object.assign(g,{type:astNodeTypes.FunctionExpression,id:r(d.name),generator:!!d.asteriskToken,params:c(d.parameters),body:r(d.body),async:nodeUtils.hasModifier(SyntaxKind.AsyncKeyword,d),expression:!1}),d.type&&(g.returnType=i(d.type)),d.typeParameters&&d.typeParameters.length&&(g.typeParameters=o(d.typeParameters));break;case SyntaxKind.SuperKeyword:Object.assign(g,{type:astNodeTypes.Super});break;case SyntaxKind.ArrayBindingPattern:Object.assign(g,{type:astNodeTypes.ArrayPattern,elements:d.elements.map(r)});break;case SyntaxKind.OmittedExpression:return null;case SyntaxKind.ObjectBindingPattern:Object.assign(g,{type:astNodeTypes.ObjectPattern,properties:d.elements.map(r)});break;case SyntaxKind.BindingElement:if(p.kind===SyntaxKind.ArrayBindingPattern){const t=e({node:d.name,parent:p,ast:f,additionalOptions:m});if(d.initializer)Object.assign(g,{type:astNodeTypes.AssignmentPattern,left:t,right:r(d.initializer)});else{if(!d.dotDotDotToken)return t;Object.assign(g,{type:astNodeTypes.RestElement,argument:t})}}else p.kind===SyntaxKind.ObjectBindingPattern&&(d.dotDotDotToken?Object.assign(g,{type:astNodeTypes.ExperimentalRestProperty,argument:r(d.propertyName||d.name),computed:Boolean(d.propertyName&&d.propertyName.kind===SyntaxKind.ComputedPropertyName),shorthand:!d.propertyName}):Object.assign(g,{type:astNodeTypes.Property,key:r(d.propertyName||d.name),value:r(d.name),computed:Boolean(d.propertyName&&d.propertyName.kind===SyntaxKind.ComputedPropertyName),method:!1,shorthand:!d.propertyName,kind:"init"}),d.initializer&&(g.value={type:astNodeTypes.AssignmentPattern,left:r(d.name),right:r(d.initializer),range:[d.name.getStart(),d.initializer.end],loc:nodeUtils.getLocFor(d.name.getStart(),d.initializer.end,f)}));break;case SyntaxKind.ArrowFunction:Object.assign(g,{type:astNodeTypes.ArrowFunctionExpression,generator:!1,id:null,params:c(d.parameters),body:r(d.body),async:nodeUtils.hasModifier(SyntaxKind.AsyncKeyword,d),expression:d.body.kind!==SyntaxKind.Block}),d.type&&(g.returnType=i(d.type)),d.typeParameters&&d.typeParameters.length&&(g.typeParameters=o(d.typeParameters));break;case SyntaxKind.YieldExpression:Object.assign(g,{type:astNodeTypes.YieldExpression,delegate:!!d.asteriskToken,argument:r(d.expression)});break;case SyntaxKind.AwaitExpression:Object.assign(g,{type:astNodeTypes.AwaitExpression,argument:r(d.expression)});break;case SyntaxKind.NoSubstitutionTemplateLiteral:Object.assign(g,{type:astNodeTypes.TemplateLiteral,quasis:[{type:astNodeTypes.TemplateElement,value:{raw:f.text.slice(d.getStart()+1,d.end-1),cooked:d.text},tail:!0,range:g.range,loc:g.loc}],expressions:[]});break;case SyntaxKind.TemplateExpression:Object.assign(g,{type:astNodeTypes.TemplateLiteral,quasis:[r(d.head)],expressions:[]}),d.templateSpans.forEach(e=>{g.expressions.push(r(e.expression)),g.quasis.push(r(e.literal))});break;case SyntaxKind.TaggedTemplateExpression:Object.assign(g,{type:astNodeTypes.TaggedTemplateExpression,tag:r(d.tag),quasi:r(d.template)});break;case SyntaxKind.TemplateHead:case SyntaxKind.TemplateMiddle:case SyntaxKind.TemplateTail:{const e=d.kind===SyntaxKind.TemplateTail;Object.assign(g,{type:astNodeTypes.TemplateElement,value:{raw:f.text.slice(d.getStart()+1,d.end-(e?1:2)),cooked:d.text},tail:e});break}case SyntaxKind.SpreadElement:{let e=astNodeTypes.SpreadElement;d.parent&&d.parent.parent&&d.parent.parent.kind===SyntaxKind.BinaryExpression&&(d.parent.parent.left===d.parent?e=astNodeTypes.RestElement:d.parent.parent.right===d.parent&&(e=astNodeTypes.SpreadElement)),Object.assign(g,{type:e,argument:r(d.expression)});break}case SyntaxKind.SpreadAssignment:{let e=astNodeTypes.ExperimentalSpreadProperty;d.parent&&d.parent.parent&&d.parent.parent.kind===SyntaxKind.BinaryExpression&&(d.parent.parent.right===d.parent?e=astNodeTypes.ExperimentalSpreadProperty:d.parent.parent.left===d.parent&&(e=astNodeTypes.ExperimentalRestProperty)),Object.assign(g,{type:e,argument:r(d.expression)});break}case SyntaxKind.Parameter:{let t;if(d.dotDotDotToken?(t=r(d.name),Object.assign(g,{type:astNodeTypes.RestElement,argument:t})):d.initializer?(t=r(d.name),Object.assign(g,{type:astNodeTypes.AssignmentPattern,left:t,right:r(d.initializer)})):(t=e({node:d.name,parent:p,ast:f,additionalOptions:m}),g=t),d.type&&(t.typeAnnotation=i(d.type),_(t)),d.questionToken&&(t.optional=!0),d.modifiers)return{type:astNodeTypes.TSParameterProperty,range:[d.getStart(),d.end],loc:nodeUtils.getLoc(d,f),accessibility:nodeUtils.getTSNodeAccessibility(d)||void 0,readonly:nodeUtils.hasModifier(SyntaxKind.ReadonlyKeyword,d)||void 0,static:nodeUtils.hasModifier(SyntaxKind.StaticKeyword,d)||void 0,export:nodeUtils.hasModifier(SyntaxKind.ExportKeyword,d)||void 0,parameter:g};break}case SyntaxKind.ClassDeclaration:case SyntaxKind.ClassExpression:{const e=d.heritageClauses||[];let t=SyntaxKind[d.kind],n=e.length?e[e.length-1]:d.name;if(d.typeParameters&&d.typeParameters.length){const e=d.typeParameters[d.typeParameters.length-1];(!n||e.pos>n.pos)&&(n=nodeUtils.findNextToken(e,f)),g.typeParameters=o(d.typeParameters)}if(d.modifiers&&d.modifiers.length){d.kind===SyntaxKind.ClassDeclaration&&nodeUtils.hasModifier(SyntaxKind.AbstractKeyword,d)&&(t=`TSAbstract${t}`);const e=d.modifiers[d.modifiers.length-1];(!n||e.pos>n.pos)&&(n=nodeUtils.findNextToken(e,f))}else n||(n=d.getFirstToken());const i=nodeUtils.findNextToken(n,f),c=e.find(e=>e.token===SyntaxKind.ExtendsKeyword);c&&c.types[0]&&c.types[0].typeArguments&&(g.superTypeParameters=a(c.types[0].typeArguments));const u=e.find(e=>e.token===SyntaxKind.ImplementsKeyword);Object.assign(g,{type:t,id:r(d.name),body:{type:astNodeTypes.ClassBody,body:[],range:[i.getStart(),g.range[1]],loc:nodeUtils.getLocFor(i.getStart(),d.end,f)},superClass:c&&c.types[0]?r(c.types[0].expression):null}),u&&(g.implements=u.types.map(function(e){const t=r(e.expression),n={type:astNodeTypes.ClassImplements,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(n.typeParameters=a(e.typeArguments)),n})),d.decorators&&(g.decorators=s(d.decorators));const l=d.members.filter(nodeUtils.isESTreeClassMember);l.length&&(g.body.body=l.map(r)),g=nodeUtils.fixExports(d,g,f);break}case SyntaxKind.ModuleBlock:Object.assign(g,{type:astNodeTypes.TSModuleBlock,body:d.statements.map(r)});break;case SyntaxKind.ImportDeclaration:Object.assign(g,{type:astNodeTypes.ImportDeclaration,source:r(d.moduleSpecifier),specifiers:[]}),d.importClause&&(d.importClause.name&&g.specifiers.push(r(d.importClause)),d.importClause.namedBindings&&(d.importClause.namedBindings.kind===SyntaxKind.NamespaceImport?g.specifiers.push(r(d.importClause.namedBindings)):g.specifiers=g.specifiers.concat(d.importClause.namedBindings.elements.map(r))));break;case SyntaxKind.NamespaceImport:Object.assign(g,{type:astNodeTypes.ImportNamespaceSpecifier,local:r(d.name)});break;case SyntaxKind.ImportSpecifier:Object.assign(g,{type:astNodeTypes.ImportSpecifier,local:r(d.name),imported:r(d.propertyName||d.name)});break;case SyntaxKind.ImportClause:Object.assign(g,{type:astNodeTypes.ImportDefaultSpecifier,local:r(d.name)}),g.range[1]=d.name.end,g.loc=nodeUtils.getLocFor(g.range[0],g.range[1],f);break;case SyntaxKind.NamedImports:Object.assign(g,{type:astNodeTypes.ImportDefaultSpecifier,local:r(d.name)});break;case SyntaxKind.ExportDeclaration:d.exportClause?Object.assign(g,{type:astNodeTypes.ExportNamedDeclaration,source:r(d.moduleSpecifier),specifiers:d.exportClause.elements.map(r),declaration:null}):Object.assign(g,{type:astNodeTypes.ExportAllDeclaration,source:r(d.moduleSpecifier)});break;case SyntaxKind.ExportSpecifier:Object.assign(g,{type:astNodeTypes.ExportSpecifier,local:r(d.propertyName||d.name),exported:r(d.name)});break;case SyntaxKind.ExportAssignment:d.isExportEquals?Object.assign(g,{type:astNodeTypes.TSExportAssignment,expression:r(d.expression)}):Object.assign(g,{type:astNodeTypes.ExportDefaultDeclaration,declaration:r(d.expression)});break;case SyntaxKind.PrefixUnaryExpression:case SyntaxKind.PostfixUnaryExpression:{const e=nodeUtils.getTextForTokenKind(d.operator);Object.assign(g,{type:/^(?:\+\+|--)$/.test(e)?astNodeTypes.UpdateExpression:astNodeTypes.UnaryExpression,operator:e,prefix:d.kind===SyntaxKind.PrefixUnaryExpression,argument:r(d.operand)});break}case SyntaxKind.DeleteExpression:Object.assign(g,{type:astNodeTypes.UnaryExpression,operator:"delete",prefix:!0,argument:r(d.expression)});break;case SyntaxKind.VoidExpression:Object.assign(g,{type:astNodeTypes.UnaryExpression,operator:"void",prefix:!0,argument:r(d.expression)});break;case SyntaxKind.TypeOfExpression:Object.assign(g,{type:astNodeTypes.UnaryExpression,operator:"typeof",prefix:!0,argument:r(d.expression)});break;case SyntaxKind.TypeOperator:Object.assign(g,{type:astNodeTypes.TSTypeOperator,operator:nodeUtils.getTextForTokenKind(d.operator),typeAnnotation:r(d.type)});break;case SyntaxKind.BinaryExpression:if(nodeUtils.isComma(d.operatorToken)){Object.assign(g,{type:astNodeTypes.SequenceExpression,expressions:[]});const e=r(d.left),t=r(d.right);e.type===astNodeTypes.SequenceExpression?g.expressions=g.expressions.concat(e.expressions):g.expressions.push(e),t.type===astNodeTypes.SequenceExpression?g.expressions=g.expressions.concat(t.expressions):g.expressions.push(t)}else if(d.operatorToken&&d.operatorToken.kind===SyntaxKind.AsteriskAsteriskEqualsToken)Object.assign(g,{type:astNodeTypes.AssignmentExpression,operator:nodeUtils.getTextForTokenKind(d.operatorToken.kind),left:r(d.left),right:r(d.right)});else if(Object.assign(g,{type:nodeUtils.getBinaryExpressionType(d.operatorToken),operator:nodeUtils.getTextForTokenKind(d.operatorToken.kind),left:r(d.left),right:r(d.right)}),g.type===astNodeTypes.AssignmentExpression){const e=nodeUtils.findAncestorOfKind(d,SyntaxKind.ArrayLiteralExpression),t=e&&nodeUtils.findAncestorOfKind(e,SyntaxKind.BinaryExpression);let n;t&&(n=t.left===e||nodeUtils.findChildOfKind(t.left,SyntaxKind.ArrayLiteralExpression,f)===e),n&&(delete g.operator,g.type=astNodeTypes.AssignmentPattern)}break;case SyntaxKind.PropertyAccessExpression:if(nodeUtils.isJSXToken(p)){const e={type:astNodeTypes.MemberExpression,object:r(d.expression),property:r(d.name)},t=d.expression.kind===SyntaxKind.PropertyAccessExpression;d.expression.kind===SyntaxKind.ThisKeyword&&(e.object.name="this"),e.object.type=t?astNodeTypes.MemberExpression:astNodeTypes.JSXIdentifier,e.property.type=astNodeTypes.JSXIdentifier,Object.assign(g,e)}else Object.assign(g,{type:astNodeTypes.MemberExpression,object:r(d.expression),property:r(d.name),computed:!1});break;case SyntaxKind.ElementAccessExpression:Object.assign(g,{type:astNodeTypes.MemberExpression,object:r(d.expression),property:r(d.argumentExpression),computed:!0});break;case SyntaxKind.ConditionalExpression:Object.assign(g,{type:astNodeTypes.ConditionalExpression,test:r(d.condition),consequent:r(d.whenTrue),alternate:r(d.whenFalse)});break;case SyntaxKind.CallExpression:Object.assign(g,{type:astNodeTypes.CallExpression,callee:r(d.expression),arguments:d.arguments.map(r)}),d.typeArguments&&d.typeArguments.length&&(g.typeParameters=a(d.typeArguments));break;case SyntaxKind.NewExpression:Object.assign(g,{type:astNodeTypes.NewExpression,callee:r(d.expression),arguments:d.arguments?d.arguments.map(r):[]}),d.typeArguments&&d.typeArguments.length&&(g.typeParameters=a(d.typeArguments));break;case SyntaxKind.MetaProperty:{const e=nodeUtils.convertToken(d.getFirstToken(),f);Object.assign(g,{type:astNodeTypes.MetaProperty,meta:{type:astNodeTypes.Identifier,range:e.range,loc:e.loc,name:"new"},property:r(d.name)});break}case SyntaxKind.StringLiteral:Object.assign(g,{type:astNodeTypes.Literal,raw:f.text.slice(g.range[0],g.range[1])}),p.name&&p.name===d?g.value=nodeUtils.unescapeIdentifier(d.text):g.value=nodeUtils.unescapeStringLiteralText(d.text);break;case SyntaxKind.NumericLiteral:Object.assign(g,{type:astNodeTypes.Literal,value:Number(d.text),raw:f.text.slice(g.range[0],g.range[1])});break;case SyntaxKind.RegularExpressionLiteral:{const e=d.text.slice(1,d.text.lastIndexOf("/")),t=d.text.slice(d.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(e,t)}catch(e){n=null}Object.assign(g,{type:astNodeTypes.Literal,value:n,raw:d.text,regex:{pattern:e,flags:t}});break}case SyntaxKind.TrueKeyword:Object.assign(g,{type:astNodeTypes.Literal,value:!0,raw:"true"});break;case SyntaxKind.FalseKeyword:Object.assign(g,{type:astNodeTypes.Literal,value:!1,raw:"false"});break;case SyntaxKind.NullKeyword:nodeUtils.isWithinTypeAnnotation(d)?Object.assign(g,{type:astNodeTypes.TSNullKeyword}):Object.assign(g,{type:astNodeTypes.Literal,value:null,raw:"null"});break;case SyntaxKind.ImportKeyword:Object.assign(g,{type:astNodeTypes.Import});break;case SyntaxKind.EmptyStatement:case SyntaxKind.DebuggerStatement:Object.assign(g,{type:SyntaxKind[d.kind]});break;case SyntaxKind.JsxElement:Object.assign(g,{type:astNodeTypes.JSXElement,openingElement:r(d.openingElement),closingElement:r(d.closingElement),children:d.children.map(r)});break;case SyntaxKind.JsxSelfClosingElement:{d.kind=SyntaxKind.JsxOpeningElement;const e=r(d);e.selfClosing=!0,Object.assign(g,{type:astNodeTypes.JSXElement,openingElement:e,closingElement:null,children:[]});break}case SyntaxKind.JsxOpeningElement:Object.assign(g,{type:astNodeTypes.JSXOpeningElement,selfClosing:!1,name:u(d.tagName),attributes:d.attributes.properties.map(r)});break;case SyntaxKind.JsxClosingElement:Object.assign(g,{type:astNodeTypes.JSXClosingElement,name:u(d.tagName)});break;case SyntaxKind.JsxExpression:{const e=f.getLineAndCharacterOfPosition(g.range[0]+1),t=d.expression?r(d.expression):{type:astNodeTypes.JSXEmptyExpression,loc:{start:{line:e.line+1,column:e.character},end:{line:g.loc.end.line,column:g.loc.end.column-1}},range:[g.range[0]+1,g.range[1]-1]};Object.assign(g,{type:astNodeTypes.JSXExpressionContainer,expression:t});break}case SyntaxKind.JsxAttribute:{const e=nodeUtils.convertToken(d.name,f);e.type=astNodeTypes.JSXIdentifier,e.name=e.value,delete e.value,Object.assign(g,{type:astNodeTypes.JSXAttribute,name:e,value:r(d.initializer)});break}case SyntaxKind.JsxText:{const e=d.getFullStart(),t=d.getEnd(),n=m.useJSXTextNode?astNodeTypes.JSXText:astNodeTypes.Literal;Object.assign(g,{type:n,value:f.text.slice(e,t),raw:f.text.slice(e,t)}),g.loc=nodeUtils.getLocFor(e,t,f),g.range=[e,t];break}case SyntaxKind.JsxSpreadAttribute:Object.assign(g,{type:astNodeTypes.JSXSpreadAttribute,argument:r(d.expression)});break;case SyntaxKind.FirstNode:Object.assign(g,{type:astNodeTypes.TSQualifiedName,left:r(d.left),right:r(d.right)});break;case SyntaxKind.ParenthesizedExpression:return e({node:d.expression,parent:p,ast:f,additionalOptions:m});case SyntaxKind.TypeAliasDeclaration:{const e={type:astNodeTypes.VariableDeclarator,id:r(d.name),init:r(d.type),range:[d.name.getStart(),d.end]};e.loc=nodeUtils.getLocFor(e.range[0],e.range[1],f),d.typeParameters&&d.typeParameters.length&&(e.typeParameters=o(d.typeParameters)),Object.assign(g,{type:astNodeTypes.VariableDeclaration,kind:nodeUtils.getDeclarationKind(d),declarations:[e]}),g=nodeUtils.fixExports(d,g,f);break}case SyntaxKind.MethodSignature:{Object.assign(g,{type:astNodeTypes.TSMethodSignature,optional:nodeUtils.isOptional(d),computed:nodeUtils.isComputedProperty(d.name),key:r(d.name),params:c(d.parameters),typeAnnotation:d.type?i(d.type):null,readonly:nodeUtils.hasModifier(SyntaxKind.ReadonlyKeyword,d)||void 0,static:nodeUtils.hasModifier(SyntaxKind.StaticKeyword,d),export:nodeUtils.hasModifier(SyntaxKind.ExportKeyword,d)||void 0});const e=nodeUtils.getTSNodeAccessibility(d);e&&(g.accessibility=e),d.typeParameters&&(g.typeParameters=o(d.typeParameters));break}case SyntaxKind.PropertySignature:{Object.assign(g,{type:astNodeTypes.TSPropertySignature,optional:nodeUtils.isOptional(d)||void 0,computed:nodeUtils.isComputedProperty(d.name),key:r(d.name),typeAnnotation:d.type?i(d.type):void 0,initializer:r(d.initializer)||void 0,readonly:nodeUtils.hasModifier(SyntaxKind.ReadonlyKeyword,d)||void 0,static:nodeUtils.hasModifier(SyntaxKind.StaticKeyword,d)||void 0,export:nodeUtils.hasModifier(SyntaxKind.ExportKeyword,d)||void 0});const e=nodeUtils.getTSNodeAccessibility(d);e&&(g.accessibility=e);break}case SyntaxKind.IndexSignature:{Object.assign(g,{type:astNodeTypes.TSIndexSignature,index:r(d.parameters[0]),typeAnnotation:d.type?i(d.type):null,readonly:nodeUtils.hasModifier(SyntaxKind.ReadonlyKeyword,d)||void 0,static:nodeUtils.hasModifier(SyntaxKind.StaticKeyword,d),export:nodeUtils.hasModifier(SyntaxKind.ExportKeyword,d)||void 0});const e=nodeUtils.getTSNodeAccessibility(d);e&&(g.accessibility=e);break}case SyntaxKind.ConstructSignature:Object.assign(g,{type:astNodeTypes.TSConstructSignature,params:c(d.parameters),typeAnnotation:d.type?i(d.type):null}),d.typeParameters&&(g.typeParameters=o(d.typeParameters));break;case SyntaxKind.InterfaceDeclaration:{const e=d.heritageClauses||[];let t=e.length?e[e.length-1]:d.name;if(d.typeParameters&&d.typeParameters.length){const e=d.typeParameters[d.typeParameters.length-1];(!t||e.pos>t.pos)&&(t=nodeUtils.findNextToken(e,f)),g.typeParameters=o(d.typeParameters)}const n=e.length>0,i=nodeUtils.hasModifier(SyntaxKind.AbstractKeyword,d),s=nodeUtils.findNextToken(t,f),c={type:astNodeTypes.TSInterfaceBody,body:d.members.map(e=>r(e)),range:[s.getStart(),g.range[1]],loc:nodeUtils.getLocFor(s.getStart(),d.end,f)};Object.assign(g,{abstract:i,type:astNodeTypes.TSInterfaceDeclaration,body:c,id:r(d.name),heritage:n?e[0].types.map(function(e){const t=r(e.expression),n={type:astNodeTypes.TSInterfaceHeritage,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(n.typeParameters=a(e.typeArguments)),n}):[]}),g=nodeUtils.fixExports(d,g,f);break}case SyntaxKind.FirstTypeNode:Object.assign(g,{type:astNodeTypes.TSTypePredicate,parameterName:r(d.parameterName),typeAnnotation:i(d.type)}),g.typeAnnotation.loc=g.typeAnnotation.typeAnnotation.loc,g.typeAnnotation.range=g.typeAnnotation.typeAnnotation.range;break;case SyntaxKind.EnumDeclaration:Object.assign(g,{type:astNodeTypes.TSEnumDeclaration,id:r(d.name),members:d.members.map(r)}),l(d.modifiers),g=nodeUtils.fixExports(d,g,f),d.decorators&&(g.decorators=s(d.decorators));break;case SyntaxKind.EnumMember:Object.assign(g,{type:astNodeTypes.TSEnumMember,id:r(d.name)}),d.initializer&&(g.initializer=r(d.initializer));break;case SyntaxKind.AbstractKeyword:Object.assign(g,{type:astNodeTypes.TSAbstractKeyword});break;case SyntaxKind.ModuleDeclaration:Object.assign(g,{type:astNodeTypes.TSModuleDeclaration,id:r(d.name)}),d.body&&(g.body=r(d.body)),l(d.modifiers),g=nodeUtils.fixExports(d,g,f);break;default:!function(){const e=`TS${SyntaxKind[d.kind]}`;if(m.errorOnUnknownASTType&&!astNodeTypes[e])throw new Error(`Unknown AST_NODE_TYPE: "${e}"`);g.type=e,Object.keys(d).filter(e=>!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)).forEach(e=>{if("type"===e)g.typeAnnotation=d.type?i(d.type):null;else if("typeArguments"===e)g.typeParameters=d.typeArguments?a(d.typeArguments):null;else if("typeParameters"===e)g.typeParameters=d.typeParameters?o(d.typeParameters):null;else if("decorators"===e){const e=s(d.decorators);e&&e.length&&(g.decorators=e)}else Array.isArray(d[e])?g[e]=d[e].map(r):d[e]&&"object"==typeof d[e]?g[e]=r(d[e]):g[e]=d[e]})}()}return g},convertComments_1={convertComments:convertComments},astConverter=createCommonjsModule(function(e){function t(e){const t=e.file.getLineAndCharacterOfPosition(e.start);return{index:e.start,lineNumber:t.line+1,column:t.character,message:e.message||e.messageText}}const n=convertComments_1.convertComments;e.exports=((e,r)=>{if(e.parseDiagnostics.length)throw t(e.parseDiagnostics[0]);const i=convert({node:e,parent:null,ast:e,additionalOptions:{errorOnUnknownASTType:r.errorOnUnknownASTType||!1,useJSXTextNode:r.useJSXTextNode||!1,parseForESLint:r.parseForESLint}});return r.tokens&&(i.tokens=nodeUtils.convertTokens(e)),r.comment&&(i.comments=n(e,r.code)),i})}),semver=createCommonjsModule(function(e,t){function n(e,t){if(e instanceof r)return e;if("string"!=typeof e)return null;if(e.length>A)return null;if(!(t?w[G]:w[V]).test(e))return null;try{return new r(e,t)}catch(e){return null}}function r(e,t){if(e instanceof r){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>A)throw new TypeError("version is longer than "+A+" characters");if(!(this instanceof r))return new r(e,t);N("SemVer",e,t),this.loose=t;var n=e.trim().match(t?w[G]:w[V]);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>P||this.major<0)throw new TypeError("Invalid major version");if(this.minor>P||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>P||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 a(e,t,n){return new r(e,n).compare(new r(t,n))}function o(e,t,n){return a(e,t,n)>0}function s(e,t,n){return a(e,t,n)<0}function c(e,t,n){return 0===a(e,t,n)}function u(e,t,n){return 0!==a(e,t,n)}function l(e,t,n){return a(e,t,n)>=0}function _(e,t,n){return a(e,t,n)<=0}function d(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=c(e,n,r);break;case"!=":i=u(e,n,r);break;case">":i=o(e,n,r);break;case">=":i=l(e,n,r);break;case"<":i=s(e,n,r);break;case"<=":i=_(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return i}function p(e,t){if(e instanceof p){if(e.loose===t)return e;e=e.value}if(!(this instanceof p))return new p(e,t);N("comparator",e,t),this.loose=t,this.parse(e),this.semver===ve?this.value="":this.value=this.operator+this.semver.version,N("comp",this)}function f(e,t){if(e instanceof f)return e.loose===t?e:new f(e.raw,t);if(e instanceof p)return new f(e.value,t);if(!(this instanceof f))return new f(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 m(e,t){return N("comp",e),e=v(e,t),N("caret",e),e=y(e,t),N("tildes",e),e=x(e,t),N("xrange",e),e=k(e,t),N("stars",e),e}function g(e){return!e||"x"===e.toLowerCase()||"*"===e}function y(e,t){return e.trim().split(/\s+/).map(function(e){return h(e,t)}).join(" ")}function h(e,t){var n=t?w[oe]:w[ae];return e.replace(n,function(t,n,r,i,a){N("tilde",e,t,n,r,i,a);var o;return g(n)?o="":g(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":g(i)?o=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":a?(N("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",N("tilde return",o),o})}function v(e,t){return e.trim().split(/\s+/).map(function(e){return b(e,t)}).join(" ")}function b(e,t){N("caret",e,t);var n=t?w[le]:w[ue];return e.replace(n,function(t,n,r,i,a){N("caret",e,t,n,r,i,a);var o;return g(n)?o="":g(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":g(i)?o="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":a?(N("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"):(N("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"),N("caret return",o),o})}function x(e,t){return N("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return S(e,t)}).join(" ")}function S(e,t){e=e.trim();var n=t?w[te]:w[ee];return e.replace(n,function(t,n,r,i,a,o){N("xRange",e,t,n,r,i,a,o);var s=g(r),c=s||g(i),u=c||g(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"),N("xRange return",t),t})}function k(e,t){return N("replaceStars",e,t),e.trim().replace(w[ge],"")}function T(e,t,n,r,i,a,o,s,c,u,l,_,d){return t=g(n)?"":g(r)?">="+n+".0.0":g(i)?">="+n+"."+r+".0":">="+t,s=g(c)?"":g(u)?"<"+(+c+1)+".0.0":g(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s,(t+" "+s).trim()}function D(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 C(e,t,n){try{t=new f(t,n)}catch(e){return!1}return t.test(e)}function E(e,t,n,i){e=new r(e,i),t=new f(t,i);var a,c,u,d,m;switch(n){case">":a=o,c=_,u=s,d=">",m=">=";break;case"<":a=s,c=l,u=o,d="<",m="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(C(e,t,i))return!1;for(var g=0;g=0.0.0")),y=y||e,h=h||e,a(e.semver,y.semver,i)?y=e:u(e.semver,h.semver,i)&&(h=e)}),y.operator===d||y.operator===m)return!1;if((!h.operator||h.operator===d)&&c(e,h.semver))return!1;if(h.operator===m&&u(e,h.semver))return!1}return!0}t=e.exports=r;var N;N="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 A=256,P=Number.MAX_SAFE_INTEGER||9007199254740991,w=t.re=[],F=t.src=[],O=0,I=O++;F[I]="0|[1-9]\\d*";var M=O++;F[M]="[0-9]+";var L=O++;F[L]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var R=O++;F[R]="("+F[I]+")\\.("+F[I]+")\\.("+F[I]+")";var B=O++;F[B]="("+F[M]+")\\.("+F[M]+")\\.("+F[M]+")";var K=O++;F[K]="(?:"+F[I]+"|"+F[L]+")";var j=O++;F[j]="(?:"+F[M]+"|"+F[L]+")";var z=O++;F[z]="(?:-("+F[K]+"(?:\\."+F[K]+")*))";var J=O++;F[J]="(?:-?("+F[j]+"(?:\\."+F[j]+")*))";var U=O++;F[U]="[0-9A-Za-z-]+";var q=O++;F[q]="(?:\\+("+F[U]+"(?:\\."+F[U]+")*))";var V=O++,W="v?"+F[R]+F[z]+"?"+F[q]+"?";F[V]="^"+W+"$";var H="[v=\\s]*"+F[B]+F[J]+"?"+F[q]+"?",G=O++;F[G]="^"+H+"$";var $=O++;F[$]="((?:<|>)?=?)";var X=O++;F[X]=F[M]+"|x|X|\\*";var Q=O++;F[Q]=F[I]+"|x|X|\\*";var Y=O++;F[Y]="[v=\\s]*("+F[Q]+")(?:\\.("+F[Q]+")(?:\\.("+F[Q]+")(?:"+F[z]+")?"+F[q]+"?)?)?";var Z=O++;F[Z]="[v=\\s]*("+F[X]+")(?:\\.("+F[X]+")(?:\\.("+F[X]+")(?:"+F[J]+")?"+F[q]+"?)?)?";var ee=O++;F[ee]="^"+F[$]+"\\s*"+F[Y]+"$";var te=O++;F[te]="^"+F[$]+"\\s*"+F[Z]+"$";var ne=O++;F[ne]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var re=O++;F[re]="(?:~>?)";var ie=O++;F[ie]="(\\s*)"+F[re]+"\\s+",w[ie]=new RegExp(F[ie],"g");var ae=O++;F[ae]="^"+F[re]+F[Y]+"$";var oe=O++;F[oe]="^"+F[re]+F[Z]+"$";var se=O++;F[se]="(?:\\^)";var ce=O++;F[ce]="(\\s*)"+F[se]+"\\s+",w[ce]=new RegExp(F[ce],"g");var ue=O++;F[ue]="^"+F[se]+F[Y]+"$";var le=O++;F[le]="^"+F[se]+F[Z]+"$";var _e=O++;F[_e]="^"+F[$]+"\\s*("+H+")$|^$";var de=O++;F[de]="^"+F[$]+"\\s*("+W+")$|^$";var pe=O++;F[pe]="(\\s*)"+F[$]+"\\s*("+H+"|"+F[Y]+")",w[pe]=new RegExp(F[pe],"g");var fe=O++;F[fe]="^\\s*("+F[Y]+")\\s+-\\s+("+F[Y]+")\\s*$";var me=O++;F[me]="^\\s*("+F[Z]+")\\s+-\\s+("+F[Z]+")\\s*$";var ge=O++;F[ge]="(<|>)?=?\\s*\\*";for(var ye=0;ye=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=function(e,t,n,i){"string"==typeof n&&(i=n,n=void 0);try{return new r(e,n).inc(t,i).version}catch(e){return null}},t.diff=function(e,t){if(c(e,t))return null;var r=n(e),i=n(t);if(r.prerelease.length||i.prerelease.length){for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==i[a])return"pre"+a;return"prerelease"}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==i[a])return a},t.compareIdentifiers=i;var he=/^[0-9]+$/;t.rcompareIdentifiers=function(e,t){return i(t,e)},t.major=function(e,t){return new r(e,t).major},t.minor=function(e,t){return new r(e,t).minor},t.patch=function(e,t){return new r(e,t).patch},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0)},t.rcompare=function(e,t,n){return a(t,e,n)},t.sort=function(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})},t.rsort=function(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})},t.gt=o,t.lt=s,t.eq=c,t.neq=u,t.gte=l,t.lte=_,t.cmp=d,t.Comparator=p;var ve={};p.prototype.parse=function(e){var t=this.loose?w[_e]:w[de],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 r(n[2],this.loose):this.semver=ve},p.prototype.toString=function(){return this.value},p.prototype.test=function(e){return N("Comparator.test",e,this.loose),this.semver===ve||("string"==typeof e&&(e=new r(e,this.loose)),d(e,this.operator,this.semver,this.loose))},p.prototype.intersects=function(e,t){if(!(e instanceof p))throw new TypeError("a Comparator is required");var n;if(""===this.operator)return n=new f(e.value,t),C(this.value,n,t);if(""===e.operator)return n=new f(this.value,t),C(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=d(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=d(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||a&&o||s||c},t.Range=f,f.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},f.prototype.toString=function(){return this.range},f.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),N("range",e,t);var n=t?w[me]:w[fe];e=e.replace(n,T),N("hyphen replace",e),e=e.replace(w[pe],"$1$2$3"),N("comparator trim",e,w[pe]),e=(e=(e=e.replace(w[ie],"$1~")).replace(w[ce],"$1^")).split(/\s+/).join(" ");var r=t?w[_e]:w[de],i=e.split(" ").map(function(e){return m(e,t)}).join(" ").split(/\s+/);return this.loose&&(i=i.filter(function(e){return!!e.match(r)})),i=i.map(function(e){return new p(e,t)})},f.prototype.intersects=function(e,t){if(!(e instanceof f))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=function(e,t){return new f(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},f.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new r(e,this.loose));for(var t=0;t",n)},t.outside=E,t.prerelease=function(e,t){var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,n){return e=new f(e,n),t=new f(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof r)return e;if("string"!=typeof e)return null;var t=e.match(w[ne]);return null==t?null:n((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}}),name="typescript-eslint-parser",description="An Esprima-style parser for TypeScript",author="Nicholas C. Zakas ",homepage="https://github.com/eslint/typescript-eslint-parser",main="parser.js",version$1="14.0.0",files=["lib","parser.js"],engines={node:">=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.39",dedent:"0.7.0",eslint:"4.17.0","eslint-config-eslint":"4.0.0","eslint-plugin-node":"6.0.0","eslint-release":"0.10.3",glob:"7.1.2",jest:"22.2.1","lodash.isplainobject":"4.0.6","npm-license":"0.3.3",shelljs:"0.8.1","shelljs-nodecli":"0.1.1",typescript:"~2.7.1"},keywords=["ast","ecmascript","javascript","typescript","parser","syntax","eslint"],scripts={test:"node Makefile.js test && npm run integration-tests && npm run ast-alignment-tests",jest:"jest","ast-alignment-tests":"jest --config=./tests/ast-alignment/jest.config.js","integration-tests":"jest --config=./tests/integration/jest.config.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.5.0"},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$$0$4=_package$1&&_package||_package$1;const SUPPORTED_TYPESCRIPT_VERSIONS=require$$0$4.devDependencies.typescript,ACTIVE_TYPESCRIPT_VERSION=typescript.version,isRunningSupportedTypeScriptVersion=semver.satisfies(ACTIVE_TYPESCRIPT_VERSION,SUPPORTED_TYPESCRIPT_VERSIONS);let extra,warnedAboutTSVersion=!1;var version=require$$0$4.version,parse$1=function(e,t){return generateAST(e,t,{isParseForESLint:!1})},parseForESLint=function(e,t){return{ast:generateAST(e,t,{isParseForESLint:!0})}};!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,parse:parse$1,parseForESLint:parseForESLint},parserTypescript=parse;module.exports=parserTypescript;