typescript 4.6.0-dev.20220210 → 4.6.2-insiders.20220225

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tsc.js CHANGED
@@ -22,7 +22,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
22
22
  ar[i] = from[i];
23
23
  }
24
24
  }
25
- return to.concat(ar || from);
25
+ return to.concat(ar || Array.prototype.slice.call(from));
26
26
  };
27
27
  var __assign = (this && this.__assign) || function () {
28
28
  __assign = Object.assign || function(t) {
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.6";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20220210";
72
+ ts.version = "".concat(ts.versionMajorMinor, ".2-insiders.20220225");
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -94,7 +94,7 @@ var ts;
94
94
  var constructor = (_a = NativeCollections[nativeFactory]()) !== null && _a !== void 0 ? _a : ts.ShimCollections === null || ts.ShimCollections === void 0 ? void 0 : ts.ShimCollections[shimFactory](ts.getIterator);
95
95
  if (constructor)
96
96
  return constructor;
97
- throw new Error("TypeScript requires an environment that provides a compatible native " + name + " implementation.");
97
+ throw new Error("TypeScript requires an environment that provides a compatible native ".concat(name, " implementation."));
98
98
  }
99
99
  })(ts || (ts = {}));
100
100
  var ts;
@@ -1293,7 +1293,7 @@ var ts;
1293
1293
  function cast(value, test) {
1294
1294
  if (value !== undefined && test(value))
1295
1295
  return value;
1296
- return ts.Debug.fail("Invalid cast. The supplied value " + value + " did not pass the test '" + ts.Debug.getFunctionName(test) + "'.");
1296
+ return ts.Debug.fail("Invalid cast. The supplied value ".concat(value, " did not pass the test '").concat(ts.Debug.getFunctionName(test), "'."));
1297
1297
  }
1298
1298
  ts.cast = cast;
1299
1299
  function noop(_) { }
@@ -1343,7 +1343,7 @@ var ts;
1343
1343
  function memoizeOne(callback) {
1344
1344
  var map = new ts.Map();
1345
1345
  return function (arg) {
1346
- var key = typeof arg + ":" + arg;
1346
+ var key = "".concat(typeof arg, ":").concat(arg);
1347
1347
  var value = map.get(key);
1348
1348
  if (value === undefined && !map.has(key)) {
1349
1349
  value = callback(arg);
@@ -1678,7 +1678,7 @@ var ts;
1678
1678
  ts.createGetCanonicalFileName = createGetCanonicalFileName;
1679
1679
  function patternText(_a) {
1680
1680
  var prefix = _a.prefix, suffix = _a.suffix;
1681
- return prefix + "*" + suffix;
1681
+ return "".concat(prefix, "*").concat(suffix);
1682
1682
  }
1683
1683
  ts.patternText = patternText;
1684
1684
  function matchedText(pattern, candidate) {
@@ -1947,7 +1947,7 @@ var ts;
1947
1947
  }
1948
1948
  function fail(message, stackCrawlMark) {
1949
1949
  debugger;
1950
- var e = new Error(message ? "Debug Failure. " + message : "Debug Failure.");
1950
+ var e = new Error(message ? "Debug Failure. ".concat(message) : "Debug Failure.");
1951
1951
  if (Error.captureStackTrace) {
1952
1952
  Error.captureStackTrace(e, stackCrawlMark || fail);
1953
1953
  }
@@ -1955,12 +1955,12 @@ var ts;
1955
1955
  }
1956
1956
  Debug.fail = fail;
1957
1957
  function failBadSyntaxKind(node, message, stackCrawlMark) {
1958
- return fail((message || "Unexpected node.") + "\r\nNode " + formatSyntaxKind(node.kind) + " was unexpected.", stackCrawlMark || failBadSyntaxKind);
1958
+ return fail("".concat(message || "Unexpected node.", "\r\nNode ").concat(formatSyntaxKind(node.kind), " was unexpected."), stackCrawlMark || failBadSyntaxKind);
1959
1959
  }
1960
1960
  Debug.failBadSyntaxKind = failBadSyntaxKind;
1961
1961
  function assert(expression, message, verboseDebugInfo, stackCrawlMark) {
1962
1962
  if (!expression) {
1963
- message = message ? "False expression: " + message : "False expression.";
1963
+ message = message ? "False expression: ".concat(message) : "False expression.";
1964
1964
  if (verboseDebugInfo) {
1965
1965
  message += "\r\nVerbose Debug Information: " + (typeof verboseDebugInfo === "string" ? verboseDebugInfo : verboseDebugInfo());
1966
1966
  }
@@ -1970,26 +1970,26 @@ var ts;
1970
1970
  Debug.assert = assert;
1971
1971
  function assertEqual(a, b, msg, msg2, stackCrawlMark) {
1972
1972
  if (a !== b) {
1973
- var message = msg ? msg2 ? msg + " " + msg2 : msg : "";
1974
- fail("Expected " + a + " === " + b + ". " + message, stackCrawlMark || assertEqual);
1973
+ var message = msg ? msg2 ? "".concat(msg, " ").concat(msg2) : msg : "";
1974
+ fail("Expected ".concat(a, " === ").concat(b, ". ").concat(message), stackCrawlMark || assertEqual);
1975
1975
  }
1976
1976
  }
1977
1977
  Debug.assertEqual = assertEqual;
1978
1978
  function assertLessThan(a, b, msg, stackCrawlMark) {
1979
1979
  if (a >= b) {
1980
- fail("Expected " + a + " < " + b + ". " + (msg || ""), stackCrawlMark || assertLessThan);
1980
+ fail("Expected ".concat(a, " < ").concat(b, ". ").concat(msg || ""), stackCrawlMark || assertLessThan);
1981
1981
  }
1982
1982
  }
1983
1983
  Debug.assertLessThan = assertLessThan;
1984
1984
  function assertLessThanOrEqual(a, b, stackCrawlMark) {
1985
1985
  if (a > b) {
1986
- fail("Expected " + a + " <= " + b, stackCrawlMark || assertLessThanOrEqual);
1986
+ fail("Expected ".concat(a, " <= ").concat(b), stackCrawlMark || assertLessThanOrEqual);
1987
1987
  }
1988
1988
  }
1989
1989
  Debug.assertLessThanOrEqual = assertLessThanOrEqual;
1990
1990
  function assertGreaterThanOrEqual(a, b, stackCrawlMark) {
1991
1991
  if (a < b) {
1992
- fail("Expected " + a + " >= " + b, stackCrawlMark || assertGreaterThanOrEqual);
1992
+ fail("Expected ".concat(a, " >= ").concat(b), stackCrawlMark || assertGreaterThanOrEqual);
1993
1993
  }
1994
1994
  }
1995
1995
  Debug.assertGreaterThanOrEqual = assertGreaterThanOrEqual;
@@ -2019,42 +2019,42 @@ var ts;
2019
2019
  function assertNever(member, message, stackCrawlMark) {
2020
2020
  if (message === void 0) { message = "Illegal value:"; }
2021
2021
  var detail = typeof member === "object" && ts.hasProperty(member, "kind") && ts.hasProperty(member, "pos") && formatSyntaxKind ? "SyntaxKind: " + formatSyntaxKind(member.kind) : JSON.stringify(member);
2022
- return fail(message + " " + detail, stackCrawlMark || assertNever);
2022
+ return fail("".concat(message, " ").concat(detail), stackCrawlMark || assertNever);
2023
2023
  }
2024
2024
  Debug.assertNever = assertNever;
2025
2025
  function assertEachNode(nodes, test, message, stackCrawlMark) {
2026
2026
  if (shouldAssertFunction(1, "assertEachNode")) {
2027
- assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertEachNode);
2027
+ assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '".concat(getFunctionName(test), "'."); }, stackCrawlMark || assertEachNode);
2028
2028
  }
2029
2029
  }
2030
2030
  Debug.assertEachNode = assertEachNode;
2031
2031
  function assertNode(node, test, message, stackCrawlMark) {
2032
2032
  if (shouldAssertFunction(1, "assertNode")) {
2033
- assert(node !== undefined && (test === undefined || test(node)), message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + " did not pass test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertNode);
2033
+ assert(node !== undefined && (test === undefined || test(node)), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " did not pass test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertNode);
2034
2034
  }
2035
2035
  }
2036
2036
  Debug.assertNode = assertNode;
2037
2037
  function assertNotNode(node, test, message, stackCrawlMark) {
2038
2038
  if (shouldAssertFunction(1, "assertNotNode")) {
2039
- assert(node === undefined || test === undefined || !test(node), message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node.kind) + " should not have passed test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertNotNode);
2039
+ assert(node === undefined || test === undefined || !test(node), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node.kind), " should not have passed test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertNotNode);
2040
2040
  }
2041
2041
  }
2042
2042
  Debug.assertNotNode = assertNotNode;
2043
2043
  function assertOptionalNode(node, test, message, stackCrawlMark) {
2044
2044
  if (shouldAssertFunction(1, "assertOptionalNode")) {
2045
- assert(test === undefined || node === undefined || test(node), message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + " did not pass test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertOptionalNode);
2045
+ assert(test === undefined || node === undefined || test(node), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " did not pass test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertOptionalNode);
2046
2046
  }
2047
2047
  }
2048
2048
  Debug.assertOptionalNode = assertOptionalNode;
2049
2049
  function assertOptionalToken(node, kind, message, stackCrawlMark) {
2050
2050
  if (shouldAssertFunction(1, "assertOptionalToken")) {
2051
- assert(kind === undefined || node === undefined || node.kind === kind, message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + " was not a '" + formatSyntaxKind(kind) + "' token."; }, stackCrawlMark || assertOptionalToken);
2051
+ assert(kind === undefined || node === undefined || node.kind === kind, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " was not a '").concat(formatSyntaxKind(kind), "' token."); }, stackCrawlMark || assertOptionalToken);
2052
2052
  }
2053
2053
  }
2054
2054
  Debug.assertOptionalToken = assertOptionalToken;
2055
2055
  function assertMissingNode(node, message, stackCrawlMark) {
2056
2056
  if (shouldAssertFunction(1, "assertMissingNode")) {
2057
- assert(node === undefined, message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node.kind) + " was unexpected'."; }, stackCrawlMark || assertMissingNode);
2057
+ assert(node === undefined, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node.kind), " was unexpected'."); }, stackCrawlMark || assertMissingNode);
2058
2058
  }
2059
2059
  }
2060
2060
  Debug.assertMissingNode = assertMissingNode;
@@ -2075,7 +2075,7 @@ var ts;
2075
2075
  }
2076
2076
  Debug.getFunctionName = getFunctionName;
2077
2077
  function formatSymbol(symbol) {
2078
- return "{ name: " + ts.unescapeLeadingUnderscores(symbol.escapedName) + "; flags: " + formatSymbolFlags(symbol.flags) + "; declarations: " + ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }) + " }";
2078
+ return "{ name: ".concat(ts.unescapeLeadingUnderscores(symbol.escapedName), "; flags: ").concat(formatSymbolFlags(symbol.flags), "; declarations: ").concat(ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }), " }");
2079
2079
  }
2080
2080
  Debug.formatSymbol = formatSymbol;
2081
2081
  function formatEnum(value, enumObject, isFlags) {
@@ -2093,7 +2093,7 @@ var ts;
2093
2093
  break;
2094
2094
  }
2095
2095
  if (enumValue !== 0 && enumValue & value) {
2096
- result = "" + result + (result ? "|" : "") + enumName;
2096
+ result = "".concat(result).concat(result ? "|" : "").concat(enumName);
2097
2097
  remainingFlags &= ~enumValue;
2098
2098
  }
2099
2099
  }
@@ -2202,7 +2202,7 @@ var ts;
2202
2202
  this.flags & 1 ? "FlowUnreachable" :
2203
2203
  "UnknownFlow";
2204
2204
  var remainingFlags = this.flags & ~(2048 - 1);
2205
- return "" + flowHeader + (remainingFlags ? " (" + formatFlowFlags(remainingFlags) + ")" : "");
2205
+ return "".concat(flowHeader).concat(remainingFlags ? " (".concat(formatFlowFlags(remainingFlags), ")") : "");
2206
2206
  }
2207
2207
  },
2208
2208
  __debugFlowFlags: { get: function () { return formatEnum(this.flags, ts.FlowFlags, true); } },
@@ -2232,7 +2232,7 @@ var ts;
2232
2232
  __tsDebuggerDisplay: {
2233
2233
  value: function (defaultValue) {
2234
2234
  defaultValue = String(defaultValue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/, "]");
2235
- return "NodeArray " + defaultValue;
2235
+ return "NodeArray ".concat(defaultValue);
2236
2236
  }
2237
2237
  }
2238
2238
  });
@@ -2278,7 +2278,7 @@ var ts;
2278
2278
  var symbolHeader = this.flags & 33554432 ? "TransientSymbol" :
2279
2279
  "Symbol";
2280
2280
  var remainingSymbolFlags = this.flags & ~33554432;
2281
- return symbolHeader + " '" + ts.symbolName(this) + "'" + (remainingSymbolFlags ? " (" + formatSymbolFlags(remainingSymbolFlags) + ")" : "");
2281
+ return "".concat(symbolHeader, " '").concat(ts.symbolName(this), "'").concat(remainingSymbolFlags ? " (".concat(formatSymbolFlags(remainingSymbolFlags), ")") : "");
2282
2282
  }
2283
2283
  },
2284
2284
  __debugFlags: { get: function () { return formatSymbolFlags(this.flags); } }
@@ -2287,11 +2287,11 @@ var ts;
2287
2287
  __tsDebuggerDisplay: {
2288
2288
  value: function () {
2289
2289
  var typeHeader = this.flags & 98304 ? "NullableType" :
2290
- this.flags & 384 ? "LiteralType " + JSON.stringify(this.value) :
2291
- this.flags & 2048 ? "LiteralType " + (this.value.negative ? "-" : "") + this.value.base10Value + "n" :
2290
+ this.flags & 384 ? "LiteralType ".concat(JSON.stringify(this.value)) :
2291
+ this.flags & 2048 ? "LiteralType ".concat(this.value.negative ? "-" : "").concat(this.value.base10Value, "n") :
2292
2292
  this.flags & 8192 ? "UniqueESSymbolType" :
2293
2293
  this.flags & 32 ? "EnumType" :
2294
- this.flags & 67359327 ? "IntrinsicType " + this.intrinsicName :
2294
+ this.flags & 67359327 ? "IntrinsicType ".concat(this.intrinsicName) :
2295
2295
  this.flags & 1048576 ? "UnionType" :
2296
2296
  this.flags & 2097152 ? "IntersectionType" :
2297
2297
  this.flags & 4194304 ? "IndexType" :
@@ -2310,7 +2310,7 @@ var ts;
2310
2310
  "ObjectType" :
2311
2311
  "Type";
2312
2312
  var remainingObjectFlags = this.flags & 524288 ? this.objectFlags & ~1343 : 0;
2313
- return "" + typeHeader + (this.symbol ? " '" + ts.symbolName(this.symbol) + "'" : "") + (remainingObjectFlags ? " (" + formatObjectFlags(remainingObjectFlags) + ")" : "");
2313
+ return "".concat(typeHeader).concat(this.symbol ? " '".concat(ts.symbolName(this.symbol), "'") : "").concat(remainingObjectFlags ? " (".concat(formatObjectFlags(remainingObjectFlags), ")") : "");
2314
2314
  }
2315
2315
  },
2316
2316
  __debugFlags: { get: function () { return formatTypeFlags(this.flags); } },
@@ -2344,11 +2344,11 @@ var ts;
2344
2344
  __tsDebuggerDisplay: {
2345
2345
  value: function () {
2346
2346
  var nodeHeader = ts.isGeneratedIdentifier(this) ? "GeneratedIdentifier" :
2347
- ts.isIdentifier(this) ? "Identifier '" + ts.idText(this) + "'" :
2348
- ts.isPrivateIdentifier(this) ? "PrivateIdentifier '" + ts.idText(this) + "'" :
2349
- ts.isStringLiteral(this) ? "StringLiteral " + JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...") :
2350
- ts.isNumericLiteral(this) ? "NumericLiteral " + this.text :
2351
- ts.isBigIntLiteral(this) ? "BigIntLiteral " + this.text + "n" :
2347
+ ts.isIdentifier(this) ? "Identifier '".concat(ts.idText(this), "'") :
2348
+ ts.isPrivateIdentifier(this) ? "PrivateIdentifier '".concat(ts.idText(this), "'") :
2349
+ ts.isStringLiteral(this) ? "StringLiteral ".concat(JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")) :
2350
+ ts.isNumericLiteral(this) ? "NumericLiteral ".concat(this.text) :
2351
+ ts.isBigIntLiteral(this) ? "BigIntLiteral ".concat(this.text, "n") :
2352
2352
  ts.isTypeParameterDeclaration(this) ? "TypeParameterDeclaration" :
2353
2353
  ts.isParameter(this) ? "ParameterDeclaration" :
2354
2354
  ts.isConstructorDeclaration(this) ? "ConstructorDeclaration" :
@@ -2380,7 +2380,7 @@ var ts;
2380
2380
  ts.isNamedTupleMember(this) ? "NamedTupleMember" :
2381
2381
  ts.isImportTypeNode(this) ? "ImportTypeNode" :
2382
2382
  formatSyntaxKind(this.kind);
2383
- return "" + nodeHeader + (this.flags ? " (" + formatNodeFlags(this.flags) + ")" : "");
2383
+ return "".concat(nodeHeader).concat(this.flags ? " (".concat(formatNodeFlags(this.flags), ")") : "");
2384
2384
  }
2385
2385
  },
2386
2386
  __debugKind: { get: function () { return formatSyntaxKind(this.kind); } },
@@ -2424,10 +2424,10 @@ var ts;
2424
2424
  Debug.enableDebugInfo = enableDebugInfo;
2425
2425
  function formatDeprecationMessage(name, error, errorAfter, since, message) {
2426
2426
  var deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
2427
- deprecationMessage += "'" + name + "' ";
2428
- deprecationMessage += since ? "has been deprecated since v" + since : "is deprecated";
2429
- deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v" + errorAfter + "." : ".";
2430
- deprecationMessage += message ? " " + ts.formatStringFromArgs(message, [name], 0) : "";
2427
+ deprecationMessage += "'".concat(name, "' ");
2428
+ deprecationMessage += since ? "has been deprecated since v".concat(since) : "is deprecated";
2429
+ deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v".concat(errorAfter, ".") : ".";
2430
+ deprecationMessage += message ? " ".concat(ts.formatStringFromArgs(message, [name], 0)) : "";
2431
2431
  return deprecationMessage;
2432
2432
  }
2433
2433
  function createErrorDeprecation(name, errorAfter, since, message) {
@@ -2524,11 +2524,11 @@ var ts;
2524
2524
  }
2525
2525
  };
2526
2526
  Version.prototype.toString = function () {
2527
- var result = this.major + "." + this.minor + "." + this.patch;
2527
+ var result = "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch);
2528
2528
  if (ts.some(this.prerelease))
2529
- result += "-" + this.prerelease.join(".");
2529
+ result += "-".concat(this.prerelease.join("."));
2530
2530
  if (ts.some(this.build))
2531
- result += "+" + this.build.join(".");
2531
+ result += "+".concat(this.build.join("."));
2532
2532
  return result;
2533
2533
  };
2534
2534
  Version.zero = new Version(0, 0, 0);
@@ -2750,7 +2750,7 @@ var ts;
2750
2750
  return ts.map(comparators, formatComparator).join(" ");
2751
2751
  }
2752
2752
  function formatComparator(comparator) {
2753
- return "" + comparator.operator + comparator.operand;
2753
+ return "".concat(comparator.operator).concat(comparator.operand);
2754
2754
  }
2755
2755
  })(ts || (ts = {}));
2756
2756
  var ts;
@@ -2979,7 +2979,7 @@ var ts;
2979
2979
  fs = require("fs");
2980
2980
  }
2981
2981
  catch (e) {
2982
- throw new Error("tracing requires having fs\n(original error: " + (e.message || e) + ")");
2982
+ throw new Error("tracing requires having fs\n(original error: ".concat(e.message || e, ")"));
2983
2983
  }
2984
2984
  }
2985
2985
  mode = tracingMode;
@@ -2990,11 +2990,11 @@ var ts;
2990
2990
  if (!fs.existsSync(traceDir)) {
2991
2991
  fs.mkdirSync(traceDir, { recursive: true });
2992
2992
  }
2993
- var countPart = mode === "build" ? "." + process.pid + "-" + ++traceCount
2994
- : mode === "server" ? "." + process.pid
2993
+ var countPart = mode === "build" ? ".".concat(process.pid, "-").concat(++traceCount)
2994
+ : mode === "server" ? ".".concat(process.pid)
2995
2995
  : "";
2996
- var tracePath = ts.combinePaths(traceDir, "trace" + countPart + ".json");
2997
- var typesPath = ts.combinePaths(traceDir, "types" + countPart + ".json");
2996
+ var tracePath = ts.combinePaths(traceDir, "trace".concat(countPart, ".json"));
2997
+ var typesPath = ts.combinePaths(traceDir, "types".concat(countPart, ".json"));
2998
2998
  legend.push({
2999
2999
  configFilePath: configFilePath,
3000
3000
  tracePath: tracePath,
@@ -3062,7 +3062,7 @@ var ts;
3062
3062
  writeEvent("E", phase, name, args, undefined, endTime);
3063
3063
  }
3064
3064
  else if (sampleInterval - (time % sampleInterval) <= endTime - time) {
3065
- writeEvent("X", phase, name, args, "\"dur\":" + (endTime - time), time);
3065
+ writeEvent("X", phase, name, args, "\"dur\":".concat(endTime - time), time);
3066
3066
  }
3067
3067
  }
3068
3068
  function writeEvent(eventType, phase, name, args, extras, time) {
@@ -3070,11 +3070,11 @@ var ts;
3070
3070
  if (mode === "server" && phase === "checkTypes")
3071
3071
  return;
3072
3072
  ts.performance.mark("beginTracing");
3073
- fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"" + eventType + "\",\"cat\":\"" + phase + "\",\"ts\":" + time + ",\"name\":\"" + name + "\"");
3073
+ fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"".concat(eventType, "\",\"cat\":\"").concat(phase, "\",\"ts\":").concat(time, ",\"name\":\"").concat(name, "\""));
3074
3074
  if (extras)
3075
- fs.writeSync(traceFd, "," + extras);
3075
+ fs.writeSync(traceFd, ",".concat(extras));
3076
3076
  if (args)
3077
- fs.writeSync(traceFd, ",\"args\":" + JSON.stringify(args));
3077
+ fs.writeSync(traceFd, ",\"args\":".concat(JSON.stringify(args)));
3078
3078
  fs.writeSync(traceFd, "}");
