/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * monaco-typescript version: 2.0.1(076cc15ec707b6c7a820ae7a16c982af01a35127) * Released under the MIT license * https://github.com/Microsoft/monaco-typescript/blob/master/LICENSE.md *-----------------------------------------------------------------------------*/ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var __assign=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;r--){var n=e[r];if(t(n,r))return n}}function b(e,t,r){for(var n=r||0;n=0;n--)if(t(e[n],n))return n;return-1}function D(e,t){for(var r=0;r0;for(var r=0,n=e;r0&&Yn.assertGreaterThanOrEqual(r(t[a],t[a-1]),0);t:for(var o=i;io&&Yn.assertGreaterThanOrEqual(r(e[i],e[i-1]),0),r(t[a],e[i])){case-1:n.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return n}function re(e,t){for(var r=0,n=0,i=e;n>1),u=r(e[c]);switch(n(u,s)){case-1:a=c+1;break;case 0:return c;case 1:o=c-1}}return~a}function ke(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}function Se(e,t){return In.call(e,t)}function Ce(e,t){return In.call(e,t)?e[t]:void 0}function Te(e){var t=[];for(var r in e)In.call(e,r)&&t.push(r);return t}function Ee(e){var t=[];for(var r in e)In.call(e,r)&&t.push(e[r]);return t}function Ne(e,t){for(var r,n=[],i=e.next(),a=i.value,o=i.done;!o;r=e.next(),a=r.value,o=r.done,r)n.push(t?t(a):a);return n}function Ae(e,t){for(var r,n=e.entries(),i=n.next(),a=i.value,o=i.done;!o;r=n.next(),a=r.value,o=r.done,r){var s=a[0],c=a[1],u=t(c,s);if(u)return u}}function Pe(e,t){for(var r,n=e.keys(),i=n.next(),a=i.value,o=i.done;!o;r=n.next(),a=r.value,o=r.done,r){var s=t(a);if(s)return s}}function Fe(e,t){e.forEach(function(e,r){t.set(r,e)})}function we(e){for(var t=[],r=1;r4&&(i=at(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary}}function ct(e,t){var r=ot(t);return arguments.length>2&&(r=at(r,arguments,2)),r}function ut(e){var t=ot(e);return arguments.length>1&&(t=at(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}}function lt(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function _t(e,t){var r=ot(t);return arguments.length>2&&(r=at(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e}}function dt(e,t){for(var r=e;r.next;)r=r.next;return r.next=t,e}function pt(e,t){return e===t}function ft(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function mt(e,t){return pt(e,t)}function gt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:et?1:0)}function bt(e,t){return gt(e,t)}function xt(e){return e?ht:bt}function Dt(){return Mn}function kt(e){Mn!==e&&(Mn=e,On=void 0)}function St(e,t){var r=On||(On=Ln(Mn));return r(e,t)}function Ct(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])}function Tt(e){return e.file?e.file.path:void 0}function Et(e,t){return bt(Tt(e),Tt(t))||yt(e.start,t.start)||yt(e.length,t.length)||yt(e.code,t.code)||At(e.messageText,t.messageText)||0}function Nt(e,t){return yt(e?1:0,t?1:0)}function At(e,t){for(;e&&t;){var r=He(e)?e:e.messageText,n=He(t)?t:t.messageText,i=bt(r,n);if(i)return i;e=He(e)?void 0:e.next,t=He(t)?void 0:t.next}return e||t?e?1:-1:0}function Pt(e){return e.target||0}function Ft(t){return"number"==typeof t.module?t.module:Pt(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function wt(t){var r=t.moduleResolution;return void 0===r&&(r=Ft(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r}function It(e){return e.allowUnreachableCode===!1}function Ot(e){return e.allowUnusedLabels===!1}function Mt(e){ return!(!e.declaration||!e.declarationMap)}function Lt(t){var r=Ft(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop?r!==e.ModuleKind.None&&r=97&&e<=122||e>=65&&e<=90}function Kt(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}function qt(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:Rn,2);return n<0?t.length:n+1}if(jt(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf(Bn);if(a!==-1){var o=a+Bn.length,s=t.indexOf(e.directorySeparator,o);if(s!==-1){var c=t.slice(0,a),u=t.slice(o,s);if("file"===c&&(""===u||"localhost"===u)&&jt(t.charCodeAt(s+1))){var l=Kt(t,s+2);if(l!==-1){if(47===t.charCodeAt(l))return~(l+1);if(l===t.length)return~l}}return~(s+1)}return~t.length}return 0}function Ut(e){var t=qt(e);return t<0?~t:t}function Vt(e){return dr(e)}function Wt(t){t=zt(t);var r=tr(er(t)),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:pr(t)?mr(a):a,parts:i}}return{path:n,parts:i}}function Ht(t){t=zt(t);var r=Ut(t);return r===t.length?t:(t=fr(t),t.slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator))))}function Gt(e){return qt(e)<0}function Xt(e){return/^\.\.?($|[\\\/])/.test(e)}function Qt(e){return qt(e)>0}function Yt(e){var t=qt(e);return t>0&&t===e.length}function Zt(e,t,r){return Qt(e)?cr(t,e,t,r,!1):e}function $t(t,r){var n=t.substring(0,r),i=t.substring(r).split(e.directorySeparator);return i.length&&!ye(i)&&i.pop(),[n].concat(i)}function er(e,t){void 0===t&&(t=""),e=_r(t,e);var r=Ut(e);return $t(e,r)}function tr(e){if(!q(e))return[];for(var t=[e[0]],r=1;r1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(n)}}return t}function rr(e,t){return tr(er(e,t))}function nr(e,t){return ir(rr(e,t))}function ir(t){if(0===t.length)return"";var r=t[0]&&mr(t[0]);return 1===t.length?r:r+t.slice(1).join(e.directorySeparator)}function ar(e,t,r,n){var i,a=tr(er(e)),o=tr(er(t));for(i=0;i0==Ut(t)>0,"Paths must either both be absolute or both be relative");var n="function"==typeof r?r:$e,i="boolean"==typeof r&&r,a=ar(e,t,i?ft:mt,n);return ir(a)}function cr(t,r,n,i,a){var o=ar(dr(n,t),dr(n,r),mt,i),s=o[0];if(a&&Qt(s)){var c=s.charAt(0)===e.directorySeparator?"file://":"file:///";o[0]=c+s}return ir(o)}function ur(e){return 0!==Ut(e)||Xt(e)?e:"./"+e}function lr(t,r,n){t=zt(t);var i=Ut(t);if(i===t.length)return"";t=fr(t);var a=t.slice(Math.max(Ut(t),t.lastIndexOf(e.directorySeparator)+1)),o=void 0!==r&&void 0!==n?Cn(a,r,n):void 0;return o?a.slice(0,a.length-o.length):a}function _r(e){for(var t=[],r=1;r=0&&e.indexOf(t,r)===r}function Sr(e,t){return kr(e,t)?e.slice(0,e.length-t.length):e}function Cr(e,t){return e.indexOf(t)!==-1}function Tr(e){return Cr(lr(e),".")}function Er(e,t){return e.length>t.length&&kr(e,t)}function Nr(e,t){for(var r=0,n=t;r0;)c+=")?",d--;return c}}function Ir(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Or(e,t,r,n,i){e=Vt(e),i=Vt(i);var a=_r(i,e);return{includeFilePatterns:P(Pr(r,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Ar(r,a,"files"),includeDirectoryPattern:Ar(r,a,"directories"),excludePattern:Ar(t,a,"exclude"),basePaths:Lr(e,r,n)}}function Mr(e,t,r,n,i,a,o,s){function c(e,r,n){for(var i=s(e),a=i.files,o=i.directories,u=function(n){var i=_r(e,n),a=_r(r,n);if(t&&!Nr(i,t))return"continue";if(p&&p.test(a))return"continue";if(_){var o=b(_,function(e){return e.test(a)});o!==-1&&f[o].push(i)}else f[0].push(i)},l=0,m=ue(a,bt);l=0;r--)if(Er(e,t[r]))return Wr(r,t);return 0}function Wr(e,t){return e<2?0:ei&&(i=c.prefix.length,n=s)}return n}function gn(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&xr(t,r)&&kr(t,n)}function yn(e){Yn.assert(Jt(e));var t=e.indexOf("*");return t===-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function vn(e){return!(e>=0)}function hn(e){return".ts"===e||".tsx"===e||".d.ts"===e}function bn(e){return hn(e)||".json"===e}function xn(e){var t=kn(e);return void 0!==t?t:void Yn.fail("File "+e+" has unknown extension.")}function Dn(e){return void 0!==kn(e)}function kn(t){return v(e.supportedTypescriptExtensionsForExtractExtension,function(e){return Er(t,e)})||v(e.supportedJavascriptExtensions,function(e){return Er(t,e)})}function Sn(e,t,r){"string"==typeof t&&(t=[t]);for(var n=0,i=t;n=a.length&&"."===e.charAt(e.length-a.length)){var o=e.slice(e.length-a.length);if(r(o,a))return o}}return""}function Cn(e,t,r){if(t)return Sn(e,t,r?ft:mt);var n=lr(e),i=n.lastIndexOf(".");return i>=0?n.substring(i):""}function Tn(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function En(e,t){return function(r){return e(r)&&t(r)}}function Nn(e,t){return function(r){return e(r)||t(r)}}function An(e){}function Pn(e){return void 0===e?void 0:[e]}function Fn(e,t,r,n,i,a){a=a||Qe;for(var o=0,s=0,c=e.length,u=t.length;o0?1:0}function t(t){var r=new Intl.Collator(t,{usage:"sort",sensitivity:"variant"}).compare;return function(t,n){return e(t,n,r)}}function r(t){function r(e,t){return e.localeCompare(t)}return void 0!==t?n():function(t,n){return e(t,n,r)}}function n(){function t(e,t){return r(e.toUpperCase(),t.toUpperCase())||r(e,t)}function r(e,t){return et?1:0}return function(r,n){return e(r,n,t)}}function i(){return"object"==typeof Intl&&"function"==typeof Intl.Collator?t:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?r:n}function a(e){return void 0===e?o||(o=c(e)):"en-US"===e?s||(s=c(e)):c(e)}var o,s,c=i();return a}();e.getUILocale=Dt,e.setUILocale=kt,e.compareStringsCaseSensitiveUI=St,e.compareProperties=Ct,e.compareDiagnostics=Et,e.compareBooleans=Nt,e.getEmitScriptTarget=Pt,e.getEmitModuleKind=Ft,e.getEmitModuleResolutionKind=wt,e.unreachableCodeIsError=It,e.unusedLabelIsError=Ot,e.getAreDeclarationMapsEnabled=Mt,e.getAllowSyntheticDefaultImports=Lt,e.getEmitDeclarations=Rt,e.getStrictOptionValue=Bt,e.hasZeroOrOneAsteriskCharacter=Jt,e.directorySeparator="/";var Rn="\\",Bn="://",Jn=/\\/g;e.normalizeSlashes=zt,e.getRootLength=Ut,e.normalizePath=Vt,e.normalizePathAndParts=Wt,e.getDirectoryPath=Ht,e.isUrl=Gt,e.pathIsRelative=Xt,e.isRootedDiskPath=Qt,e.isDiskPathRoot=Yt,e.convertToRelativePath=Zt,e.getPathComponents=er,e.reducePathComponents=tr,e.getNormalizedPathComponents=rr,e.getNormalizedAbsolutePath=nr,e.getPathFromPathComponents=ir,e.getRelativePathFromFile=or,e.getRelativePathFromDirectory=sr,e.getRelativePathToDirectoryOrUrl=cr,e.ensurePathIsNonModuleName=ur,e.getBaseFileName=lr,e.combinePaths=_r,e.resolvePath=dr,e.hasTrailingDirectorySeparator=pr,e.removeTrailingDirectorySeparator=fr,e.ensureTrailingDirectorySeparator=mr,e.comparePathsCaseSensitive=yr,e.comparePathsCaseInsensitive=vr,e.comparePaths=hr,e.containsPath=br,e.startsWith=xr,e.removePrefix=Dr,e.endsWith=kr,e.removeSuffix=Sr,e.stringContains=Cr,e.hasExtension=Tr,e.fileExtensionIs=Er,e.fileExtensionIsOneOf=Nr;var zn=/[^\w\s\/]/g,jn=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Kn="(?!("+e.commonPackageFolders.join("|")+")(/|$))",qn={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+Kn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Ir(e,qn.singleAsteriskRegexFragment)}},Un={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+Kn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Ir(e,Un.singleAsteriskRegexFragment)}},Vn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return Ir(e,Vn.singleAsteriskRegexFragment)}},Wn={files:qn,directories:Un,exclude:Vn};e.getRegularExpressionForWildcard=Ar,e.isImplicitGlob=Fr,e.getFileMatcherPatterns=Or,e.matchFiles=Mr,e.ensureScriptKind=Br,e.getScriptKindFromFileName=Jr,e.supportedTypeScriptExtensions=[".ts",".tsx",".d.ts"],e.supportedTypescriptExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJavascriptExtensions=[".js",".jsx"];var Hn=e.supportedTypeScriptExtensions.concat(e.supportedJavascriptExtensions);e.getSupportedExtensions=zr,e.hasJavaScriptFileExtension=Kr,e.hasTypeScriptFileExtension=qr,e.isSupportedSourceFileName=Ur;var Gn;!function(e){e[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest"}(Gn=e.ExtensionPriority||(e.ExtensionPriority={})),e.getExtensionPriority=Vr,e.adjustExtensionPriority=Wr,e.getNextLowestExtensionPriority=Hr;var Xn=[".d.ts",".ts",".js",".tsx",".jsx",".json"];e.removeFileExtension=Gr,e.tryRemoveExtension=Xr,e.removeExtension=Qr,e.changeExtension=Yr,e.changeAnyExtension=Zr,e.removeMinAndVersionNumbers=$r,e.objectAllocator={getNodeConstructor:function(){return nn},getTokenConstructor:function(){return nn},getIdentifierConstructor:function(){return nn},getSourceFileConstructor:function(){return nn},getSymbolConstructor:function(){return en},getTypeConstructor:function(){return tn},getSignatureConstructor:function(){return rn},getSourceMapSourceConstructor:function(){return an}};var Qn;!function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(Qn=e.AssertionLevel||(e.AssertionLevel={}));var Yn;!function(t){function r(e){return t.currentAssertionLevel>=e}function n(e,t,r,i){e||(r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),c(t?"False expression: "+t:"False expression.",i||n))}function i(e,t,r,n){if(e!==t){var i=r?n?r+" "+n:r:"";c("Expected "+e+" === "+t+". "+i)}}function a(e,t,r){e>=t&&c("Expected "+e+" < "+t+". "+(r||""))}function o(e,t){e>t&&c("Expected "+e+" <= "+t)}function s(e,t){e= "+t)}function c(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||c),r}function u(e,t){return n(void 0!==e&&null!==e,t),e}function l(e,t){for(var r=0,n=e;r0;a(),o--){var p=t[n];if(p)if(p.isClosed)t[n]=void 0;else{_++;var m=c(p,f(p.fileName));p.isClosed?t[n]=void 0:m?(p.unchangedPolls=0,t!==y&&(t[n]=void 0,l(p))):p.unchangedPolls!==e.unchangedPollThresholds[r]?p.unchangedPolls++:t===y?(p.unchangedPolls=1,t[n]=void 0,u(p,d.Low)):r!==d.High&&(p.unchangedPolls++,t[n]=void 0,u(p,r===d.Low?d.Medium:d.High)),t[n]&&(s=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}}function k(e,t,r){r&&(t=a+t);var n;try{n=L.openSync(e,"w"),L.writeSync(n,t,void 0,"utf8")}finally{void 0!==n&&L.closeSync(n)}}function S(t){try{for(var r=L.readdirSync(t||".").sort(),n=[],i=[],a=0,o=r;a=4,U=B.platform(),V=t();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(z||(z={}));var W,H=process.env.TSC_NONPOLLING_WATCHER,G=process.env.TSC_WATCHFILE,X=process.env.TSC_WATCHDIRECTORY,Q={args:process.argv.slice(2),newLine:B.EOL,useCaseSensitiveFileNames:V,write:function(e){process.stdout.write(e)},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:D,writeFile:k,watchFile:n(),watchDirectory:i(),resolvePath:function(e){return R.resolve(e)},fileExists:E,directoryExists:N,createDirectory:function(e){Q.directoryExists(e)||L.mkdirSync(e)},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:A,getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:C,getModifiedTime:F,createHash:M?I:w,createSHA256Hash:M?O:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=L.statSync(e);if(t.isFile())return t.size}catch(r){}return 0},exit:function(e){process.exit(e)},realpath:P,debugMode:e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{require("source-map-support").install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},base64decode:j.from?function(e){return j.from(e,"base64").toString("utf8")}:function(e){return new j(e,"base64").toString("utf8")},base64encode:j.from?function(e){return j.from(e).toString("base64")}:function(e){return new j(e).toString("base64")}};return Q}function r(){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,r){r&&(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,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,r,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}function n(t,r){var i=e.getDirectoryPath(t),a=""!==i&&t!==i&&!r.directoryExists(i); a&&n(i,r),!a&&r.directoryExists(t)||r.createDirectory(t)}var i,a="\ufeff";if("undefined"!=typeof ChakraHost?i=r():"undefined"!=typeof process&&process.nextTick&&!process.browser&&"undefined"!=typeof require&&(i=t()),i){var o=i.writeFile;i.writeFile=function(t,r,a){var s=e.getDirectoryPath(e.normalizeSlashes(t));s&&!i.directoryExists(s)&&n(s,i),o.call(i,t,r,a)}}return i}(),e.sys&&e.sys.getEnvironmentVariable&&(o(e.sys),e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(ts||(ts={}));var ts;!function(e){function t(e,t,r,n,i){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i}}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."),An_element_access_expression_should_take_an_argument:t(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list: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_is_only_supported_when_module_flag_is_commonjs_or_esNext:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext_1323","Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'."),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."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_1340","Module '{0}' does not refer to a type, but is used as a type here."),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_options:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_option_1343","The 'import.meta' meta-property is only allowed using 'ESNext' for the 'target' and 'module' compiler options."),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_but_here_has_type_0: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_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value: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_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."), An_iterator_must_have_a_next_method: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_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation: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."),Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2568,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators_2568","Type '{0}' is not an array type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await:t(2570,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await_2570","Property '{0}' does not exist on type '{1}'. Did you forget to use 'await'?"),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.",!0),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'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),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.Error,"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."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file: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"),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.",!0),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.",!0),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_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it: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}'."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern_6307","File '{0}' is not in project file list. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),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.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),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."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),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"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:t(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),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}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),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}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{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_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_destructuring:t(90009,e.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),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"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels")}}(ts||(ts={}));var ts;!function(e){function t(e){return e>=71}function r(e){return 29===e||t(e)}function n(e,t){if(e=1?n(e,K):n(e,z)}function a(e,t){return t>=1?n(e,q):n(e,j)}function o(e){var t=[];return e.forEach(function(e,r){t[e]=r}),t}function s(e){return U[e]}function c(e){return J.get(e)}function u(e){for(var t=new Array,r=0,n=0;r127&&y(i)&&(t.push(n),n=r)}}return t.push(n),t}function l(e,t,r){return _(d(e),t,r,e.text)}function _(t,r,n,i){(r<0||r>=t.length)&&e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,u(i)):"unknown"));var a=t[r]+n;return r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function y(e){return 10===e||13===e||8232===e||8233===e}function v(e){return e>=48&&e<=57}function h(e){return e>=48&&e<=55}function b(e,t){var r=e.charCodeAt(t);switch(r){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 r>127}}function x(t,r,n,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(r))return r;for(;;){var a=t.charCodeAt(r);switch(a){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r127&&m(a)){r++;continue}}return r}}function D(t,r){if(e.Debug.assert(r>=0),0===r||y(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+V=0&&r127&&m(f)){_&&y(f)&&(l=!0),r++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function E(e,t,r,n){return T(!1,e,t,!1,r,n)}function N(e,t,r,n){return T(!1,e,t,!0,r,n)}function A(e,t,r,n,i){return T(!0,e,t,!1,r,n,i)}function P(e,t,r,n,i){return T(!0,e,t,!0,r,n,i)}function F(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function w(e,t){return A(e,t,F,void 0,void 0)}function I(e,t){return P(e,t,F,void 0,void 0)}function O(e){var t=W.exec(e);if(t)return t[0]}function M(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&i(e,t)}function L(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&a(e,t)}function R(e,t){if(!M(e.charCodeAt(0),t))return!1;for(var r=1;r=48&&l<=57)o=16*o+l-48;else if(l>=65&&l<=70)o=16*o+l-65+10;else{if(!(l>=97&&l<=102))break;o=16*o+l-97+10}ne++,i++,c=!1}}return i=ie){n+=a.substring(i,ne),ue|=4,u(e.Diagnostics.Unterminated_string_literal);break}var o=a.charCodeAt(ne);if(o===r){n+=a.substring(i,ne),ne++;break}if(92!==o||t){if(y(o)&&!t){n+=a.substring(i,ne),ue|=4,u(e.Diagnostics.Unterminated_string_literal);break}ne++}else n+=a.substring(i,ne),n+=E(),i=ne}return n}function T(){var t=96===a.charCodeAt(ne);ne++;for(var r,n=ne,i="";;){if(ne>=ie){i+=a.substring(n,ne),ue|=4,u(e.Diagnostics.Unterminated_template_literal),r=t?13:16;break}var o=a.charCodeAt(ne);if(96===o){i+=a.substring(n,ne),ne++,r=t?13:16;break}if(36===o&&ne+1=ie)return u(e.Diagnostics.Unexpected_end_of_text),"";var t=a.charCodeAt(ne);switch(ne++,t){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\x0B";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return ne=0?String.fromCharCode(r):(u(e.Diagnostics.Hexadecimal_digit_expected),"")}function A(){var t=f(1,!1),r=!1;return t<0?(u(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(u(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),ne>=ie?(u(e.Diagnostics.Unexpected_end_of_text),r=!0):125===a.charCodeAt(ne)?ne++:(u(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":P(t)}function P(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)}function F(){if(ne+5=0&&L(n,r)))break;e+=a.substring(t,ne),e+=String.fromCharCode(n),ne+=6,t=ne}}return e+=a.substring(t,ne)}function I(){var e=ce.length;if(e>=2&&e<=11){var t=ce.charCodeAt(0);if(t>=97&&t<=122&&(se=J.get(ce),void 0!==se))return se}return se=71}function O(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var r=0,n=0,i=!1,o=!1;;){var s=a.charCodeAt(ne);if(95!==s){i=!0;var c=s-48;if(!v(s)||c>=t)break;r=r*t+c,ne++,n++,o=!1}else ue|=512,i?(i=!1,o=!0):o?u(e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted,ne,1):u(e.Diagnostics.Numeric_separators_are_not_allowed_here,ne,1),ne++}return 0===n?-1:95===a.charCodeAt(ne-1)?(u(e.Diagnostics.Numeric_separators_are_not_allowed_here,ne-1,1),r):r}function R(){for(ae=ne,ue=0;;){if(oe=ne,ne>=ie)return se=1;var t=a.charCodeAt(ne);if(35===t&&0===ne&&S(a,ne)){if(ne=C(a,ne),n)continue;return se=6}switch(t){case 10:case 13:if(ue|=1,n){ne++;continue}return 13===t&&ne+1=0&&M(l,r)?(ne+=6,ce=String.fromCharCode(l)+w(),se=I()):(u(e.Diagnostics.Invalid_character),ne++,se=0);default:if(M(t,r)){for(ne++;ne=ie){ue|=4,u(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=a.charCodeAt(t);if(y(o)){ue|=4,u(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===o&&!i){t++;break}91===o?i=!0:92===o?n=!0:93===o&&(i=!1)}t++}for(;t=ie)return se=1;var e=a.charCodeAt(ne);if(60===e)return 47===a.charCodeAt(ne+1)?(ne+=2,se=28):(ne++,se=27);if(123===e)return ne++,se=17;for(var t=0;ne=ie)return se=1;var e=a.charCodeAt(ne);switch(ne++,e){case 9:case 11:case 12:case 32:for(;ne=0),ne=t,ae=t,oe=t,se=0,ce=void 0,ue=0}void 0===i&&(i=0);var ne,ie,ae,oe,se,ce,ue;return Z(a,s,c),{getStartPos:function(){return ae},getTextPos:function(){return ne},getToken:function(){return se},getTokenPos:function(){return oe},getTokenText:function(){return a.substring(oe,ne)},getTokenValue:function(){return ce},hasExtendedUnicodeEscape:function(){return 0!==(8&ue)},hasPrecedingLineBreak:function(){return 0!==(1&ue)},isIdentifier:function(){return 71===se||se>107},isReservedWord:function(){return se>=72&&se<=107},isUnterminated:function(){return 0!==(4&ue)},getTokenFlags:function(){return ue},reScanGreaterToken:B,reScanSlashToken:z,reScanTemplateToken:j,scanJsxIdentifier:U,scanJsxAttributeValue:V,reScanJsxToken:K,scanJsxToken:q,scanJSDocToken:W,scan:R,getText:Y,setText:Z,setScriptTarget:ee,setLanguageVariant:te,setOnError:$,setTextPos:re,tryScan:Q,lookAhead:X,scanRange:G}}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=r;var J=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}),z=[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],j=[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],K=[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],q=[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=i;var U=o(J);e.tokenToString=s,e.stringToToken=c,e.computeLineStarts=u,e.getPositionOfLineAndCharacter=l,e.computePositionOfLineAndCharacter=_,e.getLineStarts=d,e.computeLineAndCharacterOfPosition=p,e.getLineAndCharacterOfPosition=f,e.isWhiteSpaceLike=m,e.isWhiteSpaceSingleLine=g,e.isLineBreak=y,e.isOctalDigit=h,e.couldStartTrivia=b,e.skipTrivia=x;var V="<<<<<<<".length,W=/^#!.*/;e.forEachLeadingCommentRange=E,e.forEachTrailingCommentRange=N,e.reduceEachLeadingCommentRange=A,e.reduceEachTrailingCommentRange=P,e.getLeadingCommentRanges=w,e.getTrailingCommentRanges=I,e.getShebang=O,e.isIdentifierStart=M,e.isIdentifierPart=L,e.isIdentifierText=R,e.createScanner=B}(ts||(ts={}));var ts;!function(e){function t(e,t){var r=e.declarations;if(r)for(var n=0,i=r;n=0),e.getLineStarts(r)[t]}function v(t){var r=m(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"}function h(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function b(e,t,r){return!(r&&r(t)||e.identifiers.has(t))}function x(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function D(e){return!x(e)}function k(e,t){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice();var r=e.length&&ke(e[0])&&e.shift();return e.unshift.apply(e,t),r&&e.unshift(r),e}function S(t,r,n){if(47===t.charCodeAt(r+1)&&r+20?T(t._children[0],r,n):e.skipTrivia((r||m(t)).text,t.pos)}function E(t,r){return x(t)||!t.decorators?T(t,r):e.skipTrivia((r||m(t)).text,t.decorators.end)}function N(e,t,r){return void 0===r&&(r=!1),A(e.text,t,r)}function A(t,r,n){return void 0===n&&(n=!1),x(r)?"":t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end)}function P(e,t){return void 0===t&&(t=!1),N(m(e),e,t)}function F(e){return e.pos}function w(t,r){return e.binarySearch(t,r,F,e.compareValues)}function I(e){var t=e.emitNode;return t&&t.flags}function O(t,r){if(!Gr(t)&&t.parent&&!(e.isNumericLiteral(t)&&512&t.numericLiteralFlags))return N(r,t);var n=16777216&I(t)?nn:cn;switch(t.kind){case 9:return t.singleQuote?"'"+n(t.text,39)+"'":'"'+n(t.text,34)+'"';case 13:return"`"+n(t.text,96)+"`";case 14:return"`"+n(t.text,96)+"${";case 15:return"}"+n(t.text,96)+"${";case 16:return"}"+n(t.text,96)+"`";case 8:case 12:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")}function M(t){return e.isString(t)?'"'+cn(t)+'"':""+t}function L(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function R(e){return e}function B(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function J(t){return 0!==(3&e.getCombinedNodeFlags(t))||z(t)}function z(e){var t=Wr(e);return 231===t.kind&&268===t.parent.kind}function j(t){return e.isModuleDeclaration(t)&&(9===t.name.kind||H(t))}function K(t){return e.isModuleDeclaration(t)&&9===t.name.kind}function q(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)}function U(e){return V(e.valueDeclaration)}function V(e){return e&&238===e.kind&&!e.body}function W(t){return 273===t.kind||238===t.kind||e.isFunctionLike(t)}function H(e){return!!(512&e.flags)}function G(e){return j(e)&&X(e)}function X(t){switch(t.parent.kind){case 273:return e.isExternalModule(t.parent);case 239:return j(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function Q(t,r){return e.isExternalModule(t)||r.isolatedModules||e.getEmitModuleKind(r)===e.ModuleKind.CommonJS&&!!t.commonJsModuleIndicator}function Y(t,r){switch(t.kind){case 273:case 240:case 268:case 238:case 219:case 220:case 221:case 154:case 153:case 155:case 156:case 233:case 191:case 192:return!0;case 212:return r&&!e.isFunctionLike(r)}return!1}function Z(t){switch(t.kind){case 157:case 158:case 152:case 159:case 162:case 163:case 283:case 234:case 204:case 235:case 236:case 295:case 233:case 153:case 154:case 155:case 156:case 191:case 192:case 291:case 296:case 287:return!0;default:return e.assertTypeIsNever(t),!1}}function $(e){switch(e.kind){case 243:case 242:return!0;default:return!1}}function ee(e){switch(e.kind){case 243:case 242:case 213:case 234:case 233:case 238:case 236:case 235:case 237:return!0;default:return!1}}function te(t){return $(t)||e.isExportDeclaration(t)}function re(t){return e.findAncestor(t.parent,function(e){return Y(e,e.parent)})}function ne(e){return 0===i(e)?"(Missing)":P(e)}function ie(e){return e.declaration?ne(e.declaration.parameters[0].name):void 0}function ae(t){switch(t.kind){case 71:return t.escapedText;case 9:case 8:return L(t.text);case 146:return Ir(t.expression)?L(t.expression.text):void 0;default:e.Debug.assertNever(t)}}function oe(t){switch(t.kind){case 71:return 0===i(t)?e.idText(t):P(t);case 145:return oe(t.left)+"."+oe(t.right);case 184:return oe(t.expression)+"."+oe(t.name)}}function se(e,t,r,n,i,a){var o=m(e);return ue(o,e,t,r,n,i,a)}function ce(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return e.createFileDiagnostic(t,c,r.end-c,n,i,a,o,s)}function ue(t,r,n,i,a,o,s){var c=fe(t,r);return e.createFileDiagnostic(t,c.start,c.length,n,i,a,o,s)}function le(t,r,n,i,a,o,s,c){var u=e.skipTrivia(t.text,r.pos);return e.createFileDiagnostic(t,u,n.end-u,i,a,o,s,c)}function _e(e,t){var r=m(e),n=fe(r,e);return{file:r,start:n.start,length:n.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function de(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function pe(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&212===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line,a=e.getLineAndCharacterOfPosition(t,r.body.end).line;if(i=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(o,n.end)}function me(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function ge(e){return 6===e.scriptKind}function ye(e){return 237===e.kind&&ve(e)}function ve(t){return!!(2&e.getCombinedNodeFlags(t))||!!(2048&e.getCombinedModifierFlags(t))}function he(t){return!!(1&e.getCombinedNodeFlags(t))}function be(e){return 186===e.kind&&97===e.expression.kind}function xe(e){return 186===e.kind&&91===e.expression.kind}function De(t){return 178===t.kind&&177===t.argument.kind&&e.isStringLiteral(t.argument.literal)}function ke(e){return 215===e.kind&&9===e.expression.kind}function Se(t,r){return 10!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0}function Ce(t,r){var n=148===t.kind||147===t.kind||191===t.kind||192===t.kind||190===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)})}function Te(t){if(160<=t.kind&&t.kind<=178)return!0;switch(t.kind){case 119:case 134:case 137:case 122:case 138:case 140:case 131:return!0;case 105:return 195!==t.parent.kind;case 206:return!ii(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:184===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(71===t.kind||145===t.kind||184===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 145:case 184:case 99:var r=t.parent;if(164===r.kind)return!1;if(178===r.kind)return!r.isTypeOf;if(160<=r.kind&&r.kind<=178)return!0;switch(r.kind){case 206:return!ii(r);case 147:return t===r.constraint;case 151:case 150:case 148:case 231:return t===r.type;case 233:case 191:case 192:case 154:case 153:case 152:case 155:case 156:return t===r.type;case 157:case 158:case 159:return t===r.type;case 189:return t===r.type;case 186:case 187:return e.contains(r.typeArguments,t);case 188:return!1}}return!1}function Ee(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function Ne(t,r){function n(t){switch(t.kind){case 224:return r(t);case 240:case 212:case 216:case 217:case 218:case 219:case 220:case 221:case 225:case 226:case 265:case 266:case 227:case 229:case 268:return e.forEachChild(t,n)}}return n(t)}function Ae(t,r){function n(t){switch(t.kind){case 202:r(t);var i=t.expression;return void(i&&n(i));case 237:case 235:case 238:case 236:case 234:case 204:return;default:if(e.isFunctionLike(t)){if(t.name&&146===t.name.kind)return void n(t.name.expression)}else Te(t)||e.forEachChild(t,n)}}return n(t)}function Pe(t){return t&&166===t.kind?t.elementType:t&&161===t.kind?e.singleOrUndefined(t.typeArguments):void 0; }function Fe(e){switch(e.kind){case 235:case 234:case 204:case 165:return e.members;case 183:return e.properties}}function we(e){if(e)switch(e.kind){case 181:case 272:case 148:case 269:case 151:case 150:case 270:case 231:return!0}return!1}function Ie(t){return we(t)||e.isAccessor(t)}function Oe(e){return 232===e.parent.kind&&213===e.parent.parent.kind}function Me(t){return e.isVariableDeclaration(t)?ve(t)&&e.isIdentifier(t.name)&&Oe(t):e.isPropertyDeclaration(t)?Gn(t)&&Hn(t):e.isPropertySignature(t)&&Gn(t)}function Le(e){switch(e.kind){case 153:case 152:case 154:case 155:case 156:case 233:case 191:return!0}return!1}function Re(e,t){for(;;){if(t&&t(e),227!==e.statement.kind)return e.statement;e=e.statement}}function Be(t){return t&&212===t.kind&&e.isFunctionLike(t.parent)}function Je(e){return e&&153===e.kind&&183===e.parent.kind}function ze(e){return 153===e.kind&&(183===e.parent.kind||204===e.parent.kind)}function je(e){return e&&1===e.kind}function Ke(e){return e&&0===e.kind}function qe(t,r,n){return e.filter(t.properties,function(e){if(269===e.kind){var t=ae(e.name);return r===t||n&&n===t}})}function Ue(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.isObjectLiteralExpression(r)&&r}}function Ve(t,r,n){var i=Ue(t);return i&&e.firstDefined(qe(i,r),function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,function(t){return e.isStringLiteral(t)&&t.text===n}):void 0})}function We(t){return e.findAncestor(t.parent,e.isFunctionLike)}function He(t){return e.findAncestor(t.parent,e.isClassLike)}function Ge(t,r){for(;;){if(t=t.parent,!t)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 192:if(!r)continue;case 233:case 191:case 238:case 151:case 150:case 153:case 152:case 154:case 155:case 156:case 157:case 158:case 159:case 237:case 273:return t}}}function Xe(e){var t=Ge(e,!1);if(t)switch(t.kind){case 154:case 233:case 191:return t}}function Qe(t,r){for(;;){if(t=t.parent,!t)return t;switch(t.kind){case 146:t=t.parent;break;case 233:case 191:case 192:if(!r)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)}}}function Ye(e){if(191===e.kind||192===e.kind){for(var t=e,r=e.parent;190===r.kind;)t=r,r=r.parent;if(186===r.kind&&r.expression===t)return r}}function Ze(e){var t=e.kind;return(184===t||185===t)&&97===e.expression.kind}function $e(e){var t=e.kind;return(184===t||185===t)&&99===e.expression.kind}function et(e){switch(e.kind){case 161:return e.typeName;case 206:return oi(e.expression)?e.expression:void 0;case 71:case 145:return e}}function tt(e){switch(e.kind){case 188:return e.tag;case 256:case 255:return e.tagName;default:return e.expression}}function rt(e,t,r){switch(e.kind){case 234:return!0;case 151:return 234===t.kind;case 155:case 156:case 153:return void 0!==e.body&&234===t.kind;case 148:return void 0!==t.body&&(154===t.kind||153===t.kind||156===t.kind)&&234===r.kind}return!1}function nt(e,t,r){return void 0!==e.decorators&&rt(e,t,r)}function it(e,t,r){return nt(e,t,r)||at(e,t)}function at(t,r){switch(t.kind){case 234:return e.forEach(t.members,function(e){return it(e,t,r)});case 153:case 156:return e.forEach(t.parameters,function(e){return nt(e,t,r)})}}function ot(e){var t=e.parent;return(256===t.kind||255===t.kind||257===t.kind)&&t.tagName===e}function st(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 182:case 183:case 184:case 185:case 186:case 187:case 188:case 207:case 189:case 208:case 190:case 191:case 204:case 192:case 195:case 193:case 194:case 197:case 198:case 199:case 200:case 203:case 201:case 13:case 205:case 254:case 255:case 258:case 202:case 196:case 209:return!0;case 145:for(;145===e.parent.kind;)e=e.parent;return 164===e.parent.kind||ot(e);case 71:if(164===e.parent.kind||ot(e))return!0;case 8:case 9:case 99:return ct(e);default:return!1}}function ct(e){var t=e.parent;switch(t.kind){case 231:case 148:case 151:case 150:case 272:case 269:case 181:return t.initializer===e;case 215:case 216:case 217:case 218:case 224:case 225:case 226:case 265:case 228:return t.expression===e;case 219:var r=t;return r.initializer===e&&232!==r.initializer.kind||r.condition===e||r.incrementor===e;case 220:case 221:var n=t;return n.initializer===e&&232!==n.initializer.kind||n.expression===e;case 189:case 207:return e===t.expression;case 210:return e===t.expression;case 146:return e===t.expression;case 149:case 264:case 263:case 271:return!0;case 206:return t.expression===e&&ii(t);default:return st(t)}}function ut(e){return 242===e.kind&&253===e.moduleReference.kind}function lt(t){return e.Debug.assert(ut(t)),t.moduleReference.expression}function _t(e){return 242===e.kind&&253!==e.moduleReference.kind}function dt(e){return ft(e)}function pt(e){return!ft(e)}function ft(e){return e&&!!(65536&e.flags)}function mt(e){return e&&!!(16777216&e.flags)}function gt(e){return e&&!!(2097152&e.flags)}function yt(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)}function vt(t,r){if(186!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(71!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function ht(e){return 39===e||34===e}function bt(e,t){return 34===N(t,e).charCodeAt(0)}function xt(e){if(!e||!e.valueDeclaration)return e;var t=e.valueDeclaration,r=Dt(t)||kt(t);return r&&r.symbol?r.symbol:e}function Dt(t){if(t&&e.isVariableDeclaration(t)&&t.initializer)return St(t.initializer,!1)||e.isIdentifier(t.name)&&Ct(t.name,t.initializer,!1)}function kt(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&58===t.parent.operatorToken.kind){var r=ci(t.parent.left);return St(t.parent.right,r)||Ct(t.parent.left,t.parent.right,r)}}function St(t,r){if(e.isCallExpression(t)){var n=lr(t.expression);return 191===n.kind||192===n.kind?t:void 0}return 191===t.kind||204===t.kind||192===t.kind?t:e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function Ct(t,r,n){var i=e.isBinaryExpression(r)&&54===r.operatorToken.kind&&St(r.right,n);if(i&&Et(t,r.left))return i}function Tt(t){if(e.isBinaryExpression(t.parent)){var r=54===t.parent.operatorToken.kind&&e.isBinaryExpression(t.parent.parent)?t.parent.parent:t.parent;if(58===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name}function Et(t,r){return e.isIdentifier(t)&&e.isIdentifier(r)?t.escapedText===r.escapedText:e.isIdentifier(t)&&e.isPropertyAccessExpression(r)?(99===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))&&Et(t,r.name):!(!e.isPropertyAccessExpression(t)||!e.isPropertyAccessExpression(r))&&(t.name.escapedText===r.name.escapedText&&Et(t.expression,r.expression))}function Nt(e){for(;ri(e,!0);)e=e.right;return e}function At(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Pt(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText}function Ft(t){if(!ft(t)||58!==t.operatorToken.kind||!e.isPropertyAccessExpression(t.left))return 0;var r=t.left;if(99===r.expression.kind)return 4;if(e.isIdentifier(r.expression)&&"module"===r.expression.escapedText&&"exports"===r.name.escapedText)return 2;if(oi(r.expression)){if("prototype"===r.name.escapedText&&e.isObjectLiteralExpression(wt(t)))return 6;if(ci(r.expression))return 3;for(var n=r;e.isPropertyAccessExpression(n.expression);)n=n.expression;e.Debug.assert(e.isIdentifier(n.expression));var i=n.expression;return"exports"===i.escapedText||"module"===i.escapedText&&"exports"===n.name.escapedText?1:5}return 0}function wt(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function It(t){return e.isBinaryExpression(t)&&3===Ft(t)}function Ot(t){return ft(t)&&t.parent&&215===t.parent.kind&&!!e.getJSDocTypeTag(t.parent)}function Mt(t){return Lt(t)||e.Debug.fail(e.Debug.showSyntaxKind(t.parent))}function Lt(t){switch(t.parent.kind){case 243:case 249:return t.parent;case 253:return t.parent.parent;case 186:return t.parent;case 177:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Rt(t){switch(t.kind){case 243:case 249:return t.moduleSpecifier;case 242:return 253===t.moduleReference.kind?t.moduleReference.expression:void 0;case 178:return De(t)?t.argument.literal:void 0;default:return e.Debug.assertNever(t)}}function Bt(t){switch(t.kind){case 243:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 242:return t;case 249:return;default:return e.Debug.assertNever(t)}}function Jt(e){return 243===e.kind&&e.importClause&&!!e.importClause.name}function zt(e){if(e)switch(e.kind){case 148:case 153:case 152:case 270:case 269:case 151:case 150:return void 0!==e.questionToken}return!1}function jt(e){return 283===e.kind&&e.parameters.length>0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText}function Kt(e){return 296===e.kind||291===e.kind}function qt(t){return Kt(t)||e.isTypeAliasDeclaration(t)}function Ut(t){return e.isExpressionStatement(t)&&t.expression&&e.isBinaryExpression(t.expression)&&58===t.expression.operatorToken.kind&&t.expression.right}function Vt(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Ft(t.expression)&&e.isBinaryExpression(t.expression.right)&&54===t.expression.right.operatorToken.kind&&t.expression.right.right}function Wt(e){switch(e.kind){case 213:var t=Ht(e);return t&&t.initializer;case 151:return e.initializer;case 269:return e.initializer}}function Ht(t){return e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&t.declarationList.declarations[0]}function Gt(e){return 238===e.kind&&e.body&&238===e.body.kind&&e.body}function Xt(t){function r(i){var a=i.parent;a&&((269===a.kind||151===a.kind||Gt(a))&&r(a),a.parent&&Ht(a.parent)===i&&r(a.parent),a.parent&&a.parent.parent&&(Ht(a.parent.parent)||Wt(a.parent.parent)===i||Vt(a.parent.parent))&&r(a.parent.parent),(e.isBinaryExpression(i)&&58===i.operatorToken.kind||e.isBinaryExpression(a)&&58===a.operatorToken.kind||184===i.kind&&i.parent&&215===i.parent.kind)&&r(a),148===i.kind&&(n=e.addRange(n,e.getJSDocParameterTags(i))),we(i)&&e.hasInitializer(i)&&i.initializer!==t&&e.hasJSDocNodes(i.initializer)&&(n=e.addRange(n,i.initializer.jsDoc)),e.hasJSDocNodes(i)&&(n=e.addRange(n,i.jsDoc)))}var n;return r(t),n||e.emptyArray}function Qt(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=Yt(t);if(n){var i=e.find(n.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===r});return i&&i.symbol}}}function Yt(e){return Zt($t(e))}function Zt(t){var r=Vt(t)||Ut(t)||Wt(t)||Ht(t)||Gt(t)||t;return r&&e.isFunctionLike(r)?r:void 0}function $t(t){return e.Debug.assertDefined(e.findAncestor(t.parent,e.isJSDoc)).parent}function er(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return e.find(n,function(e){return e.name.escapedText===r})}function tr(t){var r=e.lastOrUndefined(t.parameters);return r&&rr(r)}function rr(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||r&&284===r.kind}function nr(e){for(var t=e.parent;;){switch(t.kind){case 199:var r=t.operatorToken.kind;return ei(r)&&t.left===e?58===r?1:2:0;case 197:case 198:var n=t.operator;return 43===n||44===n?2:0;case 220:case 221:return t.initializer===e?1:0;case 190:case 182:case 203:case 208:e=t;break;case 270:if(t.name!==e)return 0;e=t.parent;break;case 269:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ir(e){return 0!==nr(e)}function ar(e){switch(e.kind){case 212:case 213:case 225:case 216:case 226:case 240:case 265:case 266:case 227:case 219:case 220:case 221:case 217:case 218:case 229:case 268:return!0}return!1}function or(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)}function sr(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function cr(e){return sr(e,172)}function ur(e){return sr(e,190)}function lr(e){for(;190===e.kind;)e=e.expression;return e}function _r(e){return(184===e.kind||185===e.kind)&&(e=ur(e.parent),e&&193===e.kind)}function dr(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function pr(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t}function fr(t){switch(t.kind){case 71:case 9:case 8:if(e.isDeclaration(t.parent))return t.parent.name===t;if(e.isQualifiedName(t.parent)){var r=t.parent.parent;return e.isJSDocParameterTag(r)&&r.name===t.parent}var n=t.parent.parent;return e.isBinaryExpression(n)&&0!==Ft(n)&&e.getNameOfDeclaration(n)===t;default:return!1}}function mr(t){return(9===t.kind||8===t.kind)&&146===t.parent.kind&&e.isDeclaration(t.parent.parent)}function gr(e){var t=e.parent;switch(t.kind){case 151:case 150:case 153:case 152:case 155:case 156:case 272:case 269:case 184:return t.name===e;case 145:if(t.right===e){for(;145===t.kind;)t=t.parent;return 164===t.kind||161===t.kind}return!1;case 181:case 247:return t.propertyName===e;case 251:case 261:return!0}return!1}function yr(t){return 242===t.kind||241===t.kind||244===t.kind&&!!t.name||245===t.kind||247===t.kind||251===t.kind||248===t.kind&&vr(t)||e.isBinaryExpression(t)&&2===Ft(t)}function vr(t){var r=e.isExportAssignment(t)?t.expression:t.right;return oi(r)||e.isClassExpression(r)}function hr(e){var t=kr(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0}function br(e){var t=kr(e.heritageClauses,108);return t?t.types:void 0}function xr(t){return e.isInterfaceDeclaration(t)?Dr(t)||e.emptyArray:e.isClassLike(t)?e.concatenate(e.singleElementArray(hr(t)),br(t))||e.emptyArray:e.emptyArray}function Dr(e){var t=kr(e.heritageClauses,85);return t?t.types:void 0}function kr(e,t){if(e)for(var r=0,n=e;r=48&&n<=57?"\\x00":"\\0"}return Ca.get(e)||sn(e.charCodeAt(0))}function on(e){var t=e.charCodeAt(0);return t>=97&&t<=122||e.indexOf("-")>-1}function sn(e){var t=e.toString(16).toUpperCase(),r=("0000"+t).slice(-4);return"\\u"+r}function cn(e,t){return e=nn(e,t),Ta.test(e)?e.replace(Ta,function(e){return sn(e.charCodeAt(0))}):e}function un(e){return void 0===Ea[e]&&(Ea[e]=un(e-1)+Ea[1]),Ea[e]}function ln(){return Ea[1].length}function _n(t){function r(e){e&&e.length&&(l&&(c+=un(u),l=!1),c+=e)}function n(){c="",u=0,l=!0,_=0,d=0}function i(e){void 0!==e&&(l&&(l=!1),c+=e)}function a(t){if(t&&t.length){r(t);var n=e.computeLineStarts(t);n.length>1&&(_=_+n.length-1,d=c.length-t.length+e.lastOrUndefined(n))}}function o(){l||(c+=t,_++,d=c.length,l=!0)}function s(e,t){r(A(e,t))}var c,u,l,_,d;return n(),{write:r,rawWrite:i,writeTextOfNode:s,writeLiteral:a,writeLine:o,increaseIndent:function(){u++},decreaseIndent:function(){u--},getIndent:function(){return u},getTextPos:function(){return c.length},getLine:function(){return _+1},getColumn:function(){return l?u*ln()+1:c.length-d+1},getText:function(){return c},isAtStartOfLine:function(){return l},clear:n,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:r,writeOperator:r,writeParameter:r,writeProperty:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeSymbol:r}}function dn(e,t,r){return t.moduleName||fn(e,t.fileName,r&&r.fileName)}function pn(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return dn(e,n)}function fn(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1),c=e.removeFileExtension(s);return n?e.ensurePathIsNonModuleName(c):c}function mn(t,r,n){var i,a=r.getCompilerOptions();return i=a.outDir?e.removeFileExtension(hn(t,r,a.outDir)):e.removeFileExtension(t.fileName),i+n}function gn(t,r){var n=r.getCompilerOptions(),i=n.declarationDir||n.outDir,a=i?hn(t,r,i):t.fileName;return e.removeFileExtension(a)+".d.ts"}function yn(t,r){var n=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(n.outFile||n.out){var a=e.getEmitModuleKind(n),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&vn(t,n,i)})}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,function(e){return vn(e,n,i)})}function vn(e,t,r){return!(t.noEmitForJsFiles&&dt(e)||e.isDeclarationFile||r(e))}function hn(t,r,n){var i=e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()),a=r.getCommonSourceDirectory(),o=0===r.getCanonicalFileName(i).indexOf(r.getCanonicalFileName(a));return i=o?i.substring(a.length):i,e.combinePaths(n,i)}function bn(t,r,n,i,a,o){t.writeFile(n,i,a,function(t){r.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))},o)}function xn(t,r){return e.getLineAndCharacterOfPosition(t,r).line}function Dn(t,r){return e.computeLineAndCharacterOfPosition(t,r).line}function kn(t){return e.find(t.members,function(t){return e.isConstructorDeclaration(t)&&D(t.body)})}function Sn(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&En(e.parameters[0]);return e.parameters[t?1:0]}}function Cn(e){var t=Sn(e);return t&&t.type}function Tn(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(En(r))return r}}function En(e){return Nn(e.name)}function Nn(e){return e&&71===e.kind&&An(e)}function An(e){return 99===e.originalKeywordKind}function Pn(t,r){var n,i,a,o;return Or(r)?(n=r,155===r.kind?a=r:156===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){if((155===e.kind||156===e.kind)&&Wn(e,32)===Wn(r,32)){var t=Rr(e.name),s=Rr(r.name);t===s&&(n?i||(i=e):n=e,155!==e.kind||a||(a=e),156!==e.kind||o||(o=e))}}),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}}function Fn(t){return t.type||(ft(t)?e.getJSDocType(t):void 0)}function wn(e){return e.type}function In(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(ft(t)?e.getJSDocReturnType(t):void 0)}function On(t){if(e.isJSDocSignature(t))return e.emptyArray;if(Kt(t)){e.Debug.assert(285===t.parent.kind);var r=e.flatMap(e.filter(t.parent.tags,e.isJSDocTemplateTag),function(e){return e.typeParameters}),n=r;return n.pos=n.length>0?e.first(n).pos:t.pos,n.end=n.length>0?e.last(n).end:t.end,n.hasTrailingComma=!1,n}return t.typeParameters||(ft(t)?Mn(t):e.emptyArray)}function Mn(t){var r=e.find(e.getJSDocTags(t),function(t){return e.isJSDocTemplateTag(t)&&!(285===t.parent.kind&&t.parent.tags.some(Kt))});return r&&r.typeParameters||e.emptyArray}function Ln(e){var t=Sn(e);return t&&Fn(t)}function Rn(e,t,r,n){Bn(e,t,r.pos,n)}function Bn(e,t,r,n){n&&n.length&&r!==n[0].pos&&Dn(e,r)!==Dn(e,n[0].pos)&&t.writeLine()}function Jn(e,t,r,n){r!==n&&Dn(e,r)!==Dn(e,n)&&t.writeLine()}function zn(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.write(" ");for(var c=!1,u=0,l=n;u=g+2)break}_.push(m),d=m}if(_.length){var g=Dn(r,e.lastOrUndefined(_).end),v=Dn(r,e.skipTrivia(t,a.pos));v>=g+2&&(Rn(r,n,a,u),zn(t,r,n,_,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(_).end})}}return l}function Kn(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,u=void 0,l=i,_=s.line;l0){var m=f%ln(),g=un((f-m)/ln());for(n.rawWrite(g);m;)n.rawWrite(" "),m--}else n.rawWrite("")}qn(t,a,n,o,l,d),l=d}else n.write(t.substring(i,a))}function qn(e,t,r,n,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(r.write(s),o!==t&&r.writeLine()):r.writeLiteral(n)}function Un(t,r,n){for(var i=0;r=58&&e<=70}function ti(t){if(206===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function ri(t,r){return e.isBinaryExpression(t)&&(r?58===t.operatorToken.kind:ei(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function ni(e){if(ri(e,!0)){var t=e.left.kind;return 183===t||182===t}return!1}function ii(e){return void 0!==ti(e)}function ai(t){return 206===t.kind&&oi(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)}function oi(e){return 71===e.kind||si(e)}function si(t){return e.isPropertyAccessExpression(t)&&oi(t.expression)}function ci(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText}function ui(e){return 145===e.parent.kind&&e.parent.right===e||184===e.parent.kind&&e.parent.name===e}function li(e){return 183===e.kind&&0===e.properties.length}function _i(e){return 182===e.kind&&0===e.elements.length}function di(e){return pi(e)?e.declarations[0].localSymbol:void 0}function pi(t){return t&&e.length(t.declarations)>0&&Wn(t.declarations[0],512)}function fi(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})}function mi(t){for(var r=[],n=t.length,i=0;i>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}function gi(e){for(var t,r,n,i,a="",o=mi(e),s=0,c=o.length;s>2,r=(3&o[s])<<4|o[s+1]>>4,n=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?n=i=64:s+2>=c&&(i=64),a+=Na.charAt(t)+Na.charAt(r)+Na.charAt(n)+Na.charAt(i),s+=3;return a}function yi(e){for(var t="",r=0,n=e.length;r>4&3,l=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===_&&0!==c?n.push(u,l):n.push(u,l,_),i+=4}return yi(n)}function bi(t,r){switch(t.newLine){case 0:return Aa;case 1:return Pa}return r?r():e.sys?e.sys.newLine:Aa}function xi(e,t,r){void 0===e&&(e=0);var n=Di(t);if(0===e)return n.length>0&&0===n[0][0]?n[0][1]:"0";if(r){for(var i="",a=e,o=n.length-1;o>=0&&0!==a;o--){var s=n[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,_=n;l<_.length;l++){var d=_[l],c=d[0],u=d[1];if(c===e)return u}return e.toString()}function Di(t){var r=[];for(var n in t){var i=t[n];"number"==typeof i&&r.push([i,n])}return e.stableSort(r,function(t,r){return e.compareValues(t[0],r[0])})}function ki(t){return xi(t,e.SyntaxKind,!1)}function Si(t){return xi(t,e.ModifierFlags,!0)}function Ci(t){return xi(t,e.TransformFlags,!0)}function Ti(t){return xi(t,e.EmitFlags,!0)}function Ei(t){return xi(t,e.SymbolFlags,!0)}function Ni(t){return xi(t,e.TypeFlags,!0)}function Ai(t){return xi(t,e.ObjectFlags,!0)}function Pi(e,t){return{pos:e,end:t}}function Fi(e,t){return Pi(e.pos,t)}function wi(e,t){return Pi(t,e.end)}function Ii(e){return e.decorators&&e.decorators.length>0?wi(e,e.decorators.end):e}function Oi(e){return e.modifiers&&e.modifiers.length>0?wi(e,e.modifiers.end):Ii(e)}function Mi(e){return e.pos===e.end}function Li(t,r){return Pi(t,t+e.tokenToString(r).length)}function Ri(e,t){return zi(e,e,t)}function Bi(e,t,r){return Ki(qi(e,r),qi(t,r),r)}function Ji(e,t,r){return Ki(e.end,t.end,r)}function zi(e,t,r){return Ki(qi(e,r),t.end,r)}function ji(e,t,r){return Ki(e.end,qi(t,r),r)}function Ki(e,t,r){return e===t||xn(r,e)===xn(r,t)}function qi(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}function Ui(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 237:case 238:return r===r.parent.name}return!1}function Vi(t){return e.filter(t.declarations,Wi)}function Wi(e){return void 0!==e.initializer}function Hi(e){return e.watch&&e.hasOwnProperty("watch")}function Gi(e){return 33554432&e.flags?e.checkFlags:0}function Xi(t){if(t.valueDeclaration){var r=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?r:r&-29}if(6&Gi(t)){var n=t.checkFlags,i=256&n?8:64&n?4:16,a=512&n?32:0;return i|a}return 4194304&t.flags?36:0}function Qi(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function Yi(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function Zi(e){return 1===ea(e)}function $i(e){return 0!==ea(e)}function ea(e){function t(){return r.parent&&215===r.parent.kind?1:2}var r=e.parent;if(!r)return 0;switch(r.kind){case 198:case 197:var n=r.operator;return 43===n||44===n?t():0;case 199:var i=r,a=i.left,o=i.operatorToken;return a===e&&ei(o.kind)?t():0;case 184:return r.name!==e?0:ea(r);default:return 0}}function ta(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if("object"==typeof e[r]){if(!ta(e[r],t[r]))return!1}else if("function"!=typeof e[r]&&e[r]!==t[r])return!1;return!0}function ra(e,t){e.forEach(t),e.clear()}function na(e,t,r){var n=r.createNewValue,i=r.onDeleteValue,a=r.onExistingValue;e.forEach(function(r,n){var o=t.get(n);void 0===o?(e["delete"](n),i(r,n)):a&&a(r,o,n)}),t.forEach(function(t,r){e.has(r)||e.set(r,n(r,t))})}function ia(t,r){for(;;){var n=r(t);if(void 0!==n)return n;var i=e.getDirectoryPath(t);if(i===t)return;t=i}}function aa(e){return!!(16&ca(e))&&!!e.symbol&&oa(e.symbol)}function oa(e){if(32&e.flags){var t=sa(e);return!!t&&Wn(t,128)}return!1}function sa(t){return e.find(t.declarations,e.isClassLike)}function ca(e){return 65536&e.flags?e.objectFlags:0}function ua(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length; }function la(e,t){return!!ia(e,function(e){return!!t(e)||void 0})}function _a(t){return t&&t.declarations&&t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])}function da(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:P(r)}function pa(t){var r;return e.forEachChild(t,function(e){D(e)&&(r=e)},function(e){for(var t=e.length-1;t>=0;t--)if(D(e[t])){r=e[t];break}}),r}function fa(e,t,r){return void 0===r&&(r=!0),t=String(t),!e.has(t)&&(e.set(t,r),!0)}function ma(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)}e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.getDeclarationOfKind=t;var ga=r();e.usingSingleLineStringWriter=n,e.getFullWidth=i,e.getResolvedModule=a,e.setResolvedModule=o,e.setResolvedTypeReferenceDirective=s,e.moduleResolutionIsEqualTo=c,e.packageIdToString=l,e.typeDirectiveIsEqualTo=_,e.hasChangesInResolutions=d,e.containsParseError=p,e.getSourceFileOfNode=m,e.isStatementWithLocals=g,e.getStartPositionOfLine=y,e.nodePosToString=v,e.getEndLinePosition=h,e.isFileLevelUniqueName=b,e.nodeIsMissing=x,e.nodeIsPresent=D,e.prependStatements=k,e.isRecognizedTripleSlashComment=S,e.isPinnedComment=C,e.getTokenPosOfNode=T,e.getNonDecoratorTokenPosOfNode=E,e.getSourceTextOfNodeFromSourceFile=N,e.getTextOfNodeFromSourceText=A,e.getTextOfNode=P,e.indexOfNode=w,e.getEmitFlags=I,e.getLiteralText=O,e.getTextOfConstantValue=M,e.escapeLeadingUnderscores=L,e.escapeIdentifier=R,e.makeIdentifierFromModuleName=B,e.isBlockOrCatchScoped=J,e.isCatchClauseVariableDeclarationOrBindingElement=z,e.isAmbientModule=j,e.isModuleWithStringLiteralName=K,e.isNonGlobalAmbientModule=q,e.isShorthandAmbientModuleSymbol=U,e.isBlockScopedContainerTopLevel=W,e.isGlobalScopeAugmentation=H,e.isExternalModuleAugmentation=G,e.isModuleAugmentationExternal=X,e.isEffectiveExternalModule=Q,e.isBlockScope=Y,e.isDeclarationWithTypeParameters=Z,e.isAnyImportSyntax=$,e.isLateVisibilityPaintedStatement=ee,e.isAnyImportOrReExport=te,e.getEnclosingBlockScopeContainer=re,e.declarationNameToString=ne,e.getNameFromIndexInfo=ie,e.getTextOfPropertyName=ae,e.entityNameToString=oe,e.createDiagnosticForNode=se,e.createDiagnosticForNodeArray=ce,e.createDiagnosticForNodeInSourceFile=ue,e.createDiagnosticForNodeSpan=le,e.createDiagnosticForNodeFromMessageChain=_e,e.getSpanOfTokenAtPosition=de,e.getErrorSpanForNode=fe,e.isExternalOrCommonJsModule=me,e.isJsonSourceFile=ge,e.isConstEnumDeclaration=ye,e.isConst=ve,e.isLet=he,e.isSuperCall=be,e.isImportCall=xe,e.isLiteralImportTypeNode=De,e.isPrologueDirective=ke,e.getLeadingCommentRangesOfNode=Se,e.getJSDocCommentRanges=Ce,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var ya=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var va=/^(\/\/\/\s*/;e.isPartOfTypeNode=Te,e.isChildOfNodeWithKind=Ee,e.forEachReturnStatement=Ne,e.forEachYieldExpression=Ae,e.getRestParameterElementType=Pe,e.getMembersOfDeclaration=Fe,e.isVariableLike=we,e.isVariableLikeOrAccessor=Ie,e.isVariableDeclarationInVariableStatement=Oe,e.isValidESSymbolDeclaration=Me,e.introducesArgumentsExoticObject=Le,e.unwrapInnermostStatementOfLabel=Re,e.isFunctionBlock=Be,e.isObjectLiteralMethod=Je,e.isObjectLiteralOrClassExpressionMethod=ze,e.isIdentifierTypePredicate=je,e.isThisTypePredicate=Ke,e.getPropertyAssignment=qe,e.getTsConfigObjectLiteralExpression=Ue,e.getTsConfigPropArrayElementValue=Ve,e.getContainingFunction=We,e.getContainingClass=He,e.getThisContainer=Ge,e.getNewTargetContainer=Xe,e.getSuperContainer=Qe,e.getImmediatelyInvokedFunctionExpression=Ye,e.isSuperProperty=Ze,e.isThisProperty=$e,e.getEntityNameFromTypeNode=et,e.getInvokedExpression=tt,e.nodeCanBeDecorated=rt,e.nodeIsDecorated=nt,e.nodeOrChildIsDecorated=it,e.childIsDecorated=at,e.isJSXTagName=ot,e.isExpressionNode=st,e.isInExpressionContext=ct,e.isExternalModuleImportEqualsDeclaration=ut,e.getExternalModuleImportEqualsDeclarationExpression=lt,e.isInternalModuleImportEqualsDeclaration=_t,e.isSourceFileJavaScript=dt,e.isSourceFileNotJavaScript=pt,e.isInJavaScriptFile=ft,e.isInJsonFile=mt,e.isInJSDoc=gt,e.isJSDocIndexSignature=yt,e.isRequireCall=vt,e.isSingleOrDoubleQuote=ht,e.isStringDoubleQuoted=bt,e.getJSInitializerSymbol=xt,e.getDeclaredJavascriptInitializer=Dt,e.getAssignedJavascriptInitializer=kt,e.getJavascriptInitializer=St,e.getOuterNameOfJsInitializer=Tt,e.getRightMostAssignedExpression=Nt,e.isExportsIdentifier=At,e.isModuleExportsPropertyAccessExpression=Pt,e.getSpecialPropertyAssignmentKind=Ft,e.getInitializerOfBinaryExpression=wt,e.isPrototypePropertyAssignment=It,e.isSpecialPropertyDeclaration=Ot,e.importFromModuleSpecifier=Mt,e.tryGetImportFromModuleSpecifier=Lt,e.getExternalModuleName=Rt,e.getNamespaceDeclarationNode=Bt,e.isDefaultImport=Jt,e.hasQuestionToken=zt,e.isJSDocConstructSignature=jt,e.isJSDocTypeAlias=Kt,e.isTypeAlias=qt,e.getJSDocCommentsAndTags=Xt,e.getParameterSymbolFromJSDoc=Qt,e.getHostSignatureFromJSDoc=Yt,e.getHostSignatureFromJSDocHost=Zt,e.getJSDocHost=$t,e.getTypeParameterFromJsDoc=er,e.hasRestParameter=tr,e.isRestParameter=rr;var ha;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(ha=e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=nr,e.isAssignmentTarget=ir,e.isNodeWithPossibleHoistedDeclaration=ar,e.isValueSignatureDeclaration=or,e.walkUpParenthesizedTypes=cr,e.walkUpParenthesizedExpressions=ur,e.skipParentheses=lr,e.isDeleteTarget=_r,e.isNodeDescendantOf=dr,e.isDeclarationName=pr,e.isAnyDeclarationName=fr,e.isLiteralComputedPropertyDeclarationName=mr,e.isIdentifierName=gr,e.isAliasSymbolDeclaration=yr,e.exportAssignmentIsAlias=vr,e.getClassExtendsHeritageClauseElement=hr,e.getClassImplementsHeritageClauseElements=br,e.getAllSuperTypeNodes=xr,e.getInterfaceBaseTypeNodes=Dr,e.getHeritageClause=kr,e.tryResolveScriptReference=Sr,e.getAncestor=Cr,e.isKeyword=Tr,e.isContextualKeyword=Er,e.isNonContextualKeyword=Nr,e.isStringANonContextualKeyword=Ar,e.isTrivia=Pr;var ba;!function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(ba=e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=Fr,e.isAsyncFunction=wr,e.isStringOrNumericLiteral=Ir,e.hasDynamicName=Or,e.isDynamicName=Mr,e.isWellKnownSymbolSyntactically=Lr,e.getPropertyNameForPropertyNameNode=Rr,e.isPropertyNameLiteral=Br,e.getTextOfIdentifierOrLiteral=Jr,e.getEscapedTextOfIdentifierOrLiteral=zr,e.getPropertyNameForKnownSymbolName=jr,e.isKnownSymbol=Kr,e.isESSymbolIdentifier=qr,e.isPushOrUnshiftIdentifier=Ur,e.isParameterDeclaration=Vr,e.getRootDeclaration=Wr,e.nodeStartsNewLexicalEnvironment=Hr,e.nodeIsSynthesized=Gr,e.getOriginalSourceFile=Xr;var xa;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(xa=e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=Qr,e.getOperatorAssociativity=Yr,e.getExpressionPrecedence=Zr,e.getOperator=$r,e.getOperatorPrecedence=en,e.getBinaryOperatorPrecedence=tn,e.createDiagnosticCollection=rn;var Da=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ka=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Sa=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ca=e.createMapFromTemplate({"\t":"\\t","\x0B":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","Â…":"\\u0085"});e.escapeString=nn,e.isIntrinsicJsxName=on;var Ta=/[^\u0000-\u007F]/g;e.escapeNonAsciiString=cn;var Ea=[""," "];e.getIndentString=un,e.getIndentSize=ln,e.createTextWriter=_n,e.getResolvedExternalModuleName=dn,e.getExternalModuleNameFromDeclaration=pn,e.getExternalModuleNameFromPath=fn,e.getOwnEmitOutputFilePath=mn,e.getDeclarationEmitOutputFilePath=gn,e.getSourceFilesToEmit=yn,e.sourceFileMayBeEmitted=vn,e.getSourceFilePathInNewDir=hn,e.writeFile=bn,e.getLineOfLocalPosition=xn,e.getLineOfLocalPositionFromLineMap=Dn,e.getFirstConstructorWithBody=kn,e.getSetAccessorTypeAnnotationNode=Cn,e.getThisParameter=Tn,e.parameterIsThisKeyword=En,e.isThisIdentifier=Nn,e.identifierIsThisKeyword=An,e.getAllAccessorDeclarations=Pn,e.getEffectiveTypeAnnotationNode=Fn,e.getTypeAnnotationNode=wn,e.getEffectiveReturnTypeNode=In,e.getEffectiveTypeParameterDeclarations=On,e.getJSDocTypeParameterDeclarations=Mn,e.getEffectiveSetAccessorTypeAnnotationNode=Ln,e.emitNewLineBeforeLeadingComments=Rn,e.emitNewLineBeforeLeadingCommentsOfPosition=Bn,e.emitNewLineBeforeLeadingCommentOfPosition=Jn,e.emitComments=zn,e.emitDetachedComments=jn,e.writeCommentRange=Kn,e.hasModifiers=Vn,e.hasModifier=Wn,e.hasStaticModifier=Hn,e.hasReadonlyModifier=Gn,e.getSelectedModifierFlags=Xn,e.getModifierFlags=Qn,e.getModifierFlagsNoCache=Yn,e.modifierToFlag=Zn,e.isLogicalOperator=$n,e.isAssignmentOperator=ei,e.tryGetClassExtendingExpressionWithTypeArguments=ti,e.isAssignmentExpression=ri,e.isDestructuringAssignment=ni,e.isExpressionWithTypeArgumentsInClassExtendsClause=ii,e.isExpressionWithTypeArgumentsInClassImplementsClause=ai,e.isEntityNameExpression=oi,e.isPropertyAccessEntityNameExpression=si,e.isPrototypeAccess=ci,e.isRightSideOfQualifiedNameOrPropertyAccess=ui,e.isEmptyObjectLiteral=li,e.isEmptyArrayLiteral=_i,e.getLocalSymbolForExportDefault=di,e.tryExtractTypeScriptExtension=fi;var Na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=gi,e.base64encode=vi,e.base64decode=hi;var Aa="\r\n",Pa="\n";e.getNewLineCharacter=bi,e.formatSyntaxKind=ki,e.formatModifierFlags=Si,e.formatTransformFlags=Ci,e.formatEmitFlags=Ti,e.formatSymbolFlags=Ei,e.formatTypeFlags=Ni,e.formatObjectFlags=Ai,e.createRange=Pi,e.moveRangeEnd=Fi,e.moveRangePos=wi,e.moveRangePastDecorators=Ii,e.moveRangePastModifiers=Oi,e.isCollapsedRange=Mi,e.createTokenRange=Li,e.rangeIsOnSingleLine=Ri,e.rangeStartPositionsAreOnSameLine=Bi,e.rangeEndPositionsAreOnSameLine=Ji,e.rangeStartIsOnSameLineAsRangeEnd=zi,e.rangeEndIsOnSameLineAsRangeStart=ji,e.positionsAreOnSameLine=Ki,e.getStartPositionOfRange=qi,e.isDeclarationNameOfEnumOrNamespace=Ui,e.getInitializedVariables=Vi,e.isWatchSet=Hi,e.getCheckFlags=Gi,e.getDeclarationModifierFlagsFromSymbol=Xi,e.skipAlias=Qi,e.getCombinedLocalAndExportSymbolFlags=Yi,e.isWriteOnlyAccess=Zi,e.isWriteAccess=$i;var Fa;!function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Fa||(Fa={})),e.compareDataObjects=ta,e.clearMap=ra,e.mutateMap=na,e.forEachAncestorDirectory=ia,e.isAbstractConstructorType=aa,e.isAbstractConstructorSymbol=oa,e.getClassLikeDeclarationOfSymbol=sa,e.getObjectFlags=ca,e.typeHasCallOrConstructSignatures=ua,e.forSomeAncestorDirectory=la,e.isUMDExportSymbol=_a,e.showModuleSpecifier=da,e.getLastChild=pa,e.addToSeen=fa,e.isObjectTypeDeclaration=ma}(ts||(ts={})),function(e){function t(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"}}function r(e){return e.start+e.length}function n(e){return 0===e.length}function i(e,t){return t>=e.start&&t=e.start&&r(t)<=r(e)}function o(e,t){return void 0!==s(e,t)}function s(e,t){var r=d(e,t);return r&&0===r.length?void 0:r}function c(e,t){return l(e.start,e.length,t.start,t.length)}function u(e,t,r){return l(e.start,e.length,t,r)}function l(e,t,r,n){var i=e+t,a=r+n;return r<=i&&a>=e}function _(e,t){return t<=r(e)&&t>=e.start}function d(e,t){var n=Math.max(e.start,t.start),i=Math.min(r(e),r(t));return n<=i?m(n,i):void 0}function p(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function f(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t),{pos:t,end:r}}function m(e,t){return p(e,t-e)}function g(e){return p(e.span.start,e.newLength)}function y(e){return n(e.span)&&0===e.newLength}function v(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function h(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var n=t[0],i=n.span.start,a=r(n.span),o=i+n.newLength,s=1;s=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function w(e){return F(e.escapedText)}function I(e){return F(e.escapedName)}function O(e){return e}function M(t){var r=t.parent.parent;if(r){if(e.isDeclaration(r))return L(r);switch(r.kind){case 213:if(r.declarationList&&r.declarationList.declarations[0])return L(r.declarationList.declarations[0]);return;case 215:var n=r.expression;switch(n.kind){case 184:return n.name;case 185:var i=n.argumentExpression;if(e.isIdentifier(i))return i}return;case 1:return;case 190:return L(r.expression);case 227:if(e.isDeclaration(r.statement)||e.isExpression(r.statement))return L(r.statement);return;default:e.Debug.assertNever(r,"Found typedef tag attached to node which it should not be!")}}}function L(t){var r=J(t);return e.isIdentifier(r)?r:void 0}function R(e){return e.name||M(e)}function B(e){return!!e.name}function J(t){if(t){switch(t.kind){case 204:case 191:if(!t.name)return z(t);break;case 71:return t;case 297:case 292:var r=t.name;if(145===r.kind)return r.right;break;case 199:var n=t;switch(e.getSpecialPropertyAssignmentKind(n)){case 1:case 4:case 5:case 3:return n.left.name;default:return}case 291:return t.name;case 296:return R(t);case 248:var i=t.expression;return e.isIdentifier(i)?i:void 0}return t.name}}function z(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isPropertyAccessExpression(t.parent.left))return t.parent.left.name}}}function j(t){if(t.name){if(e.isIdentifier(t.name)){var r=t.name.escapedText;return Q(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===r})}var n=t.parent.parameters.indexOf(t);e.Debug.assert(n>-1,"Parameters should always be in their parents' parameter list");var i=Q(t.parent).filter(e.isJSDocParameterTag);if(n=145}function i(e){return e.kind>=0&&e.kind<=144}function a(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}function o(e){return 8<=e&&e<=13}function s(e){return o(e.kind)}function c(e){return 13<=e&&e<=16}function u(e){var t=e.kind;return 15===t||16===t}function l(e){return 9===e.kind||c(e.kind)}function _(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0}function d(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 132:case 115:return!0}return!1}function p(t){return!!(92&e.modifierToFlag(t))}function f(e){return p(e)||115===e}function m(e){return d(e.kind)}function g(e){var t=e.kind;return 145===t||71===t}function y(e){var t=e.kind;return 71===t||9===t||8===t||146===t}function v(e){var t=e.kind;return 71===t||179===t||180===t}function h(e){return e&&D(e.kind)}function b(e){return e&&x(e.kind)}function x(e){switch(e){case 233:case 153:case 154:case 155:case 156:case 191:case 192:return!0;default:return!1}}function D(e){switch(e){case 152:case 157:case 287:case 158:case 159:case 162:case 283:case 163:return!0;default:return x(e)}}function k(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&h(t.parent)}function S(e){var t=e.kind;return 154===t||151===t||153===t||155===t||156===t||159===t||211===t}function C(e){return e&&(234===e.kind||204===e.kind)}function T(e){return e&&(155===e.kind||156===e.kind)}function E(e){switch(e.kind){case 153:case 155:case 156:return!0;default:return!1}}function N(e){var t=e.kind;return 158===t||157===t||150===t||152===t||159===t}function A(e){return N(e)||S(e)}function P(e){var t=e.kind;return 269===t||270===t||271===t||153===t||155===t||156===t}function F(e){return e>=160&&e<=178||119===e||134===e||135===e||122===e||137===e||138===e||99===e||105===e||140===e||95===e||131===e||206===e||278===e||279===e||280===e||281===e||282===e||283===e||284===e}function w(e){return F(e.kind)}function I(e){switch(e.kind){case 162:case 163:return!0}return!1}function O(e){if(e){var t=e.kind;return 180===t||179===t}return!1}function M(e){var t=e.kind;return 182===t||183===t}function L(e){var t=e.kind;return 181===t||205===t}function R(e){switch(e.kind){case 231:case 148:case 181:return!0}return!1}function B(e){return J(e)||z(e)}function J(e){switch(e.kind){case 179:case 183:return!0}return!1}function z(e){switch(e.kind){case 180:case 182:return!0}return!1}function j(e){var t=e.kind;return 184===t||145===t||178===t}function K(e){var t=e.kind;return 184===t||145===t}function q(e){switch(e.kind){case 256:case 255:case 186:case 187:case 188:case 149:return!0;default:return!1}}function U(e){return 186===e.kind||187===e.kind}function V(e){var t=e.kind;return 201===t||13===t}function W(t){return H(e.skipPartiallyEmittedExpressions(t).kind)}function H(e){switch(e){case 184:case 185:case 187:case 186:case 254:case 255:case 258:case 188:case 182:case 190:case 183:case 204:case 191:case 71:case 12:case 8:case 9:case 13:case 201:case 86:case 95:case 99:case 101:case 97:case 208:case 209:case 91:return!0;default:return!1}}function G(t){return X(e.skipPartiallyEmittedExpressions(t).kind)}function X(e){switch(e){case 197:case 198:case 193:case 194:case 195:case 196:case 189:return!0;default:return H(e)}}function Q(e){switch(e.kind){case 198:return!0;case 197:return 43===e.operator||44===e.operator;default:return!1}}function Y(t){return Z(e.skipPartiallyEmittedExpressions(t).kind)}function Z(e){switch(e){case 200:case 202:case 192:case 199:case 203:case 207:case 205:case 301:case 300:return!0;default:return X(e)}}function $(e){var t=e.kind;return 189===t||207===t}function ee(e){return 300===e.kind}function te(e){return 299===e.kind}function re(e){return te(e)||ee(e)}function ne(e,t){switch(e.kind){case 219:case 220:case 221:case 217:case 218:return!0;case 227:return t&&ne(e.statement,t)}return!1}function ie(e){return 220===e.kind||221===e.kind}function ae(t){ return e.isBlock(t)||Y(t)}function oe(t){return e.isBlock(t)}function se(t){return e.isVariableDeclarationList(t)||Y(t)}function ce(e){var t=e.kind;return 239===t||238===t||71===t}function ue(e){var t=e.kind;return 239===t||238===t}function le(e){var t=e.kind;return 71===t||238===t}function _e(e){var t=e.kind;return 246===t||245===t}function de(e){return 238===e.kind||237===e.kind}function pe(e){return 192===e||181===e||234===e||204===e||154===e||237===e||272===e||251===e||233===e||191===e||155===e||244===e||242===e||247===e||235===e||261===e||153===e||152===e||238===e||241===e||245===e||148===e||269===e||151===e||150===e||156===e||270===e||236===e||147===e||231===e||296===e||291===e||297===e}function fe(e){return 233===e||252===e||234===e||235===e||236===e||237===e||238===e||243===e||242===e||249===e||248===e||241===e}function me(e){return 223===e||222===e||230===e||217===e||215===e||214===e||220===e||221===e||219===e||216===e||227===e||224===e||226===e||228===e||229===e||213===e||218===e||225===e||299===e||303===e||302===e}function ge(t){return 147===t.kind?295!==t.parent.kind||e.isInJavaScriptFile(t):pe(t.kind)}function ye(e){return fe(e.kind)}function ve(e){return me(e.kind)}function he(e){var t=e.kind;return me(t)||fe(t)||be(e)}function be(t){return 212===t.kind&&((void 0===t.parent||229!==t.parent.kind&&268!==t.parent.kind)&&!e.isFunctionBlock(t))}function xe(e){var t=e.kind;return 253===t||145===t||71===t}function De(e){var t=e.kind;return 99===t||71===t||184===t}function ke(e){var t=e.kind;return 254===t||264===t||255===t||10===t||258===t}function Se(e){var t=e.kind;return 261===t||263===t}function Ce(e){var t=e.kind;return 9===t||264===t}function Te(e){var t=e.kind;return 256===t||255===t}function Ee(e){var t=e.kind;return 265===t||266===t}function Ne(e){return e.kind>=277&&e.kind<=297}function Ae(t){return 285===t.kind||Pe(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)}function Pe(e){return e.kind>=288&&e.kind<=297}function Fe(e){return 156===e.kind}function we(e){return 155===e.kind}function Ie(e){return!!e.jsDoc&&e.jsDoc.length>0}function Oe(e){return!!e.type}function Me(e){switch(e.kind){case 148:case 150:case 151:case 152:case 153:case 154:case 155:case 156:case 157:case 158:case 159:case 160:case 162:case 163:case 172:case 174:case 176:case 189:case 191:case 192:case 207:case 231:case 233:case 236:case 277:case 280:case 281:case 282:case 283:case 284:return!0}return!1}function Le(e){return!!e.initializer}function Re(t){return Le(t)&&!e.isForStatement(t)&&!e.isForInStatement(t)&&!e.isForOfStatement(t)&&!e.isJsxAttribute(t)}function Be(e){switch(e.kind){case 261:case 263:case 269:case 270:case 153:case 155:case 156:return!0;default:return!1}}function Je(e){return 161===e.kind||206===e.kind}function ze(t){for(var r=qe,n=0,i=t;nt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}function g(e){if(E.has(e))return E.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return E.set(e,t),t}function y(t,r,n){var i=2===r.kind&&N.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,u=o.args;c107)}function ee(t,r,n){return void 0===n&&(n=!0),K()===t?(n&&q(),!0):(r?L(r):L(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function te(e){return K()===e&&(q(),!0)}function re(e){if(K()===e)return ie()}function ne(t,r,n){return re(t)||_e(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function ie(){var e=se(K());return q(),le(e)}function ae(){return 25===K()||(18===K()||1===K()||La.hasPrecedingLineBreak())}function oe(){return ae()?(25===K()&&q(),!0):ee(25)}function se(t,r){Fa++;var n=r>=0?r:La.getStartPos();return e.isNodeKind(t)||0===t?new Da(t,n,n):71===t?new Sa(t,n,n):new ka(t,n,n)}function ce(e){var t=se(e);return 2&La.getTokenFlags()&&_(t),t}function ue(e,t,r){var n=e.length,i=n>=1&&n<=4?e.slice():e;return i.pos=t,i.end=void 0===r?La.getStartPos():r,i}function le(e,t){return e.end=void 0===t?La.getStartPos():t,Ma&&(e.flags|=Ma),Ba&&(Ba=!1,e.flags|=32768),e}function _e(t,r,n,i){r?R(La.getStartPos(),0,n,i):n&&L(n,i);var a=se(t);return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),le(a)}function de(e){var t=wa.get(e);return void 0===t&&wa.set(e,t=e),t}function pe(t,r){if(Ia++,t){var n=se(71);return 71!==K()&&(n.originalKeywordKind=K()),n.escapedText=e.escapeLeadingUnderscores(de(La.getTokenValue())),q(),le(n)}var i=1===K();return _e(71,i,r||e.Diagnostics.Identifier_expected)}function fe(e){return pe($(),e)}function me(t){return pe(e.tokenIsIdentifierOrKeyword(K()),t)}function ge(){return e.tokenIsIdentifierOrKeyword(K())||9===K()||8===K()}function ye(e){if(9===K()||8===K()){var t=at();return t.text=de(t.text),t}return e&&21===K()?he():me()}function ve(){return ye(!0)}function he(){var e=se(146);return ee(21),e.expression=S(hr),ee(22),le(e)}function be(e){return K()===e&&Z(De)}function xe(){return q(),!La.hasPrecedingLineBreak()&&Se()}function De(){switch(K()){case 76:return 83===q();case 84:return q(),79===K()?Y(Ce):39!==K()&&118!==K()&&17!==K()&&Se();case 79:return Ce();case 115:case 125:case 136:return q(),Se();default:return xe()}}function ke(){return e.isModifierKind(K())&&Z(De)}function Se(){return 21===K()||17===K()||39===K()||24===K()||ge()}function Ce(){return q(),75===K()||89===K()||109===K()||117===K()&&Y($n)||120===K()&&Y(ei)}function Te(t,r){var n=Je(t);if(n)return!0;switch(t){case 0:case 1:case 3:return!(25===K()&&r)&&ii();case 2:return 73===K()||79===K();case 4:return Y(It);case 5:return Y(Pi)||25===K()&&!r;case 6:return 21===K()||ge();case 12:return 21===K()||39===K()||24===K()||ge();case 17:return ge();case 9:return 21===K()||24===K()||ge();case 7:return 17===K()?Y(Ee):r?$()&&!Fe():gr()&&!Fe();case 8:return yi();case 10:return 26===K()||24===K()||yi();case 18:return $();case 15:if(26===K())return!0;case 11:return 24===K()||yr();case 16:return Dt();case 19:case 20:return 26===K()||Zt();case 21:return Ui();case 22:return e.tokenIsIdentifierOrKeyword(K());case 13:return e.tokenIsIdentifierOrKeyword(K())||17===K();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Ee(){if(e.Debug.assert(17===K()),18===q()){var t=q();return 26===t||17===t||85===t||108===t}return!0}function Ne(){return q(),$()}function Ae(){return q(),e.tokenIsIdentifierOrKeyword(K())}function Pe(){return q(),e.tokenIsIdentifierOrKeywordOrGreaterThan(K())}function Fe(){return(108===K()||85===K())&&Y(we)}function we(){return q(),yr()}function Ie(){return q(),Zt()}function Oe(e){if(1===K())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===K();case 3:return 18===K()||73===K()||79===K();case 7:return 17===K()||85===K()||108===K();case 8:return Me();case 18:return 29===K()||19===K()||17===K()||85===K()||108===K();case 11:return 20===K()||25===K();case 15:case 20:case 10:return 22===K();case 16:case 17:return 20===K()||22===K();case 19:return 26!==K();case 21:return 17===K()||18===K();case 13:return 29===K()||41===K();case 14:return 27===K()&&Y(ra)}}function Me(){return!!ae()||(!!Lr(K())||36===K())}function Le(){for(var e=0;e<23;e++)if(Oa&1<=0&&(c.hasTrailingComma=!0),c}function Ze(){return ue([],j())}function $e(e,t,r,n){if(ee(r)){var i=Ye(e,t);return ee(n),i}return Ze()}function et(e,t){for(var r=e?me(t):fe(t),n=La.getStartPos();te(23);){if(27===K()){r.jsdocDotPos=n;break}n=La.getStartPos(),r=tt(r,rt(e))}return r}function tt(e,t){var r=se(145,e.pos);return r.left=e,r.right=t,le(r)}function rt(t){if(La.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(K())){var r=Y(Zn);if(r)return _e(71,!0,e.Diagnostics.Identifier_expected)}return t?me():fe()}function nt(){var t=se(201);t.head=ot(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var r=[],n=j();do r.push(it());while(15===e.lastOrUndefined(r).literal.kind);return t.templateSpans=ue(r,n),le(t)}function it(){var t=se(210);t.expression=S(hr);var r;return 18===K()?(W(),r=st()):r=ne(16,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=r,le(t)}function at(){return ct(K())}function ot(){var t=ct(K());return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function st(){var t=ct(K());return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function ct(e){var t=se(e),r=La.getTokenValue();return t.text=r,La.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),La.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&La.getTokenFlags()),q(),le(t),t}function ut(){var t=se(161);return t.typeName=et(!0,e.Diagnostics.Type_expected),La.hasPrecedingLineBreak()||27!==K()||(t.typeArguments=$e(19,pr,27,29)),le(t)}function lt(e){q();var t=se(160,e.pos);return t.parameterName=e,t.type=pr(),le(t)}function _t(){var e=se(173);return q(),le(e)}function dt(e){var t=se(278);return e?tr(282,t):(q(),le(t))}function pt(){var e=se(281);return q(),e.type=Yt(),le(e)}function ft(){var e=La.getStartPos();if(q(),26===K()||18===K()||20===K()||29===K()||58===K()||49===K()){var t=se(279,e);return le(t)}var t=se(280,e);return t.type=pr(),le(t)}function mt(){if(Y(ta)){var e=ce(283);return q(),St(56,36,e),le(e)}var t=se(161);return t.typeName=me(),le(t)}function gt(){var e=se(148);return 99!==K()&&94!==K()||(e.name=me(),ee(56)),e.type=yt(),le(e)}function yt(){var e=re(24),t=pr();if(e){var r=se(284,e.pos);r.type=t,t=le(r)}return 58===K()?tr(282,t):t}function vt(){var e=se(164);return ee(103),e.exprName=et(!0),le(e)}function ht(){var e=se(147);return e.name=fe(),te(85)&&(Zt()||!yr()?e.constraint=pr():e.expression=Hr()),te(58)&&(e["default"]=pr()),le(e)}function bt(){if(27===K())return $e(18,ht,27,29)}function xt(){if(te(56))return pr()}function Dt(){return 24===K()||yi()||e.isModifierKind(K())||57===K()||Zt(!0)}function kt(){var t=ce(148);return 99===K()?(t.name=pe(!0),t.type=xt(),le(t)):(t.decorators=Fi(),t.modifiers=wi(),t.dotDotDotToken=re(24),t.name=vi(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(K())&&q(),t.questionToken=re(55),t.type=xt(),t.initializer=br(),le(t))}function St(e,t,r){return 32&t||(r.typeParameters=bt()),r.parameters=Tt(t),!Ct(e,!!(4&t))||(r.type=_r(),void 0!==r.type)}function Ct(t,r){return 36===t?(ee(t),!0):!!te(56)||!(!r||36!==K())&&(L(e.Diagnostics._0_expected,e.tokenToString(56)),q(),!0)}function Tt(e){if(ee(19)){var t=w(),r=M();h(!!(1&e)),x(!!(2&e)); var n=Ye(16,32&e?gt:kt);if(h(t),x(r),!ee(20)&&8&e)return;return n}return 8&e?void 0:Ze()}function Et(){te(26)||oe()}function Nt(e){var t=ce(e);return 158===e&&ee(94),St(56,4,t),Et(),le(t)}function At(){return 21===K()&&Y(Pt)}function Pt(){if(q(),24===K()||22===K())return!0;if(e.isModifierKind(K())){if(q(),$())return!0}else{if(!$())return!1;q()}return 56===K()||26===K()||55===K()&&(q(),56===K()||26===K()||22===K())}function Ft(e){return e.kind=159,e.parameters=$e(16,kt,21,22),e.type=mr(),Et(),le(e)}function wt(e){return e.name=ve(),e.questionToken=re(55),19===K()||27===K()?(e.kind=152,St(56,4,e)):(e.kind=150,e.type=mr(),58===K()&&(e.initializer=br())),Et(),le(e)}function It(){if(19===K()||27===K())return!0;for(var t;e.isModifierKind(K());)t=!0,q();return 21===K()||(ge()&&(t=!0,q()),!!t&&(19===K()||27===K()||55===K()||56===K()||26===K()||ae()))}function Ot(){if(19===K()||27===K())return Nt(157);if(94===K()&&Y(Mt))return Nt(158);var e=ce(0);return e.modifiers=wi(),At()?Ft(e):wt(e)}function Mt(){return q(),19===K()||27===K()}function Lt(){return 23===q()}function Rt(){switch(q()){case 19:case 27:case 23:return!0}return!1}function Bt(){var e=se(165);return e.members=Jt(),le(e)}function Jt(){var e;return ee(17)?(e=Re(4,Ot),ee(18)):e=Ze(),e}function zt(){return q(),37===K()||38===K()?132===q():(132===K()&&q(),21===K()&&Ne()&&92===q())}function jt(){var e=se(147);return e.name=fe(),ee(92),e.constraint=pr(),le(e)}function Kt(){var e=se(176);return ee(17),132!==K()&&37!==K()&&38!==K()||(e.readonlyToken=ie(),132!==e.readonlyToken.kind&&ne(132)),ee(21),e.typeParameter=jt(),ee(22),55!==K()&&37!==K()&&38!==K()||(e.questionToken=ie(),55!==e.questionToken.kind&&ne(55)),e.type=mr(),oe(),ee(18),le(e)}function qt(){var e=se(167);return e.elementTypes=$e(20,pr,21,22),le(e)}function Ut(){var e=se(172);if(ee(19),e.type=pr(),e.type)return ee(20),le(e)}function Vt(e){var t=ce(e);if(163===e&&ee(94),St(36,4|(1===Ta.languageVariant?8:0),t)&&t.parameters)return le(t)}function Wt(){var e=ie();return 23===K()?void 0:e}function Ht(e){var t,r=se(177);e&&(t=se(197),t.operator=38,q());var n=101===K()||86===K()?ie():ct(K());return e&&(t.operand=n,le(t),n=t),r.literal=n,le(r)}function Gt(){return q(),91===K()}function Xt(){Ta.flags|=524288;var t=se(178);return te(103)&&(t.isTypeOf=!0),ee(91),ee(19),t.argument=pr(),ee(20),te(23)&&(t.qualifier=et(!0,e.Diagnostics.Type_expected)),t.typeArguments=qi(),le(t)}function Qt(){return 8===q()}function Yt(){switch(K()){case 119:case 137:case 134:case 138:case 122:case 140:case 131:case 135:return Z(Wt)||ut();case 39:return dt(!1);case 61:return dt(!0);case 55:return ft();case 89:return mt();case 51:return pt();case 13:case 9:case 8:case 101:case 86:return Ht();case 38:return Y(Qt)?Ht(!0):ut();case 105:case 95:return ie();case 99:var e=_t();return 127!==K()||La.hasPrecedingLineBreak()?e:lt(e);case 103:return Y(Gt)?Xt():vt();case 17:return Y(zt)?Kt():Bt();case 21:return qt();case 19:return Ut();case 91:return Xt();default:return ut()}}function Zt(e){switch(K()){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:case 91:return!0;case 38:return!e&&Y(Qt);case 19:return!e&&Y($t);default:return $()}}function $t(){return q(),20===K()||Dt()||Zt()}function er(){for(var e=Yt();!La.hasPrecedingLineBreak();)switch(K()){case 51:e=tr(281,e);break;case 55:if(!(2097152&Ma)&&Y(Ie))return e;e=tr(280,e);break;case 21:if(ee(21),Zt()){var t=se(175,e.pos);t.objectType=e,t.indexType=pr(),ee(22),e=le(t)}else{var t=se(166,e.pos);t.elementType=e,ee(22),e=le(t)}break;default:return e}return e}function tr(e,t){q();var r=se(e,t.pos);return r.type=t,le(r)}function rr(e){var t=se(174);return ee(e),t.operator=e,t.type=ir(),le(t)}function nr(){var e=se(171);ee(126);var t=se(147);return t.name=fe(),e.typeParameter=le(t),le(e)}function ir(){var e=K();switch(e){case 128:case 141:return rr(e);case 126:return nr()}return er()}function ar(e,t,r){te(r);var n=t();if(K()===r){for(var i=[n];te(r);)i.push(t());var a=se(e,n.pos);a.types=ue(i,n.pos),n=le(a)}return n}function or(){return ar(169,ir,48)}function sr(){return ar(168,or,49)}function cr(){return 27===K()||19===K()&&Y(lr)}function ur(){if(e.isModifierKind(K())&&wi(),$()||99===K())return q(),!0;if(21===K()||17===K()){var t=Ea.length;return vi(),t===Ea.length}return!1}function lr(){if(q(),20===K()||24===K())return!0;if(ur()){if(56===K()||26===K()||55===K()||58===K())return!0;if(20===K()&&(q(),36===K()))return!0}return!1}function _r(){var e=$()&&Z(dr),t=pr();if(e){var r=se(160,e.pos);return r.parameterName=e,r.type=t,le(r)}return t}function dr(){var e=fe();if(127===K()&&!La.hasPrecedingLineBreak())return q(),e}function pr(){return D(20480,fr)}function fr(e){if(cr())return Vt(162);if(94===K())return Vt(163);var t=sr();if(!e&&!La.hasPrecedingLineBreak()&&te(85)){var r=se(170,t.pos);return r.checkType=t,r.extendsType=fr(!0),ee(55),r.trueType=fr(),ee(56),r.falseType=fr(),le(r)}return t}function mr(){return te(56)?pr():void 0}function gr(){switch(K()){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 Y(Rt);default:return $()}}function yr(){if(gr())return!0;switch(K()){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!!Br()||$()}}function vr(){return 17!==K()&&89!==K()&&75!==K()&&57!==K()&&yr()}function hr(){var e=O();e&&b(!1);for(var t,r=xr();t=re(26);)r=Jr(r,t,xr());return e&&b(!0),r}function br(){return te(58)?xr():void 0}function xr(){if(Dr())return Sr();var t=Tr()||Pr();if(t)return t;var r=Mr(0);return 71===r.kind&&36===K()?Cr(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(U())?Jr(r,ie(),xr()):Or(r)}function Dr(){return 116===K()&&(!!w()||Y(ti))}function kr(){return q(),!La.hasPrecedingLineBreak()&&$()}function Sr(){var e=se(202);return q(),La.hasPrecedingLineBreak()||39!==K()&&!yr()?le(e):(e.asteriskToken=re(39),e.expression=xr(),le(e))}function Cr(t,r){e.Debug.assert(36===K(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var n;r?(n=se(192,r.pos),n.modifiers=r):n=se(192,t.pos);var i=se(148,t.pos);return i.name=t,le(i),n.parameters=ue([i],i.pos,i.end),n.equalsGreaterThanToken=ne(36),n.body=Ir(!!r),_(le(n))}function Tr(){var t=Er();if(0!==t){var r=1===t?wr(!0):Z(Ar);if(r){var n=e.hasModifier(r,256),i=K();return r.equalsGreaterThanToken=ne(36),r.body=36===i||17===i?Ir(n):fe(),le(r)}}}function Er(){return 19===K()||27===K()||120===K()?Y(Nr):36===K()?1:0}function Nr(){if(120===K()){if(q(),La.hasPrecedingLineBreak())return 0;if(19!==K()&&27!==K())return 0}var t=K(),r=q();if(19===t){if(20===r){var n=q();switch(n){case 36:case 56:case 17:return 1;default:return 0}}if(21===r||17===r)return 2;if(24===r)return 1;if(e.isModifierKind(r)&&120!==r&&Y(Ne))return 1;if(!$())return 0;switch(q()){case 56:return 1;case 55:return q(),56===K()||26===K()||58===K()||20===K()?1:0;case 26:case 58:case 20:return 2}return 0}if(e.Debug.assert(27===t),!$())return 0;if(1===Ta.languageVariant){var i=Y(function(){var e=q();if(85===e){var t=q();switch(t){case 58:case 29:return!1;default:return!0}}else if(26===e)return!0;return!1});return i?1:0}return 2}function Ar(){return wr(!1)}function Pr(){if(120===K()&&1===Y(Fr)){var e=Ii(),t=Mr(0);return Cr(t,e)}}function Fr(){if(120===K()){if(q(),La.hasPrecedingLineBreak()||36===K())return 0;var e=Mr(0);if(!La.hasPrecedingLineBreak()&&71===e.kind&&36===K())return 1}return 0}function wr(t){var r=ce(192);r.modifiers=Ii();var n=e.hasModifier(r,256)?2:0;if(St(56,n|(t?0:8),r)&&r.parameters&&(t||36===K()||17===K()))return r}function Ir(e){return 17===K()?On(e?2:0):25!==K()&&89!==K()&&75!==K()&&ii()&&!vr()?On(16|(e?2:0)):e?N(xr):A(xr)}function Or(t){var r=re(55);if(!r)return t;var n=se(200,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=D(Ra,xr),n.colonToken=ne(56),n.whenFalse=e.nodeIsPresent(n.colonToken)?xr():_e(71,!1,e.Diagnostics._0_expected,e.tokenToString(56)),le(n)}function Mr(e){var t=Hr();return Rr(e,t)}function Lr(e){return 92===e||144===e}function Rr(t,r){for(;;){U();var n=e.getBinaryOperatorPrecedence(K()),i=40===K()?n>=t:n>t;if(!i)break;if(92===K()&&I())break;if(118===K()){if(La.hasPrecedingLineBreak())break;q(),r=zr(r,pr())}else r=Jr(r,ie(),Mr(n))}return r}function Br(){return(!I()||92!==K())&&e.getBinaryOperatorPrecedence(K())>0}function Jr(e,t,r){var n=se(199,e.pos);return n.left=e,n.operatorToken=t,n.right=r,le(n)}function zr(e,t){var r=se(207,e.pos);return r.expression=e,r.type=t,le(r)}function jr(){var e=se(197);return e.operator=K(),q(),e.operand=Gr(),le(e)}function Kr(){var e=se(193);return q(),e.expression=Gr(),le(e)}function qr(){var e=se(194);return q(),e.expression=Gr(),le(e)}function Ur(){var e=se(195);return q(),e.expression=Gr(),le(e)}function Vr(){return 121===K()&&(!!M()||Y(ti))}function Wr(){var e=se(196);return q(),e.expression=Gr(),le(e)}function Hr(){if(Xr()){var t=Qr();return 40===K()?Rr(e.getBinaryOperatorPrecedence(K()),t):t}var r=K(),n=Gr();if(40===K()){var i=e.skipTrivia(Pa,n.pos),a=n.end;189===n.kind?B(i,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):B(i,a,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(r))}return n}function Gr(){switch(K()){case 37:case 38:case 52:case 51:return jr();case 80:return Kr();case 103:return qr();case 105:return Ur();case 27:return fn();case 121:if(Vr())return Wr();default:return Qr()}}function Xr(){switch(K()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==Ta.languageVariant)return!1;default:return!0}}function Qr(){if(43===K()||44===K()){var t=se(197);return t.operator=K(),q(),t.operand=Yr(),le(t)}if(1===Ta.languageVariant&&27===K()&&Y(Pe))return tn(!0);var r=Yr();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(43===K()||44===K())&&!La.hasPrecedingLineBreak()){var t=se(198,r.pos);return t.operand=r,t.operator=K(),q(),le(t)}return r}function Yr(){var e;if(91===K())if(Y(Mt))Ta.flags|=524288,e=ie();else if(Y(Lt)){var t=La.getStartPos();q(),q();var r=se(209,t);r.keywordToken=91,r.name=me(),e=le(r),Ta.flags|=1048576}else e=Zr();else e=97===K()?$r():Zr();return vn(e)}function Zr(){var e=Dn();return mn(e)}function $r(){var t=ie();if(19===K()||23===K()||21===K())return t;var r=se(184,t.pos);return r.expression=t,ne(23,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),r.name=rt(!0),le(r)}function en(e,t){return e.kind===t.kind&&(71===e.kind?e.escapedText===t.escapedText:99===e.kind||e.name.escapedText===t.name.escapedText&&en(e.expression,t.expression))}function tn(t){var r,n=sn(t);if(256===n.kind){var i=se(254,n.pos);i.openingElement=n,i.children=an(i.openingElement),i.closingElement=dn(t),en(i.openingElement.tagName,i.closingElement.tagName)||J(i.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(Pa,i.openingElement.tagName)),r=le(i)}else if(259===n.kind){var i=se(258,n.pos);i.openingFragment=n,i.children=an(i.openingFragment),i.closingFragment=pn(t),r=le(i)}else e.Debug.assert(255===n.kind),r=n;if(t&&27===K()){var a=Z(function(){return tn(!0)});if(a){L(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=se(199,r.pos);return o.end=a.end,o.left=r,o.right=a,o.operatorToken=_e(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function rn(){var e=se(10);return e.containsOnlyWhiteSpaces=11===Aa,Aa=La.scanJsxToken(),le(e)}function nn(t,r){switch(r){case 1:return void(e.isJsxOpeningFragment(t)?J(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):J(t.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(Pa,t.tagName)));case 28:case 7:return;case 10:case 11:return rn();case 17:return un(!1);case 27:return tn(!1);default:return e.Debug.assertNever(r)}}function an(e){var t=[],r=j(),n=Oa;for(Oa|=16384;;){var i=nn(e,Aa=La.reScanJsxToken());if(!i)break;t.push(i)}return Oa=n,ue(t,r)}function on(){var e=se(262);return e.properties=Re(13,ln),le(e)}function sn(e){var t=La.getStartPos();if(ee(27),29===K()){var r=se(259,t);return G(),le(r)}var n,i=cn(),a=qi(),o=on();return 29===K()?(n=se(256,t),G()):(ee(41),e?ee(29):(ee(29,void 0,!1),G()),n=se(255,t)),n.tagName=i,n.typeArguments=a,n.attributes=o,le(n)}function cn(){H();for(var e=99===K()?ie():me();te(23);){var t=se(184,e.pos);t.expression=e,t.name=rt(!0),e=le(t)}return e}function un(e){var t=se(264);if(ee(17))return 18!==K()&&(t.dotDotDotToken=re(24),t.expression=xr()),e?ee(18):(ee(18,void 0,!1),G()),le(t)}function ln(){if(17===K())return _n();H();var e=se(261);if(e.name=me(),58===K())switch(X()){case 9:e.initializer=at();break;default:e.initializer=un(!0)}return le(e)}function _n(){var e=se(263);return ee(17),ee(24),e.expression=hr(),ee(18),le(e)}function dn(e){var t=se(257);return ee(28),t.tagName=cn(),e?ee(29):(ee(29,void 0,!1),G()),le(t)}function pn(t){var r=se(260);return ee(28),e.tokenIsIdentifierOrKeyword(K())&&J(cn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),t?ee(29):(ee(29,void 0,!1),G()),le(r)}function fn(){var e=se(189);return ee(27),e.type=pr(),ee(29),e.expression=Gr(),le(e)}function mn(t){for(;;){var r=re(23);if(r){var n=se(184,t.pos);n.expression=t,n.name=rt(!0),t=le(n)}else if(51!==K()||La.hasPrecedingLineBreak())if(O()||!te(21)){if(!gn())return t;t=yn(t,void 0)}else{var i=se(185,t.pos);if(i.expression=t,22===K())i.argumentExpression=_e(71,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=S(hr);e.isStringOrNumericLiteral(a)&&(a.text=de(a.text)),i.argumentExpression=a}ee(22),t=le(i)}else{q();var o=se(208,t.pos);o.expression=t,t=le(o)}}}function gn(){return 13===K()||14===K()}function yn(e,t){var r=se(188,e.pos);return r.tag=e,r.typeArguments=t,r.template=13===K()?at():nt(),le(r)}function vn(e){for(;;)if(e=mn(e),27!==K()){if(19!==K())return e;var t=se(186,e.pos);t.expression=e,t.arguments=hn(),e=le(t)}else{var r=Z(bn);if(!r)return e;if(gn()){e=yn(e,r);continue}var t=se(186,e.pos);t.expression=e,t.typeArguments=r,t.arguments=hn(),e=le(t)}}function hn(){ee(19);var e=Ye(11,Tn);return ee(20),e}function bn(){if(te(27)){var e=Ye(19,pr);if(ee(29))return e&&xn()?e:void 0}}function xn(){switch(K()){case 19:case 13:case 14: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 Dn(){switch(K()){case 8:case 9:case 13:return at();case 99:case 97:case 95:case 101:case 86:return ie();case 19:return kn();case 21:return En();case 17:return An();case 120:if(!Y(ei))break;return Pn();case 75:return Mi();case 89:return Pn();case 94:return wn();case 41:case 63:if(12===V())return at();break;case 14:return nt()}return fe(e.Diagnostics.Expression_expected)}function kn(){var e=ce(190);return ee(19),e.expression=S(hr),ee(20),le(e)}function Sn(){var e=se(203);return ee(24),e.expression=xr(),le(e)}function Cn(){return 24===K()?Sn():26===K()?se(205):xr()}function Tn(){return D(Ra,Cn)}function En(){var e=se(182);return ee(21),La.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ye(15,Cn),ee(22),le(e)}function Nn(){var e=ce(0);if(re(24))return e.kind=271,e.expression=xr(),le(e);if(e.decorators=Fi(),e.modifiers=wi(),be(125))return Ai(e,155);if(be(136))return Ai(e,156);var t=re(39),r=$();if(e.name=ve(),e.questionToken=re(55),t||19===K()||27===K())return Ti(e,t);var n=r&&(26===K()||18===K()||58===K());if(n){e.kind=270;var i=re(58);i&&(e.equalsToken=i,e.objectAssignmentInitializer=S(xr))}else e.kind=269,ee(56),e.initializer=S(xr);return le(e)}function An(){var e=se(183);return ee(17),La.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ye(12,Nn,!0),ee(18),le(e)}function Pn(){var t=O();t&&b(!1);var r=ce(191);r.modifiers=wi(),ee(89),r.asteriskToken=re(39);var n=r.asteriskToken?1:0,i=e.hasModifier(r,256)?2:0;return r.name=n&&i?P(Fn):n?T(Fn):i?N(Fn):Fn(),St(56,n|i,r),r.body=On(n|i),t&&b(!0),le(r)}function Fn(){return $()?fe():void 0}function wn(){var t=La.getStartPos();if(ee(94),te(23)){var r=se(209,t);return r.keywordToken=94,r.name=me(),le(r)}for(var n,i=Dn();;){i=mn(i),n=Z(bn),gn()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),i=yn(i,n),n=void 0);break}var a=se(187,t);return a.expression=i,a.typeArguments=n,(a.typeArguments||19===K())&&(a.arguments=hn()),le(a)}function In(e,t){var r=se(212);return ee(17,t)||e?(La.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=Re(1,si),ee(18)):r.statements=Ze(),le(r)}function On(e,t){var r=w();h(!!(1&e));var n=M();x(!!(2&e));var i=O();i&&b(!1);var a=In(!!(16&e),t);return i&&b(!0),h(r),x(n),a}function Mn(){var e=se(214);return ee(25),le(e)}function Ln(){var e=se(216);return ee(90),ee(19),e.expression=S(hr),ee(20),e.thenStatement=si(),e.elseStatement=te(82)?si():void 0,le(e)}function Rn(){var e=se(217);return ee(81),e.statement=si(),ee(106),ee(19),e.expression=S(hr),ee(20),te(25),le(e)}function Bn(){var e=se(218);return ee(106),ee(19),e.expression=S(hr),ee(20),e.statement=si(),le(e)}function Jn(){var e=j();ee(88);var t=re(121);ee(19);var r;25!==K()&&(r=104===K()||110===K()||76===K()?xi(!0):C(hr));var n;if(t?ee(144):te(144)){var i=se(221,e);i.awaitModifier=t,i.initializer=r,i.expression=S(xr),ee(20),n=i}else if(te(92)){var a=se(220,e);a.initializer=r,a.expression=S(hr),ee(20),n=a}else{var o=se(219,e);o.initializer=r,ee(25),25!==K()&&20!==K()&&(o.condition=S(hr)),ee(25),20!==K()&&(o.incrementor=S(hr)),ee(20),n=o}return n.statement=si(),le(n)}function zn(e){var t=se(e);return ee(223===e?72:77),ae()||(t.label=fe()),oe(),le(t)}function jn(){var e=se(224);return ee(96),ae()||(e.expression=S(hr)),oe(),le(e)}function Kn(){var e=se(225);return ee(107),ee(19),e.expression=S(hr),ee(20),e.statement=k(8388608,si),le(e)}function qn(){var e=se(265);return ee(73),e.expression=S(hr),ee(56),e.statements=Re(3,si),le(e)}function Un(){var e=se(266);return ee(79),ee(56),e.statements=Re(3,si),le(e)}function Vn(){return 73===K()?qn():Un()}function Wn(){var e=se(226);ee(98),ee(19),e.expression=S(hr),ee(20);var t=se(240);return ee(17),t.clauses=Re(2,Vn),ee(18),e.caseBlock=le(t),le(e)}function Hn(){var e=se(228);return ee(100),e.expression=La.hasPrecedingLineBreak()?void 0:S(hr),oe(),le(e)}function Gn(){var e=se(229);return ee(102),e.tryBlock=In(!1),e.catchClause=74===K()?Xn():void 0,e.catchClause&&87!==K()||(ee(87),e.finallyBlock=In(!1)),le(e)}function Xn(){var e=se(268);return ee(74),te(19)?(e.variableDeclaration=bi(),ee(20)):e.variableDeclaration=void 0,e.block=In(!1),le(e)}function Qn(){var e=se(230);return ee(78),oe(),le(e)}function Yn(){var e=ce(0),t=S(hr);return 71===t.kind&&te(56)?(e.kind=227,e.label=t,e.statement=si()):(e.kind=215,e.expression=t,oe()),le(e)}function Zn(){return q(),e.tokenIsIdentifierOrKeyword(K())&&!La.hasPrecedingLineBreak()}function $n(){return q(),75===K()&&!La.hasPrecedingLineBreak()}function ei(){return q(),89===K()&&!La.hasPrecedingLineBreak()}function ti(){return q(),(e.tokenIsIdentifierOrKeyword(K())||8===K()||9===K())&&!La.hasPrecedingLineBreak()}function ri(){for(;;)switch(K()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 139:return kr();case 129:case 130:return _i();case 117:case 120:case 124:case 112:case 113:case 114:case 132:if(q(),La.hasPrecedingLineBreak())return!1;continue;case 143:return q(),17===K()||71===K()||84===K();case 91:return q(),9===K()||39===K()||17===K()||e.tokenIsIdentifierOrKeyword(K());case 84:if(q(),58===K()||39===K()||17===K()||79===K()||118===K())return!0;continue;case 115:q();continue;default:return!1}}function ni(){return Y(ri)}function ii(){switch(K()){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 ni()||Y(Rt);case 76:case 84:return ni();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 ni()||!Y(Zn);default:return yr()}}function ai(){return q(),$()||17===K()||21===K()}function oi(){return Y(ai)}function si(){switch(K()){case 25:return Mn();case 17:return In(!1);case 104:return ki(ce(231));case 110:if(oi())return ki(ce(231));break;case 89:return Si(ce(233));case 75:return Li(ce(234));case 90:return Ln();case 81:return Rn();case 106:return Bn();case 88:return Jn();case 77:return zn(222);case 72:return zn(223);case 96:return jn();case 107:return Kn();case 98:return Wn();case 100:return Hn();case 102:case 74:case 87:return Gn();case 78:return Qn();case 57:return ui();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(ni())return ui()}return Yn()}function ci(e){return 124===e.kind}function ui(){var t=ce(0);if(t.decorators=Fi(),t.modifiers=wi(),e.some(t.modifiers,ci)){for(var r=0,n=t.modifiers;r=1&&(i=0,n.push(La.getTokenText())),e=0;break;case 57:La.setTextPos(La.getTextPos()-1);case 1:break e;case 5:if(2===i)t(La.getTokenText());else{var c=La.getTokenText();void 0!==r&&e+c.length>r&&n.push(c.slice(r-e-1)),e+=c.length}break;case 39:if(0===i){i=1,e+=1;break}default:i=2,t(La.getTokenText())}s=M()}return a(n), o(n),0===n.length?void 0:n.join("")}function d(e,t){var r=se(288,e.pos);return r.atToken=e,r.tagName=t,le(r)}function p(e){e&&(V?V.push(e):(V=[e],W=e.pos),H=e.end)}function f(){return u(),17===K()?n():void 0}function m(){if(13===K())return{name:pe(!0),isBracketed:!1};var e=te(21),t=J();return e&&(u(),re(58)&&hr(),ee(22)),{name:t,isBracketed:e}}function g(t){switch(t.kind){case 135:return!0;case 166:return g(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function y(e,t,r,n){var i=f(),a=!i;u();var o=m(),s=o.name,c=o.isBracketed;u(),a&&(i=f());var l,d=1===r?se(297,e.pos):se(292,e.pos);void 0!==n&&(l=_(n+La.getStartPos()-e.pos));var p=4!==r&&v(i,s,r);return p&&(i=p,a=!0),d.atToken=e,d.tagName=t,d.typeExpression=i,d.name=s,d.isNameFirst=a,d.isBracketed=c,d.comment=l,le(d)}function v(t,r,n){if(t&&g(t.type)){for(var i=se(277,La.getTokenPos()),a=void 0,o=void 0,s=La.getStartPos(),c=void 0;a=Z(function(){return F(n,r)});)292!==a.kind&&297!==a.kind||(c=e.append(c,a));if(c)return o=se(286,s),o.jsDocPropertyTags=c,166===t.type.kind&&(o.isArrayType=!0),i.type=le(o),le(i)}}function h(t,r){e.forEach(V,function(e){return 293===e.kind})&&B(r.pos,La.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var n=se(293,t.pos);return n.atToken=t,n.tagName=r,n.typeExpression=f(),le(n)}function b(t,r){e.forEach(V,function(e){return 294===e.kind})&&B(r.pos,La.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var i=se(294,t.pos);return i.atToken=t,i.tagName=r,i.typeExpression=n(!0),le(i)}function x(e,t){var r=se(289,e.pos);return r.atToken=e,r.tagName=t,r["class"]=D(),le(r)}function D(){var e=te(17),t=se(206);t.expression=k(),t.typeArguments=qi();var r=le(t);return e&&ee(18),r}function k(){for(var e=z(!0);te(23);){var t=se(184,e.pos);t.expression=e,t.name=z(),e=le(t)}return e}function S(e,t){var r=se(290,e.pos);return r.atToken=e,r.tagName=t,le(r)}function C(t,r,n){var i=f();u();var a=se(296,t.pos);a.atToken=t,a.tagName=r,a.fullName=T(),a.name=N(a.fullName),u(),a.comment=_(n),a.typeExpression=i;var o;if(!i||g(i.type)){for(var s=void 0,c=void 0,l=void 0,d=La.getStartPos();s=Z(function(){return P()});)if(c||(c=se(286,d)),294===s.kind){if(l)break;l=s}else c.jsDocPropertyTags=e.append(c.jsDocPropertyTags,s);c&&(i&&166===i.type.kind&&(c.isArrayType=!0),a.typeExpression=l&&l.typeExpression&&!g(l.typeExpression.type)?l.typeExpression:le(c),o=a.typeExpression.end)}return le(a,o||void 0!==a.comment?La.getStartPos():(a.fullName||a.typeExpression||a.tagName).end)}function T(e){var t=La.getTokenPos(),r=z();if(r&&te(23)){var n=se(238,t);return e&&(n.flags|=4),n.name=r,n.body=T(!0),le(n)}return r&&e&&(r.isInJSDocNamespace=!0),r}function E(t,r,n){var i=se(291,t.pos);i.atToken=t,i.tagName=r,i.fullName=T(),i.name=N(i.fullName),u(),i.comment=_(n);var a,o=La.getStartPos(),s=se(287,o);for(s.parameters=[];a=Z(function(){return F(4)});)s.parameters=e.append(s.parameters,a);var c=Z(function(){if(57===K()){M();var e=l(n);if(e&&293===e.kind)return e}});return c&&(s.type=c),i.typeExpression=le(s),le(i)}function N(t){if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}}function A(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function P(){return F(1)}function F(t,r){for(var n=!0,i=!1;;)switch(M()){case 57:if(n){var a=w(t);return!(a&&292===a.kind&&4!==t&&(e.isIdentifier(a.name)||!A(r,a.name.left)))&&a}i=!1;break;case 4:n=!0,i=!1;break;case 39:i&&(n=!1),i=!0;break;case 71:n=!1;break;case 1:return!1}}function w(t){e.Debug.assert(57===K());var r=se(57);r.end=La.getTextPos(),M();var n=z();if(u(),!n)return!1;var i;switch(n.escapedText){case"type":return 1===t&&b(r,n);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}if(!(t&i))return!1;var a=y(r,n,t,void 0);return a.comment=_(a.end-a.pos),a}function I(t,r){e.some(V,e.isJSDocTemplateTag)&&B(r.pos,La.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);for(var n=[],i=j();;){var a=se(147),o=O();if(u(),!o)return void R(La.getStartPos(),0,e.Diagnostics.Identifier_expected);if(a.name=o,le(a),n.push(a),26!==K())break;M(),u()}var s=se(295,t.pos);return s.atToken=t,s.tagName=r,s.typeParameters=ue(n,i),le(s),s}function O(){var e=te(17),t=z();return e&&ee(18),t}function M(){return Aa=La.scanJSDocToken()}function J(){var e=z(!0);for(te(21)&&ee(22);te(23);){var t=z(!0);te(21)&&ee(22),e=tt(e,t)}return e}function z(t){if(void 0===t&&(t=!1),!e.tokenIsIdentifierOrKeyword(K()))return t?_e(71,!0,e.Diagnostics.Identifier_expected):void L(e.Diagnostics.Identifier_expected);var r=La.getTokenPos(),n=La.getTextPos(),i=se(71,r);return i.escapedText=e.escapeLeadingUnderscores(La.getTokenText()),le(i,n),M(),i}var q=Pa;t=t||0;var U=void 0===r?q.length:t+r;r=U-t,e.Debug.assert(t>=0),e.Debug.assert(t<=U),e.Debug.assert(U<=q.length);var V,W,H,G,X=[];return i(q,t)?(La.scanRange(t+3,r-5,function(){function e(e){r||(r=i),X.push(e),i+=e.length}for(var r,n=1,i=t-Math.max(q.lastIndexOf("\n",t),0)+4,c=M();5===c;)c=M();4===c&&(n=0,i=0,c=M());e:for(;;){switch(c){case 57:0===n||1===n?(o(X),p(l(i)),n=0,r=void 0,i++):e(La.getTokenText());break;case 4:X.push(La.getTokenText()),n=0,i=0;break;case 39:var u=La.getTokenText();1===n||2===n?(n=2,e(u)):(n=1,i+=u.length);break;case 71:e(La.getTokenText()),n=2;break;case 5:var _=La.getTokenText();2===n?X.push(_):void 0!==r&&i+_.length>r&&X.push(_.slice(r-i-1)),i+=_.length;break;case 1:break e;default:n=2,e(La.getTokenText())}c=M()}a(X),o(X),G=s()}),G):G}t.parseJSDocTypeExpressionForTests=r,t.parseJSDocTypeExpression=n,t.parseIsolatedJSDocComment=a,t.parseJSDocComment=o;var l;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(l||(l={}));var _;!function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(_||(_={})),t.parseJSDocCommentWorker=s}(ja=t.JSDocParser||(t.JSDocParser={}))}(C||(C={}));var T;!function(t){function r(t,r,n,i){if(i=i||e.Debug.shouldAssert(2),_(t,r,n,i),e.textChangeRangeIsUnchanged(n))return t;if(0===t.statements.length)return C.parseSourceFile(t.fileName,r,t.languageVersion,void 0,!0,t.scriptKind);var a=t;e.Debug.assert(!a.hasBeenIncrementallyParsed),a.hasBeenIncrementallyParsed=!0;var o=t.text,s=d(t),l=u(t,n);_(t,r,l,i),e.Debug.assert(l.span.start<=n.span.start),e.Debug.assert(e.textSpanEnd(l.span)===e.textSpanEnd(n.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(l))===e.textSpanEnd(e.textChangeRangeNewSpan(n)));var p=e.textChangeRangeNewSpan(l).length-l.span.length;c(a,l.span.start,e.textSpanEnd(l.span),e.textSpanEnd(e.textChangeRangeNewSpan(l)),p,o,r,i);var f=C.parseSourceFile(t.fileName,r,t.languageVersion,s,!0,t.scriptKind);return f}function n(t,r,n,o,c,u){function l(t){var r="";if(u&&i(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=n,t.end+=n,u&&i(t)&&e.Debug.assert(r===c.substring(t.pos,t.end)),a(t,l,_),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"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>=n?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end))}function s(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var o=0,s=t.jsDoc;oi)return void n(t,!1,u,l,_,d);var m=t.end;if(m>=r){if(t.intersectsChange=!0,t._children=void 0,o(t,r,i,c,u),a(t,p,f),e.hasJSDocNodes(t))for(var g=0,y=t.jsDoc;gi)return void n(t,!0,u,l,_,d);var a=t.end;if(a>=r){t.intersectsChange=!0,t._children=void 0,o(t,r,i,c,u);for(var s=0,f=t;s0&&a<=n;a++){var o=l(t,i);e.Debug.assert(o.pos<=i);var s=o.pos;i=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(i,e.textSpanEnd(r.span)),u=r.newLength+(r.span.start-i);return e.createTextChangeRange(c,u)}function l(t,r){function n(t){for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}}function i(t){if(!e.nodeIsMissing(t))return t.pos<=r?(t.pos>=s.pos&&(s=t),rr),!0)}var o,s=t;if(a(t,i),o){var c=n(o);c.pos>s.pos&&(s=c)}return s}function _(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}function d(t){function r(e){function r(t){return e>=t.pos&&e=t.pos&&e/im,A=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im}(ts||(ts={}));var ts;!function(e){function t(e){return e.body?r(e.body):1}function r(n){switch(n.kind){case 235:case 236:return 0;case 237:if(e.isConst(n))return 2;break;case 243:case 242:if(!e.hasModifier(n,1))return 0;break;case 239:var i=0;return e.forEachChild(n,function(t){var n=r(t);switch(n){case 0:return;case 2:return void(i=2);case 1:return i=1,!0;default:e.Debug.assertNever(n)}}),i;case 238:return t(n);case 71:if(n.isInJSDocNamespace)return 0}return 1}function n(t,r){e.performance.mark("beforeBind"),j(t,r),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")}function i(){function r(t,r,n,i,a){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||Rt,t,r,n,i,a)}function n(t,r){Rt=t,Bt=r,Jt=e.getEmitScriptTarget(Bt),nr=i(Rt,r),ar=e.createUnderscoreEscapedMap(),sr=0,or=Rt.isDeclarationFile,ir=e.objectAllocator.getSymbolConstructor(),Rt.locals||(Ze(Rt),Rt.symbolCount=sr,Rt.classifiableNames=ar,Oe()),Rt=void 0,Bt=void 0,Jt=void 0,zt=void 0,jt=void 0,Kt=void 0,qt=void 0,Ut=void 0,Vt=void 0,Wt=!1,Ht=void 0,Gt=void 0,Xt=void 0,Qt=void 0,Yt=void 0,Zt=void 0,er=void 0,tr=!1,rr=0,lr=0}function i(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}function s(e,t){return sr++,new ir(e,t)}function l(t,r,n){if(t.flags|=n,r.symbol=t,t.declarations=e.append(t.declarations,r),1952&n&&!t.exports&&(t.exports=e.createSymbolTable()),6240&n&&!t.members&&(t.members=e.createSymbolTable()),67216319&n){var i=t.valueDeclaration;(!i||i.kind!==r.kind&&238===i.kind)&&(t.valueDeclaration=r)}}function _(t){if(248===t.kind)return t.isExportEquals?"export=":"default";var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'+n+'"'}if(146===r.kind){var i=r.expression;return e.isStringOrNumericLiteral(i)?e.escapeLeadingUnderscores(i.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.idText(i.name)))}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 154:return"__constructor";case 162:case 157:case 287:return"__call";case 163:case 158:return"__new";case 159:return"__index";case 249:return"__export";case 273:return"export=";case 199:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 283:return e.isJSDocConstructSignature(t)?"__new":"__call";case 148:e.Debug.assert(283===t.parent.kind,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind)+", expected JSDocFunctionType"});var a=t.parent,o=a.parameters.indexOf(t);return"arg"+o}}function d(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(_(t))}function p(t,n,i,a,o,c){e.Debug.assert(!e.hasDynamicName(i));var u,p=e.hasModifier(i,512),f=p&&n?"default":_(i);if(void 0===f)u=s(0,"__missing");else if(u=t.get(f),2885600&a&&ar.set(f,!0),u){if(c&&!u.isReplaceableByMethod)return u;if(u.flags&o)if(u.isReplaceableByMethod)t.set(f,u=s(0,f));else{e.isNamedDeclaration(i)&&(i.name.parent=i);var m=2&u.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;(384&u.flags||384&a)&&(m=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations),u.declarations&&u.declarations.length&&(p?m=e.Diagnostics.A_module_cannot_have_multiple_default_exports:u.declarations&&u.declarations.length&&248===i.kind&&!i.isExportEquals&&(m=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(u.declarations,function(t){Rt.bindDiagnostics.push(r(e.getNameOfDeclaration(t)||t,m,d(t)))}),Rt.bindDiagnostics.push(r(e.getNameOfDeclaration(i)||i,m,d(i))),u=s(0,f)}}else t.set(f,u=s(0,f)),c&&(u.isReplaceableByMethod=!0);return l(u,i,a),u.parent?e.Debug.assert(u.parent===n,"Existing symbol parent should match new one"):u.parent=n,u}function f(t,r,n){var i=1&e.getCombinedModifierFlags(t);if(2097152&r)return 251===t.kind||242===t.kind&&i?p(jt.symbol.exports,jt.symbol,t,r,n):p(jt.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJavaScriptFile(t)),!e.isAmbientModule(t)&&(i||32&jt.flags)||e.isJSDocTypeAlias(t)){if(e.hasModifier(t,512)&&!_(t))return p(jt.symbol.exports,jt.symbol,t,r,n);var a=67216319&r?1048576:0,o=p(jt.locals,void 0,t,a,n);return o.exportSymbol=p(jt.symbol.exports,jt.symbol,t,r,n),t.localSymbol=o,o}return p(jt.locals,void 0,t,r,n)}function m(t,r){var n=jt,i=Kt,a=qt;if(1&r?(192!==t.kind&&(Kt=jt),jt=qt=t,32&r&&(jt.locals=e.createSymbolTable()),he(jt)):2&r&&(qt=t,qt.locals=void 0),4&r){var o=Ht,s=Gt,c=Xt,u=Qt,l=er,_=tr,d=16&r&&!e.hasModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);d||(Ht={flags:2},144&r&&(Ht.container=t)),Qt=d||154===t.kind?N():void 0,Gt=void 0,Xt=void 0,er=void 0,tr=!1,g(t),t.flags&=-1409,!(1&Ht.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=128,tr&&(t.flags|=256)),273===t.kind&&(t.flags|=rr),Qt&&(F(Qt,Ht),Ht=L(Qt),154===t.kind&&(t.returnFlowNode=Ht)),d||(Ht=o),Gt=s,Xt=c,Qt=u,er=l,tr=_}else 64&r?(Wt=!1,g(t),t.flags=Wt?64|t.flags:t.flags&-65):g(t);jt=n,Kt=i,qt=a}function g(e){if(or)b(e);else if(536870912&e.transformFlags)or=!0,b(e),or=!1,lr|=e.transformFlags&~R(e.kind);else{var t=lr;lr=0,b(e),lr=t|u(e,lr)}}function y(e){v(e,function(e){return 233===e.kind?Ze(e):void 0}),v(e,function(e){return 233!==e.kind?Ze(e):void 0})}function v(t,r){if(void 0===r&&(r=Ze),void 0!==t)if(or)e.forEach(t,r);else{var n=lr;lr=0;for(var i=0,a=0,o=t;a=108&&t.originalKeywordKind<=116)||e.isIdentifierName(t)||4194304&t.flags||Rt.parseDiagnostics.length||Rt.bindDiagnostics.push(r(t,Le(t),e.declarationNameToString(t)))}function Le(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Rt.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 Re(t){nr&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&je(t,t.left)}function Be(e){nr&&e.variableDeclaration&&je(e,e.variableDeclaration.name)}function Je(t){if(nr&&71===t.expression.kind){var r=e.getErrorSpanForNode(Rt,t.expression);Rt.bindDiagnostics.push(e.createFileDiagnostic(Rt,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function ze(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}function je(t,r){if(r&&71===r.kind){var n=r;if(ze(n)){var i=e.getErrorSpanForNode(Rt,r);Rt.bindDiagnostics.push(e.createFileDiagnostic(Rt,i.start,i.length,Ke(t),e.idText(n)))}}}function Ke(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Rt.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function qe(e){nr&&je(e,e.name)}function Ue(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:Rt.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 Ve(t){if(Jt<2&&273!==qt.kind&&238!==qt.kind&&!e.isFunctionLike(qt)){var r=e.getErrorSpanForNode(Rt,t);Rt.bindDiagnostics.push(e.createFileDiagnostic(Rt,r.start,r.length,Ue(t)))}}function We(t){nr&&32&t.numericLiteralFlags&&Rt.bindDiagnostics.push(r(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function He(e){nr&&je(e,e.operand)}function Ge(e){nr&&(43!==e.operator&&44!==e.operator||je(e,e.operand))}function Xe(t){nr&&Qe(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Qe(t,r,n,i,a){var o=e.getSpanOfTokenAtPosition(Rt,t.pos);Rt.bindDiagnostics.push(e.createFileDiagnostic(Rt,o.start,o.length,r,n,i,a))}function Ye(t,r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(Rt,r.pos),c=e.createFileDiagnostic(Rt,s.start,s.length,n,i,a,o);t?Rt.bindDiagnostics.push(c):Rt.bindSuggestionDiagnostics=e.append(Rt.bindSuggestionDiagnostics,__assign({},c,{category:e.DiagnosticCategory.Suggestion}))}function Ze(e){if(e){e.parent=zt;var t=nr;if(rt(e),e.kind>144){var r=zt;zt=e;var n=ve(e);0===n?g(e):m(e,n),zt=r}else or||0!==(536870912&e.transformFlags)||(lr|=u(e,0),$e(e));nr=t}}function $e(t){if(e.hasJSDocNodes(t))if(e.isInJavaScriptFile(t))for(var r=0,n=t.jsDoc;r=160&&e<=178)return-3;switch(e){case 186:case 187:case 182:return 940049729;case 238:return 977327425;case 148:return 939525441;case 192:return 1003902273;case 191:case 233:return 1003935041;case 232:return 948962625;case 234:case 204: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 235:case 236:return-3;case 183:return 942740801;case 268:return 940574017;case 179:case 180:return 940049729;case 189:case 207:case 300:case 190:case 97:return 536872257;case 184:case 185:return 671089985;default:return 939525441}}function B(t,r){r.parent=t,e.forEachChild(r,function(e){return B(r,e)})}var J;!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(J=e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var z;!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"}(z||(z={}));var j=i();e.bindSourceFile=n,e.isExportsOrModuleExportsOrAlias=a,e.computeTransformFlagsForNode=u,e.getTransformFlagsSubtreeExclusions=R}(ts||(ts={}));var ts;!function(e){function t(t,r,n,i,a,o,s,c,u,l){function _(_){function d(e){if(e&&!k[e.id]){k[e.id]=e;var t=D(e.symbol);if(!t){if(65536&e.flags){var r=e,n=r.objectFlags;4&n&&p(e),32&n&&v(e),3&n&&b(e),24&n&&x(r)}32768&e.flags&&f(e),393216&e.flags&&m(e),524288&e.flags&&g(e),1048576&e.flags&&y(e)}}}function p(t){d(t.target),e.forEach(t.typeArguments,d)}function f(e){d(u(e))}function m(t){e.forEach(t.types,d)}function g(e){d(e.type)}function y(e){d(e.objectType),d(e.indexType),d(e.constraint)}function v(e){d(e.typeParameter),d(e.constraintType),d(e.templateType),d(e.modifiersType)}function h(i){var a=r(i);a&&d(a.type),e.forEach(i.typeParameters,d);for(var o=0,s=i.parameters;or.length){var g=m.substring(r.length+1);n=(e.forEach(e.supportedJavascriptExtensions,function(t){return e.tryRemoveExtension(g,t)})||g)+".d.ts"}else n="index.d.ts"}}e.endsWith(n,".d.ts")||(n=E(n));var y="string"==typeof p.name&&"string"==typeof p.version?{name:p.name,subModuleName:n,version:p.version}:void 0;return l&&(y?t(u,e.Diagnostics.Found_package_json_at_0_Package_ID_is_1,d,e.packageIdToString(y)):t(u,e.Diagnostics.Found_package_json_at_0,d)),{found:!0,packageJsonContent:p,packageId:y}}return _&&l&&t(u,e.Diagnostics.File_0_does_not_exist,d),i.push(d),{found:!1,packageJsonContent:void 0,packageId:void 0}}function L(r,n,i,a,o){var c=s(n!==te.JavaScript&&n!==te.Json,r,i,o);if(!c){if(n!==te.TypeScript)return;if(c=s(!1,r,i,o),!c)return}var u=!N(e.getDirectoryPath(c),o.host),l=w(c,a,u,o);if(l){var _=R(n,l);if(_)return _;o.traceEnabled&&t(o.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,l)}var d=n===te.DtsOnly?te.TypeScript:n,p=S(d,c,a,u,o,!1);if(p)return e.Debug.assert(void 0===p.packageId),{path:p.path,ext:p.extension}}function R(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&B(t,n)?{path:r,ext:n}:void 0}function B(e,t){switch(e){case te.JavaScript:return".js"===t||".jsx"===t;case te.Json:return".json"===t;case te.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case te.DtsOnly:return".d.ts"===t}}function J(t){return e.combinePaths(t,"package.json")}function z(t,r,i,a,o,s){var c,u,l=e.normalizePath(e.combinePaths(i,r)),_=M(l,"",o,!a,s);if(_.found)c=_.packageJsonContent,u=_.packageId;else{var d=j(r),p=d.packageName,f=d.rest;if(""!==f){var m=e.combinePaths(i,p); u=M(m,f,o,!a,s).packageId}}var g=P(t,l,o,!a,s)||O(t,l,o,!a,s,c);return n(u,g)}function j(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),r===-1?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function K(e,t,r,n,i,a){return U(e,t,r,n,i,!1,a)}function q(e,t,r,n){return U(te.DtsOnly,e,t,r,n,!0,void 0)}function U(t,r,n,i,a,o,s){var c=s&&s.getOrCreateCacheForModuleName(r);return e.forEachAncestorDirectory(e.normalizeSlashes(n),function(n){if("node_modules"!==e.getBaseFileName(n)){var s=Y(c,r,n,a.traceEnabled,a.host,i);return s?s:ee(V(t,r,n,i,a,o))}})}function V(r,n,i,a,o,s){void 0===s&&(s=!1);var c=e.combinePaths(i,"node_modules"),u=N(c,o.host);!u&&o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c);var l=s?void 0:z(r,n,c,u,a,o);if(l)return l;if(r!==te.JavaScript&&r!==te.Json){var _=e.combinePaths(c,"@types"),d=u;return u&&!N(_,o.host)&&(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),d=!1),z(te.DtsOnly,W(n,o),_,d,a,o)}}function W(r,n){var i=G(r);return n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i),i}function H(e){return"@types/"+G(e)}function G(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,ie);if(r!==t)return r.slice(1)}return t}function X(t){var r=e.removePrefix(t,"@types/");return r!==t?Q(r):t}function Q(t){return e.stringContains(t,ie)?"@"+t.replace(ie,e.directorySeparator):t}function Y(r,n,i,a,o,s){var c=r&&r.get(i);if(c)return a&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),s.push.apply(s,c.failedLookupLocations),{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId}}}function Z(t,n,i,a,s){function c(r){var n=y(r,t,d,A,_,l);if(n)return{value:n};var i=s&&s.getOrCreateCacheForModuleName(t);if(e.isExternalModuleNameRelative(t)){var o=e.normalizePath(e.combinePaths(d,t));return ee(A(r,o,_,!1,l))}var c=e.forEachAncestorDirectory(d,function(n){var o=Y(i,t,n,u,a,_);if(o)return o;var s=e.normalizePath(e.combinePaths(n,t));return ee(A(r,s,_,!1,l))});return c?c:r===te.TypeScript?q(t,d,_,l):void 0}var u=r(i,a),l={compilerOptions:i,host:a,traceEnabled:u},_=[],d=e.getDirectoryPath(n),p=c(te.TypeScript)||c(te.JavaScript);return o(p&&p.value,void 0,!1,_)}function $(n,i,a,s,c){var u=r(a,s);u&&t(s,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,c);var l={compilerOptions:a,host:s,traceEnabled:u},_=[],d=V(te.DtsOnly,n,c,_,l);return o(d,void 0,!0,_)}function ee(e){return void 0!==e?{value:e}:void 0}e.trace=t,e.isTraceEnabled=r;var te;!function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.DtsOnly=3]="DtsOnly"}(te||(te={})),e.readJson=c,e.getEffectiveTypeRoots=u;var re=e.combinePaths("node_modules","@types");e.resolveTypeReferenceDirective=_,e.getAutomaticTypeDirectiveNames=d,e.createModuleResolutionCache=p,e.createModuleResolutionCacheWithMaps=f,e.resolveModuleNameFromCache=m,e.resolveModuleName=g,e.nodeModuleNameResolver=b,e.resolveJavaScriptModule=x;var ne="/node_modules/";e.directoryProbablyExists=N,e.getPackageName=j;var ie="__";e.getTypesPackageName=H,e.getMangledNameForScopedPackage=G,e.getPackageNameFromAtTypesDirectory=X,e.getUnmangledNameForScopedPackage=Q,e.classicNameResolver=Z,e.loadModuleFromGlobalCache=$}(ts||(ts={}));var ts;!function(e){function t(e){return e.id||(e.id=u,u++),e.id}function r(e){return e.id||(e.id=c,c++),e.id}function n(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function i(i,c){function u(){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,r){return t.writeSymbol(e,r)},trackSymbol:function(e,r,n){return t.trackSymbol&&t.trackSymbol(e,r,n)},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,r,n,i){_t(e,n,i,t(r))},buildSymbolDisplay:function(e,r,n,i,a){ut(e,n,i,4|a,t(r))},buildSignatureDisplay:function(e,r,n,i,a){lt(e,n,i,a,t(r))},buildIndexSignatureDisplay:function(r,n,i,a,o){var s=eD.indexInfoToIndexSignatureDeclaration(r,i,a,3112960|dt(o),n),c=e.createPrinter({removeComments:!0});c.writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(a)),t(n))},buildParameterDisplay:function(r,n,i,a){var o=eD.symbolToParameterDeclaration(r,i,3112960|dt(a),n),s=e.createPrinter({removeComments:!0});s.writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(n))},buildTypeParameterDisplay:function(r,n,i,a){var o=eD.typeParameterToDeclaration(r,i,3112960|dt(a)|8192,n),s=e.createPrinter({removeComments:!0});s.writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(n))},buildTypePredicateDisplay:function(e,r,n,i){ft(e,n,i,t(r))},buildTypeParameterDisplayFromSymbol:function(r,n,i,a){var o=eD.symbolToTypeParameterDeclarations(r,i,3112960|dt(a),n),s=e.createPrinter({removeComments:!0});s.writeList(26896,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(n))},buildDisplayForParametersAndDelimiters:function(r,n,i,a,o){var s=e.createPrinter({removeComments:!0}),c=3121152|dt(o),u=r?[eD.symbolToParameterDeclaration(r,a,c)]:[],l=e.createNodeArray(u.concat(e.map(n,function(e){return eD.symbolToParameterDeclaration(e,a,c)})));s.writeList(1296,l,e.getSourceFileOfNode(e.getParseTreeNode(a)),t(i))},buildDisplayForTypeParametersAndDelimiters:function(r,n,i,a){var o=e.createPrinter({removeComments:!0}),s=e.createNodeArray(e.map(r,function(e){return eD.typeParameterToDeclaration(e,i,dt(a))}));o.writeList(26896,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(n))},buildReturnTypeDisplay:function(r,n,i,a){n.writePunctuation(":"),n.writeSpace(" ");var o=Li(r);if(o)return ft(o,i,a,t(n));var s=eD.typeToTypeNode(Ri(r),i,3112960|dt(a),n),c=e.createPrinter({removeComments:!0});c.writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(n))}}}function p(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxNamespace)return r.localJsxNamespace;var n=r.pragmas.get("jsx");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,Ux),r.localJsxFactory)return r.localJsxNamespace=Kv(r.localJsxFactory).escapedText}}}return cS||(cS="React",qx.jsxFactory?(uS=e.parseIsolatedEntityName(qx.jsxFactory,Ux),uS&&(cS=Kv(uS).escapedText)):qx.reactNamespace&&(cS=e.escapeLeadingUnderscores(qx.reactNamespace))),cS}function f(e,t){return dh(e,t),$x}function m(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);oS.add(s)}function g(t,r){t?oS.add(r):sS.add(r.file.fileName,__assign({},r,{category:e.DiagnosticCategory.Suggestion}))}function y(t,r,n,i,a,o,s){g(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(r,n))}function v(e,t,r){Bx++;var n=new Ox(33554432|e,t);return n.checkFlags=r||0,n}function h(e){return 0!==(33554432&e.flags)}function b(e){var t=0;return 2&e&&(t|=67216319),1&e&&(t|=67216318),4&e&&(t|=0),8&e&&(t|=68008959),16&e&&(t|=67215791),32&e&&(t|=68008383),64&e&&(t|=67901832),256&e&&(t|=68008191),128&e&&(t|=68008831),512&e&&(t|=67215503),8192&e&&(t|=67208127),32768&e&&(t|=67150783),65536&e&&(t|=67183551),262144&e&&(t|=67639784),524288&e&&(t|=67901928),2097152&e&&(t|=2097152),t}function x(e,t){t.mergeId||(t.mergeId=l,l++),Gk[t.mergeId]=e}function D(t){var r=v(t.flags,t.escapedName);return r.declarations=t.declarations?t.declarations.slice():[],r.parent=t.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),t.members&&(r.members=e.cloneMap(t.members)),t.exports&&(r.exports=e.cloneMap(t.exports)),x(r,t),r}function k(t,r){if(!(t.flags&b(r.flags))||67108864&(r.flags|t.flags)){var n=t.valueDeclaration;if(e.Debug.assert(!!(33554432&t.flags)),512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&(!t.valueDeclaration||238===t.valueDeclaration.kind&&238!==r.valueDeclaration.kind)&&(t.valueDeclaration=r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createSymbolTable()),C(t.members,r.members)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),C(t.exports,r.exports)),67108864&(r.flags|t.flags)){var i=e.getJSInitializerSymbol(r),a=e.getDeclaredJavascriptInitializer(n)||e.getAssignedJavascriptInitializer(n),o=a&&a.symbol?a.symbol:t;if(!(33554432&o.flags)){var s=Le(o);o=s===o?D(o):s}i===r&&o===t||k(o,i)}x(t,r)}else if(1024&t.flags)m(e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ut(t));else{var c=384&t.flags||384&r.flags?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:2&t.flags||2&r.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;e.forEach(r.declarations,function(t){var n=(e.getJavascriptInitializer(t,!1)?e.getOuterNameOfJsInitializer(t):e.getNameOfDeclaration(t))||t;m(n,c,ut(r))}),e.forEach(t.declarations,function(t){var n=(e.getJavascriptInitializer(t,!1)?e.getOuterNameOfJsInitializer(t):e.getNameOfDeclaration(t))||t;m(n,c,ut(r))})}}function S(t,r){if(!t||0===t.size)return r;if(!r||0===r.size)return t;var n=e.createSymbolTable();return C(n,t),C(n,r),n}function C(e,t){t.forEach(function(t,r){var n=e.get(r);n?(33554432&n.flags||(n=D(n),e.set(r,n)),k(n,t)):e.set(r,t)})}function T(t){var r=t.parent;if(r.symbol.declarations[0]!==r)return void e.Debug.assert(r.symbol.declarations.length>1);if(e.isGlobalScopeAugmentation(r))C(Ok,r.symbol.exports);else{var n=4194304&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,i=xe(t,t,n,!0);if(!i)return;i=Se(i),1920&i.flags?(i=33554432&i.flags?i:D(i),k(i,r.symbol)):m(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}}function E(t,r,n){function i(t,r){return function(n){return oS.add(e.createDiagnosticForNode(n,r,t))}}r.forEach(function(r,a){var o=t.get(a);o?e.forEach(o.declarations,i(e.unescapeLeadingUnderscores(a),n)):t.set(a,r)})}function N(e){if(33554432&e.flags)return e;var t=r(e);return Xk[t]||(Xk[t]={})}function A(e){var r=t(e);return Qk[r]||(Qk[r]={flags:0})}function P(t){return 273===t.kind&&!e.isExternalOrCommonJsModule(t)}function F(t,r,n){if(n){var i=t.get(r);if(i){if(e.Debug.assert(0===(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=de(i);if(a===fD||a.flags&n)return i}}}}function w(t,r){var n=t.parent,i=t.parent.parent,a=F(n.locals,r,67216319),o=F(rn(i.symbol),r,67216319);return a&&o?[a,o]:void e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function I(t,r){function n(t,r){var n=e.getEnclosingBlockScopeContainer(t);switch(t.parent.parent.kind){case 213:case 219:case 221:if(W(r,t,n))return!0}return e.isForInOrOfStatement(t.parent.parent)&&W(r,t.parent.parent.expression,n)}function a(t,r,n){return!!e.findAncestor(t,function(i){if(i===n)return"quit";if(e.isFunctionLike(i))return!0;var a=i.parent&&151===i.parent.kind&&i.parent.initializer===i;if(a)if(e.hasModifier(i.parent,32)){if(153===r.kind)return!0}else{var o=151===r.kind&&!e.hasModifier(r,32);if(!o||e.getContainingClass(t)!==e.getContainingClass(r))return!0}})}var o=e.getSourceFileOfNode(t),s=e.getSourceFileOfNode(r);if(o!==s){if(Vx&&(o.externalModuleIndicator||s.externalModuleIndicator)||!qx.outFile&&!qx.out||nl(r)||4194304&t.flags)return!0;if(a(r,t))return!0;var c=i.getSourceFiles();return c.indexOf(o)<=c.indexOf(s)}if(t.pos<=r.pos){if(181===t.kind){var u=e.getAncestor(r,181);return u?e.findAncestor(u,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=0)return void m(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,r,D)}}if(d)m(a,d,r,_.resolvedFileName);else{var k=e.tryExtractTypeScriptExtension(r);if(k){var s=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead;m(a,s,k,e.removeExtension(r,k))}else m(a,n,r)}}}}function ke(t,r,n,i){var a=n.packageId,o=n.resolvedFileName,s=a&&e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,e.getMangledNameForScopedPackage(a.name));y(t,r,e.chainDiagnosticMessages(s,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,o))}function Se(e,t){return e&&Le(Ce(_e(e.exports.get("export="),t),e))||e}function Ce(t,r){if(!t||1===r.exports.size)return t;var n=D(t);return void 0===n.exports&&(n.flags=512|n.flags,n.exports=e.createSymbolTable()),r.exports.forEach(function(e,t){if("export="!==t)if(n.exports.has(t)){var r=D(n.exports.get(t));k(r,e),n.exports.set(t,r)}else n.exports.set(t,e)}),n}function Te(t,r,n){var i=Se(t,n);if(!n&&i){if(!(1539&i.flags))return m(r,e.Diagnostics.Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct,ut(t)),i;if(qx.esModuleInterop){var a=r.parent;if(e.isImportDeclaration(a)&&e.getNamespaceDeclarationNode(a)||e.isImportCall(a)){var o=or(i),s=li(o,0);if(s&&s.length||(s=li(o,1)),s&&s.length){var c=Uf(o,i,t),u=v(i.flags,i.escapedName);u.declarations=i.declarations?i.declarations.slice():[],u.parent=i.parent,u.target=i,u.originatingImport=a,i.valueDeclaration&&(u.valueDeclaration=i.valueDeclaration),i.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),i.members&&(u.members=e.cloneMap(i.members)),i.exports&&(u.exports=e.cloneMap(i.exports));var l=Ln(c);return u.type=Qe(u,l.members,e.emptyArray,e.emptyArray,l.stringIndexInfo,l.numberIndexInfo),u}}}}return i}function Ee(e){return void 0!==e.exports.get("export=")}function Ne(e){return vi(Ie(e))}function Ae(t){var r=Ne(t),n=Se(t);return n!==t&&e.addRange(r,zn(or(n))),r}function Pe(e,t){var r=Ie(t);if(r)return r.get(e)}function Fe(e,t){var r=Pe(e,t);if(r)return r;var n=Se(t);if(n!==t){var i=or(n);return 16382&i.flags?void 0:ui(i,e)}}function we(e){return 32&e.flags?tn(e,"resolvedExports"):1536&e.flags?Ie(e):e.exports||jx}function Ie(e){var t=N(e);return t.resolvedExports||(t.resolvedExports=Me(e))}function Oe(t,r,n,i){r&&r.forEach(function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&_e(o)!==_e(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}})}function Me(t){function r(t){if(t&&1952&t.flags&&e.pushIfUnique(n,t)){var i=e.cloneMap(t.exports),a=t.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=e.createMap(),c=0,u=a.declarations;c=l?u.substr(0,l-"...".length)+"...":u}function dt(e){return 9469291&e}function pt(){function t(t,r,n){return{enclosingDeclaration:t,flags:r,tracker:n&&n.trackSymbol?n:{trackSymbol:e.noop},encounteredError:!1,visitedSymbols:void 0,inferTypeParameters:void 0}}function n(t,s){function l(t){e.Debug.assert(!!(65536&t.flags));var r,i=t.declaration.readonlyToken?e.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.createToken(t.declaration.questionToken.kind):void 0;r=An(t)?e.createTypeOperatorNode(n(Pn(t),s)):n(Tn(t),s);var o=u(Cn(t),s,r),c=n(En(t),s),l=e.createMappedTypeNode(i,o,a,c);return e.setEmitFlags(l,1)}function _(t){function n(){var t=!!(8192&a.flags)&&e.some(a.declarations,function(t){return e.hasModifier(t,32)}),r=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,function(e){return 273===e.parent.kind||239===e.parent.kind}));if(t||r)return(!!(4096&s.flags)||s.visitedSymbols&&s.visitedSymbols.has(i))&&(!(8&s.flags)||nt(a,s.enclosingDeclaration))}var i,a=t.symbol;if(a){var o=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags;if(i=(o?"+":"")+r(a),Mf(a.valueDeclaration)){var c=t===Jf(a)?67901928:67216319;return g(a,s,c)}if(32&a.flags&&!er(a)&&!(204===a.valueDeclaration.kind&&2048&s.flags)||896&a.flags||n())return g(a,s,67216319);if(s.visitedSymbols&&s.visitedSymbols.has(i)){var u=yt(t);return u?g(u,s,67901928):e.createKeywordTypeNode(119)}s.visitedSymbols||(s.visitedSymbols=e.createMap()),s.visitedSymbols.set(i,!0);var l=d(t);return s.visitedSymbols["delete"](i),l}return d(t)}function d(t){if(Mn(t))return l(t);var r=Ln(t);if(!r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(!r.callSignatures.length&&!r.constructSignatures.length)return e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length){var n=r.callSignatures[0],i=o(n,162,s);return i}if(1===r.constructSignatures.length&&!r.callSignatures.length){var n=r.constructSignatures[0],i=o(n,163,s);return i}}var a=s.flags;s.flags|=4194304;var c=v(r);s.flags=a;var u=e.createTypeLiteralNode(c);return e.setEmitFlags(u,1024&s.flags?0:1)}function p(t){var r=t.typeArguments||e.emptyArray;if(t.target===YD){if(2&s.flags){var a=n(r[0],s);return e.createTypeReferenceNode("Array",[a])}var o=n(r[0],s);return e.createArrayTypeNode(o)}if(8&t.target.objectFlags){if(r.length>0){var c=i(r.slice(0,sa(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&&e.isClassLike(t.symbol.valueDeclaration)&&!nt(t.symbol,s.enclosingDeclaration))return _(t);var u=t.target.outerTypeParameters,l=0,d=void 0;if(u)for(var p=u.length;l0){var D=(t.target.typeParameters||e.emptyArray).length;x=i(r.slice(l,D),s)}var k=s.flags;s.flags|=16;var S=g(t.symbol,s,67901928,x);return s.flags=k,d?f(d,S):S}function f(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments;t.qualifier&&((e.isIdentifier(t.qualifier)?t.qualifier:t.qualifier.right).typeArguments=n),t.typeArguments=r.typeArguments;for(var i=m(r),a=0,o=i;a0){var N=e.createUnionOrIntersectionTypeNode(131072&t.flags?168:169,E);return N}return void(s.encounteredError||262144&s.flags||(s.encounteredError=!0))}if(48&S)return e.Debug.assert(!!(65536&t.flags)),_(t);if(524288&t.flags){var A=t.type,P=n(A,s);return e.createTypeOperatorNode(P)}if(1048576&t.flags){var F=n(t.objectType,s),P=n(t.indexType,s);return e.createIndexedAccessTypeNode(F,P)}if(2097152&t.flags){var w=n(t.checkType,s),I=s.inferTypeParameters;s.inferTypeParameters=t.root.inferTypeParameters;var O=n(t.extendsType,s);s.inferTypeParameters=I;var M=n(Yo(t),s),L=n(Zo(t),s);return e.createConditionalTypeNode(w,O,M,L)}return 4194304&t.flags?n(t.typeVariable,s):void e.Debug.fail("Should be unreachable.")}function i(t,r){if(e.some(t)){for(var i=[],a=0,o=t;a0)):o=[t],o}function p(t,r){var n,i=Sv(t);return 524384&i.flags&&(n=e.createNodeArray(e.map(pr(t),function(e){return l(e,r)}))),n}function f(t,r,n){e.Debug.assert(t&&0<=r&&ro){var _=a(t,n-1,o);return e.isEntityName(_)?e.createQualifiedName(_,d):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return d}var o=d(t,r,n,!(16384&r.flags));r.flags|=16777216;var c=bt(o[0],r);r.flags^=16777216;var u=67216319===n;if(s.test(c)){var l=o.length>1?a(o,o.length-1,1):void 0,_=i||f(o,0,r),p=e.createLiteralTypeNode(e.createLiteral(c.substring(1,c.length-1)));if(!l||e.isEntityName(l)){if(l){var g=e.isIdentifier(l)?l:l.right;g.typeArguments=void 0}return e.createImportTypeNode(p,l,_,u)}var y=m(l),v=y.objectType.typeName;return e.createIndexedAccessTypeNode(e.createImportTypeNode(p,v,_,u),y.indexType)}var h=a(o,o.length-1,0);if(e.isIndexedAccessTypeNode(h))return h;if(u)return e.createTypeQueryNode(h);var g=e.isIdentifier(h)?h:h.right,b=g.typeArguments;return g.typeArguments=void 0,e.createTypeReferenceNode(h,b)}function y(t,r,n,i){function a(t,n){var i=f(t,n,r),o=t[n];0===n&&(r.flags|=16777216);var s=bt(o,r);0===n&&(r.flags^=16777216);var c=e.setEmitFlags(e.createIdentifier(s,i),16777216);return c.symbol=o,n>0?e.createQualifiedName(a(t,n-1),c):c}var o=d(t,r,n);return!i||1===o.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),a(o,o.length-1)}function v(t,r,n){function i(t,n){var a=f(t,n,r),o=t[n];0===n&&(r.flags|=16777216);var s=bt(o,r);0===n&&(r.flags^=16777216);var c=s.charCodeAt(0),u=e.isIdentifierStart(c,Ux);if(0===n||u){var l=e.setEmitFlags(e.createIdentifier(s,a),16777216);return l.symbol=o,n>0?e.createPropertyAccess(i(t,n-1),l):l}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var _=void 0;return e.isSingleOrDoubleQuote(c)?(_=e.createLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)})),_.singleQuote=39===c):""+ +s===s&&(_=e.createLiteral(+s)),_||(_=e.setEmitFlags(e.createIdentifier(s,a),16777216),_.symbol=o),e.createElementAccess(i(t,n-1),_)}var a=d(t,r,n);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),u=s.encounteredError?void 0:c;return u},indexInfoToIndexSignatureDeclaration:function(r,n,i,o,s){e.Debug.assert(void 0===i||0===(8&i.flags));var c=t(i,o,s),u=a(r,n,c),l=c.encounteredError?void 0:u;return l},signatureToSignatureDeclaration:function(r,n,i,a,s){e.Debug.assert(void 0===i||0===(8&i.flags));var c=t(i,a,s),u=o(r,n,c),l=c.encounteredError?void 0:u;return l},symbolToEntityName:function(r,n,i,a,o){e.Debug.assert(void 0===i||0===(8&i.flags));var s=t(i,a,o),c=y(r,s,n,!1),u=s.encounteredError?void 0:c;return u},symbolToExpression:function(r,n,i,a,o){e.Debug.assert(void 0===i||0===(8&i.flags));var s=t(i,a,o),c=v(r,s,n),u=s.encounteredError?void 0:c;return u},symbolToTypeParameterDeclarations:function(r,n,i,a){e.Debug.assert(void 0===n||0===(8&n.flags));var o=t(n,i,a),s=p(r,o),c=o.encounteredError?void 0:s;return c},symbolToParameterDeclaration:function(r,n,i,a){e.Debug.assert(void 0===n||0===(8&n.flags));var o=t(n,i,a),s=_(r,o),c=o.encounteredError?void 0:s;return c},typeParameterToDeclaration:function(r,n,i,a){e.Debug.assert(void 0===n||0===(8&n.flags));var o=t(n,i,a),s=l(r,o),c=o.encounteredError?void 0:s;return c}}}function ft(t,r,n,i){function a(i){var a=e.createTypePredicateNode(1===t.kind?e.createIdentifier(t.parameterName):e.createThisTypeNode(),eD.typeToTypeNode(t.type,r,3112960|dt(n)|512)),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}return i?a(i).getText():e.usingSingleLineStringWriter(a)}function mt(e){for(var t=[],r=0,n=0;n=0){for(var n=qk.length,i=r;i=0;r--){if(Ct(qk[r],Vk[r]))return-1;if(qk[r]===e&&Vk[r]===t)return r}return-1}function Ct(t,r){if(0===r)return N(t).type;if(2===r)return N(t).declaredType;if(1===r)return t.resolvedBaseConstructorType;if(3===r)return t.resolvedReturnType;if(4===r){var n=t.resolvedBaseConstraint;return n&&n!==qD}e.Debug.fail("Unhandled TypeSystemPropertyName "+r)}function Tt(){return qk.pop(),Vk.pop(),Uk.pop()}function Et(t){return t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 231:case 232:case 247:case 246:case 245:case 244:return!1;default:return!0}}),t&&t.parent}function Nt(t){var r=Rr(Be(t));return r.typeParameters?aa(r,e.map(r.typeParameters,function(e){return gD})):r}function At(e,t){var r=ui(e,t);return r?or(r):void 0}function Pt(e){return e&&0!==(1&e.flags)}function Ft(e){var t=Re(e);return t&&N(t).type||Jt(e,!1)}function wt(t){return 146===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function It(t,r,n){if(t=Wl(t,function(e){return!(12288&e.flags)}),16384&t.flags)return RD;if(131072&t.flags)return Hl(t,function(e){return It(e,r,n)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=r;o=2?Za(gD):ik;var o=e.map(i,function(t){return e.isOmittedExpression(t)?gD:Kt(t,r,n)}),s=io(o);return r&&(s=oa(s),s.pattern=t),s}function Vt(e,t,r){return 179===e.kind?qt(e,t,r):Ut(e,t,r)}function Wt(t,r){var n=Jt(t,!0);return n?(r&&Au(t,n),1024&n.flags&&(e.isBindingElement(t)||!t.type)&&n.symbol!==Re(t)&&(n=AD),Cu(n)):(n=e.isParameter(t)&&t.dotDotDotToken?ik:gD,r&&Qx&&(Ht(t)||Nu(t,n)),n)}function Ht(t){var r=e.getRootDeclaration(t),n=148===r.kind?r.parent:r;return Wg(n)}function Gt(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Ds(r)}function Xt(t){var r=N(t);if(!r.type){if(4194304&t.flags)return r.type=Nt(t);if(t===iD||t===aD)return r.type=gD;var n=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(n))return r.type=gD;if(e.isSourceFile(n)){var i=e.cast(n,e.isJsonSourceFile);return r.type=i.statements.length?ug(i.statements[0].expression):RD}if(248===n.kind)return r.type=ug(n.expression);if(e.isInJavaScriptFile(n)&&e.isJSDocPropertyLikeTag(n)&&n.typeExpression)return r.type=Ds(n.typeExpression.type);if(!kt(t,0))return hD;var a=void 0;if(199===n.kind||184===n.kind&&199===n.parent.kind)a=zt(t);else if(e.isJSDocPropertyLikeTag(n)||e.isPropertyAccessExpression(n)||e.isIdentifier(n)||e.isMethodDeclaration(n)&&!e.isObjectLiteralMethod(n)||e.isMethodSignature(n)){if(9136&t.flags)return tr(t);a=Gt(n)||gD}else e.isPropertyAssignment(n)?a=Gt(n)||ig(n):e.isJsxAttribute(n)?a=Gt(n)||zd(n):e.isShorthandPropertyAssignment(n)?a=Gt(n)||ng(n.name,0):e.isObjectLiteralMethod(n)?a=Gt(n)||ag(n,0):e.isParameter(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isVariableDeclaration(n)||e.isBindingElement(n)?a=Wt(n,!0):e.Debug.fail("Unhandled declaration kind! "+e.Debug.showSyntaxKind(n)); Tt()||(a=ar(t)),r.type=a}return r.type}function Qt(t){if(t){if(155===t.kind){var r=e.getEffectiveReturnTypeNode(t);return r&&Ds(r)}var n=e.getEffectiveSetAccessorTypeAnnotationNode(t);return n&&Ds(n)}}function Yt(e){var t=rx(e);return t&&t.symbol}function Zt(e){return Oi(Ni(e))}function $t(t){var r=N(t);if(!r.type){var n=e.getDeclarationOfKind(t,155),i=e.getDeclarationOfKind(t,156);if(n&&e.isInJavaScriptFile(n)){var a=Mt(n);if(a)return r.type=a}if(!kt(t,0))return hD;var o=void 0,s=Qt(n);if(s)o=s;else{var c=Qt(i);c?o=c:n&&n.body?o=um(n):(Qx&&(i?m(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ut(t)):(e.Debug.assert(!!n,"there must existed getter as we are current checking either setter or getter in this function"),m(n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ut(t)))),o=gD)}if(!Tt()&&(o=gD,Qx)){var u=e.getDeclarationOfKind(t,155);m(u,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,ut(t))}r.type=o}return r.type}function er(e){var t=br(Er(e));return 1081344&t.flags?t:void 0}function tr(t){var r=N(t);if(!r.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))r.type=gD;else if(199===t.valueDeclaration.kind||184===t.valueDeclaration.kind&&199===t.valueDeclaration.parent.kind)r.type=zt(t);else{var n=Ve(16,t);if(32&t.flags){var i=er(t);r.type=i?To([n,i]):n}else r.type=Hx&&16777216&t.flags?du(n):n}return r.type}function rr(e){var t=N(e);return t.type||(t.type=Or(e)),t.type}function nr(e){var t=N(e);if(!t.type){var r=de(e);t.type=67216319&r.flags?or(r):hD}return t.type}function ir(t){var r=N(t);if(!r.type)if(100===zx)m(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),r.type=hD;else{if(!kt(t,0))return hD;zx++;var n=Xs(or(r.target),r.mapper);zx--,Tt()||(n=ar(t)),r.type=n}return r.type}function ar(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(m(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ut(t)),hD):(Qx&&m(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,ut(t)),gD)}function or(t){return 1&e.getCheckFlags(t)?ir(t):2048&e.getCheckFlags(t)?zu(t):7&t.flags?Xt(t):9136&t.flags?tr(t):8&t.flags?rr(t):98304&t.flags?$t(t):2097152&t.flags?nr(t):hD}function sr(t,r){return void 0!==t&&void 0!==r&&0!==(4&e.getObjectFlags(t))&&t.target===r}function cr(t){return 4&e.getObjectFlags(t)?t.target:t}function ur(t,r){function n(t){if(7&e.getObjectFlags(t)){var i=cr(t);return i===r||e.forEach(xr(i),n)}if(262144&t.flags)return e.forEach(t.types,n)}return n(t)}function lr(t,r){for(var n=0,i=r;n0)return!0;if(1081344&e.flags){var t=Qn(e);return t&&Sr(t)&&mr(t)}return!1}function yr(t){var r=t.symbol.valueDeclaration;if(e.isInJavaScriptFile(r)){var n=e.getJSDocAugmentsTag(r);if(n)return n["class"]}return e.getClassExtendsHeritageClauseElement(r)}function vr(t,r,n){var i=e.length(r),a=e.isInJavaScriptFile(n);return e.filter(_i(t,1),function(t){return(a||i>=Ti(t.typeParameters))&&i<=e.length(t.typeParameters)})}function hr(t,r,n){var i=vr(t,r,n),a=e.map(r,Ds);return e.sameMap(i,function(t){return e.some(t.typeParameters)?zi(t,a,e.isInJavaScriptFile(n)):t})}function br(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getClassExtendsHeritageClauseElement(r),i=yr(t);if(!i)return t.resolvedBaseConstructorType=bD;if(!kt(t,1))return hD;var a=ug(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),ug(n.expression)),327680&a.flags&&Ln(a),!Tt())return m(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ut(t.symbol)),t.resolvedBaseConstructorType=hD;if(!(1&a.flags||a===kD||gr(a)))return m(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,_t(a)),t.resolvedBaseConstructorType=hD;t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function xr(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[eo(yo(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&Dr(t),64&t.symbol.flags&&Cr(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function Dr(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=ai(br(t));if(!(327681&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=yr(t),a=Ca(i),o=r&&r.symbol?Rr(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&kr(o))n=ca(i,r.symbol,a);else if(1&r.flags)n=r;else{var s=hr(r,i.typeArguments,i);if(!s.length)return m(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=Ri(s[0])}return n===hD?t.resolvedBaseTypes=e.emptyArray:Sr(n)?t===n||ur(n,t)?(m(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,_t(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray):(t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[n]):(m(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,_t(n)),t.resolvedBaseTypes=e.emptyArray)}function kr(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=e.typeArguments;return t[r].symbol!==n[r].symbol}return!0}function Sr(t){return 134283265&t.flags&&!Mn(t)||262144&t.flags&&!e.forEach(t.types,function(e){return!Sr(e)})}function Cr(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var r=0,n=t.symbol.declarations;r=d&&s<=p){var f=p?ji(_,Ei(o,_.typeParameters,d,a)):ln(_);f.typeParameters=t.localTypeParameters,f.resolvedReturnType=t,c.push(f)}}return c}function dn(e,t,r,n,i){for(var a=0,o=e;a0)return;for(var i=1;i1){var _=c.thisParameter;if(e.forEach(u,function(e){return e.thisParameter})){var d=yo(e.map(u,function(e){return e.thisParameter?or(e.thisParameter):gD}),2);_=gu(c.thisParameter,d)}l=ln(c),l.thisParameter=_,l.unionSignatures=u}(n||(n=[])).push(l)}}}return n||e.emptyArray}function mn(e,t){for(var r=[],n=!1,i=0,a=e;i0&&(l=e.map(l,function(e){var t=ln(e);return t.resolvedReturnType=bn(Ri(e),o,c),t})),a=e.concatenate(a,l)}i=e.concatenate(i,_i(u,0)),r=vn(r,fi(u,0)),n=vn(n,fi(u,1))},u=0;u=2):134217728&t.flags?RD:524288&t.flags?LD:t}function oi(t,r){for(var n,i=131072&t.flags,a=i?24:0,o=i?0:16777216,s=4,c=0,u=0,l=t.types;u=0),n>=r.minArgumentCount}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length)}function Di(t){if(!e.isJSDocParameterTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&282===n.type.kind}function ki(e){var t=e.parameterName,r=Ds(e.type);return 71===t.kind?Si(t&&t.escapedText,t&&fg(e.parent.parameters,t),r):Ci(r)}function Si(e,t,r){return{kind:1,parameterName:e,parameterIndex:t,type:r}}function Ci(e){return{kind:0,type:e}}function Ti(e){var t=0;if(e)for(var r=0;r=n&&o<=a){t||(t=[]);for(var s=o;sc.arguments.length&&!f||l||hi(d);g||(a=n.length)}if(!(155!==t.kind&&156!==t.kind||Qr(t)||s&&o)){var y=155===t.kind?156:155,v=e.getDeclarationOfKind(Re(t),y);v&&(o=Yt(v))}var h=154===t.kind?Er(Le(t.parent.symbol)):void 0,b=h?h.localTypeParameters:yi(t),x=Pi(t,u,h),D=e.hasRestParameter(t)||e.isInJavaScriptFile(t)&&Ai(t,n);r.resolvedSignature=un(t,b,o,n,x,void 0,a,D,i)}return r.resolvedSignature}function Ai(t,r){if(e.isJSDocSignature(t)||!Fi(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0}),o=v(3,"args");return o.type=a?eo(Ds(a.type)):ik,o.isRestParameter=!0,a&&r.pop(),r.push(o),!0}function Pi(t,r,n){if(r)return Ds(t.parameters[0].type);if(n)return n;var i=e.getEffectiveReturnTypeNode(t);if(i)return Ds(i);if(155===t.kind&&!Qr(t)){var a=e.getDeclarationOfKind(Re(t),156);return Qt(a)}return e.nodeIsMissing(t.body)?gD:void 0}function Fi(t){function r(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&&r(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,r)}}var n=A(t);return void 0===n.containsArgumentsReference&&(8192&n.flags?n.containsArgumentsReference=!0:n.containsArgumentsReference=r(t.body)),n.containsArgumentsReference}function wi(t){if(!t)return e.emptyArray;for(var r=[],n=0;n0&&a.body){var o=t.declarations[n-1];if(a.parent===o.parent&&a.kind===o.kind&&a.pos===o.end)continue}r.push(Ni(a))}}return r}function Ii(e){var t=be(e,e);if(t){var r=Se(t);if(r)return or(r)}return gD}function Oi(e){if(e.thisParameter)return or(e.thisParameter)}function Mi(e){return void 0!==Li(e)}function Li(t){if(!t.resolvedTypePredicate){if(t.target){var r=Li(t.target);t.resolvedTypePredicate=r?Bs(r,t.mapper):Tk}else if(t.unionSignatures)t.resolvedTypePredicate=vo(t.unionSignatures)||Tk;else{var n=t.declaration;t.resolvedTypePredicate=n&&n.type&&160===n.type.kind?ki(n.type):Tk}e.Debug.assert(!!t.resolvedTypePredicate)}return t.resolvedTypePredicate===Tk?void 0:t.resolvedTypePredicate}function Ri(t){if(!t.resolvedReturnType){if(!kt(t,3))return hD;var r=void 0;if(r=t.target?Xs(Ri(t.target),t.mapper):t.unionSignatures?yo(e.map(t.unionSignatures,Ri),2):um(t.declaration),!Tt()&&(r=gD,Qx)){var n=t.declaration,i=e.getNameOfDeclaration(n);i?m(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)):m(n,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=r}return t.resolvedReturnType}function Bi(e){return!e.resolvedReturnType&&St(e,3)>=0}function Ji(t){if(t.hasRestParameter){var r=or(e.lastOrUndefined(t.parameters));if(4&e.getObjectFlags(r)&&r.target===YD)return r.typeArguments[0]}return gD}function zi(t,r,n){r=Ei(r,t.typeParameters,Ti(t.typeParameters),n);var i=t.instantiations||(t.instantiations=e.createMap()),a=na(r),o=i.get(a);return o||i.set(a,o=ji(t,r)),o}function ji(e,t){return Js(e,Ki(e,t),!0)}function Ki(e,t){return As(e.typeParameters,t)}function qi(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=Ui(e)):e}function Ui(e){return Js(e,Ps(e.typeParameters),!0)}function Vi(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=Wi(e)):e}function Wi(t){return zi(t,e.map(t.typeParameters,function(e){ return e.target&&!qn(e.target)?e.target:e}),e.isInJavaScriptFile(t.declaration))}function Hi(t){var r=t.typeParameters;if(r){var n=Ps(r),i=e.map(r,function(e){return Xs(Qn(e),n)||RD});return Js(t,As(r,i),!0)}return t}function Gi(t){if(!t.isolatedSignatureType){var r=154===t.declaration.kind||158===t.declaration.kind,n=Ve(16);n.members=jx,n.properties=e.emptyArray,n.callSignatures=r?e.emptyArray:[t],n.constructSignatures=r?[t]:e.emptyArray,t.isolatedSignatureType=n}return t.isolatedSignatureType}function Xi(e){return e.members.get("__index")}function Qi(t,r){var n=1===r?134:137,i=Xi(t);if(i)for(var a=0,o=i.declarations;a1&&(t+=":"+a),n+=a}return t}function ia(e,t){for(var r=0,n=0,i=e;na.length)){var l=c&&289!==t.parent.kind,_=s===a.length?l?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:l?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,d=_t(i,void 0,2);if(m(t,_,d,s,a.length),!c)return hD}var p=e.concatenate(i.outerTypeParameters,Ei(n,a,s,c));return aa(i,p)}return xa(t,r)?i:hD}function ua(t,r){var n=Rr(t),i=N(t),a=i.typeParameters,o=na(r),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=Xs(n,As(a,Ei(r,a,Ti(a),e.isInJavaScriptFile(t.valueDeclaration))))),s}function la(t,r,n){var i=Rr(r),a=N(r).typeParameters;if(a){var o=e.length(t.typeArguments),s=Ti(a);return oa.length?(m(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,ut(r),s,a.length),hD):ua(r,n)}return xa(t,r)?i:hD}function _a(t){switch(t.kind){case 161:return t.typeName;case 206:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function da(e,t){return e?ye(e,t)||fD:fD}function pa(e,t){var r=Ca(e);if(t===fD)return hD;var n=ma(e,t,r);if(n)return n;var i=Br(t);if(i)return xa(e,t)?32768&i.flags?ha(i,e):i:hD;if(!(67216319&t.flags&&ba(e)))return hD;var a=fa(e,t,r);return a?a:(da(_a(e),67901928),or(t))}function fa(e,t,r){var n=Rf(t),i=or(t),a=i.symbol&&i.symbol!==t&&!zf(i)&&ma(e,i.symbol,r);if(a||n)return a&&n?To([n,a]):a||n}function ma(t,r,n){if(96&r.flags){if(r.valueDeclaration&&e.isBinaryExpression(r.valueDeclaration.parent)){var i=fa(t,r,n);if(i)return i}return ca(t,r,n)}return 524288&r.flags?la(t,r,n):16&r.flags&&ba(t)&&(r.members||e.getJSDocClassTag(r.valueDeclaration))?Jf(r):void 0}function ga(e,t){var r=Ke(4194304);return r.typeVariable=e,r.substitute=t,r}function ya(e){return 167===e.kind&&1===e.elementTypes.length}function va(e,t,r){return ya(t)&&ya(r)?va(e,t.elementTypes[0],r.elementTypes[0]):Xo(Ds(t))===e?Ds(r):void 0}function ha(t,r){for(var n;r&&!e.isStatement(r)&&285!==r.kind;){var i=r.parent;if(170===i.kind&&r===i.trueType){var a=va(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?ga(t,To(e.append(n,t))):t}function ba(e){return 2097152&e.flags&&161===e.kind}function xa(t,r){return!t.typeArguments||(m(t,e.Diagnostics.Type_0_is_not_generic,r?ut(r):t.typeName?e.declarationNameToString(t.typeName):"(anonymous)"),!1)}function Da(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return xa(t),SD;case"Number":return xa(t),CD;case"Boolean":return xa(t),ND;case"Void":return xa(t),PD;case"Undefined":return xa(t),bD;case"Null":return xa(t),DD;case"Function":case"function":return xa(t),QD;case"Array":case"array":return r&&r.length?void 0:ik;case"Promise":case"promise":return r&&r.length?void 0:sm(gD);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=Ds(r[0]),i=Ds(r[1]),a=Yi(i,!1);return Qe(void 0,jx,e.emptyArray,e.emptyArray,n===SD&&a,n===CD&&a)}return gD}return xa(t),gD}}}function ka(e){var t=Ds(e.type);return Hx?_u(t,8192):t}function Sa(e){var t=A(e);if(!t.resolvedType){var r=void 0,n=void 0,i=67901928;ba(e)&&(n=Da(e),i|=67216319),n||(r=da(_a(e),i),n=pa(e,r)),t.resolvedSymbol=r,t.resolvedType=n}return t.resolvedType}function Ca(t){return e.map(t.typeArguments,Ds)}function Ta(e){var t=A(e);return t.resolvedType||(t.resolvedType=Cu(ug(e.exprName))),t.resolvedType}function Ea(t,r){function n(e){for(var t=e.declarations,r=0,n=t;r=0}function co(e){for(var t=0,r=0,n=e.types;rt[a-1].id?~a:e.binarySearch(t,n,oo,e.compareValues);o<0&&(65536&i&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&_o(t,n)||t.splice(~o,0,n))}return r}function lo(e,t,r){for(var n=0,i=r;n0;)r--,po(t[r],t)&&e.orderedRemoveItemAt(t,r)}function go(t,r){for(var n=t.length;n>0;){n--;var i=t[n],a=32&i.flags&&2&r||64&i.flags&&4&r||1024&i.flags&&512&r||96&i.flags&&8388608&i.flags&&so(t,i.regularType);a&&e.orderedRemoveItemAt(t,n)}}function yo(e,t,r,n){if(void 0===t&&(t=1),0===e.length)return FD;if(1===e.length)return e[0];var i=[],a=lo(i,0,e);if(1&a)return 33554432&a?vD:gD;switch(t){case 1:1120&a&&go(i,a);break;case 2:mo(i)}return 0===i.length?8192&a?16777216&a?DD:kD:4096&a?16777216&a?bD:xD:FD:bo(i,8374815&a?0:268435456,r,n)}function vo(t){for(var r,n=[],i=0,a=t;i0;){n--;var i=t[n],a=2&i.flags&&32&r||4&i.flags&&64&r||512&i.flags&&1024&r;a&&e.orderedRemoveItemAt(t,n)}}function Co(t){for(var r=e.findIndex(t,function(e){return 0!==(268435456&e.flags)}),n=t[r],i=n.types,a=t.length-1,o=function(){var r=t[a];268435456&r.flags&&(i=e.filter(i,function(e){return so(r.types,e)}),e.orderedRemoveItemAt(t,a)),a--};a>r;)o();return i!==n.types&&(t[r]=bo(i,268435456&n.flags),!0)}function To(t,r,n){if(0===t.length)return RD;var i=[],a=ko(i,0,t);if(16384&a)return FD;if(1&a)return 33554432&a?vD:gD;if((2&a&&32&a||4&a&&64&a||512&a&&1024&a)&&So(i,a),67108864&a&&!(65536&a)&&i.push(RD),1===i.length)return i[0];if(131072&a){if(268435456&a&&Co(i))return To(i,r,n);var o=e.findIndex(i,function(e){return 0!==(131072&e.flags)}),s=i[o];return yo(e.map(s.types,function(t){return To(e.replaceElement(i,o,t))}),1,r,n)}var c=na(i),u=uD.get(c);if(!u){var l=ia(i,12288);u=Ke(262144|l),uD.set(c,u),u.types=i,u.aliasSymbol=r,u.aliasTypeArguments=n}return u}function Eo(t){var r=A(t);if(!r.resolvedType){var n=ss(t);r.resolvedType=To(e.map(t.types,Ds),n,cs(n))}return r.resolvedType}function No(e,t){var r=Ke(524288);return r.type=e,r.stringsOnly=t,r}function Ao(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=No(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=No(e,!1))}function Po(t,r){if(!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var n=nn(t).nameType;if(!n&&!e.isKnownSymbol(t)){var i=e.getNameOfDeclaration(t.valueDeclaration);n=gs(i&&e.isNumericLiteral(i)?+i.text:i&&146===i.kind&&e.isNumericLiteral(i.expression)?+i.expression.text:e.symbolName(t))}if(n&&n.flags&r)return n}return FD}function Fo(t,r){return yo(e.map(zn(t),function(e){return Po(e,r)}))}function wo(e){var t=fi(e,1);return t!==wk?t:void 0}function Io(t,r){return void 0===r&&(r=Zx),131072&t.flags?To(e.map(t.types,function(e){return Io(e,r)})):262144&t.flags?yo(e.map(t.types,function(e){return Io(e,r)})):Pm(t,7372800)?Ao(t,r):32&e.getObjectFlags(t)?Tn(t):t===vD?vD:1&t.flags?LD:r?fi(t,0)?SD:Fo(t,32):fi(t,0)?yo([SD,CD,Fo(t,1024)]):wo(t)?yo([CD,Fo(t,1056)]):Fo(t,1120)}function Oo(e){if(Zx)return e;var t=Ha();return t?ua(t,[e,SD]):SD}function Mo(e){var t=Oo(Io(e));return 16384&t.flags?SD:t}function Lo(t){var r=A(t);if(!r.resolvedType)switch(t.operator){case 128:r.resolvedType=Io(Ds(t.type));break;case 141:r.resolvedType=138===t.type.kind?hs(e.walkUpParenthesizedTypes(t.parent)):hD}return r.resolvedType}function Ro(e,t){var r=Ke(1048576);return r.objectType=e,r.indexType=t,r}function Bo(t,r,n,i){var a=n&&185===n.kind?n:void 0,o=Hr(r)?Zr(r):a&&Hp(a.argumentExpression,r,!1)?e.getPropertyNameForKnownSymbolName(e.idText(a.argumentExpression.name)):void 0;if(void 0!==o){var s=ui(t,o);if(s){if(a){if(Rp(s,a,99===a.expression.kind),e.isAssignmentTarget(a)&&(xm(a,s)||Dm(a)))return m(a.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,ut(s)),hD;i&&(A(n).resolvedSymbol=s)}return or(s)}}if(!(12288&r.flags)&&Fm(r,1654)){if(Pt(t))return t;var c=Fm(r,84)&&fi(t,1)||fi(t,0)||void 0;if(c){if(n&&!Fm(r,6)){var u=185===n.kind?n.argumentExpression:n.indexType;m(u,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,_t(r))}else a&&c.isReadonly&&(e.isAssignmentTarget(a)||e.isDeleteTarget(a))&&m(a,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,_t(t));return c.type}if(16384&r.flags)return FD;if(a&&!Im(t))return Qx&&!qx.suppressImplicitAnyIndexErrors&&(mi(t,1)?m(a.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):m(a,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,_t(t))),gD}if(n){var u=185===n.kind?n.argumentExpression:n.indexType;96&r.flags?m(u,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,_t(t)):6&r.flags?m(u,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,_t(t),_t(r)):m(u,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,_t(r))}return hD}function Jo(e){return Pm(e,544243712)}function zo(e){return Pm(e,7897088)}function jo(e){if(65536&e.flags&&!Mn(e)){var t=Ln(e);return 0===t.properties.length&&0===t.callSignatures.length&&0===t.constructSignatures.length&&t.stringIndexInfo&&!t.numberIndexInfo}return!1}function Ko(t){return 32&e.getObjectFlags(t)&&En(t)===FD}function qo(e){return 1048576&e.flags?Uo(e):e}function Uo(t){if(t.simplified)return t.simplified===qD?t:t.simplified;t.simplified=qD;var r=t.objectType;if(262144&r.flags&&Jo(r)){if(e.some(r.types,jo)){for(var n=[],i=[],a=0,o=r.types;a=t?RD:r}}function ws(e){return!!e.typeParameters}function Is(e){return e&&ws(e)?Fu(e.typeParameters,e.signature,2|e.flags,e.compareTypes,e.inferences):e}function Os(e,t){return e?t?function(r){return Xs(e(r),t)}:e:t}function Ms(e,t,r){return function(n){return n===e?t:r(n)}}function Ls(e){return 32768&e.flags?vD:e}function Rs(e){var t=Ke(32768);return t.symbol=e.symbol,t.target=e,t}function Bs(t,r){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:Xs(t.type,r)}:{kind:0,type:Xs(t.type,r)}}function Js(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,Rs),r=Os(As(t.typeParameters,i),r);for(var a=0,o=i;ar.parameters.length)return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(r=Vi(r),t=rf(t,r,void 0,s));var c=r.declaration?r.declaration.kind:0,u=!n&&Gx&&153!==c&&152!==c&&154!==c,l=-1,_=Oi(t);if(_&&_!==PD){var d=Oi(r);if(d){var p=!u&&s(_,d,!1)||s(d,_,a);if(!p)return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;l&=p}}for(var f=gc(t),m=gc(r),g=yc(t,f,r,m),y=t.parameters,v=r.parameters,h=0;h0||Bh(t))&&E(r)&&!A(t,r)){if(i){var f=_i(t,0),m=_i(t,1);f.length>0&&_(Ri(f[0]),r,!1)||m.length>0&&_(Ri(m[0]),r,!1)?s(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,_t(t),_t(r)):s(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,_t(t),_t(r))}return 0}var x=0,k=J,S=H;if(H=!1,131072&t.flags?x=n===vS?h(t,r,i&&!(16382&t.flags)):b(t,r,i&&!(16382&t.flags)):(131072&r.flags?x=g(t,r,i&&!(16382&t.flags)&&!(16382&r.flags)):262144&r.flags?(H=!0,x=v(t,r,i)):262144&t.flags&&(x=h(t,r,!1)),!x&&(8355840&t.flags||8355840&r.flags)&&(x=D(t,r,i))&&(J=k)),!x&&262144&t.flags){var C=Gn(t,!!(131072&r.flags));C&&(x=_(C,r,i))&&(J=k)}return H=S,!x&&i&&(65536&t.flags&&16382&r.flags?u(t,r):t.symbol&&65536&t.flags&&XD===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,r)),x}function d(e,t){var r,n=e.flags&t.flags;return 65536&n?D(e,t,!1):393216&n&&(r=f(e,t))&&(r&=f(t,e))?r:524288&n?_(e.type,t.type,!1):1048576&n&&(r=_(e.objectType,t.objectType,!1))&&(r&=_(e.indexType,t.indexType,!1))?r:2097152&n&&e.root.isDistributive===t.root.isDistributive&&(r=_(e.checkType,t.checkType,!1))&&(r&=_(e.extendsType,t.extendsType,!1))&&(r&=_(Yo(e),Yo(t),!1))&&(r&=_(Zo(e),Zo(t),!1))?r:4194304&n?_(e.substitute,t.substitute,!1):0}function p(t,r,a,o){if(Pm(r,65536)&&!(512&e.getObjectFlags(r))){var c=!!(4096&e.getObjectFlags(t));if((n===gS||n===yS||n===vS)&&(ql(XD,r)||!c&&hc(r)))return!1;if(a)return p(t,a,void 0,o);for(var u=function(n){if(!fp(r,n.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,ut(n),_t(r));else{var a=t.symbol&&e.firstOrUndefined(t.symbol.declarations),u=void 0;if(n.valueDeclaration&&e.findAncestor(n.valueDeclaration,function(e){return e===a})){var l=n.valueDeclaration;e.Debug.assertNode(l,e.isObjectLiteralElementLike),i=l,e.isIdentifier(l.name)&&(u=wp(l.name,r))}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,ut(n),_t(r),u):s(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ut(n),_t(r))}return{value:!0}}},l=0,_=Rn(t);l<_.length;l++){var d=_[l],f=u(d);if("object"==typeof f)return f.value}}return!1}function f(e,t){for(var r=-1,n=e.types,i=0,a=n;i0&&e.every(r.properties,function(e){return!!(16777216&e.flags)})}return!!(262144&t.flags)&&e.every(t.types,E)}function A(t,r){for(var n=!!(4096&e.getObjectFlags(t)),i=0,a=zn(t);i":"-"+o.id}return n}function Fc(e,t,r){if(r===hS&&e.id>t.id){var n=e;e=t,t=n}if(Ac(e)&&Ac(t)){var i=[];return Pc(e,i)+","+Pc(t,i)}return e.id+","+t.id}function wc(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n=5&&65536&e.flags){var n=e.symbol;if(n)for(var i=0,a=0;a=5))return!0}}return!1}function Bc(e,t){return 0!==Jc(e,t,nc)}function Jc(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t),a=24&e.getDeclarationModifierFlagsFromSymbol(r);if(i!==a)return 0;if(i){if(Sv(t)!==Sv(r))return 0}else if((16777216&t.flags)!==(16777216&r.flags))return 0;return bm(t)!==bm(r)?0:n(or(t),or(r))}function zc(e,t,r){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var n=e.hasRestParameter?1:0,i=t.hasRestParameter?1:0;return!!(r&&e.minArgumentCount<=t.minArgumentCount&&(n>i||n===i&&e.parameters.length>=t.parameters.length))}function jc(t,r,n,i,a,o){if(t===r)return-1;if(!zc(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;t=qi(t),r=qi(r);var s=-1;if(!i){var c=Oi(t);if(c){var u=Oi(r);if(u){var l=o(c,u);if(!l)return 0;s&=l}}}for(var _=r.parameters.length,d=0;d<_;d++){var p=qc(t,d)?Ji(t):$f(t.parameters[d]),f=qc(r,d)?Ji(r):$f(r.parameters[d]),l=o(p,f);if(!l)return 0;s&=l}if(!a){var m=Li(t),g=Li(r);s&=void 0!==m||void 0!==g?Kc(m,g,o):o(Ri(t),Ri(r))}return s}function Kc(e,t,r){return void 0!==e&&void 0!==t&&ho(e,t)?r(e.type,t.type):0}function qc(e,t){return e.hasRestParameter&&t>=e.parameters.length-1}function Uc(e){for(var t,r=0,n=e;r1){var r=e.filter(t,Xu);if(r.length){var n=Cu(yo(r,2));return e.concatenate(e.filter(t,function(e){return!Xu(e)}),[n])}}return t}function Yu(e){return 28&e.priority?To(e.contraCandidates):Hc(e.contraCandidates)}function Zu(t,r,n){var i=Qu(t.candidates),a=Gu(t.typeParameter),o=!a&&t.topLevel&&(t.isFixed||!Lu(Ri(n),t.typeParameter)),s=a?e.sameMap(i,ms):o?e.sameMap(i,ru):i,c=1&r.flags||28&t.priority?yo(s,2):Wc(s);return Cu(c)}function $u(e,t){var r=e.inferences[t],n=r.inferredType;if(!n){var i=e.signature;if(i)if(r.candidates)n=Zu(r,e,i),16384&n.flags&&r.contraCandidates&&(n=Yu(r));else if(r.contraCandidates)n=Yu(r);else if(2&e.flags)n=wD;else{var a=ri(r.typeParameter);n=a?Xs(a,Os(Fs(e.signature.typeParameters,t),e)):el(!!(4&e.flags))}else n=Uu(r);r.inferredType=n;var o=qn(r.typeParameter);if(o){var s=Xs(o,e);e.compareTypes(n,an(s,n))||(r.inferredType=n=s)}}return n}function el(e){return e?gD:RD}function tl(e){for(var t=[],r=0;r=2||0===(34&r.flags)||268===r.valueDeclaration.parent.kind)){for(var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=C_(t.parent,n),a=n,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}o&&(i&&(A(a).flags|=65536),219===n.kind&&e.getAncestor(r.valueDeclaration,232).parent===n&&E_(t,n)&&(A(r.valueDeclaration).flags|=2097152),A(r.valueDeclaration).flags|=262144),i&&(A(r.valueDeclaration).flags|=131072)}}function E_(t,r){for(var n=t;190===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(197===n.parent.kind||198===n.parent.kind){var a=n.parent;i=43===a.operator||44===a.operator}return!!i&&!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}function N_(e,t){if(A(e).flags|=2,151===t.kind||154===t.kind){var r=t.parent;A(r).flags|=4}else A(t).flags|=4}function A_(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,A_)}function P_(e){var t=A(e);return void 0===t.hasSuperCall&&(t.superCall=A_(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function F_(e){var t=Re(e),r=Rr(t),n=br(r);return n===kD}function w_(t,r,n){var i=r.parent,a=e.getClassExtendsHeritageClauseElement(i);if(a&&!F_(i)){var o=P_(r);(!o||o.end>t.pos)&&m(t,n)}}function I_(t){var r=e.getThisContainer(t,!0),n=!1;switch(154===r.kind&&w_(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),192===r.kind&&(r=e.getThisContainer(r,!1),n=Ux<2),r.kind){case 238:m(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 237:m(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 154:L_(t,r)&&m(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 151:case 150:e.hasModifier(r,32)&&m(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 146:m(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}n&&N_(t,r);var i=O_(t,r);return!i&&Yx&&m(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),i||gD}function O_(t,r){if(void 0===r&&(r=e.getThisContainer(t,!1)),e.isFunctionLike(r)&&(!W_(t)||e.getThisParameter(r))){if(191===r.kind&&199===r.parent.kind&&3===e.getSpecialPropertyAssignmentKind(r.parent)){var n=r.parent.left.expression.expression,i=ug(n).symbol;if(i&&i.members&&16&i.flags)return d_(t,Jf(i))}var a=Zt(r)||j_(r);if(a)return d_(t,a)}if(e.isClassLike(r.parent)){var o=Re(r.parent),s=e.hasModifier(r,32)?or(o):Rr(o).thisType;return d_(t,s)}if(e.isInJavaScriptFile(t)){var s=M_(r);if(s&&s!==hD)return d_(t,s)}}function M_(t){var r=e.getJSDocType(t);if(r&&283===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return Ds(n.parameters[0].type)}}function L_(t,r){return!!e.findAncestor(t,function(e){return e===r?"quit":148===e.kind})}function R_(t){function r(t){return!!t&&(n?154===t.kind:!(!e.isClassLike(t.parent)&&183!==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))}var n=186===t.parent.kind&&t.parent.expression===t,i=e.getSuperContainer(t,!0),a=!1;if(!n)for(;i&&192===i.kind;)i=e.getSuperContainer(i,!0),a=Ux<2;var o=r(i),s=0;if(!o){var c=e.findAncestor(t,function(e){return e===i?"quit":146===e.kind});return c&&146===c.kind?m(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?m(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||183===i.parent.kind)?m(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):m(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),hD}if(n||154!==i.kind||w_(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),s=e.hasModifier(i,32)||n?512:256,A(t).flags|=s,153===i.kind&&e.hasModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?A(i).flags|=4096:A(i).flags|=2048),a&&N_(t.parent,i),183===i.parent.kind)return Ux<2?(m(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),hD):gD;var u=i.parent;if(!e.getClassExtendsHeritageClauseElement(u))return m(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),hD;var l=Rr(Re(u)),_=l&&xr(l)[0];return _?154===i.kind&&L_(t,i)?(m(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),hD):512===s?br(l):an(_,l.thisType):hD}function B_(e){return 153!==e.kind&&155!==e.kind&&156!==e.kind||183!==e.parent.kind?191===e.kind&&269===e.parent.kind?e.parent.parent:void 0:e.parent}function J_(t){return 4&e.getObjectFlags(t)&&t.target===nk?t.typeArguments[0]:void 0}function z_(t){return Hl(t,function(t){return 262144&t.flags?e.forEach(t.types,J_):J_(t)})}function j_(t){if(192!==t.kind){if(ec(t)){var r=kd(t);if(r){var n=r.thisParameter;if(n)return or(n)}}var i=e.isInJavaScriptFile(t);if(Yx||i){var a=B_(t);if(a){for(var o=ld(a),s=a,c=o;c;){var u=z_(c);if(u)return Xs(u,dd(a));if(269!==s.parent.kind)break;s=s.parent.parent,c=ld(s)}return o?fu(o):$m(a)}var l=t.parent;if(199===l.kind&&58===l.operatorToken.kind){var _=l.left;if(184===_.kind||185===_.kind){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&rl(d)===p.symbol)return}return $m(d)}}}}}function K_(t){var r=t.parent;if(ec(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=r.parameters.indexOf(t);if(t.dotDotDotToken){for(var a=[],o=i;o0&&(s=us(s,n(),t.symbol,c,0),o=[],a=e.createSymbolTable(),g=!1,y=!1,p=0);var C=ug(D.expression);if(!Od(C))return m(D,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),hD;s=us(s,C,t.symbol,c,0),b=x+1;continue}e.Debug.assert(155===D.kind||156===D.kind),oh(D)}!S||1120&S.flags?a.set(k.escapedName,k):oc(S,MD)&&(oc(S,CD)?y=!0:g=!0,i&&(f=!0)),o.push(k)}if(l)for(var F=0,w=zn(u);F0&&(s=us(s,n(),t.symbol,c,0)),s):n()}function Od(t){return!!(134217729&t.flags||14560&su(t)&&Od(cu(t))||65536&t.flags&&!Mn(t)||393216&t.flags&&!e.forEach(t.types,function(e){return!Od(e)}))}function Md(e,t){return pp(e,t),up(e)||gD}function Ld(e,t){return pp(e.openingElement,t),Jd(e.closingElement.tagName)?Vd(e.closingElement):ug(e.closingElement.tagName),up(e)||gD}function Rd(t,r){return pp(t.openingFragment,r),2===qx.jsx&&(qx.jsxFactory||e.getSourceFileOfNode(t).pragmas.has("jsx"))&&m(t,qx.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),up(t)||gD}function Bd(t){return!e.stringContains(t,"-")}function Jd(t){switch(t.kind){case 184:case 99:return!1;case 71:return e.isIntrinsicJsxName(t.escapedText);default:e.Debug.fail()}}function zd(e,t){return e.initializer?ng(e.initializer,t):TD}function jd(t,r){function n(){var t=Qe(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=RD,c=!1,u=!1,l=Yd(Gd(t)),_=0,d=a.properties;_0&&(s=us(s,n(),a.symbol,0,4096),o=e.createSymbolTable());var g=$m(p.expression,r);Pt(g)&&(c=!0),Od(g)?s=us(s,g,t.symbol,0,4096):i=i?To([i,g]):g}}c||o.size>0&&(s=us(s,n(),a.symbol,0,4096));var h=254===t.parent.kind?t.parent:void 0;if(h&&h.openingElement===t&&h.children.length>0){var b=Kd(h,r);if(!c&&l&&""!==l){u&&m(a,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(l));var x=v(33554436,l);x.type=1===b.length?b[0]:eo(yo(b));var D=e.createSymbolTable();D.set(l,x),s=us(s,Qe(a.symbol,D,e.emptyArray,e.emptyArray,void 0,void 0),a.symbol,0,4096)}}return c?gD:i&&s!==RD?To([i,s]):i||(s===RD?n():s)}function Kd(e,t){for(var r=[],n=0,i=e.children;n1&&m(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Qd(e){return Xd(d.ElementAttributesPropertyNameContainer,e)}function Yd(e){return Xd(d.ElementChildrenAttributeNameContainer,e)}function Zd(e){if(e){if(262144&e.flags){for(var t=[],r=0,n=e.types;rr?o-r:1,u=t.length>r+o?r+o:t.length;i[0]=o;for(var l=o,_=1;_r)return;var p=n;n=i,i=p}var f=n[t.length];return f>r?void 0:f}function Rp(t,r,n){if(t&&106500&t.flags&&t.valueDeclaration&&e.hasModifier(t.valueDeclaration,8)&&(!r||!e.isWriteOnlyAccess(r)||65536&t.flags&&!(32768&t.flags))){if(n){var i=e.findAncestor(r,e.isFunctionLikeDeclaration);if(i&&i.symbol===t)return}(1&e.getCheckFlags(t)?N(t).target:t).isReferenced=67108863}}function Bp(e,t){switch(e.kind){case 184:return Kp(e,e.expression,t,Cu(ug(e.expression)));case 145:return Kp(e,e.left,t,Cu(ug(e.left)));case 178:return Kp(e,e,t,Ds(e))}}function Jp(e,t,r){return Kp(e,178===e.kind?e:e.expression,r.escapedName,t)&&(!(8192&r.flags)||zp(r,t))}function zp(t,r){var n=tr(t),i=_i(fu(n),0);return e.Debug.assert(0!==i.length),i.some(function(e){var t=Oi(e);return!t||oc(r,jp(e,t,r))})}function jp(e,t,r){if(!e.typeParameters)return t;var n=Fu(e.typeParameters,e,0);return Vu(n.inferences,r,t),Xs(t,Ki(e,tl(n)))}function Kp(t,r,n,i){if(i===hD||Pt(i))return!0;var a=ui(i,n);return a?bp(t,r,i,a):e.isInJavaScriptFile(t)&&131072&i.flags&&i.types.some(function(e){return Kp(t,r,n,e)})}function qp(t){var r=t.initializer;if(232===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return Re(n)}else if(71===r.kind)return rl(r)}function Up(e){return mi(e,1)&&!mi(e,0)}function Vp(t){var r=e.skipParentheses(t);if(71===r.kind){var n=rl(r);if(3&n.flags)for(var i=t,a=t.parent;a;){if(220===a.kind&&i===a.statement&&qp(a)===n&&Up(sg(a.expression)))return!0;i=a,a=a.parent}}return!1}function Wp(t){var r=Dp(t.expression),n=t.argumentExpression;if(!n){var i=e.getSourceFileOfNode(t);if(187===t.parent.kind&&t.parent.expression===t){var a=e.skipTrivia(i.text,t.expression.end),o=t.end;vx(i,a,o-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;vx(i,a,o-a,e.Diagnostics.Expression_expected)}return hD}var s=Vp(n)?CD:ug(n);return r===hD||r===wD?r:Im(r)&&9!==n.kind?(m(n,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),hD):Jg(Wo(r,s,t),t)}function Hp(t,r,n){if(r===hD)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0===(1536&r.flags))return n&&m(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=rl(i);if(!a)return!1;var o=Ma(!0);return!!o&&(a===o||(n&&m(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),!1))}function Gp(t){return e.isCallOrNewExpression(t)}function Xp(t){return Gp(t)&&e.forEach(t.typeArguments,rh),188===t.kind?ug(t.template):149!==t.kind&&e.forEach(t.arguments,function(e){ug(e)}),Ek}function Qp(e){return Xp(e),Nk}function Yp(t,r){var n,i,a,o,s=0,c=-1;e.Debug.assert(!r.length);for(var u=0,l=t;u=0)return qc(n,c)||n.minArgumentCount<=c&&cn.parameters.length)return!1;var _=a>=n.minArgumentCount;return s||_}function ef(t,r){var n=e.length(t.typeParameters),i=Ti(t.typeParameters);return!r||r.length>=i&&r.length<=n}function tf(e){if(65536&e.flags){var t=Ln(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function rf(t,r,n,i){var a=Fu(t.typeParameters,t,1,i);return Pu(r,t,function(e,t){Vu(a.inferences,Xs(e,n||Kx),t)}),n||Vu(a.inferences,Ri(r),Ri(t),8),zi(t,tl(a),e.isInJavaScriptFile(r.declaration))}function nf(e,t,r){var n=em(e,0),i=Zm(t.attributes,n,Kx);Vu(r.inferences,i,n);var a=em(e,0),o=Zm(t.attributes,a,r);return Vu(r.inferences,o,a),tl(r)}function af(t,r,n,i,a){for(var o=0,s=a.inferences;o0?[t.attributes]:e.emptyArray:t.arguments||e.emptyArray}function _f(e,t,r){if(149!==e.kind)return t.length;switch(e.parent.kind){case 234:case 204:return 1;case 151:return 2;case 153:case 155:case 156:return 0===Ux?2:r.parameters.length>=3?3:2;case 148:return 3}}function df(t){if(234===t.kind){var r=Re(t);return or(r)}if(148===t.kind&&(t=t.parent,154===t.kind)){var r=Re(t);return or(r)}return 151===t.kind||153===t.kind||155===t.kind||156===t.kind?Lh(t):(e.Debug.fail("Unsupported decorator target."),hD)}function pf(t){if(234===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),hD;if(148===t.kind&&(t=t.parent,154===t.kind))return gD;if(151===t.kind||153===t.kind||155===t.kind||156===t.kind){var r=t;switch(r.name.kind){case 71:return gs(e.idText(r.name));case 8:case 9:return gs(r.name.text);case 146:var n=Fd(r.name);return Fm(n,1536)?n:SD;default:return e.Debug.fail("Unsupported property name."),hD}}return e.Debug.fail("Unsupported decorator target."),hD}function ff(t){if(234===t.kind)return e.Debug.fail("Class decorators should not have a third synthetic argument."),hD;if(148===t.kind)return CD;if(151===t.kind)return e.Debug.fail("Property decorators should not have a third synthetic argument."),hD;if(153===t.kind||155===t.kind||156===t.kind){var r=wh(t);return Xa(r)}return e.Debug.fail("Unsupported decorator target."),hD}function mf(t,r){return 0===r?df(t.parent):1===r?pf(t.parent):2===r?ff(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),hD)}function gf(e,t){return 149===e.kind?mf(e,t):0===t&&188===e.kind?Ia():void 0}function yf(e,t,r){if(149!==e.kind&&(0!==r||188!==e.kind))return t[r]}function vf(e,t,r){return 149===e.kind?e.expression:0===t&&188===e.kind?e.template:r}function hf(t,r,n){for(var i=1/0,a=-(1/0),o=0,s=r;o0?d[d.indexOf(!0)]=!1:d=void 0}}}var o,s=188===t.kind,u=149===t.kind,l=e.isJsxOpeningLikeElement(t);u||(o=t.typeArguments,(s||l||97!==t.expression.kind)&&e.forEach(o,rh));var _=n||[];if(Yp(r,_),!_.length)return oS.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Qp(t);var d,p=lf(t),f=1===_.length&&!_[0].typeParameters,m=0;if(!u&&!f)for(var g=s?1:0;g1&&(h=a(_,mS,b)),h||(h=a(_,gS,b)),h)return h;if(y){if(l)return y;cf(t,p,y,gS,void 0,!0)}else if(v)of(v,t.typeArguments,!0,i);else if(o&&e.every(r,function(t){return e.length(t.typeParameters)!==o.length}))oS.add(hf(t,r,o));else if(p){for(var x=Number.POSITIVE_INFINITY,D=Number.NEGATIVE_INFINITY,k=0,S=r;k-1,N=T?x:x0);var F=xf(_,void 0===rD?p.length:rD),w=_[F],I=w.typeParameters;if(I&&Gp(t)&&t.typeArguments){for(var O=t.typeArguments.map(wh);O.length>I.length;)O.pop();for(;O.length=t)return i;a.parameters.length>n&&(n=a.parameters.length,r=i)}return r}function Df(t,r){if(97===t.expression.kind){var n=R_(t.expression);if(Pt(n))return Ek;if(n!==hD){var i=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(i){var a=hr(n,i.typeArguments,i);return bf(t,a,r)}}return Xp(t)}var o=Dp(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(o===wD)return Pk;var s=ai(o);if(s===hD)return Qp(t);var c=_i(s,0),u=_i(s,1);return kf(o,s,c.length,u.length)?(o!==hD&&t.typeArguments&&m(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Xp(t)):c.length?bf(t,c,r):(u.length?m(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,_t(o)):Tf(t,s,0),Qp(t))}function kf(e,t,r,n){return Pt(e)||Pt(t)&&32768&e.flags||!r&&!n&&!(147456&t.flags)&&oc(e,QD)}function Sf(t,r){if(t.arguments&&Ux<1){var n=Zp(t.arguments);n>=0&&m(t.arguments[n],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=Dp(t.expression);if(i===wD)return Pk;if(i=ai(i),i===hD)return Qp(t);if(Pt(i))return t.typeArguments&&m(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Xp(t);var a=_i(i,1);if(a.length){if(!Cf(t,a[0]))return Qp(t);var o=i.symbol&&e.getClassLikeDeclarationOfSymbol(i.symbol);return o&&e.hasModifier(o,128)?(m(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Qp(t)):bf(t,a,r)}var s=_i(i,0);if(s.length){var c=bf(t,s,r);return Mf(c.declaration)||Ri(c)===PD||m(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Oi(c)===PD&&m(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return Tf(t,i,1),Qp(t)}function Cf(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedModifierFlags(n,24);if(!i)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=Rr(n.parent.symbol);if(!kh(t,a)){var s=e.getContainingClass(t);if(s)for(var c=wh(s),u=xr(c);u.length;){var l=u[0];if(16&i&&l.symbol===n.parent.symbol)return!0;u=xr(l)}return 8&i&&m(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,_t(o)),16&i&&m(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,_t(o)),!1}return!0}function Tf(t,r,n){m(t,0===n?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,_t(r)),Ef(r,n)}function Ef(t,r){if(t.symbol){var n=N(t.symbol).originatingImport;if(n&&!e.isImportCall(n)){var i=_i(or(N(t.symbol).target),r);if(!i||!i.length)return;m(n,e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime)}}}function Nf(e,t){var r=ug(e.tag),n=ai(r);if(n===hD)return Qp(e);var i=_i(n,0),a=_i(n,1);return kf(r,n,i.length,a.length)?Xp(e):i.length?bf(e,i,t):(Tf(e,n,0),Qp(e))}function Af(t){switch(t.parent.kind){case 234:case 204: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 Pf(t,r){var n=ug(t.expression),i=ai(n);if(i===hD)return Qp(t);var a=_i(i,0),o=_i(i,1);if(kf(n,i,a.length,o.length))return Xp(t);if(Ff(t,a)){var s=e.getTextOfNode(t.expression,!1);return m(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),Qp(t)}var c=Af(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,_t(i)),u=e.chainDiagnosticMessages(u,c),oS.add(e.createDiagnosticForNodeFromMessageChain(t,u)),Ef(i,0),Qp(t)}return bf(t,a,r,c)}function Ff(t,r){return r.length&&e.every(r,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length<_f(t,void 0,e)})}function wf(t,r,n){e.Debug.assert(!(131072&r.flags));var i=r&&_i(r,0);if(i&&i.length>0)return bf(t,i,n); }function If(t,r){switch(t.kind){case 186:return Df(t,r);case 187:return Sf(t,r);case 188:return Nf(t,r);case 149:return Pf(t,r);case 256:case 255:var n=ug(t.tagName);return Vl(n,function(n){var i=wf(t,n,r);if(i&&i!==Nk)return i;var a=tp(t,n);return r&&e.length(a)&&r.push.apply(r,a),e.length(a)?a[0]:Nk})||Nk}e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function Of(e,t){var r=A(e),n=r.resolvedSignature;if(n&&n!==Ak&&!t)return n;r.resolvedSignature=Ak;var i=If(e,t);return r.resolvedSignature=Rk===Bk?i:n,i}function Mf(t){if(t&&e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var r=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?Re(t):e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?Re(t.initializer):void 0;return r&&void 0!==r.members}return!1}function Lf(t){var r=e.getDeclaredJavascriptInitializer(t.valueDeclaration);r&&(t=Re(r));var n;Mf(t.valueDeclaration)&&(n=Jf(t));var i=Rf(t),a=or(t);return a.symbol&&!zf(a)&&Mf(a.symbol.valueDeclaration)&&(n=Jf(a.symbol)),i&&n?To([n,i]):i||n}function Rf(t){var r=t.valueDeclaration,n=r&&r.parent&&(e.isBinaryExpression(r.parent)&&Re(r.parent.left)||e.isVariableDeclaration(r.parent)&&Re(r.parent));if(n){var i=e.forEach(n.declarations,Bf);if(i)return ug(i)}}function Bf(t){if(!t.parent)return!1;for(var r=t.parent;r&&184===r.kind;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&58===r.operatorToken.kind){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}}function Jf(t){var r=N(t);return r.inferredClassType||(r.inferredClassType=Qe(t,rn(t)||jx,e.emptyArray,e.emptyArray,void 0,void 0)),r.inferredClassType}function zf(t){return t.symbol&&16&e.getObjectFlags(t)&&N(t.symbol).inferredClassType===t}function jf(t){jb(t,t.typeArguments)||qb(t.arguments);var r=Of(t);if(97===t.expression.kind)return PD;if(187===t.kind){var n=r.declaration;if(n&&154!==n.kind&&158!==n.kind&&163!==n.kind&&!e.isJSDocConstructSignature(n)){var i=ug(t.expression).symbol;i||71!==t.expression.kind||(i=rl(t.expression));var a=i&&Lf(i);return a?r.target?Xs(a,r.mapper):a:(Qx&&m(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),gD)}}if(e.isInJavaScriptFile(t)&&Vf(t))return Ii(t.arguments[0]);var o=Ri(r);return 1536&o.flags&&Kf(t)?hs(e.walkUpParenthesizedExpressions(t.parent)):o}function Kf(t){if(!e.isCallExpression(t))return!1;var r=t.expression;if(e.isPropertyAccessExpression(r)&&"for"===r.name.escapedText&&(r=r.expression),!e.isIdentifier(r)||"Symbol"!==r.escapedText)return!1;var n=Ma(!1);return!!n&&n===O(r,"Symbol",67216319,void 0,void 0,!1)}function qf(t){if(qb(t.arguments)||Px(t),0===t.arguments.length)return cm(t,gD);for(var r=t.arguments[0],n=$m(r),i=1;i0?em(e,0):t}function nm(t,r,n){for(var i=t.parameters.length-(t.hasRestParameter?1:0),a=0;a=0)if(r.parameters[n.parameterIndex].dotDotDotToken)m(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)};lc(n.type,wh(r.parameters[n.parameterIndex]),t.type,void 0,a)}else if(i){for(var o=!1,s=0,c=r.parameters;s0&&r.declarations[0]!==t)return}var n=Xi(Re(t));if(n)for(var i=!1,a=!1,o=0,s=n.declarations;o=0)return void(r&&m(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));aS.push(t.id);var l=$g(u,r,n);if(aS.pop(),!l)return;return i.awaitedTypeOfType=l}var _=At(t,"then");return _&&_i(_,0).length>0?void(r&&(e.Debug.assert(!!n),m(r,n))):i.awaitedTypeOfType=t}function ey(t){var r=e.getEffectiveReturnTypeNode(t),n=Ds(r);if(Ux>=2){if(n===hD)return hD;var i=Ra(!0);if(i!==zD&&!sr(n,i))return m(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),hD}else{if(ry(r),n===hD)return hD;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return m(r,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,_t(n)),hD;var o=ye(a,67216319,!0),s=o?or(o):hD;if(s===hD)return 71===a.kind&&"Promise"===a.escapedText&&cr(n)===Ra(!1)?m(r,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):m(r,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)),hD;var c=Ja(!0);if(c===RD)return m(r,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)),hD;if(!lc(s,c,r,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 hD;var u=a&&Kv(a),l=F(t.locals,u.escapedText,67216319);if(l)return m(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a)),hD}return Zg(n,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 ty(t){var r=Of(t),n=Ri(r);if(!(1&n.flags)){var i,a,o=Af(t);switch(t.parent.kind){case 234:var s=Re(t.parent),c=or(s);i=yo([c,PD]);break;case 148:i=PD,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 151:i=PD,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 153:case 155:case 156:var u=wh(t.parent),l=Xa(u);i=yo([l,PD])}lc(n,i,t,o,function(){return a})}}function ry(t){ny(t&&e.getEntityNameFromTypeNode(t))}function ny(e){if(e){var t=Kv(e),r=2097152|(71===e.kind?67901928:1920),n=O(t,t.escapedText,r,void 0,void 0,!0);n&&2097152&n.flags&&ze(n)&&!$h(de(n))&&fe(n)}}function iy(t){var r=ay(t);r&&e.isEntityName(r)&&ny(r)}function ay(t){if(t)switch(t.kind){case 169:case 168:for(var r=void 0,n=0,i=t.types;n-1&&n0),n.length>1&&m(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=dy(t["class"].expression),a=e.getClassExtendsHeritageClauseElement(r);if(a){var o=dy(a.expression);o&&i.escapedText!==o.escapedText&&m(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}function dy(e){switch(e.kind){case 71:return e;case 184:return e.name;default:return}}function py(t){sy(t),vg(t);var r=e.getFunctionFlags(t);if(t.name&&146===t.name.kind&&Fd(t.name),!Qr(t)){var n=Re(t),i=t.localSymbol||n,a=e.find(i.declarations,function(e){return e.kind===t.kind&&!(65536&e.flags)});t===a&&Gg(i),n.parent&&e.getDeclarationOfKind(n,t.kind)===t&&Gg(n)}var o=152===t.kind?void 0:t.body;rh(o);var s=e.getEffectiveReturnTypeNode(t);if(0===(1&r)){var u=s&&(2&r?ey(t):Ds(s));gm(t,u)}c&&!s&&(Qx&&e.nodeIsMissing(o)&&!Wg(t)&&Nu(t,gD),1&r&&e.nodeIsPresent(o)&&Ri(Ni(t)))}function fy(t){if(c){var r=e.getSourceFileOfNode(t),n=Lk.get(r.path);n||(n=[],Lk.set(r.path,n)),n.push(t)}}function my(t,r){for(var n=0,i=t;n=2||qx.noEmit||!e.hasRestParameter(t)||4194304&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===nD.escapedName&&m(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function Ay(t,r,n){if(!r||r.escapedText!==n)return!1;if(151===t.kind||150===t.kind||153===t.kind||152===t.kind||155===t.kind||156===t.kind)return!1;if(4194304&t.flags)return!1;var i=e.getRootDeclaration(t);return 148!==i.kind||!e.nodeIsMissing(i.parent.body)}function Py(t){e.findAncestor(t,function(r){if(4&ib(r)){var n=71!==t.kind;return n?m(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):m(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}})}function Fy(t){e.findAncestor(t,function(r){if(8&ib(r)){var n=71!==t.kind;return n?m(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):m(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}})}function wy(t,r){if(!(Vx>=e.ModuleKind.ES2015||qx.noEmit)&&(Ay(t,r,"require")||Ay(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Et(t);273===n.kind&&e.isExternalOrCommonJsModule(n)&&m(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function Iy(t,r){if(!(Ux>=4||qx.noEmit)&&Ay(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Et(t);273===n.kind&&e.isExternalOrCommonJsModule(n)&&1024&n.flags&&m(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function Oy(t){if(0===(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(231!==t.kind||t.initializer)){var r=Re(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=O(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&vp(n)){var i=e.getAncestor(n.valueDeclaration,232),a=213===i.parent.kind&&i.parent.parent?i.parent.parent:void 0,o=a&&(212===a.kind&&e.isFunctionLike(a.parent)||239===a.kind||238===a.kind||273===a.kind);if(!o){var s=ut(n);m(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,s,s)}}}}}function My(t){function r(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(184===i.kind)return r(i.expression);if(71!==i.kind)return e.forEachChild(i,r);var a=O(i,i.escapedText,69313471,void 0,void 0,!1);if(a&&a!==fD&&a.valueDeclaration){if(a.valueDeclaration===t)return void m(i,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(t.name));var o=e.getEnclosingBlockScopeContainer(a.valueDeclaration);if(o===n){if(148===a.valueDeclaration.kind||181===a.valueDeclaration.kind){if(a.valueDeclaration.pos=1){var r=t.declarations[0];zy(r)}}function Yy(e,t){var r=Dp(e);return Zy(r,e,!0,void 0!==t)}function Zy(e,t,r,n){return Pt(e)?e:$y(e,t,r,n,!0)||gD}function $y(t,r,n,i,a){if(t===FD)return void tv(r,t,i);var o=Ux>=2,s=!o&&qx.downlevelIteration;if(o||s||i){var c=ev(t,o?r:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(n){if(131072&u.flags){var d=t.types,p=e.filter(d,function(e){return!(34&e.flags)});p!==d&&(u=yo(p,2))}else 34&u.flags&&(u=FD);if(_=u!==t,_&&(Ux<1&&r&&(m(r,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),16384&u.flags))return SD}if(!Xc(u)){if(r&&!l){var f=!!ev(t,void 0,i,!0,a),g=!n||_?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:f?e.Diagnostics.Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators: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:f?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type;m(r,g,_t(u))}return _?SD:void 0}var y=mi(u,1);return _&&y?34&y.flags?SD:yo([y,SD],2):y}function ev(t,r,n,i,a){function o(t){var o=t;if(n){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(sr(t,za(!1))||sr(t,Ka(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(sr(t,qa(!1))||sr(t,Va(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=n&&At(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||i&&At(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!Pt(c)){var u=c&&_i(c,0);if(!e.some(u))return void(r&&(tv(r,t,n),r=void 0));var l=yo(e.map(u,Ri),2),_=rv(l,r,!!s);return a&&r&&_&&lc(t,s?Qa(_):Za(_),r),s?o.iteratedTypeOfAsyncIterable=_:o.iteratedTypeOfIterable=_}}if(!Pt(t))return Hl(t,o)}function tv(t,r,n){m(t,n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,_t(r))}function rv(t,r,n){if(!Pt(t)){var i=t;if(n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;var a=n?ja:Ua;if(sr(t,a(!1)))return n?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var o=At(t,"next");if(!Pt(o)){var s=o?_i(o,0):e.emptyArray;if(0===s.length)return void(r&&m(r,n?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method));var c=yo(e.map(s,Ri),2);if(!(Pt(c)||n&&(c=Qg(c,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),Pt(c)))){var u=c&&At(c,"value");return u?n?i.iteratedTypeOfAsyncIterator=u:i.iteratedTypeOfIterator=u:void(r&&m(r,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:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property))}}}}function nv(e,t){if(!Pt(e))return ev(e,void 0,t,!t,!1)||rv(e,void 0,t)}function iv(e){Tx(e)||ox(e)}function av(t){return 155===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,156))}function ov(t,r){var n=2===(3&e.getFunctionFlags(t))?Yg(r):r;return n&&Pm(n,2049)}function sv(t){if(!Tx(t)){var r=e.getContainingFunction(t);if(!r)return void yx(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);var n=Ni(r),i=Ri(n),a=e.getFunctionFlags(r),o=1&a;if(Hx||t.expression||16384&i.flags){var s=t.expression?$m(t.expression):bD;if(o)return;if(156===r.kind)t.expression&&m(t,e.Diagnostics.Setters_cannot_return_a_value);else if(154===r.kind)t.expression&&!lc(s,i,t)&&m(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(r)||av(r))if(2&a){var c=Yg(i),u=Zg(s,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);c&&lc(u,c,t)}else lc(s,i,t)}else 154===r.kind||!qx.noImplicitReturns||ov(r,i)||o||m(t,e.Diagnostics.Not_all_code_paths_return_a_value)}}function cv(t){Tx(t)||16384&t.flags&&yx(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),ug(t.expression);var r=e.getSourceFileOfNode(t);if(!gx(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start,i=t.statement.pos; vx(r,n,i-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function uv(t){Tx(t);var r,n=!1,i=ug(t.expression),a=eu(i);e.forEach(t.caseBlock.clauses,function(o){if(266===o.kind&&!n)if(void 0===r)r=o;else{var s=e.getSourceFileOfNode(t),u=e.skipTrivia(s.text,o.pos),l=o.statements.length>0?o.statements[0].pos:o.end;vx(s,u,l-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0}if(c&&265===o.kind){var _=ug(o.expression),d=eu(_),p=i;d&&a||(_=d?tu(_):_,p=tu(i)),Um(p,_)||_c(_,p,o.expression,void 0)}e.forEach(o.statements,rh)}),t.caseBlock.locals&&fy(t.caseBlock)}function lv(t){Tx(t)||e.findAncestor(t.parent,function(r){return e.isFunctionLike(r)?"quit":227===r.kind&&r.label.escapedText===t.label.escapedText?(hx(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0):void 0}),rh(t.statement)}function _v(t){Tx(t)||void 0===t.expression&&Nx(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&ug(t.expression)}function dv(t){Tx(t),Ey(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)yx(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)yx(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;n&&e.forEachKey(r.locals,function(t){var r=n.get(t);r&&0!==(2&r.flags)&&hx(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}Ey(r.block)}t.finallyBlock&&Ey(t.finallyBlock)}function pv(t){function r(t,r,n,i,a,o){if(a&&!e.isKnownSymbol(t)){var s=t.valueDeclaration;if(1!==o||(s?Ed(e.getNameOfDeclaration(s)):Pd(t.escapedName))){var c;if(!s||199!==s.kind&&146!==e.getNameOfDeclaration(s).kind&&t.parent!==n.symbol){if(i)c=i;else if(2&e.getObjectFlags(n)){var u=e.forEach(xr(n),function(e){return Bn(e,t.escapedName)&&mi(e,o)});c=u?void 0:n.symbol.declarations[0]}}else c=s;if(c&&!oc(r,a)){var l=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;m(c,l,ut(t),_t(r),_t(a))}}}}var n=Qi(t.symbol,1),i=Qi(t.symbol,0),a=mi(t,0),o=mi(t,1);if((a||o)&&(e.forEach(Rn(t),function(e){var s=or(e);r(e,s,t,i,a,0),r(e,s,t,n,o,1)}),1&e.getObjectFlags(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=t.symbol.valueDeclaration,c=0,u=s.members;cn)return!1;for(var l=0;l>s;case 47:return o>>>s;case 45:return o<1&&e.forEach(n.declarations,function(t){e.isConstEnumDeclaration(t)!==r&&m(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var a=!1;e.forEach(n.declarations,function(t){if(237!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(a?m(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)})}}}function Bv(t){for(var r=t.declarations,n=0,i=r;n1&&!i&&n(t,qx.preserveConstEnums||qx.isolatedModules)){var u=Bv(s);u&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(u)?m(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&&!(4194304&t.flags)&&hx(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 Gv(t){if(!Xv(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!Cb(t)&&e.hasModifiers(t)&&yx(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||qv(t)))if(t.exportClause){e.forEach(t.exportClause.elements,Qv);var r=239===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&239===t.parent.kind&&!t.moduleSpecifier&&4194304&t.flags;273===t.parent.kind||r||n||m(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=be(t,t.moduleSpecifier);i&&Ee(i)&&m(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ut(i)),Vx!==e.ModuleKind.System&&Vx!==e.ModuleKind.ES2015&&Vx!==e.ModuleKind.ESNext&&Db(t,32768)}}function Xv(e,t){var r=273===e.parent.kind||239===e.parent.kind||238===e.parent.kind;return r||yx(e,t),!r}function Qv(t){if(Uv(t),qx.declaration&&Dt(t.propertyName||t.name,!0),!t.parent.parent.moduleSpecifier){var r=t.propertyName||t.name,n=O(r,r.escapedText,70107135,void 0,void 0,!0);n&&(n===tD||P(Et(n.declarations[0])))?m(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r)):pe(t)}}function Yv(t){if(!Xv(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=273===t.parent.kind?t.parent:t.parent.parent;if(238===r.kind&&!e.isAmbientModule(r))return void(t.isExportEquals?m(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):m(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!Cb(t)&&e.hasModifiers(t)&&yx(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),71===t.expression.kind?(pe(t),qx.declaration&&Dt(t.expression,!0)):$m(t.expression),$v(r),4194304&t.flags&&!e.isEntityNameExpression(t.expression)&&hx(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||4194304&t.flags||(Vx>=e.ModuleKind.ES2015?hx(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):Vx===e.ModuleKind.System&&hx(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function Zv(t){return e.forEachEntry(t.exports,function(e,t){return"export="!==t})}function $v(t){var r=Re(t),n=N(r);if(!n.exportsChecked){var i=r.exports.get("export=");if(i&&Zv(r)){var a=G(i)||i.valueDeclaration;vt(a)||e.isInJavaScriptFile(a)||m(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=Ie(r);o&&o.forEach(function(t,r){var n=t.declarations,i=t.flags;if("__export"!==r&&!(1984&i)){var a=e.countWhere(n,NS);if(!(524288&i&&a<=2)&&a>1)for(var o=0,s=n;o0?e.concatenate(o,a):a}return e.forEach(i.getSourceFiles(),ch),oS.getDiagnostics()}function fh(){return mh(),oS.getGlobalDiagnostics()}function mh(){if(!c)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function gh(t,r){function n(){for(;t;){switch(t.locals&&!P(t)&&a(t.locals,r),t.kind){case 238:a(Re(t).exports,2623475&r);break;case 237:a(Re(t).exports,8&r);break;case 204:var n=t.name;n&&i(t.symbol,r);case 234:case 235:s||a(rn(Re(t)),67901928&r);break;case 191:var o=t.name;o&&i(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&i(nD,r),s=e.hasModifier(t,32),t=t.parent}a(Ok,r)}function i(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var n=t.escapedName;o.has(n)||o.set(n,t)}}function a(e,t){t&&e.forEach(function(e){i(e,t)})}if(8388608&t.flags)return[];var o=e.createSymbolTable(),s=!1;return n(),vi(o)}function yh(e){return 71===e.kind&&vh(e.parent)&&e.parent.name===e}function vh(e){switch(e.kind){case 147:case 234:case 235:case 236:case 237:return!0}}function hh(e){for(var t=e;t.parent&&145===t.parent.kind;)t=t.parent;return t.parent&&161===t.parent.kind}function bh(e){for(var t=e;t.parent&&184===t.parent.kind;)t=t.parent;return t.parent&&206===t.parent.kind}function xh(t,r){for(var n;;){if(t=e.getContainingClass(t),!t)break;if(n=r(t))break}return n}function Dh(t,r){return e.findAncestor(t,function(t){return!(!e.isConstructorDeclaration(t)||!e.nodeIsPresent(t.body)||t.parent!==r)||!(t!==r&&!e.isFunctionLikeDeclaration(t))&&"quit"})}function kh(e,t){return!!xh(e,function(e){return e===t})}function Sh(e){for(;145===e.parent.kind;)e=e.parent;return 242===e.parent.kind?e.parent.moduleReference===e&&e.parent:248===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function Ch(e){return void 0!==Sh(e)}function Th(t){var r=e.getSpecialPropertyAssignmentKind(t.parent.parent);switch(r){case 1:case 3:return Re(t.parent);case 4:case 2:case 5:return Re(t.parent.parent)}}function Eh(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&178===r.kind&&r.qualifier===t)return r}function Nh(t){if(e.isDeclarationName(t))return Re(t.parent);if(e.isInJavaScriptFile(t)&&184===t.parent.kind&&t.parent===t.parent.parent.left){var r=Th(t);if(r)return r}if(248===t.parent.kind&&e.isEntityNameExpression(t)){var n=ye(t,70107135,!0);if(n&&n!==fD)return n}else if(!e.isPropertyAccessExpression(t)&&Ch(t)){var i=e.getAncestor(t,242);return e.Debug.assert(void 0!==i),me(t,!0)}if(!e.isPropertyAccessExpression(t)){var a=Eh(t);if(a){Ds(a);var o=A(t).resolvedSymbol;return o===fD?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(bh(t)){var s=0;206===t.parent.kind?(s=67901928,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=67216319)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?ye(t,s):void 0;if(c)return c}if(292===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(147===t.parent.kind&&295===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(71===t.kind){if(e.isJSXTagName(t)&&Jd(t)){var l=Vd(t.parent);return l===fD?void 0:l}return ye(t,67216319,!1,!0)}if(184===t.kind||145===t.kind){var _=A(t);return _.resolvedSymbol?_.resolvedSymbol:(184===t.kind?Sp(t):Cp(t),_.resolvedSymbol)}}else{if(hh(t)){var s=161===t.parent.kind?67901928:1920;return ye(t,s,!1,!0)}if(261===t.parent.kind)return sp(t.parent)}return 160===t.parent.kind?ye(t,1):void 0}function Ah(t){if(273===t.kind)return e.isExternalModule(t)?Le(t.symbol):void 0;if(!(8388608&t.flags)){if(a(t))return Re(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return Re(t.parent.parent);if(71===t.kind){if(Ch(t))return Nh(t);if(181===t.parent.kind&&179===t.parent.parent.kind&&t===t.parent.propertyName){var r=wh(t.parent.parent),n=r&&ui(r,t.escapedText);if(n)return n}}switch(t.kind){case 71:case 184:case 145:return Nh(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var o=Ni(i);if(o.thisParameter)return o.thisParameter}if(e.isInExpressionContext(t))return ug(t).symbol;case 173:return xs(t).symbol;case 97:return ug(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||(243===t.parent.kind||249===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return be(t,t);case 8:var c=e.isElementAccessExpression(t.parent)?t.parent.argumentExpression===t?sg(t.parent.expression):void 0:e.isLiteralTypeNode(t.parent)&&e.isIndexedAccessTypeNode(t.parent.parent)?Ds(t.parent.parent.objectType):void 0;return c&&ui(c,e.escapeLeadingUnderscores(t.text));case 79:case 89:case 36:return Re(t.parent);case 178:return e.isLiteralImportTypeNode(t)?Ah(t.argument.literal):void 0;default:return}}}function Ph(e){if(e&&270===e.kind)return ye(e.name,69313471)}function Fh(e){return e.parent.parent.moduleSpecifier?ie(e.parent.parent,e):ye(e.propertyName||e.name,70107135)}function wh(t){if(8388608&t.flags)return hD;if(e.isPartOfTypeNode(t)){var r=Ds(t);if(r&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)){var n=e.getContainingClass(t),i=wh(n);r=an(r,i.thisType)}return r}if(e.isExpressionNode(t))return Mh(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var o=e.getContainingClass(t),i=Rr(Re(o)),s=xr(i)[0];return s&&an(s,i.thisType)}if(vh(t)){var c=Re(t);return Rr(c)}if(yh(t)){var c=Ah(t);return c&&Rr(c)}if(e.isDeclaration(t)){var c=Re(t); return or(c)}if(a(t)){var c=Ah(t);return c&&or(c)}if(e.isBindingPattern(t))return Jt(t.parent,!0);if(Ch(t)){var c=Ah(t);if(c){var u=Rr(c);return u!==hD?u:or(c)}}return hD}function Ih(t){if(e.Debug.assert(183===t.kind||182===t.kind),221===t.parent.kind){var r=Yy(t.parent.expression,t.parent.awaitModifier);return jm(t,r||hD)}if(199===t.parent.kind){var r=sg(t.parent.right);return jm(t,r||hD)}if(269===t.parent.kind){var n=Ih(t.parent.parent);return Bm(n||hD,t.parent)}e.Debug.assert(182===t.parent.kind);var i=Ih(t.parent),a=Zy(i||hD,t.parent,!1,!1)||hD;return zm(t.parent,i,t.parent.elements.indexOf(t),a||hD)}function Oh(e){var t=Ih(e.parent.parent);return t&&ui(t,e.escapedText)}function Mh(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),ms(sg(t))}function Lh(t){var r=Re(t.parent);return e.hasModifier(t,32)?or(r):Rr(r)}function Rh(t){t=ai(t);var r=e.createSymbolTable(zn(t));return Bh(t)&&e.forEach(zn(QD),function(e){r.has(e.escapedName)||r.set(e.escapedName,e)}),Ge(r)}function Bh(t){return e.typeHasCallOrConstructSignatures(t,oD)}function Jh(t){var r=zh(t);return r?e.flatMap(r,Jh):[t]}function zh(t){if(6&e.getCheckFlags(t))return e.mapDefined(N(t).containingType.types,function(e){return ui(e,t.escapedName)});if(33554432&t.flags){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray(jh(t))}}function jh(e){for(var t,r=e;r=N(r).target;)t=r;return t}function Kh(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=184===t.parent.kind&&t.parent.name===t;return!r&&fb(t)===nD}return!1}function qh(t){function r(e){return e=_e(e),e&&!!(67216319&e.flags)}var n=be(t.parent,t);if(!n||e.isShorthandAmbientModuleSymbol(n))return!0;var i=Ee(n);n=Se(n);var a=N(n);return void 0===a.exportsSomeValue&&(a.exportsSomeValue=i?!!(67216319&n.flags):e.forEachEntry(Ie(n),r)),a.exportsSomeValue}function Uh(t){var r=t.parent;return r&&e.isModuleOrEnumDeclaration(r)&&t===r.name}function Vh(t,r){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=fb(t,Uh(t));if(n){if(1048576&n.flags){var i=Le(n.exportSymbol);if(!r&&944&i.flags&&!(3&i.flags))return;n=i}var a=Be(n);if(a){if(512&a.flags&&273===a.valueDeclaration.kind){var o=a.valueDeclaration,s=e.getSourceFileOfNode(t),c=o!==s;return c?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&Re(t)===a})}}}}function Wh(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=fb(t);if(le(r,67216319))return G(r)}}function Hh(t){if(418&t.flags){var r=N(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)){var i=A(t.valueDeclaration);if(O(n.parent,t.escapedName,67216319,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(n,!1),s=212===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function Gh(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=fb(t);if(r&&Hh(r))return r.valueDeclaration}}function Xh(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var r=Re(t);if(r)return Hh(r)}return!1}function Qh(t){switch(t.kind){case 242:case 244:case 245:case 247:case 251:return Zh(Re(t)||fD);case 249:var r=t.exportClause;return r&&e.forEach(r.elements,Qh);case 248:return!t.expression||71!==t.expression.kind||Zh(Re(t)||fD)}return!1}function Yh(t){if(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration),void 0===t||273!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))return!1;var r=Zh(Re(t));return r&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function Zh(e){var t=de(e);return t===fD||67216319&t.flags&&(qx.preserveConstEnums||!$h(t))}function $h(e){return Om(e)||e.constEnumOnlyModule}function eb(t,r){if(e.isAliasSymbolDeclaration(t)){var n=Re(t);if(n&&N(n).referenced)return!0;var i=N(n).target;if(i&&1&e.getModifierFlags(t)&&67216319&i.flags)return!0}return!!r&&e.forEachChild(t,function(e){return eb(e,r)})}function tb(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=Re(t),n=wi(r);return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function rb(t){return Hx&&!xi(t)&&!e.isJSDocParameterTag(t)&&t.initializer&&!e.hasModifier(t,92)}function nb(t){return Hx&&xi(t)&&!t.initializer&&e.hasModifier(t,92)}function ib(e){return A(e).flags}function ab(e){return Iv(e.parent),A(e).enumMemberValue}function ob(e){switch(e.kind){case 272:case 184:case 185:return!0}return!1}function sb(t){if(272===t.kind)return ab(t);var r=A(t).resolvedSymbol;return r&&8&r.flags&&e.isConstEnumDeclaration(r.valueDeclaration.parent)?ab(r.valueDeclaration):void 0}function cb(e){return 65536&e.flags&&_i(e,0).length>0}function ub(t,r){if(t=e.getParseTreeNode(t,e.isEntityName),!t)return e.TypeReferenceSerializationKind.Unknown;if(r&&(r=e.getParseTreeNode(r),!r))return e.TypeReferenceSerializationKind.Unknown;var n=ye(t,67216319,!0,!1,r),i=ye(t,67901928,!0,!1,r);if(n&&n===i){var a=Ba(!1);if(a&&n===a)return e.TypeReferenceSerializationKind.Promise;var o=or(n);if(o&&gr(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.Unknown;var s=Rr(i);return s===hD?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:Fm(s,30720)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Fm(s,136)?e.TypeReferenceSerializationKind.BooleanType:Fm(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:Fm(s,34)?e.TypeReferenceSerializationKind.StringLikeType:au(s)?e.TypeReferenceSerializationKind.ArrayLikeType:Fm(s,1536)?e.TypeReferenceSerializationKind.ESSymbolType:cb(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Gc(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function lb(t,r,n,i,a){if(t=e.getParseTreeNode(t,e.isVariableLikeOrAccessor),!t)return e.createToken(119);var o=Re(t),s=!o||133120&o.flags?hD:ru(or(o));return 1024&s.flags&&s.symbol===o&&(n|=1048576),a&&(s=du(s)),eD.typeToTypeNode(s,r,1024|n,i)}function _b(t,r,n,i){if(t=e.getParseTreeNode(t,e.isFunctionLike),!t)return e.createToken(119);var a=Ni(t);return eD.typeToTypeNode(Ri(a),r,1024|n,i)}function db(t,r,n,i){if(t=e.getParseTreeNode(t,e.isExpression),!t)return e.createToken(119);var a=Cu(Mh(t));return eD.typeToTypeNode(a,r,1024|n,i)}function pb(t){return Ok.has(e.escapeLeadingUnderscores(t))}function fb(t,r){var n=A(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=Et(a))}return O(i,t.escapedText,70362047,void 0,void 0,!0)}function mb(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=fb(t);if(r)return Je(r).valueDeclaration}}function gb(t){if(e.isConst(t)){var r=or(Re(t));return!!(96&r.flags&&8388608&r.flags)}return!1}function yb(t){return e.createLiteral(t.value)}function vb(e){var t=or(Re(e));return yb(t)}function hb(){function t(e){return e.parent&&206===e.parent.kind&&e.parent.parent&&267===e.parent.parent.kind}function r(e){if(o){var r=67903464;(71===e.kind&&nl(e)||184===e.kind&&!t(e))&&(r=68264895);var i=ye(e,r,!0);return i&&i!==fD?n(i,r):void 0}}function n(t,r){if(o&&a(t)){for(var n,i=0,s=t.declarations;i1||e.modifiers[0].kind!==t}function Fb(t,r){switch(t.kind){case 153:case 233:case 191:case 192:return!1}return hx(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function wb(t,r){if(void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),t&&t.hasTrailingComma)return vx(t[0],t.end-",".length,",".length,r)}function Ib(t,r){if(t&&0===t.length){var n=t.pos-"<".length,i=e.skipTrivia(r.text,t.end)+">".length;return vx(r,n,i-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function Ob(t){for(var r=!1,n=t.length,i=0;i".length;return vx(n,i,a-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function jb(e,t){return wb(t)||zb(e,t)}function Kb(t){if(t)for(var r=0,n=t;r1)return yx(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(108===o.token),n)return yx(o,e.Diagnostics.implements_clause_already_seen);n=!0}Ub(o)}}function Hb(t){var r=!1;if(t.heritageClauses)for(var n=0,i=t.heritageClauses;n1){var i=220===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return yx(r.declarations[1],i)}var a=n[0];if(a.initializer){var i=220===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 hx(a.name,i)}if(a.type){var i=220===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 hx(a,i)}}}return!1}function ex(t){var r=t.kind;if(Ux<1)return hx(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(4194304&t.flags)return hx(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===t.body&&!e.hasModifier(t,128))return vx(t,t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&e.hasModifier(t,128))return hx(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return hx(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!tx(t))return hx(t.name,155===r?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(156===r){if(t.type)return hx(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var n=t.parameters[0];if(n.dotDotDotToken)return hx(n.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return hx(n.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return hx(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function tx(e){return rx(e)||e.parameters.length===(155===e.kind?0:1)}function rx(t){if(t.parameters.length===(155===t.kind?1:2))return e.getThisParameter(t)}function nx(t){if(141===t.operator){if(138!==t.type.kind)return hx(t.type,e.Diagnostics._0_expected,e.tokenToString(138));var r=e.walkUpParenthesizedTypes(t.parent);switch(r.kind){case 231:var n=r;if(71!==n.name.kind)return hx(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(n))return hx(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return hx(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 151:if(!e.hasModifier(r,32)||!e.hasModifier(r,64))return hx(r.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(r,64))return hx(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return hx(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}}function ix(e,t){if(Yr(e))return hx(e,t)}function ax(t){if(Mb(t))return!0;if(153===t.kind){if(183===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||120!==e.first(t.modifiers).kind))return yx(t,e.Diagnostics.Modifiers_cannot_appear_here);if(Qb(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return vx(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(Xb(t))return!0}if(e.isClassLike(t.parent)){if(4194304&t.flags)return ix(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 ix(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(235===t.parent.kind)return ix(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 ix(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 ox(t){for(var r=t;r;){if(e.isFunctionLike(r))return hx(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 227:if(t.label&&r.label.escapedText===t.label.escapedText){var n=222===t.kind&&!e.isIterationStatement(r.statement,!0);return!!n&&hx(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 226:if(223===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}if(t.label){var i=223===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;return hx(t,i)}var i=223===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 hx(t,i)}function sx(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return hx(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(wb(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),180===t.name.kind||179===t.name.kind)return hx(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.propertyName)return hx(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);if(t.initializer)return vx(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function cx(e){return 9===e.kind||8===e.kind||197===e.kind&&38===e.operator&&8===e.operand.kind}function ux(t){if(220!==t.parent.parent.kind&&221!==t.parent.parent.kind)if(4194304&t.flags){if(t.initializer){if(!e.isConst(t)||t.type){var r="=".length;return vx(t,t.initializer.pos-r,r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!cx(t.initializer))return hx(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!cx(t.initializer))){var r="=".length;return vx(t,t.initializer.pos-r,r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts); }}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return hx(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return hx(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(213!==t.parent.parent.kind||!t.type||t.initializer||4194304&t.flags))return hx(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);qx.module===e.ModuleKind.ES2015||qx.module===e.ModuleKind.ESNext||qx.module===e.ModuleKind.System||qx.noEmit||4194304&t.parent.parent.flags||!e.hasModifier(t.parent.parent,1)||lx(t.name);var n=e.isLet(t)||e.isConst(t);return n&&_x(t.name)}function lx(t){if(71===t.kind){if("__esModule"===e.idText(t))return hx(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=t.elements,n=0,i=r;n0}function yx(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!gx(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return oS.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}}function vx(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);if(!gx(c))return oS.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0}function hx(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!gx(o))return oS.add(e.createDiagnosticForNode(t,r,n,i,a)),!0}function bx(t){var r=e.getEffectiveTypeParameterDeclarations(t);if(e.isNodeArray(r)){var n=r.pos,i=r.end;return vx(t,n,i-n,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function xx(t){var r=e.getEffectiveReturnTypeNode(t);if(r)return hx(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Dx(t){if(e.isClassLike(t.parent)){if(ix(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(235===t.parent.kind){if(ix(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 hx(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(165===t.parent.kind){if(ix(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 hx(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}return 4194304&t.flags&&t.initializer?yx(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts):e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||4194304&t.flags||e.hasModifier(t,160))?hx(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context):void 0}function kx(t){return 235!==t.kind&&236!==t.kind&&243!==t.kind&&242!==t.kind&&249!==t.kind&&248!==t.kind&&241!==t.kind&&!e.hasModifier(t,515)&&yx(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function Sx(t){for(var r=0,n=t.statements;r=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,177)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,272)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return hx(n?t.parent:t,r,i)}}}function Nx(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!gx(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return oS.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a)),!0}}function Ax(){return HD||(HD=[],Ok.forEach(function(e,t){s.test(t)&&HD.push(e)})),HD}function Px(t){if(Vx===e.ModuleKind.ES2015)return hx(t,e.Diagnostics.Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext);if(t.typeArguments)return hx(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;return 1!==r.length?hx(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(r[0])?hx(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):void 0}var Fx,wx,Ix,Ox=e.objectAllocator.getSymbolConstructor(),Mx=e.objectAllocator.getTypeConstructor(),Lx=e.objectAllocator.getSignatureConstructor(),Rx=0,Bx=0,Jx=0,zx=0,jx=e.createSymbolTable(),Kx=e.identity,qx=i.getCompilerOptions(),Ux=e.getEmitScriptTarget(qx),Vx=e.getEmitModuleKind(qx),Wx=e.getAllowSyntheticDefaultImports(qx),Hx=e.getStrictOptionValue(qx,"strictNullChecks"),Gx=e.getStrictOptionValue(qx,"strictFunctionTypes"),Xx=e.getStrictOptionValue(qx,"strictPropertyInitialization"),Qx=e.getStrictOptionValue(qx,"noImplicitAny"),Yx=e.getStrictOptionValue(qx,"noImplicitThis"),Zx=!!qx.keyofStringsOnly,$x=hb(),eD=pt(),tD=v(4,"undefined");tD.declarations=[];var rD,nD=v(4,"arguments"),iD=v(4,"require"),aD=v(4,"module"),oD={getNodeCount:function(){return e.sum(i.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(i.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(i.getSourceFiles(),"symbolCount")+Bx},getTypeCount:function(){return Rx},isUndefinedSymbol:function(e){return e===tD},isArgumentsSymbol:function(e){return e===nD},isUnknownSymbol:function(e){return e===fD},getMergedSymbol:Le,getDiagnostics:dh,getGlobalDiagnostics:fh,getTypeOfSymbolAtLocation:function(t,r){return r=e.getParseTreeNode(r),r?p_(t,r):hD},getSymbolsOfParameterPropertyDeclaration:function(t,r){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."),w(t,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:Rr,getPropertiesOfType:zn,getPropertyOfType:function(t,r){return ui(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:fi,getSignaturesOfType:_i,getIndexTypeOfType:mi,getBaseTypes:xr,getBaseTypeOfLiteralType:tu,getWidenedType:Cu,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?Ds(t):hD},getParameterType:em,getReturnTypeOfSignature:Ri,getNullableType:_u,getNonNullableType:fu,typeToTypeNode:eD.typeToTypeNode,indexInfoToIndexSignatureDeclaration:eD.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:eD.signatureToSignatureDeclaration,symbolToEntityName:eD.symbolToEntityName,symbolToExpression:eD.symbolToExpression,symbolToTypeParameterDeclarations:eD.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:eD.symbolToParameterDeclaration,typeParameterToDeclaration:eD.typeParameterToDeclaration,getSymbolsInScope:function(t,r){return t=e.getParseTreeNode(t),t?gh(t,r):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?Ah(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?Ph(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?Fh(t):void 0},getExportSymbolOfSymbol:function(e){return Le(e.exportSymbol||e)},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?wh(t):hD},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?Oh(t):void 0},signatureToString:function(t,r,n,i){return lt(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return _t(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return ut(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return ft(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return lt(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return _t(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return ut(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return ft(t,e.getParseTreeNode(r),n,i)},getSymbolDisplayBuilder:u,getAugmentedPropertiesOfType:Rh,getRootSymbols:Jh,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?_d(t):void 0},getContextualTypeForArgumentAtIndex:function(t,r){return t=e.getParseTreeNode(t,e.isCallLikeExpression),t&&X_(t,r)},getContextualTypeForJsxAttribute:function(t){return t=e.getParseTreeNode(t,e.isJsxAttributeLike),t&&cd(t)},isContextSensitive:Zs,getFullyQualifiedName:ge,getResolvedSignature:function(t,r,n){t=e.getParseTreeNode(t,e.isCallLikeExpression),rD=n;var i=t?Of(t,r):void 0;return rD=void 0,i},getConstantValue:function(t){return t=e.getParseTreeNode(t,ob),t?sb(t):void 0},isValidPropertyAccess:function(t,r){return t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode),!!t&&Bp(t,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){return t=e.getParseTreeNode(t,e.isPropertyAccessExpression),!!t&&Jp(t,r,n)},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?Ni(t):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?tb(r):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!==(2097152&t.flags),"Should only get Alias here.");var r=N(t);if(!r.immediateTarget){var n=G(t);e.Debug.assert(!!n),r.immediateTarget=ue(n,!0)}return r.immediateTarget},getAliasedSymbol:de,getEmitResolver:f,getExportsOfModule:Ne,getExportsAndPropertiesOfModule:Ae,getSymbolWalker:e.createGetSymbolWalker(Ji,Li,Ri,xr,Ln,or,rl,pi,ta,Kv),getAmbientModules:Ax,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?ap(t):void 0},getJsxIntrinsicTagNamesAt:_p,isOptionalParameter:function(t){return t=e.getParseTreeNode(t,e.isParameter),!!t&&xi(t)},tryGetMemberInModuleExports:function(t,r){return Pe(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return Fe(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return bi(e,!1)},getApparentType:ai,getUnionType:yo,createAnonymousType:Qe,createSignature:un,createSymbol:v,createIndexInfo:Yi,getAnyType:function(){return gD},getStringType:function(){return SD},getNumberType:function(){return CD},createPromiseType:sm,createArrayType:eo,getBooleanType:function(){return ND},getVoidType:function(){return PD},getUndefinedType:function(){return bD},getNullType:function(){return DD},getESSymbolType:function(){return AD},getNeverType:function(){return FD},isSymbolAccessible:it,isArrayLikeType:Xc,getAllPossiblePropertiesOfTypes:jn,getSuggestionForNonexistentProperty:function(e,t){return wp(e,t)},getSuggestionForNonexistentSymbol:function(t,r,n){return Ip(t,e.escapeLeadingUnderscores(r),n)},getSuggestionForNonexistentModule:function(e,t){return Op(e,t)},getBaseConstraintOfType:Qn,getDefaultFromTypeParameter:function(e){return e&&32768&e.flags?ri(e):void 0},resolveName:function(t,r,n,i){return O(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(p(t))},getAccessibleSymbolChain:$e,getTypePredicateOfSignature:Li,resolveExternalModuleSymbol:Se,tryGetThisTypeAt:function(t){return t=e.getParseTreeNode(t),t&&O_(t)},getTypeArgumentConstraint:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t&&Ig(t)},getSuggestionDiagnostics:function(t){function r(){if(t.isDeclarationFile)return e.emptyArray;ch(t);var r=[];return e.Debug.assert(!!(1&A(t).flags)),my(lh(t),function(t,n){uh(t)||r.push(__assign({},n,{category:e.DiagnosticCategory.Suggestion}))}),r}return(sS.get(t.fileName)||e.emptyArray).concat(r())},runWithCancellationToken:function(e,t){try{return Fx=e,t(oD)}finally{Fx=void 0}}},sD=[],cD=e.createMap(),uD=e.createMap(),lD=e.createMap(),_D=e.createMap(),dD=[],pD=e.createMap(),fD=v(4,"unknown"),mD=v(0,"__resolving__"),gD=qe(1,"any"),yD=qe(1,"any"),vD=qe(1,"any"),hD=qe(1,"unknown"),bD=qe(4096,"undefined"),xD=Hx?bD:qe(16781312,"undefined"),DD=qe(8192,"null"),kD=Hx?DD:qe(16785408,"null"),SD=qe(2,"string"),CD=qe(4,"number"),TD=qe(128,"true"),ED=qe(128,"false"),ND=Ue([TD,ED]),AD=qe(512,"symbol"),PD=qe(2048,"void"),FD=qe(16384,"never"),wD=qe(16384,"never"),ID=qe(16384,"never"),OD=qe(134217728,"object"),MD=yo([SD,CD,AD]),LD=Zx?SD:MD,RD=Qe(void 0,jx,e.emptyArray,e.emptyArray,void 0,void 0),BD=v(2048,"__type");BD.members=e.createSymbolTable();var JD=Qe(BD,jx,e.emptyArray,e.emptyArray,void 0,void 0),zD=Qe(void 0,jx,e.emptyArray,e.emptyArray,void 0,void 0);zD.instantiations=e.createMap();var jD=Qe(void 0,jx,e.emptyArray,e.emptyArray,void 0,void 0);jD.flags|=67108864;var KD=Qe(void 0,jx,e.emptyArray,e.emptyArray,void 0,void 0),qD=Qe(void 0,jx,e.emptyArray,e.emptyArray,void 0,void 0),UD=Qe(void 0,jx,e.emptyArray,e.emptyArray,void 0,void 0),VD=Ke(32768),WD=Ke(32768);WD.constraint=VD;var HD,GD,XD,QD,YD,ZD,$D,ek,tk,rk,nk,ik,ak,ok,sk,ck,uk,lk,_k,dk,pk,fk,mk,gk,yk,vk,hk,bk,xk,Dk,kk,Sk,Ck=Ke(32768),Tk=Si("<>",0,gD),Ek=un(void 0,void 0,void 0,e.emptyArray,gD,void 0,0,!1,!1),Nk=un(void 0,void 0,void 0,e.emptyArray,hD,void 0,0,!1,!1),Ak=un(void 0,void 0,void 0,e.emptyArray,gD,void 0,0,!1,!1),Pk=un(void 0,void 0,void 0,e.emptyArray,wD,void 0,0,!1,!1),Fk=[Ak],wk=Yi(SD,!0),Ik=Yi(gD,!1),Ok=e.createSymbolTable(),Mk=e.createMap(),Lk=e.createMap(),Rk=0,Bk=0,Jk=0,zk=!1,jk=gs(""),Kk=gs(0),qk=[],Uk=[],Vk=[],Wk=0,Hk=10,Gk=[],Xk=[],Qk=[],Yk=[],Zk=[],$k=[],eS=[],tS=[],rS=[],nS=[],iS=[],aS=[],oS=e.createDiagnosticCollection(),sS=e.createMultiMap();!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.All=4194303]="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=1972176]="ObjectStrictFacts",e[e.ObjectFacts=4184016]="ObjectFacts",e[e.FunctionStrictFacts=1970144]="FunctionStrictFacts",e[e.FunctionFacts=4181984]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts"}(Sk||(Sk={}));var cS,uS,lS,_S=e.createMapFromTemplate({string:1,number:2,"boolean":4,symbol:8,undefined:16384,object:16,"function":32}),dS=e.createMapFromTemplate({string:128,number:256,"boolean":512,symbol:1024,undefined:131072,object:2048,"function":4096}),pS=e.createMapFromTemplate({string:SD,number:CD,"boolean":ND,symbol:AD,undefined:bD}),fS=We(),mS=e.createMap(),gS=e.createMap(),yS=e.createMap(),vS=e.createMap(),hS=e.createMap(),bS=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"}(lS||(lS={}));var xS;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential",e[e.Contextual=3]="Contextual"}(xS||(xS={}));var DS;!function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(DS||(DS={}));var kS;!function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(kS||(kS={}));var SS;!function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(SS||(SS={}));var CS;!function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(CS||(CS={}));var TS;!function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(TS||(TS={}));var ES=e.createSymbolTable();ES.set(tD.escapedName,tD);var NS=e.and(th,eh);return xb(),oD}function a(t){switch(t.parent.kind){case 247:case 251:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function o(e){switch(e.kind){case 244:case 242:case 245:case 247:return!0;case 71:return 247===e.parent.kind;default:return!1}}var s=/^".+"$/,c=1,u=1,l=1,_=1;e.getNodeId=t,e.getSymbolId=r,e.isInstantiatedModule=n,e.createTypeChecker=i;var d;!function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes"}(d||(d={}))}(ts||(ts={}));var ts;!function(e){function t(t){var r=e.createNode(t,-1,-1);return r.flags|=8,r}function r(t,r){return t!==r&&(Da(t,r),Xi(t,r),e.aggregateTransformFlags(t)),t}function n(t,r){if(t&&t!==e.emptyArray){if(e.isNodeArray(t))return t}else t=[];var n=t;return n.pos=-1,n.end=-1,n.hasTrailingComma=r,n}function i(e){if(void 0!==e){var r=t(e.kind);r.flags|=e.flags,Da(r,e);for(var n in e)!r.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}}function a(t,r){if("number"==typeof t)return o(t+"");if("boolean"==typeof t)return t?D():k();if(e.isString(t)){var n=s(t);return r&&(n.singleQuote=!0),n}return u(t)}function o(e){var r=t(8);return r.text=e,r.numericLiteralFlags=0,r}function s(e){var r=t(9);return r.text=e,r}function c(e){var r=t(12);return r.text=e,r}function u(t){var r=s(e.getTextOfIdentifierOrLiteral(t));return r.textSourceNode=t,r}function l(r,i){var a=t(71);return a.escapedText=e.escapeLeadingUnderscores(r),a.originalKeywordKind=r?e.stringToToken(r):0,a.autoGenerateFlags=0,a.autoGenerateId=0,i&&(a.typeArguments=n(i)),a}function _(t,n){return t.typeArguments!==n?r(l(e.idText(t),n),t):t}function d(e,t){var r=l("");return r.autoGenerateFlags=1,r.autoGenerateId=Ca,Ca++,e&&e(r),t&&(r.autoGenerateFlags|=8),r}function p(){var e=l("");return e.autoGenerateFlags=2,e.autoGenerateId=Ca,Ca++,e}function f(e){var t=l(e);return t.autoGenerateFlags=3,t.autoGenerateId=Ca,Ca++,t}function m(e){var t=l(e);return t.autoGenerateFlags=19,t.autoGenerateId=Ca,Ca++,t}function g(e){var t=m(e);return t.autoGenerateFlags|=32,t}function y(t,r){var n=l(e.isIdentifier(t)?e.idText(t):"");return n.autoGenerateFlags=4|r,n.autoGenerateId=Ca,n.original=t,Ca++,n}function v(e){return t(e)}function h(){return t(97)}function b(){return t(99)}function x(){return t(95)}function D(){return t(101)}function k(){return t(86)}function S(e){return v(e)}function C(e){var t=[];return 1&e&&t.push(S(84)),2&e&&t.push(S(124)),512&e&&t.push(S(79)),2048&e&&t.push(S(76)),4&e&&t.push(S(114)),8&e&&t.push(S(112)),16&e&&t.push(S(113)),128&e&&t.push(S(117)),32&e&&t.push(S(115)),64&e&&t.push(S(132)),256&e&&t.push(S(120)),t}function T(e,r){var n=t(145);return n.left=e,n.right=qi(r),n}function E(e,t,n){return e.left!==t||e.right!==n?r(T(t,n),e):e}function N(t){return e.isBinaryExpression(t)&&26===t.operatorToken.kind||301===t.kind?pt(t):t}function A(e){var r=t(146);return r.expression=N(e),r}function P(e,t){return e.expression!==t?r(A(t),e):e}function F(e,r,n){var i=t(147);return i.name=qi(e),i.constraint=r,i["default"]=n,i}function w(e,t,n,i){return e.name!==t||e.constraint!==n||e["default"]!==i?r(F(t,n,i),e):e}function I(r,n,i,a,o,s,c){var u=t(148);return u.decorators=Vi(r),u.modifiers=Vi(n),u.dotDotDotToken=i,u.name=qi(a),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function O(e,t,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==i||e.name!==a||e.questionToken!==o||e.type!==s||e.initializer!==c?r(I(t,n,i,a,o,s,c),e):e}function M(r){var n=t(149);return n.expression=e.parenthesizeForAccess(r),n}function L(e,t){return e.expression!==t?r(M(t),e):e}function R(e,r,n,i,a){var o=t(150);return o.modifiers=Vi(e),o.name=qi(r),o.questionToken=n,o.type=i,o.initializer=a,o}function B(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?r(R(t,n,i,a,o),e):e}function J(e,r,n,i,a,o){var s=t(151);return s.decorators=Vi(e),s.modifiers=Vi(r),s.name=qi(n),s.questionToken=void 0!==i&&55===i.kind?i:void 0,s.exclamationToken=void 0!==i&&51===i.kind?i:void 0,s.type=a,s.initializer=o,s}function z(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.questionToken!==(void 0!==a&&55===a.kind?a:void 0)||e.exclamationToken!==(void 0!==a&&51===a.kind?a:void 0)||e.type!==o||e.initializer!==s?r(J(t,n,i,a,o,s),e):e}function j(e,t,r,n,i){var a=ne(152,e,t,r);return a.name=qi(n),a.questionToken=i,a}function K(e,t,n,i,a,o){return e.typeParameters!==t||e.parameters!==n||e.type!==i||e.name!==a||e.questionToken!==o?r(j(t,n,i,a,o),e):e}function q(e,r,i,a,o,s,c,u,l){var _=t(153);return _.decorators=Vi(e),_.modifiers=Vi(r),_.asteriskToken=i,_.name=qi(a),_.questionToken=o,_.typeParameters=Vi(s),_.parameters=n(c),_.type=u,_.body=l,_}function U(e,t,n,i,a,o,s,c,u,l){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.questionToken!==o||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==l?r(q(t,n,i,a,o,s,c,u,l),e):e}function V(e,r,i,a){var o=t(154);return o.decorators=Vi(e),o.modifiers=Vi(r),o.typeParameters=void 0,o.parameters=n(i),o.type=void 0,o.body=a,o}function W(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.parameters!==i||e.body!==a?r(V(t,n,i,a),e):e}function H(e,r,i,a,o,s){var c=t(155);return c.decorators=Vi(e),c.modifiers=Vi(r),c.name=qi(i),c.typeParameters=void 0,c.parameters=n(a),c.type=o,c.body=s,c}function G(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.type!==o||e.body!==s?r(H(t,n,i,a,o,s),e):e}function X(e,r,i,a,o){var s=t(156);return s.decorators=Vi(e),s.modifiers=Vi(r),s.name=qi(i),s.typeParameters=void 0,s.parameters=n(a),s.body=o,s}function Q(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.body!==o?r(X(t,n,i,a,o),e):e}function Y(e,t,r){return ne(157,e,t,r)}function Z(e,t,r,n){return ie(e,t,r,n)}function $(e,t,r){return ne(158,e,t,r)}function ee(e,t,r,n){return ie(e,t,r,n)}function te(e,r,i,a){var o=t(159);return o.decorators=Vi(e),o.modifiers=Vi(r),o.parameters=n(i),o.type=a,o}function re(e,t,n,i,a){return e.parameters!==i||e.type!==a||e.decorators!==t||e.modifiers!==n?r(te(t,n,i,a),e):e}function ne(e,r,n,i,a){var o=t(e);return o.typeParameters=Vi(r),o.parameters=Vi(n),o.type=i,o.typeArguments=Vi(a),o}function ie(e,t,n,i){return e.typeParameters!==t||e.parameters!==n||e.type!==i?r(ne(e.kind,t,n,i),e):e}function ae(e){return t(e)}function oe(e,r){var n=t(160);return n.parameterName=qi(e),n.type=r,n}function se(e,t,n){return e.parameterName!==t||e.type!==n?r(oe(t,n),e):e}function ce(r,n){var i=t(161);return i.typeName=qi(r),i.typeArguments=n&&e.parenthesizeTypeParameters(n),i}function ue(e,t,n){return e.typeName!==t||e.typeArguments!==n?r(ce(t,n),e):e}function le(e,t,r){return ne(162,e,t,r)}function _e(e,t,r,n){return ie(e,t,r,n)}function de(e,t,r){return ne(163,e,t,r)}function pe(e,t,r,n){return ie(e,t,r,n)}function fe(e){var r=t(164);return r.exprName=e,r}function me(e,t){return e.exprName!==t?r(fe(t),e):e}function ge(e){var r=t(165);return r.members=n(e),r}function ye(e,t){return e.members!==t?r(ge(t),e):e}function ve(r){var n=t(166);return n.elementType=e.parenthesizeArrayTypeMember(r),n}function he(e,t){return e.elementType!==t?r(ve(t),e):e}function be(e){var r=t(167);return r.elementTypes=n(e),r}function xe(e,t){return e.elementTypes!==t?r(be(t),e):e}function De(e){return Te(168,e)}function ke(e,t){return Ee(e,t)}function Se(e){return Te(169,e)}function Ce(e,t){return Ee(e,t)}function Te(r,n){var i=t(r);return i.types=e.parenthesizeElementTypeMembers(n),i}function Ee(e,t){return e.types!==t?r(Te(e.kind,t),e):e}function Ne(r,n,i,a){var o=t(170);return o.checkType=e.parenthesizeConditionalTypeMember(r),o.extendsType=e.parenthesizeConditionalTypeMember(n),o.trueType=i,o.falseType=a,o}function Ae(e,t,n,i,a){return e.checkType!==t||e.extendsType!==n||e.trueType!==i||e.falseType!==a?r(Ne(t,n,i,a),e):e}function Pe(e){var r=t(171);return r.typeParameter=e,r}function Fe(e,t){return e.typeParameter!==t?r(Pe(t),e):e}function we(e,r,n,i){var a=t(178);return a.argument=e,a.qualifier=r,a.typeArguments=Vi(n),a.isTypeOf=i,a}function Ie(e,t,n,i,a){return e.argument!==t||e.qualifier!==n||e.typeArguments!==i||e.isTypeOf!==a?r(we(t,n,i,a),e):e}function Oe(e){var r=t(172);return r.type=e,r}function Me(e,t){return e.type!==t?r(Oe(t),e):e}function Le(){return t(173)}function Re(r,n){var i=t(174);return i.operator="number"==typeof r?r:128,i.type=e.parenthesizeElementTypeMember("number"==typeof r?n:r),i}function Be(e,t){return e.type!==t?r(Re(e.operator,t),e):e}function Je(r,n){var i=t(175);return i.objectType=e.parenthesizeElementTypeMember(r),i.indexType=n,i}function ze(e,t,n){return e.objectType!==t||e.indexType!==n?r(Je(t,n),e):e}function je(e,r,n,i){var a=t(176);return a.readonlyToken=e,a.typeParameter=r,a.questionToken=n,a.type=i,a}function Ke(e,t,n,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==i||e.type!==a?r(je(t,n,i,a),e):e}function qe(e){var r=t(177);return r.literal=e,r}function Ue(e,t){return e.literal!==t?r(qe(t),e):e}function Ve(e){var r=t(179);return r.elements=n(e),r}function We(e,t){return e.elements!==t?r(Ve(t),e):e}function He(e){var r=t(180);return r.elements=n(e),r}function Ge(e,t){return e.elements!==t?r(He(t),e):e}function Xe(e,r,n,i){var a=t(181);return a.dotDotDotToken=e,a.propertyName=qi(r),a.name=qi(n),a.initializer=i,a}function Qe(e,t,n,i,a){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==i||e.initializer!==a?r(Xe(t,n,i,a),e):e}function Ye(r,i){var a=t(182);return a.elements=e.parenthesizeListElements(n(r)),i&&(a.multiLine=!0),a}function Ze(e,t){return e.elements!==t?r(Ye(t,e.multiLine),e):e}function $e(e,r){var i=t(183);return i.properties=n(e),r&&(i.multiLine=!0),i}function et(e,t){return e.properties!==t?r($e(t,e.multiLine),e):e}function tt(r,n){var i=t(184);return i.expression=e.parenthesizeForAccess(r),i.name=qi(n),Qi(i,131072),i}function rt(t,n,i){return t.expression!==n||t.name!==i?r(Qi(tt(n,i),e.getEmitFlags(t)),t):t}function nt(r,n){var i=t(185);return i.expression=e.parenthesizeForAccess(r),i.argumentExpression=Ui(n),i}function it(e,t,n){return e.expression!==t||e.argumentExpression!==n?r(nt(t,n),e):e}function at(r,i,a){var o=t(186);return o.expression=e.parenthesizeForAccess(r),o.typeArguments=Vi(i),o.arguments=e.parenthesizeListElements(n(a)),o}function ot(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(at(t,n,i),e):e}function st(r,i,a){var o=t(187);return o.expression=e.parenthesizeForNew(r),o.typeArguments=Vi(i),o.arguments=a?e.parenthesizeListElements(n(a)):void 0,o}function ct(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(st(t,n,i),e):e}function ut(r,n,i){var a=t(188);return a.tag=e.parenthesizeForAccess(r),i?(a.typeArguments=Vi(n),a.template=i):(a.typeArguments=void 0,a.template=n),a}function lt(e,t,n,i){return e.tag!==t||(i?e.typeArguments!==n||e.template!==i:void 0!==e.typeArguments||e.template!==n)?r(ut(t,n,i),e):e}function _t(r,n){var i=t(189);return i.type=r,i.expression=e.parenthesizePrefixOperand(n),i}function dt(e,t,n){return e.type!==t||e.expression!==n?r(_t(t,n),e):e}function pt(e){var r=t(190);return r.expression=e,r}function ft(e,t){return e.expression!==t?r(pt(t),e):e}function mt(e,r,i,a,o,s,c){var u=t(191);return u.modifiers=Vi(e),u.asteriskToken=r,u.name=qi(i),u.typeParameters=Vi(a),u.parameters=n(o),u.type=s,u.body=c,u}function gt(e,t,n,i,a,o,s,c){return e.name!==i||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?r(mt(t,n,i,a,o,s,c),e):e}function yt(r,i,a,o,s,c){var u=t(192);return u.modifiers=Vi(r),u.typeParameters=Vi(i),u.parameters=n(a),u.type=o,u.equalsGreaterThanToken=s||v(36),u.body=e.parenthesizeConciseBody(c),u}function vt(t,n,i,a,o,s,c){var u,l;return void 0===c?(u=t.equalsGreaterThanToken,l=e.cast(s,e.isConciseBody)):(u=e.cast(s,function(e){return 36===e.kind}),l=c),t.modifiers!==n||t.typeParameters!==i||t.parameters!==a||t.type!==o||t.equalsGreaterThanToken!==u||t.body!==l?r(yt(n,i,a,o,u,l),t):t}function ht(r){var n=t(193);return n.expression=e.parenthesizePrefixOperand(r),n}function bt(e,t){ return e.expression!==t?r(ht(t),e):e}function xt(r){var n=t(194);return n.expression=e.parenthesizePrefixOperand(r),n}function Dt(e,t){return e.expression!==t?r(xt(t),e):e}function kt(r){var n=t(195);return n.expression=e.parenthesizePrefixOperand(r),n}function St(e,t){return e.expression!==t?r(kt(t),e):e}function Ct(r){var n=t(196);return n.expression=e.parenthesizePrefixOperand(r),n}function Tt(e,t){return e.expression!==t?r(Ct(t),e):e}function Et(r,n){var i=t(197);return i.operator=r,i.operand=e.parenthesizePrefixOperand(n),i}function Nt(e,t){return e.operand!==t?r(Et(e.operator,t),e):e}function At(r,n){var i=t(198);return i.operand=e.parenthesizePostfixOperand(r),i.operator=n,i}function Pt(e,t){return e.operand!==t?r(At(t,e.operator),e):e}function Ft(r,n,i){var a=t(199),o=Wi(n),s=o.kind;return a.left=e.parenthesizeBinaryOperand(s,r,!0,void 0),a.operatorToken=o,a.right=e.parenthesizeBinaryOperand(s,i,!1,a.left),a}function wt(e,t,n,i){return e.left!==t||e.right!==n?r(Ft(t,i||e.operatorToken,n),e):e}function It(r,n,i,a,o){var s=t(200);return s.condition=e.parenthesizeForConditionalHead(r),s.questionToken=o?n:v(55),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?i:n),s.colonToken=o?a:v(56),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o?o:i),s}function Ot(t,n){for(var i=[],a=2;a0&&(a[c-s]=u)}s>0&&(a.length-=s)}}function xa(t,r){return t===r?0:t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)}function Da(e,t){if(e.original=t,t){var r=t.emitNode;r&&(e.emitNode=ka(r,e.emitNode))}return e}function ka(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers,_=t.startsOnNewLine;return r||(r={}),i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments)),a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments)),n&&(r.flags=n),o&&(r.commentRange=o),s&&(r.sourceMapRange=s),c&&(r.tokenSourceMapRanges=Sa(c,r.tokenSourceMapRanges)),void 0!==u&&(r.constantValue=u),l&&(r.helpers=e.addRange(r.helpers,l)),void 0!==_&&(r.startsOnNewLine=_),r}function Sa(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}e.updateNode=r,e.createNodeArray=n,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createStringLiteral=s,e.createRegularExpressionLiteral=c,e.createIdentifier=l,e.updateIdentifier=_;var Ca=0;e.createTempVariable=d,e.createLoopVariable=p,e.createUniqueName=f,e.createOptimisticUniqueName=m,e.createFileLevelUniqueName=g,e.getGeneratedNameForNode=y,e.createToken=v,e.createSuper=h,e.createThis=b,e.createNull=x,e.createTrue=D,e.createFalse=k,e.createModifier=S,e.createModifiersFromModifierFlags=C,e.createQualifiedName=T,e.updateQualifiedName=E,e.createComputedPropertyName=A,e.updateComputedPropertyName=P,e.createTypeParameterDeclaration=F,e.updateTypeParameterDeclaration=w,e.createParameter=I,e.updateParameter=O,e.createDecorator=M,e.updateDecorator=L,e.createPropertySignature=R,e.updatePropertySignature=B,e.createProperty=J,e.updateProperty=z,e.createMethodSignature=j,e.updateMethodSignature=K,e.createMethod=q,e.updateMethod=U,e.createConstructor=V,e.updateConstructor=W,e.createGetAccessor=H,e.updateGetAccessor=G,e.createSetAccessor=X,e.updateSetAccessor=Q,e.createCallSignature=Y,e.updateCallSignature=Z,e.createConstructSignature=$,e.updateConstructSignature=ee,e.createIndexSignature=te,e.updateIndexSignature=re,e.createSignatureDeclaration=ne,e.createKeywordTypeNode=ae,e.createTypePredicateNode=oe,e.updateTypePredicateNode=se,e.createTypeReferenceNode=ce,e.updateTypeReferenceNode=ue,e.createFunctionTypeNode=le,e.updateFunctionTypeNode=_e,e.createConstructorTypeNode=de,e.updateConstructorTypeNode=pe,e.createTypeQueryNode=fe,e.updateTypeQueryNode=me,e.createTypeLiteralNode=ge,e.updateTypeLiteralNode=ye,e.createArrayTypeNode=ve,e.updateArrayTypeNode=he,e.createTupleTypeNode=be,e.updateTypleTypeNode=xe,e.createUnionTypeNode=De,e.updateUnionTypeNode=ke,e.createIntersectionTypeNode=Se,e.updateIntersectionTypeNode=Ce,e.createUnionOrIntersectionTypeNode=Te,e.createConditionalTypeNode=Ne,e.updateConditionalTypeNode=Ae,e.createInferTypeNode=Pe,e.updateInferTypeNode=Fe,e.createImportTypeNode=we,e.updateImportTypeNode=Ie,e.createParenthesizedType=Oe,e.updateParenthesizedType=Me,e.createThisTypeNode=Le,e.createTypeOperatorNode=Re,e.updateTypeOperatorNode=Be,e.createIndexedAccessTypeNode=Je,e.updateIndexedAccessTypeNode=ze,e.createMappedTypeNode=je,e.updateMappedTypeNode=Ke,e.createLiteralTypeNode=qe,e.updateLiteralTypeNode=Ue,e.createObjectBindingPattern=Ve,e.updateObjectBindingPattern=We,e.createArrayBindingPattern=He,e.updateArrayBindingPattern=Ge,e.createBindingElement=Xe,e.updateBindingElement=Qe,e.createArrayLiteral=Ye,e.updateArrayLiteral=Ze,e.createObjectLiteral=$e,e.updateObjectLiteral=et,e.createPropertyAccess=tt,e.updatePropertyAccess=rt,e.createElementAccess=nt,e.updateElementAccess=it,e.createCall=at,e.updateCall=ot,e.createNew=st,e.updateNew=ct,e.createTaggedTemplate=ut,e.updateTaggedTemplate=lt,e.createTypeAssertion=_t,e.updateTypeAssertion=dt,e.createParen=pt,e.updateParen=ft,e.createFunctionExpression=mt,e.updateFunctionExpression=gt,e.createArrowFunction=yt,e.updateArrowFunction=vt,e.createDelete=ht,e.updateDelete=bt,e.createTypeOf=xt,e.updateTypeOf=Dt,e.createVoid=kt,e.updateVoid=St,e.createAwait=Ct,e.updateAwait=Tt,e.createPrefix=Et,e.updatePrefix=Nt,e.createPostfix=At,e.updatePostfix=Pt,e.createBinary=Ft,e.updateBinary=wt,e.createConditional=It,e.updateConditional=Ot,e.createTemplateExpression=Mt,e.updateTemplateExpression=Lt,e.createTemplateHead=Rt,e.createTemplateMiddle=Bt,e.createTemplateTail=Jt,e.createNoSubstitutionTemplateLiteral=zt,e.createYield=jt,e.updateYield=Kt,e.createSpread=qt,e.updateSpread=Ut,e.createClassExpression=Vt,e.updateClassExpression=Wt,e.createOmittedExpression=Ht,e.createExpressionWithTypeArguments=Gt,e.updateExpressionWithTypeArguments=Xt,e.createAsExpression=Qt,e.updateAsExpression=Yt,e.createNonNullExpression=Zt,e.updateNonNullExpression=$t,e.createMetaProperty=er,e.updateMetaProperty=tr,e.createTemplateSpan=rr,e.updateTemplateSpan=nr,e.createSemicolonClassElement=ir,e.createBlock=ar,e.createExpressionStatement=or,e.updateBlock=sr,e.createVariableStatement=cr,e.updateVariableStatement=ur,e.createEmptyStatement=lr,e.createStatement=_r,e.updateStatement=dr,e.createIf=pr,e.updateIf=fr,e.createDo=mr,e.updateDo=gr,e.createWhile=yr,e.updateWhile=vr,e.createFor=hr,e.updateFor=br,e.createForIn=xr,e.updateForIn=Dr,e.createForOf=kr,e.updateForOf=Sr,e.createContinue=Cr,e.updateContinue=Tr,e.createBreak=Er,e.updateBreak=Nr,e.createReturn=Ar,e.updateReturn=Pr,e.createWith=Fr,e.updateWith=wr,e.createSwitch=Ir,e.updateSwitch=Or,e.createLabel=Mr,e.updateLabel=Lr,e.createThrow=Rr,e.updateThrow=Br,e.createTry=Jr,e.updateTry=zr,e.createDebuggerStatement=jr,e.createVariableDeclaration=Kr,e.updateVariableDeclaration=qr,e.createVariableDeclarationList=Ur,e.updateVariableDeclarationList=Vr,e.createFunctionDeclaration=Wr,e.updateFunctionDeclaration=Hr,e.createClassDeclaration=Gr,e.updateClassDeclaration=Xr,e.createInterfaceDeclaration=Qr,e.updateInterfaceDeclaration=Yr,e.createTypeAliasDeclaration=Zr,e.updateTypeAliasDeclaration=$r,e.createEnumDeclaration=en,e.updateEnumDeclaration=tn,e.createModuleDeclaration=rn,e.updateModuleDeclaration=nn,e.createModuleBlock=an,e.updateModuleBlock=on,e.createCaseBlock=sn,e.updateCaseBlock=cn,e.createNamespaceExportDeclaration=un,e.updateNamespaceExportDeclaration=ln,e.createImportEqualsDeclaration=_n,e.updateImportEqualsDeclaration=dn,e.createImportDeclaration=pn,e.updateImportDeclaration=fn,e.createImportClause=mn,e.updateImportClause=gn,e.createNamespaceImport=yn,e.updateNamespaceImport=vn,e.createNamedImports=hn,e.updateNamedImports=bn,e.createImportSpecifier=xn,e.updateImportSpecifier=Dn,e.createExportAssignment=kn,e.updateExportAssignment=Sn,e.createExportDeclaration=Cn,e.updateExportDeclaration=Tn,e.createNamedExports=En,e.updateNamedExports=Nn,e.createExportSpecifier=An,e.updateExportSpecifier=Pn,e.createExternalModuleReference=Fn,e.updateExternalModuleReference=wn,e.createJsxElement=In,e.updateJsxElement=On,e.createJsxSelfClosingElement=Mn,e.updateJsxSelfClosingElement=Ln,e.createJsxOpeningElement=Rn,e.updateJsxOpeningElement=Bn,e.createJsxClosingElement=Jn,e.updateJsxClosingElement=zn,e.createJsxFragment=jn,e.updateJsxFragment=Kn,e.createJsxAttribute=qn,e.updateJsxAttribute=Un,e.createJsxAttributes=Vn,e.updateJsxAttributes=Wn,e.createJsxSpreadAttribute=Hn,e.updateJsxSpreadAttribute=Gn,e.createJsxExpression=Xn,e.updateJsxExpression=Qn,e.createCaseClause=Yn,e.updateCaseClause=Zn,e.createDefaultClause=$n,e.updateDefaultClause=ei,e.createHeritageClause=ti,e.updateHeritageClause=ri,e.createCatchClause=ni,e.updateCatchClause=ii,e.createPropertyAssignment=ai,e.updatePropertyAssignment=oi,e.createShorthandPropertyAssignment=si,e.updateShorthandPropertyAssignment=ci,e.createSpreadAssignment=ui,e.updateSpreadAssignment=li,e.createEnumMember=_i,e.updateEnumMember=di,e.updateSourceFileNode=pi,e.getMutableClone=fi,e.createNotEmittedStatement=mi,e.createEndOfDeclarationMarker=gi,e.createMergeDeclarationMarker=yi,e.createPartiallyEmittedExpression=vi,e.updatePartiallyEmittedExpression=hi,e.createCommaList=xi,e.updateCommaList=Di,e.createBundle=ki,e.createUnparsedSourceFile=Si,e.createInputFiles=Ci,e.updateBundle=Ti,e.createImmediatelyInvokedFunctionExpression=Ei,e.createImmediatelyInvokedArrowFunction=Ni,e.createComma=Ai,e.createLessThan=Pi,e.createAssignment=Fi,e.createStrictEquality=wi,e.createStrictInequality=Ii,e.createAdd=Oi,e.createSubtract=Mi,e.createPostfixIncrement=Li,e.createLogicalAnd=Ri,e.createLogicalOr=Bi,e.createLogicalNot=Ji,e.createVoidZero=zi,e.createExportDefault=ji,e.createExternalModuleExport=Ki,e.disposeEmitNodes=Hi,e.getOrCreateEmitNode=Gi,e.setTextRange=Xi,e.setEmitFlags=Qi,e.addEmitFlags=Yi,e.getSourceMapRange=Zi,e.setSourceMapRange=$i;var Ta;e.createSourceMapSource=ea,e.getTokenSourceMapRange=ta,e.setTokenSourceMapRange=ra,e.getStartsOnNewLine=na,e.setStartsOnNewLine=ia,e.getCommentRange=aa,e.setCommentRange=oa,e.getSyntheticLeadingComments=sa,e.setSyntheticLeadingComments=ca,e.addSyntheticLeadingComment=ua,e.getSyntheticTrailingComments=la,e.setSyntheticTrailingComments=_a,e.addSyntheticTrailingComment=da,e.moveSyntheticComments=pa,e.getConstantValue=fa,e.setConstantValue=ma,e.addEmitHelper=ga,e.addEmitHelpers=ya,e.removeEmitHelper=va,e.getEmitHelpers=ha,e.moveEmitHelpers=ba,e.compareEmitHelpers=xa,e.setOriginalNode=Da}(ts||(ts={})),function(e){function t(t,r){return"undefined"===r?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))}function r(t,r,n){if(e.isComputedPropertyName(r))return e.setTextRange(e.createElementAccess(t,r.expression),n);var i=e.setTextRange(e.isIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function n(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[r].concat(n)),i)}function i(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[r,n]),i)}function a(t,r){var n=[];return void 0!==r&&n.push("number"==typeof r?e.createLiteral(r):r),e.createCall(e.createPropertyAccess(t,"slice"),void 0,n)}function o(t,r){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,r)}function s(t,r,n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,r]),n)}function c(t,r){var n=e.createIdentifier(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function u(t,r){if(e.isQualifiedName(t)){var n=u(t.left,r),i=e.createIdentifier(e.idText(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccess(n,i)}return c(e.idText(t),r)}function l(t,r,n){return t?u(t,n):e.createPropertyAccess(c(r,n),"createElement")}function _(t,r,n,i,a,o,s){var c=[n];if(i&&c.push(i),a&&a.length>0)if(i||c.push(e.createNull()),a.length>1)for(var u=0,_=a;u<_.length;u++){var d=_[u];xe(d),c.push(d)}else c.push(a[0]);return e.setTextRange(e.createCall(l(t,r,o),void 0,c),s)}function d(t,r,n,i,a){var o=e.createPropertyAccess(c(r,i),"Fragment"),s=[o];if(s.push(e.createNull()),n&&n.length>0)if(n.length>1)for(var u=0,_=n;u<_.length;u++){var d=_[u];xe(d),s.push(d)}else s.push(n[0]);return e.setTextRange(e.createCall(l(t,r,i),void 0,s),a)}function p(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function f(t,r,n){return t.requestEmitHelper(ze),e.setTextRange(e.createCall(p("__values"),void 0,[r]),n)}function m(t,r,n,i){return t.requestEmitHelper(je),e.setTextRange(e.createCall(p("__read"),void 0,void 0!==n?[r,e.createLiteral(n)]:[r]),i)}function g(t,r,n){return t.requestEmitHelper(je),t.requestEmitHelper(Ke),e.setTextRange(e.createCall(p("__spread"),void 0,r),n)}function y(t,r){if(e.isVariableDeclarationList(t)){var n=e.firstOrUndefined(t.declarations),i=e.updateVariableDeclaration(n,n.name,void 0,r);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,r),t);return e.setTextRange(e.createStatement(a),t)}function v(t,r){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([r].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function h(t,r,n){if(!r)return t;var i=e.updateLabel(r,r.label,227===r.statement.kind?h(t,r.statement):t);return n&&n(r),i}function b(t,r){var n=e.skipParentheses(t);switch(n.kind){case 71:return r;case 99:case 8:case 9:return!1;case 182:var i=n.elements;return 0!==i.length;case 183:return n.properties.length>0;default:return!0}}function x(t,r,n,i){var a,o,s=ge(t,7);if(e.isSuperProperty(s))a=e.createThis(), o=s;else if(97===s.kind)a=e.createThis(),o=n<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=re(s);else switch(s.kind){case 184:b(s.expression,i)?(a=e.createTempVariable(r),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 185:b(s.expression,i)?(a=e.createTempVariable(r),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=re(t)}return{target:o,thisArg:a}}function D(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)}function k(t){if(e.isQualifiedName(t)){var r=k(t.left),n=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(r,n),t)}return e.getMutableClone(t)}function S(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function C(e,t,r){switch(t.kind){case 155:case 156:return T(e.properties,t,r,e.multiLine);case 269:return E(t,r);case 270:return N(t,r);case 153:return A(t,r)}}function T(t,r,n,i){var a=e.getAllAccessorDeclarations(t,r),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(r===o){var u=[];if(s){var l=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(l,s),e.setOriginalNode(l,s);var _=e.createPropertyAssignment("get",l);u.push(_)}if(c){var d=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(d,c),e.setOriginalNode(d,c);var p=e.createPropertyAssignment("set",d);u.push(p)}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var f=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[n,S(r.name),e.createObjectLiteral(u,i)]),o);return e.aggregateTransformFlags(f)}}function E(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),t.initializer),t),t))}function N(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function A(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}function P(e,t,r){return R(e,t,r,49152)}function F(t){return 0!==(32768&e.getEmitFlags(t))}function w(e,t,r){return R(e,t,r,16384)}function I(t){return 0!==(16384&e.getEmitFlags(t))}function O(e,t,r){return R(e,t,r,8192)}function M(t){return 0!==(8192&e.getEmitFlags(t))}function L(e,t,r){return R(e,t,r)}function R(t,r,n,i){var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function B(t,r,n,i){return t&&e.hasModifier(r,1)?J(t,R(r),n,i):O(r,n,i)}function J(t,r,n,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r));e.setTextRange(a,r);var o;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function z(t,r){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],r),t)}function j(t){e.Debug.assert(!!t.body);var r=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0),e.aggregateTransformFlags(r),r}function K(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function q(e,t,r,n){var i=U(e,t,r);return V(e,t,i,n)}function U(t,r,n){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=r.length;ai?t:e.setTextRange(e.createParen(t),t)}function se(t){var r=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(r)){var n=r.expression,i=e.skipPartiallyEmittedExpressions(n).kind;if(191===i||192===i){var a=e.getMutableClone(r);return a.expression=e.setTextRange(e.createParen(n),n),be(t,a,4)}}var o=pe(r,!1).kind;return 183===o||191===o?e.setTextRange(e.createParen(t),t):t}function ce(t){return 170===t.kind?e.createParenthesizedType(t):t}function ue(t){switch(t.kind){case 168:case 169:case 162:case 163:return e.createParenthesizedType(t)}return ce(t)}function le(t){switch(t.kind){case 164:case 174:case 171:return e.createParenthesizedType(t)}return ue(t)}function _e(t){return e.createNodeArray(e.sameMap(t,ue))}function de(t){if(e.some(t)){for(var r=[],n=0;n= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };'};e.createValuesHelper=f;var je={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 };'};e.createReadHelper=m;var Ke={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};e.createSpreadHelper=g,e.createForOfBindingStatement=y,e.insertLeadingStatement=v,e.restoreEnclosingLabel=h,e.createCallBinding=x,e.inlineExpressions=D,e.createExpressionFromEntityName=k,e.createExpressionForPropertyName=S,e.createExpressionForObjectLiteralElementLike=C,e.getInternalName=P,e.isInternalName=F,e.getLocalName=w,e.isLocalName=I,e.getExportName=O,e.isExportName=M,e.getDeclarationName=L,e.getExternalModuleOrNamespaceExportName=B,e.getNamespaceMemberName=J,e.convertToFunctionBody=z,e.convertFunctionDeclarationToExpression=j,e.addPrologue=q,e.addStandardPrologue=U,e.addCustomPrologue=V,e.startsWithUseStrict=W,e.ensureUseStrict=H,e.parenthesizeBinaryOperand=G,e.parenthesizeForConditionalHead=Z,e.parenthesizeSubexpressionOfConditionalExpression=$,e.parenthesizeDefaultExpression=ee,e.parenthesizeForNew=te,e.parenthesizeForAccess=re,e.parenthesizePostfixOperand=ne,e.parenthesizePrefixOperand=ie,e.parenthesizeListElements=ae,e.parenthesizeExpressionForList=oe,e.parenthesizeExpressionForExpressionStatement=se,e.parenthesizeConditionalTypeMember=ce,e.parenthesizeElementTypeMember=ue,e.parenthesizeArrayTypeMember=le,e.parenthesizeElementTypeMembers=_e,e.parenthesizeTypeParameters=de,e.parenthesizeConciseBody=fe;var qe;!function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(qe=e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=me,e.skipOuterExpressions=ge,e.skipAssertions=ye,e.recreateOuterExpressions=be,e.startOnNewLine=xe,e.getExternalHelpersModuleName=De,e.getOrCreateExternalHelpersModuleNameIfNeeded=ke,e.getLocalNameForExternalImport=Se,e.getExternalModuleNameLiteral=Ce,e.tryGetModuleNameFromFile=Ee,e.getInitializerOfBindingOrAssignmentElement=Ae,e.getTargetOfBindingOrAssignmentElement=Pe,e.getRestIndicatorOfBindingOrAssignmentElement=Fe,e.getPropertyNameOfBindingOrAssignmentElement=we,e.getElementsOfBindingOrAssignmentPattern=Ie,e.convertToArrayAssignmentElement=Oe,e.convertToObjectAssignmentElement=Me,e.convertToAssignmentPattern=Le,e.convertToObjectAssignmentPattern=Re,e.convertToArrayAssignmentPattern=Be,e.convertToAssignmentElementTarget=Je}(ts||(ts={}));var ts;!function(e){function t(t,r,n,i){if(void 0===t||void 0===r)return t;e.aggregateTransformFlags(t);var a=r(t);if(a===t)return t;var o;if(void 0!==a)return o=e.isArray(a)?(i||s)(a):a,e.Debug.assertNode(o,n),e.aggregateTransformFlags(o),o}function r(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>s-i)&&(a=s-i),(i>0||a0&&d<=144||173===d)return o;switch(d){case 71:return e.updateIdentifier(o,l(o.typeArguments,s,c));case 145:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 146:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 147:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o["default"],s,e.isTypeNode));case 148:return e.updateParameter(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,_,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,_,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 150:return e.updatePropertySignature(o,l(o.modifiers,s,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,_,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 151:return e.updateProperty(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.questionToken,_,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 152:return e.updateMethodSignature(o,l(o.typeParameters,s,e.isTypeParameterDeclaration),l(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,_,e.isToken));case 153:return e.updateMethod(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.asteriskToken,_,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,_,e.isToken),l(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,u,l),t(o.type,s,e.isTypeNode),a(o.body,s,u));case 154:return e.updateConstructor(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),i(o.parameters,s,u,l),a(o.body,s,u));case 155:return e.updateGetAccessor(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,u,l),t(o.type,s,e.isTypeNode),a(o.body,s,u));case 156:return e.updateSetAccessor(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,u,l),a(o.body,s,u));case 157:return e.updateCallSignature(o,l(o.typeParameters,s,e.isTypeParameterDeclaration),l(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 158:return e.updateConstructSignature(o,l(o.typeParameters,s,e.isTypeParameterDeclaration),l(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 159:return e.updateIndexSignature(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),l(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 160:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 161:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),l(o.typeArguments,s,e.isTypeNode));case 162:return e.updateFunctionTypeNode(o,l(o.typeParameters,s,e.isTypeParameterDeclaration),l(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 163:return e.updateConstructorTypeNode(o,l(o.typeParameters,s,e.isTypeParameterDeclaration),l(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 164:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 165:return e.updateTypeLiteralNode(o,l(o.members,s,e.isTypeElement));case 166:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 167:return e.updateTypleTypeNode(o,l(o.elementTypes,s,e.isTypeNode));case 168:return e.updateUnionTypeNode(o,l(o.types,s,e.isTypeNode));case 169:return e.updateIntersectionTypeNode(o,l(o.types,s,e.isTypeNode));case 170:return e.updateConditionalTypeNode(o,t(o.checkType,s,e.isTypeNode),t(o.extendsType,s,e.isTypeNode),t(o.trueType,s,e.isTypeNode),t(o.falseType,s,e.isTypeNode));case 171:return e.updateInferTypeNode(o,t(o.typeParameter,s,e.isTypeParameterDeclaration));case 178:return e.updateImportTypeNode(o,t(o.argument,s,e.isTypeNode),t(o.qualifier,s,e.isEntityName),r(o.typeArguments,s,e.isTypeNode),o.isTypeOf);case 172:return e.updateParenthesizedType(o,t(o.type,s,e.isTypeNode));case 174:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 175:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 176:return e.updateMappedTypeNode(o,t(o.readonlyToken,_,e.isToken),t(o.typeParameter,s,e.isTypeParameterDeclaration),t(o.questionToken,_,e.isToken),t(o.type,s,e.isTypeNode));case 177:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 179:return e.updateObjectBindingPattern(o,l(o.elements,s,e.isBindingElement));case 180:return e.updateArrayBindingPattern(o,l(o.elements,s,e.isArrayBindingElement));case 181:return e.updateBindingElement(o,t(o.dotDotDotToken,_,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 182:return e.updateArrayLiteral(o,l(o.elements,s,e.isExpression));case 183:return e.updateObjectLiteral(o,l(o.properties,s,e.isObjectLiteralElementLike));case 184:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 185:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 186:return e.updateCall(o,t(o.expression,s,e.isExpression),l(o.typeArguments,s,e.isTypeNode),l(o.arguments,s,e.isExpression));case 187:return e.updateNew(o,t(o.expression,s,e.isExpression),l(o.typeArguments,s,e.isTypeNode),l(o.arguments,s,e.isExpression));case 188:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),r(o.typeArguments,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 189:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 190:return e.updateParen(o,t(o.expression,s,e.isExpression));case 191:return e.updateFunctionExpression(o,l(o.modifiers,s,e.isModifier),t(o.asteriskToken,_,e.isToken),t(o.name,s,e.isIdentifier),l(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,u,l),t(o.type,s,e.isTypeNode),a(o.body,s,u));case 192:return e.updateArrowFunction(o,l(o.modifiers,s,e.isModifier),l(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,u,l),t(o.type,s,e.isTypeNode),t(o.equalsGreaterThanToken,s,e.isToken),a(o.body,s,u));case 193:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 194:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 195:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 196:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 197:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 198:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 199:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression),t(o.operatorToken,s,e.isToken));case 200:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.questionToken,s,e.isToken),t(o.whenTrue,s,e.isExpression),t(o.colonToken,s,e.isToken),t(o.whenFalse,s,e.isExpression));case 201:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),l(o.templateSpans,s,e.isTemplateSpan));case 202:return e.updateYield(o,t(o.asteriskToken,_,e.isToken),t(o.expression,s,e.isExpression));case 203:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 204:return e.updateClassExpression(o,l(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),l(o.typeParameters,s,e.isTypeParameterDeclaration),l(o.heritageClauses,s,e.isHeritageClause),l(o.members,s,e.isClassElement));case 206:return e.updateExpressionWithTypeArguments(o,l(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 207:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 208:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 209:return e.updateMetaProperty(o,t(o.name,s,e.isIdentifier));case 210:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 212:return e.updateBlock(o,l(o.statements,s,e.isStatement));case 213:return e.updateVariableStatement(o,l(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 215:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 216:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 217:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 218:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 219:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 220:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateForOf(o,t(o.awaitModifier,s,e.isToken),t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 222:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 223:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 224:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 225:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 226:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 227:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 228:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 229:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 231:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 232:return e.updateVariableDeclarationList(o,l(o.declarations,s,e.isVariableDeclaration));case 233:return e.updateFunctionDeclaration(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.asteriskToken,_,e.isToken),t(o.name,s,e.isIdentifier),l(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,u,l),t(o.type,s,e.isTypeNode),a(o.body,s,u));case 234:return e.updateClassDeclaration(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),l(o.typeParameters,s,e.isTypeParameterDeclaration),l(o.heritageClauses,s,e.isHeritageClause),l(o.members,s,e.isClassElement));case 235:return e.updateInterfaceDeclaration(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),l(o.typeParameters,s,e.isTypeParameterDeclaration),l(o.heritageClauses,s,e.isHeritageClause),l(o.members,s,e.isTypeElement));case 236:return e.updateTypeAliasDeclaration(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),l(o.typeParameters,s,e.isTypeParameterDeclaration),t(o.type,s,e.isTypeNode));case 237:return e.updateEnumDeclaration(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),l(o.members,s,e.isEnumMember));case 238:return e.updateModuleDeclaration(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 239:return e.updateModuleBlock(o,l(o.statements,s,e.isStatement));case 240:return e.updateCaseBlock(o,l(o.clauses,s,e.isCaseOrDefaultClause));case 241:return e.updateNamespaceExportDeclaration(o,t(o.name,s,e.isIdentifier));case 242:return e.updateImportEqualsDeclaration(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 243:return e.updateImportDeclaration(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 244:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 245:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 246:return e.updateNamedImports(o,l(o.elements,s,e.isImportSpecifier)); case 247:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExportAssignment(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 249:return e.updateExportDeclaration(o,l(o.decorators,s,e.isDecorator),l(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 250:return e.updateNamedExports(o,l(o.elements,s,e.isExportSpecifier));case 251:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 253:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 254:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),l(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 255:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),l(o.typeArguments,s,e.isTypeNode),t(o.attributes,s,e.isJsxAttributes));case 256:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),l(o.typeArguments,s,e.isTypeNode),t(o.attributes,s,e.isJsxAttributes));case 257:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 258:return e.updateJsxFragment(o,t(o.openingFragment,s,e.isJsxOpeningFragment),l(o.children,s,e.isJsxChild),t(o.closingFragment,s,e.isJsxClosingFragment));case 261:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 262:return e.updateJsxAttributes(o,l(o.properties,s,e.isJsxAttributeLike));case 263:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 264:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 265:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),l(o.statements,s,e.isStatement));case 266:return e.updateDefaultClause(o,l(o.statements,s,e.isStatement));case 267:return e.updateHeritageClause(o,l(o.types,s,e.isExpressionWithTypeArguments));case 268:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 269:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 270:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 271:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 272:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 273:return e.updateSourceFileNode(o,n(o.statements,s,u));case 300:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));case 301:return e.updateCommaList(o,l(o.elements,s,e.isExpression));default:return o}}}function s(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}var c=e.or(e.isTypeNode,e.isTypeParameterDeclaration);e.visitNode=t,e.visitNodes=r,e.visitLexicalEnvironment=n,e.visitParameterList=i,e.visitFunctionBody=a,e.visitEachChild=o}(ts||(ts={})),function(e){function t(e,t,r){return e?t(r,e):r}function r(e,t,r){return e?t(r,e):r}function n(n,i,a,o){if(void 0===n)return i;var s=o?r:e.reduceLeft,c=o||a,u=n.kind;if(u>0&&u<=144)return i;if(u>=160&&u<=177)return i;var l=i;switch(n.kind){case 211:case 214:case 205:case 230:case 299:break;case 145:l=t(n.left,a,l),l=t(n.right,a,l);break;case 146:l=t(n.expression,a,l);break;case 148:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 149:l=t(n.expression,a,l);break;case 150:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.questionToken,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 151:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 153:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 154:l=s(n.modifiers,c,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 155:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 156:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 179:case 180:l=s(n.elements,c,l);break;case 181:l=t(n.propertyName,a,l),l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 182:l=s(n.elements,c,l);break;case 183:l=s(n.properties,c,l);break;case 184:l=t(n.expression,a,l),l=t(n.name,a,l);break;case 185:l=t(n.expression,a,l),l=t(n.argumentExpression,a,l);break;case 186:l=t(n.expression,a,l),l=s(n.typeArguments,c,l),l=s(n.arguments,c,l);break;case 187:l=t(n.expression,a,l),l=s(n.typeArguments,c,l),l=s(n.arguments,c,l);break;case 188:l=t(n.tag,a,l),l=t(n.template,a,l);break;case 189:l=t(n.type,a,l),l=t(n.expression,a,l);break;case 191:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 192:l=s(n.modifiers,c,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 190:case 193:case 194:case 195:case 196:case 202:case 203:case 208:l=t(n.expression,a,l);break;case 197:case 198:l=t(n.operand,a,l);break;case 199:l=t(n.left,a,l),l=t(n.right,a,l);break;case 200:l=t(n.condition,a,l),l=t(n.whenTrue,a,l),l=t(n.whenFalse,a,l);break;case 201:l=t(n.head,a,l),l=s(n.templateSpans,c,l);break;case 204:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 206:l=t(n.expression,a,l),l=s(n.typeArguments,c,l);break;case 207:l=t(n.expression,a,l),l=t(n.type,a,l);break;case 210:l=t(n.expression,a,l),l=t(n.literal,a,l);break;case 212:l=s(n.statements,c,l);break;case 213:l=s(n.modifiers,c,l),l=t(n.declarationList,a,l);break;case 215:l=t(n.expression,a,l);break;case 216:l=t(n.expression,a,l),l=t(n.thenStatement,a,l),l=t(n.elseStatement,a,l);break;case 217:l=t(n.statement,a,l),l=t(n.expression,a,l);break;case 218:case 225:l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 219:l=t(n.initializer,a,l),l=t(n.condition,a,l),l=t(n.incrementor,a,l),l=t(n.statement,a,l);break;case 220:case 221:l=t(n.initializer,a,l),l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 224:case 228:l=t(n.expression,a,l);break;case 226:l=t(n.expression,a,l),l=t(n.caseBlock,a,l);break;case 227:l=t(n.label,a,l),l=t(n.statement,a,l);break;case 229:l=t(n.tryBlock,a,l),l=t(n.catchClause,a,l),l=t(n.finallyBlock,a,l);break;case 231:l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 232:l=s(n.declarations,c,l);break;case 233:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 234:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 237:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.members,c,l);break;case 238:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.body,a,l);break;case 239:l=s(n.statements,c,l);break;case 240:l=s(n.clauses,c,l);break;case 242:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.moduleReference,a,l);break;case 243:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.importClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 244:l=t(n.name,a,l),l=t(n.namedBindings,a,l);break;case 245:l=t(n.name,a,l);break;case 246:case 250:l=s(n.elements,c,l);break;case 247:case 251:l=t(n.propertyName,a,l),l=t(n.name,a,l);break;case 248:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.expression,a,l);break;case 249:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.exportClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 253:l=t(n.expression,a,l);break;case 254:l=t(n.openingElement,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingElement,a,l);break;case 258:l=t(n.openingFragment,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingFragment,a,l);break;case 255:case 256:l=t(n.tagName,a,l),l=t(n.attributes,a,l);break;case 262:l=s(n.properties,c,l);break;case 257:l=t(n.tagName,a,l);break;case 261:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 263:l=t(n.expression,a,l);break;case 264:l=t(n.expression,a,l);break;case 265:l=t(n.expression,a,l);case 266:l=s(n.statements,c,l);break;case 267:l=s(n.types,c,l);break;case 268:l=t(n.variableDeclaration,a,l),l=t(n.block,a,l);break;case 269:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 270:l=t(n.name,a,l),l=t(n.objectAssignmentInitializer,a,l);break;case 271:l=t(n.expression,a,l);break;case 272:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 273:l=s(n.statements,c,l);break;case 300:l=t(n.expression,a,l);break;case 301:l=s(n.elements,c,l)}return l}function i(t,r){return e.some(r)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(r,t)),t):e.prependStatements(t,r):t}function a(t){return d.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function o(e){return s(e),e}function s(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var r=u(t);return e.computeTransformFlagsForNode(t,r)}function c(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,i=e;n0&&i!==r.elements.length||!!(r.elements.length-i)&&e.isDefaultImport(t)}function o(t){return!a(t)&&(e.isDefaultImport(t)||t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&r(t.importClause.namedBindings))}function s(r,n,i){for(var s,l,_=[],d=e.createMultiMap(),p=[],f=e.createMap(),m=!1,g=!1,y=!1,v=0,h=r.statements;v=1)||1572864&m.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(m).transformFlags||e.isComputedPropertyName(v)){d&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),i,o,n),d=void 0);var g=u(t,i,v);e.isComputedPropertyName(v)&&(p=e.append(p,g.argumentExpression)),a(t,m,g,m)}else d=e.append(d,m)}}d&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),i,o,n)}function s(t,r,n,i,o){var s=e.getElementsOfBindingOrAssignmentPattern(n),c=s.length;if(t.level<1&&t.downlevelIteration)i=l(t,e.createReadHelper(t.context,i,c>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[c-1])?void 0:c,o),!1,o);else if(1!==c&&(t.level<1||0===c)||e.every(s,e.isOmittedExpression)){var u=!e.isDeclarationBindingElement(r)||0!==c;i=l(t,i,u,o)}for(var _,d,p=0;p=1)if(1048576&f.transformFlags){var m=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),d=e.append(d,[m,f]),_=e.append(_,t.createArrayBindingOrAssignmentElement(m))}else _=e.append(_,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===c-1){var g=e.createArraySlice(i,p);a(t,f,g,f)}}else{var g=e.createElementAccess(i,p);a(t,f,g,f)}}}if(_&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(_),i,o,n),d)for(var y=0,v=d;y=e.ModuleKind.ES2015);return e.updateSourceFileNode(r,e.visitLexicalEnvironment(r.statements,p,t,0,n))}function k(t){if(t.decorators&&t.decorators.length>0)return!0;var r=e.getFirstConstructorWithBody(t);return!!r&&e.forEach(r.parameters,S)}function S(e){return void 0!==e.decorators&&e.decorators.length>0}function C(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getClassExtendsHeritageClauseElement(t);return i&&95!==e.skipOuterExpressions(i.expression).kind&&(n|=64),k(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),xt(t)?n|=8:St(t)?n|=32:kt(t)&&(n|=16),ir<=1&&7&n&&(n|=128),n}function T(r){var n=gr;gr=void 0;var i=B(r,!0),a=C(r,i);128&a&&t.startLexicalEnvironment();var o=r.name||(5&a?e.getGeneratedNameForNode(r):void 0),s=2&a?N(r,o,a):E(r,o,a),c=[s];if(e.some(gr)&&c.push(e.createStatement(e.inlineExpressions(gr))),gr=n,1&a&&K(c,i,128&a?e.getInternalName(r):e.getLocalName(r)),re(c,r,!1),re(c,r,!0),ae(c,r),128&a){var u=e.createTokenRange(e.skipTrivia(cr.text,r.members.end),18),l=e.getInternalName(r),_=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.prependStatements(c,t.endLexicalEnvironment());var p=e.createImmediatelyInvokedArrowFunction(c);e.setEmitFlags(p,33554432);var f=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!1),void 0,p)]));e.setOriginalNode(f,r),e.setCommentRange(f,r),e.setSourceMapRange(f,e.moveRangePastDecorators(r)),e.startOnNewLine(f),c=[f]}return 8&a?Tt(c,r):(128&a||2&a)&&(32&a?c.push(e.createExportDefault(e.getLocalName(r,!1,!0))):16&a&&c.push(e.createExternalModuleExport(e.getLocalName(r,!1,!0)))),c.length>1&&(c.push(e.createEndOfDeclarationMarker(r)),e.setEmitFlags(s,4194304|e.getEmitFlags(s))),e.singleOrMany(c)}function E(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,b,e.isModifier),a=e.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,_,e.isHeritageClause),P(t,0!==(64&n))),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}function N(t,r,n){var i=e.moveRangePastDecorators(t),a=wt(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,_,e.isHeritageClause),c=P(t,0!==(64&n)),u=e.createClassExpression(void 0,r,void 0,s,c);e.setOriginalNode(u,t),e.setTextRange(u,i);var l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,u):u)],1));return e.setOriginalNode(l,t),e.setTextRange(l,i),e.setCommentRange(l,t),l}function A(t){var r=gr;gr=void 0;var n=B(t,!0),i=e.visitNodes(t.heritageClauses,_,e.isHeritageClause),a=P(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(n)||e.some(gr)){var s=[],c=8388608&tr.getNodeCheckFlags(t),u=e.createTempVariable(er,!!c);if(c){Lt();var l=e.getSynthesizedClone(u);l.autoGenerateFlags&=-9,fr[e.getOriginalNodeId(t)]=l}return e.setEmitFlags(o,65536|e.getEmitFlags(o)),s.push(e.startOnNewLine(e.createAssignment(u,o))),e.addRange(s,e.map(gr,e.startOnNewLine)),gr=r,e.addRange(s,q(n,u)),s.push(e.startOnNewLine(u)),e.inlineExpressions(s)}return gr=r,o}function P(t,r){var n=[],i=F(t,r);return i&&n.push(i),e.addRange(n,e.visitNodes(t.members,v,e.isClassElement)),e.setTextRange(e.createNodeArray(n),t.members)}function F(r,n){var i=e.forEach(r.members,z),a=262144&r.transformFlags,o=e.getFirstConstructorWithBody(r);if(!i&&!a)return e.visitEachChild(o,_,t);var s=w(o),c=I(r,o,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||r),o))}function w(r){return e.visitParameterList(r&&r.parameters,_,t)||[]}function I(t,r,n){var i=[],a=0;if(Zt(),r){a=O(r,i);var o=M(r);e.addRange(i,e.map(o,R))}else n&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));var s=B(t,!1);return K(i,s,e.createThis()),r&&e.addRange(i,e.visitNodes(r.body.statements,_,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,$t()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),r?r.body.statements:t.members),!0),r?r.body:void 0)}function O(t,r){if(t.body){var n=t.body.statements,i=e.addPrologue(r,n,!1,_);if(i===n.length)return i;var a=n[i];return 215===a.kind&&e.isSuperCall(a.expression)?(r.push(e.visitNode(a,_,e.isStatement)),i+1):i}return 0}function M(t){return e.filter(t.parameters,L)}function L(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function R(t){e.Debug.assert(e.isIdentifier(t.name));var r=t.name,n=e.getMutableClone(r);e.setEmitFlags(n,1584);var i=e.getMutableClone(r);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setEmitFlags(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),n),t.name),i)),e.moveRangePos(t,-1)),1536))}function B(t,r){return e.filter(t.members,r?J:z)}function J(e){return j(e,!0)}function z(e){return j(e,!1)}function j(t,r){return 151===t.kind&&r===e.hasModifier(t,32)&&void 0!==t.initializer}function K(t,r,n){for(var i=0,a=r;i0?151===i.kind?e.createVoidZero():e.createNull():void 0,l=r(t,o,s,c,u,e.moveRangePastDecorators(i));return e.setEmitFlags(l,1536),l}}function ae(t,r){var n=oe(r);n&&t.push(e.setOriginalNode(e.createStatement(n),r))}function oe(n){var i=Q(n),a=te(n,n,i);if(a){var o=fr&&fr[e.getOriginalNodeId(n)],s=e.getLocalName(n,!1,!0),c=r(t,a,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(n)),u}}function se(t){return e.visitNode(t.expression,_,e.isExpression)}function ce(r,n){var a;if(r){a=[];for(var o=0,s=r;o= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},u={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},l={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"}}(ts||(ts={}));var ts;!function(e){function t(t){function n(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,i,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}function i(r){if(0===(16&r.transformFlags))return r;switch(r.kind){case 120:return;case 196:return _(r);case 153:return d(r);case 233:return p(r);case 191:return f(r);case 192:return m(r);default:return e.visitEachChild(r,i,t)}}function a(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 213:return s(r);case 219:return l(r);case 220:return c(r);case 221:return u(r);case 268:return o(r);case 212:case 226:case 240:case 265:case 266:case 229:case 217:case 218:case 216:case 225:case 227:return e.visitEachChild(r,a,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return i(r)}function o(r){var n=e.createUnderscoreEscapedMap();g(r.variableDeclaration,n);var i;if(n.forEach(function(t,r){L.has(r)&&(i||(i=e.cloneMap(L)),i["delete"](r))}),i){var o=L;L=i;var s=e.visitEachChild(r,a,t);return L=o,s}return e.visitEachChild(r,a,t)}function s(r){if(y(r.declarationList)){var n=v(r.declarationList,!1);return n?e.createStatement(n):void 0}return e.visitEachChild(r,i,t)}function c(t){return e.updateForIn(t,y(t.initializer)?v(t.initializer,!0):e.visitNode(t.initializer,i,e.isForInitializer),e.visitNode(t.expression,i,e.isExpression),e.visitNode(t.statement,a,e.isStatement,e.liftToBlock))}function u(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,i,e.isToken),y(t.initializer)?v(t.initializer,!0):e.visitNode(t.initializer,i,e.isForInitializer),e.visitNode(t.expression,i,e.isExpression),e.visitNode(t.statement,a,e.isStatement,e.liftToBlock))}function l(t){return e.updateFor(t,y(t.initializer)?v(t.initializer,!1):e.visitNode(t.initializer,i,e.isForInitializer),e.visitNode(t.condition,i,e.isExpression),e.visitNode(t.incrementor,i,e.isExpression),e.visitNode(t.statement,a,e.isStatement,e.liftToBlock))}function _(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,i,e.isExpression)),t),t)}function d(r){return e.updateMethod(r,void 0,e.visitNodes(r.modifiers,i,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,i,t),void 0,2&e.getFunctionFlags(r)?k(r):e.visitFunctionBody(r.body,i,t))}function p(r){return e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,i,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,i,t),void 0,2&e.getFunctionFlags(r)?k(r):e.visitFunctionBody(r.body,i,t))}function f(r){return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,i,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,i,t),void 0,2&e.getFunctionFlags(r)?k(r):e.visitFunctionBody(r.body,i,t))}function m(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,i,e.isModifier),void 0,e.visitParameterList(r.parameters,i,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?k(r):e.visitFunctionBody(r.body,i,t))}function g(t,r){var n=t.name;if(e.isIdentifier(n))r.set(n.escapedText,!0);else for(var i=0,a=n.elements;i=2&&(4096&z.getNodeCheckFlags(n)?(T(),e.addEmitHelper(v,e.advancedAsyncSuperHelper)):2048&z.getNodeCheckFlags(n)&&(T(),e.addEmitHelper(v,e.asyncSuperHelper))),f=v}return L=l,f}function S(t,r){return e.isBlock(t)?e.updateBlock(t,e.visitNodes(t.statements,a,e.isStatement,r)):e.convertToFunctionBody(e.visitNode(t,a,e.isConciseBody))}function C(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=z.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}}function T(){0===(1&M)&&(M|=1,t.enableSubstitution(186),t.enableSubstitution(184),t.enableSubstitution(185),t.enableEmitNotification(234),t.enableEmitNotification(153),t.enableEmitNotification(155),t.enableEmitNotification(156),t.enableEmitNotification(154))}function E(e,t,r){if(1&M&&I(t)){var n=6144&z.getNodeCheckFlags(t);if(n!==q){var i=q;return q=n,U(e,t,r),void(q=i)}}U(e,t,r)}function N(e,t){return t=V(e,t),1===e&&q?A(t):t}function A(e){switch(e.kind){case 184:return P(e);case 185:return F(e);case 186:return w(e)}return e}function P(t){return 97===t.expression.kind?O(e.createLiteral(e.idText(t.name)),t):t}function F(e){return 97===e.expression.kind?O(e.argumentExpression,e):e}function w(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?P(r):F(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function I(e){var t=e.kind;return 234===t||154===t||153===t||155===t||156===t}function O(t,r){return 4096&q?e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_super"),void 0,[t]),"value"),r):e.setTextRange(e.createCall(e.createFileLevelUniqueName("_super"),void 0,[t]),r)}var M,L,R=t.resumeLexicalEnvironment,B=t.endLexicalEnvironment,J=t.hoistVariableDeclaration,z=t.getEmitResolver(),j=t.getCompilerOptions(),K=e.getEmitScriptTarget(j),q=0,U=t.onEmitNode,V=t.onSubstituteNode;return t.onEmitNode=E,t.onSubstituteNode=N,e.chainBundle(n)}function r(t,r,n,a){t.requestEmitHelper(i);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),r?e.createIdentifier("arguments"):e.createVoidZero(),n?e.createExpressionFromEntityName(n):e.createVoidZero(),o])}var n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),e.transformES2017=t;var i={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:e.helperString(__makeTemplateObject(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_super")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(__makeTemplateObject(["\n const "," = (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 const "," = (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);"]),"_super") }}(ts||(ts={}));var ts;!function(e){function t(t){function s(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,c,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}function c(e){return _(e,!1)}function u(e){return _(e,!0)}function l(e){if(120!==e.kind)return e}function _(r,n){if(0===(8&r.transformFlags))return r;switch(r.kind){case 196:return d(r);case 202:return p(r);case 227:return f(r);case 183:return g(r);case 199:return b(r,n);case 231:return x(r);case 221:return S(r,void 0);case 219:return D(r);case 195:return k(r);case 154:return P(r);case 153:return I(r);case 155:return F(r);case 156:return w(r);case 233:return O(r);case 191:return L(r);case 192:return M(r);case 148:return A(r);case 215:return y(r);case 190:return v(r,n);case 268:return h(r);default:return e.visitEachChild(r,c,t)}}function d(r){return 2&ie&&1&ie?e.setOriginalNode(e.setTextRange(e.createYield(n(t,e.visitNode(r.expression,c,e.isExpression))),r),r):e.visitEachChild(r,c,t)}function p(r){if(2&ie&&1&ie){if(r.asteriskToken){var i=e.visitNode(r.expression,c,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(n(t,e.updateYield(r,r.asteriskToken,a(t,o(t,i,i),i)))),r),r)}return e.setOriginalNode(e.setTextRange(e.createYield(E(r.expression?e.visitNode(r.expression,c,e.isExpression):e.createVoidZero())),r),r)}return e.visitEachChild(r,c,t)}function f(r){if(2&ie){var n=e.unwrapInnermostStatementOfLabel(r);return 221===n.kind&&n.awaitModifier?S(n,r):e.restoreEnclosingLabel(e.visitEachChild(n,c,t),r)}return e.visitEachChild(r,c,t)}function m(t){for(var r,n=[],i=0,a=t;i=2&&(4096&Z.getNodeCheckFlags(r)?(z(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&Z.getNodeCheckFlags(r)&&(z(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function B(t){X();var r=0,n=[],i=e.visitNode(t.body,c,e.isConciseBody);e.isBlock(i)&&(r=e.addPrologue(n,i.statements,!1,c)),e.addRange(n,J(void 0,t));var a=Q();if(r>0||e.some(n)||e.some(a)){var o=e.convertToFunctionBody(i,!0);return e.prependStatements(n,a),e.addRange(n,o.statements.slice(r)),e.updateBlock(o,e.setTextRange(e.createNodeArray(n),o.statements))}return i}function J(r,n){for(var i=0,a=n.parameters;i=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,r):(t.requestEmitHelper(c),e.createCall(e.getHelperName("__assign"),void 0,r))}function n(t,r){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__await"),void 0,[r])}function i(t,r){return t.requestEmitHelper(u),t.requestEmitHelper(l),(r.emitNode||(r.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),r])}function a(t,r,n){return t.requestEmitHelper(u),t.requestEmitHelper(_),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[r]),n)}function o(t,r,n){return t.requestEmitHelper(d),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[r]),n)}var s;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(s||(s={})),e.transformESNext=t;var c={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };"};e.createAssignHelper=r;var u={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},l={name:"typescript:asyncGenerator",scoped:!1,text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},_={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) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},d={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], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'}}(ts||(ts={}));var ts;!function(e){function t(t){function n(r){if(r.isDeclarationFile)return r;k=r;var n=e.visitEachChild(r,i,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}function i(e){return 4&e.transformFlags?a(e):e}function a(r){switch(r.kind){case 254:return s(r,!1);case 255:return c(r,!1);case 258:return u(r,!1);case 264:return D(r);default:return e.visitEachChild(r,i,t)}}function o(t){switch(t.kind){case 10:return m(t);case 264:return D(t);case 254:return s(t,!0);case 255:return c(t,!0);case 258:return u(t,!0);default:return e.Debug.failBadSyntaxKind(t)}}function s(e,t){return l(e.openingElement,e.children,t,e)}function c(e,t){return l(e,void 0,t,e)}function u(e,t){return _(e.openingFragment,e.children,t,e)}function l(r,n,i,a){var s,c=b(r),u=r.attributes.properties;if(0===u.length)s=e.createNull();else{var l=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,r){return r?e.map(t,d):e.createObjectLiteral(e.map(t,p))}));e.isJsxSpreadAttribute(u[0])&&l.unshift(e.createObjectLiteral()),s=e.singleOrUndefined(l),s||(s=e.createAssignHelper(t,l))}var _=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(k),S.reactNamespace,c,s,e.mapDefined(n,o),r,a);return i&&e.startOnNewLine(_),_}function _(r,n,i,a){var s=e.createExpressionForJsxFragment(t.getEmitResolver().getJsxFactoryEntity(k),S.reactNamespace,e.mapDefined(n,o),r,a);return i&&e.startOnNewLine(s),s}function d(t){return e.visitNode(t.expression,i,e.isExpression)}function p(t){var r=x(t),n=f(t.initializer);return e.createPropertyAssignment(r,n)}function f(t){if(void 0===t)return e.createTrue();if(9===t.kind){var r=e.createLiteral(h(t.text)||t.text);return r.singleQuote=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,k),e.setTextRange(r,t)}return 264===t.kind?void 0===t.expression?e.createTrue():D(t):e.Debug.failBadSyntaxKind(t)}function m(t){var r=g(e.getTextOfNode(t,!0));return void 0===r?void 0:e.createLiteral(r)}function g(t){for(var r,n=0,i=-1,a=0;a=0,"statementOffset not initialized correctly!"));var s=n&&95!==e.skipOuterExpressions(n.expression).kind,c=F(a,t,s,i,o);1!==c&&2!==c||o++,t&&(1===c&&(Mt|=4096),e.addRange(a,e.visitNodes(t.body.statements,l,e.isStatement,o))),!s||2===c||t&&P(t.body)||a.push(e.createReturn(e.createFileLevelUniqueName("_this"))),e.prependStatements(a,Et()),t&&q(a,t,!1);var u=e.createBlock(e.setTextRange(e.createNodeArray(a),t?t.body.statements:r.members),!0);return e.setTextRange(u,t?t.body:r),t||e.setEmitFlags(u,1536),u}function P(t){if(224===t.kind)return!0;if(216===t.kind){var r=t;if(r.elseStatement)return P(r.thenStatement)&&P(r.elseStatement)}else if(212===t.kind){var n=e.lastOrUndefined(t.statements);if(n&&P(n))return!0}return!1}function F(t,r,n,i,a){if(!n)return r&&j(t,r),0;if(!r)return t.push(e.createReturn(I())),2;if(i)return K(t,r,I()),mt(),1;var o,s,c=r.body.statements;if(a0?r.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,l,t,0,o))),1048576)):a&&r.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,l,e.isExpression))),1048576))}function B(t,r,n,i){i=e.visitNode(i,l,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),48),e.setEmitFlags(i,48|e.getEmitFlags(i)|1536)),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),t.push(a)}function J(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function z(t,r,n){var i=e.lastOrUndefined(r.parameters);if(J(i,n)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=r.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,r){32768&r.transformFlags&&192!==r.kind&&K(t,r,e.createThis())}function K(t,r,n,i){mt();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),void 0,n)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,r),t.push(a)}function q(t,r,n){if(16384&Mt){var i=void 0;switch(r.kind){case 192: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 233:case 191:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(r))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),void 0,i)]));if(n)return[a].concat(t);t.unshift(a)}return t}function U(t,r){for(var n=0,i=r.members;n0&&(o=!0),e.isBlock(u))a=e.addCustomPrologue(c,u.statements,a,l),n=u.statements,e.addRange(c,e.visitNodes(u.statements,l,e.isStatement,a)),!o&&u.multiLine&&(o=!0);else{e.Debug.assert(192===r.kind),n=e.moveRangeEnd(u,-1);var _=r.equalsGreaterThanToken;e.nodeIsSynthesized(_)||e.nodeIsSynthesized(u)||(e.rangeEndIsOnSameLineAsRangeStart(_,u,It)?s=!0:o=!0);var d=e.visitNode(u,l,e.isExpression),p=e.createReturn(d);e.setTextRange(p,u),e.moveSyntheticComments(p,u),e.setEmitFlags(p,1440),c.push(p),i=u}var f=t.endLexicalEnvironment();e.prependStatements(c,f),q(c,r,!1),!o&&f&&f.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(c),n),o);return e.setTextRange(m,r.body),!o&&s&&e.setEmitFlags(m,1),i&&e.setTokenSourceMapRange(m,18,i),e.setOriginalNode(m,r.body),m}function ee(r){var n=e.visitFunctionBody(r.body,_,t);return e.updateBlock(n,e.setTextRange(e.createNodeArray(q(n.statements,r,!0)),n.statements))}function te(r,n){if(n)return e.visitEachChild(r,l,t);var i=256&Mt?o(4032,512):o(3904,128),a=e.visitEachChild(r,l,t);return s(i,0,0),a}function re(r){switch(r.expression.kind){case 190:return e.updateStatement(r,ne(r.expression,!1));case 199:return e.updateStatement(r,ie(r.expression,!1))}return e.visitEachChild(r,l,t)}function ne(r,n){if(!n)switch(r.expression.kind){case 190:return e.updateParen(r,ne(r.expression,!1));case 199:return e.updateParen(r,ie(r.expression,!1))}return e.visitEachChild(r,l,t)}function ie(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,l,t,0,n):e.visitEachChild(r,l,t)}function ae(r){var n,i=o(0,e.hasModifier(r,1)?32:0);if(Rt&&0===(3&r.declarationList.flags)){for(var a=void 0,c=0,u=r.declarationList.declarations;c=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}function Dt(t){return 1&Bt&&16&Mt?e.setTextRange(e.createFileLevelUniqueName("_this"),t):t}function kt(t,r){return e.hasModifier(r,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function St(t,r){if(!t||!r)return!1;if(e.some(t.parameters))return!1;var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||215!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||186!==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)||203!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}var Ct=t.startLexicalEnvironment,Tt=t.resumeLexicalEnvironment,Et=t.endLexicalEnvironment,Nt=t.hoistVariableDeclaration,At=t.getCompilerOptions(),Pt=t.getEmitResolver(),Ft=t.onSubstituteNode,wt=t.onEmitNode;t.onEmitNode=pt,t.onSubstituteNode=gt;var It,Ot,Mt,Lt,Rt,Bt;return e.chainBundle(a)}function r(t,r){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__extends"),void 0,[r,e.createFileLevelUniqueName("_super")])}function n(t,r,n){return t.requestEmitHelper(l),e.createCall(e.getHelperName("__makeTemplateObject"),void 0,[r,n])}var i;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(i||(i={}));var a;!function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(a||(a={}));var o;!function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(o||(o={}));var s;!function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn"}(s||(s={}));var c;!function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask"}(c||(c={})),e.transformES2015=t;var u={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 })();"},l={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 };'}}(ts||(ts={}));var ts;!function(e){function t(t){function r(e){return e}function n(t,r,n){switch(r.kind){case 256:case 257:case 255:var i=r.tagName;u[e.getOriginalNodeId(i)]=!0}c(t,r,n)}function i(t,r){return r.id&&u&&u[r.id]?_(t,r):(r=_(t,r),e.isPropertyAccessExpression(r)?a(r):e.isPropertyAssignment(r)?o(r):r)}function a(t){var r=s(t.name);return r?e.setTextRange(e.createElementAccess(t.expression,r),t):t}function o(t){var r=e.isIdentifier(t.name)&&s(t.name);return r?e.updatePropertyAssignment(t,r,t.initializer):t}function s(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(r>=72&&r<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,l=t.getCompilerOptions();1!==l.jsx&&3!==l.jsx||(c=t.onEmitNode,t.onEmitNode=n,t.enableEmitNotification(256),t.enableEmitNotification(257),t.enableEmitNotification(255),u=[]);var _=t.onSubstituteNode;return t.onSubstituteNode=i,t.enableSubstitution(184),t.enableSubstitution(269),e.chainBundle(r)}e.transformES5=t}(ts||(ts={}));var ts;!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 r(r){function i(t){if(t.isDeclarationFile||0===(512&t.transformFlags))return t;var n=e.visitEachChild(t,a,r);return e.addEmitHelpers(n,r.readEmitHelpers()),n}function a(t){var n=t.transformFlags;return Ot?o(t):It?s(t):256&n?u(t):512&n?e.visitEachChild(t,a,r):t}function o(e){switch(e.kind){case 217:return z(e);case 218:return K(e);case 226:return te(e);case 227:return ne(e);default:return s(e)}}function s(t){switch(t.kind){case 233:return l(t);case 191:return _(t);case 155:case 156:return d(t);case 213:return f(t);case 219:return U(t);case 220:return W(t);case 223:return Q(t);case 222:return G(t);case 224:return Z(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,a,r):t; }}function c(t){switch(t.kind){case 199:return m(t);case 200:return D(t);case 202:return k(t);case 182:return S(t);case 183:return T(t);case 185:return E(t);case 186:return N(t);case 187:return A(t);default:return e.visitEachChild(t,a,r)}}function u(t){switch(t.kind){case 233:return l(t);case 191:return _(t);default:return e.Debug.failBadSyntaxKind(t)}}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,r),void 0,p(t.body)),t),t);else{var n=It,i=Ot;It=!1,Ot=!1,t=e.visitEachChild(t,a,r),It=n,Ot=i}return It?void Ct(t):t}function _(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,r),void 0,p(t.body)),t),t);else{var n=It,i=Ot;It=!1,Ot=!1,t=e.visitEachChild(t,a,r),It=n,Ot=i}return t}function d(t){var n=It,i=Ot;return It=!1,Ot=!1,t=e.visitEachChild(t,a,r),It=n,Ot=i,t}function p(t){var r=[],n=It,i=Ot,o=Mt,s=Lt,c=Rt,u=Bt,l=Jt,_=zt,d=$t,p=jt,f=Kt,m=qt,g=Ut;It=!0,Ot=!1,Mt=void 0,Lt=void 0,Rt=void 0,Bt=void 0,Jt=void 0,zt=void 0,$t=1,jt=void 0,Kt=void 0,qt=void 0,Ut=e.createTempVariable(void 0),kt();var y=e.addPrologue(r,t.statements,!1,a);P(t.statements,y);var v=nt();return e.prependStatements(r,St()),r.push(e.createReturn(v)),It=n,Ot=i,Mt=o,Lt=s,Rt=c,Bt=u,Jt=l,zt=_,$t=d,jt=p,Kt=f,qt=m,Ut=g,e.setTextRange(e.createBlock(r,t.multiLine),t)}function f(t){if(16777216&t.transformFlags)return void L(t.declarationList);if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r=59&&e<=70}function y(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function v(t){var n=t.left,i=t.right;if(oe(i)){var o=void 0;switch(n.kind){case 184:o=e.updatePropertyAccess(n,_e(e.visitNode(n.expression,a,e.isLeftHandSideExpression)),n.name);break;case 185:o=e.updateElementAccess(n,_e(e.visitNode(n.expression,a,e.isLeftHandSideExpression)),_e(e.visitNode(n.argumentExpression,a,e.isExpression)));break;default:o=e.visitNode(n,a,e.isExpression)}var s=t.operatorToken.kind;return g(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(_e(o),y(s),e.visitNode(i,a,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(i,a,e.isExpression))}return e.visitEachChild(t,a,r)}function h(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return x(t);var n=e.getMutableClone(t);return n.left=_e(e.visitNode(t.left,a,e.isExpression)),n.right=e.visitNode(t.right,a,e.isExpression),n}return e.visitEachChild(t,a,r)}function b(t){var r=pe(),n=de();return He(n,e.visitNode(t.left,a,e.isExpression),t.left),53===t.operatorToken.kind?Qe(r,n,t.left):Xe(r,n,t.left),He(n,e.visitNode(t.right,a,e.isExpression),t.right),fe(r),n}function x(t){function r(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(r(t.left),r(t.right)):(oe(t)&&n.length>0&&(rt(1,[e.createStatement(e.inlineExpressions(n))]),n=[]),n.push(e.visitNode(t,a,e.isExpression)))}var n=[];return r(t.left),r(t.right),e.inlineExpressions(n)}function D(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var n=pe(),i=pe(),o=de();return Qe(n,e.visitNode(t.condition,a,e.isExpression),t.condition),He(o,e.visitNode(t.whenTrue,a,e.isExpression),t.whenTrue),Ge(i),fe(n),He(o,e.visitNode(t.whenFalse,a,e.isExpression),t.whenFalse),fe(i),o}return e.visitEachChild(t,a,r)}function k(t){var n=pe(),i=e.visitNode(t.expression,a,e.isExpression);if(t.asteriskToken){var o=0===(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(r,i,t):i;Ye(o,t)}else Ze(i,t);return fe(n),Ue(t)}function S(e){return C(e.elements,void 0,void 0,e.multiLine)}function C(t,r,n,i){function o(t,n){if(oe(n)&&t.length>0){var o=void 0!==s;s||(s=de()),He(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(r?[r].concat(t):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,a,e.isExpression)),t}var s,c=se(t);if(c>0){s=de();var u=e.visitNodes(t,a,e.isExpression,0,c);He(s,e.createArrayLiteral(r?[r].concat(u):u)),r=void 0}var l=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(l,i)]):e.setTextRange(e.createArrayLiteral(r?[r].concat(l):l,i),n)}function T(t){function r(r,n){oe(n)&&r.length>0&&(We(e.createStatement(e.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(t,n,s),c=e.visitNode(o,a,e.isExpression);return c&&(i&&e.startOnNewLine(c),r.push(c)),r}var n=t.properties,i=t.multiLine,o=se(n),s=de();He(s,e.createObjectLiteral(e.visitNodes(n,a,e.isObjectLiteralElementLike,0,o),i));var c=e.reduceLeft(n,r,[],o);return c.push(i?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function E(t){if(oe(t.argumentExpression)){var n=e.getMutableClone(t);return n.expression=_e(e.visitNode(t.expression,a,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(t.argumentExpression,a,e.isExpression),n}return e.visitEachChild(t,a,r)}function N(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,oe)){var n=e.createCallBinding(t.expression,Tt,Nt,!0),i=n.target,o=n.thisArg;return e.setOriginalNode(e.createFunctionApply(_e(e.visitNode(i,a,e.isLeftHandSideExpression)),o,C(t.arguments),t),t)}return e.visitEachChild(t,a,r)}function A(t){if(e.forEach(t.arguments,oe)){var n=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Tt),i=n.target,o=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(_e(e.visitNode(i,a,e.isExpression)),o,C(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,a,r)}function P(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0)break;u.push(R(i))}u.length&&(We(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function R(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,a,e.isExpression)),t)}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var r=pe(),n=t.elseStatement?pe():void 0;Qe(t.elseStatement?n:r,e.visitNode(t.expression,a,e.isExpression),t.expression),F(t.thenStatement),t.elseStatement&&(Ge(r),fe(n),F(t.elseStatement)),fe(r)}else We(e.visitNode(t,a,e.isStatement));else We(e.visitNode(t,a,e.isStatement))}function J(t){if(oe(t)){var r=pe(),n=pe();Te(r),fe(n),F(t.statement),fe(r),Xe(n,e.visitNode(t.expression,a,e.isExpression)),Ee()}else We(e.visitNode(t,a,e.isStatement))}function z(t){return Ot?(Ce(),t=e.visitEachChild(t,a,r),Ee(),t):e.visitEachChild(t,a,r)}function j(t){if(oe(t)){var r=pe(),n=Te(r);fe(r),Qe(n,e.visitNode(t.expression,a,e.isExpression)),F(t.statement),Ge(r),Ee()}else We(e.visitNode(t,a,e.isStatement))}function K(t){return Ot?(Ce(),t=e.visitEachChild(t,a,r),Ee(),t):e.visitEachChild(t,a,r)}function q(t){if(oe(t)){var r=pe(),n=pe(),i=Te(n);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?L(o):We(e.setTextRange(e.createStatement(e.visitNode(o,a,e.isExpression)),o))}fe(r),t.condition&&Qe(i,e.visitNode(t.condition,a,e.isExpression)),F(t.statement),fe(n),t.incrementor&&We(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,a,e.isExpression)),t.incrementor)),Ge(r),Ee()}else We(e.visitNode(t,a,e.isStatement))}function U(t){Ot&&Ce();var n=t.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i0?e.inlineExpressions(e.map(c,R)):void 0,e.visitNode(t.condition,a,e.isExpression),e.visitNode(t.incrementor,a,e.isExpression),e.visitNode(t.statement,a,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,a,r);return Ot&&Ee(),t}function V(t){if(oe(t)){var r=de(),n=de(),i=e.createLoopVariable(),o=t.initializer;Tt(i),He(r,e.createArrayLiteral()),We(e.createForIn(n,e.visitNode(t.expression,a,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(r,"push"),void 0,[n])))),He(i,e.createLiteral(0));var s=pe(),c=pe(),u=Te(c);fe(s),Qe(u,e.createLessThan(i,e.createPropertyAccess(r,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var _=0,d=o.declarations;_0?Ge(r,t):We(t)}function G(t){if(Ot){var n=Je(t.label&&e.idText(t.label));if(n>0)return Ke(n,t)}return e.visitEachChild(t,a,r)}function X(t){var r=Be(t.label?e.idText(t.label):void 0);r>0?Ge(r,t):We(t)}function Q(t){if(Ot){var n=Be(t.label&&e.idText(t.label));if(n>0)return Ke(n,t)}return e.visitEachChild(t,a,r)}function Y(t){$e(e.visitNode(t.expression,a,e.isExpression),t)}function Z(t){return qe(e.visitNode(t.expression,a,e.isExpression),t)}function $(t){oe(t)?(he(_e(e.visitNode(t.expression,a,e.isExpression))),F(t.statement),be()):We(e.visitNode(t,a,e.isStatement))}function ee(t){if(oe(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=Ae(),o=_e(e.visitNode(t.expression,a,e.isExpression)),s=[],c=-1,u=0;u0)break;d.push(e.createCaseClause(e.visitNode(l.expression,a,e.isExpression),[Ke(s[u],l.expression)]))}else p++}d.length&&(We(e.createSwitch(o,e.createCaseBlock(d))),_+=d.length,d=[]),p>0&&(_+=p,p=0)}Ge(c>=0?s[c]:i);for(var u=0;u=0;r--){var n=Bt[r];if(!Me(n))break;if(n.labelText===e)return!0}return!1}function Be(e){if(Bt)if(e)for(var t=Bt.length-1;t>=0;t--){var r=Bt[t];if(Me(r)&&r.labelText===e)return r.breakLabel;if(Oe(r)&&Re(e,t-1))return r.breakLabel}else for(var t=Bt.length-1;t>=0;t--){var r=Bt[t];if(Oe(r))return r.breakLabel}return 0}function Je(e){if(Bt)if(e)for(var t=Bt.length-1;t>=0;t--){var r=Bt[t];if(Le(r)&&Re(e,t-1))return r.continueLabel}else for(var t=Bt.length-1;t>=0;t--){var r=Bt[t];if(Le(r))return r.continueLabel}return 0}function ze(t){if(t>0){void 0===zt&&(zt=[]);var r=e.createLiteral(-1);return void 0===zt[t]?zt[t]=[r]:zt[t].push(r),r}return e.createOmittedExpression()}function je(r){var n=e.createLiteral(r);return e.addSyntheticTrailingComment(n,3,t(r)),n}function Ke(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([je(3),ze(t)])),r)}function qe(t,r){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[je(2),t]:[je(2)])),r)}function Ue(t){return e.setTextRange(e.createCall(e.createPropertyAccess(Ut,"sent"),void 0,[]),t)}function Ve(){rt(0)}function We(e){e?rt(1,[e]):Ve()}function He(e,t,r){rt(2,[e,t],r)}function Ge(e,t){rt(3,[e],t)}function Xe(e,t,r){rt(4,[e,t],r)}function Qe(e,t,r){rt(5,[e,t],r)}function Ye(e,t){rt(7,[e],t)}function Ze(e,t){rt(6,[e],t)}function $e(e,t){rt(8,[e],t)}function et(e,t){rt(9,[e],t)}function tt(){rt(10)}function rt(e,t,r){void 0===jt&&(jt=[],Kt=[],qt=[]),void 0===Jt&&fe(pe());var n=jt.length;jt[n]=e,Kt[n]=t,qt[n]=r}function nt(){er=0,tr=0,Vt=void 0,Wt=!1,Ht=!1,Gt=void 0,Xt=void 0,Qt=void 0,Yt=void 0,Zt=void 0;var t=it();return n(r,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Ut)],void 0,e.createBlock(t,t.length>0)),524288))}function it(){if(jt){for(var t=0;t=0;r--){var n=Zt[r];Xt=[e.createWith(n.expression,e.createBlock(Xt))]}if(Yt){var i=Yt.startLabel,a=Yt.catchLabel,o=Yt.finallyLabel,s=Yt.endLabel;Xt.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Ut,"trys"),"push"),void 0,[e.createArrayLiteral([ze(i),ze(a),ze(o),ze(s)])]))),Yt=void 0}t&&Xt.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Ut,"label"),e.createLiteral(tr+1))))}Gt.push(e.createCaseClause(e.createLiteral(tr),Xt||[])),Xt=void 0}function ut(e){if(Jt)for(var t=0;t 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'}}(ts||(ts={}));var ts;!function(e){function t(t){function s(t){switch(t){case e.ModuleKind.AMD:return _;case e.ModuleKind.UMD:return d;default:return l}}function c(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,se)||67108864&t.transformFlags))return t;fe=t,me=e.collectExternalModuleInfo(t,ce,se),ve[e.getOriginalNodeId(t)]=me;var r=s(_e),n=r(t);return fe=void 0,me=void 0,ye=!1,e.aggregateTransformFlags(n)}function u(){return!(me.exportEquals||!e.isExternalModule(fe))}function l(r){ie();var i=[],a=e.getStrictOptionValue(se,"alwaysStrict")||!se.noImplicitUseStrict&&e.isExternalModule(fe),o=e.addPrologue(i,r.statements,a,y);u()&&e.append(i,W()),e.append(i,e.visitNode(me.externalHelpersImportDeclaration,y,e.isStatement)),e.addRange(i,e.visitNodes(r.statements,y,e.isStatement,o)),g(i,!1),e.prependStatements(i,ae());var s=e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray(i),r.statements));return me.hasExportStarsToExportValues&&!se.importHelpers&&e.addEmitHelper(s,n),e.addEmitHelpers(s,t.readEmitHelpers()),s}function _(r){var n=e.createIdentifier("define"),i=e.tryGetModuleNameFromFile(r,ue,se),a=p(r,!0),o=a.aliasedModuleNames,s=a.unaliasedModuleNames,c=a.importAliasNames,u=e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(n,void 0,(i?[i]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(o,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,m(r))])))]),r.statements));return e.addEmitHelpers(u,t.readEmitHelpers()),u}function d(r){var n=p(r,!1),i=n.aliasedModuleNames,a=n.unaliasedModuleNames,o=n.importAliasNames,s=e.tryGetModuleNameFromFile(r,ue,se),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(i,a)),e.createIdentifier("factory")])))])))],!0),void 0)),u=e.updateSourceFileNode(r,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(o),void 0,m(r))]))]),r.statements));return e.addEmitHelpers(u,t.readEmitHelpers()),u}function p(t,r){for(var n=[],i=[],a=[],o=0,s=t.amdDependencies;o(e.isExportName(t)?1:0);return!1}function b(r){return h(r.left)?e.flattenDestructuringAssignment(r,v,t,0,!1,O):e.visitEachChild(r,v,t)}function x(t){var r=e.visitNode(e.firstOrUndefined(t.arguments),v),n=!!(16384&t.transformFlags);switch(se.module){case e.ModuleKind.AMD:return k(r,n);case e.ModuleKind.UMD:return D(r,n);case e.ModuleKind.CommonJS:default:return S(r,n)}}function D(t,r){if(ye=!0,e.isSimpleCopiableExpression(t)){var n=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?e.createLiteral(t):e.setEmitFlags(e.setTextRange(e.getSynthesizedClone(t),t),1536);return e.createConditional(e.createIdentifier("__syncRequire"),S(t,r),k(n,r))}var i=e.createTempVariable(oe);return e.createComma(e.createAssignment(i,t),e.createConditional(e.createIdentifier("__syncRequire"),S(i,r),k(i,r)))}function k(r,n){var i,o=e.createUniqueName("resolve"),s=e.createUniqueName("reject"),c=[e.createParameter(void 0,void 0,void 0,o),e.createParameter(void 0,void 0,void 0,s)],u=e.createBlock([e.createStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([r||e.createOmittedExpression()]),o,s]))]);le>=2?i=e.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),n&&e.setEmitFlags(i,8));var l=e.createNew(e.createIdentifier("Promise"),void 0,[i]);return se.esModuleInterop?(t.requestEmitHelper(a),e.createCall(e.createPropertyAccess(l,e.createIdentifier("then")),void 0,[e.getHelperName("__importStar")])):l}function S(r,n){var i=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),o=e.createCall(e.createIdentifier("require"),void 0,r?[r]:[]);se.esModuleInterop&&(t.requestEmitHelper(a),o=e.createCall(e.getHelperName("__importStar"),void 0,[o]));var s;return le>=2?s=e.createArrowFunction(void 0,void 0,[],void 0,void 0,o):(s=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(o)])),n&&e.setEmitFlags(s,8)),e.createCall(e.createPropertyAccess(i,"then"),void 0,[s])}function C(r,n){return!se.esModuleInterop||67108864&e.getEmitFlags(r)?n:e.getImportNeedsImportStarHelper(r)?(t.requestEmitHelper(a),e.createCall(e.getHelperName("__importStar"),void 0,[n])):e.getImportNeedsImportDefaultHelper(r)?(t.requestEmitHelper(o),e.createCall(e.getHelperName("__importDefault"),void 0,[n])):n}function T(t){var r,n=e.getNamespaceDeclarationNode(t);if(_e!==e.ModuleKind.AMD){if(!t.importClause)return e.setTextRange(e.createStatement(E(t)),t);var i=[];n&&!e.isDefaultImport(t)?i.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,C(t,E(t)))):(i.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),void 0,C(t,E(t)))),n&&e.isDefaultImport(t)&&i.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)))), r=e.append(r,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(i,le>=2?2:0)),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)),t)],le>=2?2:0))));if(R(t)){var a=e.getOriginalNodeId(t);he[a]=J(he[a],t)}else r=J(r,t);return e.singleOrMany(r)}function E(t){var r=e.getExternalModuleNameLiteral(t,fe,ue,ce,se),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function N(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var r;if(_e!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.setTextRange(e.createStatement(G(t.name,E(t))),t)):e.append(r,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,E(t))],le>=2?2:0)),t)):e.hasModifier(t,1)&&(r=e.append(r,e.setTextRange(e.createStatement(G(e.getExportName(t),e.getLocalName(t))),t))),R(t)){var n=e.getOriginalNodeId(t);he[n]=z(he[n],t)}else r=z(r,t);return e.singleOrMany(r)}function A(n){if(n.moduleSpecifier){var i=e.getGeneratedNameForNode(n);if(n.exportClause){var a=[];_e!==e.ModuleKind.AMD&&a.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,E(n))])),n));for(var o=0,s=n.exportClause.elements;o1){var i=n.slice(1),o=e.guessIndentation(i);r=[n[0]].concat(e.map(i,function(e){return e.slice(o)})).join(ge)}e.addSyntheticLeadingComment(a,t.kind,r,t.hasTrailingNewLine)}},u=0,l=s;u0?e.parameters[0].type:void 0}function s(e){switch(e.kind){case 231:case 151:case 150:case 148:return!0}return!1}function c(e){switch(e.kind){case 233:case 238:case 242:case 235:case 234:case 236:case 237:case 213:case 243:case 249:case 248:return!0}return!1}function u(e){switch(e.kind){case 158:case 154:case 153:case 155:case 156:case 151:case 150:case 152:case 157:case 159:case 231:case 147:case 206:case 161:case 170:case 162:case 163:case 178:return!0}return!1}e.getDeclarationDiagnostics=t;var l=531468;e.transformDeclarations=r}(ts||(ts={}));var ts;!function(e){function t(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}function r(r,n){var i=r.jsx,a=e.getEmitScriptTarget(r),o=e.getEmitModuleKind(r),s=[];return e.addRange(s,n&&n.before),s.push(e.transformTypeScript),2===i&&s.push(e.transformJsx),a<6&&s.push(e.transformESNext),a<4&&s.push(e.transformES2017),a<3&&s.push(e.transformES2016),a<2&&(s.push(e.transformES2015),s.push(e.transformGenerators)),s.push(t(o)),a<1&&s.push(e.transformES5),e.addRange(s,n&&n.after),s}function n(t,r,n,i,a,o){function s(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:J(t)}function c(t){e.Debug.assert(I<2,"Cannot modify the transformation context after transformation has completed."),T[t]|=1}function u(t){return 0!==(1&T[t.kind])&&0===(4&e.getEmitFlags(t))}function l(t,r){return e.Debug.assert(I<3,"Cannot substitute a node after the result is disposed."),r&&u(r)&&F(t,r)||r}function _(t){e.Debug.assert(I<2,"Cannot modify the transformation context after transformation has completed."),T[t]|=2}function d(t){return 0!==(2&T[t.kind])||0!==(2&e.getEmitFlags(t))}function p(t,r,n){e.Debug.assert(I<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(d(r)?w(t,r,n):n(t,r))}function f(t){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(e.createVariableDeclaration(t),64);k?k.push(r):k=[r]}function m(t){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),S?S.push(t):S=[t]}function g(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!P,"Lexical environment is suspended."),E[A]=k,N[A]=S,A++,k=void 0,S=void 0}function y(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!P,"Lexical environment is already suspended."),P=!0}function v(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(P,"Lexical environment is not suspended."),P=!1}function h(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!P,"Lexical environment is suspended.");var t;if((k||S)&&(S&&(t=S.slice()),k)){var r=e.createVariableStatement(void 0,e.createVariableDeclarationList(k));t?t.push(r):t=[r]}return A--,k=E[A],S=N[A],0===A&&(E=[],N=[]),t}function b(t){e.Debug.assert(I>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(I<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),C=e.append(C,t)}function x(){e.Debug.assert(I>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(I<2,"Cannot modify the transformation context after transformation has completed.");var t=C;return C=void 0,t}function D(){if(I<3){for(var t=0,r=i;t=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),k.sourceMapMappings+=n(b.nameIndex-D),D=b.nameIndex),x=b,k.sourceMapDecodedMappings.push(x)}}function l(t){if(!T&&!e.positionIsSynthesized(t)){C&&e.performance.mark("beforeSourcemap");var n=e.getLineAndCharacterOfPosition(g,t);n.line++,n.character++;var i=r.getLine(),a=r.getColumn();!b||b.emittedLine!==i||b.emittedColumn!==a||b.sourceIndex===h&&(b.sourceLine>n.line||b.sourceLine===n.line&&b.sourceColumn>n.character)?(u(),b={emittedLine:i,emittedColumn:a,sourceLine:n.line,sourceColumn:n.character,sourceIndex:h}):(b.sourceLine=n.line,b.sourceColumn=n.character,b.sourceIndex=h),C&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function _(e,t,r){if(T)return r(e,t);if(t){var n=t.emitNode,i=n&&n.flags,a=n&&n.sourceMapRange,s=a||t,c=s.pos,u=s.end,_=a&&a.source,d=g;_===d&&(_=void 0),_&&p(_),299!==t.kind&&0===(16&i)&&c>=0&&l(o(c)),_&&p(d),64&i?(T=!0,r(e,t),T=!1):r(e,t),_&&p(_),299!==t.kind&&0===(32&i)&&u>=0&&l(u),_&&p(d)}}function d(e,t,r,n,i){if(T)return i(t,r,n);var a=e&&e.emitNode,s=a&&a.flags,c=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[t];return n=o(c?c.pos:n),0===(128&s)&&n>=0&&l(n),n=i(t,r,n),c&&(n=c.end),0===(256&s)&&n>=0&&l(n),n}function p(r){if(!T){g=r,y=g.text;var n=a.sourceRoot?t.getCommonSourceDirectory():v,i=e.getRelativePathToDirectoryOrUrl(n,g.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);h=k.sourceMapSources.indexOf(i),h===-1&&(h=k.sourceMapSources.length,k.sourceMapSources.push(i),k.inputSourceFileNames.push(g.fileName),a.inlineSources&&k.sourceMapSourcesContent.push(g.text))}}function f(){if(!T)return u(),JSON.stringify({version:3,file:k.sourceMapFile,sourceRoot:k.sourceMapSourceRoot,sources:k.sourceMapSources,names:k.sourceMapNames,mappings:k.sourceMapMappings,sourcesContent:k.sourceMapSourcesContent})}function m(){if(!T){if(a.inlineSourceMap){var t=e.base64encode(e.sys,f());return k.jsSourceMappingURL="data:application/json;base64,"+t}return k.jsSourceMappingURL}}void 0===a&&(a=t.getCompilerOptions());var g,y,v,h,b,x,D,k,S,C=a.extendedDiagnostics,T=!(a.sourceMap||a.inlineSourceMap);return{initialize:s,reset:c,setSourceFile:p,emitPos:l,emitNodeWithSourceMap:_,emitTokenWithSourceMap:d,getText:f,getSourceMappingURL:m}}function r(e){if(e<64)return a.charAt(e);throw TypeError(e+": not a 64 based value")}function n(e){e<0?e=(-e<<1)+1:e<<=1;var t="";do{var n=31&e;e>>=5,e>0&&(n=32|n),t+=r(n)}while(e>0);return t}var i={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"}(ts||(ts={}));var ts;!function(e){function t(t,r){function n(t,r,n){if(j)return void n(t,r);if(r){z=!1;var a=r.emitNode,o=a&&a.flags,s=a&&a.commentRange||r,c=s.pos,u=s.end;if(c<0&&u<0||c===u)i(t,r,a,o,n);else{M&&e.performance.mark("preEmitNodeWithComment");var l=299!==r.kind,d=c<0||0!==(512&o)||10===r.kind,p=u<0||0!==(1024&o)||10===r.kind;d||_(c,l);var f=R,m=B,y=J;d||(R=c),p||(B=u,232===r.kind&&(J=u)),M&&e.performance.measure("commentTime","preEmitNodeWithComment"),i(t,r,a,o,n),M&&e.performance.mark("postEmitNodeWithComment"),R=f,B=m,J=y,!p&&l&&g(u),M&&e.performance.measure("commentTime","postEmitNodeWithComment")}}}function i(t,r,n,i,s){var c=n&&n.leadingComments;e.some(c)&&(M&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,a),M&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,r,i,s);var l=n&&n.trailingComments;e.some(l)&&(M&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,o),M&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function a(e){2===e.kind&&P.writeLine(),s(e),e.hasTrailingNewLine||2===e.kind?P.writeLine():P.write(" ")}function o(e){P.isAtStartOfLine()||P.write(" "),s(e),e.hasTrailingNewLine&&P.writeLine()}function s(t){var r=c(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,P,0,r.length,L)}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,r,n){2048&r?(j=!0,n(e,t),j=!1):n(e,t)}function l(t,r,n){M&&e.performance.mark("preEmitBodyWithDetachedComments");var i=r.pos,a=r.end,o=e.getEmitFlags(t),s=i<0||0!==(512&o),c=j||a<0||0!==(1024&o);s||E(r),M&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!j?(j=!0,n(t),j=!1):n(t),M&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(_(r.end,!0),z&&!P.isAtStartOfLine()&&P.writeLine()),M&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")}function _(e,t){z=!1,t?b(e,f):0===e&&b(e,d)}function d(e,t,r,n,i){A(e,t)&&f(e,t,r,n,i)}function p(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function f(t,n,i,a,o){p(w,t)&&(z||(e.emitNewLineBeforeLeadingCommentOfPosition(I,P,o,t),z=!0),r&&r(t),e.writeCommentRange(w,I,P,t,n,L),r&&r(n),a?P.writeLine():3===i&&P.write(" "))}function m(e){j||e===-1||_(e,!0)}function g(e){x(e,y)}function y(t,n,i,a){p(w,t)&&(P.isAtStartOfLine()||P.write(" "),r&&r(t),e.writeCommentRange(w,I,P,t,n,L),r&&r(n),a&&P.writeLine())}function v(t,r){j||(M&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),x(t,r?y:h),M&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))}function h(t,n,i,a){r&&r(t),e.writeCommentRange(w,I,P,t,n,L),r&&r(n),a?P.writeLine():P.write(" ")}function b(t,r){R!==-1&&t===R||(C(t)?T(r):e.forEachLeadingCommentRange(w,t,r,t))}function x(t,r){(B===-1||t!==B&&t!==J)&&e.forEachTrailingCommentRange(w,t,r)}function D(){F=void 0,w=void 0,I=void 0,O=void 0}function k(e){P=e}function S(t){F=t,w=F.text,I=e.getLineStarts(F),O=void 0}function C(t){return void 0!==O&&e.lastOrUndefined(O).nodePos===t}function T(t){var r=e.lastOrUndefined(O).detachedCommentEndPos;O.length-1?O.pop():O=void 0,e.forEachLeadingCommentRange(w,r,t,r)}function E(t){var r=e.emitDetachedComments(w,I,P,N,t,L,j);r&&(O?O.push(r):O=[r])}function N(t,n,i,a,o,s){p(w,a)&&(r&&r(a),e.writeCommentRange(t,n,i,a,o,s),r&&r(o))}function A(t,r){return e.isRecognizedTripleSlashComment(w,t,r)}var P,F,w,I,O,M=t.extendedDiagnostics,L=e.getNewLineCharacter(t),R=-1,B=-1,J=-1,z=!1,j=t.removeComments;return{reset:D,setWriter:k,setSourceFile:S,emitNodeWithComments:n,emitBodyWithDetachedComments:l,emitTrailingCommentsOfPosition:v,emitLeadingCommentsOfPosition:m}}e.createCommentWriter=t}(ts||(ts={}));var ts;!function(e){function t(t,n,i,a){var o=e.isArray(i)?i:e.getSourceFilesToEmit(t,i),s=t.getCompilerOptions();if(s.outFile||s.out){if(o.length){var c=e.createBundle(o,t.getPrependNodes()),u=n(r(c,t,a),c);if(u)return u}}else for(var l=0,_=o;l<_.length;l++){var d=_[l],u=n(r(d,t,a),d);if(u)return u}}function r(t,r,i){var o=r.getCompilerOptions();if(274===t.kind){var s=o.outFile||o.out,c=n(s,o),u=i||o.declaration?e.removeFileExtension(s)+".d.ts":void 0,l=e.getAreDeclarationMapsEnabled(o)?u+".map":void 0,d=o.references&&s&&e.removeFileExtension(s)+_;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:l,bundleInfoPath:d}}var s=e.getOwnEmitOutputFilePath(t,r,a(t,o)),c=n(s,o),p=e.isSourceFileJavaScript(t),u=!i&&!o.declaration||p?void 0:e.getDeclarationEmitOutputFilePath(t,r),l=e.getAreDeclarationMapsEnabled(o)?u+".map":void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:l,bundleInfoPath:void 0}}function n(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function i(){return{originalOffset:-1,totalLength:-1}}function a(t,r){if(e.isJsonSourceFile(t))return".json";if(1===r.jsx)if(e.isSourceFileJavaScript(t)){if(e.fileExtensionIs(t.fileName,".jsx"))return".jsx"}else if(1===t.languageVariant)return".jsx";return".js"}function o(r,n,a,o,c,u){function l(e,t){var r=e.jsFilePath,n=e.sourceMapFilePath,i=e.declarationFilePath,a=e.declarationMapPath,s=e.bundleInfoPath;_(t,r,n,s),d(t,i,a),!C&&v&&(o||v.push(r),n&&v.push(n),i&&v.push(i),s&&v.push(s))}function _(t,i,a,u){if(n.isEmitBlocked(i)||g.noEmit||g.emitDeclarationOnly)return void(C=!0);if(!o){var l=e.transformNodes(r,n,g,[t],c,!1),_=s(__assign({},g,{noEmitHelpers:g.noEmitHelpers}),{hasGlobalName:r.hasGlobalName,onEmitNode:l.emitNodeWithNotification,substituteNode:l.substituteNode,onEmitSourceMapOfNode:D.emitNodeWithSourceMap,onEmitSourceMapOfToken:D.emitTokenWithSourceMap,onEmitSourceMapOfPosition:D.emitPos,onSetSourceFile:f});e.Debug.assert(1===l.transformed.length,"Should only see one output from the transform"),p(i,a,l.transformed[0],u,_,D),l.dispose()}}function d(t,i,a){if(i&&!e.isInJavaScriptFile(t)){var c=e.isSourceFile(t)?[t]:t.sourceFiles,l=e.filter(c,e.isSourceFileNotJavaScript),_=g.outFile||g.out?[e.createBundle(l,e.isSourceFile(t)?void 0:t.prepends)]:l,d=e.transformNodes(r,n,g,_,e.concatenate([e.transformDeclarations],u),!1);if(e.length(d.diagnostics))for(var f=0,y=d.diagnostics;f"),mn(),x(e.type),Rn(e)}function ne(e){Fi("function"),Xr(e,e.parameters),Fi(":"),x(e.type)}function ie(e){Fi("?"),x(e.type)}function ae(e){Fi("!"),x(e.type)}function oe(e){x(e.type),Fi("=")}function se(e){Ln(e),dn("new"),mn(),Gr(e,e.typeParameters),Xr(e,e.parameters),mn(),un("=>"),mn(),x(e.type),Rn(e)}function ce(e){dn("typeof"),mn(),x(e.exprName)}function ue(t){un("{");var r=1&e.getEmitFlags(t)?384:16449;$r(t,t.members,262144|r),un("}")}function le(e){x(e.elementType),un("["),un("]")}function _e(e){Fi("..."),x(e.type)}function de(e){un("["),$r(e,e.elementTypes,272),un("]")}function pe(e){$r(e,e.types,260)}function fe(e){$r(e,e.types,264)}function me(e){x(e.checkType),mn(),dn("extends"),mn(),x(e.extendsType),mn(),un("?"),mn(),x(e.trueType),mn(),un(":"),mn(),x(e.falseType)}function ge(e){dn("infer"),mn(),x(e.typeParameter)}function ye(e){un("("),x(e.type),un(")")}function ve(){dn("this")}function he(e){Dn(e.operator,dn),mn(),x(e.type)}function be(e){x(e.objectType),un("["),x(e.indexType),un("]")}function xe(t){var r=e.getEmitFlags(t);un("{"),1&r?mn():(yn(),vn()),t.readonlyToken&&(x(t.readonlyToken),132!==t.readonlyToken.kind&&dn("readonly"),mn()),un("[");var n=S(0,3);n(3,t.typeParameter),un("]"),t.questionToken&&(x(t.questionToken),55!==t.questionToken.kind&&un("?")),un(":"),mn(),x(t.type),Ii(),1&r?mn():(yn(),hn()),un("}")}function De(e){k(e.literal)}function ke(e){e.isTypeOf&&(dn("typeof"),mn()),dn("import"),un("("),x(e.argument),un(")"),e.qualifier&&(un("."),x(e.qualifier)),Hr(e,e.typeArguments)}function Se(e){un("{"),$r(e,e.elements,262576),un("}")}function Ce(e){un("["),$r(e,e.elements,262448),un("]")}function Te(e){x(e.dotDotDotToken),e.propertyName&&(x(e.propertyName),un(":"),mn()),x(e.name),zr(e.initializer,e.name.end,e)}function Ee(e){var t=e.elements,r=e.multiLine?32768:0;en(e,t,4466|r)}function Ne(t){e.forEach(t.properties,zn);var r=65536&e.getEmitFlags(t);r&&vn();var n=t.multiLine?32768:0,i=ii.languageVersion>=1?32:0;$r(t,t.properties,263122|i|n),r&&hn()}function Ae(t){var r=!1,n=!1;if(!(131072&e.getEmitFlags(t))){var i=t.expression.end,a=e.skipTrivia(ii.text,t.expression.end)+1,o=e.createToken(23);o.pos=i,o.end=a,r=Fn(t,t.expression,o),n=Fn(t,o,t.name)}k(t.expression),Cn(r);var s=!r&&Pe(t.expression);s&&un("."),ht(23,t.expression.end,un,t),Cn(n),x(t.name),Tn(r,n)}function Pe(r){if(r=e.skipPartiallyEmittedExpressions(r),e.isNumericLiteral(r)){var n=Mn(r);return!r.numericLiteralFlags&&!e.stringContains(n,e.tokenToString(23))}if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)){var i=e.getConstantValue(r);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}function Fe(e){k(e.expression),ht(21,e.expression.end,un,e),k(e.argumentExpression),ht(22,e.argumentExpression.end,un,e)}function we(e){k(e.expression),Hr(e,e.typeArguments),en(e,e.arguments,1296)}function Ie(e){ht(94,e.pos,dn,e),mn(),k(e.expression),Hr(e,e.typeArguments),en(e,e.arguments,9488)}function Oe(e){k(e.tag),Hr(e,e.typeArguments),mn(),k(e.template)}function Me(e){un("<"),x(e.type),un(">"),k(e.expression)}function Le(e){var t=ht(19,e.pos,un,e);k(e.expression),ht(20,e.expression?e.expression.end:t,un,e)}function Re(e){jn(e.name),Pt(e)}function Be(e){Wr(e,e.decorators),Br(e,e.modifiers),wt(e,Je)}function Je(e){Gr(e,e.typeParameters),Yr(e,e.parameters),Jr(e.type),mn(),x(e.equalsGreaterThanToken)}function ze(e){ht(80,e.pos,dn,e),mn(),k(e.expression)}function je(e){ht(103,e.pos,dn,e),mn(),k(e.expression)}function Ke(e){ht(105,e.pos,dn,e),mn(),k(e.expression)}function qe(e){ht(121,e.pos,dn,e),mn(),k(e.expression)}function Ue(e){Dn(e.operator,pn),Ve(e)&&mn(),k(e.operand)}function Ve(e){var t=e.operand;return 197===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function We(e){k(e.operand),Dn(e.operator,pn)}function He(e){var t=26!==e.operatorToken.kind,r=Fn(e,e.left,e.operatorToken),n=Fn(e,e.operatorToken,e.right);k(e.left),Cn(r,t?" ":void 0),Pi(e.operatorToken.pos),xn(e.operatorToken,pn),Ai(e.operatorToken.end,!0),Cn(n," "),k(e.right),Tn(r,n)}function Ge(e){var t=Fn(e,e.condition,e.questionToken),r=Fn(e,e.questionToken,e.whenTrue),n=Fn(e,e.whenTrue,e.colonToken),i=Fn(e,e.colonToken,e.whenFalse);k(e.condition),Cn(t," "),x(e.questionToken),Cn(r," "),k(e.whenTrue),Tn(t,r),Cn(n," "),x(e.colonToken),Cn(i," "),k(e.whenFalse),Tn(n,i)}function Xe(e){x(e.head),$r(e,e.templateSpans,131072)}function Qe(e){ht(116,e.pos,dn,e),x(e.asteriskToken),qr(e.expression)}function Ye(e){un("..."),k(e.expression)}function Ze(e){jn(e.name),Jt(e)}function $e(e){k(e.expression),Hr(e,e.typeArguments)}function et(e){k(e.expression),e.type&&(mn(),dn("as"),mn(),x(e.type))}function tt(e){k(e.expression),pn("!")}function rt(e){bn(e.keywordToken,e.pos,un),un("."),x(e.name)}function nt(e){k(e.expression),x(e.literal)}function it(e){at(e,!e.multiLine&&wn(e))}function at(t,r){ht(17,t.pos,un,t);var n=r||1&e.getEmitFlags(t)?384:65;$r(t,t.statements,n),ht(18,t.statements.end,un,t,!!(1&n))}function ot(e){Br(e,e.modifiers),x(e.declarationList),Ii()}function st(){Ii()}function ct(t){k(t.expression),e.isJsonSourceFile(ii)||Ii()}function ut(e){var t=ht(90,e.pos,dn,e);mn(),ht(19,t,un,e),k(e.expression),ht(20,e.expression.end,un,e),Vr(e,e.thenStatement),e.elseStatement&&(kn(e),ht(82,e.thenStatement.end,dn,e),216===e.elseStatement.kind?(mn(),x(e.elseStatement)):Vr(e,e.elseStatement))}function lt(e,t){var r=ht(106,t,dn,e);mn(),ht(19,r,un,e),k(e.expression),ht(20,e.expression.end,un,e)}function _t(t){ht(81,t.pos,dn,t),Vr(t,t.statement),e.isBlock(t.statement)?mn():kn(t),lt(t,t.statement.end),un(";")}function dt(e){lt(e,e.pos),Vr(e,e.statement)}function pt(e){var t=ht(88,e.pos,dn,e);mn();var r=ht(19,t,un,e);gt(e.initializer),r=ht(25,e.initializer?e.initializer.end:r,Ii,e),qr(e.condition),r=ht(25,e.condition?e.condition.end:r,Ii,e),qr(e.incrementor),ht(20,e.incrementor?e.incrementor.end:r,un,e),Vr(e,e.statement)}function ft(e){var t=ht(88,e.pos,dn,e);mn(),ht(19,t,un,e),gt(e.initializer),mn(),ht(92,e.initializer.end,dn,e),mn(),k(e.expression),ht(20,e.expression.end,un,e),Vr(e,e.statement)}function mt(e){var t=ht(88,e.pos,dn,e);mn(),Ur(e.awaitModifier),ht(19,t,un,e),gt(e.initializer),mn(),ht(144,e.initializer.end,dn,e),mn(),k(e.expression),ht(20,e.expression.end,un,e),Vr(e,e.statement)}function gt(e){void 0!==e&&(232===e.kind?x(e):k(e))}function yt(e){ht(77,e.pos,dn,e),Kr(e.label),Ii()}function vt(e){ht(72,e.pos,dn,e),Kr(e.label),Ii()}function ht(t,r,n,i,a){var o=e.getParseTreeNode(i),s=o&&o.kind===i.kind,c=r;if(s&&(r=e.skipTrivia(ii.text,r)),Pi&&s&&i.pos!==c){var u=a&&!e.positionsAreOnSameLine(c,r,ii);u&&vn(),Pi(c),u&&hn()}return r=Dn(t,n,r),Ai&&s&&i.end!==r&&Ai(r,!0),r}function bt(e){ht(96,e.pos,dn,e),qr(e.expression),Ii()}function xt(e){var t=ht(107,e.pos,dn,e);mn(),ht(19,t,un,e),k(e.expression),ht(20,e.expression.end,un,e),Vr(e,e.statement)}function Dt(e){var t=ht(98,e.pos,dn,e);mn(),ht(19,t,un,e),k(e.expression),ht(20,e.expression.end,un,e),mn(),x(e.caseBlock)}function kt(e){x(e.label),ht(56,e.label.end,un,e),mn(),x(e.statement)}function St(e){ht(100,e.pos,dn,e),qr(e.expression),Ii()}function Ct(e){ht(102,e.pos,dn,e),mn(),x(e.tryBlock),e.catchClause&&(kn(e),x(e.catchClause)),e.finallyBlock&&(kn(e),ht(87,(e.catchClause||e.tryBlock).end,dn,e),mn(),x(e.finallyBlock))}function Tt(e){bn(78,e.pos,dn),Ii()}function Et(e){x(e.name),Jr(e.type),zr(e.initializer,e.type?e.type.end:e.name.end,e)}function Nt(t){dn(e.isLet(t)?"let":e.isConst(t)?"const":"var"),mn(),$r(t,t.declarations,272)}function At(e){Pt(e)}function Pt(e){Wr(e,e.decorators),Br(e,e.modifiers),dn("function"),x(e.asteriskToken),mn(),D(e.name),wt(e,It)}function Ft(e,t){Mt(t)}function wt(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&vn(),Ln(t),e.forEach(t.parameters,Jn),Jn(t.body),r(t),vi?vi(4,n,Ft):Mt(n),Rn(t),i&&hn()}else r(t),mn(),k(n);else r(t),Ii()}function It(e){Gr(e,e.typeParameters),Xr(e,e.parameters),Jr(e.type)}function Ot(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,ii))return!1;if(En(t,t.statements,2)||An(t,t.statements,2))return!1;for(var r,n=0,i=t.statements;n")}function ur(e){x(e.openingFragment),$r(e,e.children,131072),x(e.closingFragment)}function lr(t){un("<"),e.isJsxOpeningElement(t)&&(yr(t.tagName),t.attributes.properties&&t.attributes.properties.length>0&&mn(),x(t.attributes)),un(">")}function _r(e){wi(),di.writeLiteral(On(e,!0))}function dr(t){un("")}function pr(e){$r(e,e.properties,131328)}function fr(e){x(e.name),jr("=",un,e.initializer,x)}function mr(e){un("{..."),k(e.expression),un("}")}function gr(e){e.expression&&(un("{"),x(e.dotDotDotToken),k(e.expression),un("}"))}function yr(e){71===e.kind?k(e):x(e)}function vr(e){ht(73,e.pos,dn,e),mn(),k(e.expression),br(e,e.statements,e.expression.end)}function hr(e){var t=ht(79,e.pos,dn,e);br(e,e.statements,t)}function br(t,r,n){var i=1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],ii)),a=81985;i?(bn(56,n,un,t),mn(),a&=-66):ht(56,n,un,t),$r(t,r,a)}function xr(e){mn(),Dn(e.token,dn),mn(),$r(e,e.types,272)}function Dr(e){var t=ht(74,e.pos,dn,e);mn(),e.variableDeclaration&&(ht(19,t,un,e),x(e.variableDeclaration),ht(20,e.variableDeclaration.end,un,e),mn()),x(e.block)}function kr(t){x(t.name),un(":"),mn();var r=t.initializer;if(Ai&&0===(512&e.getEmitFlags(r))){var n=e.getCommentRange(r);Ai(n.pos)}k(r)}function Sr(e){x(e.name),e.objectAssignmentInitializer&&(mn(),un("="),mn(),k(e.objectAssignmentInitializer))}function Cr(e){e.expression&&(un("..."),k(e.expression))}function Tr(e){x(e.name),zr(e.initializer,e.name.end,e)}function Er(t){yn();var r=t.statements;if(Ni){var n=0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0]);if(n)return void Ni(t,r,Fr)}Fr(t)}function Nr(e){Pr(e.hasNoDefaultLib,e.syntheticFileReferences||[],e.syntheticTypeReferences||[])}function Ar(e){e.isDeclarationFile&&Pr(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives)}function Pr(e,t,r){if(e&&(Fi('/// '),yn()),ii&&ii.moduleName&&(Fi('/// '),yn()),ii&&ii.amdDependencies)for(var n=0,i=ii.amdDependencies;n':'/// '),yn()}for(var o=0,s=t;o'),yn()}for(var u=0,l=r;u'),yn()}}function Fr(t){var r=t.statements;Ln(t),e.forEach(t.statements,Jn),I(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});Ar(t),$r(t,r,1,n===-1?r.length:n),Rn(t)}function wr(e){k(e.expression)}function Ir(e){en(e,e.elements,272)}function Or(t,r,n){for(var i=0;i0)&&yn(),x(a),n&&n.set(a.expression.text,!0))}return t.length}function Mr(t){if(e.isSourceFile(t))v(t),Or(t.statements);else for(var r=e.createMap(),n=0,i=t.sourceFiles;n=n.length||0===o;if(c&&16384&i)return xi&&xi(n),void(Di&&Di(n));if(7680&i&&(un(u(i)),c&&!s&&Ai(n.pos,!0)),xi&&xi(n),c)1&i?yn():128&i&&!(262144&i)&&mn();else{var _=0===(131072&i),d=_;En(r,n,i)?(yn(),d=!1):128&i&&mn(),64&i&&vn();for(var p=void 0,f=void 0,m=0;m"],e[4096]=["[","]"],e}function u(e){return d[7680&e][0]}function l(e){return d[7680&e][1]}var _=".tsbundleinfo",d=c();e.forEachEmittedFile=t,e.getOutputPathsFor=r,e.getOutputExtension=a,e.emitFiles=o;var p;!function(e){e[e.Notification=0]="Notification",e[e.Comments=1]="Comments",e[e.SourceMaps=2]="SourceMaps",e[e.Emit=3]="Emit"}(p||(p={})),e.createPrinter=s;var f;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(f||(f={}))}(ts||(ts={}));var ts;!function(e){function t(t,r,n){function i(t){return e.toPath(t,r,S)}function a(t){return k.get(e.ensureTrailingDirectorySeparator(t))}function o(t){return a(e.getDirectoryPath(t))}function s(t){return e.getBaseFileName(e.normalizePath(t))}function c(r,n){var i={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),s)||[],directories:t.getDirectories(r)||[]};return k.set(e.ensureTrailingDirectorySeparator(n),i),i}function u(t,r){r=e.ensureTrailingDirectorySeparator(r);var n=a(r);if(n)return n;try{return c(t,r)}catch(i){return void e.Debug.assert(!k.has(e.ensureTrailingDirectorySeparator(r)))}}function l(e,t){return S(e)===S(t)}function _(t,r){return e.some(t,function(e){return l(e,r)})}function d(t,r,n){if(_(t,r)){if(!n)return e.filterMutate(t,function(e){return!l(e,r)})}else if(n)return t.push(r)}function p(e,r,n){var a=i(e),c=o(a);return c&&x(c,s(e),!0),t.writeFile(e,r,n)}function f(e){var r=i(e),n=o(r);return n&&_(n.files,s(e))||t.fileExists(e)}function m(r){var n=i(r);return k.has(e.ensureTrailingDirectorySeparator(n))||t.directoryExists(r)}function g(e){var r=i(e),n=o(r),a=s(e);n&&d(n.directories,a,!0),t.createDirectory(e)}function y(e){var r=i(e),n=u(e,r);return n?n.directories.slice():t.getDirectories(e)}function v(a,o,s,c,l){function _(t){var r=i(t);return r===d?p:u(t,r)||e.emptyFileSystemEntries}var d=i(a),p=u(a,d);return p?e.matchFiles(a,o,s,c,n,r,l,_):t.readDirectory(a,o,s,c,l)}function h(e,r){var n=a(r);if(n)return void D();var i=o(r);if(i){if(!t.directoryExists)return void D();var c=s(e),u={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};return u.directoryExists||_(i.directories,c)?D():x(i,c,u.fileExists),u}}function b(t,r,n){if(n!==e.FileWatcherEventKind.Changed){var i=o(r);i&&x(i,s(t),n===e.FileWatcherEventKind.Created)}}function x(e,t,r){d(e.files,t,r)}function D(){k.clear()}if(t.getDirectories&&t.readDirectory){var k=e.createMap(),S=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists:f,readFile:function(e,r){return t.readFile(e,r)},directoryExists:t.directoryExists&&m,getDirectories:y,readDirectory:v,createDirectory:t.createDirectory&&g,writeFile:t.writeFile&&p,addOrDeleteFileOrDirectory:h,addOrDeleteFile:b,clearCache:D}}}function r(t,r,n){var i=t.getMissingFilePaths(),a=e.arrayToSet(i);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})}function n(t,r,n){function i(e,t){return{watcher:n(e,t),flags:t}}function a(e,r,n){e.flags!==r&&(e.watcher.close(),t.set(n,i(n,r)))}e.mutateMap(t,r,{createNewValue:i,onDeleteValue:p,onExistingValue:a})}function i(e,t){return!!e&&e.isEmittedFile(t)}function a(e,t,r){return o(e,t,r,s,c)}function o(e,t,r,n,i){function a(e,t,r,i,a){return n(e,t,function(e,t){return r(e,t,a)},i)}var o=u(e,n),s=e===m.None?a:o,c=u(e,i);return{watchFile:function(e,i,a,s,c,u){return o(e,i,a,s,void 0,c,u,n,t,"FileWatcher",r)},watchFilePath:function(e,i,a,o,c,u,l){return s(e,i,a,o,c,u,l,n,t,"FileWatcher",r)},watchDirectory:function(e,n,a,o,s,u){return c(e,n,a,o,void 0,s,u,i,t,"DirectoryWatcher",r)}}}function s(e,t,r,n){return e.watchFile(t,r,n)}function c(e,t,r,n){return e.watchDirectory(t,r,0!==(1&n))}function u(e,t){switch(e){case m.None:return t;case m.TriggerOnly:return _;case m.Verbose:return l}}function l(e,t,r,n,i,a,o,s,c,u,l){c(u+":: Added:: "+d(t,n,a,o,l));var p=_(e,t,r,n,i,a,o,s,c,u,l);return{close:function(){c(u+":: Close:: "+d(t,n,a,o,l)),p.close()}}}function _(t,r,n,i,a,o,s,c,u,l,_){return c(t,r,function(t,c){var p=l+":: Triggered with "+t+(void 0!==c?c:"")+":: "+d(r,i,o,s,_);u(p);var f=e.timestamp();n(t,c,a);var m=e.timestamp()-f;u("Elapsed:: "+m+"ms "+p)},i)}function d(e,t,r,n,i){return"WatchInfo: "+e+" "+t+" "+(i?i(r,n):r)}function p(e){e.watcher.close()}e.createCachedDirectoryStructureHost=t;var f;!function(e){e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full"}(f=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={})),e.updateMissingFilePathsWatch=r,e.updateWatchingWildcardDirectories=n,e.isEmittedFileOfProgram=i;var m;!function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(m=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=a,e.closeFileWatcherOf=p}(ts||(ts={}));var ts;!function(e){function t(t,r,n){return void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,function(t){var i=e.combinePaths(t,n);return r(i)?i:void 0})}function r(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function n(t,r,n){var i,a=e.forEach(t,function(t){var a=e.getNormalizedPathComponents(t,r);if(a.pop(),!i)return void(i=a);for(var o=Math.min(i.length,a.length),s=0;se.getRootLength(t)&&!a(t)){var r=e.getDirectoryPath(t);o(r),e.sys.createDirectory(t)}}function s(t,r,n){l||(l=e.createMap());var i=e.sys.createHash(r),a=e.sys.getModifiedTime(t);if(a){var o=l.get(t);if(o&&o.byteOrderMark===n&&o.hash===i&&o.mtime.getTime()===a.getTime())return}e.sys.writeFile(t,r,n);var s=e.sys.getModifiedTime(t);l.set(t,{hash:i,byteOrderMark:n,mtime:s})}function c(r,n,i,a){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(r))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?s(r,n,i):e.sys.writeFile(r,n,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(c){a&&a(c.message)}}function u(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var l,_=e.createMap(),d=e.getNewLineCharacter(t),p=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:i,getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},writeFile:c,getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:n,getNewLine:function(){return d},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+d)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:p,readDirectory:function(t,r,n,i,a){return e.sys.readDirectory(t,r,n,i,a)}}}function a(t,r,n){var i=t.getConfigFileParsingDiagnostics().concat(t.getOptionsDiagnostics(n),t.getSyntacticDiagnostics(r,n),t.getGlobalDiagnostics(n),t.getSemanticDiagnostics(r,n));return t.getCompilerOptions().declaration&&e.addRange(i,t.getDeclarationDiagnostics(r,n)),e.sortAndDeduplicateDiagnostics(i)}function o(e,t){for(var r="",n=0,i=e;n=4,A=(h+1+"").length;k&&(A=Math.max(N.length,A));for(var P=g;P<=h;P++){s+=r.getNewLine(),k&&g+10||s.length>0)return{ diagnostics:e.concatenate(c,s),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var u=N().getEmitResolver(Ve.outFile||Ve.out?void 0:r,i);e.performance.mark("beforeEmit");var l=a?[]:e.getTransformers(Ve,o),_=e.emitFiles(u,v(n),r,a,l,o&&o.afterDeclarations);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),_}function O(e){return M(l(e))}function M(e){return Ct.get(e)}function L(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(Re.getSourceFiles(),function(e){return n&&n.throwIfCancellationRequested(),r(e,n)}))}function R(e,t){return L(e,z,t)}function B(e,t){return L(e,K,t)}function J(e,t){var r=Re.getCompilerOptions();return!e||r.out||r.outFile?W(e,t):L(e,X,t)}function z(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=V(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function j(t){try{return t()}catch(r){throw r instanceof e.OperationCanceledException&&(ze=void 0,Je=void 0),r}}function K(e,t){return G(e,t,Ye,q)}function q(t,r){return j(function(){if(Ve.skipLibCheck&&t.isDeclarationFile||Ve.skipDefaultLibCheck&&t.hasNoDefaultLib)return e.emptyArray;var n=N();e.Debug.assert(!!t.bindDiagnostics);for(var i,a=e.isCheckJsEnabledForFile(t,Ve),o=3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||a||7===t.scriptKind,s=o?t.bindDiagnostics:e.emptyArray,c=o?n.getDiagnostics(t,r):e.emptyArray,u=et.getDiagnostics(t.fileName),l=pt.getDiagnostics(t.fileName),_=0,d=[s,c,u,l,a?t.jsDocDiagnostics:void 0];_0;){var o=r.text.slice(i[a-1],i[a]),s=k.exec(o);if(!s)return!0;if(s[3])return!1;a--}return!0}function V(t){return j(function(){function r(t){switch(c.kind){case 148:case 151:if(c.questionToken===t)return void s.push(o(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 153:case 152:case 154:case 155:case 156:case 191:case 233:case 192:case 231:if(c.type===t)return void s.push(o(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 242:return void s.push(o(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 248:if(t.isExportEquals)return void s.push(o(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 267:var i=t;if(108===i.token)return void s.push(o(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 235:return void s.push(o(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 238:return void s.push(o(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 236:return void s.push(o(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 237:return void s.push(o(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 208:return void s.push(o(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 207:return void s.push(o(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 189:e.Debug.fail()}var a=c;c=t,e.forEachChild(t,r,n),c=a}function n(t){switch(c.decorators!==t||Ve.experimentalDecorators||s.push(o(c,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)),c.kind){case 234:case 153:case 152:case 154:case 155:case 156:case 191:case 233:case 192:if(t===c.typeParameters)return void s.push(a(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 213:if(t===c.modifiers)return i(t,213===c.kind);break;case 151:if(t===c.modifiers){for(var n=0,u=t;n0),d.path=r,Ge.useCaseSensitiveFileNames()){var g=r.toLowerCase(),y=Tt.get(g);y?oe(t,y.fileName,i,a,o):Tt.set(g,d)}lt=lt||d.hasNoDefaultLib,Ve.noResolve||(le(d,n),_e(d)),me(d),n?Qe.unshift(d):Qe.push(d)}return d}function ue(t){var r,n=l(t),i=e.getNormalizedAbsolutePath(t,n);return Nt.forEach(function(n,a){void 0===r&&0===i.indexOf(a)&&(r=e.changeExtension(t.replace(a,n),".d.ts"))}),r}function le(t,n){e.forEach(t.referencedFiles,function(e){var i=r(e.fileName,t.fileName);ae(i,n,void 0,t,e.pos,e.end)})}function _e(t){var r=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()});if(r)for(var n=ht(r,t.fileName),i=0;itt,p=_&&!x(Ve,o)&&!Ve.noResolve&&a1})&&Te(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!Ve.noEmit&&Ve.allowJs&&Ve.declaration&&Te(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),Ve.checkJs&&!Ve.allowJs&&pt.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),Ve.emitDeclarationOnly&&(Ve.declaration||Te(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDeclarationOnly","declaration"),Ve.noEmit&&Te(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),Ve.emitDecoratorMetadata&&!Ve.experimentalDecorators&&Te(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),Ve.jsxFactory?(Ve.reactNamespace&&Te(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(Ve.jsxFactory,y)||Ee("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,Ve.jsxFactory)):Ve.reactNamespace&&!e.isIdentifierText(Ve.reactNamespace,y)&&Ee("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,Ve.reactNamespace),!Ve.noEmit&&!Ve.suppressOutputPathCheck){var S=v(),C=e.createMap();e.forEachEmittedFile(S,function(e){Ve.emitDeclarationOnly||t(e.jsFilePath,C),t(e.declarationFilePath,C)})}}function De(t,r,n,i,a,o){for(var s=!0,c=Ce(),u=0,l=c;ur&&(pt.add(e.createDiagnosticForNodeInSourceFile(Ve.configFile,f.initializer.elements[r],n,i,a,o)),s=!1)}}s&&pt.add(e.createCompilerDiagnostic(n,i,a,o))}function ke(t,r,n,i){for(var a=!0,o=Ce(),s=0,c=o;s0)for(var o=t.getTypeChecker(),s=0,c=r.imports;s0)for(var p=0,f=r.referencedFiles;p0?o(l.outputFiles[0].text):u}return i.set(n.path,c),!u||c!==u}function c(t,r,n){var i,a=r.getCompilerOptions();if(a.outFile||a.out)return u(t,r);if(!t.referencedMap||!e.isExternalModule(n)&&!_(n))return u(t,r);for(var o=e.createMap(),s=[n.path];s.length;){var c=s.pop();if(!o.has(c)){o.set(c,!0);var l=t.referencedMap.get(c);if(l)for(var d=l.keys(),p=d.next(),f=p.value,m=p.done;!m;i=d.next(),f=i.value,m=i.done,i)s.push(f)}}return e.arrayFrom(e.mapDefinedIterator(o.keys(),function(e){var t=r.getSourceFileByPath(e);return t?t.fileName:e}))}function u(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map(function(e){return e.fileName})}return t.allFileNames}function l(t,r){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0],n=e[1];return n.has(r)?t:void 0; }))}function _(t){for(var r=0,n=t.statements;r0;){var f=p.pop();if(!u.has(f)){var m=r.getSourceFileByPath(f);u.set(f,m),m&&s(t,r,m,i,a,o)&&p.push.apply(p,l(t,f))}}return e.arrayFrom(e.mapDefinedIterator(u.values(),function(e){return e}))}t.canReuseOldState=n,t.create=i,t.getFilesAffectedBy=a,t.updateSignaturesFromCache=o,t.getAllDependencies=c}(t=e.BuilderState||(e.BuilderState={}))}(ts||(ts={}));var ts;!function(e){function t(t,r){return t===r||t&&r&&t.size===r.size&&!e.forEachKey(t,function(e){return!r.has(e)})}function r(r,n,i){var a=e.BuilderState.create(r,n,i);a.program=r;var o=r.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(r,n){var o,_;if(!s||!(o=i.fileInfos.get(n))||o.version!==r.version||!t(_=u&&u.get(n),l&&l.get(n))||_&&e.forEachKey(_,function(e){return!a.fileInfos.has(e)&&i.fileInfos.has(e)}))a.changedFilesSet.set(n,!0);else if(c){var d=i.semanticDiagnosticsPerFile.get(n);d&&a.semanticDiagnosticsPerFile.set(n,d)}}),a}function n(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.path))}function i(t,r,n){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,o=t.semanticDiagnosticsPerFile,s=t.affectedFilesIndex;s0;r--)if(n=t.indexOf(e.directorySeparator,n)+1,0===n)return!1;return!0}function D(e){return x(e,47===e.charCodeAt(0)?3:1)}function k(e,t){return D(t)||(e.ignore=!0),e}function S(t,r){return o(ce,r)?{dir:se,dirPath:ce}:C(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,Q())),e.getDirectoryPath(r))}function C(t,r){for(;e.stringContains(r,"/node_modules/");)t=e.getDirectoryPath(t),r=e.getDirectoryPath(r);if(h(r))return k({dir:t,dirPath:r},e.getDirectoryPath(r));var n;if(void 0!==ce)for(;!o(r,ce);){var i=e.getDirectoryPath(r);if(i===r)break;n=r.slice(i.length+e.directorySeparator.length),r=i,t=e.getDirectoryPath(t)}return k({dir:t,dirPath:r,subDirectory:n},r)}function T(t){return e.fileExtensionIsOneOf(t,ie)}function E(e){if(e.failedLookupLocations&&e.failedLookupLocations.length){if(void 0!==e.refCount)return void e.refCount++;e.refCount=1;for(var r=e.failedLookupLocations,n=!1,i=0,a=r;i1),ae.set(c,p-1))),l===ce?i=!0:P(l,d)}}i&&P(ce)}}function P(e,t){var r=oe.get(e);if(t){var n=r.subDirectoryMap.get(t);1===n?r.subDirectoryMap["delete"](t):r.subDirectoryMap.set(t,n-1)}r.refCount--}function F(t,r){var n=oe.get(t);return!(!n||!n.subDirectoryMap)&&e.forEachKey(n.subDirectoryMap,function(e){var n=t+"/"+e;return n===r||o(n,r)})}function w(r,n){return t.watchDirectoryOfFailedLookupLocation(r,function(r){var i=t.toPath(r);Y&&Y.addOrDeleteFileOrDirectory(r,i),X||n!==ce&&!h(n)&&e.getDirectoryPath(i)!==n&&!F(n,i)||z(i,n===i)&&t.onInvalidatedResolution()},1)}function I(e,t){var r=e.get(t);r&&(r.forEach(A),e["delete"](t))}function O(e){I(Z,e),I(re,e)}function M(t,r,n){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&&r(t,n)&&(t.isInvalidated=!0,(H||(H=e.createMap())).set(a,!0)))})})}function L(){var r=t.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation;return Z.size>r||re.size>r}function R(e){return L()?void(X=!0):(M(Z,e,i),void M(re,e,a))}function B(e){O(e),R(function(r,n){var i=n(r);return i&&t.toPath(i.resolvedFileName)===e})}function J(t){e.Debug.assert(G===t||void 0===G),G=t}function z(r,n){var i;if(n)i=function(e){return o(r,t.toPath(e))};else{var a=e.getDirectoryPath(r);if(b(r)||h(r)||b(a)||h(a))i=function(n){var i=t.toPath(n);return i===r||e.startsWith(t.toPath(n),r)};else{if(!T(r)&&!ae.has(r))return!1;if(e.isEmittedFileOfProgram(t.getCurrentProgram(),r))return!1;i=function(e){return t.toPath(e)===r}}}var s=function(t){return e.some(t.failedLookupLocations,i)},c=H&&H.size;return R(s),X||H&&H.size!==c}function j(){e.clearMap(ue,e.closeFileWatcher)}function K(e,t){if(!X){if(o(ce,t))return ce;var r=C(e,t),n=r.dirPath,i=r.ignore;return!i&&oe.has(n)&&n}}function q(e,r){return t.watchTypeRootsDirectory(r,function(n){var i=t.toPath(n);Y&&Y.addOrDeleteFileOrDirectory(n,i),t.onChangedAutomaticTypeDirectiveNames();var a=K(r,e);a&&z(i,a===i)&&t.onInvalidatedResolution()},1)}function U(){var r=t.getCompilationSettings();if(r.types)return void j();var n=e.getEffectiveTypeRoots(r,{directoryExists:V,getCurrentDirectory:Q});n?e.mutateMap(ue,e.arrayToMap(n,function(e){return t.toPath(e)}),{createNewValue:q,onDeleteValue:e.closeFileWatcher}):j()}function V(r){var n=e.getDirectoryPath(e.getDirectoryPath(r)),i=t.toPath(n);return i===ce||D(i)}var W,H,G,X=!1,Q=e.memoize(function(){return t.getCurrentDirectory()}),Y=t.getCachedDirectoryStructureHost(),Z=e.createMap(),$=e.createMap(),ee=e.createMap(),te=e.createModuleResolutionCacheWithMaps($,ee,Q(),t.getCanonicalFileName),re=e.createMap(),ne=e.createMap(),ie=[".ts",".tsx",".js",".jsx",".json"],ae=e.createMap(),oe=e.createMap(),se=r&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(r,Q())),ce=se&&t.toPath(se),ue=e.createMap();return{startRecordingFilesWithChangedResolutions:c,finishRecordingFilesWithChangedResolutions:u,startCachingPerDirectoryResolution:d,finishCachingPerDirectoryResolution:p,resolveModuleNames:y,getResolvedModuleWithFailedLookupLocationsFromCache:v,resolveTypeReferenceDirectives:g,removeResolutionsOfFile:O,invalidateResolutionOfFile:B,setFilesWithInvalidatedNonRelativeUnresolvedImports:J,createHasInvalidatedResolution:_,updateTypeRootsWatch:U,closeTypeRootsWatch:j,clear:s}}e.maxNumberOfFilesToIterateForInvalidation=256,e.createResolutionCache=t}(ts||(ts={}));var ts;!function(e){function t(t,r){var n=t===e.sys?_:{getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.newLine},getCanonicalFileName:e.createGetCanonicalFileName(t.useCaseSensitiveFileNames)};if(!r)return function(r){return t.write(e.formatDiagnostic(r,n))};var i=new Array(1);return function(r){i[0]=r,t.write(e.formatDiagnosticsWithColorAndContext(i,n)+n.getNewLine()),i[0]=void 0}}function r(t,r,n){return!(!t.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||e.contains(e.nonClearingMessageCodes,r.code))&&(t.clearScreen(),!0)}function n(t,r){return e.contains(e.screenStartingMessageCodes,t.code)?r+r:r}function i(t,i){return i?function(n,i,a){r(t,n,a);var o="["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ";o+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(i+i),t.write(o)}:function(i,a,o){var s="";r(t,i,o)||(s+=a),s+=(new Date).toLocaleTimeString()+" - ",s+=""+e.flattenDiagnosticMessageText(i.messageText,t.newLine)+n(i,a),t.write(s)}}function a(t,r,n,i){var a=n;a.onUnRecoverableConfigFileDiagnostic=function(t){return c(e.sys,i,t)};var o=e.getParsedCommandLineOfConfigFile(t,r,a);return a.onUnRecoverableConfigFileDiagnostic=void 0,o}function o(t,r,n,i){var a=t.getConfigFileParsingDiagnostics().slice(),o=a.length;e.addRange(a,t.getSyntacticDiagnostics());var s=!1;a.length===o&&(e.addRange(a,t.getOptionsDiagnostics()),e.addRange(a,t.getGlobalDiagnostics()),a.length===o&&(s=!0));var c=t.emit(),u=c.emittedFiles,l=c.emitSkipped,_=c.diagnostics;if(e.addRange(a,_),s&&e.addRange(a,t.getSemanticDiagnostics()),e.sortAndDeduplicateDiagnostics(a).forEach(r),n){var d=t.getCurrentDirectory();e.forEach(u,function(t){var r=e.getNormalizedAbsolutePath(t,d);n("TSFILE: "+r)}),t.getCompilerOptions().listFiles&&e.forEach(t.getSourceFiles(),function(e){n(e.fileName)})}return i&&i(a.filter(function(t){return t.category===e.DiagnosticCategory.Error}).length),l&&a.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:a.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function s(t,r,n,a){function s(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}function c(r){var i=r.getCompilerOptions(),a=e.getNewLineCharacter(i,function(){return t.newLine}),s=function(t){1===t?p(e.createCompilerDiagnostic(e.Diagnostics.Found_1_error_Watching_for_file_changes,t),a,i):p(e.createCompilerDiagnostic(e.Diagnostics.Found_0_errors_Watching_for_file_changes,t,t),a,i)};o(r,n,_,s)}void 0===t&&(t=e.sys),r||(r=e.createEmitAndSemanticDiagnosticsBuilderProgram);var u=t,l=function(){return t.useCaseSensitiveFileNames},_=function(e){return t.write(e+t.newLine)},p=a||i(t);return{useCaseSensitiveFileNames:l,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,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,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,r,n){return t.watchFile(e,r,n)}:function(){return d},watchDirectory:t.watchDirectory?function(e,r,n){return t.watchDirectory(e,r,n)}:function(){return d},setTimeout:t.setTimeout?function(e,r){for(var n,i=[],a=2;ae.getRootLength(r)&&!t.directoryExists(r)){var n=e.getDirectoryPath(r);F(n),t.createDirectory(r)}}function w(r,n,i,a){try{e.performance.mark("beforeIOWrite"),F(e.getDirectoryPath(e.normalizePath(r))),t.writeFile(r,n,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(o){a&&a(o.message)}}var I,O,M,L,R,B,J,z,j=e.createMap(),K=!1,q=!1,U=t.useCaseSensitiveFileNames(),V=t.getCurrentDirectory(),W=function(){return V},H=function(e,r){return t.readFile(e,r)},G=t.configFileName,X=t.optionsToExtend,Q=void 0===X?{}:X,Y=t.createProgram,Z=t.rootFiles,$=t.options,ee=!1,te=G&&e.createCachedDirectoryStructureHost(t,V,U);te&&t.onCachedDirectoryStructureHostCreate&&t.onCachedDirectoryStructureHostCreate(te);var re=te||t,ne={useCaseSensitiveFileNames:U,readDirectory:function(e,t,r,n,i){return re.readDirectory(e,t,r,n,i)},fileExists:function(e){return t.fileExists(e)},readFile:H,getCurrentDirectory:W,onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic},ie=c();y(e.Diagnostics.Starting_compilation_in_watch_mode),G&&(ie=e.getNewLineCharacter(Q,function(){return t.getNewLine()}),t.configFileParsingResult?S(t.configFileParsingResult):(e.Debug.assert(!Z),k()),ie=c());var ae=t.trace&&function(e){t.trace(e+ie)},oe=ae?$.extendedDiagnostics?e.WatchLogLevel.Verbose:$.diagnostis?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,se=oe!==e.WatchLogLevel.None?ae:e.noop,ce=e.getWatchFactory(oe,se),ue=ce.watchFile,le=ce.watchFilePath,_e=ce.watchDirectory,de=e.createGetCanonicalFileName(U);se("Current directory: "+V+" CaseSensitiveFileNames: "+U),G&&ue(t,G,h,e.PollingInterval.High,"Config file");var pe={getSourceFile:function(e,t,r,n){return p(e,u(e),t,r,n)},getSourceFileByPath:p,getDefaultLibLocation:t.getDefaultLibLocation&&function(){return t.getDefaultLibLocation()},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:w,getCurrentDirectory:W,useCaseSensitiveFileNames:function(){return U},getCanonicalFileName:de,getNewLine:function(){return ie},fileExists:d,readFile:H,trace:ae,directoryExists:re.directoryExists&&function(e){return re.directoryExists(e)},getDirectories:re.getDirectories&&function(e){return re.getDirectories(e)},realpath:t.realpath&&function(e){return t.realpath(e)},getEnvironmentVariable:t.getEnvironmentVariable?function(e){return t.getEnvironmentVariable(e)}:function(){return""},onReleaseOldSourceFile:g,createHash:t.createHash&&function(e){return t.createHash(e)},toPath:u,getCompilationSettings:function(){return $},watchDirectoryOfFailedLookupLocation:function(e,r,n){return _e(t,e,r,n,"Failed Lookup Locations")},watchTypeRootsDirectory:function(e,r,n){return _e(t,e,r,n,"Type roots")},getCachedDirectoryStructureHost:function(){return te},onInvalidatedResolution:v,onChangedAutomaticTypeDirectiveNames:function(){q=!0,v()},maxNumberOfFilesToIterateForInvalidation:t.maxNumberOfFilesToIterateForInvalidation,getCurrentProgram:i,writeLog:se},fe=e.createResolutionCache(pe,G?e.getDirectoryPath(e.getNormalizedAbsolutePath(G,V)):V,!1);pe.resolveModuleNames=t.resolveModuleNames?function(e,r,n){return t.resolveModuleNames(e,r,n)}:function(e,t,r){return fe.resolveModuleNames(e,t,r)},pe.resolveTypeReferenceDirectives=t.resolveTypeReferenceDirectives?function(e,r){return t.resolveTypeReferenceDirectives(e,r)}:function(e,t){return fe.resolveTypeReferenceDirectives(e,t)};var me=!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives;return a(),A(),G?{getCurrentProgram:r,getProgram:a}:{getCurrentProgram:r,getProgram:a,updateRootFileNames:s}}e.createWatchCompilerHost=t;var n=1;e.createWatchProgram=r}(ts||(ts={}));var ts;!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 r(){if(ae)return ae;var t=e.createMap(),r=e.createMap();return e.forEach(e.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&r.set(e.shortName,e.name)}),ae={optionNameMap:t,shortOptionNames:r}}function n(t){return i(t,e.createCompilerDiagnostic)}function i(t,r){var n=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return r(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,n)}function a(e,t,r){return W(e,G(t||""),r)}function o(t,r,n){if(void 0===r&&(r=""),r=G(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.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,n)}),function(e){return!!e})}}}function s(t,r){function n(t){for(var r=0;r=i.length)break;var s=o;if(34===i.charCodeAt(s)){for(o++;o32;)o++;a.push(i.substring(s,o))}}n(a)}var s={},u=[],l=void 0,_=[];return n(t),{options:s,fileNames:u,projectReferences:l,errors:_}}function c(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=r(),i=n.optionNameMap,a=n.shortOptionNames;if(t){var o=a.get(e);void 0!==o&&(e=o)}return i.get(e)}function u(t,r,n){var i;try{i=n.readFile(t)}catch(a){var o=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,a.message);return void n.onUnRecoverableConfigFileDiagnostic(o)}if(!i){var o=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t);return void n.onUnRecoverableConfigFileDiagnostic(o)}var s=e.parseJsonText(t,i),c=n.getCurrentDirectory();return D(s,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),c),r,e.getNormalizedAbsolutePath(t,c))}function l(t,r){var n=p(t,r);return e.isString(n)?_(t,n):{config:{},error:n}}function _(t,r){var n=e.parseJsonText(t,r);return{config:g(n,n.parseDiagnostics),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function d(t,r){var n=p(t,r);return e.isString(n)?e.parseJsonText(t,n):{ parseDiagnostics:[n]}}function p(t,r){var n;try{n=r(t)}catch(i){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,i.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):n}function f(t){return e.arrayToMap(t,function(e){return e.name})}function m(){return void 0===oe&&(oe={name:void 0,type:"object",elementOptions:f([{name:"compilerOptions",type:"object",elementOptions:f(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:f(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:f(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{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])}),oe}function g(e,t){return y(e,t,!0,void 0,void 0)}function y(t,r,n,a,o){function s(e){return a&&a.elementOptions===e}function c(i,a,c,u){for(var d=n?{}:void 0,p=0,f=i.properties;p=0)return s.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o.concat([c]).join(" -> "))),{raw:t||g(r,s)};var u=t?F(t,n,i,a,s):w(r,n,i,a,s);if(u.extendedConfigPath){o=o.concat([c]);var l=O(r,u.extendedConfigPath,n,i,o,s);if(l&&A(l)){var _=l.raw,d=u.raw,p=function(e){var t=d[e]||_[e];t&&(d[e]=t)};p("include"),p("exclude"),p("files"),void 0===d.compileOnSave&&(d.compileOnSave=_.compileOnSave),u.options=e.assign({},l.options,u.options)}}return u}function F(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o=J(t.compilerOptions,n,a,i),s=j(t.typeAcquisition||t.typingOptions,n,a,i);t.compileOnSave=M(t,n,a);var c;if(t["extends"])if(e.isString(t["extends"])){var u=i?C(i,n):n;c=I(t["extends"],r,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 w(t,r,n,i,a){var o,s,c,u=B(i),l={onSetValidOptionKeyValueInParent:function(t,r,a){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t);var c="compilerOptions"===t?u:"typeAcquisition"===t?o||(o=z(i)):s||(s=z(i));c[r.name]=U(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,u,l){switch(o){case"extends":var _=i?C(i,n):n;return void(c=I(u,r,_,a,function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)}));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(r,n,i,o){"excludes"===r&&a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},_=y(t,a,!0,m(),l);return o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:z(i)),{raw:_,options:u,typeAcquisition:o,extendedConfigPath:c}}function I(t,r,n,i,a){if(t=e.normalizeSlashes(t),!(e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")))return void i.push(a(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t));var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o+=".json",r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_does_not_exist,t))}function O(t,r,n,i,a,o){var s,c=d(r,function(e){return n.readFile(e)});if(t&&(t.extendedSourceFiles||(t.extendedSourceFiles=[])).push(c.fileName),c.parseDiagnostics.length)return void o.push.apply(o,c.parseDiagnostics);var u=e.getDirectoryPath(r),l=P(void 0,c,n,u,e.getBaseFileName(r),a,o);if(t&&(s=t.extendedSourceFiles).push.apply(s,c.extendedSourceFiles),A(l)){var _=e.convertToRelativePath(u,i,e.identity),p=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(_,t)},f=function(t){m[t]&&(m[t]=e.map(m[t],p))},m=l.raw;f("include"),f("exclude"),f("files")}return l}function M(t,r,n){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var i=q(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return!("boolean"!=typeof i||!i)&&i}}function L(e,t,r){var n=[],i=J(e,t,n,r);return{options:i,errors:n}}function R(e,t,r){var n=[],i=j(e,t,n,r);return{options:i,errors:n}}function B(t){var r=t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return r}function J(t,r,n,i){var a=B(i);return K(e.optionDeclarations,t,r,a,e.Diagnostics.Unknown_compiler_option_0,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function z(t){return{enable:t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function j(r,n,i,a){var o=z(a),s=t(r);return K(e.typeAcquisitionDeclarations,s,n,o,e.Diagnostics.Unknown_type_acquisition_option_0,i),o}function K(t,r,n,i,a,o){if(r){var s=f(t);for(var c in r){var u=s.get(c);u?i[u.name]=q(u,r[c],n,o):o.push(e.createCompilerDiagnostic(a,c))}}}function q(t,r,n,i){if(h(t,r)){var a=t.type;return"list"===a&&e.isArray(r)?H(t,r,n,i):e.isString(a)?V(t,n,r):W(t,r,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,v(t)))}function U(t,r,n){if(!S(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,function(e){return U(i.element,r,e)}),function(e){return!!e}):n}return e.isString(t.type)?V(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function V(t,r,n){return t.isFilePath&&(n=e.normalizePath(e.combinePaths(r,n)),""===n&&(n=".")),n}function W(e,t,r){if(!S(t)){var i=t.toLowerCase(),a=e.type.get(i);return void 0!==a?a:void r.push(n(e))}}function H(t,r,n,i){return e.filter(e.map(r,function(e){return q(t.element,e,n,i)}),function(e){return!!e})}function G(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function X(t,r,n,i,a,o,s,c,u){i=e.normalizePath(i);var l,_;r&&(l=Y(r,s,!1,u,"include")),n&&(_=Y(n,s,!0,u,"exclude"));var d=$(l,_,i,o.useCaseSensitiveFileNames),p={filesSpecs:t,referencesSpecs:void 0,includeSpecs:r,excludeSpecs:n,validatedIncludeSpecs:l,validatedExcludeSpecs:_,wildcardDirectories:d};return Q(p,i,a,o,c)}function Q(t,r,n,i,a){void 0===a&&(a=[]),r=e.normalizePath(r);var o=i.useCaseSensitiveFileNames?e.identity:e.toLowerCase,s=e.createMap(),c=e.createMap(),u=t.filesSpecs,l=t.validatedIncludeSpecs,_=t.validatedExcludeSpecs,d=t.wildcardDirectories,p=e.getSupportedExtensions(n,a);if(u)for(var f=0,m=u;f0)for(var v=0,h=i.readDirectory(r,p,_,l,void 0);v=r.end}function P(e,t,r){return e.pos<=t&&e.end>=r}function F(e,t,r){return w(e.pos,e.end,t,r)}function w(e,t,r,n){var i=Math.max(e,r),a=Math.min(t,n);return ir)break;var d=l.getEnd();if(rn.getStart(t)&&rt.end||c.pos===t.end;if(u&&ie(c,n))return i(c)}}return i(r)}function W(t,r,n,i){function a(o){if(H(o))return o;for(var s=o.getChildren(r),c=0;c=t||!ie(u,r)||Z(u);if(_){var d=X(s,c,r);return d&&G(d,r)}return a(u)}}if(e.Debug.assert(void 0!==n||273===o.kind||e.isJSDocCommentContainingNode(o)),s.length){var d=X(s,s.length,r);return d&&G(d,r)}}var o=a(n||r);return e.Debug.assert(!(o&&Z(o))),o}function H(t){return e.isToken(t)&&!Z(t)}function G(e,t){if(H(e))return e;var r=e.getChildren(t),n=X(r,r.length,t);return n&&G(n,t)}function X(t,r,n){for(var i=r-1;i>=0;i--){var a=t[i];if(Z(a))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(ie(t[i],n))return t[i]}}function Q(t,r,n){if(void 0===n&&(n=W(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(),a=n.getEnd();if(in.getStart(t)}function ee(e,t,r){for(var n=e.kind,i=0;;){if(e=W(e.getFullStart(),r),!e)return;if(e.kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function te(t,r){for(var n=0;t;){switch(t.kind){case 27:t=W(t.getFullStart(),r);var i=t&&e.isIdentifier(t);if(!n||!i)return i;n--;break;case 47:n=3;break;case 46:n=2;break;case 29:n++;break;case 18:if(t=ee(t,17,r),!t)return!1;break;case 20:if(t=ee(t,19,r),!t)return!1;break;case 22:if(t=ee(t,21,r),!t)return!1;break;case 26:case 36:case 71:case 9:case 8:case 101:case 86:case 103:case 85:case 128:case 23:case 49:case 55:case 56:break;default:if(e.isTypeNode(t))break;return!1}t=W(t.getFullStart(),r)}return!1}function re(t,r,n,i){return!!e.formatting.getRangeOfEnclosingComment(t,r,!1,void 0,n,i)}function ne(t,r){function n(e){var r=t.text;return r.length>=e.pos+3&&"/"===r[e.pos]&&"*"===r[e.pos+1]&&"*"===r[e.pos+2]}var i=K(t,r,!1),a=e.getLeadingCommentRanges(t.text,i.pos);return e.forEach(a,n)}function ie(e,t){return 0!==e.getWidth(t)}function ae(t){var r=e.getCombinedModifierFlags(t),n=[];return 8&r&&n.push("private"),16&r&&n.push("protected"),4&r&&n.push("public"),32&r&&n.push("static"),128&r&&n.push("abstract"),1&r&&n.push("export"),4194304&t.flags&&n.push("declare"),n.length>0?n.join(","):""}function oe(t){return 161===t.kind||186===t.kind?t.typeArguments:e.isFunctionLike(t)||234===t.kind||235===t.kind?t.typeParameters:void 0}function se(e){return 2===e||3===e}function ce(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))}function ue(e){return 17<=e&&e<=70}function le(t,r){return e.isTemplateLiteralKind(t.kind)&&t.getStart()=2||!!e.noEmit}function Pe(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Fe(t){return e.createGetCanonicalFileName(Pe(t))}function we(e,t,r,n){return e||t&&t.length?Ie(e,t,r,n):void 0}function Ie(t,r,n,i){return e.createImportDeclaration(void 0,void 0,t||r?e.createImportClause(t,r&&r.length?e.createNamedImports(r):void 0):void 0,"string"==typeof n?e.createLiteral(n,"single"===i.quotePreference):n)}function Oe(t){var r=Me(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)}function Me(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,function(t){var r=e.getNameOfDeclaration(t);return r&&71===r.kind?r.escapedText:void 0})}function Le(t,r){var n=t.getTypeAtLocation(r.parent),i=n&&t.getPropertyOfType(n,r.name.text);return i&&98304&i.flags?(e.Debug.assert(!!(33554432&i.flags)),i.target):i}e.scanner=e.createScanner(6,!0);var Re;!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"}(Re=e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=r,e.isInRightSideOfInternalImportEqualsDeclaration=i,e.isCallExpressionTarget=u,e.isNewExpressionTarget=l,e.climbPastPropertyAccess=d,e.getTargetLabel=p,e.isJumpStatementTarget=f,e.isLabelOfLabeledStatement=m,e.isLabelName=g,e.isRightSideOfQualifiedName=y,e.isRightSideOfPropertyAccess=v,e.isNameOfModuleDeclaration=h,e.isNameOfFunctionDeclaration=b,e.isLiteralNameOfPropertyDeclarationOrIndexAccess=x,e.isExpressionOfExternalModuleImportEqualsDeclaration=D,e.getContainerNode=k,e.getNodeKind=S,e.isThis=C;var Be=/^\/\/\/\s*0&&148===e.declarations[0].kind}function r(){function t(){if(u){var t=e.getIndentString(l);t&&c.push(i(t,e.SymbolDisplayPartKind.space)),u=!1}}function r(e,r){t(),c.push(i(e,r))}function a(e,r){t(),c.push(n(e,r))}function o(){c.push(d()),u=!0}function s(){c=[],u=!0,l=0}var c,u,l;s();var _=function(t){return r(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){return c},writeKeyword:function(t){return r(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return r(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return r(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return r(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return r(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return r(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return r(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return r(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:a,writeLine:o,write:_,writeTextOfNode:_,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 l},increaseIndent:function(){l++},decreaseIndent:function(){l--},clear:s,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function n(r,n){function a(r){var n=r.flags;return 3&n?t(r)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&n?e.SymbolDisplayPartKind.propertyName:32768&n?e.SymbolDisplayPartKind.propertyName:65536&n?e.SymbolDisplayPartKind.propertyName:8&n?e.SymbolDisplayPartKind.enumMemberName:16&n?e.SymbolDisplayPartKind.functionName:32&n?e.SymbolDisplayPartKind.className:64&n?e.SymbolDisplayPartKind.interfaceName:384&n?e.SymbolDisplayPartKind.enumName:1536&n?e.SymbolDisplayPartKind.moduleName:8192&n?e.SymbolDisplayPartKind.methodName:262144&n?e.SymbolDisplayPartKind.typeParameterName:524288&n?e.SymbolDisplayPartKind.aliasName:2097152&n?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}return i(r,a(n))}function i(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function a(){return i(" ",e.SymbolDisplayPartKind.space)}function o(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function s(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}function c(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}function u(t){var r=e.stringToToken(t);return void 0===r?l(t):o(r)}function l(t){return i(t,e.SymbolDisplayPartKind.text)}function _(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||M}function d(){return i("\n",e.SymbolDisplayPartKind.lineBreak)}function p(e){try{return e(O),O.displayParts()}finally{O.clear()}}function f(e,t,r,n){return p(function(i){e.writeType(t,r,1024|n,i)})}function m(e,t,r,n,i){return p(function(a){e.writeSymbol(t,r,n,8|i,a)})}function g(e,t,r,n){return n|=25632,p(function(i){e.writeSignature(t,r,n,void 0,i)})}function y(e){return e.parent&&(247===e.parent.kind||251===e.parent.kind)&&e.parent.propertyName===e}function v(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&h(e)?e.substring(1,t-1):e}function h(t){return e.isSingleOrDoubleQuote(t.charCodeAt(0))}function b(t,r){for(var n=[],i=2;i=0),o}e.isFirstDeclarationOfSymbolParameter=t;var O=r();e.symbolPart=n,e.displayPart=i,e.spacePart=a,e.keywordPart=o,e.punctuationPart=s,e.operatorPart=c,e.textOrKeywordPart=u,e.textPart=l;var M="\r\n";e.getNewLineOrDefaultFromHost=_,e.lineBreakPart=d,e.mapToDisplayParts=p,e.typeToDisplayParts=f,e.symbolToDisplayParts=m,e.signatureToDisplayParts=g,e.isImportOrExportSpecifierName=y,e.stripQuotes=v,e.startsWithQuote=h,e.scriptKindIs=b,e.getScriptKind=x,e.getUniqueSymbolId=D,e.getFirstNonSpaceCharacterPosition=k,e.getSynthesizedDeepClone=S,e.getSynthesizedDeepClones=T,e.suppressLeadingAndTrailingTrivia=E,e.suppressLeadingTrivia=N,e.suppressTrailingTrivia=A,e.getUniqueName=w,e.getRenameLocation=I}(ts||(ts={}));var ts;!function(e){function t(){function t(e,t,r){return i(a(e,t,r),e)}function a(t,i,a){function u(){switch(_){case 41:case 63:b[d]||12!==c.reScanSlashToken()||(_=12);break;case 27:71===d&&x++;break;case 29:x>0&&x--;break;case 119:case 137:case 134:case 122:case 138:x>0&&!a&&(_=71);break;case 14:p.push(_);break;case 17:p.length>0&&p.push(_);break;case 18:if(p.length>0){var t=e.lastOrUndefined(p);14===t?(_=c.reScanTemplateToken(),16===_?p.pop():e.Debug.assertEqual(_,15,"Should have been a template middle.")):(e.Debug.assertEqual(t,17,"Should have been an open brace"),p.pop())}break;default:if(!e.isKeyword(_))break;23===d?_=71:e.isKeyword(d)&&e.isKeyword(_)&&!o(d,_)&&(_=71)}}var _=0,d=0,p=[],f=s(i),m=f.prefix,g=f.pushTemplate;t=m+t;var y=m.length;g&&p.push(14),c.setText(t);var v=0,h=[],x=0;do{_=c.scan(),e.isTrivia(_)||(u(),d=_);var D=c.getTextPos();if(n(c.getTokenPos(),D,y,l(_),h),D>=t.length){var k=r(c,_,e.lastOrUndefined(p));void 0!==k&&(v=k)}}while(1!==_);return{endOfLineState:v,spans:h}}var c=e.createScanner(6,!1);return{getClassificationsForLine:t,getEncodedLexicalClassifications:a}}function r(t,r,n){switch(r){case 9:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++; if(0===(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 16:return 5;case 13:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 14===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t,r){for(var n=[],i=t.spans,o=0,s=0;s=0){var _=c-o;_>0&&n.push({length:_,classification:e.TokenClass.Whitespace})}n.push({length:u,classification:a(l)}),o=c+u}var d=r.length-o;return d>0&&n.push({length:d,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}}function a(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 o(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 125:case 136:case 123:case 115:return!0;default:return!1}}function s(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:return e.Debug.assertNever(t)}}function c(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 u(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function l(t){if(e.isKeyword(t))return 3;if(c(t)||u(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 _(e,t,r,n,i){return y(p(e,t,r,n,i))}function d(e,t){switch(t){case 238:case 234:case 235:case 233:e.throwIfCancellationRequested()}}function p(t,r,n,i,a){function o(e,t,r){s.push(e),s.push(t-e),s.push(r)}var s=[];return n.forEachChild(function c(s){if(s&&e.textSpanIntersectsWith(a,s.pos,s.getFullWidth())){if(d(r,s.kind),e.isIdentifier(s)&&!e.nodeIsMissing(s)&&i.has(s.escapedText)){var u=t.getSymbolAtLocation(s),l=u&&f(u,e.getMeaningFromLocation(s),t);l&&o(s.getStart(n),s.getEnd(),l)}s.forEachChild(c)}}),{spans:s,endOfLineState:0}}function f(e,t,r){var n=e.getFlags();return 0===(2885600&n)?void 0:32&n?11:384&n?12:524288&n?16:1536&n?4&t||1&t&&m(e)?14:void 0:2097152&n?f(r.getAliasedSymbol(e),t,r):2&t?64&n?13:262144&n?15:void 0:void 0}function m(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}function g(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 y(t){e.Debug.assert(t.spans.length%3===0);for(var r=t.spans,n=[],i=0;i=0),o>0){var s=r||m(t.kind,t);s&&i(n,o,s)}return!0}function f(e){switch(e.parent&&e.parent.kind){case 256:if(e.parent.tagName===e)return 19;break;case 257:if(e.parent.tagName===e)return 20;break;case 255:if(e.parent.tagName===e)return 21;break;case 261:if(e.parent.name===e)return 22}}function m(t,r){if(e.isKeyword(t))return 3;if((27===t||29===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){if(58===t&&(231===r.parent.kind||151===r.parent.kind||148===r.parent.kind||261===r.parent.kind))return 5;if(199===r.parent.kind||197===r.parent.kind||198===r.parent.kind||200===r.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 261===r.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(r)switch(r.parent.kind){case 234:if(r.parent.name===r)return 11;return;case 147:if(r.parent.name===r)return 15;return;case 235:if(r.parent.name===r)return 13;return;case 237:if(r.parent.name===r)return 12;return;case 238:if(r.parent.name===r)return 14;return;case 148:if(r.parent.name===r)return e.isThisIdentifier(r)?3:17;return}return 2}}function g(n){if(n&&e.decodedTextSpanIntersectsWith(y,v,n.pos,n.getFullWidth())){d(t,n.kind);for(var i=0,a=n.getChildren(r);i=e.pos&&r<=e.end});if(c){var l=t.text.slice(c.pos,r),_=N.exec(l);if(_){var d=_[1],p=_[2],f=_[3],m=e.getDirectoryPath(t.path),g="path"===p?u(f,m,e.getSupportedExtensions(i),!0,a,t.path):"types"===p?y(a,i,m):void 0;return g&&n(f,c.pos+d.length,g)}}}function y(t,n,i,a){function o(r){if(e.Debug.assert(!!t.getDirectories),C(t,r)){var n=D(t,r);if(n)for(var i=0,a=n;i=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}function D(e,t){return T(e,e.getDirectories,t)||[]}function k(t,r,n,i,a){return T(t,t.readDirectory,r,n,i,a)||e.emptyArray}function S(e,t){return T(e,e.fileExists,t)}function C(t,r){try{return e.directoryProbablyExists(r,t)}catch(n){}}function T(e,t){for(var r=[],n=2;ne.parameters.length)){var a=r.getParameterType(e,t.argumentIndex);return n=n||!!(2&a.flags),b(a,r,i)}});return{kind:2,types:o,isNewIdentifier:n}}function h(e){return e&&{kind:1,symbols:e.getApparentProperties(),hasIndexSignature:H(e)}}function b(t,r,n){return void 0===n&&(n=e.createMap()),t?(t=e.skipConstraint(t),t.isUnion()?e.flatMap(t.types,function(e){return b(e,r,n)}):!t.isStringLiteral()||256&t.flags||!e.addToSeen(n,t.value)?e.emptyArray:[t]):e.emptyArray}function x(t,r,n,i,a){var o=M(t,r,n,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},a);if(!o)return{type:"none"};if(0!==o.kind)return{type:"request",request:o};var s=o.symbols,c=o.location,u=o.completionKind,l=o.symbolToOriginInfoMap,_=o.previousToken,d=o.isJsxInitializer;return e.firstDefined(s,function(r){var n=l[e.getSymbolId(r)],i=L(r,t.getCompilerOptions().target,n,u);return i&&i.name===a.name&&p(n)===a.source?{type:"symbol",symbol:r,location:c,symbolToOriginInfoMap:l,previousToken:_,isJsxInitializer:d}:void 0})||{type:"none"}}function D(t,r,n){return r&&"export"===r.type&&r.isDefaultExport&&"default"===t.escapedName?e.firstDefined(t.declarations,function(t){return e.isExportAssignment(t)&&e.isIdentifier(t.expression)?t.expression.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(r.moduleSymbol,n):t.name}function k(t,r,n,i,a,o,s,c,u,l){var _=t.getTypeChecker(),d=t.getCompilerOptions(),p=a.name,f=e.findPrecedingToken(i,n);if(e.isInString(n,i,f)){var m=f&&e.isStringLiteralLike(f)?y(n,f,i,_,d,o):void 0;return m&&C(p,f,m,n,_,l)}var g=x(t,r,n,i,a);switch(g.type){case"request":var v=g.request;switch(v.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(p);case 2:return e.JsDoc.getJSDocTagCompletionDetails(p);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(p);default:return e.Debug.assertNever(v)}case"symbol":var h=g.symbol,b=g.location,D=g.symbolToOriginInfoMap,k=g.previousToken,N=E(D,h,t,_,o,d,n,k,s,c,t.getSourceFiles(),u),A=N.codeActions,P=N.sourceDisplay;return S(h,_,n,b,l,A,P);case"none":return re().some(function(e){return e.name===p})?T(p,"","keyword",[e.displayPart(p,e.SymbolDisplayPartKind.keyword)]):void 0}}function S(t,r,n,i,a,o,s){var c=r.runWithCancellationToken(a,function(r){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7)}),u=c.displayParts,l=c.documentation,_=c.symbolKind,d=c.tags;return T(t.name,e.SymbolDisplay.getSymbolModifiers(t),_,u,l,d,o,s)}function C(t,r,n,i,a,o){switch(n.kind){case 0:var s=e.find(n.paths,function(e){return e.name===t});return s&&T(t,"",s.kind,[e.textPart(t)]);case 1:var s=e.find(n.symbols,function(e){return e.name===t});return s&&S(s,a,i,r,o);case 2:return e.find(n.types,function(e){return e.value===t})?T(t,"","type",[e.textPart(t)]):void 0;default:return e.Debug.assertNever(n)}}function T(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s}}function E(t,r,n,i,a,o,s,c,u,l,_,d){var p=t[e.getSymbolId(r)];if(!p||"export"!==p.type)return{codeActions:void 0,sourceDisplay:void 0};var f=p.moduleSymbol,m=e.skipAlias(r.exportSymbol||r,i),g=e.codefix.getImportCompletionAction(m,f,s,D(r,p,o.target),a,n,i,o,_,u,l,c,d),y=g.moduleSpecifier,v=g.codeAction;return{sourceDisplay:[e.textPart(y)],codeActions:[v]}}function N(e,t,r,n,i){var a=x(e,t,r,n,i);return"symbol"===a.type?a.symbol:void 0}function A(t,r,n,i){var a=P(t,r,n,i),o=a&&a.symbol;return o&&(384&o.flags||32&o.flags&&!e.isAbstractConstructorSymbol(o))?I(o,t,i):void 0}function P(t,r,n,i){var a=t.parent;switch(t.kind){case 71:return F(t,i);case 58:switch(a.kind){case 231:return i.getContextualType(a.initializer);case 199:return i.getTypeAtLocation(a.left);case 261:return i.getContextualTypeForJsxAttribute(a);default:return}case 94:return i.getContextualType(a);case 73:return w(e.cast(a,e.isCaseClause),i);case 17:return e.isJsxExpression(a)&&254!==a.parent.kind?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:var o=e.SignatureHelp.getImmediatelyContainingArgumentInfo(t,r,n);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(26===t.kind?1:0)):j(t.kind)&&e.isBinaryExpression(a)&&j(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}}function F(e,t){var r=e.parent;switch(r.kind){case 187:return t.getContextualType(r);case 199:var n=r,i=n.left,a=n.operatorToken,o=n.right;return j(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 265:return r.expression===e?w(r,t):void 0;default:return t.getContextualType(e)}}function w(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function I(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,!1);return i?e.first(i):t.parent&&(O(t.parent)?t:I(t.parent,r,n))}function O(e){return e.declarations.some(function(e){return 273===e.kind})}function M(t,r,n,i,a,o){function s(e){switch(e.kind){case 292:case 297:case 293:case 294:case 296:return!0}}function c(){he=2;var t=e.isLiteralImportTypeNode(_e),r=ne||t&&!_e.isTypeOf||e.isPartOfTypeNode(_e.parent),i=e.isInRightSideOfInternalImportEqualsDeclaration(_e),a=i||!r&&e.isPossiblyTypeArgumentPosition(ce,n);if(e.isEntityName(_e)||t){var o=$.getSymbolAtLocation(_e);if(o&&(o=e.skipAlias(o,$),1920&o.flags)){for(var s=e.Debug.assertEachDefined($.getExportsOfModule(o),"getExportsOfModule() should all be defined"),c=function(e){return $.isValidPropertyAccess(t?_e:_e.parent,e.name)},l=function(e){return x(e)},_=a?function(e){return l(e)||c(e)}:r?l:c,d=0,p=s;d0&&(De=X(r,e.Debug.assertDefined(n))),1}function w(){var t=!ce||17!==ce.kind&&26!==ce.kind?void 0:e.tryCast(ce.parent,e.isNamedImportsOrExports);if(!t)return 0;var r=(246===t.kind?t.parent.parent:t.parent).moduleSpecifier,n=$.getSymbolAtLocation(r);if(!n)return 2;he=3,be=!1;var i=$.getExportsAndPropertiesOfModule(n),a=e.arrayToSet(t.elements,function(e){return Z(e)?void 0:(e.propertyName||e.name).escapedText; });return De=i.filter(function(e){return"default"!==e.escapedName&&!a.get(e.escapedName)}),1}function I(){var t=V(n,ce,ge);if(!t)return 0;if(he=3,be=!0,xe=e.isClassLike(t)?1:2,!e.isClassLike(t))return 1;var r=ce.parent,i=e.isClassElement(r)&&e.getModifierFlags(r);if(71===ce.kind&&!Z(ce))switch(ce.getText()){case"private":i=8|i;break;case"static":i=32|i}if(!(8&i)){var a=e.flatMap(e.getAllSuperTypeNodes(t),function(e){var r=$.getTypeAtLocation(e);return $.getPropertiesOfType(32&i?$.getTypeOfSymbolAtLocation(r.symbol,t):r)});De=Q(a,t.members,i)}return 1}function O(t){if(t)switch(t.kind){case 17:case 26:var r=t.parent;if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r}}function M(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function L(t){if(t)switch(t.kind){case 19:case 26:return e.isConstructorDeclaration(t.parent)&&t.parent;default:if(M(t))return t.parent.parent}}function R(t){if(t){var r,n=e.findAncestor(t.parent,function(t){return e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||r!==t.body)||void(r=t)});return n&&n}}function B(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 184:case 262:case 261:case 263:if(t&&(255===t.kind||256===t.kind))return t;if(261===t.kind)return t.parent.parent;break;case 9:if(t&&(261===t.kind||263===t.kind))return t.parent.parent;break;case 18:if(t&&264===t.kind&&t.parent&&261===t.parent.kind)return t.parent.parent.parent;if(t&&263===t.kind)return t.parent.parent}}}function j(t){var r=t.parent.kind;switch(t.kind){case 26:return 231===r||232===r||213===r||237===r||q(r)||235===r||180===r||236===r||e.isClassLike(t.parent)&&t.parent.typeParameters&&t.parent.typeParameters.end>=t.pos;case 23:return 180===r;case 56:return 181===r;case 21:return 180===r;case 19:return 268===r||q(r);case 17:return 237===r;case 27:return 234===r||204===r||235===r||236===r||e.isFunctionLikeKind(r);case 115:return 151===r&&!e.isClassLike(t.parent.parent);case 24:return 148===r||t.parent&&t.parent.parent&&180===t.parent.parent.kind;case 114:case 112:case 113:return 148===r&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 247===r||251===r||245===r;case 125:case 136:if(W(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(J(z(t))&&W(t))return!1;if(M(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(z(t))||Z(t)))return!1;switch(z(t)){case 117:case 120:case 75:case 76:case 124:case 83:case 89:case 109:case 110:case 112:case 113:case 114:case 115:case 104:case 116:return!0}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==se||i>se.end))}function q(t){return e.isFunctionLikeKind(t)&&154!==t}function G(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function X(t,r){if(0===r.length)return t;for(var n=e.createUnderscoreEscapedMap(),i=0,a=r;is))for(var u=c.length-1;u>=0;u--){var l=c[u];if(t>=l.pos)return l}}}function q(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 U(t,r,n){if(!t.isUnion())return e.Debug.assertEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined");var i=n?t.types:t.types.filter(function(t){return!(16382&t.flags||r.isArrayLikeType(t)||e.typeHasCallOrConstructSignatures(t,r))});return e.Debug.assertEachDefined(r.getAllPossiblePropertiesOfTypes(i),"getAllPossiblePropertiesOfTypes() should all be defined")}function V(t,r,n){switch(n.kind){case 298:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var i=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(i&&!e.findChildOfKind(i,18,t))return i}if(r)switch(r.kind){case 25:case 18:return W(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 17:case 26:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!W(r))return;var a=e.isClassLike(r.parent.parent)?J:B;return a(r.kind)||e.isIdentifier(r)&&a(e.stringToToken(r.text))?r.parent.parent:void 0}}function W(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function H(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function G(t,r,n,i){switch(r){case".":case"@":return!0;case'"':case"'":case"`":return X(n)&&i===n.getStart(t)+1;case"<":return 27===n.kind&&199!==n.parent.kind;case"/":return e.isStringLiteralLike(n)?!!e.tryGetImportFromModuleSpecifier(n):41===n.kind&&e.isJsxClosingElement(n.parent);default:return e.Debug.assertNever(r)}}function X(e){switch(e.kind){case 9:case 13:case 201:case 188:return!0;default:return!1}}var Q;!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.InterfaceElementKeywords=2]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=3]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=4]="FunctionLikeBodyKeywords",e[e.TypeKeywords=5]="TypeKeywords"}(Q||(Q={}));var Y;!function(e){e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"}(Y||(Y={})),t.getCompletionsAtPosition=r;var Z;!function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(Z||(Z={})),t.getCompletionEntryDetails=k,t.getCompletionEntrySymbol=N;var $;!function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName"}($||($={}));var ee;!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"}(ee||(ee={}));var te=[],re=e.memoize(function(){for(var t=[],r=72;r<=144;r++)t.push({name:e.tokenToString(r),kind:"keyword",kindModifiers:"",sortText:"0"});return t})}(t=e.Completions||(e.Completions={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,o,s,c){var u=e.getTouchingPropertyName(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,d=l.closingElement,p=[_,d].map(function(e){var t=e.tagName;return n(t,o)});return[{fileName:o.fileName,highlightSpans:p}]}return i(s,u,t,r,c)||a(u,o)}function n(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function i(t,r,n,i,a){var o=e.arrayToSet(a,function(e){return e.fileName}),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(c.entries(),function(t){var r=t[0],i=t[1];if(!o.has(r)){e.Debug.assert(n.redirectTargetsSet.has(r));var s=n.getSourceFile(r),c=e.find(a,function(e){return e.redirectInfo&&e.redirectInfo.redirectTarget===s});r=c.fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}})}}function a(e,t){var r=o(e,t);return r&&[{fileName:t.fileName,highlightSpans:r}]}function o(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)?k(t.parent,r):void 0;case 96:return a(t.parent,e.isReturnStatement,x);case 100:return a(t.parent,e.isThrowStatement,b);case 102:case 74:case 87:var s=74===t.kind?t.parent.parent:t.parent;return a(s,e.isTryStatement,h);case 98:return a(t.parent,e.isSwitchStatement,v);case 73:case 79:return a(t.parent.parent.parent,e.isSwitchStatement,v);case 72:case 77:return a(t.parent,e.isBreakOrContinueStatement,y);case 88:case 106:case 81:return a(t.parent,function(t){return e.isIterationStatement(t,!0)},g);case 123:return i(e.isConstructorDeclaration,[123]);case 125:case 136:return i(e.isAccessor,[125,136]);case 121:return a(t.parent,e.isAwaitExpression,D);case 120:return o(D(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?o(p(t.kind,t.parent)):void 0}}function s(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?s(t.catchClause):t.tryBlock&&s(t.tryBlock),s(t.finallyBlock)):e.isFunctionLike(t)?void 0:l(t,s)}function c(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||273===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}function u(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:l(t,u)}function l(t,r){var n=[];return t.forEachChild(function(t){var i=r(t);void 0!==i&&n.push.apply(n,e.toArray(i))}),n}function _(e,t){var r=d(t);return r&&r===e}function d(t){return e.findAncestor(t,function(r){switch(r.kind){case 226:if(222===t.kind)return!1;case 219:case 220:case 221:case 218:case 217:return!t.label||C(r,t.label.escapedText);default:return e.isFunctionLike(r)&&"quit"}})}function p(t,r){var n=e.modifierToFlag(t);return e.mapDefined(f(r,n),function(r){if(e.getModifierFlags(r)&n){var i=e.find(r.modifiers,function(e){return e.kind===t});return e.Debug.assert(!!i),i}})}function f(t,r){var n=t.parent;switch(n.kind){case 239:case 273:case 212:case 265:case 266:return 128&r&&e.isClassDeclaration(t)?t.members.concat([t]):n.statements;case 154:case 153:case 233:return n.parameters.concat(e.isClassLike(n.parent)?n.parent.members:[]);case 234:case 204:var i=n.members;if(28&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return i.concat(a.parameters)}else if(128&r)return i.concat([n]);return i;default:e.Debug.assertNever(n,"Invalid container kind.")}}function m(t,r){for(var n=[],i=2;i=0&&!m(r,n[i],106);i--);return e.forEach(u(t.statement),function(e){_(t,e)&&m(r,e.getFirstToken(),72,77)}),r}function y(e){var t=d(e);if(t)switch(t.kind){case 219:case 220:case 221:case 217:case 218:return g(t);case 226:return v(t)}}function v(t){var r=[];return m(r,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(n){m(r,n.getFirstToken(),73,79),e.forEach(u(n),function(e){_(t,e)&&m(r,e.getFirstToken(),72)})}),r}function h(t,r){var n=[];if(m(n,t.getFirstToken(),102),t.catchClause&&m(n,t.catchClause.getFirstToken(),74),t.finallyBlock){var i=e.findChildOfKind(t,87,r);m(n,i,87)}return n}function b(t,r){var n=c(t);if(n){var i=[];return e.forEach(s(n),function(t){i.push(e.findChildOfKind(t,100,r))}),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,function(t){i.push(e.findChildOfKind(t,96,r))}),i}}function x(t,r){var n=e.getContainingFunction(t);if(n){var i=[];return e.forEachReturnStatement(e.cast(n.body,e.isBlock),function(t){i.push(e.findChildOfKind(t,96,r))}),e.forEach(s(n.body),function(t){i.push(e.findChildOfKind(t,100,r))}),i}}function D(t){function r(t){e.isAwaitExpression(t)&&m(i,t.getFirstToken(),121),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,r)}var n=e.getContainingFunction(t);if(n){var i=[];return n.modifiers&&n.modifiers.forEach(function(e){m(i,e,120)}),e.forEachChild(n,r),i}}function k(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,r){for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);m(n,i[0],90);for(var a=i.length-1;a>=0&&!m(n,i[a],82);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}function C(t,r){return!!e.findAncestor(t.parent,function(t){return e.isLabeledStatement(t)?t.label.escapedText===r:"quit"})}t.getDocumentHighlights=r}(t=e.DocumentHighlights||(e.DocumentHighlights={}))}(ts||(ts={}));var ts;!function(e){function t(e,t){return r(e,t)}function r(t,r,n){function i(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 a(t,r){var n=m.get(t);return!n&&r&&m.set(t,n=e.createMap()),n}function o(){var t=e.arrayFrom(m.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=m.get(e),r=[];return t.forEach(function(e,t){r.push({name:t,refCount:e.languageServiceRefCount})}),r.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:r}});return JSON.stringify(t,void 0,2)}function s(t,n,a,o,s){var u=e.toPath(t,r,g),l=i(n);return c(t,u,n,l,a,o,s)}function c(e,t,r,n,i,a,o){return _(e,t,r,n,i,a,!0,o)}function u(t,n,a,o,s){var c=e.toPath(t,r,g),u=i(n);return l(t,c,n,u,a,o,s)}function l(e,t,r,n,i,a,o){return _(e,t,r,n,i,a,!1,o)}function _(t,r,i,o,s,c,u,l){var _=a(o,!0),d=_.get(r),p=6===l?100:i.target;if(!d&&n){var f=n.getDocument(o,r);f&&(e.Debug.assert(u),d={sourceFile:f,languageServiceRefCount:0},_.set(r,d))}if(d)d.sourceFile.version!==c&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,s,c,s.getChangeRange(d.sourceFile.scriptSnapshot)),n&&n.setDocument(o,r,d.sourceFile)),u&&d.languageServiceRefCount++;else{var f=e.createLanguageServiceSourceFile(t,s,p,c,!1,l);n&&n.setDocument(o,r,f),d={sourceFile:f,languageServiceRefCount:1},_.set(r,d)}return e.Debug.assert(0!==d.languageServiceRefCount),d.sourceFile}function d(t,n){var a=e.toPath(t,r,g),o=i(n);return p(a,o)}function p(t,r){var n=a(r,!1);e.Debug.assert(void 0!==n);var i=n.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&n["delete"](t)}function f(t){return e.arrayFrom(m.entries(),function(e){var r=e[0],n=e[1],i=n.get(t);return[r,i&&i.languageServiceRefCount]})}void 0===r&&(r="");var m=e.createMap(),g=e.createGetCanonicalFileName(!!t);return{acquireDocument:s,acquireDocumentWithKey:c,updateDocument:u,updateDocumentWithKey:l,releaseDocument:d,releaseDocumentWithKey:p,getLanguageServiceRefCounts:f,reportStats:o,getKeyForCompilationSettings:i}}e.createDocumentRegistry=t,e.createDocumentRegistryInternal=r}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(e,t,r,a){var o=s(e,r,a);return function(s,c,u){var l=n(e,t,o,c,r,a),_=l.directImports,d=l.indirectUsers;return __assign({indirectUsers:d},i(_,s,c.exportKind,r,u))}}function n(t,r,n,i,o,s){function c(){if(x)return t;for(var n=0,i=f.declarations;n=0&&!(c>n.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(r,c+s+1)}return i}function x(r,n){var i=r.getSourceFile(),a=n.text,o=e.mapDefined(h(i,a,r),function(r){return r===n||e.isJumpStatementTarget(r)&&e.getTargetLabel(r,a)===n?t.nodeEntry(r):void 0});return[{definition:{type:"label",node:n},references:o}]}function D(t,r){switch(t.kind){case 71:return t.text.length===r.length;case 9:var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t))&&n.text.length===r.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 79:return"default".length===r.length;default:return!1}}function k(r,n,i){var a=e.flatMap(r,function(r){return i.throwIfCancellationRequested(),e.mapDefined(h(r,e.tokenToString(n),r),function(e){return e.kind===n?t.nodeEntry(e):void 0})});return a.length?[{definition:{type:"keyword",node:a[0].node},references:a}]:void 0}function S(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),C(e,e,t,r,n)}function C(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=b(t,r.text,e);ae.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}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r){var n=e.Semver.parse(e.getProperty(r,"ts"+e.versionMajorMinor)||e.getProperty(r,"latest"));return!n.greaterThan(t.version)}function n(t,r){var n=e.readConfigFile(r,function(e){return t.readFile(e)});return e.createMapFromTemplate(n.config)}function i(t,r){var n=e.readConfigFile(r,function(e){return t.readFile(e)});if(n.config)return e.createMapFromTemplate(n.config.simpleMap)}function a(n,i,a,o,s,c,u,l,_){function d(e){y.has(e)||y.set(e,void 0)}function p(t,r){i&&i(r+": "+JSON.stringify(t)),e.forEach(t,d)}function f(t,r){if(n.fileExists(t)){r.push(t);var i=e.readConfigFile(t,function(e){return n.readFile(e)}).config,a=e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys);p(a,"Typing names in '"+t+"' dependencies")}}function m(t){var r=e.mapDefined(t,function(t){if(e.hasJavaScriptFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}});r.length&&p(r,"Inferred typings from file names");var n=e.some(t,function(t){return e.fileExtensionIs(t,".jsx")});n&&(i&&i("Inferred 'react' typings due to presence of '.jsx' extension"),d("react"))}function g(t,r){if(r.push(t),n.directoryExists(t)){var a=n.readDirectory(t,[".json"],void 0,void 0,2);i&&i("Searching for typing names in "+t+"; all files: "+JSON.stringify(a));for(var o=[],s=0,c=a;su?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^\/]+\/[^\/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2}function s(t,r){switch(t){case 2:return"Package name '"+r+"' cannot be empty"; case 3:return"Package name '"+r+"' should be less than "+u+" characters";case 4:return"Package name '"+r+"' cannot start with '.'";case 5:return"Package name '"+r+"' cannot start with '_'";case 1:return"Package '"+r+"' is scoped and currently is not supported";case 6:return"Package name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:e.Debug.assertNever(t)}}t.isTypingUpToDate=r,t.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"],t.nodeCoreModules=e.arrayToSet(t.nodeCoreModuleList),t.loadSafeList=n,t.loadTypesMap=i,t.discoverTypings=a;var c;!function(e){e[e.Ok=0]="Ok",e[e.ScopedPackagesNotSupported=1]="ScopedPackagesNotSupported",e[e.EmptyName=2]="EmptyName",e[e.NameTooLong=3]="NameTooLong",e[e.NameStartsWithDot=4]="NameStartsWithDot",e[e.NameStartsWithUnderscore=5]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=6]="NameContainsNonURISafeCharacters"}(c=t.PackageNameValidationResult||(t.PackageNameValidationResult={}));var u=214;t.validatePackageName=o,t.renderPackageNameValidationFailure=s}(t=e.JsTyping||(e.JsTyping={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,i,a,o,s){var l=e.createPatternMatcher(a);if(!l)return e.emptyArray;for(var _=[],d=function(t){return i.throwIfCancellationRequested(),s&&e.fileExtensionIs(t.fileName,".d.ts")?"continue":void t.getNamedDeclarations().forEach(function(e,i){n(l,i,e,r,t.fileName,_)})},p=0,f=t;p0)return n}switch(t.kind){case 273:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 192:case 233:case 191:case 234:case 204:return 512&e.getModifierFlags(t)?"default":I(t);case 154:return"constructor";case 158:return"new()";case 157:return"()";case 159:return"[]";default:return""}}function S(t){function r(e){if(n(e)&&(i.push(e),e.children))for(var t=0,a=e.children;t0?e.declarationNameToString(t.name):231===t.parent.kind?e.declarationNameToString(t.parent.name):199===t.parent.kind&&58===t.parent.operatorToken.kind?a(t.parent.left).replace(B,""):269===t.parent.kind&&t.parent.name?a(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function O(e){switch(e.kind){case 192:case 191:case 204:return!0;default:return!1}}var M,L,R,B=/\s+/g,J=[],z=[];t.getNavigationBarItems=r,t.getNavigationTree=n}(t=e.NavigationBar||(e.NavigationBar={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,c,u,_){function d(n,i){if(0!==e.length(n)){e.suppressLeadingTrivia(n[0]);var o=e.group(n,function(e){return a(e.moduleSpecifier)}),s=e.stableSort(o,function(e,t){return l(e[0].moduleSpecifier,t[0].moduleSpecifier)}),u=e.flatMap(s,function(e){return a(e[0].moduleSpecifier)?i(e):e});0===u.length?p.deleteNode(t,n[0],{useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!1}):p.replaceNodeWithNodes(t,n[0],u,{useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!1,suffix:e.getNewLineOrDefaultFromHost(c,r.options)});for(var _=1;_0?a[0]:s[0],k=0===x.length?y?void 0:e.createNamedImports(e.emptyArray):0===s.length?e.createNamedImports(x):e.updateNamedImports(s[0].importClause.namedBindings,x);return l.push(c(D,y,k)),l}function s(t){function r(e){for(var t,r=[],n=0,i=e;n1&&i.push(o(c,u,"comment"))}var s=e.getLeadingCommentRangesOfNode(t,r);if(s){for(var c=-1,u=-1,l=0,_=0,d=s;_1}}function n(t,r,n,i){var a=o(r,e.lastOrUndefined(n),i);if(a&&(t=t||[],!(n.length-1>t.length))){for(var c,u=n.length-2,l=t.length-1;u>=0;u-=1,l-=1)c=s(c,o(t[l],n[u],i));return c}}function i(e,t){var r=t.get(e);return r||t.set(e,r=D(e)),r}function a(r,n,a){var o=m(r,n.textLowerCase);if(0===o)return t(n.text.length===r.length?P.exact:P.prefix,e.startsWith(r,n.text));if(n.isLowerCase){if(o===-1)return;for(var s=i(r,a),c=0,l=s;c0)return t(P.substring,!0);if(n.characterSpans.length>0){var f=i(r,a),g=!!_(r,f,n,!1)||!_(r,f,n,!0)&&void 0;if(void 0!==g)return t(P.camelCase,g)}}}function o(e,t,r){if(A(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var n=a(e,t.totalTextChunk,r);if(n)return n}for(var i,o=t.subWordTextChunks,c=0,u=o;c=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function f(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function m(e,t){for(var r=e.length-t.length,n=function(r){if(A(t,function(t,n){return g(e.charCodeAt(n+r))===t}))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1}function g(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function y(e){return e>=48&&e<=57}function v(e){return p(e)||f(e)||y(e)||95===e||36===e}function h(e){for(var t=[],r=0,n=0,i=0;i0&&(t.push(b(e.substr(r,n))),n=0)}return n>0&&t.push(b(e.substr(r,n))),t}function b(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:x(e)}}function x(e){return k(e,!1)}function D(e){return k(e,!0)}function k(t,r){for(var n=[],i=0,a=1;a0){if(c.some(o))return a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(t)&&79===t.originalKeywordKind&&1536&s.parent.flags)return;if(e.isStringLiteralLike(t)&&e.tryGetImportFromModuleSpecifier(t))return;var u=e.SymbolDisplay.getSymbolKind(r,s,t),l=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteral(t)&&146===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0,_=l||r.symbolToString(s),d=l||r.getFullyQualifiedName(s);return i(_,d,u,e.SymbolDisplay.getSymbolModifiers(s),t,n)}}else if(e.isStringLiteral(t))return o(t)?a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):i(t.text,t.text,"var","",t,n)}function i(e,t,r,n,i,a){return{canRename:!0,kind:r,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:n,triggerSpan:o(i,a)}}function a(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function o(t,r){var n=t.getStart(r),i=t.getWidth(r);return 9===t.kind&&(n+=1,i-=2),e.createTextSpan(n,i)}function s(t){switch(t.kind){case 71:case 9:case 99:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}t.getRenameInfo=r}(t=e.Rename||(e.Rename={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,i,a){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(r,i);if(s){var c=_(s,i,r);if(c){a.throwIfCancellationRequested();var u=c.invocation,l=[],d=o.getResolvedSignature(u,l,c.argumentCount);if(a.throwIfCancellationRequested(),l.length)return o.runWithCancellationToken(a,function(e){return p(l,d,c,e)});if(e.isSourceFileJavaScript(r))return n(c,t,a)}}}function n(t,r,n){if(186===t.invocation.kind){var i=t.invocation,a=i.expression,o=e.isIdentifier(a)?a:e.isPropertyAccessExpression(a)?a.name:void 0;if(o&&o.escapedText)for(var s=r.getTypeChecker(),c=0,u=r.getSourceFiles();c0&&26===e.lastOrUndefined(r).kind&&n++,n}function s(t,r,n){return e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(r.kind)?e.isInsideTemplateLiteral(r,n)?0:t+2:t+1}function c(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{kind:2,invocation:t,argumentsSpan:l(t,n),argumentIndex:r,argumentCount:i}}function u(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}function l(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();if(201===n.kind){var o=e.lastOrUndefined(n.templateSpans);0===o.literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1))}return e.createTextSpan(i,a-i)}function _(t,r,n){for(var a=t;273!==a.kind;a=a.parent){if(e.isFunctionBlock(a))return;(a.posa.parent.end)&&e.Debug.fail("Node of kind "+a.kind+" is not a subspan of its parent of kind "+a.parent.kind);var o=i(a,r,n);if(o)return o}}function d(t,r,n){var i=t.getChildren(n),a=i.indexOf(r);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function p(t,r,n,i){function a(t){var r=e.mapToDisplayParts(function(r){var n=i.symbolToParameterDeclaration(t,u,m);g.writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(u)),r)});return{name:t.name,documentation:t.getDocumentationComment(i),displayParts:r,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function o(t){var r=e.mapToDisplayParts(function(r){var n=i.typeParameterToDeclaration(t,u);g.writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(u)),r)});return{name:t.symbol.name,documentation:e.emptyArray,displayParts:r,isOptional:!1}}var s=n.argumentCount,c=n.argumentsSpan,u=n.invocation,l=n.argumentIndex,_=0===n.kind,d=e.getInvokedExpression(u),p=i.getSymbolAtLocation(d),f=p&&e.symbolToDisplayParts(i,p,void 0,void 0),g=e.createPrinter({removeComments:!0}),y=e.map(t,function(t){var r,n=[],s=[];f&&e.addRange(n,f);var c;if(_){c=!1,n.push(e.punctuationPart(27));var l=(t.target||t).typeParameters;r=l&&l.length>0?e.map(l,o):e.emptyArray,s.push(e.punctuationPart(29));var d=e.mapToDisplayParts(function(r){var n=t.thisParameter?[i.symbolToParameterDeclaration(t.thisParameter,u,m)]:[],a=e.createNodeArray(n.concat(e.map(t.parameters,function(e){return i.symbolToParameterDeclaration(e,u,m)})));g.writeList(1296,a,e.getSourceFileOfNode(e.getParseTreeNode(u)),r)});e.addRange(s,d)}else{c=t.hasRestParameter;var p=e.mapToDisplayParts(function(r){if(t.typeParameters&&t.typeParameters.length){var n=e.createNodeArray(e.map(t.typeParameters,function(e){return i.typeParameterToDeclaration(e,u)}));g.writeList(26896,n,e.getSourceFileOfNode(e.getParseTreeNode(u)),r)}});e.addRange(n,p),n.push(e.punctuationPart(19)),r=e.map(t.parameters,a),s.push(e.punctuationPart(20))}var y=e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var r=i.getTypePredicateOfSignature(t);r?i.writeTypePredicate(r,u,void 0,e):i.writeType(i.getReturnTypeOfSignature(t),u,void 0,e)});return e.addRange(s,y),{isVariadic:c,prefixDisplayParts:n,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:r,documentation:t.getDocumentationComment(i),tags:t.getJsDocTags()}});0!==l&&e.Debug.assertLessThan(l,s);var v=t.indexOf(r);return e.Debug.assert(v!==-1),{items:y,applicableSpan:c,selectedItemIndex:v,argumentIndex:l,argumentCount:s}}var f;!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments"}(f=t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=r,t.getImmediatelyContainingArgumentInfo=i,t.getContainingArgumentInfo=_;var m=3121152}(t=e.SignatureHelp||(e.SignatureHelp={}))}(ts||(ts={}));var ts;!function(e){function t(t,n){function o(t){switch(t.kind){case 233:case 191:if(u){var r=t.symbol;r.members&&r.members.size>0&&c.push(e.createDiagnosticForNode(e.isVariableDeclaration(t.parent)?t.parent.name:t,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}}!u&&e.codefix.parameterShouldGetTypeFromJSDoc(t)&&c.push(e.createDiagnosticForNode(t.name||t,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types)),t.forEachChild(o)}n.getSemanticDiagnostics(t); var s=n.getDiagnosticsProducingTypeChecker(),c=[];t.commonJsModuleIndicator&&(e.programContainsEs6Modules(n)||e.compilerOptionsIndicateEs6Modules(n.getCompilerOptions()))&&r(t)&&c.push(e.createDiagnosticForNode(a(t.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var u=e.isSourceFileJavaScript(t);if(o(t),!u)for(var l=0,_=t.statements;l<_.length;l++){var d=_[l];if(e.isVariableStatement(d)&&2&d.declarationList.flags&&1===d.declarationList.declarations.length){var p=d.declarationList.declarations[0].initializer;p&&e.isRequireCall(p,!0)&&c.push(e.createDiagnosticForNode(p,e.Diagnostics.require_call_may_be_converted_to_an_import))}}if(e.getAllowSyntheticDefaultImports(n.getCompilerOptions()))for(var f=0,m=t.imports;f0?e.getNodeModifiers(t.declarations[0]):"",n=t&&16777216&t.flags?"optional":"";return r&&n?r+","+n:r||n}function a(t,i,o,s,c,u,l){function _(){return S||(S=e.createPrinter({removeComments:!0})),S}function d(){E.length&&E.push(e.lineBreakPart()),p()}function p(){l&&(y("alias"),E.push(e.spacePart()))}function f(){E.push(e.spacePart()),E.push(e.keywordPart(92)),E.push(e.spacePart())}function m(r,n){l&&r===i&&(r=l);var a=e.symbolToDisplayParts(t,r,n||o,void 0,7);e.addRange(E,a),16777216&i.flags&&E.push(e.punctuationPart(55))}function g(t,r){d(),r&&(y(r),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(E.push(e.spacePart()),m(t)))}function y(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void E.push(e.textOrKeywordPart(t));default:return E.push(e.punctuationPart(19)),E.push(e.textOrKeywordPart(t)),void E.push(e.punctuationPart(20))}}function v(r,n,i){e.addRange(E,e.signatureToDisplayParts(t,r,s,32|i)),n.length>1&&(E.push(e.spacePart()),E.push(e.punctuationPart(19)),E.push(e.operatorPart(37)),E.push(e.displayPart((n.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),E.push(e.spacePart()),E.push(e.textPart(2===n.length?"overload":"overloads")),E.push(e.punctuationPart(20))),b=r.getDocumentationComment(t),x=r.getJsDocTags()}function h(r,n){var i=e.mapToDisplayParts(function(i){var a=t.symbolToTypeParameterDeclarations(r,n);_().writeList(26896,a,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)});e.addRange(E,i)}void 0===u&&(u=e.getMeaningFromLocation(c));var b,x,D,k,S,C,T,E=[],N=e.getCombinedLocalAndExportSymbolFlags(i),A=n(t,i,c),P=99===c.kind&&e.isExpression(c);if(""!==A||32&N||2097152&N){"getter"!==A&&"setter"!==A||(A="property");var F=void 0;if(k=P?t.getTypeAtLocation(c):t.getTypeOfSymbolAtLocation(i.exportSymbol||i,c),c.parent&&184===c.parent.kind){var w=c.parent.name;(w===c||w&&0===w.getFullWidth())&&(c=c.parent)}var I=void 0;if(e.isCallOrNewExpression(c)?I=c:e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)?I=c.parent:c.parent&&e.isJsxOpeningLikeElement(c.parent)&&e.isFunctionLike(i.valueDeclaration)&&(I=c.parent),I){var O=[];F=t.getResolvedSignature(I,O);var M=187===I.kind||e.isCallExpression(I)&&97===I.expression.kind,L=M?k.getConstructSignatures():k.getCallSignatures();if(e.contains(L,F.target)||e.contains(L,F)||(F=L.length?L[0]:void 0),F){switch(M&&32&N?(A="constructor",g(k.symbol,A)):2097152&N?(A="alias",y(A),E.push(e.spacePart()),M&&(E.push(e.keywordPart(94)),E.push(e.spacePart())),m(i)):g(i,A),A){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":E.push(e.punctuationPart(56)),E.push(e.spacePart()),16&e.getObjectFlags(k)||!k.symbol||(e.addRange(E,e.symbolToDisplayParts(t,k.symbol,s,void 0,5)),E.push(e.lineBreakPart())),M&&(E.push(e.keywordPart(94)),E.push(e.spacePart())),v(F,L,262144);break;default:v(F,L)}D=!0}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&N)||123===c.kind&&154===c.parent.kind){var R=c.parent,B=e.find(i.declarations,function(e){return e===(123===c.kind?R.parent:R)});if(B){var L=154===R.kind?k.getNonNullableType().getConstructSignatures():k.getNonNullableType().getCallSignatures();F=t.isImplementationOfOverload(R)?L[0]:t.getSignatureFromDeclaration(R),154===R.kind?(A="constructor",g(k.symbol,A)):g(157!==R.kind||2048&k.symbol.flags||4096&k.symbol.flags?i:k.symbol,A),v(F,L),D=!0}}}if(32&N&&!D&&!P&&(p(),e.getDeclarationOfKind(i,204)?y("local class"):E.push(e.keywordPart(75)),E.push(e.spacePart()),m(i),h(i,o)),64&N&&2&u&&(d(),E.push(e.keywordPart(109)),E.push(e.spacePart()),m(i),h(i,o)),524288&N&&(d(),E.push(e.keywordPart(139)),E.push(e.spacePart()),m(i),h(i,o),E.push(e.spacePart()),E.push(e.operatorPart(58)),E.push(e.spacePart()),e.addRange(E,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(i),s,8388608))),384&N&&(d(),e.forEach(i.declarations,e.isConstEnumDeclaration)&&(E.push(e.keywordPart(76)),E.push(e.spacePart())),E.push(e.keywordPart(83)),E.push(e.spacePart()),m(i)),1536&N){d();var J=e.getDeclarationOfKind(i,238),z=J&&J.name&&71===J.name.kind;E.push(e.keywordPart(z?130:129)),E.push(e.spacePart()),m(i)}if(262144&N&&2&u)if(d(),E.push(e.punctuationPart(19)),E.push(e.textPart("type parameter")),E.push(e.punctuationPart(20)),E.push(e.spacePart()),m(i),i.parent)f(),m(i.parent,s),h(i.parent,s);else{var j=e.getDeclarationOfKind(i,147);e.Debug.assert(void 0!==j);var J=j.parent;if(J)if(e.isFunctionLikeKind(J.kind)){f();var F=t.getSignatureFromDeclaration(J);158===J.kind?(E.push(e.keywordPart(94)),E.push(e.spacePart())):157!==J.kind&&J.name&&m(J.symbol),e.addRange(E,e.signatureToDisplayParts(t,F,o,32))}else 236===J.kind&&(f(),E.push(e.keywordPart(139)),E.push(e.spacePart()),m(J.symbol),h(J.symbol,o))}if(8&N){A="enum member",g(i,"enum member");var J=i.declarations[0];if(272===J.kind){var K=t.getConstantValue(J);void 0!==K&&(E.push(e.spacePart()),E.push(e.operatorPart(58)),E.push(e.spacePart()),E.push(e.displayPart(e.getTextOfConstantValue(K),"number"==typeof K?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(2097152&N){if(d(),!D){var q=t.getAliasedSymbol(i);if(q!==i&&q.declarations&&q.declarations.length>0){var U=q.declarations[0],V=e.getNameOfDeclaration(U);if(V){var W=e.isModuleWithStringLiteralName(U)&&e.hasModifier(U,2),H="default"!==i.name&&!W,G=a(t,q,e.getSourceFileOfNode(U),U,V,u,H?i:q);E.push.apply(E,G.displayParts),E.push(e.lineBreakPart()),C=G.documentation,T=G.tags}}}switch(i.declarations[0].kind){case 241:E.push(e.keywordPart(84)),E.push(e.spacePart()),E.push(e.keywordPart(130));break;case 248:E.push(e.keywordPart(84)),E.push(e.spacePart()),E.push(e.keywordPart(i.declarations[0].isExportEquals?58:79));break;case 251:E.push(e.keywordPart(84));break;default:E.push(e.keywordPart(91))}E.push(e.spacePart()),m(i),e.forEach(i.declarations,function(r){if(242===r.kind){var n=r;if(e.isExternalModuleImportEqualsDeclaration(n))E.push(e.spacePart()),E.push(e.operatorPart(58)),E.push(e.spacePart()),E.push(e.keywordPart(133)),E.push(e.punctuationPart(19)),E.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(n)),e.SymbolDisplayPartKind.stringLiteral)),E.push(e.punctuationPart(20));else{var i=t.getSymbolAtLocation(n.moduleReference);i&&(E.push(e.spacePart()),E.push(e.operatorPart(58)),E.push(e.spacePart()),m(i,s))}return!0}})}if(!D)if(""!==A){if(k)if(P?(d(),E.push(e.keywordPart(99))):g(i,A),"property"===A||"JSX attribute"===A||3&N||"local var"===A||P)if(E.push(e.punctuationPart(56)),E.push(e.spacePart()),k.symbol&&262144&k.symbol.flags){var X=e.mapToDisplayParts(function(r){var n=t.typeParameterToDeclaration(k,s);_().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(s)),r)});e.addRange(E,X)}else e.addRange(E,e.typeToDisplayParts(t,k,s));else if(16&N||8192&N||16384&N||131072&N||98304&N||"method"===A){var L=k.getNonNullableType().getCallSignatures();L.length&&v(L[0],L)}}else A=r(t,i,c);if(!b&&(b=i.getDocumentationComment(t),x=i.getJsDocTags(),0===b.length&&4&N&&i.parent&&e.forEach(i.parent.declarations,function(e){return 273===e.kind})))for(var Q=0,Y=i.declarations;Q0))break}}return 0===b.length&&C&&(b=C),0===x.length&&T&&(x=T),{displayParts:E,documentation:b,symbolKind:A,tags:x}}function o(t){return!t.parent&&e.forEach(t.declarations,function(t){if(191===t.kind)return!0;if(231!==t.kind&&233!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(273===r.kind||239===r.kind)return!1;return!0})}t.getSymbolKind=r,t.getSymbolModifiers=i,t.getSymbolDisplayPartsDocumentationAndSymbolKind=a}(t=e.SymbolDisplay||(e.SymbolDisplay={}))}(ts||(ts={}));var ts;!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,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=r):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=r)},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 r(r,n,i,a,o){var s=t(r,{compilerOptions:n,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText}function n(t,r){i=i||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var n=function(n){if(!e.hasProperty(t,n.name))return"continue";var i=t[n.name];e.isString(i)?t[n.name]=e.parseCustomTypeOption(n,i,r):e.forEachEntry(n.type,function(e){return e===i})||r.push(e.createCompilerDiagnosticForInvalidCustomType(n))},a=0,o=i;a>=d;return r}function u(t,r){var n=(t>>r&p)+1;return e.Debug.assert((n&p)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~(p<=i.length)return!1;var r=i[a];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;a++}}}function p(t,r,n){var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos}function f(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(a!==-1&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}function m(e,r,n,i,a,o){var s={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,s.pos,s.end,function(t){return v(s,e,i,a,t,o,1,function(e){return!1},r)})}function g(t,r,n,i){if(!t)return[];var a={pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end};return y(a,r,n,i)}function y(e,r,n,i){var a=_(e,r);return t.getFormattingScanner(r.text,r.languageVariant,p(a,e,r),e.end,function(o){return v(e,a,t.SmartIndenter.getIndentationForNode(a,e,r,n.options),f(a,n.options,r),o,n,i,d(r.parseDiagnostics,e),r)})}function v(r,n,i,a,o,s,c,u,l){function _(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(o!==-1)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,R);if(s!==i||r===u){var _=t.SmartIndenter.getBaseIndentation(R);return _>u?_:u}}return-1}function d(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(R,e)?R.indentSize:0;return o===r?{indentation:r===M?L:a.getIndentation(),delta:Math.min(R.indentSize,a.getDelta(e)+s)}:n===-1?19===e.kind&&r===M?{indentation:L,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}function p(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 234:return 75;case 235:return 109;case 233:return 89;case 237:return 237;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 f(e,r,n,i){function a(t,n,i){switch(n){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return!1;case 41:case 29:switch(i.kind){case 256:case 257:case 255:return!1}break;case 21:case 22:if(176!==i.kind)return!1}return r!==t&&!(e.decorators&&n===p(e))}function o(r){return t.SmartIndenter.nodeWillIndentChild(R,e,r,l,!0)?i:0}return{getIndentationForComment:function(e,t,r){switch(e){case 18:case 22:case 20:return n+o(r)}return t!==-1?t:n},getIndentationForToken:function(e,t,r){return a(e,t,r)?n+o(r):n},getIndentation:function(){return n},getDelta:o,recomputeIndentation:function(r){e.parent&&t.SmartIndenter.shouldIndentChildNode(R,e.parent,e,l)&&(n+=r?R.indentSize:-R.indentSize,i=t.SmartIndenter.shouldIndentChildNode(R,e)?R.indentSize:0)}}}function m(t,n,i,a,s,c){function p(n,i,a,s,c,u,p,f){var g=n.getStart(l),y=l.getLineAndCharacterOfPosition(g).line,v=y;n.decorators&&(v=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line);var h=-1;if(p&&e.rangeContainsRange(r,a)&&(h=_(g,n.end,c,r,i),h!==-1&&(i=h)),!e.rangeOverlapsWithStartEnd(r,n.pos,n.end))return n.endg)break;D(b,t,s,t)}if(!o.isOnToken())return i;if(e.isToken(n)&&10!==n.kind){var b=o.readTokenInfo(n);return e.Debug.assert(b.token.end===n.end,"Token end is child end"),D(b,t,s,n),i}var x=149===n.kind?y:u,k=d(n,y,h,t,s,x);if(m(n,S,y,v,k.indentation,k.delta),10===n.kind){var T={pos:n.getStart(),end:n.getEnd()};C(T,k.indentation,!0,!1)}return S=t,f&&182===a.kind&&i===-1&&(i=k.indentation),i}function v(r,n,i,a){e.Debug.assert(e.isNodeArray(r));var s=b(n,r),c=x(s),u=a,_=i;if(0!==s)for(;o.isOnToken();){var m=o.readTokenInfo(n);if(m.token.end>r.pos)break;if(m.token.kind===s){_=l.getLineAndCharacterOfPosition(m.token.pos).line;var g=d(m.token,_,-1,n,a,i);u=f(n,i,g.indentation,g.delta),D(m,n,u,n)}else D(m,n,a,n)}for(var y=-1,v=0;vt.end)break;D(T,t,k,t)}}}function g(t,n,i,a){for(var o=0,s=t;o0){var k=D(x,R);P(v,b.character,k)}else A(v,b.character)}}}function T(t,r,n){for(var i=t;io)){var s=E(a,o);s!==-1&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),A(s,o+1-s))}}}function E(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function N(){var e=w?w.end:r.pos,t=l.getLineAndCharacterOfPosition(e).line,n=l.getLineAndCharacterOfPosition(r.end).line;T(t,n+1,w)}function A(t,r){r&&z.push(e.createTextChangeFromStartLength(t,r,""))}function P(t,r,n){(r||n)&&z.push(e.createTextChangeFromStartLength(t,r,n))}function F(e,t,r,n,i){var a=i!==r;switch(e.action){case 1:return 0;case 8:if(t.end!==n.pos)return A(t.end,n.pos-t.end),a?2:0;break;case 4:if(1!==e.flags&&r!==i)return 0;var o=i-r;if(1!==o)return P(t.end,n.pos-t.end,R.newLineCharacter),a?0:1;break;case 2:if(1!==e.flags&&r!==i)return 0;var s=n.pos-t.end;if(1!==s||32!==l.text.charCodeAt(t.end))return P(t.end,n.pos-t.end," "),a?2:0}return 0}var w,I,O,M,L,R=s.options,B=s.getRule,J=new t.FormattingContext(l,c,R),z=[];if(o.advance(),o.isOnToken()){var j=l.getLineAndCharacterOfPosition(n.getStart(l)).line,K=j;n.decorators&&(K=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),m(n,n,j,K,i,a)}if(!o.isOnToken()){var q=o.getCurrentLeadingTrivia();q&&(g(q,n,n,void 0),N())}return z}function h(t,r,n,i,a,o){void 0===a&&(a=e.getTokenAtPosition(t,r,!1));var s=a.getStart(t);if(!(s<=r&&rn.text.length)return c(s);if(s.indentStyle===e.IndentStyle.None)return 0;var l=e.findPrecedingToken(r,n),d=t.getRangeOfEnclosingComment(n,r,!0,l||null);if(d)return i(n,r,s,d);if(!l)return c(s);var p=e.isStringOrRegularExpressionOrTemplateLiteral(l.kind);if(p&&l.getStart(n)<=r&&r=0),a<=o)return S(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=k(s,r,t,n),u=c.column,l=c.character;if(0===u)return u;var _=t.text.charCodeAt(s+l);return 42===_?u-1:u}function a(t,r,n){for(var i=r;i>0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}var o=e.getLineStartPositionForPosition(i,t);return S(o,i,t,n)}function o(t,r,n,i,a,o){for(var s,l=n;l;){if(e.positionBelongsToNode(l,r,t)&&E(o,l,s,t,!0)){var _=f(l,t),d=p(n,l,i,t),m=0!==d?a&&2===d?o.indentSize:0:i!==_.line?o.indentSize:0;return u(l,_,void 0,m,t,!0,o)}var g=h(l,t,o);if(g!==-1)return g;if(g=b(l,t,o),g!==-1)return g+o.indentSize;s=l,l=l.parent}return c(o)}function s(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return u(e,i,t,0,r,!1,n)}function c(e){return e.baseIndentSize||0}function u(e,t,r,n,i,a,o){for(var s=e.parent;s;){var u=!0;if(r){var _=e.getStart(i);u=_r.end}if(u){var p=h(e,i,o);if(p!==-1)return p+n}var f=l(s,e,i),y=f.line===t.line||g(s,e,t.line,i);if(u){var p=d(e,s,t,y,i,o);if(p!==-1)return p+n;if(p=b(e,i,o),p!==-1)return p+n}E(o,s,e,i,a)&&!y&&(n+=o.indentSize);var v=m(s,e,t.line,i);e=s,s=e.parent,t=v?i.getLineAndCharacterOfPosition(e.getStart(i)):f}return n+c(o)}function l(e,t,r){var n=v(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function _(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?x(i.list.getChildren(),i.listItemIndex-1,r,n):-1}function d(t,r,n,i,a,o){var s=(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(273===r.kind||!i);return s?D(n,a,o):-1}function p(t,r,n,i){var a=e.findNextToken(t,r,i);if(!a)return 0;if(17===a.kind)return 1;if(18===a.kind){var o=f(a,i).line;return n===o?2:0}return 0}function f(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function m(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd(),o=e.getLineAndCharacterOfPosition(i,a).line;return o===n}function g(t,r,n,i){if(216===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,82,i);e.Debug.assert(void 0!==a);var o=f(a,i).line;return o===n}return!1}function y(t,r,n){return t&&e.rangeContainsStartEnd(t,r,n)?t:void 0}function v(e,t){if(e.parent){var r=e.end;switch(e.parent.kind){case 161:return y(e.parent.typeArguments,e.getStart(t),r);case 183:return e.parent.properties;case 182:return e.parent.elements;case 233:case 191:case 192:case 153:case 152:case 157:case 154:case 163:case 158:var n=e.getStart(t);return y(e.parent.typeParameters,n,r)||y(e.parent.parameters,n,r);case 234:return y(e.parent.typeParameters,e.getStart(t),r);case 187:case 186:var n=e.getStart(t);return y(e.parent.typeArguments,n,r)||y(e.parent.arguments,n,r);case 232:return y(e.parent.declarations,e.getStart(t),r);case 246:case 250:return y(e.parent.elements,e.getStart(t),r);case 179:case 180:return y(e.parent.elements,e.getStart(t),r)}}}function h(e,t,r){var n=v(e,t);if(n){var i=n.indexOf(e);if(i!==-1)return x(n,i,t,r)}return-1}function b(t,r,n){function i(e){for(;;)switch(e.kind){case 186:case 187:case 184:case 185:e=e.expression;break;default:return e}}if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var a=t.parent.expression,o=i(a);if(a===o)return-1;var s=r.getLineAndCharacterOfPosition(a.end),c=r.getLineAndCharacterOfPosition(o.end);return s.line===c.line?-1:D(s,r,n)}return-1}function x(t,r,n,i){e.Debug.assert(r>=0&&r=0;s--)if(26!==t[s].kind){var c=n.getLineAndCharacterOfPosition(t[s].end).line;if(c!==o.line)return D(o,n,i);o=f(t[s],n)}return-1}function D(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return S(n,n+e.character,t,r)}function k(t,r,n,i){for(var a=0,o=0,s=t;s0?1:0,_=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,c)+l,t);return _=o(t.text,_),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,_),t)}function l(t,r,n){var i=r.end;if(n.useNonAdjustedEndPosition||e.isExpression(r))return i;var a=e.skipTrivia(t.text,i,!0);return a!==i&&e.isLineBreak(t.text.charCodeAt(a-1))?a:i}function _(e,t){return t&&e.parent&&(26===t.kind||25===t.kind&&183===e.parent.kind)}function d(e){for(var t="",r=0;r=0;n--){var i=r[n];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span))}return t}function g(t){return e.skipTrivia(t,0)===t.length}function y(t){var n=e.visitEachChild(t,y,e.nullTransformationContext,v,y),a=e.nodeIsSynthesized(n)?n:Object.create(n);return a.pos=r(t),a.end=i(t),a}function v(t,n,a,o,s){var c=e.visitNodes(t,n,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=r(t),u.end=i(t),u}function h(t){function r(){if(a"})},r.prototype.getOptionsForInsertNodeBefore=function(t,r){return e.isStatement(t)||e.isClassElement(t)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?{}:e.Debug.failBadSyntaxKind(t)},r.prototype.insertNodeAtConstructorStart=function(t,r,n){var i=e.firstOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeBefore(t,i,n):this.replaceConstructorBody(t,r,[n].concat(r.body.statements))},r.prototype.insertNodeAtConstructorEnd=function(t,r,n){var i=e.lastOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,r.body.statements.concat([n]))},r.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.createBlock(n,!0))},r.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=u(t,r.getLastToken(),{},D.Start);this.replaceRange(t,{pos:i,end:i},n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},r.prototype.insertNodeAtClassStart=function(t,r,n){var i=r.getStart(t),a=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(i,t),i,t,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(t,r.members.pos,n,__assign({indentation:a},this.getInsertNodeAtClassStartPrefixSuffix(t,r)))},r.prototype.getInsertNodeAtClassStartPrefixSuffix=function(t,r){if(0===r.members.length){if(e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),r)){var n=e.positionsAreOnSameLine.apply(void 0,f(r,t).concat([t]));return{prefix:this.newLineCharacter,suffix:n?this.newLineCharacter:""}}return{prefix:"",suffix:this.newLineCharacter}}return{prefix:this.newLineCharacter,suffix:""}},r.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},r.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},r.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},r.prototype.insertNodeAfterWorker=function(t,r,n){x(r,n)&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createTextRange(r.end),e.createToken(25));var i=l(t,r,{});return i},r.prototype.getInsertNodeAfterOptions=function(t,r){var n=this.getInsertNodeAfterOptionsWorker(r);return __assign({},n,{prefix:r.end===t.end&&e.isStatement(r)?n.prefix?"\n"+n.prefix:"\n":n.prefix})},r.prototype.getInsertNodeAfterOptionsWorker=function(t){return e.isClassDeclaration(t)||e.isModuleDeclaration(t)?{prefix:this.newLineCharacter,suffix:this.newLineCharacter}:e.isStatement(t)||e.isClassOrTypeElement(t)?{suffix:this.newLineCharacter}:e.isVariableDeclaration(t)?{prefix:", "}:e.isPropertyAssignment(t)?{suffix:","+this.newLineCharacter}:e.isParameter(t)?{}:e.Debug.failBadSyntaxKind(t); },r.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),192===r.kind){var i=e.findChildOfKind(r,36,t),a=e.findChildOfKind(r,19,t);a?(this.insertNodesAt(t,a.getStart(t),[e.createToken(89),e.createIdentifier(n)],{joiner:" "}),this.deleteNode(t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function "+n+"("),this.replaceRange(t,i,e.createToken(20))),212!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.createToken(17),e.createToken(96)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.createToken(25),e.createToken(18)],{joiner:" "}))}else{var o=e.findChildOfKind(r,191===r.kind?89:75,t).end;this.insertNodeAt(t,o,e.createIdentifier(n),{prefix:" "})}},r.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},r.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),!i)return e.Debug.fail("node is not a list element"),this;var a=e.indexOfNode(i,r);if(a<0)return this;var c=r.getEnd();if(a!==i.length-1){var u=e.getTokenAtPosition(t,r.end,!1);if(u&&_(r,u)){var l=e.getLineAndCharacterOfPosition(t,o(t.text,i[a+1].getFullStart())),p=e.getLineAndCharacterOfPosition(t,u.end),f=void 0,m=void 0;p.line===l.line?(m=u.end,f=d(l.character-p.character)):m=e.getStartPositionOfLine(l.line,t);var g=""+e.tokenToString(u.kind)+t.text.substring(u.end,i[a+1].getStart(t));this.replaceRange(t,e.createTextRange(m,i[a+1].getStart(t)),n,{prefix:f,suffix:g})}}else{var y=r.getStart(t),v=e.getLineStartPositionForPosition(y,t),h=void 0,b=!1;if(1===i.length)h=26;else{var x=e.findPrecedingToken(r.pos,t);h=_(r,x)?x.kind:26;var D=e.getLineStartPositionForPosition(i[a-1].getStart(t),t);b=D!==v}if(s(t.text,r.end)&&(b=!0),b){this.replaceRange(t,e.createTextRange(c),e.createToken(h));var k=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(v,y,t,this.formatContext.options),S=e.skipTrivia(t.text,c,!0,!1);S!==c&&e.isLineBreak(t.text.charCodeAt(S-1))&&S--,this.replaceRange(t,e.createTextRange(S),n,{indentation:k,prefix:this.newLineCharacter})}else this.replaceRange(t,e.createTextRange(c),n,{prefix:e.tokenToString(h)+" "})}return this},r.prototype.finishClassesWithNodesInsertedAtStart=function(){var t=this;this.classesWithNodesInsertedAtStart.forEach(function(r){var n=r.getSourceFile(),i=f(r,n),a=i[0],o=i[1];e.positionsAreOnSameLine(a,o,n)&&a!==o-1&&t.deleteRange(n,e.createTextRange(a,o-1))})},r.prototype.finishTrailingCommaAfterDeletingNodesInList=function(){var t=this;this.deletedNodesInLists.forEach(function(r){var n=r.getSourceFile(),i=e.formatting.SmartIndenter.getContainingList(r,n);if(r===e.last(i)){var a=e.findLastIndex(i,function(e){return!t.deletedNodesInLists.has(e)},i.length-2);a!==-1&&t.deleteRange(n,{pos:i[a].end,end:p(n,i[a+1])})}})},r.prototype.getChanges=function(e){this.finishClassesWithNodesInsertedAtStart(),this.finishTrailingCommaAfterDeletingNodesInList();for(var t=C.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),r=0,n=this.newFiles;r1?[[f(n),m(n)],!0]:[[m(n)],!0]:[[f(n)],!1]}function f(e){return N(void 0,e)}function m(t){return N([e.createExportSpecifier(void 0,"default")],t)}function g(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,23,r),[e.createToken(84),e.createToken(76)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.createToken(84),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,25,r);c&&n.deleteNode(r,c,{useNonAdjustedEndPosition:!0})}}function y(t,r){function n(){return E(i,e.createIdentifier(t),r)}var i=[e.createToken(84)];switch(r.kind){case 191:var a=r.name;if(a&&a.text!==t)return n();case 192:return k(t,i,r);case 204:return S(t,i,r);default:return n()}}function v(r,n,i,a,o,s,c,u){switch(n.kind){case 179:var l=e.mapAllOrFail(n.elements,function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:T(t.propertyName&&t.propertyName.text,t.name.text)});if(l)return[e.makeImport(void 0,l,i,u)];case 180:var _=b(t.moduleSpecifierToValidIdentifier(i.text,c),s);return[e.makeImport(e.createIdentifier(_),void 0,i,u),E(void 0,e.getSynthesizedDeepClone(n),e.createIdentifier(_))];case 71:return h(r,n,i,a,o,s,u);default:e.Debug.assertNever(n)}}function h(t,r,n,i,a,o,s){for(var c=a.getSymbolAtLocation(r),u=e.createMap(),l=!1,_=0,d=o.original.get(r.text);_h.length){var b=n.getSignatureFromDeclaration(_[_.length-1]);c(b,m,p,u(a))}else e.Debug.assert(_.length===h.length),o(s(h,p,y,m,a))}}}function i(t,r,n,i,a,o,s){var c=t.signatureToSignatureDeclaration(r,153,n,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 a(t,r,n,i,a){var s=t.typeArguments,c=t.arguments;return e.createMethod(void 0,i?[e.createToken(115)]:void 0,void 0,r,void 0,n?void 0:e.map(s,function(t,r){return e.createTypeParameterDeclaration(84+s.length-1<=90?String.fromCharCode(84+r):"T"+r)}),o(c.length,void 0,void 0,n),n?void 0:e.createKeywordTypeNode(119),u(a))}function o(t,r,n,i){for(var a=[],o=0;o=n?e.createToken(55):void 0,i?void 0:e.createKeywordTypeNode(119),void 0);a.push(s)}return a}function s(t,r,n,i,a){for(var s=t[0],u=t[0].minArgumentCount,l=!1,_=0,d=t;_=s.parameters.length&&(!p.hasRestParameter||s.hasRestParameter)&&(s=p); }var f=s.parameters.length-(s.hasRestParameter?1:0),m=s.parameters.map(function(e){return e.name}),g=o(f,m,u,!1);if(l){var y=e.createArrayTypeNode(e.createKeywordTypeNode(119)),v=e.createParameter(void 0,void 0,e.createToken(24),m[f]||"rest",f>=u?e.createToken(55):void 0,y,void 0);g.push(v)}return c(i,r,n,void 0,g,void 0,a)}function c(t,r,n,i,a,o,s){return e.createMethod(void 0,t,void 0,r,n?e.createToken(55):void 0,i,a,o,u(s))}function u(t){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.","single"===t.quotePreference)]))],!0)}function l(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.createMissingMemberNodes=r,t.createMethodFromCallExpression=a}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r){switch(t){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:return e.isSetAccessor(e.getContainingFunction(r))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:return e.Diagnostics.Infer_parameter_types_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function n(t,r,n,a,u,l,d){if(e.isParameterPropertyModifier(n.kind)||71===n.kind||24===n.kind){var p=n.parent;switch(a){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(p)&&d(p)||e.isPropertyDeclaration(p)||e.isPropertySignature(p))return i(t,r,p,u,l),p;return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var f=u.getTypeChecker().getSymbolAtLocation(n);if(f&&f.valueDeclaration&&e.isVariableDeclaration(f.valueDeclaration)&&d(f.valueDeclaration))return i(t,r,f.valueDeclaration,u,l),f.valueDeclaration;return}var m=e.getContainingFunction(n);if(void 0!==m)switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessor(m))return s(t,r,m,u,l),m;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(d(m)){var g=e.cast(p,e.isParameter);return o(t,g,m,r,u,l),g}return;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:if(e.isGetAccessor(m)&&e.isIdentifier(m.name))return c(t,r,m,_(m.name,u,l),u),m;return;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:if(e.isSetAccessor(m))return s(t,r,m,u,l),m;return;default:return e.Debug.fail(String(a))}}}function i(t,r,n,i,a){e.isIdentifier(n.name)&&c(t,r,n,_(n.name,i,a),i)}function a(e){switch(e.kind){case 233:case 153:case 154:return!0;case 191:return!!e.name}return!1}function o(t,r,n,i,o,s){if(e.isIdentifier(r.name)&&a(n)){var u=d(n,i,o,s)||n.parameters.map(function(t){return e.isIdentifier(t.name)?_(t.name,o,s):void 0});u&&n.parameters.length===u.length&&e.zipWith(n.parameters,u,function(e,r){e.type||e.initializer||c(t,i,e,r,o)})}}function s(t,r,n,i,a){var o=e.firstOrUndefined(n.parameters);if(o&&e.isIdentifier(n.name)&&e.isIdentifier(o.name)){var s=_(n.name,i,a)||_(o.name,i,a);c(t,r,o,s,i)}}function c(e,t,r,n,i){var a=n&&u(n,r,i.getTypeChecker());a&&e.tryInsertTypeAnnotation(t,r,a)}function u(e,t,r){var n=!0,i=function(){n=!1},a=r.typeToTypeNode(e,t,void 0,{trackSymbol:function(e,t,i){n=n&&0===r.isSymbolAccessible(e,t,i,!1).accessibility},reportInaccessibleThisError:i,reportPrivateInBaseOfClassExpression:i,reportInaccessibleUniqueSymbolError:i});return n?a:void 0}function l(t,r,n){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n),function(t){return"node"===t.type?e.tryCast(t.node,e.isIdentifier):void 0})}function _(e,t,r){return m.inferTypeFromReferences(l(e,t,r),t.getTypeChecker(),r)}function d(t,r,n,i){switch(t.kind){case 154:case 191:case 233:case 153:var a=154===t.kind,o=a?e.findChildOfKind(t,123,r):t.name;if(o)return m.inferTypeForParametersFromReferences(l(o,n,i),t,n.getTypeChecker(),i)}}var p="inferFromUsage",f=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code];t.registerCodeFix({errorCodes:f,getCodeActions:function(i){var a=i.sourceFile,o=i.program,s=i.span.start,c=i.errorCode,u=i.cancellationToken;if(!e.isSourceFileJavaScript(a)){var l,_=e.getTokenAtPosition(a,s,!1),d=e.textChanges.ChangeTracker["with"](i,function(t){l=n(t,a,_,c,o,u,e.returnTrue)});return 0===d.length?void 0:[t.createCodeFixAction(p,d,[r(c,_),e.getNameOfDeclaration(l).getText(a)],p,e.Diagnostics.Infer_all_types_from_usage)]}},fixIds:[p],getAllCodeActions:function(r){var i=r.sourceFile,a=r.program,o=r.cancellationToken,s=e.nodeSeenTracker();return t.codeFixAll(r,f,function(t,r){n(t,i,e.getTokenAtPosition(r.file,r.start,!1),r.code,a,o,s)})}});var m;!function(t){function r(e,t,r){for(var n={},a=0,o=e;at&&(n?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 n?i.createArrayType(u):u}}function f(t,r){for(var n=[],i=0;i=l.length+_.length&&e.startsWith(r,l)&&e.endsWith(r,_)){var d=r.substr(l.length,r.length-_.length);return i.replace("*",d)}}else if(c===r||c===t)return i}}function c(t,r,n,i){var a=d(r,t,i);if(void 0!==a){var o=d(n,t,i),s=void 0!==o?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,a,i)):a;return e.removeFileExtension(s)}}function u(t,r,n,i,a){var o=e.getEffectiveTypeRoots(t,r);return e.firstDefined(o,function(t){var r=e.toPath(t,void 0,n);if(e.startsWith(i,r))return p(i.substring(r.length+1),e.ModuleResolutionKind.NodeJs,a)})}function l(t,r,n,i,a){function o(t){var r=t.substring(0,c.packageRootIndex),a=e.combinePaths(r,"package.json");if(n.fileExists(a)){var o=JSON.parse(n.readFile(a));if(o){var s=o.typings||o.types||o.main;if(s){var u=e.toPath(s,r,i);if(u===i(t))return r}}}var l=e.removeFileExtension(t);return"/index"===i(l.substring(c.fileNameIndex))?l.substring(0,c.fileNameIndex):l}function s(t){var r=t.substring(0,c.topLevelNodeModulesIndex);return 0===a.indexOf(r)?t.substring(c.topLevelPackageNameIndex+1):e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(a,t,i))}if(e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs){var c=_(r);if(c){var u=o(r);return u=s(u),e.getPackageNameFromAtTypesDirectory(u)}}}function _(e){var t,r=0,n=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&&(r=o,n=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:r,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:a}:void 0}function d(t,r,n){return e.firstDefined(r,function(e){var r=f(t,e,n);return m(r)?void 0:r})}function p(t,r,n){var i=e.removeFileExtension(t);return n?i+".js":r===e.ModuleResolutionKind.NodeJs?e.removeSuffix(i,"/index"):i}function f(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function m(t){return e.startsWith(t,"..")}t.getModuleSpecifiers=r}(t=e.moduleSpecifiers||(e.moduleSpecifiers={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,i,a){var o=n(r,i),s=o.statement,c=o.name,u=o.required;t.replaceNode(r,s,e.getAllowSyntheticDefaultImports(a.getCompilerOptions())?e.createImportDeclaration(void 0,void 0,e.createImportClause(c,void 0),u):e.createImportEqualsDeclaration(void 0,void 0,c,e.createExternalModuleReference(u)))}function n(t,r){var n=e.getTokenAtPosition(t,r,!1).parent;if(!e.isRequireCall(n,!0))throw e.Debug.failBadSyntaxKind(n);var i=e.cast(n.parent,e.isVariableDeclaration);return{statement:e.cast(i.parent.parent,e.isVariableStatement),name:e.cast(i.name,e.isIdentifier),required:n.arguments[0]}}var i="requireInTs",a=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];t.registerCodeFix({errorCodes:a,getCodeActions:function(n){var a=e.textChanges.ChangeTracker["with"](n,function(e){return r(e,n.sourceFile,n.span.start,n.program)});return[t.createCodeFixAction(i,a,e.Diagnostics.Convert_require_to_import,i,e.Diagnostics.Convert_all_require_to_import)]},fixIds:[i],getAllCodeActions:function(e){return t.codeFixAll(e,a,function(t,n){return r(t,n.file,n.start,e.program)})}})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r){var n=e.getTokenAtPosition(t,r,!1);if(e.isIdentifier(n)){var i=n.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:n,moduleSpecifier:a.moduleSpecifier}}}}function n(t,r,n,i){t.replaceNode(r,n.importNode,e.makeImport(n.name,void 0,n.moduleSpecifier,i))}var i="useDefaultImport",a=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];t.registerCodeFix({errorCodes:a,getCodeActions:function(a){var o=a.sourceFile,s=a.span.start,c=r(o,s);if(c){var u=e.textChanges.ChangeTracker["with"](a,function(e){return n(e,o,c,a.preferences)});return[t.createCodeFixAction(i,u,e.Diagnostics.Convert_to_default_import,i,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[i],getAllCodeActions:function(e){return t.codeFixAll(e,a,function(t,i){var a=r(i.file,i.start);a&&n(t,i.file,a,e.preferences)})}})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r){var n=e.getTokenAtPosition(t,r,!1);return e.Debug.assert(91===n.kind),e.Debug.assert(178===n.parent.kind),n.parent}function n(t,r,n){var i=e.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}var i="fixAddModuleReferTypeMissingTypeof",a=i,o=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here.code];t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var o=i.sourceFile,s=i.span,c=r(o,s.start),u=e.textChanges.ChangeTracker["with"](i,function(e){return n(e,o,c)});return[t.createCodeFixAction(a,u,e.Diagnostics.Add_missing_typeof,a,e.Diagnostics.Add_missing_typeof)]},fixIds:[a],getAllCodeActions:function(e){return t.codeFixAll(e,o,function(t,i){return n(t,e.sourceFile,r(i.file,i.start))})}})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){var r;!function(r){function n(t){var r=a(t.file,e.getRefactorContextSpan(t)),n=r.targetRange;if(void 0!==n){var i=_(n,t);if(void 0!==i){for(var o=[],s=e.createMap(),c=[],u=e.createMap(),l=0,d=0,p=i;d=r.start+r.length)return(s||(s=[])).push(e.createDiagnosticForNode(t,J.cannotExtractSuper)),!0}else d|=z.UsesThis}if(!t||e.isFunctionLikeDeclaration(t)||e.isClassLike(t)){switch(t.kind){case 233:case 234:e.isSourceFile(t.parent)&&void 0===t.parent.externalModuleIndicator&&(s||(s=[])).push(e.createDiagnosticForNode(t,J.functionWillNotBeVisibleInTheNewScope))}return!1}var o=u;switch(t.kind){case 216:u=0;break;case 229:u=0;break;case 212:t.parent&&229===t.parent.kind&&t.parent.finallyBlock===t&&(u=4);break;case 265:u|=1;break;default:e.isIterationStatement(t,!1)&&(u|=3)}switch(t.kind){case 173:case 99:d|=z.UsesThis;break;case 227:var l=t.label;(c||(c=[])).push(l.escapedText),e.forEachChild(t,n),c.pop();break;case 223:case 222:var l=t.label;l?e.contains(c,l.escapedText)||(s||(s=[])).push(e.createDiagnosticForNode(t,J.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(223===t.kind?1:2)||(s||(s=[])).push(e.createDiagnosticForNode(t,J.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 196:d|=z.IsAsyncFunction;break;case 202:d|=z.IsGenerator;break;case 224:4&u?d|=z.HasReturn:(s||(s=[])).push(e.createDiagnosticForNode(t,J.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(t,n)}u=o}var i;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"}(i||(i={})),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)&&L(t)))return[e.createDiagnosticForNode(t,J.statementOrExpressionExpected)];if(4194304&t.flags)return[e.createDiagnosticForNode(t,J.cannotExtractAmbientBlock)];var o=e.getContainingClass(t);o&&a(t,o);var s,c,u=4;return n(t),s}var c=r.length;if(0===c)return{errors:[e.createFileDiagnostic(t,r.start,c,J.cannotExtractEmpty)]};var u=O(e.getTokenAtPosition(t,r.start,!1),t,r),l=O(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),t,r),_=[],d=z.None;if(!u||!l)return{errors:[e.createFileDiagnostic(t,r.start,c,J.cannotExtractRange)]};if(u.parent!==l.parent)return{errors:[e.createFileDiagnostic(t,r.start,c,J.cannotExtractRange)]};if(u!==l){if(!R(u.parent))return{errors:[e.createFileDiagnostic(t,r.start,c,J.cannotExtractRange)]};for(var p=[],f=0,m=u.parent.statements;f1)return t;n=t,t=t.parent}}function x(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;n0;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=P(r,n);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 C(t,r){function n(t){var i=r.get(e.getNodeId(t).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(t,n,e.nullTransformationContext)}return r.size?n(t):t}function T(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.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 E(t,r){return e.find(T(r),function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)})}function N(t,r){var n=r.members;e.Debug.assert(n.length>0);for(var i,a=!0,o=0,s=n;ot)return i||n[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 A(t,r){e.Debug.assert(!e.isClassLike(r));for(var n,i=t;i!==r;i=i.parent)s(i)&&(n=i);for(var i=(n||t).parent;;i=i.parent){if(R(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===r){e.Debug.fail("Didn't encounter a block-like before encountering scope");break}}}function P(t,r){var n=e.map(t,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)}),i=e.map(r,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)});return void 0===n?i:void 0===i?n:n.concat(i)}function F(t){return e.isArray(t)}function w(t,r){return F(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}function I(t,r,n,i,a,o){function s(t){return!!e.findAncestor(t,function(t){return e.isDeclarationWithTypeParameters(t)&&0!==e.getEffectiveTypeParameterDeclarations(t).length})}function c(e){for(var t=a.getSymbolWalker(function(){return o.throwIfCancellationRequested(),!0}),r=t.walkType(e).visitedTypes,n=0,i=r;n=s)return l;if(O.set(l,s),_){for(var d=0,m=v;d=0)){var n=e.isIdentifier(r)?p(r):a.getSymbolAtLocation(r);if(n){var i=e.find(D,function(e){return e.symbol===n});if(i)if(e.isVariableDeclaration(i)){var o=i.symbol.id.toString();k.has(o)||(S.push(i),k.set(o,!0))}else m=m||i}e.forEachChild(r,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,r,n){if(t){var i=t.getDeclarations();if(i&&i.some(function(e){return e.parent===r}))return e.createIdentifier(t.name);var a=f(t.parent,r,n);if(void 0!==a)return n?e.createQualifiedName(a,e.createIdentifier(t.name)):e.createPropertyAccess(a,t.name)}}var m,g,y=e.createMap(),v=[],h=[],b=[],x=[],D=[],k=e.createMap(),S=[],C=F(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===C){var T=t.range,E=e.first(T).getStart(),N=e.last(T).end;g=e.createFileDiagnostic(i,E,N-E,J.expressionExpected)}else 18432&a.getTypeAtLocation(C).flags&&(g=e.createDiagnosticForNode(C,J.uselessConstantType));for(var A=0,P=r;A0){for(var j=e.createMap(),K=0,q=L;void 0!==q&&K0&&(n.usages.size>0||n.typeParameterUsages.size>0)){var i=F(t.range)?t.range[0]:t.range;x[r].push(e.createDiagnosticForNode(i,J.cannotAccessVariablesFromNestedScopes))}var a,o=!1;if(v[r].usages.forEach(function(t){2===t.usage&&(o=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasModifier(t.symbol.valueDeclaration,64)&&(a=t.symbol.valueDeclaration))}),e.Debug.assert(F(t.range)||0===S.length),o&&!F(t.range)){var s=e.createDiagnosticForNode(t.range,J.cannotWriteInExpression);b[r].push(s),x[r].push(s)}else if(a&&r>0){var s=e.createDiagnosticForNode(a,J.cannotExtractReadonlyPropertyInitializerOutsideConstructor);b[r].push(s),x[r].push(s)}else if(m){var s=e.createDiagnosticForNode(m,J.cannotExtractExportedEntity);b[r].push(s),x[r].push(s)}},Q=0;Qn.pos});if(a!==-1){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return[i[a]];if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,function(e){return e.end>n.end},a);if(s===-1||!(0===s||i[s].getStart(r)0&&(i=~i),n[i]&&0===e.comparePaths(r.fileName,n[i].sourcePath,k)?{fileName:e.toPath(a.file,k,t.getCanonicalFileName),position:n[i].emittedPosition}:r}function u(r){var n=p();if(!e.length(n))return r;var i=e.binarySearch(n,{emittedPosition:r.position},e.identity,y);return i<0&&n.length>0&&(i=~i),{fileName:e.toPath(n[i].sourcePath,k,t.getCanonicalFileName),position:n[i].sourcePosition}}function l(r,n){var i=o&&o.getSourceFile(r);if(!i){var a=e.toPath(r,n,t.getCanonicalFileName);return s.get(a)}return i}function _(t,r,n,i){var a=l(t,r);return a?e.getPositionOfLineAndCharacter(a,n,i):-1}function d(){return h||(h=m())}function p(){return x||(x=d().slice().sort(g))}function f(){return b||(b=d().slice().sort(y))}function m(){for(var e={encodedText:a.mappings,currentNameIndex:void 0,sourceMapNamesLength:a.names?a.names.length:void 0,currentEmittedColumn:0,currentEmittedLine:0,currentSourceColumn:0,currentSourceLine:0,currentSourceIndex:0,positions:[],decodingIndex:0,processPosition:v};!n(e);)if(i(e),e.error)return t.log("Encountered error while decoding sourcemap found at "+r+": "+e.error),[];return e.positions}function g(t,r){return e.comparePaths(t.sourcePath,r.sourcePath,k)||e.compareValues(t.sourcePosition,r.sourcePosition)}function y(t,r){return e.compareValues(t.emittedPosition,r.emittedPosition)}function v(e){var t=a.sources[e.sourceIndex];return{emittedPosition:_(a.file,D,e.emittedLine,e.emittedColumn),sourcePosition:_(t,k,e.sourceLine,e.sourceColumn),sourcePath:t}}void 0===s&&(s=e.createSourceFileLikeCache(t));var h,b,x,D=e.getDirectoryPath(r),k=a.sourceRoot||D;return{getOriginalPosition:u,getGeneratedPosition:c}}function n(e){return e.decodingIndex===e.encodedText.length}function i(e){function t(){e.positions.push(e.processPosition({emittedColumn:e.currentEmittedColumn,emittedLine:e.currentEmittedLine,sourceColumn:e.currentSourceColumn,sourceIndex:e.currentSourceIndex,sourceLine:e.currentSourceLine,nameIndex:e.currentNameIndex}))}function r(t,r){return!!e.error||(t&&(e.error=r),t)}function n(){for(var t=!0,n=0,i=0;t;e.decodingIndex++){if(r(e.decodingIndex>=e.encodedText.length,"Error in decoding base64VLQFormatDecode, past the mapping string"))return;var o=a(e.encodedText.charAt(e.decodingIndex));t=0!==(32&o),i|=(31&o)<>=1:(i>>=1,i=-i),i}for(;e.decodingIndex=0;i--){Fe.lastIndex=n[i];var a=Fe.exec(r.text);if(a)return a[1]}}function k(r,n,a){var o;try{o=JSON.parse(n)}catch(s){}return o&&o.sources&&o.file&&o.mappings?r.sourceMapper=e.sourcemaps.decode({readFile:function(e){return t.readFile(e)},fileExists:function(e){return t.fileExists(e)},getCanonicalFileName:Pe,log:i},a,o,De,Ne):r.sourceMapper=e.sourcemaps.identitySourceMapper}function S(r,n){if(!t.readFile||!t.fileExists)return n.sourceMapper=e.sourcemaps.identitySourceMapper;if(n.sourceMapper)return n.sourceMapper;var i=D(r);if(i){var a=we.exec(i);if(a){if(a[1]){var o=a[1];return k(n,e.base64decode(e.sys,o),r)}i=void 0}}var s=[];i&&s.push(i),s.push(r+".map");for(var c=0,u=s;c=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function c(t){return e.stringContains(t,"/node_modules/")}o();var u=a(t);Te.throwIfCancellationRequested();var l=u.text,_=[];if(r.length>0&&!c(u.fileName))for(var d=i(),p=void 0;p=d.exec(l);){Te.throwIfCancellationRequested();var f=3;e.Debug.assert(p.length===r.length+f);var m=p[1],g=p.index+m.length;if(e.isInComment(u,g)){for(var y=void 0,v=0;v297});return n.kind<145?n:n.getFirstToken(t)}},t.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<145?n:n.getLastToken(t)},t.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},t}(),N=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,r){return e.getTokenPosOfNode(this,t,r)},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}(),A=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){return this.documentationComment||(this.documentationComment=e.emptyArray,this.documentationComment=o(this.declarations,t)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),P=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.kind=t,i}return __extends(t,e),t}(N),F=function(t){function r(e,r,n){return t.call(this,r,n)||this}return __extends(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!0,configurable:!0}),r}(N);F.prototype.kind=71;var w=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getSymbol=function(){return this.symbol},t.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},t.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},t.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},t.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},t.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},t.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},t.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},t.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},t.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},t.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},t.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this); },t.prototype.isUnion=function(){return!!(131072&this.flags)},t.prototype.isIntersection=function(){return!!(262144&this.flags)},t.prototype.isUnionOrIntersection=function(){return!!(393216&this.flags)},t.prototype.isLiteral=function(){return!!(224&this.flags)},t.prototype.isStringLiteral=function(){return!!(32&this.flags)},t.prototype.isNumberLiteral=function(){return!!(64&this.flags)},t.prototype.isTypeParameter=function(){return!!(32768&this.flags)},t.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},t.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},t}(),I=function(){function t(e){this.checker=e}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=o(e.singleElementArray(this.declaration),this.checker))},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),O=function(t){function r(e,r,n){return t.call(this,e,r,n)||this}return __extends(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r){return e.getPositionOfLineAndCharacter(this,t,r)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+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=n(e);t&&a.add(t,e)}function r(e){var t=a.get(e);return t||a.set(e,t=[]),t}function n(t){var r=e.getNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}function i(a){switch(a.kind){case 233:case 191:case 153:case 152:var o=a,s=n(o);if(s){var c=r(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 234:case 204:case 235:case 236:case 237:case 238:case 242:case 251:case 247:case 244:case 245:case 155:case 156:case 165:t(a),e.forEachChild(a,i);break;case 148:if(!e.hasModifier(a,92))break;case 231:case 181:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 272:case 151:case 150:t(a);break;case 249:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 243:var _=a.importClause;_&&(_.name&&t(_),_.namedBindings&&(245===_.namedBindings.kind?t(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 199:0!==e.getSpecialPropertyAssignmentKind(a)&&t(a);default:e.forEachChild(a,i)}}var a=e.createMultiMap();return e.forEachChild(this,i),a},r}(E),M=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();e.toEditorSettings=u,e.displayPartsToString=_,e.getDefaultCompilerOptions=d,e.getSupportedCodeFixes=p;var L=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var n=t.getScriptFileNames(),i=0,a=n;i=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=J,e.createSourceFileLikeCache=y,e.createLanguageService=v,e.getNameTable=h,e.getContainingObjectLiteralElement=D,e.getPropertySymbolsFromContextualType=k,e.getPropertySymbolsFromType=S,e.getDefaultLibFilePath=T,e.objectAllocator=c()}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r){function n(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function i(r,i){return n(r,e.findNextToken(i,i.parent,t))}function a(e,r){return u(e&&_===t.getLineAndCharacterOfPosition(e.getStart(t)).line?e:r)}function o(r){return e.createTextSpanFromBounds(e.skipTrivia(t.text,r.pos),r.end)}function s(r){return u(e.findPrecedingToken(r.pos,t))}function c(r){return u(e.findNextToken(r,r.parent,t))}function u(r){function l(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?n(e.findPrecedingToken(r.pos,t,r.parent),r):n(r)}function _(r){return 220===r.parent.parent.kind?u(r.parent.parent):e.isBindingPattern(r.name)?b(r.name):r.initializer||e.hasModifier(r,1)||221===r.parent.parent.kind?l(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?u(e.findPrecedingToken(r.pos,t,r.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 b(t.name);if(d(t))return n(t);var r=t.parent,i=r.parameters.indexOf(t);return e.Debug.assert(i!==-1),0!==i?p(r.parameters[i-1]):u(r.body)}function f(t){return e.hasModifier(t,1)||234===t.parent.kind&&154!==t.kind}function m(e){if(e.body)return f(e)?n(e):u(e.body)}function g(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return f(e.parent)?a(e.parent,t):u(t)}function y(r){switch(r.parent.kind){case 238:if(1!==e.getModuleInstanceState(r.parent))return;case 218:case 216:case 220:return a(r.parent,r.statements[0]);case 219:case 221:return a(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return u(r.statements[0])}function v(e){if(232!==e.initializer.kind)return u(e.initializer);var t=e.initializer;return t.declarations.length>0?u(t.declarations[0]):void 0}function h(e){return e.initializer?v(e):e.condition?n(e.condition):e.incrementor?n(e.incrementor):void 0}function b(t){var r=e.forEach(t.elements,function(e){return 205!==e.kind?e:void 0});return r?u(r):181===t.parent.kind?n(t.parent):l(t.parent)}function x(t){e.Debug.assert(180!==t.kind&&179!==t.kind);var r=182===t.kind?t.elements:t.properties,i=e.forEach(r,function(e){return 205!==e.kind?e:void 0});return i?u(i):n(199===t.parent.kind?t.parent:t)}function D(r){switch(r.parent.kind){case 237:var n=r.parent;return a(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 234:var i=r.parent;return a(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 240:return a(r.parent.parent,r.parent.clauses[0])}return u(r.parent)}function k(t){switch(t.parent.kind){case 239:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 237:case 234:return n(t);case 212:if(e.isFunctionBlock(t.parent))return n(t);case 268:return u(e.lastOrUndefined(t.parent.statements));case 240:var r=t.parent,i=e.lastOrUndefined(r.clauses);if(i)return u(e.lastOrUndefined(i.statements));return;case 179:var a=t.parent;return u(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return n(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}function S(t){switch(t.parent.kind){case 180:var r=t.parent;return n(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return n(e.lastOrUndefined(i.elements)||i)}return u(t.parent)}}function C(e){return 217===e.parent.kind||186===e.parent.kind||187===e.parent.kind?s(e):190===e.parent.kind?c(e):u(e.parent)}function T(e){switch(e.parent.kind){case 191:case 233:case 192:case 153:case 152:case 155:case 156:case 154:case 218:case 217:case 219:case 221:case 186:case 187:case 190:return s(e);default:return u(e.parent)}}function E(t){return e.isFunctionLike(t.parent)||269===t.parent.kind||148===t.parent.kind?s(t):u(t.parent)}function N(e){return 189===e.parent.kind?c(e):u(e.parent)}function A(e){return 217===e.parent.kind?i(e,e.parent.expression):u(e.parent)}function P(e){return 221===e.parent.kind?c(e):u(e.parent)}if(r)switch(r.kind){case 213:return _(r.declarationList.declarations[0]);case 231:case 151:case 150:return _(r);case 148:return p(r);case 233:case 153:case 152:case 155:case 156:case 154:case 191:case 192:return m(r);case 212:if(e.isFunctionBlock(r))return g(r);case 239:return y(r);case 268:return y(r.block);case 215:return n(r.expression);case 224:return n(r.getChildAt(0),r.expression);case 218:return i(r,r.expression);case 217:return u(r.statement);case 230:return n(r.getChildAt(0));case 216:return i(r,r.expression);case 227:return u(r.statement);case 223:case 222:return n(r.getChildAt(0),r.label);case 219:return h(r);case 220:return i(r,r.expression);case 221:return v(r);case 226:return i(r,r.expression);case 265:case 266:return u(r.statements[0]);case 229:return y(r.tryBlock);case 228:return n(r,r.expression);case 248:return n(r,r.expression);case 242:return n(r,r.moduleReference);case 243:return n(r,r.moduleSpecifier);case 249:return n(r,r.moduleSpecifier);case 238:if(1!==e.getModuleInstanceState(r))return;case 234:case 237:case 272:case 181:return n(r);case 225:return u(r.statement);case 149:return o(r.parent.decorators);case 179:case 180:return b(r);case 235:case 236:return;case 25:case 1:return a(e.findPrecedingToken(r.pos,t));case 26:return s(r);case 17:return D(r);case 18:return k(r);case 22:return S(r);case 19:return C(r);case 20:return T(r);case 56:return E(r);case 29:case 27:return N(r);case 106:return A(r);case 82:case 74:case 87:return c(r);case 144:return P(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return x(r);if((71===r.kind||203===r.kind||269===r.kind||270===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return n(r);if(199===r.kind){var F=r,w=F.left,I=F.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(w))return x(w);if(58===I.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return n(r);if(26===I.kind)return u(w)}if(e.isExpressionNode(r))switch(r.parent.kind){case 217:return s(r);case 149:return u(r.parent);case 219:case 221:return n(r);case 199:if(26===r.parent.operatorToken.kind)return n(r);break;case 192:if(r.parent.body===r)return n(r)}switch(r.parent.kind){case 269:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return u(r.parent.initializer);break;case 189:if(r.parent.type===r)return c(r.parent.type);break;case 231:case 148:var O=r.parent,M=O.initializer,L=O.type;if(M===r||L===r||e.isAssignmentOperator(r.kind))return s(r);break;case 199:var w=r.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(w)&&r!==w)return s(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return s(r)}return u(r.parent)}}if(!t.isDeclarationFile){var l=e.getTokenAtPosition(t,r,!1),_=t.getLineAndCharacterOfPosition(r).line;if((!(t.getLineAndCharacterOfPosition(l.getStart(t)).line>_)||(l=e.findPrecedingToken(l.pos,t),l&&t.getLineAndCharacterOfPosition(l.getEnd()).line===_))&&!(4194304&l.flags))return u(l)}}t.spanInSourceFileAtLocation=r}(t=e.BreakpointResolver||(e.BreakpointResolver={}))}(ts||(ts={}));var ts;!function(e){function t(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}e.transform=t}(ts||(ts={}));var debugObjectHost=function(){return this}(),ts;!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function r(t,r,n,i){var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log(r+" completed in "+(s-a)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}function n(e,t,r,n){return i(e,t,!0,r,n)}function i(n,i,a,o,s){try{var c=r(n,i,o,s);return a?JSON.stringify({result:c}):c}catch(u){return u instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(n,u),u.description=i,JSON.stringify({error:u}))}}function a(e,t){return e.map(function(e){return o(e,t)})}function o(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary}}function s(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var c=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),u=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,function(t){return e.getProperty(i,t)})})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.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},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new c(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=u;var l=function(){function t(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 t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();e.CoreServicesShimHostAdapter=l;var _=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();e.realizeDiagnostics=a;var d=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return __extends(r,t),r.prototype.forwardJSONCall=function(e,t){return n(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,debugObjectHost&&debugObjectHost.CollectGarbage&&(debugObjectHost.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},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(t){var r=e.getNewLineOrDefaultFromHost(this.host);return a(t,r)},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+t+"', "+r+", "+n+")",function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))})},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+t+"', "+r+", "+n+")",function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))})},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+t+"', "+r+", "+n+")",function(){return s(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))})},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+t+"', "+r+", "+n+")",function(){return s(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},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 r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t){var r=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return r.languageService.getSignatureHelpItems(e,t)})},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return r.languageService.getRenameInfo(e,t)})},r.prototype.findRenameLocations=function(e,t,r,n){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+")",function(){return i.languageService.findRenameLocations(e,t,r,n)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+r+")",function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.normalizeSlashes(t).toLowerCase();return e.filter(a,function(t){return e.normalizeSlashes(t.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",function(){var s=void 0===n?void 0:JSON.parse(n);return o.languageService.getCompletionEntryDetails(e,t,r,s,i,a)})},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})},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 r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.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 i(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(_),p=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return __extends(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var i=this;return n(this.logger,"getEncodedLexicalClassifications",function(){return s(i.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a