3079
3079
  ts.performance.mark("endTracing");
3080
3080
  ts.performance.measure("Tracing", "beginTracing", "endTracing");
@@ -3394,7 +3394,7 @@ var ts;
3394
3394
  pollingChunkSize = getCustomPollingBasedLevels("TSC_WATCH_POLLINGCHUNKSIZE", defaultChunkLevels) || pollingChunkSize;
3395
3395
  ts.unchangedPollThresholds = getCustomPollingBasedLevels("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", defaultChunkLevels) || ts.unchangedPollThresholds;
3396
3396
  function getLevel(envVar, level) {
3397
- return system.getEnvironmentVariable(envVar + "_" + level.toUpperCase());
3397
+ return system.getEnvironmentVariable("".concat(envVar, "_").concat(level.toUpperCase()));
3398
3398
  }
3399
3399
  function getCustomLevels(baseVariable) {
3400
3400
  var customLevels;
@@ -3818,7 +3818,7 @@ var ts;
3818
3818
  }
3819
3819
  function onTimerToUpdateChildWatches() {
3820
3820
  timerToUpdateChildWatches = undefined;
3821
- sysLog("sysLog:: onTimerToUpdateChildWatches:: " + cacheToUpdateChildWatches.size);
3821
+ sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(cacheToUpdateChildWatches.size));
3822
3822
  var start = ts.timestamp();
3823
3823
  var invokeMap = new ts.Map();
3824
3824
  while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
@@ -3829,7 +3829,7 @@ var ts;
3829
3829
  var hasChanges = updateChildWatches(dirName, dirPath, options);
3830
3830
  invokeCallbacks(dirPath, invokeMap, hasChanges ? undefined : fileNames);
3831
3831
  }
3832
- sysLog("sysLog:: invokingWatchers:: Elapsed:: " + (ts.timestamp() - start) + "ms:: " + cacheToUpdateChildWatches.size);
3832
+ sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(ts.timestamp() - start, "ms:: ").concat(cacheToUpdateChildWatches.size));
3833
3833
  callbackCache.forEach(function (callbacks, rootDirName) {
3834
3834
  var existing = invokeMap.get(rootDirName);
3835
3835
  if (existing) {
@@ -3845,7 +3845,7 @@ var ts;
3845
3845
  }
3846
3846
  });
3847
3847
  var elapsed = ts.timestamp() - start;
3848
- sysLog("sysLog:: Elapsed:: " + elapsed + "ms:: onTimerToUpdateChildWatches:: " + cacheToUpdateChildWatches.size + " " + timerToUpdateChildWatches);
3848
+ sysLog("sysLog:: Elapsed:: ".concat(elapsed, "ms:: onTimerToUpdateChildWatches:: ").concat(cacheToUpdateChildWatches.size, " ").concat(timerToUpdateChildWatches));
3849
3849
  }
3850
3850
  function removeChildWatches(parentWatcher) {
3851
3851
  if (!parentWatcher)
@@ -4237,7 +4237,7 @@ var ts;
4237
4237
  var externalFileCounter = 0;
4238
4238
  var remappedPaths = new ts.Map();
4239
4239
  var normalizedDir = ts.normalizeSlashes(__dirname);
4240
- var fileUrlRoot = "file://" + (ts.getRootLength(normalizedDir) === 1 ? "" : "/") + normalizedDir;
4240
+ var fileUrlRoot = "file://".concat(ts.getRootLength(normalizedDir) === 1 ? "" : "/").concat(normalizedDir);
4241
4241
  for (var _i = 0, _a = profile.nodes; _i < _a.length; _i++) {
4242
4242
  var node = _a[_i];
4243
4243
  if (node.callFrame.url) {
@@ -4246,7 +4246,7 @@ var ts;
4246
4246
  node.callFrame.url = ts.getRelativePathToDirectoryOrUrl(fileUrlRoot, url, fileUrlRoot, ts.createGetCanonicalFileName(useCaseSensitiveFileNames), true);
4247
4247
  }
4248
4248
  else if (!nativePattern.test(url)) {
4249
- node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external" + externalFileCounter + ".js")).get(url);
4249
+ node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external".concat(externalFileCounter, ".js"))).get(url);
4250
4250
  externalFileCounter++;
4251
4251
  }
4252
4252
  }
@@ -4262,7 +4262,7 @@ var ts;
4262
4262
  if (!err) {
4263
4263
  try {
4264
4264
  if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
4265
- profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
4265
+ profilePath = _path.join(profilePath, "".concat((new Date()).toISOString().replace(/:/g, "-"), "+P").concat(process.pid, ".cpuprofile"));
4266
4266
  }
4267
4267
  }
4268
4268
  catch (_c) {
@@ -4347,7 +4347,7 @@ var ts;
4347
4347
  }
4348
4348
  };
4349
4349
  function invokeCallbackAndUpdateWatcher(createWatcher) {
4350
- sysLog("sysLog:: " + fileOrDirectory + ":: Changing watcher to " + (createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing") + "FileSystemEntryWatcher");
4350
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing watcher to ").concat(createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing", "FileSystemEntryWatcher"));
4351
4351
  callback("rename", "");
4352
4352
  if (watcher) {
4353
4353
  watcher.close();
@@ -4364,7 +4364,7 @@ var ts;
4364
4364
  }
4365
4365
  }
4366
4366
  if (hitSystemWatcherLimit) {
4367
- sysLog("sysLog:: " + fileOrDirectory + ":: Defaulting to fsWatchFile");
4367
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Defaulting to fsWatchFile"));
4368
4368
  return watchPresentFileSystemEntryWithFsWatchFile();
4369
4369
  }
4370
4370
  try {
@@ -4376,7 +4376,7 @@ var ts;
4376
4376
  }
4377
4377
  catch (e) {
4378
4378
  hitSystemWatcherLimit || (hitSystemWatcherLimit = e.code === "ENOSPC");
4379
- sysLog("sysLog:: " + fileOrDirectory + ":: Changing to fsWatchFile");
4379
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing to fsWatchFile"));
4380
4380
  return watchPresentFileSystemEntryWithFsWatchFile();
4381
4381
  }
4382
4382
  }
@@ -5294,6 +5294,9 @@ var ts;
5294
5294
  An_optional_element_cannot_follow_a_rest_element: diag(1266, ts.DiagnosticCategory.Error, "An_optional_element_cannot_follow_a_rest_element_1266", "An optional element cannot follow a rest element."),
5295
5295
  Property_0_cannot_have_an_initializer_because_it_is_marked_abstract: diag(1267, ts.DiagnosticCategory.Error, "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267", "Property '{0}' cannot have an initializer because it is marked abstract."),
5296
5296
  An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type: diag(1268, ts.DiagnosticCategory.Error, "An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268", "An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),
5297
+ Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided: diag(1269, ts.DiagnosticCategory.Error, "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269", "Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),
5298
+ Decorator_function_return_type_0_is_not_assignable_to_type_1: diag(1270, ts.DiagnosticCategory.Error, "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270", "Decorator function return type '{0}' is not assignable to type '{1}'."),
5299
+ Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any: diag(1271, ts.DiagnosticCategory.Error, "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271", "Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),
5297
5300
  with_statements_are_not_allowed_in_an_async_function_block: diag(1300, ts.DiagnosticCategory.Error, "with_statements_are_not_allowed_in_an_async_function_block_1300", "'with' statements are not allowed in an async function block."),
5298
5301
  await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1308, ts.DiagnosticCategory.Error, "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308", "'await' expressions are only allowed within async functions and at the top levels of modules."),
5299
5302
  Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern: diag(1312, ts.DiagnosticCategory.Error, "Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312", "Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),
@@ -6852,6 +6855,9 @@ var ts;
6852
6855
  Add_all_missing_attributes: diag(95168, ts.DiagnosticCategory.Message, "Add_all_missing_attributes_95168", "Add all missing attributes"),
6853
6856
  Add_undefined_to_optional_property_type: diag(95169, ts.DiagnosticCategory.Message, "Add_undefined_to_optional_property_type_95169", "Add 'undefined' to optional property type"),
6854
6857
  Convert_named_imports_to_default_import: diag(95170, ts.DiagnosticCategory.Message, "Convert_named_imports_to_default_import_95170", "Convert named imports to default import"),
6858
+ Delete_unused_param_tag_0: diag(95171, ts.DiagnosticCategory.Message, "Delete_unused_param_tag_0_95171", "Delete unused '@param' tag '{0}'"),
6859
+ Delete_all_unused_param_tags: diag(95172, ts.DiagnosticCategory.Message, "Delete_all_unused_param_tags_95172", "Delete all unused '@param' tags"),
6860
+ Rename_param_tag_name_0_to_1: diag(95173, ts.DiagnosticCategory.Message, "Rename_param_tag_name_0_to_1_95173", "Rename '@param' tag name '{0}' to '{1}'"),
6855
6861
  No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, ts.DiagnosticCategory.Error, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
6856
6862
  Classes_may_not_have_a_field_named_constructor: diag(18006, ts.DiagnosticCategory.Error, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
6857
6863
  JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, ts.DiagnosticCategory.Error, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
@@ -7078,7 +7084,7 @@ var ts;
7078
7084
  line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line;
7079
7085
  }
7080
7086
  else {
7081
- ts.Debug.fail("Bad line number. Line: " + line + ", lineStarts.length: " + lineStarts.length + " , line map is correct? " + (debugText !== undefined ? ts.arraysEqual(lineStarts, computeLineStarts(debugText)) : "unknown"));
7087
+ ts.Debug.fail("Bad line number. Line: ".concat(line, ", lineStarts.length: ").concat(lineStarts.length, " , line map is correct? ").concat(debugText !== undefined ? ts.arraysEqual(lineStarts, computeLineStarts(debugText)) : "unknown"));
7082
7088
  }
7083
7089
  }
7084
7090
  var res = lineStarts[line] + character;
@@ -9593,7 +9599,7 @@ var ts;
9593
9599
  : "linkplain";
9594
9600
  var name = link.name ? ts.entityNameToString(link.name) : "";
9595
9601
  var space = link.name && link.text.startsWith("://") ? "" : " ";
9596
- return "{@" + kind + " " + name + space + link.text + "}";
9602
+ return "{@".concat(kind, " ").concat(name).concat(space).concat(link.text, "}");
9597
9603
  }
9598
9604
  function getEffectiveTypeParameterDeclarations(node) {
9599
9605
  if (ts.isJSDocSignature(node)) {
@@ -10687,11 +10693,11 @@ var ts;
10687
10693
  }
10688
10694
  function packageIdToPackageName(_a) {
10689
10695
  var name = _a.name, subModuleName = _a.subModuleName;
10690
- return subModuleName ? name + "/" + subModuleName : name;
10696
+ return subModuleName ? "".concat(name, "/").concat(subModuleName) : name;
10691
10697
  }
10692
10698
  ts.packageIdToPackageName = packageIdToPackageName;
10693
10699
  function packageIdToString(packageId) {
10694
- return packageIdToPackageName(packageId) + "@" + packageId.version;
10700
+ return "".concat(packageIdToPackageName(packageId), "@").concat(packageId.version);
10695
10701
  }
10696
10702
  ts.packageIdToString = packageIdToString;
10697
10703
  function typeDirectiveIsEqualTo(oldResolution, newResolution) {
@@ -10765,7 +10771,7 @@ var ts;
10765
10771
  function nodePosToString(node) {
10766
10772
  var file = getSourceFileOfNode(node);
10767
10773
  var loc = ts.getLineAndCharacterOfPosition(file, node.pos);
10768
- return file.fileName + "(" + (loc.line + 1) + "," + (loc.character + 1) + ")";
10774
+ return "".concat(file.fileName, "(").concat(loc.line + 1, ",").concat(loc.character + 1, ")");
10769
10775
  }
10770
10776
  ts.nodePosToString = nodePosToString;
10771
10777
  function getEndLinePosition(line, sourceFile) {
@@ -10866,7 +10872,7 @@ var ts;
10866
10872
  ts.isPinnedComment = isPinnedComment;
10867
10873
  function createCommentDirectivesMap(sourceFile, commentDirectives) {
10868
10874
  var directivesByLine = new ts.Map(commentDirectives.map(function (commentDirective) { return ([
10869
- "" + ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line,
10875
+ "".concat(ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line),
10870
10876
  commentDirective,
10871
10877
  ]); }));
10872
10878
  var usedLines = new ts.Map();
@@ -10883,10 +10889,10 @@ var ts;
10883
10889
  });
10884
10890
  }
10885
10891
  function markUsed(line) {
10886
- if (!directivesByLine.has("" + line)) {
10892
+ if (!directivesByLine.has("".concat(line))) {
10887
10893
  return false;
10888
10894
  }
10889
- usedLines.set("" + line, true);
10895
+ usedLines.set("".concat(line), true);
10890
10896
  return true;
10891
10897
  }
10892
10898
  }
@@ -11085,7 +11091,7 @@ var ts;
11085
11091
  }
11086
11092
  return node.text;
11087
11093
  }
11088
- return ts.Debug.fail("Literal kind '" + node.kind + "' not accounted for.");
11094
+ return ts.Debug.fail("Literal kind '".concat(node.kind, "' not accounted for."));
11089
11095
  }
11090
11096
  ts.getLiteralText = getLiteralText;
11091
11097
  function canUseOriginalText(node, flags) {
@@ -13420,11 +13426,11 @@ var ts;
13420
13426
  }
13421
13427
  ts.getEscapedTextOfIdentifierOrLiteral = getEscapedTextOfIdentifierOrLiteral;
13422
13428
  function getPropertyNameForUniqueESSymbol(symbol) {
13423
- return "__@" + ts.getSymbolId(symbol) + "@" + symbol.escapedName;
13429
+ return "__@".concat(ts.getSymbolId(symbol), "@").concat(symbol.escapedName);
13424
13430
  }
13425
13431
  ts.getPropertyNameForUniqueESSymbol = getPropertyNameForUniqueESSymbol;
13426
13432
  function getSymbolNameForPrivateIdentifier(containingClassSymbol, description) {
13427
- return "__#" + ts.getSymbolId(containingClassSymbol) + "@" + description;
13433
+ return "__#".concat(ts.getSymbolId(containingClassSymbol), "@").concat(description);
13428
13434
  }
13429
13435
  ts.getSymbolNameForPrivateIdentifier = getSymbolNameForPrivateIdentifier;
13430
13436
  function isKnownSymbol(symbol) {
@@ -15721,7 +15727,7 @@ var ts;
15721
15727
  }
15722
15728
  ts.getJSXImplicitImportBase = getJSXImplicitImportBase;
15723
15729
  function getJSXRuntimeImport(base, options) {
15724
- return base ? base + "/" + (options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
15730
+ return base ? "".concat(base, "/").concat(options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
15725
15731
  }
15726
15732
  ts.getJSXRuntimeImport = getJSXRuntimeImport;
15727
15733
  function hasZeroOrOneAsteriskCharacter(str) {
@@ -15819,15 +15825,15 @@ var ts;
15819
15825
  }
15820
15826
  var wildcardCharCodes = [42, 63];
15821
15827
  ts.commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"];
15822
- var implicitExcludePathRegexPattern = "(?!(" + ts.commonPackageFolders.join("|") + ")(/|$))";
15828
+ var implicitExcludePathRegexPattern = "(?!(".concat(ts.commonPackageFolders.join("|"), ")(/|$))");
15823
15829
  var filesMatcher = {
15824
15830
  singleAsteriskRegexFragment: "([^./]|(\\.(?!min\\.js$))?)*",
15825
- doubleAsteriskRegexFragment: "(/" + implicitExcludePathRegexPattern + "[^/.][^/]*)*?",
15831
+ doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
15826
15832
  replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment); }
15827
15833
  };
15828
15834
  var directoriesMatcher = {
15829
15835
  singleAsteriskRegexFragment: "[^/]*",
15830
- doubleAsteriskRegexFragment: "(/" + implicitExcludePathRegexPattern + "[^/.][^/]*)*?",
15836
+ doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
15831
15837
  replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment); }
15832
15838
  };
15833
15839
  var excludeMatcher = {
@@ -15845,9 +15851,9 @@ var ts;
15845
15851
  if (!patterns || !patterns.length) {
15846
15852
  return undefined;
15847
15853
  }
15848
- var pattern = patterns.map(function (pattern) { return "(" + pattern + ")"; }).join("|");
15854
+ var pattern = patterns.map(function (pattern) { return "(".concat(pattern, ")"); }).join("|");
15849
15855
  var terminator = usage === "exclude" ? "($|/)" : "$";
15850
- return "^(" + pattern + ")" + terminator;
15856
+ return "^(".concat(pattern, ")").concat(terminator);
15851
15857
  }
15852
15858
  ts.getRegularExpressionForWildcard = getRegularExpressionForWildcard;
15853
15859
  function getRegularExpressionsForWildcards(specs, basePath, usage) {
@@ -15865,7 +15871,7 @@ var ts;
15865
15871
  ts.isImplicitGlob = isImplicitGlob;
15866
15872
  function getPatternFromSpec(spec, basePath, usage) {
15867
15873
  var pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);
15868
- return pattern && "^(" + pattern + ")" + (usage === "exclude" ? "($|/)" : "$");
15874
+ return pattern && "^(".concat(pattern, ")").concat(usage === "exclude" ? "($|/)" : "$");
15869
15875
  }
15870
15876
  ts.getPatternFromSpec = getPatternFromSpec;
15871
15877
  function getSubPatternFromSpec(spec, basePath, usage, _a) {
@@ -15931,7 +15937,7 @@ var ts;
15931
15937
  currentDirectory = ts.normalizePath(currentDirectory);
15932
15938
  var absolutePath = ts.combinePaths(currentDirectory, path);
15933
15939
  return {
15934
- includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^" + pattern + "$"; }),
15940
+ includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^".concat(pattern, "$"); }),
15935
15941
  includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
15936
15942
  includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
15937
15943
  excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
@@ -16176,7 +16182,7 @@ var ts;
16176
16182
  ts.resolutionExtensionIsTSOrJson = resolutionExtensionIsTSOrJson;
16177
16183
  function extensionFromPath(path) {
16178
16184
  var ext = tryGetExtensionFromPath(path);
16179
- return ext !== undefined ? ext : ts.Debug.fail("File " + path + " has unknown extension.");
16185
+ return ext !== undefined ? ext : ts.Debug.fail("File ".concat(path, " has unknown extension."));
16180
16186
  }
16181
16187
  ts.extensionFromPath = extensionFromPath;
16182
16188
  function isAnySupportedFileExtension(path) {
@@ -21247,7 +21253,7 @@ var ts;
21247
21253
  case 326: return "augments";
21248
21254
  case 327: return "implements";
21249
21255
  default:
21250
- return ts.Debug.fail("Unsupported kind: " + ts.Debug.formatSyntaxKind(kind));
21256
+ return ts.Debug.fail("Unsupported kind: ".concat(ts.Debug.formatSyntaxKind(kind)));
21251
21257
  }
21252
21258
  }
21253
21259
  var rawTextScanner;
@@ -21566,7 +21572,7 @@ var ts;
21566
21572
  };
21567
21573
  var definedTextGetter_1 = function (path) {
21568
21574
  var result = textGetter_1(path);
21569
- return result !== undefined ? result : "/* Input file " + path + " was missing */\r\n";
21575
+ return result !== undefined ? result : "/* Input file ".concat(path, " was missing */\r\n");
21570
21576
  };
21571
21577
  var buildInfo_1;
21572
21578
  var getAndCacheBuildInfo_1 = function (getText) {
@@ -25228,7 +25234,7 @@ var ts;
25228
25234
  for (var _i = 0, viableKeywordSuggestions_1 = viableKeywordSuggestions; _i < viableKeywordSuggestions_1.length; _i++) {
25229
25235
  var keyword = viableKeywordSuggestions_1[_i];
25230
25236
  if (expressionText.length > keyword.length + 2 && ts.startsWith(expressionText, keyword)) {
25231
- return keyword + " " + expressionText.slice(keyword.length);
25237
+ return "".concat(keyword, " ").concat(expressionText.slice(keyword.length));
25232
25238
  }
25233
25239
  }
25234
25240
  return undefined;
@@ -30737,7 +30743,7 @@ var ts;
30737
30743
  if (namedArgRegExCache.has(name)) {
30738
30744
  return namedArgRegExCache.get(name);
30739
30745
  }
30740
- var result = new RegExp("(\\s" + name + "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))", "im");
30746
+ var result = new RegExp("(\\s".concat(name, "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"), "im");
30741
30747
  namedArgRegExCache.set(name, result);
30742
30748
  return result;
30743
30749
  }
@@ -32147,8 +32153,8 @@ var ts;
32147
32153
  }
32148
32154
  ts.createCompilerDiagnosticForInvalidCustomType = createCompilerDiagnosticForInvalidCustomType;
32149
32155
  function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {
32150
- var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'" + key + "'"; }).join(", ");
32151
- return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--" + opt.name, namesOfType);
32156
+ var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'".concat(key, "'"); }).join(", ");
32157
+ return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--".concat(opt.name), namesOfType);
32152
32158
  }
32153
32159
  function parseCustomTypeOption(opt, value, errors) {
32154
32160
  return convertJsonOptionOfCustomType(opt, ts.trimString(value || ""), errors);
@@ -32865,10 +32871,10 @@ var ts;
32865
32871
  var newValue = compilerOptionsMap.get(cmd.name);
32866
32872
  var defaultValue = getDefaultValueForOption(cmd);
32867
32873
  if (newValue !== defaultValue) {
32868
- result.push("" + tab + cmd.name + ": " + newValue);
32874
+ result.push("".concat(tab).concat(cmd.name, ": ").concat(newValue));
32869
32875
  }
32870
32876
  else if (ts.hasProperty(ts.defaultInitCompilerOptions, cmd.name)) {
32871
- result.push("" + tab + cmd.name + ": " + defaultValue);
32877
+ result.push("".concat(tab).concat(cmd.name, ": ").concat(defaultValue));
32872
32878
  }
32873
32879
  });
32874
32880
  return result.join(newLine) + newLine;
@@ -32906,19 +32912,19 @@ var ts;
32906
32912
  if (entries.length !== 0) {
32907
32913
  entries.push({ value: "" });
32908
32914
  }
32909
- entries.push({ value: "/* " + category + " */" });
32915
+ entries.push({ value: "/* ".concat(category, " */") });
32910
32916
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
32911
32917
  var option = options_1[_i];
32912
32918
  var optionName = void 0;
32913
32919
  if (compilerOptionsMap.has(option.name)) {
32914
- optionName = "\"" + option.name + "\": " + JSON.stringify(compilerOptionsMap.get(option.name)) + ((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
32920
+ optionName = "\"".concat(option.name, "\": ").concat(JSON.stringify(compilerOptionsMap.get(option.name))).concat((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
32915
32921
  }
32916
32922
  else {
32917
- optionName = "// \"" + option.name + "\": " + JSON.stringify(getDefaultValueForOption(option)) + ",";
32923
+ optionName = "// \"".concat(option.name, "\": ").concat(JSON.stringify(getDefaultValueForOption(option)), ",");
32918
32924
  }
32919
32925
  entries.push({
32920
32926
  value: optionName,
32921
- description: "/* " + (option.description && ts.getLocaleSpecificMessage(option.description) || option.name) + " */"
32927
+ description: "/* ".concat(option.description && ts.getLocaleSpecificMessage(option.description) || option.name, " */")
32922
32928
  });
32923
32929
  marginLength = Math.max(optionName.length, marginLength);
32924
32930
  }
@@ -32926,24 +32932,24 @@ var ts;
32926
32932
  var tab = makePadding(2);
32927
32933
  var result = [];
32928
32934
  result.push("{");
32929
- result.push(tab + "\"compilerOptions\": {");
32930
- result.push("" + tab + tab + "/* " + ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file) + " */");
32935
+ result.push("".concat(tab, "\"compilerOptions\": {"));
32936
+ result.push("".concat(tab).concat(tab, "/* ").concat(ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file), " */"));
32931
32937
  result.push("");
32932
32938
  for (var _a = 0, entries_2 = entries; _a < entries_2.length; _a++) {
32933
32939
  var entry = entries_2[_a];
32934
32940
  var value = entry.value, _b = entry.description, description = _b === void 0 ? "" : _b;
32935
- result.push(value && "" + tab + tab + value + (description && (makePadding(marginLength - value.length + 2) + description)));
32941
+ result.push(value && "".concat(tab).concat(tab).concat(value).concat(description && (makePadding(marginLength - value.length + 2) + description)));
32936
32942
  }
32937
32943
  if (fileNames.length) {
32938
- result.push(tab + "},");
32939
- result.push(tab + "\"files\": [");
32944
+ result.push("".concat(tab, "},"));
32945
+ result.push("".concat(tab, "\"files\": ["));
32940
32946
  for (var i = 0; i < fileNames.length; i++) {
32941
- result.push("" + tab + tab + JSON.stringify(fileNames[i]) + (i === fileNames.length - 1 ? "" : ","));
32947
+ result.push("".concat(tab).concat(tab).concat(JSON.stringify(fileNames[i])).concat(i === fileNames.length - 1 ? "" : ","));
32942
32948
  }
32943
- result.push(tab + "]");
32949
+ result.push("".concat(tab, "]"));
32944
32950
  }
32945
32951
  else {
32946
- result.push(tab + "}");
32952
+ result.push("".concat(tab, "}"));
32947
32953
  }
32948
32954
  result.push("}");
32949
32955
  return result.join(newLine) + newLine;
@@ -33293,7 +33299,7 @@ var ts;
33293
33299
  if (ts.isRootedDiskPath(extendedConfig) || ts.startsWith(extendedConfig, "./") || ts.startsWith(extendedConfig, "../")) {
33294
33300
  var extendedConfigPath = ts.getNormalizedAbsolutePath(extendedConfig, basePath);
33295
33301
  if (!host.fileExists(extendedConfigPath) && !ts.endsWith(extendedConfigPath, ".json")) {
33296
- extendedConfigPath = extendedConfigPath + ".json";
33302
+ extendedConfigPath = "".concat(extendedConfigPath, ".json");
33297
33303
  if (!host.fileExists(extendedConfigPath)) {
33298
33304
  errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));
33299
33305
  return undefined;
@@ -33489,7 +33495,7 @@ var ts;
33489
33495
  if (ts.fileExtensionIs(file, ".json")) {
33490
33496
  if (!jsonOnlyIncludeRegexes) {
33491
33497
  var includes = validatedIncludeSpecs.filter(function (s) { return ts.endsWith(s, ".json"); });
33492
- var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^" + pattern + "$"; });
33498
+ var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^".concat(pattern, "$"); });
33493
33499
  jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map(function (pattern) { return ts.getRegexFromPattern(pattern, host.useCaseSensitiveFileNames); }) : ts.emptyArray;
33494
33500
  }
33495
33501
  var includeIndex = ts.findIndex(jsonOnlyIncludeRegexes, function (re) { return re.test(file); });
@@ -33861,7 +33867,7 @@ var ts;
33861
33867
  var bestVersionKey = result.version, bestVersionPaths = result.paths;
33862
33868
  if (typeof bestVersionPaths !== "object") {
33863
33869
  if (state.traceEnabled) {
33864
- trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['" + bestVersionKey + "']", "object", typeof bestVersionPaths);
33870
+ trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['".concat(bestVersionKey, "']"), "object", typeof bestVersionPaths);
33865
33871
  }
33866
33872
  return;
33867
33873
  }
@@ -34230,7 +34236,7 @@ var ts;
34230
34236
  };
34231
34237
  return cache;
34232
34238
  function getUnderlyingCacheKey(specifier, mode) {
34233
- var result = mode === undefined ? specifier : mode + "|" + specifier;
34239
+ var result = mode === undefined ? specifier : "".concat(mode, "|").concat(specifier);
34234
34240
  memoizedReverseKeys.set(result, [specifier, mode]);
34235
34241
  return result;
34236
34242
  }
@@ -34260,7 +34266,7 @@ var ts;
34260
34266
  }
34261
34267
  function getOrCreateCacheForModuleName(nonRelativeModuleName, mode, redirectedReference) {
34262
34268
  ts.Debug.assert(!ts.isExternalModuleNameRelative(nonRelativeModuleName));
34263
- return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : mode + "|" + nonRelativeModuleName, createPerModuleNameCache);
34269
+ return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : "".concat(mode, "|").concat(nonRelativeModuleName), createPerModuleNameCache);
34264
34270
  }
34265
34271
  function createPerModuleNameCache() {
34266
34272
  var directoryPathMap = new ts.Map();
@@ -34388,10 +34394,10 @@ var ts;
34388
34394
  result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);
34389
34395
  break;
34390
34396
  default:
34391
- return ts.Debug.fail("Unexpected moduleResolution: " + moduleResolution);
34397
+ return ts.Debug.fail("Unexpected moduleResolution: ".concat(moduleResolution));
34392
34398
  }
34393
34399
  if (result && result.resolvedModule)
34394
- ts.perfLogger.logInfoEvent("Module \"" + moduleName + "\" resolved to \"" + result.resolvedModule.resolvedFileName + "\"");
34400
+ ts.perfLogger.logInfoEvent("Module \"".concat(moduleName, "\" resolved to \"").concat(result.resolvedModule.resolvedFileName, "\""));
34395
34401
  ts.perfLogger.logStopResolveModule((result && result.resolvedModule) ? "" + result.resolvedModule.resolvedFileName : "null");
34396
34402
  if (perFolderCache) {
34397
34403
  perFolderCache.set(moduleName, resolutionMode, result);
@@ -34521,7 +34527,7 @@ var ts;
34521
34527
  function resolveJSModule(moduleName, initialDir, host) {
34522
34528
  var _a = tryResolveJSModuleWorker(moduleName, initialDir, host), resolvedModule = _a.resolvedModule, failedLookupLocations = _a.failedLookupLocations;
34523
34529
  if (!resolvedModule) {
34524
- throw new Error("Could not resolve JS module '" + moduleName + "' starting at '" + initialDir + "'. Looked in: " + failedLookupLocations.join(", "));
34530
+ throw new Error("Could not resolve JS module '".concat(moduleName, "' starting at '").concat(initialDir, "'. Looked in: ").concat(failedLookupLocations.join(", ")));
34525
34531
  }
34526
34532
  return resolvedModule.resolvedFileName;
34527
34533
  }
@@ -34620,7 +34626,7 @@ var ts;
34620
34626
  if (traceEnabled) {
34621
34627
  trace(host, ts.Diagnostics.Resolving_real_path_for_0_result_1, path, real);
34622
34628
  }
34623
- ts.Debug.assert(host.fileExists(real), path + " linked to nonexistent file " + real);
34629
+ ts.Debug.assert(host.fileExists(real), "".concat(path, " linked to nonexistent file ").concat(real));
34624
34630
  return real;
34625
34631
  }
34626
34632
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
@@ -35052,7 +35058,7 @@ var ts;
35052
35058
  return undefined;
35053
35059
  }
35054
35060
  var trailingParts = parts.slice(nameParts.length);
35055
- return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : "." + ts.directorySeparator + trailingParts.join(ts.directorySeparator), state, cache, redirectedReference);
35061
+ return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : ".".concat(ts.directorySeparator).concat(trailingParts.join(ts.directorySeparator)), state, cache, redirectedReference);
35056
35062
  }
35057
35063
  function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) {
35058
35064
  if (!scope.packageJsonContent.exports) {
@@ -35364,7 +35370,7 @@ var ts;
35364
35370
  return mangled;
35365
35371
  }
35366
35372
  function getTypesPackageName(packageName) {
35367
- return "@types/" + mangleScopedPackageName(packageName);
35373
+ return "@types/".concat(mangleScopedPackageName(packageName));
35368
35374
  }
35369
35375
  ts.getTypesPackageName = getTypesPackageName;
35370
35376
  function mangleScopedPackageName(packageName) {
@@ -35690,7 +35696,7 @@ var ts;
35690
35696
  if (name) {
35691
35697
  if (ts.isAmbientModule(node)) {
35692
35698
  var moduleName = ts.getTextOfIdentifierOrLiteral(name);
35693
- return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"" + moduleName + "\"");
35699
+ return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"".concat(moduleName, "\""));
35694
35700
  }
35695
35701
  if (name.kind === 161) {
35696
35702
  var nameExpression = name.expression;
@@ -35739,7 +35745,7 @@ var ts;
35739
35745
  case 315:
35740
35746
  return (ts.isJSDocConstructSignature(node) ? "__new" : "__call");
35741
35747
  case 163:
35742
- ts.Debug.assert(node.parent.kind === 315, "Impossible parameter parent kind", function () { return "parent is: " + (ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind) + ", expected JSDocFunctionType"; });
35748
+ ts.Debug.assert(node.parent.kind === 315, "Impossible parameter parent kind", function () { return "parent is: ".concat(ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind, ", expected JSDocFunctionType"); });
35743
35749
  var functionType = node.parent;
35744
35750
  var index = functionType.parameters.indexOf(node);
35745
35751
  return "arg" + index;
@@ -35805,7 +35811,7 @@ var ts;
35805
35811
  }
35806
35812
  var relatedInformation_1 = [];
35807
35813
  if (ts.isTypeAliasDeclaration(node) && ts.nodeIsMissing(node.type) && ts.hasSyntacticModifier(node, 1) && symbol.flags & (2097152 | 788968 | 1920)) {
35808
- relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { " + ts.unescapeLeadingUnderscores(node.name.escapedText) + " }"));
35814
+ relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { ".concat(ts.unescapeLeadingUnderscores(node.name.escapedText), " }")));
35809
35815
  }
35810
35816
  var declarationName_1 = ts.getNameOfDeclaration(node) || node;
35811
35817
  ts.forEach(symbol.declarations, function (declaration, index) {
@@ -37627,7 +37633,7 @@ var ts;
37627
37633
  }
37628
37634
  }
37629
37635
  function bindSourceFileAsExternalModule() {
37630
- bindAnonymousDeclaration(file, 512, "\"" + ts.removeFileExtension(file.fileName) + "\"");
37636
+ bindAnonymousDeclaration(file, 512, "\"".concat(ts.removeFileExtension(file.fileName), "\""));
37631
37637
  }
37632
37638
  function bindExportAssignment(node) {
37633
37639
  if (!container.symbol || !container.symbol.exports) {
@@ -39346,7 +39352,7 @@ var ts;
39346
39352
  if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
39347
39353
  var firstFile_1 = ts.comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 ? sourceSymbolFile : targetSymbolFile;
39348
39354
  var secondFile_1 = firstFile_1 === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
39349
- var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, firstFile_1.path + "|" + secondFile_1.path, function () {
39355
+ var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, "".concat(firstFile_1.path, "|").concat(secondFile_1.path), function () {
39350
39356
  return ({ firstFile: firstFile_1, secondFile: secondFile_1, conflictingSymbols: new ts.Map() });
39351
39357
  });
39352
39358
  var conflictingSymbolInfo = ts.getOrUpdate(filesDuplicates.conflictingSymbols, symbolName_1, function () {
@@ -41630,7 +41636,7 @@ var ts;
41630
41636
  var links = getSymbolLinks(symbol);
41631
41637
  var cache = (links.accessibleChainCache || (links.accessibleChainCache = new ts.Map()));
41632
41638
  var firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, function (_, __, ___, node) { return node; });
41633
- var key = (useOnlyExternalAliasing ? 0 : 1) + "|" + (firstRelevantLocation && getNodeId(firstRelevantLocation)) + "|" + meaning;
41639
+ var key = "".concat(useOnlyExternalAliasing ? 0 : 1, "|").concat(firstRelevantLocation && getNodeId(firstRelevantLocation), "|").concat(meaning);
41634
41640
  if (cache.has(key)) {
41635
41641
  return cache.get(key);
41636
41642
  }
@@ -42398,7 +42404,7 @@ var ts;
42398
42404
  context.symbolDepth = new ts.Map();
42399
42405
  }
42400
42406
  var links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
42401
- var key = getTypeId(type) + "|" + context.flags;
42407
+ var key = "".concat(getTypeId(type), "|").concat(context.flags);
42402
42408
  if (links) {
42403
42409
  links.serializedTypes || (links.serializedTypes = new ts.Map());
42404
42410
  }
@@ -42653,7 +42659,7 @@ var ts;
42653
42659
  }
42654
42660
  }
42655
42661
  if (checkTruncationLength(context) && (i + 2 < properties.length - 1)) {
42656
- typeElements.push(ts.factory.createPropertySignature(undefined, "... " + (properties.length - i) + " more ...", undefined, undefined));
42662
+ typeElements.push(ts.factory.createPropertySignature(undefined, "... ".concat(properties.length - i, " more ..."), undefined, undefined));
42657
42663
  addPropertyToElementList(properties[properties.length - 1], context, typeElements);
42658
42664
  break;
42659
42665
  }
@@ -42761,7 +42767,7 @@ var ts;
42761
42767
  else if (types.length > 2) {
42762
42768
  return [
42763
42769
  typeToTypeNodeHelper(types[0], context),
42764
- ts.factory.createTypeReferenceNode("... " + (types.length - 2) + " more ...", undefined),
42770
+ ts.factory.createTypeReferenceNode("... ".concat(types.length - 2, " more ..."), undefined),
42765
42771
  typeToTypeNodeHelper(types[types.length - 1], context)
42766
42772
  ];
42767
42773
  }
@@ -42774,7 +42780,7 @@ var ts;
42774
42780
  var type = types_2[_i];
42775
42781
  i++;
42776
42782
  if (checkTruncationLength(context) && (i + 2 < types.length - 1)) {
42777
- result_5.push(ts.factory.createTypeReferenceNode("... " + (types.length - i) + " more ...", undefined));
42783
+ result_5.push(ts.factory.createTypeReferenceNode("... ".concat(types.length - i, " more ..."), undefined));
42778
42784
  var typeNode_1 = typeToTypeNodeHelper(types[types.length - 1], context);
42779
42785
  if (typeNode_1) {
42780
42786
  result_5.push(typeNode_1);
@@ -43250,7 +43256,7 @@ var ts;
43250
43256
  var text = rawtext;
43251
43257
  while (((_b = context.typeParameterNamesByText) === null || _b === void 0 ? void 0 : _b.has(text)) || typeParameterShadowsNameInScope(text, context, type)) {
43252
43258
  i++;
43253
- text = rawtext + "_" + i;
43259
+ text = "".concat(rawtext, "_").concat(i);
43254
43260
  }
43255
43261
  if (text !== rawtext) {
43256
43262
  result = ts.factory.createIdentifier(text, result.typeArguments);
@@ -43532,7 +43538,7 @@ var ts;
43532
43538
  function getNameForJSDocFunctionParameter(p, index) {
43533
43539
  return p.name && ts.isIdentifier(p.name) && p.name.escapedText === "this" ? "this"
43534
43540
  : getEffectiveDotDotDotForParameter(p) ? "args"
43535
- : "arg" + index;
43541
+ : "arg".concat(index);
43536
43542
  }
43537
43543
  function rewriteModuleSpecifier(parent, lit) {
43538
43544
  if (bundled) {
@@ -44341,7 +44347,7 @@ var ts;
44341
44347
  }
44342
44348
  return results_1;
44343
44349
  }
44344
- return ts.Debug.fail("Unhandled class member kind! " + (p.__debugFlags || p.flags));
44350
+ return ts.Debug.fail("Unhandled class member kind! ".concat(p.__debugFlags || p.flags));
44345
44351
  };
44346
44352
  }
44347
44353
  function serializePropertySymbolForInterface(p, baseType) {
@@ -44411,7 +44417,7 @@ var ts;
44411
44417
  if (ref) {
44412
44418
  return ref;
44413
44419
  }
44414
- var tempName = getUnusedName(rootName + "_base");
44420
+ var tempName = getUnusedName("".concat(rootName, "_base"));
44415
44421
  var statement = ts.factory.createVariableStatement(undefined, ts.factory.createVariableDeclarationList([
44416
44422
  ts.factory.createVariableDeclaration(tempName, undefined, typeToTypeNodeHelper(staticType, context))
44417
44423
  ], 2));
@@ -44456,7 +44462,7 @@ var ts;
44456
44462
  var original = input;
44457
44463
  while ((_a = context.usedSymbolNames) === null || _a === void 0 ? void 0 : _a.has(input)) {
44458
44464
  i++;
44459
- input = original + "_" + i;
44465
+ input = "".concat(original, "_").concat(i);
44460
44466
  }
44461
44467
  (_b = context.usedSymbolNames) === null || _b === void 0 ? void 0 : _b.add(input);
44462
44468
  if (id) {
@@ -44562,15 +44568,15 @@ var ts;
44562
44568
  if (nameType.flags & 384) {
44563
44569
  var name = "" + nameType.value;
44564
44570
  if (!ts.isIdentifierText(name, ts.getEmitScriptTarget(compilerOptions)) && !ts.isNumericLiteralName(name)) {
44565
- return "\"" + ts.escapeString(name, 34) + "\"";
44571
+ return "\"".concat(ts.escapeString(name, 34), "\"");
44566
44572
  }
44567
44573
  if (ts.isNumericLiteralName(name) && ts.startsWith(name, "-")) {
44568
- return "[" + name + "]";
44574
+ return "[".concat(name, "]");
44569
44575
  }
44570
44576
  return name;
44571
44577
  }
44572
44578
  if (nameType.flags & 8192) {
44573
- return "[" + getNameOfSymbolAsWritten(nameType.symbol, context) + "]";
44579
+ return "[".concat(getNameOfSymbolAsWritten(nameType.symbol, context), "]");
44574
44580
  }
44575
44581
  }
44576
44582
  }
@@ -45060,12 +45066,9 @@ var ts;
45060
45066
  }
45061
45067
  }
45062
45068
  if (ts.isInJSFile(declaration)) {
45063
- var typeTag = ts.getJSDocType(func);
45064
- if (typeTag && ts.isFunctionTypeNode(typeTag)) {
45065
- var signature = getSignatureFromDeclaration(typeTag);
45066
- var pos = func.parameters.indexOf(declaration);
45067
- return declaration.dotDotDotToken ? getRestTypeAtPosition(signature, pos) : getTypeAtPosition(signature, pos);
45068
- }
45069
+ var type_1 = getParameterTypeOfTypeTag(func, declaration);
45070
+ if (type_1)
45071
+ return type_1;
45069
45072
  }
45070
45073
  var type = declaration.symbol.escapedName === "this" ? getContextualThisParameterType(func) : getContextuallyTypedParameterType(declaration);
45071
45074
  if (type) {
@@ -45557,8 +45560,8 @@ var ts;
45557
45560
  if (typeNode === undefined) {
45558
45561
  return useUnknownInCatchVariables ? unknownType : anyType;
45559
45562
  }
45560
- var type_1 = getTypeOfNode(typeNode);
45561
- return isTypeAny(type_1) || type_1 === unknownType ? type_1 : errorType;
45563
+ var type_2 = getTypeOfNode(typeNode);
45564
+ return isTypeAny(type_2) || type_2 === unknownType ? type_2 : errorType;
45562
45565
  }
45563
45566
  if (ts.isSourceFile(declaration) && ts.isJsonSourceFile(declaration)) {
45564
45567
  if (!declaration.statements.length) {
@@ -45773,11 +45776,11 @@ var ts;
45773
45776
  return errorType;
45774
45777
  }
45775
45778
  var exportEquals = getMergedSymbol(symbol.exports.get("export="));
45776
- var type_2 = getWidenedTypeForAssignmentDeclaration(exportEquals, exportEquals === resolvedModule ? undefined : resolvedModule);
45779
+ var type_3 = getWidenedTypeForAssignmentDeclaration(exportEquals, exportEquals === resolvedModule ? undefined : resolvedModule);
45777
45780
  if (!popTypeResolution()) {
45778
45781
  return reportCircularityError(symbol);
45779
45782
  }
45780
- return type_2;
45783
+ return type_3;
45781
45784
  }
45782
45785
  }
45783
45786
  var type = createObjectType(16, symbol);
@@ -47018,7 +47021,7 @@ var ts;
47018
47021
  !leftName ? rightName :
47019
47022
  !rightName ? leftName :
47020
47023
  undefined;
47021
- var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg" + i);
47024
+ var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
47022
47025
  paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
47023
47026
  params[i] = paramSymbol;
47024
47027
  }
@@ -47710,10 +47713,10 @@ var ts;
47710
47713
  var baseTypes = [];
47711
47714
  var different = false;
47712
47715
  for (var _i = 0, types_7 = types; _i < types_7.length; _i++) {
47713
- var type_3 = types_7[_i];
47714
- var baseType = getBaseConstraint(type_3);
47716
+ var type_4 = types_7[_i];
47717
+ var baseType = getBaseConstraint(type_4);
47715
47718
  if (baseType) {
47716
- if (baseType !== type_3) {
47719
+ if (baseType !== type_4) {
47717
47720
  different = true;
47718
47721
  }
47719
47722
  baseTypes.push(baseType);
@@ -48323,6 +48326,13 @@ var ts;
48323
48326
  var typeTag = ts.getJSDocTypeTag(node);
48324
48327
  return (typeTag === null || typeTag === void 0 ? void 0 : typeTag.typeExpression) && getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression));
48325
48328
  }
48329
+ function getParameterTypeOfTypeTag(func, parameter) {
48330
+ var signature = getSignatureOfTypeTag(func);
48331
+ if (!signature)
48332
+ return undefined;
48333
+ var pos = func.parameters.indexOf(parameter);
48334
+ return parameter.dotDotDotToken ? getRestTypeAtPosition(signature, pos) : getTypeAtPosition(signature, pos);
48335
+ }
48326
48336
  function getReturnTypeOfTypeTag(node) {
48327
48337
  var signature = getSignatureOfTypeTag(node);
48328
48338
  return signature && getReturnTypeOfSignature(signature);
@@ -48724,7 +48734,7 @@ var ts;
48724
48734
  return result;
48725
48735
  }
48726
48736
  function getAliasId(aliasSymbol, aliasTypeArguments) {
48727
- return aliasSymbol ? "@" + getSymbolId(aliasSymbol) + (aliasTypeArguments ? ":" + getTypeListId(aliasTypeArguments) : "") : "";
48737
+ return aliasSymbol ? "@".concat(getSymbolId(aliasSymbol)) + (aliasTypeArguments ? ":".concat(getTypeListId(aliasTypeArguments)) : "") : "";
48728
48738
  }
48729
48739
  function getPropagatingFlagsOfTypes(types, excludeKinds) {
48730
48740
  var result = 0;
@@ -48887,7 +48897,7 @@ var ts;
48887
48897
  return undefined;
48888
48898
  }
48889
48899
  function getSymbolPath(symbol) {
48890
- return symbol.parent ? getSymbolPath(symbol.parent) + "." + symbol.escapedName : symbol.escapedName;
48900
+ return symbol.parent ? "".concat(getSymbolPath(symbol.parent), ".").concat(symbol.escapedName) : symbol.escapedName;
48891
48901
  }
48892
48902
  function getUnresolvedSymbolForEntityName(name) {
48893
48903
  var identifier = name.kind === 160 ? name.right :
@@ -48898,7 +48908,7 @@ var ts;
48898
48908
  var parentSymbol = name.kind === 160 ? getUnresolvedSymbolForEntityName(name.left) :
48899
48909
  name.kind === 205 ? getUnresolvedSymbolForEntityName(name.expression) :
48900
48910
  undefined;
48901
- var path = parentSymbol ? getSymbolPath(parentSymbol) + "." + text : text;
48911
+ var path = parentSymbol ? "".concat(getSymbolPath(parentSymbol), ".").concat(text) : text;
48902
48912
  var result = unresolvedSymbols.get(path);
48903
48913
  if (!result) {
48904
48914
  unresolvedSymbols.set(path, result = createSymbol(524288, text, 1048576));
@@ -48964,7 +48974,7 @@ var ts;
48964
48974
  if (substitute.flags & 3 || substitute === baseType) {
48965
48975
  return baseType;
48966
48976
  }
48967
- var id = getTypeId(baseType) + ">" + getTypeId(substitute);
48977
+ var id = "".concat(getTypeId(baseType), ">").concat(getTypeId(substitute));
48968
48978
  var cached = substitutionTypes.get(id);
48969
48979
  if (cached) {
48970
48980
  return cached;
@@ -49808,9 +49818,9 @@ var ts;
49808
49818
  return types[0];
49809
49819
  }
49810
49820
  var typeKey = !origin ? getTypeListId(types) :
49811
- origin.flags & 1048576 ? "|" + getTypeListId(origin.types) :
49812
- origin.flags & 2097152 ? "&" + getTypeListId(origin.types) :
49813
- "#" + origin.type.id + "|" + getTypeListId(types);
49821
+ origin.flags & 1048576 ? "|".concat(getTypeListId(origin.types)) :
49822
+ origin.flags & 2097152 ? "&".concat(getTypeListId(origin.types)) :
49823
+ "#".concat(origin.type.id, "|").concat(getTypeListId(types));
49814
49824
  var id = typeKey + getAliasId(aliasSymbol, aliasTypeArguments);
49815
49825
  var type = unionTypes.get(id);
49816
49826
  if (!type) {
@@ -50260,7 +50270,7 @@ var ts;
50260
50270
  if (ts.every(newTexts, function (t) { return t === ""; }) && ts.every(newTypes, function (t) { return !!(t.flags & 4); })) {
50261
50271
  return stringType;
50262
50272
  }
50263
- var id = getTypeListId(newTypes) + "|" + ts.map(newTexts, function (t) { return t.length; }).join(",") + "|" + newTexts.join("");
50273
+ var id = "".concat(getTypeListId(newTypes), "|").concat(ts.map(newTexts, function (t) { return t.length; }).join(","), "|").concat(newTexts.join(""));
50264
50274
  var type = templateLiteralTypes.get(id);
50265
50275
  if (!type) {
50266
50276
  templateLiteralTypes.set(id, type = createTemplateLiteralType(newTexts, newTypes));
@@ -50320,7 +50330,7 @@ var ts;
50320
50330
  return str;
50321
50331
  }
50322
50332
  function getStringMappingTypeForGenericType(symbol, type) {
50323
- var id = getSymbolId(symbol) + "," + getTypeId(type);
50333
+ var id = "".concat(getSymbolId(symbol), ",").concat(getTypeId(type));
50324
50334
  var result = stringMappingTypes.get(id);
50325
50335
  if (!result) {
50326
50336
  stringMappingTypes.set(id, result = createStringMappingType(symbol, type));
@@ -51228,7 +51238,7 @@ var ts;
51228
51238
  function createUniqueESSymbolType(symbol) {
51229
51239
  var type = createType(8192);
51230
51240
  type.symbol = symbol;
51231
- type.escapedName = "__@" + type.symbol.escapedName + "@" + getSymbolId(type.symbol);
51241
+ type.escapedName = "__@".concat(type.symbol.escapedName, "@").concat(getSymbolId(type.symbol));
51232
51242
  return type;
51233
51243
  }
51234
51244
  function getESSymbolLikeTypeForNode(node) {
@@ -52661,11 +52671,11 @@ var ts;
52661
52671
  var overflow = false;
52662
52672
  var overrideNextErrorInfo = 0;
52663
52673
  var lastSkippedInfo;
52664
- var incompatibleStack = [];
52674
+ var incompatibleStack;
52665
52675
  var inPropertyCheck = false;
52666
52676
  ts.Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking");
52667
52677
  var result = isRelatedTo(source, target, 3, !!errorNode, headMessage);
52668
- if (incompatibleStack.length) {
52678
+ if (incompatibleStack) {
52669
52679
  reportIncompatibleStack();
52670
52680
  }
52671
52681
  if (overflow) {
@@ -52720,19 +52730,19 @@ var ts;
52720
52730
  return {
52721
52731
  errorInfo: errorInfo,
52722
52732
  lastSkippedInfo: lastSkippedInfo,
52723
- incompatibleStack: incompatibleStack.slice(),
52733
+ incompatibleStack: incompatibleStack === null || incompatibleStack === void 0 ? void 0 : incompatibleStack.slice(),
52724
52734
  overrideNextErrorInfo: overrideNextErrorInfo,
52725
- relatedInfo: !relatedInfo ? undefined : relatedInfo.slice()
52735
+ relatedInfo: relatedInfo === null || relatedInfo === void 0 ? void 0 : relatedInfo.slice(),
52726
52736
  };
52727
52737
  }
52728
52738
  function reportIncompatibleError(message, arg0, arg1, arg2, arg3) {
52729
52739
  overrideNextErrorInfo++;
52730
52740
  lastSkippedInfo = undefined;
52731
- incompatibleStack.push([message, arg0, arg1, arg2, arg3]);
52741
+ (incompatibleStack || (incompatibleStack = [])).push([message, arg0, arg1, arg2, arg3]);
52732
52742
  }
52733
52743
  function reportIncompatibleStack() {
52734
- var stack = incompatibleStack;
52735
- incompatibleStack = [];
52744
+ var stack = incompatibleStack || [];
52745
+ incompatibleStack = undefined;
52736
52746
  var info = lastSkippedInfo;
52737
52747
  lastSkippedInfo = undefined;
52738
52748
  if (stack.length === 1) {
@@ -52749,20 +52759,20 @@ var ts;
52749
52759
  switch (msg.code) {
52750
52760
  case ts.Diagnostics.Types_of_property_0_are_incompatible.code: {
52751
52761
  if (path.indexOf("new ") === 0) {
52752
- path = "(" + path + ")";
52762
+ path = "(".concat(path, ")");
52753
52763
  }
52754
52764
  var str = "" + args[0];
52755
52765
  if (path.length === 0) {
52756
- path = "" + str;
52766
+ path = "".concat(str);
52757
52767
  }
52758
52768
  else if (ts.isIdentifierText(str, ts.getEmitScriptTarget(compilerOptions))) {
52759
- path = path + "." + str;
52769
+ path = "".concat(path, ".").concat(str);
52760
52770
  }
52761
52771
  else if (str[0] === "[" && str[str.length - 1] === "]") {
52762
- path = "" + path + str;
52772
+ path = "".concat(path).concat(str);
52763
52773
  }
52764
52774
  else {
52765
- path = path + "[" + str + "]";
52775
+ path = "".concat(path, "[").concat(str, "]");
52766
52776
  }
52767
52777
  break;
52768
52778
  }
@@ -52789,7 +52799,7 @@ var ts;
52789
52799
  msg.code === ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code)
52790
52800
  ? ""
52791
52801
  : "...";
52792
- path = "" + prefix + path + "(" + params + ")";
52802
+ path = "".concat(prefix).concat(path, "(").concat(params, ")");
52793
52803
  }
52794
52804
  break;
52795
52805
  }
@@ -52802,7 +52812,7 @@ var ts;
52802
52812
  break;
52803
52813
  }
52804
52814
  default:
52805
- return ts.Debug.fail("Unhandled Diagnostic: " + msg.code);
52815
+ return ts.Debug.fail("Unhandled Diagnostic: ".concat(msg.code));
52806
52816
  }
52807
52817
  }
52808
52818
  if (path) {
@@ -52826,7 +52836,7 @@ var ts;
52826
52836
  }
52827
52837
  function reportError(message, arg0, arg1, arg2, arg3) {
52828
52838
  ts.Debug.assert(!!errorNode);
52829
- if (incompatibleStack.length)
52839
+ if (incompatibleStack)
52830
52840
  reportIncompatibleStack();
52831
52841
  if (message.elidedInCompatabilityPyramid)
52832
52842
  return;
@@ -52842,7 +52852,7 @@ var ts;
52842
52852
  }
52843
52853
  }
52844
52854
  function reportRelationError(message, source, target) {
52845
- if (incompatibleStack.length)
52855
+ if (incompatibleStack)
52846
52856
  reportIncompatibleStack();
52847
52857
  var _a = getTypeNamesForErrorDisplay(source, target), sourceType = _a[0], targetType = _a[1];
52848
52858
  var generalizedSource = source;
@@ -52933,7 +52943,9 @@ var ts;
52933
52943
  if (isSimpleTypeRelatedTo(originalSource, originalTarget, relation, reportErrors ? reportError : undefined)) {
52934
52944
  return -1;
52935
52945
  }
52936
- reportErrorResults(originalSource, originalTarget, 0, !!(ts.getObjectFlags(originalSource) & 2048));
52946
+ if (reportErrors) {
52947
+ reportErrorResults(originalSource, originalTarget, originalSource, originalTarget, headMessage);
52948
+ }
52937
52949
  return 0;
52938
52950
  }
52939
52951
  var source = getNormalizedType(originalSource, false);
@@ -52941,127 +52953,121 @@ var ts;
52941
52953
  if (source === target)
52942
52954
  return -1;
52943
52955
  if (relation === identityRelation) {
52944
- return isIdenticalTo(source, target, recursionFlags);
52956
+ if (source.flags !== target.flags)
52957
+ return 0;
52958
+ if (source.flags & 67358815)
52959
+ return -1;
52960
+ traceUnionsOrIntersectionsTooLarge(source, target);
52961
+ return recursiveTypeRelatedTo(source, target, false, 0, recursionFlags);
52945
52962
  }
52946
52963
  if (source.flags & 262144 && getConstraintOfType(source) === target) {
52947
52964
  return -1;
52948
52965
  }
52949
- if (target.flags & 1048576 && source.flags & 524288 &&
52950
- target.types.length <= 3 && maybeTypeOfKind(target, 98304)) {
52951
- var nullStrippedTarget = extractTypesOfKind(target, ~98304);
52952
- if (!(nullStrippedTarget.flags & (1048576 | 131072))) {
52953
- target = getNormalizedType(nullStrippedTarget, true);
52966
+ if (source.flags & 470302716 && target.flags & 1048576) {
52967
+ var types = target.types;
52968
+ var candidate = types.length === 2 && types[0].flags & 98304 ? types[1] :
52969
+ types.length === 3 && types[0].flags & 98304 && types[1].flags & 98304 ? types[2] :
52970
+ undefined;
52971
+ if (candidate && !(candidate.flags & 98304)) {
52972
+ target = getNormalizedType(candidate, true);
52973
+ if (source === target)
52974
+ return -1;
52954
52975
  }
52955
- if (source === nullStrippedTarget)
52956
- return -1;
52957
52976
  }
52958
52977
  if (relation === comparableRelation && !(target.flags & 131072) && isSimpleTypeRelatedTo(target, source, relation) ||
52959
52978
  isSimpleTypeRelatedTo(source, target, relation, reportErrors ? reportError : undefined))
52960
52979
  return -1;
52961
- var isComparingJsxAttributes = !!(ts.getObjectFlags(source) & 2048);
52962
- var isPerformingExcessPropertyChecks = !(intersectionState & 2) && (isObjectLiteralType(source) && ts.getObjectFlags(source) & 16384);
52963
- if (isPerformingExcessPropertyChecks) {
52964
- if (hasExcessProperties(source, target, reportErrors)) {
52980
+ if (source.flags & 469499904 || target.flags & 469499904) {
52981
+ var isPerformingExcessPropertyChecks = !(intersectionState & 2) && (isObjectLiteralType(source) && ts.getObjectFlags(source) & 16384);
52982
+ if (isPerformingExcessPropertyChecks) {
52983
+ if (hasExcessProperties(source, target, reportErrors)) {
52984
+ if (reportErrors) {
52985
+ reportRelationError(headMessage, source, originalTarget.aliasSymbol ? originalTarget : target);
52986
+ }
52987
+ return 0;
52988
+ }
52989
+ }
52990
+ var isPerformingCommonPropertyChecks = relation !== comparableRelation && !(intersectionState & 2) &&
52991
+ source.flags & (131068 | 524288 | 2097152) && source !== globalObjectType &&
52992
+ target.flags & (524288 | 2097152) && isWeakType(target) &&
52993
+ (getPropertiesOfType(source).length > 0 || typeHasCallOrConstructSignatures(source));
52994
+ var isComparingJsxAttributes = !!(ts.getObjectFlags(source) & 2048);
52995
+ if (isPerformingCommonPropertyChecks && !hasCommonProperties(source, target, isComparingJsxAttributes)) {
52965
52996
  if (reportErrors) {
52966
- reportRelationError(headMessage, source, originalTarget.aliasSymbol ? originalTarget : target);
52997
+ var sourceString = typeToString(originalSource.aliasSymbol ? originalSource : source);
52998
+ var targetString = typeToString(originalTarget.aliasSymbol ? originalTarget : target);
52999
+ var calls = getSignaturesOfType(source, 0);
53000
+ var constructs = getSignaturesOfType(source, 1);
53001
+ if (calls.length > 0 && isRelatedTo(getReturnTypeOfSignature(calls[0]), target, 1, false) ||
53002
+ constructs.length > 0 && isRelatedTo(getReturnTypeOfSignature(constructs[0]), target, 1, false)) {
53003
+ reportError(ts.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it, sourceString, targetString);
53004
+ }
53005
+ else {
53006
+ reportError(ts.Diagnostics.Type_0_has_no_properties_in_common_with_type_1, sourceString, targetString);
53007
+ }
52967
53008
  }
52968
53009
  return 0;
52969
53010
  }
52970
- }
52971
- var isPerformingCommonPropertyChecks = relation !== comparableRelation && !(intersectionState & 2) &&
52972
- source.flags & (131068 | 524288 | 2097152) && source !== globalObjectType &&
52973
- target.flags & (524288 | 2097152) && isWeakType(target) &&
52974
- (getPropertiesOfType(source).length > 0 || typeHasCallOrConstructSignatures(source));
52975
- if (isPerformingCommonPropertyChecks && !hasCommonProperties(source, target, isComparingJsxAttributes)) {
52976
- if (reportErrors) {
52977
- var sourceString = typeToString(originalSource.aliasSymbol ? originalSource : source);
52978
- var targetString = typeToString(originalTarget.aliasSymbol ? originalTarget : target);
52979
- var calls = getSignaturesOfType(source, 0);
52980
- var constructs = getSignaturesOfType(source, 1);
52981
- if (calls.length > 0 && isRelatedTo(getReturnTypeOfSignature(calls[0]), target, 1, false) ||
52982
- constructs.length > 0 && isRelatedTo(getReturnTypeOfSignature(constructs[0]), target, 1, false)) {
52983
- reportError(ts.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it, sourceString, targetString);
52984
- }
52985
- else {
52986
- reportError(ts.Diagnostics.Type_0_has_no_properties_in_common_with_type_1, sourceString, targetString);
52987
- }
53011
+ traceUnionsOrIntersectionsTooLarge(source, target);
53012
+ var skipCaching = source.flags & 1048576 && source.types.length < 4 && !(target.flags & 1048576) ||
53013
+ target.flags & 1048576 && target.types.length < 4 && !(source.flags & 469499904);
53014
+ var result_7 = skipCaching ?
53015
+ unionOrIntersectionRelatedTo(source, target, reportErrors, intersectionState) :
53016
+ recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags);
53017
+ if (result_7 && !inPropertyCheck && (target.flags & 2097152 && (isPerformingExcessPropertyChecks || isPerformingCommonPropertyChecks) ||
53018
+ isNonGenericObjectType(target) && !isArrayType(target) && !isTupleType(target) && source.flags & 2097152 && getApparentType(source).flags & 3670016 && !ts.some(source.types, function (t) { return !!(ts.getObjectFlags(t) & 524288); }))) {
53019
+ inPropertyCheck = true;
53020
+ result_7 &= recursiveTypeRelatedTo(source, target, reportErrors, 4, recursionFlags);
53021
+ inPropertyCheck = false;
52988
53022
  }
52989
- return 0;
52990
- }
52991
- traceUnionsOrIntersectionsTooLarge(source, target);
52992
- var result = 0;
52993
- var saveErrorInfo = captureErrorCalculationState();
52994
- if ((source.flags & 1048576 || target.flags & 1048576) && getConstituentCount(source) * getConstituentCount(target) < 4) {
52995
- result = structuredTypeRelatedTo(source, target, reportErrors, intersectionState | 8);
52996
- }
52997
- else if (source.flags & 3145728 || target.flags & 3145728) {
52998
- result = recursiveTypeRelatedTo(source, target, reportErrors, intersectionState | 8, recursionFlags);
52999
- }
53000
- if (!result && !(source.flags & 1048576) && (source.flags & (469499904) || target.flags & 469499904)) {
53001
- if (result = recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags)) {
53002
- resetErrorInfo(saveErrorInfo);
53023
+ if (result_7) {
53024
+ return result_7;
53003
53025
  }
53004
53026
  }
53005
- if (!result && source.flags & (2097152 | 262144)) {
53006
- var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 ? source.types : [source], !!(target.flags & 1048576));
53007
- if (constraint && (source.flags & 2097152 || target.flags & 1048576)) {
53008
- if (everyType(constraint, function (c) { return c !== source; })) {
53009
- if (result = isRelatedTo(constraint, target, 1, false, undefined, intersectionState)) {
53010
- resetErrorInfo(saveErrorInfo);
53011
- }
53012
- }
53027
+ if (reportErrors) {
53028
+ reportErrorResults(originalSource, originalTarget, source, target, headMessage);
53029
+ }
53030
+ return 0;
53031
+ }
53032
+ function reportErrorResults(originalSource, originalTarget, source, target, headMessage) {
53033
+ var sourceHasBase = !!getSingleBaseForNonAugmentingSubtype(originalSource);
53034
+ var targetHasBase = !!getSingleBaseForNonAugmentingSubtype(originalTarget);
53035
+ source = (originalSource.aliasSymbol || sourceHasBase) ? originalSource : source;
53036
+ target = (originalTarget.aliasSymbol || targetHasBase) ? originalTarget : target;
53037
+ var maybeSuppress = overrideNextErrorInfo > 0;
53038
+ if (maybeSuppress) {
53039
+ overrideNextErrorInfo--;
53040
+ }
53041
+ if (source.flags & 524288 && target.flags & 524288) {
53042
+ var currentError = errorInfo;
53043
+ tryElaborateArrayLikeErrors(source, target, true);
53044
+ if (errorInfo !== currentError) {
53045
+ maybeSuppress = !!errorInfo;
53046
+ }
53047
+ }
53048
+ if (source.flags & 524288 && target.flags & 131068) {
53049
+ tryElaborateErrorsForPrimitivesAndObjects(source, target);
53050
+ }
53051
+ else if (source.symbol && source.flags & 524288 && globalObjectType === source) {
53052
+ reportError(ts.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);
53053
+ }
53054
+ else if (ts.getObjectFlags(source) & 2048 && target.flags & 2097152) {
53055
+ var targetTypes = target.types;
53056
+ var intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode);
53057
+ var intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode);
53058
+ if (!isErrorType(intrinsicAttributes) && !isErrorType(intrinsicClassAttributes) &&
53059
+ (ts.contains(targetTypes, intrinsicAttributes) || ts.contains(targetTypes, intrinsicClassAttributes))) {
53060
+ return;
53013
53061
  }
53014
53062
  }
53015
- if (result && !inPropertyCheck && (target.flags & 2097152 && (isPerformingExcessPropertyChecks || isPerformingCommonPropertyChecks) ||
53016
- isNonGenericObjectType(target) && !isArrayType(target) && !isTupleType(target) && source.flags & 2097152 && getApparentType(source).flags & 3670016 && !ts.some(source.types, function (t) { return !!(ts.getObjectFlags(t) & 524288); }))) {
53017
- inPropertyCheck = true;
53018
- result &= recursiveTypeRelatedTo(source, target, reportErrors, 4, recursionFlags);
53019
- inPropertyCheck = false;
53063
+ else {
53064
+ errorInfo = elaborateNeverIntersection(errorInfo, originalTarget);
53020
53065
  }
53021
- reportErrorResults(source, target, result, isComparingJsxAttributes);
53022
- return result;
53023
- function reportErrorResults(source, target, result, isComparingJsxAttributes) {
53024
- if (!result && reportErrors) {
53025
- var sourceHasBase = !!getSingleBaseForNonAugmentingSubtype(originalSource);
53026
- var targetHasBase = !!getSingleBaseForNonAugmentingSubtype(originalTarget);
53027
- source = (originalSource.aliasSymbol || sourceHasBase) ? originalSource : source;
53028
- target = (originalTarget.aliasSymbol || targetHasBase) ? originalTarget : target;
53029
- var maybeSuppress = overrideNextErrorInfo > 0;
53030
- if (maybeSuppress) {
53031
- overrideNextErrorInfo--;
53032
- }
53033
- if (source.flags & 524288 && target.flags & 524288) {
53034
- var currentError = errorInfo;
53035
- tryElaborateArrayLikeErrors(source, target, reportErrors);
53036
- if (errorInfo !== currentError) {
53037
- maybeSuppress = !!errorInfo;
53038
- }
53039
- }
53040
- if (source.flags & 524288 && target.flags & 131068) {
53041
- tryElaborateErrorsForPrimitivesAndObjects(source, target);
53042
- }
53043
- else if (source.symbol && source.flags & 524288 && globalObjectType === source) {
53044
- reportError(ts.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);
53045
- }
53046
- else if (isComparingJsxAttributes && target.flags & 2097152) {
53047
- var targetTypes = target.types;
53048
- var intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode);
53049
- var intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode);
53050
- if (!isErrorType(intrinsicAttributes) && !isErrorType(intrinsicClassAttributes) &&
53051
- (ts.contains(targetTypes, intrinsicAttributes) || ts.contains(targetTypes, intrinsicClassAttributes))) {
53052
- return result;
53053
- }
53054
- }
53055
- else {
53056
- errorInfo = elaborateNeverIntersection(errorInfo, originalTarget);
53057
- }
53058
- if (!headMessage && maybeSuppress) {
53059
- lastSkippedInfo = [source, target];
53060
- return result;
53061
- }
53062
- reportRelationError(headMessage, source, target);
53063
- }
53066
+ if (!headMessage && maybeSuppress) {
53067
+ lastSkippedInfo = [source, target];
53068
+ return;
53064
53069
  }
53070
+ reportRelationError(headMessage, source, target);
53065
53071
  }
53066
53072
  function traceUnionsOrIntersectionsTooLarge(source, target) {
53067
53073
  if (!ts.tracing) {
@@ -53087,21 +53093,6 @@ var ts;
53087
53093
  }
53088
53094
  }
53089
53095
  }
53090
- function isIdenticalTo(source, target, recursionFlags) {
53091
- if (source.flags !== target.flags)
53092
- return 0;
53093
- if (source.flags & 67358815)
53094
- return -1;
53095
- traceUnionsOrIntersectionsTooLarge(source, target);
53096
- if (source.flags & 3145728) {
53097
- var result_7 = eachTypeRelatedToSomeType(source, target);
53098
- if (result_7) {
53099
- result_7 &= eachTypeRelatedToSomeType(target, source);
53100
- }
53101
- return result_7;
53102
- }
53103
- return recursiveTypeRelatedTo(source, target, false, 0, recursionFlags);
53104
- }
53105
53096
  function getTypeOfPropertyInTypes(types, name) {
53106
53097
  var appendPropType = function (propTypes, type) {
53107
53098
  var _a;
@@ -53190,6 +53181,29 @@ var ts;
53190
53181
  function shouldCheckAsExcessProperty(prop, container) {
53191
53182
  return prop.valueDeclaration && container.valueDeclaration && prop.valueDeclaration.parent === container.valueDeclaration;
53192
53183
  }
53184
+ function unionOrIntersectionRelatedTo(source, target, reportErrors, intersectionState) {
53185
+ if (source.flags & 1048576) {
53186
+ return relation === comparableRelation ?
53187
+ someTypeRelatedToType(source, target, reportErrors && !(source.flags & 131068), intersectionState) :
53188
+ eachTypeRelatedToType(source, target, reportErrors && !(source.flags & 131068), intersectionState);
53189
+ }
53190
+ if (target.flags & 1048576) {
53191
+ return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source), target, reportErrors && !(source.flags & 131068) && !(target.flags & 131068));
53192
+ }
53193
+ if (target.flags & 2097152) {
53194
+ return typeRelatedToEachType(getRegularTypeOfObjectLiteral(source), target, reportErrors, 2);
53195
+ }
53196
+ if (relation === comparableRelation && target.flags & 131068) {
53197
+ var constraints = ts.sameMap(source.types, getBaseConstraintOrType);
53198
+ if (constraints !== source.types) {
53199
+ source = getIntersectionType(constraints);
53200
+ if (!(source.flags & 2097152)) {
53201
+ return isRelatedTo(source, target, 1, false);
53202
+ }
53203
+ }
53204
+ }
53205
+ return someTypeRelatedToType(source, target, false, 1);
53206
+ }
53193
53207
  function eachTypeRelatedToSomeType(source, target) {
53194
53208
  var result = -1;
53195
53209
  var sourceTypes = source.types;
@@ -53226,7 +53240,9 @@ var ts;
53226
53240
  }
53227
53241
  if (reportErrors) {
53228
53242
  var bestMatchingType = getBestMatchingType(source, target, isRelatedTo);
53229
- isRelatedTo(source, bestMatchingType || targetTypes[targetTypes.length - 1], 2, true);
53243
+ if (bestMatchingType) {
53244
+ isRelatedTo(source, bestMatchingType, 2, true);
53245
+ }
53230
53246
  }
53231
53247
  return 0;
53232
53248
  }
@@ -53334,7 +53350,7 @@ var ts;
53334
53350
  if (overflow) {
53335
53351
  return 0;
53336
53352
  }
53337
- var keyIntersectionState = intersectionState | (inPropertyCheck ? 16 : 0);
53353
+ var keyIntersectionState = intersectionState | (inPropertyCheck ? 8 : 0);
53338
53354
  var id = getRelationKey(source, target, keyIntersectionState, relation, false);
53339
53355
  var entry = relation.get(id);
53340
53356
  if (entry !== undefined) {
@@ -53395,6 +53411,7 @@ var ts;
53395
53411
  return originalHandler(onlyUnreliable);
53396
53412
  };
53397
53413
  }
53414
+ var result;
53398
53415
  if (expandingFlags === 3) {
53399
53416
  ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.instant("checkTypes", "recursiveTypeRelatedTo_DepthLimit", {
53400
53417
  sourceId: source.id,
@@ -53404,8 +53421,13 @@ var ts;
53404
53421
  depth: sourceDepth,
53405
53422
  targetDepth: targetDepth
53406
53423
  });
53424
+ result = 3;
53425
+ }
53426
+ else {
53427
+ ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push("checkTypes", "structuredTypeRelatedTo", { sourceId: source.id, targetId: target.id });
53428
+ result = structuredTypeRelatedTo(source, target, reportErrors, intersectionState);
53429
+ ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();
53407
53430
  }
53408
- var result = expandingFlags !== 3 ? structuredTypeRelatedTo(source, target, reportErrors, intersectionState) : 3;
53409
53431
  if (outofbandVarianceMarkerHandler) {
53410
53432
  outofbandVarianceMarkerHandler = originalHandler;
53411
53433
  }
@@ -53433,74 +53455,73 @@ var ts;
53433
53455
  return result;
53434
53456
  }
53435
53457
  function structuredTypeRelatedTo(source, target, reportErrors, intersectionState) {
53436
- ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push("checkTypes", "structuredTypeRelatedTo", { sourceId: source.id, targetId: target.id });
53437
- var result = structuredTypeRelatedToWorker(source, target, reportErrors, intersectionState);
53438
- ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();
53439
- return result;
53440
- }
53441
- function structuredTypeRelatedToWorker(source, target, reportErrors, intersectionState) {
53442
53458
  if (intersectionState & 4) {
53443
53459
  return propertiesRelatedTo(source, target, reportErrors, undefined, 0);
53444
53460
  }
53445
- if (intersectionState & 8) {
53446
- if (source.flags & 1048576) {
53447
- return relation === comparableRelation ?
53448
- someTypeRelatedToType(source, target, reportErrors && !(source.flags & 131068), intersectionState & ~8) :
53449
- eachTypeRelatedToType(source, target, reportErrors && !(source.flags & 131068), intersectionState & ~8);
53450
- }
53451
- if (target.flags & 1048576) {
53452
- return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source), target, reportErrors && !(source.flags & 131068) && !(target.flags & 131068));
53453
- }
53454
- if (target.flags & 2097152) {
53455
- return typeRelatedToEachType(getRegularTypeOfObjectLiteral(source), target, reportErrors, 2);
53456
- }
53457
- if (relation === comparableRelation && target.flags & 131068) {
53458
- var constraints = ts.sameMap(source.types, getBaseConstraintOrType);
53459
- if (constraints !== source.types) {
53460
- source = getIntersectionType(constraints);
53461
- if (!(source.flags & 2097152)) {
53462
- return isRelatedTo(source, target, 1, false);
53463
- }
53461
+ var result;
53462
+ var originalErrorInfo;
53463
+ var varianceCheckFailed = false;
53464
+ var saveErrorInfo = captureErrorCalculationState();
53465
+ var sourceFlags = source.flags;
53466
+ var targetFlags = target.flags;
53467
+ if (relation === identityRelation) {
53468
+ if (sourceFlags & 3145728) {
53469
+ var result_8 = eachTypeRelatedToSomeType(source, target);
53470
+ if (result_8) {
53471
+ result_8 &= eachTypeRelatedToSomeType(target, source);
53464
53472
  }
53473
+ return result_8;
53465
53474
  }
53466
- return someTypeRelatedToType(source, target, false, 1);
53467
- }
53468
- var flags = source.flags & target.flags;
53469
- if (relation === identityRelation && !(flags & 524288)) {
53470
- if (flags & 4194304) {
53475
+ if (sourceFlags & 4194304) {
53471
53476
  return isRelatedTo(source.type, target.type, 3, false);
53472
53477
  }
53473
- var result_8 = 0;
53474
- if (flags & 8388608) {
53475
- if (result_8 = isRelatedTo(source.objectType, target.objectType, 3, false)) {
53476
- if (result_8 &= isRelatedTo(source.indexType, target.indexType, 3, false)) {
53477
- return result_8;
53478
+ if (sourceFlags & 8388608) {
53479
+ if (result = isRelatedTo(source.objectType, target.objectType, 3, false)) {
53480
+ if (result &= isRelatedTo(source.indexType, target.indexType, 3, false)) {
53481
+ return result;
53478
53482
  }
53479
53483
  }
53480
53484
  }
53481
- if (flags & 16777216) {
53485
+ if (sourceFlags & 16777216) {
53482
53486
  if (source.root.isDistributive === target.root.isDistributive) {
53483
- if (result_8 = isRelatedTo(source.checkType, target.checkType, 3, false)) {
53484
- if (result_8 &= isRelatedTo(source.extendsType, target.extendsType, 3, false)) {
53485
- if (result_8 &= isRelatedTo(getTrueTypeFromConditionalType(source), getTrueTypeFromConditionalType(target), 3, false)) {
53486
- if (result_8 &= isRelatedTo(getFalseTypeFromConditionalType(source), getFalseTypeFromConditionalType(target), 3, false)) {
53487
- return result_8;
53487
+ if (result = isRelatedTo(source.checkType, target.checkType, 3, false)) {
53488
+ if (result &= isRelatedTo(source.extendsType, target.extendsType, 3, false)) {
53489
+ if (result &= isRelatedTo(getTrueTypeFromConditionalType(source), getTrueTypeFromConditionalType(target), 3, false)) {
53490
+ if (result &= isRelatedTo(getFalseTypeFromConditionalType(source), getFalseTypeFromConditionalType(target), 3, false)) {
53491
+ return result;
53488
53492
  }
53489
53493
  }
53490
53494
  }
53491
53495
  }
53492
53496
  }
53493
53497
  }
53494
- if (flags & 33554432) {
53498
+ if (sourceFlags & 33554432) {
53495
53499
  return isRelatedTo(source.substitute, target.substitute, 3, false);
53496
53500
  }
53497
- return 0;
53501
+ if (!(sourceFlags & 524288)) {
53502
+ return 0;
53503
+ }
53498
53504
  }
53499
- var result;
53500
- var originalErrorInfo;
53501
- var varianceCheckFailed = false;
53502
- var saveErrorInfo = captureErrorCalculationState();
53503
- if (source.flags & (524288 | 16777216) && source.aliasSymbol &&
53505
+ else if (sourceFlags & 3145728 || targetFlags & 3145728) {
53506
+ if (result = unionOrIntersectionRelatedTo(source, target, reportErrors, intersectionState)) {
53507
+ return result;
53508
+ }
53509
+ if (source.flags & 2097152 || source.flags & 262144 && target.flags & 1048576) {
53510
+ var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 ? source.types : [source], !!(target.flags & 1048576));
53511
+ if (constraint && everyType(constraint, function (c) { return c !== source; })) {
53512
+ if (result = isRelatedTo(constraint, target, 1, false, undefined, intersectionState)) {
53513
+ resetErrorInfo(saveErrorInfo);
53514
+ return result;
53515
+ }
53516
+ }
53517
+ }
53518
+ if (!(sourceFlags & 465829888 ||
53519
+ sourceFlags & 524288 && targetFlags & 1048576 ||
53520
+ sourceFlags & 2097152 && targetFlags & (524288 | 1048576 | 465829888))) {
53521
+ return 0;
53522
+ }
53523
+ }
53524
+ if (sourceFlags & (524288 | 16777216) && source.aliasSymbol &&
53504
53525
  source.aliasTypeArguments && source.aliasSymbol === target.aliasSymbol &&
53505
53526
  !(source.aliasTypeArgumentsContainsMarker || target.aliasTypeArgumentsContainsMarker)) {
53506
53527
  var variances = getAliasVariances(source.aliasSymbol);
@@ -53516,7 +53537,7 @@ var ts;
53516
53537
  isSingleElementGenericTupleType(target) && (target.target.readonly || isMutableArrayOrTuple(getBaseConstraintOfType(source) || source)) && (result = isRelatedTo(source, getTypeArguments(target)[0], 2))) {
53517
53538
  return result;
53518
53539
  }
53519
- if (target.flags & 262144) {
53540
+ if (targetFlags & 262144) {
53520
53541
  if (ts.getObjectFlags(source) & 32 && !source.declaration.nameType && isRelatedTo(getIndexType(target), getConstraintTypeFromMappedType(source), 3)) {
53521
53542
  if (!(getMappedTypeModifiers(source) & 4)) {
53522
53543
  var templateType = getTemplateTypeFromMappedType(source);
@@ -53527,9 +53548,9 @@ var ts;
53527
53548
  }
53528
53549
  }
53529
53550
  }
53530
- else if (target.flags & 4194304) {
53551
+ else if (targetFlags & 4194304) {
53531
53552
  var targetType_1 = target.type;
53532
- if (source.flags & 4194304) {
53553
+ if (sourceFlags & 4194304) {
53533
53554
  if (result = isRelatedTo(targetType_1, source.type, 3, false)) {
53534
53555
  return result;
53535
53556
  }
@@ -53565,8 +53586,8 @@ var ts;
53565
53586
  }
53566
53587
  }
53567
53588
  }
53568
- else if (target.flags & 8388608) {
53569
- if (source.flags & 8388608) {
53589
+ else if (targetFlags & 8388608) {
53590
+ if (sourceFlags & 8388608) {
53570
53591
  if (result = isRelatedTo(source.objectType, target.objectType, 3, reportErrors)) {
53571
53592
  result &= isRelatedTo(source.indexType, target.indexType, 3, reportErrors);
53572
53593
  }
@@ -53645,7 +53666,7 @@ var ts;
53645
53666
  }
53646
53667
  }
53647
53668
  }
53648
- else if (target.flags & 16777216) {
53669
+ else if (targetFlags & 16777216) {
53649
53670
  if (isDeeplyNestedType(target, targetStack, targetDepth, 10)) {
53650
53671
  resetErrorInfo(saveErrorInfo);
53651
53672
  return 3;
@@ -53663,8 +53684,8 @@ var ts;
53663
53684
  }
53664
53685
  }
53665
53686
  }
53666
- else if (target.flags & 134217728) {
53667
- if (source.flags & 134217728) {
53687
+ else if (targetFlags & 134217728) {
53688
+ if (sourceFlags & 134217728) {
53668
53689
  if (relation === comparableRelation) {
53669
53690
  return templateLiteralTypesDefinitelyUnrelated(source, target) ? 0 : -1;
53670
53691
  }
@@ -53674,10 +53695,10 @@ var ts;
53674
53695
  return -1;
53675
53696
  }
53676
53697
  }
53677
- if (source.flags & 8650752) {
53678
- if (!(source.flags & 8388608 && target.flags & 8388608)) {
53698
+ if (sourceFlags & 8650752) {
53699
+ if (!(sourceFlags & 8388608 && targetFlags & 8388608)) {
53679
53700
  var constraint = getConstraintOfType(source);
53680
- if (!constraint || (source.flags & 262144 && constraint.flags & 1)) {
53701
+ if (!constraint || (sourceFlags & 262144 && constraint.flags & 1)) {
53681
53702
  if (result = isRelatedTo(emptyObjectType, extractTypesOfKind(target, ~67108864), 3)) {
53682
53703
  resetErrorInfo(saveErrorInfo);
53683
53704
  return result;
@@ -53687,7 +53708,7 @@ var ts;
53687
53708
  resetErrorInfo(saveErrorInfo);
53688
53709
  return result;
53689
53710
  }
53690
- else if (result = isRelatedTo(getTypeWithThisArgument(constraint, source), target, 1, reportErrors && !(target.flags & source.flags & 262144), undefined, intersectionState)) {
53711
+ else if (result = isRelatedTo(getTypeWithThisArgument(constraint, source), target, 1, reportErrors && !(targetFlags & sourceFlags & 262144), undefined, intersectionState)) {
53691
53712
  resetErrorInfo(saveErrorInfo);
53692
53713
  return result;
53693
53714
  }
@@ -53702,14 +53723,14 @@ var ts;
53702
53723
  }
53703
53724
  }
53704
53725
  }
53705
- else if (source.flags & 4194304) {
53726
+ else if (sourceFlags & 4194304) {
53706
53727
  if (result = isRelatedTo(keyofConstraintType, target, 1, reportErrors)) {
53707
53728
  resetErrorInfo(saveErrorInfo);
53708
53729
  return result;
53709
53730
  }
53710
53731
  }
53711
- else if (source.flags & 134217728 && !(target.flags & 524288)) {
53712
- if (!(target.flags & 134217728)) {
53732
+ else if (sourceFlags & 134217728 && !(targetFlags & 524288)) {
53733
+ if (!(targetFlags & 134217728)) {
53713
53734
  var constraint = getBaseConstraintOfType(source);
53714
53735
  if (constraint && constraint !== source && (result = isRelatedTo(constraint, target, 1, reportErrors))) {
53715
53736
  resetErrorInfo(saveErrorInfo);
@@ -53717,8 +53738,8 @@ var ts;
53717
53738
  }
53718
53739
  }
53719
53740
  }
53720
- else if (source.flags & 268435456) {
53721
- if (target.flags & 268435456 && source.symbol === target.symbol) {
53741
+ else if (sourceFlags & 268435456) {
53742
+ if (targetFlags & 268435456 && source.symbol === target.symbol) {
53722
53743
  if (result = isRelatedTo(source.type, target.type, 3, reportErrors)) {
53723
53744
  resetErrorInfo(saveErrorInfo);
53724
53745
  return result;
@@ -53732,12 +53753,12 @@ var ts;
53732
53753
  }
53733
53754
  }
53734
53755
  }
53735
- else if (source.flags & 16777216) {
53756
+ else if (sourceFlags & 16777216) {
53736
53757
  if (isDeeplyNestedType(source, sourceStack, sourceDepth, 10)) {
53737
53758
  resetErrorInfo(saveErrorInfo);
53738
53759
  return 3;
53739
53760
  }
53740
- if (target.flags & 16777216) {
53761
+ if (targetFlags & 16777216) {
53741
53762
  var sourceParams = source.root.inferTypeParameters;
53742
53763
  var sourceExtends = source.extendsType;
53743
53764
  var mapper = void 0;
@@ -53788,9 +53809,10 @@ var ts;
53788
53809
  }
53789
53810
  return 0;
53790
53811
  }
53791
- var sourceIsPrimitive = !!(source.flags & 131068);
53812
+ var sourceIsPrimitive = !!(sourceFlags & 131068);
53792
53813
  if (relation !== identityRelation) {
53793
53814
  source = getApparentType(source);
53815
+ sourceFlags = source.flags;
53794
53816
  }
53795
53817
  else if (isGenericMappedType(source)) {
53796
53818
  return 0;
@@ -53817,7 +53839,7 @@ var ts;
53817
53839
  else if ((relation === subtypeRelation || relation === strictSubtypeRelation) && isEmptyObjectType(target) && ts.getObjectFlags(target) & 16384 && !isEmptyObjectType(source)) {
53818
53840
  return 0;
53819
53841
  }
53820
- if (source.flags & (524288 | 2097152) && target.flags & 524288) {
53842
+ if (sourceFlags & (524288 | 2097152) && targetFlags & 524288) {
53821
53843
  var reportStructuralErrors = reportErrors && errorInfo === saveErrorInfo.errorInfo && !sourceIsPrimitive;
53822
53844
  result = propertiesRelatedTo(source, target, reportStructuralErrors, undefined, intersectionState);
53823
53845
  if (result) {
@@ -53836,7 +53858,7 @@ var ts;
53836
53858
  return result;
53837
53859
  }
53838
53860
  }
53839
- if (source.flags & (524288 | 2097152) && target.flags & 1048576) {
53861
+ if (sourceFlags & (524288 | 2097152) && targetFlags & 1048576) {
53840
53862
  var objectOnlyTarget = extractTypesOfKind(target, 524288 | 2097152 | 33554432);
53841
53863
  if (objectOnlyTarget.flags & 1048576) {
53842
53864
  var result_9 = typeRelatedToDiscriminatedType(source, objectOnlyTarget);
@@ -54282,7 +54304,6 @@ var ts;
54282
54304
  }
54283
54305
  }
54284
54306
  var result = -1;
54285
- var saveErrorInfo = captureErrorCalculationState();
54286
54307
  var incompatibleReporter = kind === 1 ? reportIncompatibleConstructSignatureReturn : reportIncompatibleCallSignatureReturn;
54287
54308
  var sourceObjectFlags = ts.getObjectFlags(source);
54288
54309
  var targetObjectFlags = ts.getObjectFlags(target);
@@ -54314,6 +54335,7 @@ var ts;
54314
54335
  else {
54315
54336
  outer: for (var _i = 0, targetSignatures_1 = targetSignatures; _i < targetSignatures_1.length; _i++) {
54316
54337
  var t = targetSignatures_1[_i];
54338
+ var saveErrorInfo = captureErrorCalculationState();
54317
54339
  var shouldElaborateErrors = reportErrors;
54318
54340
  for (var _c = 0, sourceSignatures_1 = sourceSignatures; _c < sourceSignatures_1.length; _c++) {
54319
54341
  var s = sourceSignatures_1[_c];
@@ -54650,7 +54672,7 @@ var ts;
54650
54672
  var constraintMarker = "";
54651
54673
  var sourceId = getTypeReferenceId(source, 0);
54652
54674
  var targetId = getTypeReferenceId(target, 0);
54653
- return "" + constraintMarker + sourceId + "," + targetId + postFix;
54675
+ return "".concat(constraintMarker).concat(sourceId, ",").concat(targetId).concat(postFix);
54654
54676
  function getTypeReferenceId(type, depth) {
54655
54677
  if (depth === void 0) { depth = 0; }
54656
54678
  var result = "" + type.target.id;
@@ -54686,7 +54708,7 @@ var ts;
54686
54708
  var postFix = intersectionState ? ":" + intersectionState : "";
54687
54709
  return isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target) ?
54688
54710
  getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) :
54689
- source.id + "," + target.id + postFix;
54711
+ "".concat(source.id, ",").concat(target.id).concat(postFix);
54690
54712
  }
54691
54713
  function forEachProperty(prop, callback) {
54692
54714
  if (ts.getCheckFlags(prop) & 6) {
@@ -56509,10 +56531,10 @@ var ts;
56509
56531
  case 79:
56510
56532
  if (!ts.isThisInTypeQuery(node)) {
56511
56533
  var symbol = getResolvedSymbol(node);
56512
- return symbol !== unknownSymbol ? (flowContainer ? getNodeId(flowContainer) : "-1") + "|" + getTypeId(declaredType) + "|" + getTypeId(initialType) + "|" + getSymbolId(symbol) : undefined;
56534
+ return symbol !== unknownSymbol ? "".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType), "|").concat(getSymbolId(symbol)) : undefined;
56513
56535
  }
56514
56536
  case 108:
56515
- return "0|" + (flowContainer ? getNodeId(flowContainer) : "-1") + "|" + getTypeId(declaredType) + "|" + getTypeId(initialType);
56537
+ return "0|".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType));
56516
56538
  case 229:
56517
56539
  case 211:
56518
56540
  return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer);
@@ -57102,9 +57124,6 @@ var ts;
57102
57124
  getUnionType(ts.map(type.types, mapper), 1, aliasSymbol, aliasTypeArguments) :
57103
57125
  mapType(type, mapper);
57104
57126
  }
57105
- function getConstituentCount(type) {
57106
- return type.flags & 1048576 ? type.types.length : 1;
57107
- }
57108
57127
  function extractTypesOfKind(type, kind) {
57109
57128
  return filterType(type, function (t) { return (t.flags & kind) !== 0; });
57110
57129
  }
@@ -58449,7 +58468,7 @@ var ts;
58449
58468
  var substituteConstraints = !(checkMode && checkMode & 2) &&
58450
58469
  someType(type, isGenericTypeWithUnionConstraint) &&
58451
58470
  (isConstraintPosition(type, reference) || hasContextualTypeWithNoGenericTypes(reference, checkMode));
58452
- return substituteConstraints ? mapType(type, function (t) { return t.flags & 465829888 && !isMappedTypeGenericIndexedAccess(t) ? getBaseConstraintOrType(t) : t; }) : type;
58471
+ return substituteConstraints ? mapType(type, function (t) { return t.flags & 465829888 ? getBaseConstraintOrType(t) : t; }) : type;
58453
58472
  }
58454
58473
  function isExportOrExportExpression(location) {
58455
58474
  return !!ts.findAncestor(location, function (n) {
@@ -58495,6 +58514,9 @@ var ts;
58495
58514
  if (parentType && parentType.flags & 1048576 && !(parent.kind === 163 && isSymbolAssigned(symbol))) {
58496
58515
  var pattern = declaration.parent;
58497
58516
  var narrowedType = getFlowTypeOfReference(pattern, parentType, parentType, undefined, location.flowNode);
58517
+ if (narrowedType.flags & 131072) {
58518
+ return neverType;
58519
+ }
58498
58520
  return getBindingElementTypeFromParentType(declaration, narrowedType);
58499
58521
  }
58500
58522
  }
@@ -59829,7 +59851,7 @@ var ts;
59829
59851
  !leftName ? rightName :
59830
59852
  !rightName ? leftName :
59831
59853
  undefined;
59832
- var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg" + i);
59854
+ var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
59833
59855
  paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
59834
59856
  params[i] = paramSymbol;
59835
59857
  }
@@ -63168,8 +63190,8 @@ var ts;
63168
63190
  if (hasDefaultOnly && type && !isErrorType(type)) {
63169
63191
  var synthType = type;
63170
63192
  if (!synthType.defaultOnlyType) {
63171
- var type_4 = createDefaultPropertyWrapperForModule(symbol, originalSymbol);
63172
- synthType.defaultOnlyType = type_4;
63193
+ var type_5 = createDefaultPropertyWrapperForModule(symbol, originalSymbol);
63194
+ synthType.defaultOnlyType = type_5;
63173
63195
  }
63174
63196
  return synthType.defaultOnlyType;
63175
63197
  }
@@ -63613,19 +63635,20 @@ var ts;
63613
63635
  if (links.type === unknownType) {
63614
63636
  links.type = getTypeFromBindingPattern(declaration.name);
63615
63637
  }
63616
- assignBindingElementTypes(declaration.name);
63638
+ assignBindingElementTypes(declaration.name, links.type);
63617
63639
  }
63618
63640
  }
63619
63641
  }
63620
- function assignBindingElementTypes(pattern) {
63642
+ function assignBindingElementTypes(pattern, parentType) {
63621
63643
  for (var _i = 0, _a = pattern.elements; _i < _a.length; _i++) {
63622
63644
  var element = _a[_i];
63623
63645
  if (!ts.isOmittedExpression(element)) {
63646
+ var type = getBindingElementTypeFromParentType(element, parentType);
63624
63647
  if (element.name.kind === 79) {
63625
- getSymbolLinks(getSymbolOfNode(element)).type = getTypeForBindingElement(element);
63648
+ getSymbolLinks(getSymbolOfNode(element)).type = type;
63626
63649
  }
63627
63650
  else {
63628
- assignBindingElementTypes(element.name);
63651
+ assignBindingElementTypes(element.name, type);
63629
63652
  }
63630
63653
  }
63631
63654
  }
@@ -63835,11 +63858,11 @@ var ts;
63835
63858
  var operandType = getTypeOfExpression(node.expression.expression);
63836
63859
  var witnesses = getSwitchClauseTypeOfWitnesses(node, false);
63837
63860
  var notEqualFacts_1 = getFactsFromTypeofSwitch(0, 0, witnesses, true);
63838
- var type_5 = getBaseConstraintOfType(operandType) || operandType;
63839
- if (type_5.flags & 3) {
63861
+ var type_6 = getBaseConstraintOfType(operandType) || operandType;
63862
+ if (type_6.flags & 3) {
63840
63863
  return (556800 & notEqualFacts_1) === 556800;
63841
63864
  }
63842
- return !!(filterType(type_5, function (t) { return (getTypeFacts(t) & notEqualFacts_1) === notEqualFacts_1; }).flags & 131072);
63865
+ return !!(filterType(type_6, function (t) { return (getTypeFacts(t) & notEqualFacts_1) === notEqualFacts_1; }).flags & 131072);
63843
63866
  }
63844
63867
  var type = getTypeOfExpression(node.expression);
63845
63868
  if (!isLiteralType(type)) {
@@ -65724,6 +65747,7 @@ var ts;
65724
65747
  }
65725
65748
  }
65726
65749
  checkTypeParameters(ts.getEffectiveTypeParameterDeclarations(node));
65750
+ checkUnmatchedJSDocParameters(node);
65727
65751
  ts.forEach(node.parameters, checkParameter);
65728
65752
  if (node.type) {
65729
65753
  checkSourceElement(node.type);
@@ -66819,26 +66843,24 @@ var ts;
66819
66843
  if (returnType.flags & 1) {
66820
66844
  return;
66821
66845
  }
66846
+ var headMessage;
66822
66847
  var expectedReturnType;
66823
- var headMessage = getDiagnosticHeadMessageForDecoratorResolution(node);
66824
- var errorInfo;
66825
66848
  switch (node.parent.kind) {
66826
66849
  case 256:
66850
+ headMessage = ts.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;
66827
66851
  var classSymbol = getSymbolOfNode(node.parent);
66828
66852
  var classConstructorType = getTypeOfSymbol(classSymbol);
66829
66853
  expectedReturnType = getUnionType([classConstructorType, voidType]);
66830
66854
  break;
66831
- case 163:
66832
- expectedReturnType = voidType;
66833
- errorInfo = ts.chainDiagnosticMessages(undefined, ts.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);
66834
- break;
66835
66855
  case 166:
66856
+ case 163:
66857
+ headMessage = ts.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;
66836
66858
  expectedReturnType = voidType;
66837
- errorInfo = ts.chainDiagnosticMessages(undefined, ts.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);
66838
66859
  break;
66839
66860
  case 168:
66840
66861
  case 171:
66841
66862
  case 172:
66863
+ headMessage = ts.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;
66842
66864
  var methodType = getTypeOfNode(node.parent);
66843
66865
  var descriptorType = createTypedPropertyDescriptorType(methodType);
66844
66866
  expectedReturnType = getUnionType([descriptorType, voidType]);
@@ -66846,7 +66868,7 @@ var ts;
66846
66868
  default:
66847
66869
  return ts.Debug.fail();
66848
66870
  }
66849
- checkTypeAssignableTo(returnType, expectedReturnType, node, headMessage, function () { return errorInfo; });
66871
+ checkTypeAssignableTo(returnType, expectedReturnType, node, headMessage);
66850
66872
  }
66851
66873
  function markTypeNodeAsReferenced(node) {
66852
66874
  markEntityNameOrEntityExpressionAsReference(node && ts.getEntityNameFromTypeNode(node));
@@ -67005,28 +67027,6 @@ var ts;
67005
67027
  }
67006
67028
  function checkJSDocParameterTag(node) {
67007
67029
  checkSourceElement(node.typeExpression);
67008
- if (!ts.getParameterSymbolFromJSDoc(node)) {
67009
- var decl = ts.getHostSignatureFromJSDoc(node);
67010
- if (decl) {
67011
- var i = ts.getJSDocTags(decl).filter(ts.isJSDocParameterTag).indexOf(node);
67012
- if (i > -1 && i < decl.parameters.length && ts.isBindingPattern(decl.parameters[i].name)) {
67013
- return;
67014
- }
67015
- if (!containsArgumentsReference(decl)) {
67016
- if (ts.isQualifiedName(node.name)) {
67017
- error(node.name, ts.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, ts.entityNameToString(node.name), ts.entityNameToString(node.name.left));
67018
- }
67019
- else {
67020
- error(node.name, ts.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name, ts.idText(node.name));
67021
- }
67022
- }
67023
- else if (ts.findLast(ts.getJSDocTags(decl), ts.isJSDocParameterTag) === node &&
67024
- node.typeExpression && node.typeExpression.type &&
67025
- !isArrayType(getTypeFromTypeNode(node.typeExpression.type))) {
67026
- error(node.name, ts.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, ts.idText(node.name.kind === 160 ? node.name.right : node.name));
67027
- }
67028
- }
67029
- }
67030
67030
  }
67031
67031
  function checkJSDocPropertyTag(node) {
67032
67032
  checkSourceElement(node.typeExpression);
@@ -68269,7 +68269,7 @@ var ts;
68269
68269
  function getPropertyNameForKnownSymbolName(symbolName) {
68270
68270
  var ctorType = getGlobalESSymbolConstructorSymbol(false);
68271
68271
  var uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), ts.escapeLeadingUnderscores(symbolName));
68272
- return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@" + symbolName;
68272
+ return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@".concat(symbolName);
68273
68273
  }
68274
68274
  function getIterationTypesOfIterableSlow(type, resolver, errorNode) {
68275
68275
  var _a;
@@ -68710,6 +68710,47 @@ var ts;
68710
68710
  error(name, ts.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ts.ModuleKind[moduleKind]);
68711
68711
  }
68712
68712
  }
68713
+ function checkUnmatchedJSDocParameters(node) {
68714
+ var jsdocParameters = ts.filter(ts.getJSDocTags(node), ts.isJSDocParameterTag);
68715
+ if (!ts.length(jsdocParameters))
68716
+ return;
68717
+ var isJs = ts.isInJSFile(node);
68718
+ var parameters = new ts.Set();
68719
+ var excludedParameters = new ts.Set();
68720
+ ts.forEach(node.parameters, function (_a, index) {
68721
+ var name = _a.name;
68722
+ if (ts.isIdentifier(name)) {
68723
+ parameters.add(name.escapedText);
68724
+ }
68725
+ if (ts.isBindingPattern(name)) {
68726
+ excludedParameters.add(index);
68727
+ }
68728
+ });
68729
+ var containsArguments = containsArgumentsReference(node);
68730
+ if (containsArguments) {
68731
+ var lastJSDocParam = ts.lastOrUndefined(jsdocParameters);
68732
+ if (isJs && lastJSDocParam && ts.isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression &&
68733
+ lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
68734
+ error(lastJSDocParam.name, ts.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, ts.idText(lastJSDocParam.name));
68735
+ }
68736
+ }
68737
+ else {
68738
+ ts.forEach(jsdocParameters, function (_a, index) {
68739
+ var name = _a.name;
68740
+ if (excludedParameters.has(index) || ts.isIdentifier(name) && parameters.has(name.escapedText)) {
68741
+ return;
68742
+ }
68743
+ if (ts.isQualifiedName(name)) {
68744
+ if (isJs) {
68745
+ error(name, ts.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, ts.entityNameToString(name), ts.entityNameToString(name.left));
68746
+ }
68747
+ }
68748
+ else {
68749
+ errorOrSuggestion(isJs, name, ts.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name, ts.idText(name));
68750
+ }
68751
+ });
68752
+ }
68753
+ }
68713
68754
  function checkTypeParameters(typeParameterDeclarations) {
68714
68755
  if (typeParameterDeclarations) {
68715
68756
  var seenDefault = false;
@@ -69787,6 +69828,9 @@ var ts;
69787
69828
  var name = ts.idText(node.kind === 269 ? node.propertyName || node.name : node.name);
69788
69829
  addTypeOnlyDeclarationRelatedInfo(error(node, message, name), isType ? undefined : typeOnlyAlias, name);
69789
69830
  }
69831
+ if (isType && node.kind === 264 && ts.hasEffectiveModifier(node, 1)) {
69832
+ error(node, ts.Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided);
69833
+ }
69790
69834
  break;
69791
69835
  }
69792
69836
  case 274: {
@@ -73395,25 +73439,24 @@ var ts;
73395
73439
  }
73396
73440
  function findMostOverlappyType(source, unionTarget) {
73397
73441
  var bestMatch;
73398
- var matchingCount = 0;
73399
- for (var _i = 0, _a = unionTarget.types; _i < _a.length; _i++) {
73400
- var target = _a[_i];
73401
- var overlap = getIntersectionType([getIndexType(source), getIndexType(target)]);
73402
- if (overlap.flags & 4194304) {
73403
- bestMatch = target;
73404
- matchingCount = Infinity;
73405
- }
73406
- else if (overlap.flags & 1048576) {
73407
- var len = ts.length(ts.filter(overlap.types, isUnitType));
73408
- if (len >= matchingCount) {
73409
- bestMatch = target;
73410
- matchingCount = len;
73442
+ if (!(source.flags & (131068 | 406847488))) {
73443
+ var matchingCount = 0;
73444
+ for (var _i = 0, _a = unionTarget.types; _i < _a.length; _i++) {
73445
+ var target = _a[_i];
73446
+ if (!(target.flags & (131068 | 406847488))) {
73447
+ var overlap = getIntersectionType([getIndexType(source), getIndexType(target)]);
73448
+ if (overlap.flags & 4194304) {
73449
+ return target;
73450
+ }
73451
+ else if (isUnitType(overlap) || overlap.flags & 1048576) {
73452
+ var len = overlap.flags & 1048576 ? ts.countWhere(overlap.types, isUnitType) : 1;
73453
+ if (len >= matchingCount) {
73454
+ bestMatch = target;
73455
+ matchingCount = len;
73456
+ }
73457
+ }
73411
73458
  }
73412
73459
  }
73413
- else if (isUnitType(overlap) && 1 >= matchingCount) {
73414
- bestMatch = target;
73415
- matchingCount = 1;
73416
- }
73417
73460
  }
73418
73461
  return bestMatch;
73419
73462
  }
@@ -74553,7 +74596,7 @@ var ts;
74553
74596
  value >= 52 && value < 62 ? 48 + value - 52 :
74554
74597
  value === 62 ? 43 :
74555
74598
  value === 63 ? 47 :
74556
- ts.Debug.fail(value + ": not a base64 value");
74599
+ ts.Debug.fail("".concat(value, ": not a base64 value"));
74557
74600
  }
74558
74601
  function base64FormatDecode(ch) {
74559
74602
  return ch >= 65 && ch <= 90 ? ch - 65 :
@@ -74626,7 +74669,7 @@ var ts;
74626
74669
  var mappings = ts.arrayFrom(decoder, processMapping);
74627
74670
  if (decoder.error !== undefined) {
74628
74671
  if (host.log) {
74629
- host.log("Encountered error while decoding sourcemap: " + decoder.error);
74672
+ host.log("Encountered error while decoding sourcemap: ".concat(decoder.error));
74630
74673
  }
74631
74674
  decodedMappings = ts.emptyArray;
74632
74675
  }
@@ -77069,7 +77112,7 @@ var ts;
77069
77112
  var propertyName = ts.isPropertyAccessExpression(originalNode)
77070
77113
  ? ts.declarationNameToString(originalNode.name)
77071
77114
  : ts.getTextOfNode(originalNode.argumentExpression);
77072
- ts.addSyntheticTrailingComment(substitute, 3, " " + propertyName + " ");
77115
+ ts.addSyntheticTrailingComment(substitute, 3, " ".concat(propertyName, " "));
77073
77116
  }
77074
77117
  return substitute;
77075
77118
  }
@@ -78319,8 +78362,8 @@ var ts;
78319
78362
  }
78320
78363
  function createHoistedVariableForClass(name, node) {
78321
78364
  var className = getPrivateIdentifierEnvironment().className;
78322
- var prefix = className ? "_" + className : "";
78323
- var identifier = factory.createUniqueName(prefix + "_" + name, 16);
78365
+ var prefix = className ? "_".concat(className) : "";
78366
+ var identifier = factory.createUniqueName("".concat(prefix, "_").concat(name), 16);
78324
78367
  if (resolver.getNodeCheckFlags(node) & 524288) {
78325
78368
  addBlockScopedVariable(identifier);
78326
78369
  }
@@ -79978,7 +80021,7 @@ var ts;
79978
80021
  specifierSourceImports = new ts.Map();
79979
80022
  currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
79980
80023
  }
79981
- var generatedName = factory.createUniqueName("_" + name, 16 | 32 | 64);
80024
+ var generatedName = factory.createUniqueName("_".concat(name), 16 | 32 | 64);
79982
80025
  var specifier = factory.createImportSpecifier(false, factory.createIdentifier(name), generatedName);
79983
80026
  generatedName.generatedImportReference = specifier;
79984
80027
  specifierSourceImports.set(name, specifier);
@@ -80919,11 +80962,11 @@ var ts;
80919
80962
  }
80920
80963
  else {
80921
80964
  if (node.kind === 245) {
80922
- labelMarker = "break-" + label.escapedText;
80965
+ labelMarker = "break-".concat(label.escapedText);
80923
80966
  setLabeledJump(convertedLoopState, true, ts.idText(label), labelMarker);
80924
80967
  }
80925
80968
  else {
80926
- labelMarker = "continue-" + label.escapedText;
80969
+ labelMarker = "continue-".concat(label.escapedText);
80927
80970
  setLabeledJump(convertedLoopState, false, ts.idText(label), labelMarker);
80928
80971
  }
80929
80972
  }
@@ -86578,7 +86621,7 @@ var ts;
86578
86621
  return getTypeAliasDeclarationVisibilityError;
86579
86622
  }
86580
86623
  else {
86581
- return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: " + ts.SyntaxKind[node.kind]);
86624
+ return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(ts.SyntaxKind[node.kind]));
86582
86625
  }
86583
86626
  function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) {
86584
86627
  if (node.kind === 253 || node.kind === 202) {
@@ -86775,7 +86818,7 @@ var ts;
86775
86818
  ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 :
86776
86819
  ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;
86777
86820
  default:
86778
- return ts.Debug.fail("Unknown parent for parameter: " + ts.SyntaxKind[node.parent.kind]);
86821
+ return ts.Debug.fail("Unknown parent for parameter: ".concat(ts.SyntaxKind[node.parent.kind]));
86779
86822
  }
86780
86823
  }
86781
86824
  function getTypeParameterConstraintVisibilityError() {
@@ -87462,7 +87505,7 @@ var ts;
87462
87505
  while (ts.length(lateMarkedStatements)) {
87463
87506
  var i = lateMarkedStatements.shift();
87464
87507
  if (!ts.isLateVisibilityPaintedStatement(i)) {
87465
- return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: " + (ts.SyntaxKind ? ts.SyntaxKind[i.kind] : i.kind));
87508
+ return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(ts.SyntaxKind ? ts.SyntaxKind[i.kind] : i.kind));
87466
87509
  }
87467
87510
  var priorNeedsDeclare = needsDeclare;
87468
87511
  needsDeclare = i.parent && ts.isSourceFile(i.parent) && !(ts.isExternalModule(i.parent) && isBundledEmit);
@@ -87627,7 +87670,7 @@ var ts;
87627
87670
  return cleanup(input);
87628
87671
  return cleanup(factory.updateImportTypeNode(input, factory.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), input.qualifier, ts.visitNodes(input.typeArguments, visitDeclarationSubtree, ts.isTypeNode), input.isTypeOf));
87629
87672
  }
87630
- default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: " + ts.SyntaxKind[input.kind]);
87673
+ default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: ".concat(ts.SyntaxKind[input.kind]));
87631
87674
  }
87632
87675
  }
87633
87676
  if (ts.isTupleTypeNode(input) && (ts.getLineAndCharacterOfPosition(currentSourceFile, input.pos).line === ts.getLineAndCharacterOfPosition(currentSourceFile, input.end).line)) {
@@ -87871,7 +87914,7 @@ var ts;
87871
87914
  var extendsClause_1 = ts.getEffectiveBaseTypeNode(input);
87872
87915
  if (extendsClause_1 && !ts.isEntityNameExpression(extendsClause_1.expression) && extendsClause_1.expression.kind !== 104) {
87873
87916
  var oldId = input.name ? ts.unescapeLeadingUnderscores(input.name.escapedText) : "default";
87874
- var newId_1 = factory.createUniqueName(oldId + "_base", 16);
87917
+ var newId_1 = factory.createUniqueName("".concat(oldId, "_base"), 16);
87875
87918
  getSymbolAccessibilityDiagnostic = function () { return ({
87876
87919
  diagnosticMessage: ts.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,
87877
87920
  errorNode: extendsClause_1,
@@ -87908,7 +87951,7 @@ var ts;
87908
87951
  }))));
87909
87952
  }
87910
87953
  }
87911
- return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: " + ts.SyntaxKind[input.kind]);
87954
+ return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: ".concat(ts.SyntaxKind[input.kind]));
87912
87955
  function cleanup(node) {
87913
87956
  if (isEnclosingDeclaration(input)) {
87914
87957
  enclosingDeclaration = previousEnclosingDeclaration;
@@ -88677,13 +88720,13 @@ var ts;
88677
88720
  if (ts.fileExtensionIs(inputFileName, ".json"))
88678
88721
  return;
88679
88722
  if (js && configFile.options.sourceMap) {
88680
- addOutput(js + ".map");
88723
+ addOutput("".concat(js, ".map"));
88681
88724
  }
88682
88725
  if (ts.getEmitDeclarations(configFile.options)) {
88683
88726
  var dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory);
88684
88727
  addOutput(dts);
88685
88728
  if (configFile.options.declarationMap) {
88686
- addOutput(dts + ".map");
88729
+ addOutput("".concat(dts, ".map"));
88687
88730
  }
88688
88731
  }
88689
88732
  }
@@ -88743,7 +88786,7 @@ var ts;
88743
88786
  function getFirstProjectOutput(configFile, ignoreCase) {
88744
88787
  if (ts.outFile(configFile.options)) {
88745
88788
  var jsFilePath = getOutputPathsForBundle(configFile.options, false).jsFilePath;
88746
- return ts.Debug.checkDefined(jsFilePath, "project " + configFile.options.configFilePath + " expected to have at least one output");
88789
+ return ts.Debug.checkDefined(jsFilePath, "project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
88747
88790
  }
88748
88791
  var getCommonSourceDirectory = ts.memoize(function () { return getCommonSourceDirectoryOfConfig(configFile, ignoreCase); });
88749
88792
  for (var _a = 0, _b = configFile.fileNames; _a < _b.length; _a++) {
@@ -88762,7 +88805,7 @@ var ts;
88762
88805
  var buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options);
88763
88806
  if (buildInfoPath)
88764
88807
  return buildInfoPath;
88765
- return ts.Debug.fail("project " + configFile.options.configFilePath + " expected to have at least one output");
88808
+ return ts.Debug.fail("project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
88766
88809
  }
88767
88810
  ts.getFirstProjectOutput = getFirstProjectOutput;
88768
88811
  function emitFiles(resolver, host, targetSourceFile, _a, emitOnlyDtsFiles, onlyBuildInfo, forceDtsEmit) {
@@ -88972,7 +89015,7 @@ var ts;
88972
89015
  if (sourceMappingURL) {
88973
89016
  if (!writer.isAtStartOfLine())
88974
89017
  writer.rawWrite(newLine);
88975
- writer.writeComment("//# " + "sourceMappingURL" + "=" + sourceMappingURL);
89018
+ writer.writeComment("//# ".concat("sourceMappingURL", "=").concat(sourceMappingURL));
88976
89019
  }
88977
89020
  if (sourceMapFilePath) {
88978
89021
  var sourceMap = sourceMapGenerator.toString();
@@ -89012,7 +89055,7 @@ var ts;
89012
89055
  if (mapOptions.inlineSourceMap) {
89013
89056
  var sourceMapText = sourceMapGenerator.toString();
89014
89057
  var base64SourceMapText = ts.base64encode(ts.sys, sourceMapText);
89015
- return "data:application/json;base64," + base64SourceMapText;
89058
+ return "data:application/json;base64,".concat(base64SourceMapText);
89016
89059
  }
89017
89060
  var sourceMapFile = ts.getBaseFileName(ts.normalizeSlashes(ts.Debug.checkDefined(sourceMapFilePath)));
89018
89061
  if (mapOptions.mapRoot) {
@@ -89176,7 +89219,7 @@ var ts;
89176
89219
  return;
89177
89220
  break;
89178
89221
  default:
89179
- ts.Debug.fail("Unexpected path: " + name);
89222
+ ts.Debug.fail("Unexpected path: ".concat(name));
89180
89223
  }
89181
89224
  outputFiles.push({ name: name, text: text, writeByteOrderMark: writeByteOrderMark });
89182
89225
  },
@@ -89984,7 +90027,7 @@ var ts;
89984
90027
  return writeTokenNode(node, writeKeyword);
89985
90028
  if (ts.isTokenKind(node.kind))
89986
90029
  return writeTokenNode(node, writePunctuation);
89987
- ts.Debug.fail("Unhandled SyntaxKind: " + ts.Debug.formatSyntaxKind(node.kind) + ".");
90030
+ ts.Debug.fail("Unhandled SyntaxKind: ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
89988
90031
  }
89989
90032
  function emitMappedTypeParameter(node) {
89990
90033
  emit(node.name);
@@ -90124,14 +90167,14 @@ var ts;
90124
90167
  }
90125
90168
  }
90126
90169
  function emitPlaceholder(hint, node, snippet) {
90127
- nonEscapingWrite("${" + snippet.order + ":");
90170
+ nonEscapingWrite("${".concat(snippet.order, ":"));
90128
90171
  pipelineEmitWithHintWorker(hint, node, false);
90129
90172
  nonEscapingWrite("}");
90130
90173
  }
90131
90174
  function emitTabStop(hint, node, snippet) {
90132
- ts.Debug.assert(node.kind === 235, "A tab stop cannot be attached to a node of kind " + ts.Debug.formatSyntaxKind(node.kind) + ".");
90175
+ ts.Debug.assert(node.kind === 235, "A tab stop cannot be attached to a node of kind ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
90133
90176
  ts.Debug.assert(hint !== 5, "A tab stop cannot be attached to an embedded statement.");
90134
- nonEscapingWrite("$" + snippet.order);
90177
+ nonEscapingWrite("$".concat(snippet.order));
90135
90178
  }
90136
90179
  function emitIdentifier(node) {
90137
90180
  var writeText = node.symbol ? writeSymbol : write;
@@ -91794,17 +91837,17 @@ var ts;
91794
91837
  writeLine();
91795
91838
  }
91796
91839
  if (currentSourceFile && currentSourceFile.moduleName) {
91797
- writeComment("/// <amd-module name=\"" + currentSourceFile.moduleName + "\" />");
91840
+ writeComment("/// <amd-module name=\"".concat(currentSourceFile.moduleName, "\" />"));
91798
91841
  writeLine();
91799
91842
  }
91800
91843
  if (currentSourceFile && currentSourceFile.amdDependencies) {
91801
91844
  for (var _a = 0, _b = currentSourceFile.amdDependencies; _a < _b.length; _a++) {
91802
91845
  var dep = _b[_a];
91803
91846
  if (dep.name) {
91804
- writeComment("/// <amd-dependency name=\"" + dep.name + "\" path=\"" + dep.path + "\" />");
91847
+ writeComment("/// <amd-dependency name=\"".concat(dep.name, "\" path=\"").concat(dep.path, "\" />"));
91805
91848
  }
91806
91849
  else {
91807
- writeComment("/// <amd-dependency path=\"" + dep.path + "\" />");
91850
+ writeComment("/// <amd-dependency path=\"".concat(dep.path, "\" />"));
91808
91851
  }
91809
91852
  writeLine();
91810
91853
  }
@@ -91812,7 +91855,7 @@ var ts;
91812
91855
  for (var _c = 0, files_2 = files; _c < files_2.length; _c++) {
91813
91856
  var directive = files_2[_c];
91814
91857
  var pos = writer.getTextPos();
91815
- writeComment("/// <reference path=\"" + directive.fileName + "\" />");
91858
+ writeComment("/// <reference path=\"".concat(directive.fileName, "\" />"));
91816
91859
  if (bundleFileInfo)
91817
91860
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "reference", data: directive.fileName });
91818
91861
  writeLine();
@@ -91820,7 +91863,7 @@ var ts;
91820
91863
  for (var _d = 0, types_24 = types; _d < types_24.length; _d++) {
91821
91864
  var directive = types_24[_d];
91822
91865
  var pos = writer.getTextPos();
91823
- writeComment("/// <reference types=\"" + directive.fileName + "\" />");
91866
+ writeComment("/// <reference types=\"".concat(directive.fileName, "\" />"));
91824
91867
  if (bundleFileInfo)
91825
91868
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "type", data: directive.fileName });
91826
91869
  writeLine();
@@ -91828,7 +91871,7 @@ var ts;
91828
91871
  for (var _e = 0, libs_1 = libs; _e < libs_1.length; _e++) {
91829
91872
  var directive = libs_1[_e];
91830
91873
  var pos = writer.getTextPos();
91831
- writeComment("/// <reference lib=\"" + directive.fileName + "\" />");
91874
+ writeComment("/// <reference lib=\"".concat(directive.fileName, "\" />"));
91832
91875
  if (bundleFileInfo)
91833
91876
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "lib", data: directive.fileName });
91834
91877
  writeLine();
@@ -92527,9 +92570,9 @@ var ts;
92527
92570
  var textSourceNode = node.textSourceNode;
92528
92571
  if (ts.isIdentifier(textSourceNode) || ts.isNumericLiteral(textSourceNode)) {
92529
92572
  var text = ts.isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode(textSourceNode);
92530
- return jsxAttributeEscape ? "\"" + ts.escapeJsxAttributeString(text) + "\"" :
92531
- neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"" + ts.escapeString(text) + "\"" :
92532
- "\"" + ts.escapeNonAsciiString(text) + "\"";
92573
+ return jsxAttributeEscape ? "\"".concat(ts.escapeJsxAttributeString(text), "\"") :
92574
+ neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"".concat(ts.escapeString(text), "\"") :
92575
+ "\"".concat(ts.escapeNonAsciiString(text), "\"");
92533
92576
  }
92534
92577
  else {
92535
92578
  return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);
@@ -92928,8 +92971,8 @@ var ts;
92928
92971
  }
92929
92972
  function formatSynthesizedComment(comment) {
92930
92973
  return comment.kind === 3
92931
- ? "/*" + comment.text + "*/"
92932
- : "//" + comment.text;
92974
+ ? "/*".concat(comment.text, "*/")
92975
+ : "//".concat(comment.text);
92933
92976
  }
92934
92977
  function emitBodyWithDetachedComments(node, detachedRange, emitCallback) {
92935
92978
  enterComment();
@@ -93543,18 +93586,18 @@ var ts;
93543
93586
  var watchedDirPath = _a.watchedDirPath, fileOrDirectory = _a.fileOrDirectory, fileOrDirectoryPath = _a.fileOrDirectoryPath, configFileName = _a.configFileName, options = _a.options, program = _a.program, extraFileExtensions = _a.extraFileExtensions, currentDirectory = _a.currentDirectory, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, writeLog = _a.writeLog, toPath = _a.toPath;
93544
93587
  var newPath = ts.removeIgnoredPath(fileOrDirectoryPath);
93545
93588
  if (!newPath) {
93546
- writeLog("Project: " + configFileName + " Detected ignored path: " + fileOrDirectory);
93589
+ writeLog("Project: ".concat(configFileName, " Detected ignored path: ").concat(fileOrDirectory));
93547
93590
  return true;
93548
93591
  }
93549
93592
  fileOrDirectoryPath = newPath;
93550
93593
  if (fileOrDirectoryPath === watchedDirPath)
93551
93594
  return false;
93552
93595
  if (ts.hasExtension(fileOrDirectoryPath) && !ts.isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {
93553
- writeLog("Project: " + configFileName + " Detected file add/remove of non supported extension: " + fileOrDirectory);
93596
+ writeLog("Project: ".concat(configFileName, " Detected file add/remove of non supported extension: ").concat(fileOrDirectory));
93554
93597
  return true;
93555
93598
  }
93556
93599
  if (ts.isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {
93557
- writeLog("Project: " + configFileName + " Detected excluded file: " + fileOrDirectory);
93600
+ writeLog("Project: ".concat(configFileName, " Detected excluded file: ").concat(fileOrDirectory));
93558
93601
  return true;
93559
93602
  }
93560
93603
  if (!program)
@@ -93573,7 +93616,7 @@ var ts;
93573
93616
  var builderProgram = !realProgram && !ts.isArray(program) ? program : undefined;
93574
93617
  if (hasSourceFile((filePathWithoutExtension + ".ts")) ||
93575
93618
  hasSourceFile((filePathWithoutExtension + ".tsx"))) {
93576
- writeLog("Project: " + configFileName + " Detected output file: " + fileOrDirectory);
93619
+ writeLog("Project: ".concat(configFileName, " Detected output file: ").concat(fileOrDirectory));
93577
93620
  return true;
93578
93621
  }
93579
93622
  return false;
@@ -93641,36 +93684,36 @@ var ts;
93641
93684
  host.useCaseSensitiveFileNames();
93642
93685
  }
93643
93686
  function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
93644
- log("ExcludeWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
93687
+ log("ExcludeWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
93645
93688
  return {
93646
- close: function () { return log("ExcludeWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)); }
93689
+ close: function () { return log("ExcludeWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo))); }
93647
93690
  };
93648
93691
  }
93649
93692
  function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
93650
- log("FileWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
93693
+ log("FileWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
93651
93694
  var watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);
93652
93695
  return {
93653
93696
  close: function () {
93654
- log("FileWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
93697
+ log("FileWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
93655
93698
  watcher.close();
93656
93699
  }
93657
93700
  };
93658
93701
  }
93659
93702
  function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
93660
- var watchInfo = "DirectoryWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
93703
+ var watchInfo = "DirectoryWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
93661
93704
  log(watchInfo);
93662
93705
  var start = ts.timestamp();
93663
93706
  var watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);
93664
93707
  var elapsed = ts.timestamp() - start;
93665
- log("Elapsed:: " + elapsed + "ms " + watchInfo);
93708
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
93666
93709
  return {
93667
93710
  close: function () {
93668
- var watchInfo = "DirectoryWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
93711
+ var watchInfo = "DirectoryWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
93669
93712
  log(watchInfo);
93670
93713
  var start = ts.timestamp();
93671
93714
  watcher.close();
93672
93715
  var elapsed = ts.timestamp() - start;
93673
- log("Elapsed:: " + elapsed + "ms " + watchInfo);
93716
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
93674
93717
  }
93675
93718
  };
93676
93719
  }
@@ -93680,16 +93723,16 @@ var ts;
93680
93723
  for (var _i = 0; _i < arguments.length; _i++) {
93681
93724
  args[_i] = arguments[_i];
93682
93725
  }
93683
- var triggerredInfo = (key === "watchFile" ? "FileWatcher" : "DirectoryWatcher") + ":: Triggered with " + args[0] + " " + (args[1] !== undefined ? args[1] : "") + ":: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
93726
+ var triggerredInfo = "".concat(key === "watchFile" ? "FileWatcher" : "DirectoryWatcher", ":: Triggered with ").concat(args[0], " ").concat(args[1] !== undefined ? args[1] : "", ":: ").concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
93684
93727
  log(triggerredInfo);
93685
93728
  var start = ts.timestamp();
93686
93729
  cb.call.apply(cb, __spreadArray([undefined], args, false));
93687
93730
  var elapsed = ts.timestamp() - start;
93688
- log("Elapsed:: " + elapsed + "ms " + triggerredInfo);
93731
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(triggerredInfo));
93689
93732
  }, flags, options, detailInfo1, detailInfo2); };
93690
93733
  }
93691
93734
  function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo) {
93692
- return "WatchInfo: " + file + " " + flags + " " + JSON.stringify(options) + " " + (getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : detailInfo1 + " " + detailInfo2);
93735
+ return "WatchInfo: ".concat(file, " ").concat(flags, " ").concat(JSON.stringify(options), " ").concat(getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : "".concat(detailInfo1, " ").concat(detailInfo2));
93693
93736
  }
93694
93737
  }
93695
93738
  ts.getWatchFactory = getWatchFactory;
@@ -93979,12 +94022,12 @@ var ts;
93979
94022
  }
93980
94023
  ts.formatDiagnostics = formatDiagnostics;
93981
94024
  function formatDiagnostic(diagnostic, host) {
93982
- var errorMessage = ts.diagnosticCategoryName(diagnostic) + " TS" + diagnostic.code + ": " + flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()) + host.getNewLine();
94025
+ var errorMessage = "".concat(ts.diagnosticCategoryName(diagnostic), " TS").concat(diagnostic.code, ": ").concat(flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine())).concat(host.getNewLine());
93983
94026
  if (diagnostic.file) {
93984
94027
  var _a = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start), line = _a.line, character = _a.character;
93985
94028
  var fileName = diagnostic.file.fileName;
93986
94029
  var relativeFileName = ts.convertToRelativePath(fileName, host.getCurrentDirectory(), function (fileName) { return host.getCanonicalFileName(fileName); });
93987
- return relativeFileName + "(" + (line + 1) + "," + (character + 1) + "): " + errorMessage;
94030
+ return "".concat(relativeFileName, "(").concat(line + 1, ",").concat(character + 1, "): ") + errorMessage;
93988
94031
  }
93989
94032
  return errorMessage;
93990
94033
  }
@@ -94062,9 +94105,9 @@ var ts;
94062
94105
  var output = "";
94063
94106
  output += color(relativeFileName, ForegroundColorEscapeSequences.Cyan);
94064
94107
  output += ":";
94065
- output += color("" + (firstLine + 1), ForegroundColorEscapeSequences.Yellow);
94108
+ output += color("".concat(firstLine + 1), ForegroundColorEscapeSequences.Yellow);
94066
94109
  output += ":";
94067
- output += color("" + (firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
94110
+ output += color("".concat(firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
94068
94111
  return output;
94069
94112
  }
94070
94113
  ts.formatLocation = formatLocation;
@@ -94078,7 +94121,7 @@ var ts;
94078
94121
  output += " - ";
94079
94122
  }
94080
94123
  output += formatColorAndReset(ts.diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category));
94081
- output += formatColorAndReset(" TS" + diagnostic.code + ": ", ForegroundColorEscapeSequences.Grey);
94124
+ output += formatColorAndReset(" TS".concat(diagnostic.code, ": "), ForegroundColorEscapeSequences.Grey);
94082
94125
  output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine());
94083
94126
  if (diagnostic.file) {
94084
94127
  output += host.getNewLine();
@@ -94178,7 +94221,7 @@ var ts;
94178
94221
  var result = void 0;
94179
94222
  var mode = getModeForResolutionAtIndex(containingFile, i);
94180
94223
  i++;
94181
- var cacheKey = mode !== undefined ? mode + "|" + name : name;
94224
+ var cacheKey = mode !== undefined ? "".concat(mode, "|").concat(name) : name;
94182
94225
  if (cache.has(cacheKey)) {
94183
94226
  result = cache.get(cacheKey);
94184
94227
  }
@@ -96049,7 +96092,7 @@ var ts;
96049
96092
  path += (i === 2 ? "/" : "-") + components[i];
96050
96093
  i++;
96051
96094
  }
96052
- var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_" + libFileName + "__.ts");
96095
+ var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_".concat(libFileName, "__.ts"));
96053
96096
  var localOverrideModuleResult = ts.resolveModuleName("@typescript/lib-" + path, resolveFrom, { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, moduleResolutionCache);
96054
96097
  if (localOverrideModuleResult === null || localOverrideModuleResult === void 0 ? void 0 : localOverrideModuleResult.resolvedModule) {
96055
96098
  return localOverrideModuleResult.resolvedModule.resolvedFileName;
@@ -96183,7 +96226,7 @@ var ts;
96183
96226
  return resolvedRef;
96184
96227
  }
96185
96228
  function verifyCompilerOptions() {
96186
- var isNightly = ts.stringContains(ts.version, "-dev") || ts.stringContains(ts.version, "-insiders");
96229
+ var isNightly = ts.stringContains(ts.version, "-dev");
96187
96230
  if (!isNightly) {
96188
96231
  if (ts.getEmitModuleKind(options) === ts.ModuleKind.Node12) {
96189
96232
  createOptionValueDiagnostic("module", ts.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next, "module", "node12");
@@ -96818,10 +96861,10 @@ var ts;
96818
96861
  }
96819
96862
  function directoryExistsIfProjectReferenceDeclDir(dir) {
96820
96863
  var dirPath = host.toPath(dir);
96821
- var dirPathWithTrailingDirectorySeparator = "" + dirPath + ts.directorySeparator;
96864
+ var dirPathWithTrailingDirectorySeparator = "".concat(dirPath).concat(ts.directorySeparator);
96822
96865
  return ts.forEachKey(setOfDeclarationDirectories, function (declDirPath) { return dirPath === declDirPath ||
96823
96866
  ts.startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) ||
96824
- ts.startsWith(dirPath, declDirPath + "/"); });
96867
+ ts.startsWith(dirPath, "".concat(declDirPath, "/")); });
96825
96868
  }
96826
96869
  function handleDirectoryCouldBeSymlink(directory) {
96827
96870
  var _a;
@@ -96869,7 +96912,7 @@ var ts;
96869
96912
  var result = fileOrDirectoryExistsUsingSource(fileOrDirectoryPath.replace(directoryPath, symlinkedDirectory.realPath));
96870
96913
  if (isFile && result) {
96871
96914
  var absolutePath = ts.getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirectory());
96872
- symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "" + symlinkedDirectory.real + absolutePath.replace(new RegExp(directoryPath, "i"), ""));
96915
+ symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "".concat(symlinkedDirectory.real).concat(absolutePath.replace(new RegExp(directoryPath, "i"), "")));
96873
96916
  }
96874
96917
  return result;
96875
96918
  }) || false;
@@ -97253,7 +97296,7 @@ var ts;
97253
97296
  var emitOutput_1 = getFileEmitOutput(programOfThisState, sourceFile, true, cancellationToken, undefined, true);
97254
97297
  var firstDts_1 = ts.firstOrUndefined(emitOutput_1.outputFiles);
97255
97298
  if (firstDts_1) {
97256
- ts.Debug.assert(ts.fileExtensionIsOneOf(firstDts_1.name, [".d.ts", ".d.mts", ".d.cts"]), "File extension for signature expected to be dts", function () { return "Found: " + ts.getAnyExtensionFromPath(firstDts_1.name) + " for " + firstDts_1.name + ":: All output files: " + JSON.stringify(emitOutput_1.outputFiles.map(function (f) { return f.name; })); });
97299
+ ts.Debug.assert(ts.fileExtensionIsOneOf(firstDts_1.name, [".d.ts", ".d.mts", ".d.cts"]), "File extension for signature expected to be dts", function () { return "Found: ".concat(ts.getAnyExtensionFromPath(firstDts_1.name), " for ").concat(firstDts_1.name, ":: All output files: ").concat(JSON.stringify(emitOutput_1.outputFiles.map(function (f) { return f.name; }))); });
97257
97300
  latestSignature = (computeHash || ts.generateDjb2Hash)(firstDts_1.text);
97258
97301
  if (exportedModulesMapCache && latestSignature !== prevSignature) {
97259
97302
  updateExportedModules(sourceFile, emitOutput_1.exportedModulesFromDeclarationEmit, exportedModulesMapCache);
@@ -97649,7 +97692,7 @@ var ts;
97649
97692
  return;
97650
97693
  }
97651
97694
  else {
97652
- ts.Debug.assert(state.hasCalledUpdateShapeSignature.has(affectedFile.resolvedPath) || ((_a = state.currentAffectedFilesSignatures) === null || _a === void 0 ? void 0 : _a.has(affectedFile.resolvedPath)), "Signature not updated for affected file: " + affectedFile.fileName);
97695
+ ts.Debug.assert(state.hasCalledUpdateShapeSignature.has(affectedFile.resolvedPath) || ((_a = state.currentAffectedFilesSignatures) === null || _a === void 0 ? void 0 : _a.has(affectedFile.resolvedPath)), "Signature not updated for affected file: ".concat(affectedFile.fileName));
97653
97696
  }
97654
97697
  if (!state.compilerOptions.assumeChangesOnlyAffectDirectDependencies) {
97655
97698
  forEachReferencingModulesOfExportOfAffectedFile(state, affectedFile, function (state, path) { return handleDtsMayChangeOf(state, path, cancellationToken, computeHash); });
@@ -98621,7 +98664,7 @@ var ts;
98621
98664
  failedLookupLocation = ts.isRootedDiskPath(failedLookupLocation) ? ts.normalizePath(failedLookupLocation) : ts.getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory());
98622
98665
  var failedLookupPathSplit = failedLookupLocationPath.split(ts.directorySeparator);
98623
98666
  var failedLookupSplit = failedLookupLocation.split(ts.directorySeparator);
98624
- ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: " + failedLookupLocation + " failedLookupLocationPath: " + failedLookupLocationPath);
98667
+ ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: ".concat(failedLookupLocation, " failedLookupLocationPath: ").concat(failedLookupLocationPath));
98625
98668
  if (failedLookupPathSplit.length > rootSplitLength + 1) {
98626
98669
  return {
98627
98670
  dir: failedLookupSplit.slice(0, rootSplitLength + 1).join(ts.directorySeparator),
@@ -99543,7 +99586,7 @@ var ts;
99543
99586
  }
99544
99587
  function getJSExtensionForFile(fileName, options) {
99545
99588
  var _a;
99546
- return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension " + ts.extensionFromPath(fileName) + " is unsupported:: FileName:: " + fileName);
99589
+ return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension ".concat(ts.extensionFromPath(fileName), " is unsupported:: FileName:: ").concat(fileName));
99547
99590
  }
99548
99591
  function tryGetJSExtensionForFile(fileName, options) {
99549
99592
  var ext = ts.tryGetExtensionFromPath(fileName);
@@ -99633,8 +99676,8 @@ var ts;
99633
99676
  return pretty ?
99634
99677
  function (diagnostic, newLine, options) {
99635
99678
  clearScreenIfNotWatchingForFileChanges(system, diagnostic, options);
99636
- var output = "[" + ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + "] ";
99637
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (newLine + newLine);
99679
+ var output = "[".concat(ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ");
99680
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(newLine + newLine);
99638
99681
  system.write(output);
99639
99682
  } :
99640
99683
  function (diagnostic, newLine, options) {
@@ -99642,8 +99685,8 @@ var ts;
99642
99685
  if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) {
99643
99686
  output += newLine;
99644
99687
  }
99645
- output += getLocaleTimeString(system) + " - ";
99646
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + getPlainDiagnosticFollowingNewLines(diagnostic, newLine);
99688
+ output += "".concat(getLocaleTimeString(system), " - ");
99689
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(getPlainDiagnosticFollowingNewLines(diagnostic, newLine));
99647
99690
  system.write(output);
99648
99691
  };
99649
99692
  }
@@ -99665,7 +99708,7 @@ var ts;
99665
99708
  .map(function (errorDiagnostic) {
99666
99709
  if (errorDiagnostic.file === undefined)
99667
99710
  return;
99668
- return "" + errorDiagnostic.file.fileName;
99711
+ return "".concat(errorDiagnostic.file.fileName);
99669
99712
  });
99670
99713
  return filesInError.map(function (fileName) {
99671
99714
  var diagnosticForFileName = ts.find(diagnostics, function (diagnostic) {
@@ -99698,7 +99741,7 @@ var ts;
99698
99741
  if (errorCount === 0)
99699
99742
  return "";
99700
99743
  var nonNilFiles = filesInError.filter(function (fileInError) { return fileInError !== undefined; });
99701
- var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return fileInError.fileName + ":" + fileInError.line; })
99744
+ var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return "".concat(fileInError.fileName, ":").concat(fileInError.line); })
99702
99745
  .filter(function (value, index, self) { return self.indexOf(value) === index; });
99703
99746
  var firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory());
99704
99747
  var d = errorCount === 1 ?
@@ -99711,7 +99754,7 @@ var ts;
99711
99754
  ts.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1 :
99712
99755
  ts.Diagnostics.Found_0_errors_in_1_files, errorCount, distinctFileNamesWithLines.length === 1 ? firstFileReference : distinctFileNamesWithLines.length);
99713
99756
  var suffix = distinctFileNamesWithLines.length > 1 ? createTabularErrorsDisplay(nonNilFiles, host) : "";
99714
- return "" + newLine + ts.flattenDiagnosticMessageText(d.messageText, newLine) + newLine + newLine + suffix;
99757
+ return "".concat(newLine).concat(ts.flattenDiagnosticMessageText(d.messageText, newLine)).concat(newLine).concat(newLine).concat(suffix);
99715
99758
  }
99716
99759
  ts.getErrorSummaryText = getErrorSummaryText;
99717
99760
  function createTabularErrorsDisplay(filesInError, host) {
@@ -99734,7 +99777,7 @@ var ts;
99734
99777
  " ".repeat(leftPaddingGoal - errorCountDigitsLength)
99735
99778
  : "";
99736
99779
  var fileRef = prettyPathForFileError(file, host.getCurrentDirectory());
99737
- tabularData += "" + leftPadding + errorCount + " " + fileRef + "\n";
99780
+ tabularData += "".concat(leftPadding).concat(errorCount, " ").concat(fileRef, "\n");
99738
99781
  });
99739
99782
  return tabularData;
99740
99783
  }
@@ -99761,9 +99804,9 @@ var ts;
99761
99804
  var relativeFileName = function (fileName) { return ts.convertToRelativePath(fileName, program.getCurrentDirectory(), getCanonicalFileName); };
99762
99805
  for (var _i = 0, _c = program.getSourceFiles(); _i < _c.length; _i++) {
99763
99806
  var file = _c[_i];
99764
- write("" + toFileName(file, relativeFileName));
99765
- (_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" " + fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText); });
99766
- (_b = explainIfFileIsRedirect(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" " + d.messageText); });
99807
+ write("".concat(toFileName(file, relativeFileName)));
99808
+ (_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" ".concat(fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText)); });
99809
+ (_b = explainIfFileIsRedirect(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" ".concat(d.messageText)); });
99767
99810
  }
99768
99811
  }
99769
99812
  ts.explainFiles = explainFiles;
@@ -99801,7 +99844,7 @@ var ts;
99801
99844
  if (isJsonFile && !ts.endsWith(includeSpec, ".json"))
99802
99845
  return false;
99803
99846
  var pattern = ts.getPatternFromSpec(includeSpec, basePath, "files");
99804
- return !!pattern && ts.getRegexFromPattern("(" + pattern + ")$", useCaseSensitiveFileNames).test(fileName);
99847
+ return !!pattern && ts.getRegexFromPattern("(".concat(pattern, ")$"), useCaseSensitiveFileNames).test(fileName);
99805
99848
  });
99806
99849
  }
99807
99850
  ts.getMatchedIncludeSpec = getMatchedIncludeSpec;
@@ -99810,7 +99853,7 @@ var ts;
99810
99853
  var options = program.getCompilerOptions();
99811
99854
  if (ts.isReferencedFile(reason)) {
99812
99855
  var referenceLocation = ts.getReferencedFileLocation(function (path) { return program.getSourceFileByPath(path); }, reason);
99813
- var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"" + referenceLocation.text + "\"";
99856
+ var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"".concat(referenceLocation.text, "\"");
99814
99857
  var message = void 0;
99815
99858
  ts.Debug.assert(ts.isReferenceFileLocation(referenceLocation) || reason.kind === ts.FileIncludeKind.Import, "Only synthetic references are imports");
99816
99859
  switch (reason.kind) {
@@ -99921,7 +99964,7 @@ var ts;
99921
99964
  var currentDir_1 = program.getCurrentDirectory();
99922
99965
  ts.forEach(emittedFiles, function (file) {
99923
99966
  var filepath = ts.getNormalizedAbsolutePath(file, currentDir_1);
99924
- write("TSFILE: " + filepath);
99967
+ write("TSFILE: ".concat(filepath));
99925
99968
  });
99926
99969
  listFiles(program, write);
99927
99970
  }
@@ -100228,7 +100271,7 @@ var ts;
100228
100271
  }
100229
100272
  var _b = ts.createWatchFactory(host, compilerOptions), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory, writeLog = _b.writeLog;
100230
100273
  var getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
100231
- writeLog("Current directory: " + currentDirectory + " CaseSensitiveFileNames: " + useCaseSensitiveFileNames);
100274
+ writeLog("Current directory: ".concat(currentDirectory, " CaseSensitiveFileNames: ").concat(useCaseSensitiveFileNames));
100232
100275
  var configFileWatcher;
100233
100276
  if (configFileName) {
100234
100277
  configFileWatcher = watchFile(configFileName, scheduleProgramReload, ts.PollingInterval.High, watchOptions, ts.WatchType.ConfigFile);
@@ -100375,10 +100418,10 @@ var ts;
100375
100418
  }
100376
100419
  function createNewProgram(hasInvalidatedResolution) {
100377
100420
  writeLog("CreatingProgramWith::");
100378
- writeLog(" roots: " + JSON.stringify(rootFileNames));
100379
- writeLog(" options: " + JSON.stringify(compilerOptions));
100421
+ writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
100422
+ writeLog(" options: ".concat(JSON.stringify(compilerOptions)));
100380
100423
  if (projectReferences)
100381
- writeLog(" projectReferences: " + JSON.stringify(projectReferences));
100424
+ writeLog(" projectReferences: ".concat(JSON.stringify(projectReferences)));
100382
100425
  var needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !getCurrentProgram();
100383
100426
  hasChangedCompilerOptions = false;
100384
100427
  hasChangedConfigFileParsingErrors = false;
@@ -100520,7 +100563,7 @@ var ts;
100520
100563
  return resolutionCache.invalidateResolutionsOfFailedLookupLocations();
100521
100564
  }
100522
100565
  var pending = clearInvalidateResolutionsOfFailedLookupLocations();
100523
- writeLog("Scheduling invalidateFailedLookup" + (pending ? ", Cancelled earlier one" : ""));
100566
+ writeLog("Scheduling invalidateFailedLookup".concat(pending ? ", Cancelled earlier one" : ""));
100524
100567
  timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250);
100525
100568
  }
100526
100569
  function invalidateResolutionsOfFailedLookup() {
@@ -100576,7 +100619,7 @@ var ts;
100576
100619
  synchronizeProgram();
100577
100620
  }
100578
100621
  function reloadConfigFile() {
100579
- writeLog("Reloading config file: " + configFileName);
100622
+ writeLog("Reloading config file: ".concat(configFileName));
100580
100623
  reloadLevel = ts.ConfigFileProgramReloadLevel.None;
100581
100624
  if (cachedDirectoryStructureHost) {
100582
100625
  cachedDirectoryStructureHost.clearCache();
@@ -100614,7 +100657,7 @@ var ts;
100614
100657
  return config.parsedCommandLine;
100615
100658
  }
100616
100659
  }
100617
- writeLog("Loading config file: " + configFileName);
100660
+ writeLog("Loading config file: ".concat(configFileName));
100618
100661
  var parsedCommandLine = host.getParsedCommandLine ?
100619
100662
  host.getParsedCommandLine(configFileName) :
100620
100663
  getParsedCommandLineFromConfigFileHost(configFileName);
@@ -100867,8 +100910,8 @@ var ts;
100867
100910
  ts.getBuildOrderFromAnyBuildOrder = getBuildOrderFromAnyBuildOrder;
100868
100911
  function createBuilderStatusReporter(system, pretty) {
100869
100912
  return function (diagnostic) {
100870
- var output = pretty ? "[" + ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + "] " : ts.getLocaleTimeString(system) + " - ";
100871
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (system.newLine + system.newLine);
100913
+ var output = pretty ? "[".concat(ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ") : "".concat(ts.getLocaleTimeString(system), " - ");
100914
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(system.newLine + system.newLine);
100872
100915
  system.write(output);
100873
100916
  };
100874
100917
  }
@@ -101611,7 +101654,7 @@ var ts;
101611
101654
  function listEmittedFile(_a, proj, file) {
101612
101655
  var write = _a.write;
101613
101656
  if (write && proj.options.listEmittedFiles) {
101614
- write("TSFILE: " + file);
101657
+ write("TSFILE: ".concat(file));
101615
101658
  }
101616
101659
  }
101617
101660
  function getOldProgram(_a, proj, parsed) {
@@ -101640,7 +101683,7 @@ var ts;
101640
101683
  function buildErrors(state, resolvedPath, program, config, diagnostics, buildResult, errorType) {
101641
101684
  var canEmitBuildInfo = !(buildResult & BuildResultFlags.SyntaxErrors) && program && !ts.outFile(program.getCompilerOptions());
101642
101685
  reportAndStoreErrors(state, resolvedPath, diagnostics);
101643
- state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: errorType + " errors" });
101686
+ state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: "".concat(errorType, " errors") });
101644
101687
  if (canEmitBuildInfo)
101645
101688
  return { buildResult: buildResult, step: BuildStep.EmitBuildInfo };
101646
101689
  afterProgramDone(state, program, config);
@@ -101666,7 +101709,7 @@ var ts;
101666
101709
  if (!host.fileExists(inputFile)) {
101667
101710
  return {
101668
101711
  type: ts.UpToDateStatusType.Unbuildable,
101669
- reason: inputFile + " does not exist"
101712
+ reason: "".concat(inputFile, " does not exist")
101670
101713
  };
101671
101714
  }
101672
101715
  if (!force) {
@@ -101991,7 +102034,7 @@ var ts;
101991
102034
  }
101992
102035
  }
101993
102036
  if (filesToDelete) {
101994
- reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return "\r\n * " + f; }).join(""));
102037
+ reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return "\r\n * ".concat(f); }).join(""));
101995
102038
  }
101996
102039
  return ts.ExitStatus.Success;
101997
102040
  }
@@ -102341,7 +102384,7 @@ var ts;
102341
102384
  };
102342
102385
  }
102343
102386
  function bold(str) {
102344
- return "\u001B[1m" + str + "\u001B[22m";
102387
+ return "\u001B[1m".concat(str, "\u001B[22m");
102345
102388
  }
102346
102389
  var isWindows = sys.getEnvironmentVariable("OS") && ts.stringContains(sys.getEnvironmentVariable("OS").toLowerCase(), "windows");
102347
102390
  var isWindowsTerminal = sys.getEnvironmentVariable("WT_SESSION");
@@ -102350,19 +102393,19 @@ var ts;
102350
102393
  if (isWindows && !isWindowsTerminal && !isVSCode) {
102351
102394
  return brightWhite(str);
102352
102395
  }
102353
- return "\u001B[94m" + str + "\u001B[39m";
102396
+ return "\u001B[94m".concat(str, "\u001B[39m");
102354
102397
  }
102355
102398
  var supportsRicherColors = sys.getEnvironmentVariable("COLORTERM") === "truecolor" || sys.getEnvironmentVariable("TERM") === "xterm-256color";
102356
102399
  function blueBackground(str) {
102357
102400
  if (supportsRicherColors) {
102358
- return "\u001B[48;5;68m" + str + "\u001B[39;49m";
102401
+ return "\u001B[48;5;68m".concat(str, "\u001B[39;49m");
102359
102402
  }
102360
102403
  else {
102361
- return "\u001B[44m" + str + "\u001B[39;49m";
102404
+ return "\u001B[44m".concat(str, "\u001B[39;49m");
102362
102405
  }
102363
102406
  }
102364
102407
  function brightWhite(str) {
102365
- return "\u001B[97m" + str + "\u001B[39m";
102408
+ return "\u001B[97m".concat(str, "\u001B[39m");
102366
102409
  }
102367
102410
  return {
102368
102411
  bold: bold,
@@ -102372,7 +102415,7 @@ var ts;
102372
102415
  };
102373
102416
  }
102374
102417
  function getDisplayNameTextOfOption(option) {
102375
- return "--" + option.name + (option.shortName ? ", -" + option.shortName : "");
102418
+ return "--".concat(option.name).concat(option.shortName ? ", -".concat(option.shortName) : "");
102376
102419
  }
102377
102420
  function generateOptionOutput(sys, option, rightAlignOfLeft, leftAlignOfRight) {
102378
102421
  var _a, _b;
@@ -102409,13 +102452,13 @@ var ts;
102409
102452
  text.push(sys.newLine);
102410
102453
  if (showAdditionalInfoOutput(valueCandidates, option)) {
102411
102454
  if (valueCandidates) {
102412
- text.push(valueCandidates.valueType + " " + valueCandidates.possibleValues);
102455
+ text.push("".concat(valueCandidates.valueType, " ").concat(valueCandidates.possibleValues));
102413
102456
  }
102414
102457
  if (defaultValueDescription) {
102415
102458
  if (valueCandidates)
102416
102459
  text.push(sys.newLine);
102417
102460
  var diagType = ts.getDiagnosticText(ts.Diagnostics.default_Colon);
102418
- text.push(diagType + " " + defaultValueDescription);
102461
+ text.push("".concat(diagType, " ").concat(defaultValueDescription));
102419
102462
  }
102420
102463
  text.push(sys.newLine);
102421
102464
  }
@@ -102464,7 +102507,7 @@ var ts;
102464
102507
  }
102465
102508
  var curRight = remainRight.substr(0, rightCharacterNumber);
102466
102509
  remainRight = remainRight.slice(rightCharacterNumber);
102467
- res.push("" + curLeft + curRight);
102510
+ res.push("".concat(curLeft).concat(curRight));
102468
102511
  isFirstLine = false;
102469
102512
  }
102470
102513
  return res;
@@ -102565,7 +102608,7 @@ var ts;
102565
102608
  categoryMap.set(curCategory, optionsOfCurCategory);
102566
102609
  }
102567
102610
  categoryMap.forEach(function (value, key) {
102568
- res.push("### " + key + sys.newLine + sys.newLine);
102611
+ res.push("### ".concat(key).concat(sys.newLine).concat(sys.newLine));
102569
102612
  res = __spreadArray(__spreadArray([], res, true), generateGroupOptionOutput(sys, value), true);
102570
102613
  });
102571
102614
  if (afterOptionsDescription) {
@@ -102575,7 +102618,7 @@ var ts;
102575
102618
  }
102576
102619
  function printEasyHelp(sys, simpleOptions) {
102577
102620
  var colors = createColors(sys);
102578
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
102621
+ var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
102579
102622
  output.push(colors.bold(ts.getDiagnosticText(ts.Diagnostics.COMMON_COMMANDS)) + sys.newLine + sys.newLine);
102580
102623
  example("tsc", ts.Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
102581
102624
  example("tsc app.ts util.ts", ts.Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
@@ -102601,7 +102644,7 @@ var ts;
102601
102644
  }
102602
102645
  }
102603
102646
  function printAllHelp(sys, compilerOptions, buildOptions, watchOptions) {
102604
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
102647
+ var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
102605
102648
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.ALL_COMPILER_OPTIONS), compilerOptions, true, undefined, ts.formatMessage(undefined, ts.Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsconfig-reference")), true);
102606
102649
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.WATCH_OPTIONS), watchOptions, false, ts.getDiagnosticText(ts.Diagnostics.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon)), true);
102607
102650
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.BUILD_OPTIONS), buildOptions, false, ts.formatMessage(undefined, ts.Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")), true);
@@ -102611,7 +102654,7 @@ var ts;
102611
102654
  }
102612
102655
  }
102613
102656
  function printBuildHelp(sys, buildOptions) {
102614
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
102657
+ var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
102615
102658
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.BUILD_OPTIONS), buildOptions, false, ts.formatMessage(undefined, ts.Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")), true);
102616
102659
  for (var _i = 0, output_3 = output; _i < output_3.length; _i++) {
102617
102660
  var line = output_3[_i];
@@ -102992,7 +103035,7 @@ var ts;
102992
103035
  reportCountStatistic("Subtype cache size", caches.subtype);
102993
103036
  reportCountStatistic("Strict subtype cache size", caches.strictSubtype);
102994
103037
  if (isPerformanceEnabled) {
102995
- ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic(name + " time", duration); });
103038
+ ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic("".concat(name, " time"), duration); });
102996
103039
  }
102997
103040
  }
102998
103041
  else if (isPerformanceEnabled) {
@@ -103063,7 +103106,7 @@ var ts;
103063
103106
  // This file actually uses arguments passed on commandline and executes it
103064
103107
  ts.Debug.loggingHost = {
103065
103108
  log: function (_level, s) {
103066
- ts.sys.write("" + (s || "") + ts.sys.newLine);
103109
+ ts.sys.write("".concat(s || "").concat(ts.sys.newLine));
103067
103110
  }
103068
103111
  };
103069
103112
  if (ts.Debug.isDebugging) {