typescript 4.8.0-dev.20220809 → 4.8.3

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.8";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20220809";
72
+ ts.version = "4.8.3";
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;
@@ -1479,7 +1479,7 @@ var ts;
1479
1479
  function cast(value, test) {
1480
1480
  if (value !== undefined && test(value))
1481
1481
  return value;
1482
- return ts.Debug.fail("Invalid cast. The supplied value " + value + " did not pass the test '" + ts.Debug.getFunctionName(test) + "'.");
1482
+ return ts.Debug.fail("Invalid cast. The supplied value ".concat(value, " did not pass the test '").concat(ts.Debug.getFunctionName(test), "'."));
1483
1483
  }
1484
1484
  ts.cast = cast;
1485
1485
  function noop(_) { }
@@ -1533,7 +1533,7 @@ var ts;
1533
1533
  function memoizeOne(callback) {
1534
1534
  var map = new ts.Map();
1535
1535
  return function (arg) {
1536
- var key = typeof arg + ":" + arg;
1536
+ var key = "".concat(typeof arg, ":").concat(arg);
1537
1537
  var value = map.get(key);
1538
1538
  if (value === undefined && !map.has(key)) {
1539
1539
  value = callback(arg);
@@ -1868,7 +1868,7 @@ var ts;
1868
1868
  ts.createGetCanonicalFileName = createGetCanonicalFileName;
1869
1869
  function patternText(_a) {
1870
1870
  var prefix = _a.prefix, suffix = _a.suffix;
1871
- return prefix + "*" + suffix;
1871
+ return "".concat(prefix, "*").concat(suffix);
1872
1872
  }
1873
1873
  ts.patternText = patternText;
1874
1874
  function matchedText(pattern, candidate) {
@@ -2071,6 +2071,7 @@ var ts;
2071
2071
  var currentAssertionLevel = 0;
2072
2072
  Debug.currentLogLevel = LogLevel.Warning;
2073
2073
  Debug.isDebugging = false;
2074
+ Debug.enableDeprecationWarnings = true;
2074
2075
  function getTypeScriptVersion() {
2075
2076
  return typeScriptVersion !== null && typeScriptVersion !== void 0 ? typeScriptVersion : (typeScriptVersion = new ts.Version(ts.version));
2076
2077
  }
@@ -2140,7 +2141,7 @@ var ts;
2140
2141
  }
2141
2142
  function fail(message, stackCrawlMark) {
2142
2143
  debugger;
2143
- var e = new Error(message ? "Debug Failure. " + message : "Debug Failure.");
2144
+ var e = new Error(message ? "Debug Failure. ".concat(message) : "Debug Failure.");
2144
2145
  if (Error.captureStackTrace) {
2145
2146
  Error.captureStackTrace(e, stackCrawlMark || fail);
2146
2147
  }
@@ -2148,12 +2149,12 @@ var ts;
2148
2149
  }
2149
2150
  Debug.fail = fail;
2150
2151
  function failBadSyntaxKind(node, message, stackCrawlMark) {
2151
- return fail((message || "Unexpected node.") + "\r\nNode " + formatSyntaxKind(node.kind) + " was unexpected.", stackCrawlMark || failBadSyntaxKind);
2152
+ return fail("".concat(message || "Unexpected node.", "\r\nNode ").concat(formatSyntaxKind(node.kind), " was unexpected."), stackCrawlMark || failBadSyntaxKind);
2152
2153
  }
2153
2154
  Debug.failBadSyntaxKind = failBadSyntaxKind;
2154
2155
  function assert(expression, message, verboseDebugInfo, stackCrawlMark) {
2155
2156
  if (!expression) {
2156
- message = message ? "False expression: " + message : "False expression.";
2157
+ message = message ? "False expression: ".concat(message) : "False expression.";
2157
2158
  if (verboseDebugInfo) {
2158
2159
  message += "\r\nVerbose Debug Information: " + (typeof verboseDebugInfo === "string" ? verboseDebugInfo : verboseDebugInfo());
2159
2160
  }
@@ -2163,26 +2164,26 @@ var ts;
2163
2164
  Debug.assert = assert;
2164
2165
  function assertEqual(a, b, msg, msg2, stackCrawlMark) {
2165
2166
  if (a !== b) {
2166
- var message = msg ? msg2 ? msg + " " + msg2 : msg : "";
2167
- fail("Expected " + a + " === " + b + ". " + message, stackCrawlMark || assertEqual);
2167
+ var message = msg ? msg2 ? "".concat(msg, " ").concat(msg2) : msg : "";
2168
+ fail("Expected ".concat(a, " === ").concat(b, ". ").concat(message), stackCrawlMark || assertEqual);
2168
2169
  }
2169
2170
  }
2170
2171
  Debug.assertEqual = assertEqual;
2171
2172
  function assertLessThan(a, b, msg, stackCrawlMark) {
2172
2173
  if (a >= b) {
2173
- fail("Expected " + a + " < " + b + ". " + (msg || ""), stackCrawlMark || assertLessThan);
2174
+ fail("Expected ".concat(a, " < ").concat(b, ". ").concat(msg || ""), stackCrawlMark || assertLessThan);
2174
2175
  }
2175
2176
  }
2176
2177
  Debug.assertLessThan = assertLessThan;
2177
2178
  function assertLessThanOrEqual(a, b, stackCrawlMark) {
2178
2179
  if (a > b) {
2179
- fail("Expected " + a + " <= " + b, stackCrawlMark || assertLessThanOrEqual);
2180
+ fail("Expected ".concat(a, " <= ").concat(b), stackCrawlMark || assertLessThanOrEqual);
2180
2181
  }
2181
2182
  }
2182
2183
  Debug.assertLessThanOrEqual = assertLessThanOrEqual;
2183
2184
  function assertGreaterThanOrEqual(a, b, stackCrawlMark) {
2184
2185
  if (a < b) {
2185
- fail("Expected " + a + " >= " + b, stackCrawlMark || assertGreaterThanOrEqual);
2186
+ fail("Expected ".concat(a, " >= ").concat(b), stackCrawlMark || assertGreaterThanOrEqual);
2186
2187
  }
2187
2188
  }
2188
2189
  Debug.assertGreaterThanOrEqual = assertGreaterThanOrEqual;
@@ -2212,42 +2213,42 @@ var ts;
2212
2213
  function assertNever(member, message, stackCrawlMark) {
2213
2214
  if (message === void 0) { message = "Illegal value:"; }
2214
2215
  var detail = typeof member === "object" && ts.hasProperty(member, "kind") && ts.hasProperty(member, "pos") ? "SyntaxKind: " + formatSyntaxKind(member.kind) : JSON.stringify(member);
2215
- return fail(message + " " + detail, stackCrawlMark || assertNever);
2216
+ return fail("".concat(message, " ").concat(detail), stackCrawlMark || assertNever);
2216
2217
  }
2217
2218
  Debug.assertNever = assertNever;
2218
2219
  function assertEachNode(nodes, test, message, stackCrawlMark) {
2219
2220
  if (shouldAssertFunction(1, "assertEachNode")) {
2220
- assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertEachNode);
2221
+ assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '".concat(getFunctionName(test), "'."); }, stackCrawlMark || assertEachNode);
2221
2222
  }
2222
2223
  }
2223
2224
  Debug.assertEachNode = assertEachNode;
2224
2225
  function assertNode(node, test, message, stackCrawlMark) {
2225
2226
  if (shouldAssertFunction(1, "assertNode")) {
2226
- 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);
2227
+ 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);
2227
2228
  }
2228
2229
  }
2229
2230
  Debug.assertNode = assertNode;
2230
2231
  function assertNotNode(node, test, message, stackCrawlMark) {
2231
2232
  if (shouldAssertFunction(1, "assertNotNode")) {
2232
- 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);
2233
+ 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);
2233
2234
  }
2234
2235
  }
2235
2236
  Debug.assertNotNode = assertNotNode;
2236
2237
  function assertOptionalNode(node, test, message, stackCrawlMark) {
2237
2238
  if (shouldAssertFunction(1, "assertOptionalNode")) {
2238
- 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);
2239
+ 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);
2239
2240
  }
2240
2241
  }
2241
2242
  Debug.assertOptionalNode = assertOptionalNode;
2242
2243
  function assertOptionalToken(node, kind, message, stackCrawlMark) {
2243
2244
  if (shouldAssertFunction(1, "assertOptionalToken")) {
2244
- 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);
2245
+ 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);
2245
2246
  }
2246
2247
  }
2247
2248
  Debug.assertOptionalToken = assertOptionalToken;
2248
2249
  function assertMissingNode(node, message, stackCrawlMark) {
2249
2250
  if (shouldAssertFunction(1, "assertMissingNode")) {
2250
- assert(node === undefined, message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node.kind) + " was unexpected'."; }, stackCrawlMark || assertMissingNode);
2251
+ assert(node === undefined, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node.kind), " was unexpected'."); }, stackCrawlMark || assertMissingNode);
2251
2252
  }
2252
2253
  }
2253
2254
  Debug.assertMissingNode = assertMissingNode;
@@ -2268,7 +2269,7 @@ var ts;
2268
2269
  }
2269
2270
  Debug.getFunctionName = getFunctionName;
2270
2271
  function formatSymbol(symbol) {
2271
- return "{ name: " + ts.unescapeLeadingUnderscores(symbol.escapedName) + "; flags: " + formatSymbolFlags(symbol.flags) + "; declarations: " + ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }) + " }";
2272
+ return "{ name: ".concat(ts.unescapeLeadingUnderscores(symbol.escapedName), "; flags: ").concat(formatSymbolFlags(symbol.flags), "; declarations: ").concat(ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }), " }");
2272
2273
  }
2273
2274
  Debug.formatSymbol = formatSymbol;
2274
2275
  function formatEnum(value, enumObject, isFlags) {
@@ -2418,7 +2419,7 @@ var ts;
2418
2419
  this.flags & 1 ? "FlowUnreachable" :
2419
2420
  "UnknownFlow";
2420
2421
  var remainingFlags = this.flags & ~(2048 - 1);
2421
- return "" + flowHeader + (remainingFlags ? " (" + formatFlowFlags(remainingFlags) + ")" : "");
2422
+ return "".concat(flowHeader).concat(remainingFlags ? " (".concat(formatFlowFlags(remainingFlags), ")") : "");
2422
2423
  }
2423
2424
  },
2424
2425
  __debugFlowFlags: { get: function () { return formatEnum(this.flags, ts.FlowFlags, true); } },
@@ -2448,7 +2449,7 @@ var ts;
2448
2449
  __tsDebuggerDisplay: {
2449
2450
  value: function (defaultValue) {
2450
2451
  defaultValue = String(defaultValue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/, "]");
2451
- return "NodeArray " + defaultValue;
2452
+ return "NodeArray ".concat(defaultValue);
2452
2453
  }
2453
2454
  }
2454
2455
  });
@@ -2494,7 +2495,7 @@ var ts;
2494
2495
  var symbolHeader = this.flags & 33554432 ? "TransientSymbol" :
2495
2496
  "Symbol";
2496
2497
  var remainingSymbolFlags = this.flags & ~33554432;
2497
- return symbolHeader + " '" + ts.symbolName(this) + "'" + (remainingSymbolFlags ? " (" + formatSymbolFlags(remainingSymbolFlags) + ")" : "");
2498
+ return "".concat(symbolHeader, " '").concat(ts.symbolName(this), "'").concat(remainingSymbolFlags ? " (".concat(formatSymbolFlags(remainingSymbolFlags), ")") : "");
2498
2499
  }
2499
2500
  },
2500
2501
  __debugFlags: { get: function () { return formatSymbolFlags(this.flags); } }
@@ -2503,11 +2504,11 @@ var ts;
2503
2504
  __tsDebuggerDisplay: {
2504
2505
  value: function () {
2505
2506
  var typeHeader = this.flags & 98304 ? "NullableType" :
2506
- this.flags & 384 ? "LiteralType " + JSON.stringify(this.value) :
2507
- this.flags & 2048 ? "LiteralType " + (this.value.negative ? "-" : "") + this.value.base10Value + "n" :
2507
+ this.flags & 384 ? "LiteralType ".concat(JSON.stringify(this.value)) :
2508
+ this.flags & 2048 ? "LiteralType ".concat(this.value.negative ? "-" : "").concat(this.value.base10Value, "n") :
2508
2509
  this.flags & 8192 ? "UniqueESSymbolType" :
2509
2510
  this.flags & 32 ? "EnumType" :
2510
- this.flags & 67359327 ? "IntrinsicType " + this.intrinsicName :
2511
+ this.flags & 67359327 ? "IntrinsicType ".concat(this.intrinsicName) :
2511
2512
  this.flags & 1048576 ? "UnionType" :
2512
2513
  this.flags & 2097152 ? "IntersectionType" :
2513
2514
  this.flags & 4194304 ? "IndexType" :
@@ -2526,7 +2527,7 @@ var ts;
2526
2527
  "ObjectType" :
2527
2528
  "Type";
2528
2529
  var remainingObjectFlags = this.flags & 524288 ? this.objectFlags & ~1343 : 0;
2529
- return "" + typeHeader + (this.symbol ? " '" + ts.symbolName(this.symbol) + "'" : "") + (remainingObjectFlags ? " (" + formatObjectFlags(remainingObjectFlags) + ")" : "");
2530
+ return "".concat(typeHeader).concat(this.symbol ? " '".concat(ts.symbolName(this.symbol), "'") : "").concat(remainingObjectFlags ? " (".concat(formatObjectFlags(remainingObjectFlags), ")") : "");
2530
2531
  }
2531
2532
  },
2532
2533
  __debugFlags: { get: function () { return formatTypeFlags(this.flags); } },
@@ -2560,11 +2561,11 @@ var ts;
2560
2561
  __tsDebuggerDisplay: {
2561
2562
  value: function () {
2562
2563
  var nodeHeader = ts.isGeneratedIdentifier(this) ? "GeneratedIdentifier" :
2563
- ts.isIdentifier(this) ? "Identifier '" + ts.idText(this) + "'" :
2564
- ts.isPrivateIdentifier(this) ? "PrivateIdentifier '" + ts.idText(this) + "'" :
2565
- ts.isStringLiteral(this) ? "StringLiteral " + JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...") :
2566
- ts.isNumericLiteral(this) ? "NumericLiteral " + this.text :
2567
- ts.isBigIntLiteral(this) ? "BigIntLiteral " + this.text + "n" :
2564
+ ts.isIdentifier(this) ? "Identifier '".concat(ts.idText(this), "'") :
2565
+ ts.isPrivateIdentifier(this) ? "PrivateIdentifier '".concat(ts.idText(this), "'") :
2566
+ ts.isStringLiteral(this) ? "StringLiteral ".concat(JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")) :
2567
+ ts.isNumericLiteral(this) ? "NumericLiteral ".concat(this.text) :
2568
+ ts.isBigIntLiteral(this) ? "BigIntLiteral ".concat(this.text, "n") :
2568
2569
  ts.isTypeParameterDeclaration(this) ? "TypeParameterDeclaration" :
2569
2570
  ts.isParameter(this) ? "ParameterDeclaration" :
2570
2571
  ts.isConstructorDeclaration(this) ? "ConstructorDeclaration" :
@@ -2596,7 +2597,7 @@ var ts;
2596
2597
  ts.isNamedTupleMember(this) ? "NamedTupleMember" :
2597
2598
  ts.isImportTypeNode(this) ? "ImportTypeNode" :
2598
2599
  formatSyntaxKind(this.kind);
2599
- return "" + nodeHeader + (this.flags ? " (" + formatNodeFlags(this.flags) + ")" : "");
2600
+ return "".concat(nodeHeader).concat(this.flags ? " (".concat(formatNodeFlags(this.flags), ")") : "");
2600
2601
  }
2601
2602
  },
2602
2603
  __debugKind: { get: function () { return formatSyntaxKind(this.kind); } },
@@ -2640,10 +2641,10 @@ var ts;
2640
2641
  Debug.enableDebugInfo = enableDebugInfo;
2641
2642
  function formatDeprecationMessage(name, error, errorAfter, since, message) {
2642
2643
  var deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
2643
- deprecationMessage += "'" + name + "' ";
2644
- deprecationMessage += since ? "has been deprecated since v" + since : "is deprecated";
2645
- deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v" + errorAfter + "." : ".";
2646
- deprecationMessage += message ? " " + ts.formatStringFromArgs(message, [name], 0) : "";
2644
+ deprecationMessage += "'".concat(name, "' ");
2645
+ deprecationMessage += since ? "has been deprecated since v".concat(since) : "is deprecated";
2646
+ deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v".concat(errorAfter, ".") : ".";
2647
+ deprecationMessage += message ? " ".concat(ts.formatStringFromArgs(message, [name], 0)) : "";
2647
2648
  return deprecationMessage;
2648
2649
  }
2649
2650
  function createErrorDeprecation(name, errorAfter, since, message) {
@@ -2655,7 +2656,7 @@ var ts;
2655
2656
  function createWarningDeprecation(name, errorAfter, since, message) {
2656
2657
  var hasWrittenDeprecation = false;
2657
2658
  return function () {
2658
- if (!hasWrittenDeprecation) {
2659
+ if (Debug.enableDeprecationWarnings && !hasWrittenDeprecation) {
2659
2660
  log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
2660
2661
  hasWrittenDeprecation = true;
2661
2662
  }
@@ -2711,11 +2712,11 @@ var ts;
2711
2712
  type(this);
2712
2713
  switch (this.kind) {
2713
2714
  case 3: return ((_a = this.debugInfo) === null || _a === void 0 ? void 0 : _a.call(this)) || "(function mapper)";
2714
- case 0: return this.source.__debugTypeToString() + " -> " + this.target.__debugTypeToString();
2715
- case 1: return ts.zipWith(this.sources, this.targets || ts.map(this.sources, function () { return "any"; }), function (s, t) { return s.__debugTypeToString() + " -> " + (typeof t === "string" ? t : t.__debugTypeToString()); }).join(", ");
2716
- case 2: return ts.zipWith(this.sources, this.targets, function (s, t) { return s.__debugTypeToString() + " -> " + t().__debugTypeToString(); }).join(", ");
2715
+ case 0: return "".concat(this.source.__debugTypeToString(), " -> ").concat(this.target.__debugTypeToString());
2716
+ case 1: return ts.zipWith(this.sources, this.targets || ts.map(this.sources, function () { return "any"; }), function (s, t) { return "".concat(s.__debugTypeToString(), " -> ").concat(typeof t === "string" ? t : t.__debugTypeToString()); }).join(", ");
2717
+ case 2: return ts.zipWith(this.sources, this.targets, function (s, t) { return "".concat(s.__debugTypeToString(), " -> ").concat(t().__debugTypeToString()); }).join(", ");
2717
2718
  case 5:
2718
- case 4: return "m1: " + this.mapper1.__debugToString().split("\n").join("\n ") + "\nm2: " + this.mapper2.__debugToString().split("\n").join("\n ");
2719
+ case 4: return "m1: ".concat(this.mapper1.__debugToString().split("\n").join("\n "), "\nm2: ").concat(this.mapper2.__debugToString().split("\n").join("\n "));
2719
2720
  default: return assertNever(this);
2720
2721
  }
2721
2722
  };
@@ -2784,11 +2785,11 @@ var ts;
2784
2785
  }
2785
2786
  };
2786
2787
  Version.prototype.toString = function () {
2787
- var result = this.major + "." + this.minor + "." + this.patch;
2788
+ var result = "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch);
2788
2789
  if (ts.some(this.prerelease))
2789
- result += "-" + this.prerelease.join(".");
2790
+ result += "-".concat(this.prerelease.join("."));
2790
2791
  if (ts.some(this.build))
2791
- result += "+" + this.build.join(".");
2792
+ result += "+".concat(this.build.join("."));
2792
2793
  return result;
2793
2794
  };
2794
2795
  Version.zero = new Version(0, 0, 0);
@@ -3010,7 +3011,7 @@ var ts;
3010
3011
  return ts.map(comparators, formatComparator).join(" ");
3011
3012
  }
3012
3013
  function formatComparator(comparator) {
3013
- return "" + comparator.operator + comparator.operand;
3014
+ return "".concat(comparator.operator).concat(comparator.operand);
3014
3015
  }
3015
3016
  })(ts || (ts = {}));
3016
3017
  var ts;
@@ -3239,7 +3240,7 @@ var ts;
3239
3240
  fs = require("fs");
3240
3241
  }
3241
3242
  catch (e) {
3242
- throw new Error("tracing requires having fs\n(original error: " + (e.message || e) + ")");
3243
+ throw new Error("tracing requires having fs\n(original error: ".concat(e.message || e, ")"));
3243
3244
  }
3244
3245
  }
3245
3246
  mode = tracingMode;
@@ -3250,11 +3251,11 @@ var ts;
3250
3251
  if (!fs.existsSync(traceDir)) {
3251
3252
  fs.mkdirSync(traceDir, { recursive: true });
3252
3253
  }
3253
- var countPart = mode === "build" ? "." + process.pid + "-" + ++traceCount
3254
- : mode === "server" ? "." + process.pid
3254
+ var countPart = mode === "build" ? ".".concat(process.pid, "-").concat(++traceCount)
3255
+ : mode === "server" ? ".".concat(process.pid)
3255
3256
  : "";
3256
- var tracePath = ts.combinePaths(traceDir, "trace" + countPart + ".json");
3257
- var typesPath = ts.combinePaths(traceDir, "types" + countPart + ".json");
3257
+ var tracePath = ts.combinePaths(traceDir, "trace".concat(countPart, ".json"));
3258
+ var typesPath = ts.combinePaths(traceDir, "types".concat(countPart, ".json"));
3258
3259
  legend.push({
3259
3260
  configFilePath: configFilePath,
3260
3261
  tracePath: tracePath,
@@ -3323,7 +3324,7 @@ var ts;
3323
3324
  writeEvent("E", phase, name, args, undefined, endTime);
3324
3325
  }
3325
3326
  else if (sampleInterval - (time % sampleInterval) <= endTime - time) {
3326
- writeEvent("X", phase, name, __assign(__assign({}, args), { results: results }), "\"dur\":" + (endTime - time), time);
3327
+ writeEvent("X", phase, name, __assign(__assign({}, args), { results: results }), "\"dur\":".concat(endTime - time), time);
3327
3328
  }
3328
3329
  }
3329
3330
  function writeEvent(eventType, phase, name, args, extras, time) {
@@ -3331,11 +3332,11 @@ var ts;
3331
3332
  if (mode === "server" && phase === "checkTypes")
3332
3333
  return;
3333
3334
  ts.performance.mark("beginTracing");
3334
- fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"" + eventType + "\",\"cat\":\"" + phase + "\",\"ts\":" + time + ",\"name\":\"" + name + "\"");
3335
+ fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"".concat(eventType, "\",\"cat\":\"").concat(phase, "\",\"ts\":").concat(time, ",\"name\":\"").concat(name, "\""));
3335
3336
  if (extras)
3336
- fs.writeSync(traceFd, "," + extras);
3337
+ fs.writeSync(traceFd, ",".concat(extras));
3337
3338
  if (args)
3338
- fs.writeSync(traceFd, ",\"args\":" + JSON.stringify(args));
3339
+ fs.writeSync(traceFd, ",\"args\":".concat(JSON.stringify(args)));
3339
3340
  fs.writeSync(traceFd, "}");
3340
3341
  ts.performance.mark("endTracing");
3341
3342
  ts.performance.measure("Tracing", "beginTracing", "endTracing");
@@ -3662,7 +3663,7 @@ var ts;
3662
3663
  pollingChunkSize = getCustomPollingBasedLevels("TSC_WATCH_POLLINGCHUNKSIZE", defaultChunkLevels) || pollingChunkSize;
3663
3664
  ts.unchangedPollThresholds = getCustomPollingBasedLevels("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", defaultChunkLevels) || ts.unchangedPollThresholds;
3664
3665
  function getLevel(envVar, level) {
3665
- return system.getEnvironmentVariable(envVar + "_" + level.toUpperCase());
3666
+ return system.getEnvironmentVariable("".concat(envVar, "_").concat(level.toUpperCase()));
3666
3667
  }
3667
3668
  function getCustomLevels(baseVariable) {
3668
3669
  var customLevels;
@@ -4086,7 +4087,7 @@ var ts;
4086
4087
  }
4087
4088
  function onTimerToUpdateChildWatches() {
4088
4089
  timerToUpdateChildWatches = undefined;
4089
- sysLog("sysLog:: onTimerToUpdateChildWatches:: " + cacheToUpdateChildWatches.size);
4090
+ sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(cacheToUpdateChildWatches.size));
4090
4091
  var start = ts.timestamp();
4091
4092
  var invokeMap = new ts.Map();
4092
4093
  while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
@@ -4097,7 +4098,7 @@ var ts;
4097
4098
  var hasChanges = updateChildWatches(dirName, dirPath, options);
4098
4099
  invokeCallbacks(dirPath, invokeMap, hasChanges ? undefined : fileNames);
4099
4100
  }
4100
- sysLog("sysLog:: invokingWatchers:: Elapsed:: " + (ts.timestamp() - start) + "ms:: " + cacheToUpdateChildWatches.size);
4101
+ sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(ts.timestamp() - start, "ms:: ").concat(cacheToUpdateChildWatches.size));
4101
4102
  callbackCache.forEach(function (callbacks, rootDirName) {
4102
4103
  var existing = invokeMap.get(rootDirName);
4103
4104
  if (existing) {
@@ -4113,7 +4114,7 @@ var ts;
4113
4114
  }
4114
4115
  });
4115
4116
  var elapsed = ts.timestamp() - start;
4116
- sysLog("sysLog:: Elapsed:: " + elapsed + "ms:: onTimerToUpdateChildWatches:: " + cacheToUpdateChildWatches.size + " " + timerToUpdateChildWatches);
4117
+ sysLog("sysLog:: Elapsed:: ".concat(elapsed, "ms:: onTimerToUpdateChildWatches:: ").concat(cacheToUpdateChildWatches.size, " ").concat(timerToUpdateChildWatches));
4117
4118
  }
4118
4119
  function removeChildWatches(parentWatcher) {
4119
4120
  if (!parentWatcher)
@@ -4329,14 +4330,14 @@ var ts;
4329
4330
  };
4330
4331
  function updateWatcher(createWatcher) {
4331
4332
  if (watcher) {
4332
- sysLog("sysLog:: " + fileOrDirectory + ":: Changing watcher to " + (createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing") + "FileSystemEntryWatcher");
4333
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing watcher to ").concat(createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing", "FileSystemEntryWatcher"));
4333
4334
  watcher.close();
4334
4335
  watcher = createWatcher();
4335
4336
  }
4336
4337
  }
4337
4338
  function watchPresentFileSystemEntry() {
4338
4339
  if (hitSystemWatcherLimit) {
4339
- sysLog("sysLog:: " + fileOrDirectory + ":: Defaulting to watchFile");
4340
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Defaulting to watchFile"));
4340
4341
  return watchPresentFileSystemEntryWithFsWatchFile();
4341
4342
  }
4342
4343
  try {
@@ -4351,7 +4352,7 @@ var ts;
4351
4352
  }
4352
4353
  catch (e) {
4353
4354
  hitSystemWatcherLimit || (hitSystemWatcherLimit = e.code === "ENOSPC");
4354
- sysLog("sysLog:: " + fileOrDirectory + ":: Changing to watchFile");
4355
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing to watchFile"));
4355
4356
  return watchPresentFileSystemEntryWithFsWatchFile();
4356
4357
  }
4357
4358
  }
@@ -4424,7 +4425,6 @@ var ts;
4424
4425
  ts.sys = (function () {
4425
4426
  var byteOrderMarkIndicator = "\uFEFF";
4426
4427
  function getNodeSystem() {
4427
- var _a;
4428
4428
  var nativePattern = /^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/;
4429
4429
  var _fs = require("fs");
4430
4430
  var _path = require("path");
@@ -4433,7 +4433,7 @@ var ts;
4433
4433
  try {
4434
4434
  _crypto = require("crypto");
4435
4435
  }
4436
- catch (_b) {
4436
+ catch (_a) {
4437
4437
  _crypto = undefined;
4438
4438
  }
4439
4439
  var activeSession;
@@ -4444,10 +4444,10 @@ var ts;
4444
4444
  var isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
4445
4445
  var platform = _os.platform();
4446
4446
  var useCaseSensitiveFileNames = isFileSystemCaseSensitive();
4447
- var realpathSync = (_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync;
4447
+ var fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
4448
4448
  var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
4449
4449
  var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
4450
- var _c = createSystemWatchFunctions({
4450
+ var _b = createSystemWatchFunctions({
4451
4451
  pollingWatchFile: createSingleFileWatcherPerName(fsWatchFileWorker, useCaseSensitiveFileNames),
4452
4452
  getModifiedTime: getModifiedTime,
4453
4453
  setTimeout: setTimeout,
@@ -4465,7 +4465,7 @@ var ts;
4465
4465
  defaultWatchFileKind: function () { var _a, _b; return (_b = (_a = sys).defaultWatchFileKind) === null || _b === void 0 ? void 0 : _b.call(_a); },
4466
4466
  inodeWatching: isLinuxOrMacOs,
4467
4467
  sysLog: sysLog,
4468
- }), watchFile = _c.watchFile, watchDirectory = _c.watchDirectory;
4468
+ }), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory;
4469
4469
  var nodeSystem = {
4470
4470
  args: process.argv.slice(2),
4471
4471
  newLine: _os.EOL,
@@ -4595,7 +4595,7 @@ var ts;
4595
4595
  var externalFileCounter = 0;
4596
4596
  var remappedPaths = new ts.Map();
4597
4597
  var normalizedDir = ts.normalizeSlashes(__dirname);
4598
- var fileUrlRoot = "file://" + (ts.getRootLength(normalizedDir) === 1 ? "" : "/") + normalizedDir;
4598
+ var fileUrlRoot = "file://".concat(ts.getRootLength(normalizedDir) === 1 ? "" : "/").concat(normalizedDir);
4599
4599
  for (var _i = 0, _a = profile.nodes; _i < _a.length; _i++) {
4600
4600
  var node = _a[_i];
4601
4601
  if (node.callFrame.url) {
@@ -4604,7 +4604,7 @@ var ts;
4604
4604
  node.callFrame.url = ts.getRelativePathToDirectoryOrUrl(fileUrlRoot, url, fileUrlRoot, ts.createGetCanonicalFileName(useCaseSensitiveFileNames), true);
4605
4605
  }
4606
4606
  else if (!nativePattern.test(url)) {
4607
- node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external" + externalFileCounter + ".js")).get(url);
4607
+ node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external".concat(externalFileCounter, ".js"))).get(url);
4608
4608
  externalFileCounter++;
4609
4609
  }
4610
4610
  }
@@ -4620,7 +4620,7 @@ var ts;
4620
4620
  if (!err) {
4621
4621
  try {
4622
4622
  if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
4623
- profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
4623
+ profilePath = _path.join(profilePath, "".concat((new Date()).toISOString().replace(/:/g, "-"), "+P").concat(process.pid, ".cpuprofile"));
4624
4624
  }
4625
4625
  }
4626
4626
  catch (_c) {
@@ -4815,9 +4815,12 @@ var ts;
4815
4815
  function getDirectories(path) {
4816
4816
  return getAccessibleFileSystemEntries(path).directories.slice();
4817
4817
  }
4818
+ function fsRealPathHandlingLongPath(path) {
4819
+ return path.length < 260 ? _fs.realpathSync.native(path) : _fs.realpathSync(path);
4820
+ }
4818
4821
  function realpath(path) {
4819
4822
  try {
4820
- return realpathSync(path);
4823
+ return fsRealpath(path);
4821
4824
  }
4822
4825
  catch (_a) {
4823
4826
  return path;
@@ -6028,7 +6031,7 @@ var ts;
6028
6031
  Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig: diag(2591, ts.DiagnosticCategory.Error, "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591", "Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),
6029
6032
  Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig: diag(2592, ts.DiagnosticCategory.Error, "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592", "Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),
6030
6033
  Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig: diag(2593, ts.DiagnosticCategory.Error, "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593", "Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),
6031
- This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag: diag(2594, ts.DiagnosticCategory.Error, "This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594", "This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),
6034
+ This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag: diag(2594, ts.DiagnosticCategory.Error, "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594", "This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),
6032
6035
  _0_can_only_be_imported_by_using_a_default_import: diag(2595, ts.DiagnosticCategory.Error, "_0_can_only_be_imported_by_using_a_default_import_2595", "'{0}' can only be imported by using a default import."),
6033
6036
  _0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import: diag(2596, ts.DiagnosticCategory.Error, "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596", "'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),
6034
6037
  _0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import: diag(2597, ts.DiagnosticCategory.Error, "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597", "'{0}' can only be imported by using a 'require' call or by using a default import."),
@@ -7416,7 +7419,7 @@ var ts;
7416
7419
  line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line;
7417
7420
  }
7418
7421
  else {
7419
- ts.Debug.fail("Bad line number. Line: " + line + ", lineStarts.length: " + lineStarts.length + " , line map is correct? " + (debugText !== undefined ? ts.arraysEqual(lineStarts, computeLineStarts(debugText)) : "unknown"));
7422
+ 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"));
7420
7423
  }
7421
7424
  }
7422
7425
  var res = lineStarts[line] + character;
@@ -9943,7 +9946,7 @@ var ts;
9943
9946
  : "linkplain";
9944
9947
  var name = link.name ? ts.entityNameToString(link.name) : "";
9945
9948
  var space = link.name && link.text.startsWith("://") ? "" : " ";
9946
- return "{@" + kind + " " + name + space + link.text + "}";
9949
+ return "{@".concat(kind, " ").concat(name).concat(space).concat(link.text, "}");
9947
9950
  }
9948
9951
  function getEffectiveTypeParameterDeclarations(node) {
9949
9952
  if (ts.isJSDocSignature(node)) {
@@ -11070,11 +11073,11 @@ var ts;
11070
11073
  }
11071
11074
  function packageIdToPackageName(_a) {
11072
11075
  var name = _a.name, subModuleName = _a.subModuleName;
11073
- return subModuleName ? name + "/" + subModuleName : name;
11076
+ return subModuleName ? "".concat(name, "/").concat(subModuleName) : name;
11074
11077
  }
11075
11078
  ts.packageIdToPackageName = packageIdToPackageName;
11076
11079
  function packageIdToString(packageId) {
11077
- return packageIdToPackageName(packageId) + "@" + packageId.version;
11080
+ return "".concat(packageIdToPackageName(packageId), "@").concat(packageId.version);
11078
11081
  }
11079
11082
  ts.packageIdToString = packageIdToString;
11080
11083
  function typeDirectiveIsEqualTo(oldResolution, newResolution) {
@@ -11151,7 +11154,7 @@ var ts;
11151
11154
  function nodePosToString(node) {
11152
11155
  var file = getSourceFileOfNode(node);
11153
11156
  var loc = ts.getLineAndCharacterOfPosition(file, node.pos);
11154
- return file.fileName + "(" + (loc.line + 1) + "," + (loc.character + 1) + ")";
11157
+ return "".concat(file.fileName, "(").concat(loc.line + 1, ",").concat(loc.character + 1, ")");
11155
11158
  }
11156
11159
  ts.nodePosToString = nodePosToString;
11157
11160
  function getEndLinePosition(line, sourceFile) {
@@ -11252,7 +11255,7 @@ var ts;
11252
11255
  ts.isPinnedComment = isPinnedComment;
11253
11256
  function createCommentDirectivesMap(sourceFile, commentDirectives) {
11254
11257
  var directivesByLine = new ts.Map(commentDirectives.map(function (commentDirective) { return ([
11255
- "" + ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line,
11258
+ "".concat(ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line),
11256
11259
  commentDirective,
11257
11260
  ]); }));
11258
11261
  var usedLines = new ts.Map();
@@ -11269,10 +11272,10 @@ var ts;
11269
11272
  });
11270
11273
  }
11271
11274
  function markUsed(line) {
11272
- if (!directivesByLine.has("" + line)) {
11275
+ if (!directivesByLine.has("".concat(line))) {
11273
11276
  return false;
11274
11277
  }
11275
- usedLines.set("" + line, true);
11278
+ usedLines.set("".concat(line), true);
11276
11279
  return true;
11277
11280
  }
11278
11281
  }
@@ -11472,7 +11475,7 @@ var ts;
11472
11475
  }
11473
11476
  return node.text;
11474
11477
  }
11475
- return ts.Debug.fail("Literal kind '" + node.kind + "' not accounted for.");
11478
+ return ts.Debug.fail("Literal kind '".concat(node.kind, "' not accounted for."));
11476
11479
  }
11477
11480
  ts.getLiteralText = getLiteralText;
11478
11481
  function canUseOriginalText(node, flags) {
@@ -13831,11 +13834,11 @@ var ts;
13831
13834
  }
13832
13835
  ts.getEscapedTextOfIdentifierOrLiteral = getEscapedTextOfIdentifierOrLiteral;
13833
13836
  function getPropertyNameForUniqueESSymbol(symbol) {
13834
- return "__@" + ts.getSymbolId(symbol) + "@" + symbol.escapedName;
13837
+ return "__@".concat(ts.getSymbolId(symbol), "@").concat(symbol.escapedName);
13835
13838
  }
13836
13839
  ts.getPropertyNameForUniqueESSymbol = getPropertyNameForUniqueESSymbol;
13837
13840
  function getSymbolNameForPrivateIdentifier(containingClassSymbol, description) {
13838
- return "__#" + ts.getSymbolId(containingClassSymbol) + "@" + description;
13841
+ return "__#".concat(ts.getSymbolId(containingClassSymbol), "@").concat(description);
13839
13842
  }
13840
13843
  ts.getSymbolNameForPrivateIdentifier = getSymbolNameForPrivateIdentifier;
13841
13844
  function isKnownSymbol(symbol) {
@@ -16232,7 +16235,7 @@ var ts;
16232
16235
  }
16233
16236
  ts.getJSXImplicitImportBase = getJSXImplicitImportBase;
16234
16237
  function getJSXRuntimeImport(base, options) {
16235
- return base ? base + "/" + (options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
16238
+ return base ? "".concat(base, "/").concat(options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
16236
16239
  }
16237
16240
  ts.getJSXRuntimeImport = getJSXRuntimeImport;
16238
16241
  function hasZeroOrOneAsteriskCharacter(str) {
@@ -16330,15 +16333,15 @@ var ts;
16330
16333
  }
16331
16334
  var wildcardCharCodes = [42, 63];
16332
16335
  ts.commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"];
16333
- var implicitExcludePathRegexPattern = "(?!(" + ts.commonPackageFolders.join("|") + ")(/|$))";
16336
+ var implicitExcludePathRegexPattern = "(?!(".concat(ts.commonPackageFolders.join("|"), ")(/|$))");
16334
16337
  var filesMatcher = {
16335
16338
  singleAsteriskRegexFragment: "([^./]|(\\.(?!min\\.js$))?)*",
16336
- doubleAsteriskRegexFragment: "(/" + implicitExcludePathRegexPattern + "[^/.][^/]*)*?",
16339
+ doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
16337
16340
  replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment); }
16338
16341
  };
16339
16342
  var directoriesMatcher = {
16340
16343
  singleAsteriskRegexFragment: "[^/]*",
16341
- doubleAsteriskRegexFragment: "(/" + implicitExcludePathRegexPattern + "[^/.][^/]*)*?",
16344
+ doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
16342
16345
  replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment); }
16343
16346
  };
16344
16347
  var excludeMatcher = {
@@ -16356,9 +16359,9 @@ var ts;
16356
16359
  if (!patterns || !patterns.length) {
16357
16360
  return undefined;
16358
16361
  }
16359
- var pattern = patterns.map(function (pattern) { return "(" + pattern + ")"; }).join("|");
16362
+ var pattern = patterns.map(function (pattern) { return "(".concat(pattern, ")"); }).join("|");
16360
16363
  var terminator = usage === "exclude" ? "($|/)" : "$";
16361
- return "^(" + pattern + ")" + terminator;
16364
+ return "^(".concat(pattern, ")").concat(terminator);
16362
16365
  }
16363
16366
  ts.getRegularExpressionForWildcard = getRegularExpressionForWildcard;
16364
16367
  function getRegularExpressionsForWildcards(specs, basePath, usage) {
@@ -16376,7 +16379,7 @@ var ts;
16376
16379
  ts.isImplicitGlob = isImplicitGlob;
16377
16380
  function getPatternFromSpec(spec, basePath, usage) {
16378
16381
  var pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);
16379
- return pattern && "^(" + pattern + ")" + (usage === "exclude" ? "($|/)" : "$");
16382
+ return pattern && "^(".concat(pattern, ")").concat(usage === "exclude" ? "($|/)" : "$");
16380
16383
  }
16381
16384
  ts.getPatternFromSpec = getPatternFromSpec;
16382
16385
  function getSubPatternFromSpec(spec, basePath, usage, _a) {
@@ -16442,7 +16445,7 @@ var ts;
16442
16445
  currentDirectory = ts.normalizePath(currentDirectory);
16443
16446
  var absolutePath = ts.combinePaths(currentDirectory, path);
16444
16447
  return {
16445
- includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^" + pattern + "$"; }),
16448
+ includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^".concat(pattern, "$"); }),
16446
16449
  includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
16447
16450
  includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
16448
16451
  excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
@@ -16688,7 +16691,7 @@ var ts;
16688
16691
  ts.resolutionExtensionIsTSOrJson = resolutionExtensionIsTSOrJson;
16689
16692
  function extensionFromPath(path) {
16690
16693
  var ext = tryGetExtensionFromPath(path);
16691
- return ext !== undefined ? ext : ts.Debug.fail("File " + path + " has unknown extension.");
16694
+ return ext !== undefined ? ext : ts.Debug.fail("File ".concat(path, " has unknown extension."));
16692
16695
  }
16693
16696
  ts.extensionFromPath = extensionFromPath;
16694
16697
  function isAnySupportedFileExtension(path) {
@@ -17025,7 +17028,7 @@ var ts;
17025
17028
  case 165: {
17026
17029
  var parent_2 = node.parent;
17027
17030
  return ts.canHaveDecorators(parent_2) ? parent_2.modifiers :
17028
- ts.canHaveIllegalDecorators(parent_2) ? parent_2.decorators :
17031
+ ts.canHaveIllegalDecorators(parent_2) ? parent_2.illegalDecorators :
17029
17032
  undefined;
17030
17033
  }
17031
17034
  case 291:
@@ -18726,7 +18729,7 @@ var ts;
18726
18729
  var node = createBaseGenericNamedDeclaration(170, undefined, undefined, undefined);
18727
18730
  node.body = body;
18728
18731
  node.transformFlags = propagateChildFlags(body) | 16777216;
18729
- node.decorators = undefined;
18732
+ node.illegalDecorators = undefined;
18730
18733
  node.modifiers = undefined;
18731
18734
  return node;
18732
18735
  }
@@ -18737,7 +18740,7 @@ var ts;
18737
18740
  }
18738
18741
  function finishUpdateClassStaticBlockDeclaration(updated, original) {
18739
18742
  if (updated !== original) {
18740
- updated.decorators = original.decorators;
18743
+ updated.illegalDecorators = original.illegalDecorators;
18741
18744
  updated.modifiers = original.modifiers;
18742
18745
  }
18743
18746
  return update(updated, original);
@@ -18745,7 +18748,7 @@ var ts;
18745
18748
  function createConstructorDeclaration(modifiers, parameters, body) {
18746
18749
  var node = createBaseFunctionLikeDeclaration(171, modifiers, undefined, undefined, parameters, undefined, body);
18747
18750
  node.transformFlags |= 1024;
18748
- node.decorators = undefined;
18751
+ node.illegalDecorators = undefined;
18749
18752
  node.typeParameters = undefined;
18750
18753
  node.type = undefined;
18751
18754
  return node;
@@ -18759,7 +18762,7 @@ var ts;
18759
18762
  }
18760
18763
  function finishUpdateConstructorDeclaration(updated, original) {
18761
18764
  if (updated !== original) {
18762
- updated.decorators = original.decorators;
18765
+ updated.illegalDecorators = original.illegalDecorators;
18763
18766
  updated.typeParameters = original.typeParameters;
18764
18767
  updated.type = original.type;
18765
18768
  }
@@ -20274,7 +20277,7 @@ var ts;
20274
20277
  node.transformFlags |= 2048;
20275
20278
  }
20276
20279
  }
20277
- node.decorators = undefined;
20280
+ node.illegalDecorators = undefined;
20278
20281
  return node;
20279
20282
  }
20280
20283
  function updateFunctionDeclaration(node, modifiers, asteriskToken, name, typeParameters, parameters, type, body) {
@@ -20290,7 +20293,7 @@ var ts;
20290
20293
  }
20291
20294
  function finishUpdateFunctionDeclaration(updated, original) {
20292
20295
  if (updated !== original) {
20293
- updated.decorators = original.decorators;
20296
+ updated.illegalDecorators = original.illegalDecorators;
20294
20297
  }
20295
20298
  return finishUpdateBaseSignatureDeclaration(updated, original);
20296
20299
  }
@@ -20320,7 +20323,7 @@ var ts;
20320
20323
  var node = createBaseInterfaceOrClassLikeDeclaration(258, modifiers, name, typeParameters, heritageClauses);
20321
20324
  node.members = createNodeArray(members);
20322
20325
  node.transformFlags = 1;
20323
- node.decorators = undefined;
20326
+ node.illegalDecorators = undefined;
20324
20327
  return node;
20325
20328
  }
20326
20329
  function updateInterfaceDeclaration(node, modifiers, name, typeParameters, heritageClauses, members) {
@@ -20334,7 +20337,7 @@ var ts;
20334
20337
  }
20335
20338
  function finishUpdateInterfaceDeclaration(updated, original) {
20336
20339
  if (updated !== original) {
20337
- updated.decorators = original.decorators;
20340
+ updated.illegalDecorators = original.illegalDecorators;
20338
20341
  }
20339
20342
  return update(updated, original);
20340
20343
  }
@@ -20342,7 +20345,7 @@ var ts;
20342
20345
  var node = createBaseGenericNamedDeclaration(259, modifiers, name, typeParameters);
20343
20346
  node.type = type;
20344
20347
  node.transformFlags = 1;
20345
- node.decorators = undefined;
20348
+ node.illegalDecorators = undefined;
20346
20349
  return node;
20347
20350
  }
20348
20351
  function updateTypeAliasDeclaration(node, modifiers, name, typeParameters, type) {
@@ -20355,7 +20358,7 @@ var ts;
20355
20358
  }
20356
20359
  function finishUpdateTypeAliasDeclaration(updated, original) {
20357
20360
  if (updated !== original) {
20358
- updated.decorators = original.decorators;
20361
+ updated.illegalDecorators = original.illegalDecorators;
20359
20362
  }
20360
20363
  return update(updated, original);
20361
20364
  }
@@ -20366,7 +20369,7 @@ var ts;
20366
20369
  propagateChildrenFlags(node.members) |
20367
20370
  1;
20368
20371
  node.transformFlags &= ~67108864;
20369
- node.decorators = undefined;
20372
+ node.illegalDecorators = undefined;
20370
20373
  return node;
20371
20374
  }
20372
20375
  function updateEnumDeclaration(node, modifiers, name, members) {
@@ -20378,7 +20381,7 @@ var ts;
20378
20381
  }
20379
20382
  function finishUpdateEnumDeclaration(updated, original) {
20380
20383
  if (updated !== original) {
20381
- updated.decorators = original.decorators;
20384
+ updated.illegalDecorators = original.illegalDecorators;
20382
20385
  }
20383
20386
  return update(updated, original);
20384
20387
  }
@@ -20400,7 +20403,7 @@ var ts;
20400
20403
  1;
20401
20404
  }
20402
20405
  node.transformFlags &= ~67108864;
20403
- node.decorators = undefined;
20406
+ node.illegalDecorators = undefined;
20404
20407
  return node;
20405
20408
  }
20406
20409
  function updateModuleDeclaration(node, modifiers, name, body) {
@@ -20412,7 +20415,7 @@ var ts;
20412
20415
  }
20413
20416
  function finishUpdateModuleDeclaration(updated, original) {
20414
20417
  if (updated !== original) {
20415
- updated.decorators = original.decorators;
20418
+ updated.illegalDecorators = original.illegalDecorators;
20416
20419
  }
20417
20420
  return update(updated, original);
20418
20421
  }
@@ -20441,7 +20444,7 @@ var ts;
20441
20444
  function createNamespaceExportDeclaration(name) {
20442
20445
  var node = createBaseNamedDeclaration(264, undefined, name);
20443
20446
  node.transformFlags = 1;
20444
- node.decorators = undefined;
20447
+ node.illegalDecorators = undefined;
20445
20448
  node.modifiers = undefined;
20446
20449
  return node;
20447
20450
  }
@@ -20452,7 +20455,7 @@ var ts;
20452
20455
  }
20453
20456
  function finishUpdateNamespaceExportDeclaration(updated, original) {
20454
20457
  if (updated !== original) {
20455
- updated.decorators = original.decorators;
20458
+ updated.illegalDecorators = original.illegalDecorators;
20456
20459
  updated.modifiers = original.modifiers;
20457
20460
  }
20458
20461
  return update(updated, original);
@@ -20465,7 +20468,7 @@ var ts;
20465
20468
  if (!ts.isExternalModuleReference(node.moduleReference))
20466
20469
  node.transformFlags |= 1;
20467
20470
  node.transformFlags &= ~67108864;
20468
- node.decorators = undefined;
20471
+ node.illegalDecorators = undefined;
20469
20472
  return node;
20470
20473
  }
20471
20474
  function updateImportEqualsDeclaration(node, modifiers, isTypeOnly, name, moduleReference) {
@@ -20478,7 +20481,7 @@ var ts;
20478
20481
  }
20479
20482
  function finishUpdateImportEqualsDeclaration(updated, original) {
20480
20483
  if (updated !== original) {
20481
- updated.decorators = original.decorators;
20484
+ updated.illegalDecorators = original.illegalDecorators;
20482
20485
  }
20483
20486
  return update(updated, original);
20484
20487
  }
@@ -20492,7 +20495,7 @@ var ts;
20492
20495
  propagateChildFlags(node.importClause) |
20493
20496
  propagateChildFlags(node.moduleSpecifier);
20494
20497
  node.transformFlags &= ~67108864;
20495
- node.decorators = undefined;
20498
+ node.illegalDecorators = undefined;
20496
20499
  return node;
20497
20500
  }
20498
20501
  function updateImportDeclaration(node, modifiers, importClause, moduleSpecifier, assertClause) {
@@ -20505,7 +20508,7 @@ var ts;
20505
20508
  }
20506
20509
  function finishUpdateImportDeclaration(updated, original) {
20507
20510
  if (updated !== original) {
20508
- updated.decorators = original.decorators;
20511
+ updated.illegalDecorators = original.illegalDecorators;
20509
20512
  }
20510
20513
  return update(updated, original);
20511
20514
  }
@@ -20633,7 +20636,7 @@ var ts;
20633
20636
  : parenthesizerRules().parenthesizeExpressionOfExportDefault(expression);
20634
20637
  node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.expression);
20635
20638
  node.transformFlags &= ~67108864;
20636
- node.decorators = undefined;
20639
+ node.illegalDecorators = undefined;
20637
20640
  return node;
20638
20641
  }
20639
20642
  function updateExportAssignment(node, modifiers, expression) {
@@ -20644,7 +20647,7 @@ var ts;
20644
20647
  }
20645
20648
  function finishUpdateExportAssignment(updated, original) {
20646
20649
  if (updated !== original) {
20647
- updated.decorators = original.decorators;
20650
+ updated.illegalDecorators = original.illegalDecorators;
20648
20651
  }
20649
20652
  return update(updated, original);
20650
20653
  }
@@ -20660,7 +20663,7 @@ var ts;
20660
20663
  propagateChildFlags(node.exportClause) |
20661
20664
  propagateChildFlags(node.moduleSpecifier);
20662
20665
  node.transformFlags &= ~67108864;
20663
- node.decorators = undefined;
20666
+ node.illegalDecorators = undefined;
20664
20667
  return node;
20665
20668
  }
20666
20669
  function updateExportDeclaration(node, modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause) {
@@ -20674,7 +20677,7 @@ var ts;
20674
20677
  }
20675
20678
  function finishUpdateExportDeclaration(updated, original) {
20676
20679
  if (updated !== original) {
20677
- updated.decorators = original.decorators;
20680
+ updated.illegalDecorators = original.illegalDecorators;
20678
20681
  }
20679
20682
  return update(updated, original);
20680
20683
  }
@@ -21293,7 +21296,7 @@ var ts;
21293
21296
  node.transformFlags |=
21294
21297
  propagateChildFlags(node.name) |
21295
21298
  propagateChildFlags(node.initializer);
21296
- node.decorators = undefined;
21299
+ node.illegalDecorators = undefined;
21297
21300
  node.modifiers = undefined;
21298
21301
  node.questionToken = undefined;
21299
21302
  node.exclamationToken = undefined;
@@ -21307,7 +21310,7 @@ var ts;
21307
21310
  }
21308
21311
  function finishUpdatePropertyAssignment(updated, original) {
21309
21312
  if (updated !== original) {
21310
- updated.decorators = original.decorators;
21313
+ updated.illegalDecorators = original.illegalDecorators;
21311
21314
  updated.modifiers = original.modifiers;
21312
21315
  updated.questionToken = original.questionToken;
21313
21316
  updated.exclamationToken = original.exclamationToken;
@@ -21321,7 +21324,7 @@ var ts;
21321
21324
  propagateChildFlags(node.objectAssignmentInitializer) |
21322
21325
  1024;
21323
21326
  node.equalsToken = undefined;
21324
- node.decorators = undefined;
21327
+ node.illegalDecorators = undefined;
21325
21328
  node.modifiers = undefined;
21326
21329
  node.questionToken = undefined;
21327
21330
  node.exclamationToken = undefined;
@@ -21336,7 +21339,7 @@ var ts;
21336
21339
  function finishUpdateShorthandPropertyAssignment(updated, original) {
21337
21340
  if (updated !== original) {
21338
21341
  updated.equalsToken = original.equalsToken;
21339
- updated.decorators = original.decorators;
21342
+ updated.illegalDecorators = original.illegalDecorators;
21340
21343
  updated.modifiers = original.modifiers;
21341
21344
  updated.questionToken = original.questionToken;
21342
21345
  updated.exclamationToken = original.exclamationToken;
@@ -22021,7 +22024,7 @@ var ts;
22021
22024
  case 328: return "augments";
22022
22025
  case 329: return "implements";
22023
22026
  default:
22024
- return ts.Debug.fail("Unsupported kind: " + ts.Debug.formatSyntaxKind(kind));
22027
+ return ts.Debug.fail("Unsupported kind: ".concat(ts.Debug.formatSyntaxKind(kind)));
22025
22028
  }
22026
22029
  }
22027
22030
  var rawTextScanner;
@@ -22348,7 +22351,7 @@ var ts;
22348
22351
  };
22349
22352
  var definedTextGetter_1 = function (path) {
22350
22353
  var result = textGetter_1(path);
22351
- return result !== undefined ? result : "/* Input file " + path + " was missing */\r\n";
22354
+ return result !== undefined ? result : "/* Input file ".concat(path, " was missing */\r\n");
22352
22355
  };
22353
22356
  var buildInfo_1;
22354
22357
  var getAndCacheBuildInfo_1 = function (getText) {
@@ -24529,17 +24532,6 @@ var ts;
24529
24532
  || kind === 173;
24530
24533
  }
24531
24534
  ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
24532
- function canHaveDecorators(node) {
24533
- var kind = node.kind;
24534
- return kind === 164
24535
- || kind === 167
24536
- || kind === 169
24537
- || kind === 172
24538
- || kind === 173
24539
- || kind === 226
24540
- || kind === 257;
24541
- }
24542
- ts.canHaveDecorators = canHaveDecorators;
24543
24535
  function canHaveIllegalDecorators(node) {
24544
24536
  var kind = node.kind;
24545
24537
  return kind === 296
@@ -24561,35 +24553,6 @@ var ts;
24561
24553
  || kind === 271;
24562
24554
  }
24563
24555
  ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
24564
- function canHaveModifiers(node) {
24565
- var kind = node.kind;
24566
- return kind === 163
24567
- || kind === 164
24568
- || kind === 166
24569
- || kind === 167
24570
- || kind === 168
24571
- || kind === 169
24572
- || kind === 171
24573
- || kind === 172
24574
- || kind === 173
24575
- || kind === 176
24576
- || kind === 180
24577
- || kind === 213
24578
- || kind === 214
24579
- || kind === 226
24580
- || kind === 237
24581
- || kind === 256
24582
- || kind === 257
24583
- || kind === 258
24584
- || kind === 259
24585
- || kind === 260
24586
- || kind === 261
24587
- || kind === 265
24588
- || kind === 266
24589
- || kind === 271
24590
- || kind === 272;
24591
- }
24592
- ts.canHaveModifiers = canHaveModifiers;
24593
24556
  function canHaveIllegalModifiers(node) {
24594
24557
  var kind = node.kind;
24595
24558
  return kind === 170
@@ -24837,6 +24800,46 @@ var ts;
24837
24800
  return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
24838
24801
  }
24839
24802
  ts.setTextRange = setTextRange;
24803
+ function canHaveModifiers(node) {
24804
+ var kind = node.kind;
24805
+ return kind === 163
24806
+ || kind === 164
24807
+ || kind === 166
24808
+ || kind === 167
24809
+ || kind === 168
24810
+ || kind === 169
24811
+ || kind === 171
24812
+ || kind === 172
24813
+ || kind === 173
24814
+ || kind === 176
24815
+ || kind === 180
24816
+ || kind === 213
24817
+ || kind === 214
24818
+ || kind === 226
24819
+ || kind === 237
24820
+ || kind === 256
24821
+ || kind === 257
24822
+ || kind === 258
24823
+ || kind === 259
24824
+ || kind === 260
24825
+ || kind === 261
24826
+ || kind === 265
24827
+ || kind === 266
24828
+ || kind === 271
24829
+ || kind === 272;
24830
+ }
24831
+ ts.canHaveModifiers = canHaveModifiers;
24832
+ function canHaveDecorators(node) {
24833
+ var kind = node.kind;
24834
+ return kind === 164
24835
+ || kind === 167
24836
+ || kind === 169
24837
+ || kind === 172
24838
+ || kind === 173
24839
+ || kind === 226
24840
+ || kind === 257;
24841
+ }
24842
+ ts.canHaveDecorators = canHaveDecorators;
24840
24843
  })(ts || (ts = {}));
24841
24844
  var ts;
24842
24845
  (function (ts) {
@@ -24917,7 +24920,7 @@ var ts;
24917
24920
  visitNode(cbNode, node.default) ||
24918
24921
  visitNode(cbNode, node.expression);
24919
24922
  case 297:
24920
- return visitNodes(cbNode, cbNodes, node.decorators) ||
24923
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
24921
24924
  visitNodes(cbNode, cbNodes, node.modifiers) ||
24922
24925
  visitNode(cbNode, node.name) ||
24923
24926
  visitNode(cbNode, node.questionToken) ||
@@ -24947,7 +24950,7 @@ var ts;
24947
24950
  visitNode(cbNode, node.type) ||
24948
24951
  visitNode(cbNode, node.initializer);
24949
24952
  case 296:
24950
- return visitNodes(cbNode, cbNodes, node.decorators) ||
24953
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
24951
24954
  visitNodes(cbNode, cbNodes, node.modifiers) ||
24952
24955
  visitNode(cbNode, node.name) ||
24953
24956
  visitNode(cbNode, node.questionToken) ||
@@ -24964,7 +24967,7 @@ var ts;
24964
24967
  visitNode(cbNode, node.name) ||
24965
24968
  visitNode(cbNode, node.initializer);
24966
24969
  case 176:
24967
- return visitNodes(cbNode, cbNodes, node.decorators) ||
24970
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
24968
24971
  visitNodes(cbNode, cbNodes, node.modifiers) ||
24969
24972
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
24970
24973
  visitNodes(cbNode, cbNodes, node.parameters) ||
@@ -25002,7 +25005,7 @@ var ts;
25002
25005
  visitNodes(cbNode, cbNodes, node.parameters) ||
25003
25006
  visitNode(cbNode, node.type);
25004
25007
  case 171:
25005
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25008
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25006
25009
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25007
25010
  visitNode(cbNode, node.name) ||
25008
25011
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
@@ -25024,7 +25027,7 @@ var ts;
25024
25027
  visitNode(cbNode, node.type) ||
25025
25028
  visitNode(cbNode, node.body);
25026
25029
  case 256:
25027
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25030
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25028
25031
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25029
25032
  visitNode(cbNode, node.asteriskToken) ||
25030
25033
  visitNode(cbNode, node.name) ||
@@ -25048,7 +25051,7 @@ var ts;
25048
25051
  visitNode(cbNode, node.equalsGreaterThanToken) ||
25049
25052
  visitNode(cbNode, node.body);
25050
25053
  case 170:
25051
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25054
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25052
25055
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25053
25056
  visitNode(cbNode, node.body);
25054
25057
  case 178:
@@ -25176,7 +25179,7 @@ var ts;
25176
25179
  return visitNodes(cbNode, cbNodes, node.statements) ||
25177
25180
  visitNode(cbNode, node.endOfFileToken);
25178
25181
  case 237:
25179
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25182
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25180
25183
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25181
25184
  visitNode(cbNode, node.declarationList);
25182
25185
  case 255:
@@ -25247,20 +25250,20 @@ var ts;
25247
25250
  visitNodes(cbNode, cbNodes, node.heritageClauses) ||
25248
25251
  visitNodes(cbNode, cbNodes, node.members);
25249
25252
  case 258:
25250
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25253
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25251
25254
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25252
25255
  visitNode(cbNode, node.name) ||
25253
25256
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
25254
25257
  visitNodes(cbNode, cbNodes, node.heritageClauses) ||
25255
25258
  visitNodes(cbNode, cbNodes, node.members);
25256
25259
  case 259:
25257
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25260
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25258
25261
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25259
25262
  visitNode(cbNode, node.name) ||
25260
25263
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
25261
25264
  visitNode(cbNode, node.type);
25262
25265
  case 260:
25263
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25266
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25264
25267
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25265
25268
  visitNode(cbNode, node.name) ||
25266
25269
  visitNodes(cbNode, cbNodes, node.members);
@@ -25268,17 +25271,17 @@ var ts;
25268
25271
  return visitNode(cbNode, node.name) ||
25269
25272
  visitNode(cbNode, node.initializer);
25270
25273
  case 261:
25271
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25274
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25272
25275
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25273
25276
  visitNode(cbNode, node.name) ||
25274
25277
  visitNode(cbNode, node.body);
25275
25278
  case 265:
25276
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25279
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25277
25280
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25278
25281
  visitNode(cbNode, node.name) ||
25279
25282
  visitNode(cbNode, node.moduleReference);
25280
25283
  case 266:
25281
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25284
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25282
25285
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25283
25286
  visitNode(cbNode, node.importClause) ||
25284
25287
  visitNode(cbNode, node.moduleSpecifier) ||
@@ -25292,7 +25295,7 @@ var ts;
25292
25295
  return visitNode(cbNode, node.name) ||
25293
25296
  visitNode(cbNode, node.value);
25294
25297
  case 264:
25295
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25298
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25296
25299
  visitNode(cbNode, node.name);
25297
25300
  case 268:
25298
25301
  return visitNode(cbNode, node.name);
@@ -25302,7 +25305,7 @@ var ts;
25302
25305
  case 273:
25303
25306
  return visitNodes(cbNode, cbNodes, node.elements);
25304
25307
  case 272:
25305
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25308
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25306
25309
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25307
25310
  visitNode(cbNode, node.exportClause) ||
25308
25311
  visitNode(cbNode, node.moduleSpecifier) ||
@@ -25312,7 +25315,7 @@ var ts;
25312
25315
  return visitNode(cbNode, node.propertyName) ||
25313
25316
  visitNode(cbNode, node.name);
25314
25317
  case 271:
25315
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25318
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25316
25319
  visitNodes(cbNode, cbNodes, node.modifiers) ||
25317
25320
  visitNode(cbNode, node.expression);
25318
25321
  case 223:
@@ -25337,7 +25340,7 @@ var ts;
25337
25340
  case 277:
25338
25341
  return visitNode(cbNode, node.expression);
25339
25342
  case 276:
25340
- return visitNodes(cbNode, cbNodes, node.decorators) ||
25343
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
25341
25344
  visitNodes(cbNode, cbNodes, node.modifiers);
25342
25345
  case 351:
25343
25346
  return visitNodes(cbNode, cbNodes, node.elements);
@@ -26204,7 +26207,7 @@ var ts;
26204
26207
  for (var _i = 0, viableKeywordSuggestions_1 = viableKeywordSuggestions; _i < viableKeywordSuggestions_1.length; _i++) {
26205
26208
  var keyword = viableKeywordSuggestions_1[_i];
26206
26209
  if (expressionText.length > keyword.length + 2 && ts.startsWith(expressionText, keyword)) {
26207
- return keyword + " " + expressionText.slice(keyword.length);
26210
+ return "".concat(keyword, " ").concat(expressionText.slice(keyword.length));
26208
26211
  }
26209
26212
  }
26210
26213
  return undefined;
@@ -27361,7 +27364,7 @@ var ts;
27361
27364
  var type = parseTypeAnnotation();
27362
27365
  parseTypeMemberSemicolon();
27363
27366
  var node = factory.createIndexSignature(modifiers, parameters, type);
27364
- node.decorators = decorators;
27367
+ node.illegalDecorators = decorators;
27365
27368
  return withJSDoc(finishNode(node, pos), hasJSDoc);
27366
27369
  }
27367
27370
  function parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers) {
@@ -29046,7 +29049,7 @@ var ts;
29046
29049
  var initializer = allowInAnd(function () { return parseAssignmentExpressionOrHigher(true); });
29047
29050
  node = factory.createPropertyAssignment(name, initializer);
29048
29051
  }
29049
- node.decorators = decorators;
29052
+ node.illegalDecorators = decorators;
29050
29053
  node.modifiers = modifiers;
29051
29054
  node.questionToken = questionToken;
29052
29055
  node.exclamationToken = exclamationToken;
@@ -29629,7 +29632,7 @@ var ts;
29629
29632
  if (decorators || modifiers) {
29630
29633
  var missing = createMissingNode(276, true, ts.Diagnostics.Declaration_expected);
29631
29634
  ts.setTextRangePos(missing, pos);
29632
- missing.decorators = decorators;
29635
+ missing.illegalDecorators = decorators;
29633
29636
  missing.modifiers = modifiers;
29634
29637
  return missing;
29635
29638
  }
@@ -29761,7 +29764,7 @@ var ts;
29761
29764
  var declarationList = parseVariableDeclarationList(false);
29762
29765
  parseSemicolon();
29763
29766
  var node = factory.createVariableStatement(modifiers, declarationList);
29764
- node.decorators = decorators;
29767
+ node.illegalDecorators = decorators;
29765
29768
  return withJSDoc(finishNode(node, pos), hasJSDoc);
29766
29769
  }
29767
29770
  function parseFunctionDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -29780,7 +29783,7 @@ var ts;
29780
29783
  var body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, ts.Diagnostics.or_expected);
29781
29784
  setAwaitContext(savedAwaitContext);
29782
29785
  var node = factory.createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body);
29783
- node.decorators = decorators;
29786
+ node.illegalDecorators = decorators;
29784
29787
  return withJSDoc(finishNode(node, pos), hasJSDoc);
29785
29788
  }
29786
29789
  function parseConstructorName() {
@@ -29802,7 +29805,7 @@ var ts;
29802
29805
  var type = parseReturnType(58, false);
29803
29806
  var body = parseFunctionBlockOrSemicolon(0, ts.Diagnostics.or_expected);
29804
29807
  var node = factory.createConstructorDeclaration(modifiers, parameters, body);
29805
- node.decorators = decorators;
29808
+ node.illegalDecorators = decorators;
29806
29809
  node.typeParameters = typeParameters;
29807
29810
  node.type = type;
29808
29811
  return withJSDoc(finishNode(node, pos), hasJSDoc);
@@ -29895,7 +29898,7 @@ var ts;
29895
29898
  parseExpectedToken(124);
29896
29899
  var body = parseClassStaticBlockBody();
29897
29900
  var node = withJSDoc(finishNode(factory.createClassStaticBlockDeclaration(body), pos), hasJSDoc);
29898
- node.decorators = decorators;
29901
+ node.illegalDecorators = decorators;
29899
29902
  node.modifiers = modifiers;
29900
29903
  return node;
29901
29904
  }
@@ -30111,7 +30114,7 @@ var ts;
30111
30114
  var heritageClauses = parseHeritageClauses();
30112
30115
  var members = parseObjectTypeMembers();
30113
30116
  var node = factory.createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members);
30114
- node.decorators = decorators;
30117
+ node.illegalDecorators = decorators;
30115
30118
  return withJSDoc(finishNode(node, pos), hasJSDoc);
30116
30119
  }
30117
30120
  function parseTypeAliasDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -30122,7 +30125,7 @@ var ts;
30122
30125
  var type = token() === 138 && tryParse(parseKeywordAndNoDot) || parseType();
30123
30126
  parseSemicolon();
30124
30127
  var node = factory.createTypeAliasDeclaration(modifiers, name, typeParameters, type);
30125
- node.decorators = decorators;
30128
+ node.illegalDecorators = decorators;
30126
30129
  return withJSDoc(finishNode(node, pos), hasJSDoc);
30127
30130
  }
30128
30131
  function parseEnumMember() {
@@ -30144,7 +30147,7 @@ var ts;
30144
30147
  members = createMissingList();
30145
30148
  }
30146
30149
  var node = factory.createEnumDeclaration(modifiers, name, members);
30147
- node.decorators = decorators;
30150
+ node.illegalDecorators = decorators;
30148
30151
  return withJSDoc(finishNode(node, pos), hasJSDoc);
30149
30152
  }
30150
30153
  function parseModuleBlock() {
@@ -30166,7 +30169,7 @@ var ts;
30166
30169
  ? parseModuleOrNamespaceDeclaration(getNodePos(), false, undefined, undefined, 4 | namespaceFlag)
30167
30170
  : parseModuleBlock();
30168
30171
  var node = factory.createModuleDeclaration(modifiers, name, body, flags);
30169
- node.decorators = decorators;
30172
+ node.illegalDecorators = decorators;
30170
30173
  return withJSDoc(finishNode(node, pos), hasJSDoc);
30171
30174
  }
30172
30175
  function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -30188,7 +30191,7 @@ var ts;
30188
30191
  parseSemicolon();
30189
30192
  }
30190
30193
  var node = factory.createModuleDeclaration(modifiers, name, body, flags);
30191
- node.decorators = decorators;
30194
+ node.illegalDecorators = decorators;
30192
30195
  return withJSDoc(finishNode(node, pos), hasJSDoc);
30193
30196
  }
30194
30197
  function parseModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -30226,7 +30229,7 @@ var ts;
30226
30229
  var name = parseIdentifier();
30227
30230
  parseSemicolon();
30228
30231
  var node = factory.createNamespaceExportDeclaration(name);
30229
- node.decorators = decorators;
30232
+ node.illegalDecorators = decorators;
30230
30233
  node.modifiers = modifiers;
30231
30234
  return withJSDoc(finishNode(node, pos), hasJSDoc);
30232
30235
  }
@@ -30261,7 +30264,7 @@ var ts;
30261
30264
  }
30262
30265
  parseSemicolon();
30263
30266
  var node = factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause);
30264
- node.decorators = decorators;
30267
+ node.illegalDecorators = decorators;
30265
30268
  return withJSDoc(finishNode(node, pos), hasJSDoc);
30266
30269
  }
30267
30270
  function parseAssertEntry() {
@@ -30304,7 +30307,7 @@ var ts;
30304
30307
  var moduleReference = parseModuleReference();
30305
30308
  parseSemicolon();
30306
30309
  var node = factory.createImportEqualsDeclaration(modifiers, isTypeOnly, identifier, moduleReference);
30307
- node.decorators = decorators;
30310
+ node.illegalDecorators = decorators;
30308
30311
  var finished = withJSDoc(finishNode(node, pos), hasJSDoc);
30309
30312
  return finished;
30310
30313
  }
@@ -30451,7 +30454,7 @@ var ts;
30451
30454
  parseSemicolon();
30452
30455
  setAwaitContext(savedAwaitContext);
30453
30456
  var node = factory.createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause);
30454
- node.decorators = decorators;
30457
+ node.illegalDecorators = decorators;
30455
30458
  return withJSDoc(finishNode(node, pos), hasJSDoc);
30456
30459
  }
30457
30460
  function parseExportAssignment(pos, hasJSDoc, decorators, modifiers) {
@@ -30468,7 +30471,7 @@ var ts;
30468
30471
  parseSemicolon();
30469
30472
  setAwaitContext(savedAwaitContext);
30470
30473
  var node = factory.createExportAssignment(modifiers, isExportEquals, expression);
30471
- node.decorators = decorators;
30474
+ node.illegalDecorators = decorators;
30472
30475
  return withJSDoc(finishNode(node, pos), hasJSDoc);
30473
30476
  }
30474
30477
  var JSDocParser;
@@ -31812,7 +31815,7 @@ var ts;
31812
31815
  if (namedArgRegExCache.has(name)) {
31813
31816
  return namedArgRegExCache.get(name);
31814
31817
  }
31815
- var result = new RegExp("(\\s" + name + "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))", "im");
31818
+ var result = new RegExp("(\\s".concat(name, "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"), "im");
31816
31819
  namedArgRegExCache.set(name, result);
31817
31820
  return result;
31818
31821
  }
@@ -33331,8 +33334,8 @@ var ts;
33331
33334
  }
33332
33335
  ts.createCompilerDiagnosticForInvalidCustomType = createCompilerDiagnosticForInvalidCustomType;
33333
33336
  function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {
33334
- var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'" + key + "'"; }).join(", ");
33335
- return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--" + opt.name, namesOfType);
33337
+ var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'".concat(key, "'"); }).join(", ");
33338
+ return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--".concat(opt.name), namesOfType);
33336
33339
  }
33337
33340
  function parseCustomTypeOption(opt, value, errors) {
33338
33341
  return convertJsonOptionOfCustomType(opt, ts.trimString(value || ""), errors);
@@ -34050,10 +34053,10 @@ var ts;
34050
34053
  var newValue = compilerOptionsMap.get(cmd.name);
34051
34054
  var defaultValue = getDefaultValueForOption(cmd);
34052
34055
  if (newValue !== defaultValue) {
34053
- result.push("" + tab + cmd.name + ": " + newValue);
34056
+ result.push("".concat(tab).concat(cmd.name, ": ").concat(newValue));
34054
34057
  }
34055
34058
  else if (ts.hasProperty(ts.defaultInitCompilerOptions, cmd.name)) {
34056
- result.push("" + tab + cmd.name + ": " + defaultValue);
34059
+ result.push("".concat(tab).concat(cmd.name, ": ").concat(defaultValue));
34057
34060
  }
34058
34061
  });
34059
34062
  return result.join(newLine) + newLine;
@@ -34091,19 +34094,19 @@ var ts;
34091
34094
  if (entries.length !== 0) {
34092
34095
  entries.push({ value: "" });
34093
34096
  }
34094
- entries.push({ value: "/* " + category + " */" });
34097
+ entries.push({ value: "/* ".concat(category, " */") });
34095
34098
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
34096
34099
  var option = options_1[_i];
34097
34100
  var optionName = void 0;
34098
34101
  if (compilerOptionsMap.has(option.name)) {
34099
- optionName = "\"" + option.name + "\": " + JSON.stringify(compilerOptionsMap.get(option.name)) + ((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
34102
+ optionName = "\"".concat(option.name, "\": ").concat(JSON.stringify(compilerOptionsMap.get(option.name))).concat((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
34100
34103
  }
34101
34104
  else {
34102
- optionName = "// \"" + option.name + "\": " + JSON.stringify(getDefaultValueForOption(option)) + ",";
34105
+ optionName = "// \"".concat(option.name, "\": ").concat(JSON.stringify(getDefaultValueForOption(option)), ",");
34103
34106
  }
34104
34107
  entries.push({
34105
34108
  value: optionName,
34106
- description: "/* " + (option.description && ts.getLocaleSpecificMessage(option.description) || option.name) + " */"
34109
+ description: "/* ".concat(option.description && ts.getLocaleSpecificMessage(option.description) || option.name, " */")
34107
34110
  });
34108
34111
  marginLength = Math.max(optionName.length, marginLength);
34109
34112
  }
@@ -34111,24 +34114,24 @@ var ts;
34111
34114
  var tab = makePadding(2);
34112
34115
  var result = [];
34113
34116
  result.push("{");
34114
- result.push(tab + "\"compilerOptions\": {");
34115
- result.push("" + tab + tab + "/* " + ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file) + " */");
34117
+ result.push("".concat(tab, "\"compilerOptions\": {"));
34118
+ result.push("".concat(tab).concat(tab, "/* ").concat(ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file), " */"));
34116
34119
  result.push("");
34117
34120
  for (var _a = 0, entries_2 = entries; _a < entries_2.length; _a++) {
34118
34121
  var entry = entries_2[_a];
34119
34122
  var value = entry.value, _b = entry.description, description = _b === void 0 ? "" : _b;
34120
- result.push(value && "" + tab + tab + value + (description && (makePadding(marginLength - value.length + 2) + description)));
34123
+ result.push(value && "".concat(tab).concat(tab).concat(value).concat(description && (makePadding(marginLength - value.length + 2) + description)));
34121
34124
  }
34122
34125
  if (fileNames.length) {
34123
- result.push(tab + "},");
34124
- result.push(tab + "\"files\": [");
34126
+ result.push("".concat(tab, "},"));
34127
+ result.push("".concat(tab, "\"files\": ["));
34125
34128
  for (var i = 0; i < fileNames.length; i++) {
34126
- result.push("" + tab + tab + JSON.stringify(fileNames[i]) + (i === fileNames.length - 1 ? "" : ","));
34129
+ result.push("".concat(tab).concat(tab).concat(JSON.stringify(fileNames[i])).concat(i === fileNames.length - 1 ? "" : ","));
34127
34130
  }
34128
- result.push(tab + "]");
34131
+ result.push("".concat(tab, "]"));
34129
34132
  }
34130
34133
  else {
34131
- result.push(tab + "}");
34134
+ result.push("".concat(tab, "}"));
34132
34135
  }
34133
34136
  result.push("}");
34134
34137
  return result.join(newLine) + newLine;
@@ -34485,7 +34488,7 @@ var ts;
34485
34488
  if (ts.isRootedDiskPath(extendedConfig) || ts.startsWith(extendedConfig, "./") || ts.startsWith(extendedConfig, "../")) {
34486
34489
  var extendedConfigPath = ts.getNormalizedAbsolutePath(extendedConfig, basePath);
34487
34490
  if (!host.fileExists(extendedConfigPath) && !ts.endsWith(extendedConfigPath, ".json")) {
34488
- extendedConfigPath = extendedConfigPath + ".json";
34491
+ extendedConfigPath = "".concat(extendedConfigPath, ".json");
34489
34492
  if (!host.fileExists(extendedConfigPath)) {
34490
34493
  errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));
34491
34494
  return undefined;
@@ -34681,7 +34684,7 @@ var ts;
34681
34684
  if (ts.fileExtensionIs(file, ".json")) {
34682
34685
  if (!jsonOnlyIncludeRegexes) {
34683
34686
  var includes = validatedIncludeSpecs.filter(function (s) { return ts.endsWith(s, ".json"); });
34684
- var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^" + pattern + "$"; });
34687
+ var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^".concat(pattern, "$"); });
34685
34688
  jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map(function (pattern) { return ts.getRegexFromPattern(pattern, host.useCaseSensitiveFileNames); }) : ts.emptyArray;
34686
34689
  }
34687
34690
  var includeIndex = ts.findIndex(jsonOnlyIncludeRegexes, function (re) { return re.test(file); });
@@ -34909,7 +34912,7 @@ var ts;
34909
34912
  return true;
34910
34913
  case "string":
34911
34914
  var defaultValue = option.defaultValueDescription;
34912
- return option.isFilePath ? "./" + (defaultValue && typeof defaultValue === "string" ? defaultValue : "") : "";
34915
+ return option.isFilePath ? "./".concat(defaultValue && typeof defaultValue === "string" ? defaultValue : "") : "";
34913
34916
  case "list":
34914
34917
  return [];
34915
34918
  case "object":
@@ -35058,7 +35061,7 @@ var ts;
35058
35061
  var bestVersionKey = result.version, bestVersionPaths = result.paths;
35059
35062
  if (typeof bestVersionPaths !== "object") {
35060
35063
  if (state.traceEnabled) {
35061
- trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['" + bestVersionKey + "']", "object", typeof bestVersionPaths);
35064
+ trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['".concat(bestVersionKey, "']"), "object", typeof bestVersionPaths);
35062
35065
  }
35063
35066
  return;
35064
35067
  }
@@ -35187,10 +35190,11 @@ var ts;
35187
35190
  if (resolved) {
35188
35191
  var fileName = resolved.fileName, packageId = resolved.packageId;
35189
35192
  var resolvedFileName = options.preserveSymlinks ? fileName : realPath(fileName, host, traceEnabled);
35193
+ var pathsAreEqual = arePathsEqual(fileName, resolvedFileName, host);
35190
35194
  resolvedTypeReferenceDirective = {
35191
35195
  primary: primary,
35192
- resolvedFileName: resolvedFileName,
35193
- originalPath: arePathsEqual(fileName, resolvedFileName, host) ? undefined : fileName,
35196
+ resolvedFileName: pathsAreEqual ? fileName : resolvedFileName,
35197
+ originalPath: pathsAreEqual ? undefined : fileName,
35194
35198
  packageId: packageId,
35195
35199
  isExternalLibraryImport: pathContainsNodeModules(fileName),
35196
35200
  };
@@ -35440,7 +35444,7 @@ var ts;
35440
35444
  };
35441
35445
  return cache;
35442
35446
  function getUnderlyingCacheKey(specifier, mode) {
35443
- var result = mode === undefined ? specifier : mode + "|" + specifier;
35447
+ var result = mode === undefined ? specifier : "".concat(mode, "|").concat(specifier);
35444
35448
  memoizedReverseKeys.set(result, [specifier, mode]);
35445
35449
  return result;
35446
35450
  }
@@ -35476,7 +35480,7 @@ var ts;
35476
35480
  }
35477
35481
  function getOrCreateCacheForModuleName(nonRelativeModuleName, mode, redirectedReference) {
35478
35482
  ts.Debug.assert(!ts.isExternalModuleNameRelative(nonRelativeModuleName));
35479
- return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : mode + "|" + nonRelativeModuleName, createPerModuleNameCache);
35483
+ return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : "".concat(mode, "|").concat(nonRelativeModuleName), createPerModuleNameCache);
35480
35484
  }
35481
35485
  function createPerModuleNameCache() {
35482
35486
  var directoryPathMap = new ts.Map();
@@ -35607,10 +35611,10 @@ var ts;
35607
35611
  result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);
35608
35612
  break;
35609
35613
  default:
35610
- return ts.Debug.fail("Unexpected moduleResolution: " + moduleResolution);
35614
+ return ts.Debug.fail("Unexpected moduleResolution: ".concat(moduleResolution));
35611
35615
  }
35612
35616
  if (result && result.resolvedModule)
35613
- ts.perfLogger.logInfoEvent("Module \"" + moduleName + "\" resolved to \"" + result.resolvedModule.resolvedFileName + "\"");
35617
+ ts.perfLogger.logInfoEvent("Module \"".concat(moduleName, "\" resolved to \"").concat(result.resolvedModule.resolvedFileName, "\""));
35614
35618
  ts.perfLogger.logStopResolveModule((result && result.resolvedModule) ? "" + result.resolvedModule.resolvedFileName : "null");
35615
35619
  if (perFolderCache) {
35616
35620
  perFolderCache.set(moduleName, resolutionMode, result);
@@ -35740,7 +35744,7 @@ var ts;
35740
35744
  function resolveJSModule(moduleName, initialDir, host) {
35741
35745
  var _a = tryResolveJSModuleWorker(moduleName, initialDir, host), resolvedModule = _a.resolvedModule, failedLookupLocations = _a.failedLookupLocations;
35742
35746
  if (!resolvedModule) {
35743
- throw new Error("Could not resolve JS module '" + moduleName + "' starting at '" + initialDir + "'. Looked in: " + failedLookupLocations.join(", "));
35747
+ throw new Error("Could not resolve JS module '".concat(moduleName, "' starting at '").concat(initialDir, "'. Looked in: ").concat(failedLookupLocations.join(", ")));
35744
35748
  }
35745
35749
  return resolvedModule.resolvedFileName;
35746
35750
  }
@@ -35846,8 +35850,9 @@ var ts;
35846
35850
  var resolvedValue = resolved_1.value;
35847
35851
  if (!compilerOptions.preserveSymlinks && resolvedValue && !resolvedValue.originalPath) {
35848
35852
  var path = realPath(resolvedValue.path, host, traceEnabled);
35849
- var originalPath = arePathsEqual(path, resolvedValue.path, host) ? undefined : resolvedValue.path;
35850
- resolvedValue = __assign(__assign({}, resolvedValue), { path: path, originalPath: originalPath });
35853
+ var pathsAreEqual = arePathsEqual(path, resolvedValue.path, host);
35854
+ var originalPath = pathsAreEqual ? undefined : resolvedValue.path;
35855
+ resolvedValue = __assign(__assign({}, resolvedValue), { path: pathsAreEqual ? resolvedValue.path : path, originalPath: originalPath });
35851
35856
  }
35852
35857
  return { value: resolvedValue && { resolved: resolvedValue, isExternalLibraryImport: true } };
35853
35858
  }
@@ -35873,7 +35878,7 @@ var ts;
35873
35878
  if (traceEnabled) {
35874
35879
  trace(host, ts.Diagnostics.Resolving_real_path_for_0_result_1, path, real);
35875
35880
  }
35876
- ts.Debug.assert(host.fileExists(real), path + " linked to nonexistent file " + real);
35881
+ ts.Debug.assert(host.fileExists(real), "".concat(path, " linked to nonexistent file ").concat(real));
35877
35882
  return real;
35878
35883
  }
35879
35884
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
@@ -36330,7 +36335,7 @@ var ts;
36330
36335
  return undefined;
36331
36336
  }
36332
36337
  var trailingParts = parts.slice(nameParts.length);
36333
- return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : "." + ts.directorySeparator + trailingParts.join(ts.directorySeparator), state, cache, redirectedReference);
36338
+ return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : ".".concat(ts.directorySeparator).concat(trailingParts.join(ts.directorySeparator)), state, cache, redirectedReference);
36334
36339
  }
36335
36340
  function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) {
36336
36341
  if (!scope.packageJsonContent.exports) {
@@ -36540,7 +36545,7 @@ var ts;
36540
36545
  var _a, _b;
36541
36546
  if (path === undefined)
36542
36547
  return path;
36543
- return ts.hostGetCanonicalFileName({ useCaseSensitiveFileNames: useCaseSensitiveFileNames })(ts.getNormalizedAbsolutePath(path, (_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a)));
36548
+ return ts.getNormalizedAbsolutePath(path, (_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a));
36544
36549
  }
36545
36550
  function combineDirectoryPath(root, dir) {
36546
36551
  return ts.ensureTrailingDirectorySeparator(ts.combinePaths(root, dir));
@@ -36555,7 +36560,7 @@ var ts;
36555
36560
  if ((extensions === Extensions.TypeScript || extensions === Extensions.JavaScript || extensions === Extensions.Json)
36556
36561
  && (state.compilerOptions.declarationDir || state.compilerOptions.outDir)
36557
36562
  && finalPath.indexOf("/node_modules/") === -1
36558
- && (state.compilerOptions.configFile ? ts.startsWith(toAbsolutePath(state.compilerOptions.configFile.fileName), scope.packageDirectory) : true)) {
36563
+ && (state.compilerOptions.configFile ? ts.containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) {
36559
36564
  var getCanonicalFileName = ts.hostGetCanonicalFileName({ useCaseSensitiveFileNames: useCaseSensitiveFileNames });
36560
36565
  var commonSourceDirGuesses = [];
36561
36566
  if (state.compilerOptions.rootDir || (state.compilerOptions.composite && state.compilerOptions.configFilePath)) {
@@ -36585,7 +36590,7 @@ var ts;
36585
36590
  var candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess);
36586
36591
  for (var _e = 0, candidateDirectories_1 = candidateDirectories; _e < candidateDirectories_1.length; _e++) {
36587
36592
  var candidateDir = candidateDirectories_1[_e];
36588
- if (ts.startsWith(finalPath, candidateDir)) {
36593
+ if (ts.containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames())) {
36589
36594
  var pathFragment = finalPath.slice(candidateDir.length + 1);
36590
36595
  var possibleInputBase = ts.combinePaths(commonSourceDirGuess, pathFragment);
36591
36596
  var jsAndDtsExtensions = [".mjs", ".cjs", ".js", ".json", ".d.mts", ".d.cts", ".d.ts"];
@@ -36757,7 +36762,7 @@ var ts;
36757
36762
  return mangled;
36758
36763
  }
36759
36764
  function getTypesPackageName(packageName) {
36760
- return "@types/" + mangleScopedPackageName(packageName);
36765
+ return "@types/".concat(mangleScopedPackageName(packageName));
36761
36766
  }
36762
36767
  ts.getTypesPackageName = getTypesPackageName;
36763
36768
  function mangleScopedPackageName(packageName) {
@@ -37109,7 +37114,7 @@ var ts;
37109
37114
  if (name) {
37110
37115
  if (ts.isAmbientModule(node)) {
37111
37116
  var moduleName = ts.getTextOfIdentifierOrLiteral(name);
37112
- return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"" + moduleName + "\"");
37117
+ return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"".concat(moduleName, "\""));
37113
37118
  }
37114
37119
  if (name.kind === 162) {
37115
37120
  var nameExpression = name.expression;
@@ -37158,7 +37163,7 @@ var ts;
37158
37163
  case 317:
37159
37164
  return (ts.isJSDocConstructSignature(node) ? "__new" : "__call");
37160
37165
  case 164:
37161
- ts.Debug.assert(node.parent.kind === 317, "Impossible parameter parent kind", function () { return "parent is: " + ts.Debug.formatSyntaxKind(node.parent.kind) + ", expected JSDocFunctionType"; });
37166
+ ts.Debug.assert(node.parent.kind === 317, "Impossible parameter parent kind", function () { return "parent is: ".concat(ts.Debug.formatSyntaxKind(node.parent.kind), ", expected JSDocFunctionType"); });
37162
37167
  var functionType = node.parent;
37163
37168
  var index = functionType.parameters.indexOf(node);
37164
37169
  return "arg" + index;
@@ -37224,7 +37229,7 @@ var ts;
37224
37229
  }
37225
37230
  var relatedInformation_1 = [];
37226
37231
  if (ts.isTypeAliasDeclaration(node) && ts.nodeIsMissing(node.type) && ts.hasSyntacticModifier(node, 1) && symbol.flags & (2097152 | 788968 | 1920)) {
37227
- relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { " + ts.unescapeLeadingUnderscores(node.name.escapedText) + " }"));
37232
+ relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { ".concat(ts.unescapeLeadingUnderscores(node.name.escapedText), " }")));
37228
37233
  }
37229
37234
  var declarationName_1 = ts.getNameOfDeclaration(node) || node;
37230
37235
  ts.forEach(symbol.declarations, function (declaration, index) {
@@ -39028,7 +39033,7 @@ var ts;
39028
39033
  }
39029
39034
  }
39030
39035
  function bindSourceFileAsExternalModule() {
39031
- bindAnonymousDeclaration(file, 512, "\"" + ts.removeFileExtension(file.fileName) + "\"");
39036
+ bindAnonymousDeclaration(file, 512, "\"".concat(ts.removeFileExtension(file.fileName), "\""));
39032
39037
  }
39033
39038
  function bindExportAssignment(node) {
39034
39039
  if (!container.symbol || !container.symbol.exports) {
@@ -40780,7 +40785,7 @@ var ts;
40780
40785
  if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
40781
40786
  var firstFile_1 = ts.comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 ? sourceSymbolFile : targetSymbolFile;
40782
40787
  var secondFile_1 = firstFile_1 === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
40783
- var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, firstFile_1.path + "|" + secondFile_1.path, function () {
40788
+ var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, "".concat(firstFile_1.path, "|").concat(secondFile_1.path), function () {
40784
40789
  return ({ firstFile: firstFile_1, secondFile: secondFile_1, conflictingSymbols: new ts.Map() });
40785
40790
  });
40786
40791
  var conflictingSymbolInfo = ts.getOrUpdate(filesDuplicates.conflictingSymbols, symbolName_1, function () {
@@ -41870,40 +41875,60 @@ var ts;
41870
41875
  return typeof file.externalModuleIndicator !== "object" && !resolveExportByName(moduleSymbol, ts.escapeLeadingUnderscores("__esModule"), undefined, dontResolveAlias);
41871
41876
  }
41872
41877
  function getTargetOfImportClause(node, dontResolveAlias) {
41873
- var _a;
41874
41878
  var moduleSymbol = resolveExternalModuleName(node, node.parent.moduleSpecifier);
41875
41879
  if (moduleSymbol) {
41876
- var exportDefaultSymbol = void 0;
41877
- if (ts.isShorthandAmbientModuleSymbol(moduleSymbol)) {
41878
- exportDefaultSymbol = moduleSymbol;
41879
- }
41880
- else {
41881
- exportDefaultSymbol = resolveExportByName(moduleSymbol, "default", node, dontResolveAlias);
41882
- }
41883
- var file = (_a = moduleSymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isSourceFile);
41884
- var hasDefaultOnly = isOnlyImportedAsDefault(node.parent.moduleSpecifier);
41885
- var hasSyntheticDefault = canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, node.parent.moduleSpecifier);
41886
- if (!exportDefaultSymbol && !hasSyntheticDefault && !hasDefaultOnly) {
41887
- if (hasExportAssignmentSymbol(moduleSymbol)) {
41888
- var compilerOptionName = moduleKind >= ts.ModuleKind.ES2015 ? "allowSyntheticDefaultImports" : "esModuleInterop";
41889
- var exportEqualsSymbol = moduleSymbol.exports.get("export=");
41890
- var exportAssignment = exportEqualsSymbol.valueDeclaration;
41891
- var err = error(node.name, ts.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName);
41892
- if (exportAssignment) {
41893
- ts.addRelatedInfo(err, ts.createDiagnosticForNode(exportAssignment, ts.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag, compilerOptionName));
41894
- }
41895
- }
41896
- else {
41897
- reportNonDefaultExport(moduleSymbol, node);
41880
+ return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias);
41881
+ }
41882
+ }
41883
+ function getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias) {
41884
+ var _a;
41885
+ var exportDefaultSymbol;
41886
+ if (ts.isShorthandAmbientModuleSymbol(moduleSymbol)) {
41887
+ exportDefaultSymbol = moduleSymbol;
41888
+ }
41889
+ else {
41890
+ exportDefaultSymbol = resolveExportByName(moduleSymbol, "default", node, dontResolveAlias);
41891
+ }
41892
+ var file = (_a = moduleSymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isSourceFile);
41893
+ var specifier = getModuleSpecifierForImportOrExport(node);
41894
+ if (!specifier) {
41895
+ return exportDefaultSymbol;
41896
+ }
41897
+ var hasDefaultOnly = isOnlyImportedAsDefault(specifier);
41898
+ var hasSyntheticDefault = canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, specifier);
41899
+ if (!exportDefaultSymbol && !hasSyntheticDefault && !hasDefaultOnly) {
41900
+ if (hasExportAssignmentSymbol(moduleSymbol)) {
41901
+ var compilerOptionName = moduleKind >= ts.ModuleKind.ES2015 ? "allowSyntheticDefaultImports" : "esModuleInterop";
41902
+ var exportEqualsSymbol = moduleSymbol.exports.get("export=");
41903
+ var exportAssignment = exportEqualsSymbol.valueDeclaration;
41904
+ var err = error(node.name, ts.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName);
41905
+ if (exportAssignment) {
41906
+ ts.addRelatedInfo(err, ts.createDiagnosticForNode(exportAssignment, ts.Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag, compilerOptionName));
41898
41907
  }
41899
41908
  }
41900
- else if (hasSyntheticDefault || hasDefaultOnly) {
41901
- var resolved = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias);
41902
- markSymbolOfAliasDeclarationIfTypeOnly(node, moduleSymbol, resolved, false);
41903
- return resolved;
41909
+ else if (ts.isImportClause(node)) {
41910
+ reportNonDefaultExport(moduleSymbol, node);
41904
41911
  }
41905
- markSymbolOfAliasDeclarationIfTypeOnly(node, exportDefaultSymbol, undefined, false);
41906
- return exportDefaultSymbol;
41912
+ else {
41913
+ errorNoModuleMemberSymbol(moduleSymbol, moduleSymbol, node, ts.isImportOrExportSpecifier(node) && node.propertyName || node.name);
41914
+ }
41915
+ }
41916
+ else if (hasSyntheticDefault || hasDefaultOnly) {
41917
+ var resolved = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias);
41918
+ markSymbolOfAliasDeclarationIfTypeOnly(node, moduleSymbol, resolved, false);
41919
+ return resolved;
41920
+ }
41921
+ markSymbolOfAliasDeclarationIfTypeOnly(node, exportDefaultSymbol, undefined, false);
41922
+ return exportDefaultSymbol;
41923
+ }
41924
+ function getModuleSpecifierForImportOrExport(node) {
41925
+ switch (node.kind) {
41926
+ case 267: return node.parent.moduleSpecifier;
41927
+ case 265: return ts.isExternalModuleReference(node.moduleReference) ? node.moduleReference.expression : undefined;
41928
+ case 268: return node.parent.parent.moduleSpecifier;
41929
+ case 270: return node.parent.parent.parent.moduleSpecifier;
41930
+ case 275: return node.parent.parent.moduleSpecifier;
41931
+ default: return ts.Debug.assertNever(node);
41907
41932
  }
41908
41933
  }
41909
41934
  function reportNonDefaultExport(moduleSymbol, node) {
@@ -41975,7 +42000,7 @@ var ts;
41975
42000
  }
41976
42001
  }
41977
42002
  function getExternalModuleMember(node, specifier, dontResolveAlias) {
41978
- var _a, _b;
42003
+ var _a;
41979
42004
  if (dontResolveAlias === void 0) { dontResolveAlias = false; }
41980
42005
  var moduleSpecifier = ts.getExternalModuleRequireArgument(node) || node.moduleSpecifier;
41981
42006
  var moduleSymbol = resolveExternalModuleName(node, moduleSpecifier);
@@ -42009,29 +42034,33 @@ var ts;
42009
42034
  combineValueAndTypeSymbols(symbolFromVariable, symbolFromModule) :
42010
42035
  symbolFromModule || symbolFromVariable;
42011
42036
  if (!symbol) {
42012
- var moduleName = getFullyQualifiedName(moduleSymbol, node);
42013
- var declarationName = ts.declarationNameToString(name);
42014
- var suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol);
42015
- if (suggestion !== undefined) {
42016
- var suggestionName = symbolToString(suggestion);
42017
- var diagnostic = error(name, ts.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName);
42018
- if (suggestion.valueDeclaration) {
42019
- ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(suggestion.valueDeclaration, ts.Diagnostics._0_is_declared_here, suggestionName));
42020
- }
42021
- }
42022
- else {
42023
- if ((_b = moduleSymbol.exports) === null || _b === void 0 ? void 0 : _b.has("default")) {
42024
- error(name, ts.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, moduleName, declarationName);
42025
- }
42026
- else {
42027
- reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName);
42028
- }
42029
- }
42037
+ errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name);
42030
42038
  }
42031
42039
  return symbol;
42032
42040
  }
42033
42041
  }
42034
42042
  }
42043
+ function errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name) {
42044
+ var _a;
42045
+ var moduleName = getFullyQualifiedName(moduleSymbol, node);
42046
+ var declarationName = ts.declarationNameToString(name);
42047
+ var suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol);
42048
+ if (suggestion !== undefined) {
42049
+ var suggestionName = symbolToString(suggestion);
42050
+ var diagnostic = error(name, ts.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName);
42051
+ if (suggestion.valueDeclaration) {
42052
+ ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(suggestion.valueDeclaration, ts.Diagnostics._0_is_declared_here, suggestionName));
42053
+ }
42054
+ }
42055
+ else {
42056
+ if ((_a = moduleSymbol.exports) === null || _a === void 0 ? void 0 : _a.has("default")) {
42057
+ error(name, ts.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, moduleName, declarationName);
42058
+ }
42059
+ else {
42060
+ reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName);
42061
+ }
42062
+ }
42063
+ }
42035
42064
  function reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName) {
42036
42065
  var _a, _b;
42037
42066
  var localSymbol = (_b = (_a = moduleSymbol.valueDeclaration) === null || _a === void 0 ? void 0 : _a.locals) === null || _b === void 0 ? void 0 : _b.get(name.escapedText);
@@ -42077,6 +42106,13 @@ var ts;
42077
42106
  }
42078
42107
  }
42079
42108
  function getTargetOfImportSpecifier(node, dontResolveAlias) {
42109
+ if (ts.isImportSpecifier(node) && ts.idText(node.propertyName || node.name) === "default") {
42110
+ var specifier = getModuleSpecifierForImportOrExport(node);
42111
+ var moduleSymbol = specifier && resolveExternalModuleName(node, specifier);
42112
+ if (moduleSymbol) {
42113
+ return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias);
42114
+ }
42115
+ }
42080
42116
  var root = ts.isBindingElement(node) ? ts.getRootDeclaration(node) : node.parent.parent.parent;
42081
42117
  var commonJSPropertyAccess = getCommonJSPropertyAccess(root);
42082
42118
  var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
@@ -42098,6 +42134,13 @@ var ts;
42098
42134
  return resolved;
42099
42135
  }
42100
42136
  function getTargetOfExportSpecifier(node, meaning, dontResolveAlias) {
42137
+ if (ts.idText(node.propertyName || node.name) === "default") {
42138
+ var specifier = getModuleSpecifierForImportOrExport(node);
42139
+ var moduleSymbol = specifier && resolveExternalModuleName(node, specifier);
42140
+ if (moduleSymbol) {
42141
+ return getTargetofModuleDefault(moduleSymbol, node, !!dontResolveAlias);
42142
+ }
42143
+ }
42101
42144
  var resolved = node.parent.parent.moduleSpecifier ?
42102
42145
  getExternalModuleMember(node.parent.parent, node, dontResolveAlias) :
42103
42146
  resolveEntityName(node.propertyName || node.name, meaning, false, dontResolveAlias);
@@ -43130,7 +43173,7 @@ var ts;
43130
43173
  var links = getSymbolLinks(symbol);
43131
43174
  var cache = (links.accessibleChainCache || (links.accessibleChainCache = new ts.Map()));
43132
43175
  var firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, function (_, __, ___, node) { return node; });
43133
- var key = (useOnlyExternalAliasing ? 0 : 1) + "|" + (firstRelevantLocation && getNodeId(firstRelevantLocation)) + "|" + meaning;
43176
+ var key = "".concat(useOnlyExternalAliasing ? 0 : 1, "|").concat(firstRelevantLocation && getNodeId(firstRelevantLocation), "|").concat(meaning);
43134
43177
  if (cache.has(key)) {
43135
43178
  return cache.get(key);
43136
43179
  }
@@ -43963,7 +44006,7 @@ var ts;
43963
44006
  context.symbolDepth = new ts.Map();
43964
44007
  }
43965
44008
  var links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
43966
- var key = getTypeId(type) + "|" + context.flags;
44009
+ var key = "".concat(getTypeId(type), "|").concat(context.flags);
43967
44010
  if (links) {
43968
44011
  links.serializedTypes || (links.serializedTypes = new ts.Map());
43969
44012
  }
@@ -44224,7 +44267,7 @@ var ts;
44224
44267
  }
44225
44268
  }
44226
44269
  if (checkTruncationLength(context) && (i + 2 < properties.length - 1)) {
44227
- typeElements.push(ts.factory.createPropertySignature(undefined, "... " + (properties.length - i) + " more ...", undefined, undefined));
44270
+ typeElements.push(ts.factory.createPropertySignature(undefined, "... ".concat(properties.length - i, " more ..."), undefined, undefined));
44228
44271
  addPropertyToElementList(properties[properties.length - 1], context, typeElements);
44229
44272
  break;
44230
44273
  }
@@ -44332,7 +44375,7 @@ var ts;
44332
44375
  else if (types.length > 2) {
44333
44376
  return [
44334
44377
  typeToTypeNodeHelper(types[0], context),
44335
- ts.factory.createTypeReferenceNode("... " + (types.length - 2) + " more ...", undefined),
44378
+ ts.factory.createTypeReferenceNode("... ".concat(types.length - 2, " more ..."), undefined),
44336
44379
  typeToTypeNodeHelper(types[types.length - 1], context)
44337
44380
  ];
44338
44381
  }
@@ -44345,7 +44388,7 @@ var ts;
44345
44388
  var type = types_2[_i];
44346
44389
  i++;
44347
44390
  if (checkTruncationLength(context) && (i + 2 < types.length - 1)) {
44348
- result_5.push(ts.factory.createTypeReferenceNode("... " + (types.length - i) + " more ...", undefined));
44391
+ result_5.push(ts.factory.createTypeReferenceNode("... ".concat(types.length - i, " more ..."), undefined));
44349
44392
  var typeNode_1 = typeToTypeNodeHelper(types[types.length - 1], context);
44350
44393
  if (typeNode_1) {
44351
44394
  result_5.push(typeNode_1);
@@ -44707,7 +44750,7 @@ var ts;
44707
44750
  }
44708
44751
  return specifier;
44709
44752
  function getSpecifierCacheKey(path, mode) {
44710
- return mode === undefined ? path : mode + "|" + path;
44753
+ return mode === undefined ? path : "".concat(mode, "|").concat(path);
44711
44754
  }
44712
44755
  }
44713
44756
  function symbolToEntityNameNode(symbol) {
@@ -44874,7 +44917,7 @@ var ts;
44874
44917
  var text = rawtext;
44875
44918
  while (((_b = context.typeParameterNamesByText) === null || _b === void 0 ? void 0 : _b.has(text)) || typeParameterShadowsNameInScope(text, context, type)) {
44876
44919
  i++;
44877
- text = rawtext + "_" + i;
44920
+ text = "".concat(rawtext, "_").concat(i);
44878
44921
  }
44879
44922
  if (text !== rawtext) {
44880
44923
  result = ts.factory.createIdentifier(text, result.typeArguments);
@@ -45166,7 +45209,7 @@ var ts;
45166
45209
  function getNameForJSDocFunctionParameter(p, index) {
45167
45210
  return p.name && ts.isIdentifier(p.name) && p.name.escapedText === "this" ? "this"
45168
45211
  : getEffectiveDotDotDotForParameter(p) ? "args"
45169
- : "arg" + index;
45212
+ : "arg".concat(index);
45170
45213
  }
45171
45214
  function rewriteModuleSpecifier(parent, lit) {
45172
45215
  if (bundled) {
@@ -45978,7 +46021,7 @@ var ts;
45978
46021
  }
45979
46022
  return results_1;
45980
46023
  }
45981
- return ts.Debug.fail("Unhandled class member kind! " + (p.__debugFlags || p.flags));
46024
+ return ts.Debug.fail("Unhandled class member kind! ".concat(p.__debugFlags || p.flags));
45982
46025
  };
45983
46026
  }
45984
46027
  function serializePropertySymbolForInterface(p, baseType) {
@@ -46048,7 +46091,7 @@ var ts;
46048
46091
  if (ref) {
46049
46092
  return ref;
46050
46093
  }
46051
- var tempName = getUnusedName(rootName + "_base");
46094
+ var tempName = getUnusedName("".concat(rootName, "_base"));
46052
46095
  var statement = ts.factory.createVariableStatement(undefined, ts.factory.createVariableDeclarationList([
46053
46096
  ts.factory.createVariableDeclaration(tempName, undefined, typeToTypeNodeHelper(staticType, context))
46054
46097
  ], 2));
@@ -46093,7 +46136,7 @@ var ts;
46093
46136
  var original = input;
46094
46137
  while ((_a = context.usedSymbolNames) === null || _a === void 0 ? void 0 : _a.has(input)) {
46095
46138
  i++;
46096
- input = original + "_" + i;
46139
+ input = "".concat(original, "_").concat(i);
46097
46140
  }
46098
46141
  (_b = context.usedSymbolNames) === null || _b === void 0 ? void 0 : _b.add(input);
46099
46142
  if (id) {
@@ -46199,15 +46242,15 @@ var ts;
46199
46242
  if (nameType.flags & 384) {
46200
46243
  var name = "" + nameType.value;
46201
46244
  if (!ts.isIdentifierText(name, ts.getEmitScriptTarget(compilerOptions)) && !ts.isNumericLiteralName(name)) {
46202
- return "\"" + ts.escapeString(name, 34) + "\"";
46245
+ return "\"".concat(ts.escapeString(name, 34), "\"");
46203
46246
  }
46204
46247
  if (ts.isNumericLiteralName(name) && ts.startsWith(name, "-")) {
46205
- return "[" + name + "]";
46248
+ return "[".concat(name, "]");
46206
46249
  }
46207
46250
  return name;
46208
46251
  }
46209
46252
  if (nameType.flags & 8192) {
46210
- return "[" + getNameOfSymbolAsWritten(nameType.symbol, context) + "]";
46253
+ return "[".concat(getNameOfSymbolAsWritten(nameType.symbol, context), "]");
46211
46254
  }
46212
46255
  }
46213
46256
  }
@@ -48635,7 +48678,7 @@ var ts;
48635
48678
  !leftName ? rightName :
48636
48679
  !rightName ? leftName :
48637
48680
  undefined;
48638
- var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg" + i);
48681
+ var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
48639
48682
  paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
48640
48683
  params[i] = paramSymbol;
48641
48684
  }
@@ -50375,7 +50418,7 @@ var ts;
50375
50418
  return result;
50376
50419
  }
50377
50420
  function getAliasId(aliasSymbol, aliasTypeArguments) {
50378
- return aliasSymbol ? "@" + getSymbolId(aliasSymbol) + (aliasTypeArguments ? ":" + getTypeListId(aliasTypeArguments) : "") : "";
50421
+ return aliasSymbol ? "@".concat(getSymbolId(aliasSymbol)) + (aliasTypeArguments ? ":".concat(getTypeListId(aliasTypeArguments)) : "") : "";
50379
50422
  }
50380
50423
  function getPropagatingFlagsOfTypes(types, excludeKinds) {
50381
50424
  var result = 0;
@@ -50538,7 +50581,7 @@ var ts;
50538
50581
  return undefined;
50539
50582
  }
50540
50583
  function getSymbolPath(symbol) {
50541
- return symbol.parent ? getSymbolPath(symbol.parent) + "." + symbol.escapedName : symbol.escapedName;
50584
+ return symbol.parent ? "".concat(getSymbolPath(symbol.parent), ".").concat(symbol.escapedName) : symbol.escapedName;
50542
50585
  }
50543
50586
  function getUnresolvedSymbolForEntityName(name) {
50544
50587
  var identifier = name.kind === 161 ? name.right :
@@ -50549,7 +50592,7 @@ var ts;
50549
50592
  var parentSymbol = name.kind === 161 ? getUnresolvedSymbolForEntityName(name.left) :
50550
50593
  name.kind === 206 ? getUnresolvedSymbolForEntityName(name.expression) :
50551
50594
  undefined;
50552
- var path = parentSymbol ? getSymbolPath(parentSymbol) + "." + text : text;
50595
+ var path = parentSymbol ? "".concat(getSymbolPath(parentSymbol), ".").concat(text) : text;
50553
50596
  var result = unresolvedSymbols.get(path);
50554
50597
  if (!result) {
50555
50598
  unresolvedSymbols.set(path, result = createSymbol(524288, text, 1048576));
@@ -50615,7 +50658,7 @@ var ts;
50615
50658
  if (substitute.flags & 3 || substitute === baseType) {
50616
50659
  return baseType;
50617
50660
  }
50618
- var id = getTypeId(baseType) + ">" + getTypeId(substitute);
50661
+ var id = "".concat(getTypeId(baseType), ">").concat(getTypeId(substitute));
50619
50662
  var cached = substitutionTypes.get(id);
50620
50663
  if (cached) {
50621
50664
  return cached;
@@ -51474,9 +51517,9 @@ var ts;
51474
51517
  return types[0];
51475
51518
  }
51476
51519
  var typeKey = !origin ? getTypeListId(types) :
51477
- origin.flags & 1048576 ? "|" + getTypeListId(origin.types) :
51478
- origin.flags & 2097152 ? "&" + getTypeListId(origin.types) :
51479
- "#" + origin.type.id + "|" + getTypeListId(types);
51520
+ origin.flags & 1048576 ? "|".concat(getTypeListId(origin.types)) :
51521
+ origin.flags & 2097152 ? "&".concat(getTypeListId(origin.types)) :
51522
+ "#".concat(origin.type.id, "|").concat(getTypeListId(types));
51480
51523
  var id = typeKey + getAliasId(aliasSymbol, aliasTypeArguments);
51481
51524
  var type = unionTypes.get(id);
51482
51525
  if (!type) {
@@ -51669,7 +51712,7 @@ var ts;
51669
51712
  return includes & 8388608 ? wildcardType : anyType;
51670
51713
  }
51671
51714
  if (!strictNullChecks && includes & 98304) {
51672
- return includes & 32768 ? undefinedType : nullType;
51715
+ return includes & 16777216 ? neverType : includes & 32768 ? undefinedType : nullType;
51673
51716
  }
51674
51717
  if (includes & 4 && includes & (128 | 134217728 | 268435456) ||
51675
51718
  includes & 8 && includes & 256 ||
@@ -51949,7 +51992,7 @@ var ts;
51949
51992
  if (ts.every(newTexts, function (t) { return t === ""; }) && ts.every(newTypes, function (t) { return !!(t.flags & 4); })) {
51950
51993
  return stringType;
51951
51994
  }
51952
- var id = getTypeListId(newTypes) + "|" + ts.map(newTexts, function (t) { return t.length; }).join(",") + "|" + newTexts.join("");
51995
+ var id = "".concat(getTypeListId(newTypes), "|").concat(ts.map(newTexts, function (t) { return t.length; }).join(","), "|").concat(newTexts.join(""));
51953
51996
  var type = templateLiteralTypes.get(id);
51954
51997
  if (!type) {
51955
51998
  templateLiteralTypes.set(id, type = createTemplateLiteralType(newTexts, newTypes));
@@ -52031,7 +52074,7 @@ var ts;
52031
52074
  return [texts, types];
52032
52075
  }
52033
52076
  function getStringMappingTypeForGenericType(symbol, type) {
52034
- var id = getSymbolId(symbol) + "," + getTypeId(type);
52077
+ var id = "".concat(getSymbolId(symbol), ",").concat(getTypeId(type));
52035
52078
  var result = stringMappingTypes.get(id);
52036
52079
  if (!result) {
52037
52080
  stringMappingTypes.set(id, result = createStringMappingType(symbol, type));
@@ -52304,7 +52347,7 @@ var ts;
52304
52347
  type;
52305
52348
  }
52306
52349
  function distributeIndexOverObjectType(objectType, indexType, writing) {
52307
- if (objectType.flags & 3145728) {
52350
+ if (objectType.flags & 1048576 || objectType.flags & 2097152 && !shouldDeferIndexType(objectType)) {
52308
52351
  var types = ts.map(objectType.types, function (t) { return getSimplifiedType(getIndexedAccessType(t, indexType), writing); });
52309
52352
  return objectType.flags & 2097152 || writing ? getIntersectionType(types) : getUnionType(types);
52310
52353
  }
@@ -52980,7 +53023,7 @@ var ts;
52980
53023
  function createUniqueESSymbolType(symbol) {
52981
53024
  var type = createType(8192);
52982
53025
  type.symbol = symbol;
52983
- type.escapedName = "__@" + type.symbol.escapedName + "@" + getSymbolId(type.symbol);
53026
+ type.escapedName = "__@".concat(type.symbol.escapedName, "@").concat(getSymbolId(type.symbol));
52984
53027
  return type;
52985
53028
  }
52986
53029
  function getESSymbolLikeTypeForNode(node) {
@@ -54443,7 +54486,7 @@ var ts;
54443
54486
  if (reduced !== type) {
54444
54487
  return reduced;
54445
54488
  }
54446
- if (type.flags & 2097152) {
54489
+ if (type.flags & 2097152 && ts.some(type.types, isEmptyAnonymousObjectType)) {
54447
54490
  var normalizedTypes = ts.sameMap(type.types, function (t) { return getNormalizedType(t, writing); });
54448
54491
  if (normalizedTypes !== type.types) {
54449
54492
  return getIntersectionType(normalizedTypes);
@@ -54552,20 +54595,20 @@ var ts;
54552
54595
  switch (msg.code) {
54553
54596
  case ts.Diagnostics.Types_of_property_0_are_incompatible.code: {
54554
54597
  if (path.indexOf("new ") === 0) {
54555
- path = "(" + path + ")";
54598
+ path = "(".concat(path, ")");
54556
54599
  }
54557
54600
  var str = "" + args[0];
54558
54601
  if (path.length === 0) {
54559
- path = "" + str;
54602
+ path = "".concat(str);
54560
54603
  }
54561
54604
  else if (ts.isIdentifierText(str, ts.getEmitScriptTarget(compilerOptions))) {
54562
- path = path + "." + str;
54605
+ path = "".concat(path, ".").concat(str);
54563
54606
  }
54564
54607
  else if (str[0] === "[" && str[str.length - 1] === "]") {
54565
- path = "" + path + str;
54608
+ path = "".concat(path).concat(str);
54566
54609
  }
54567
54610
  else {
54568
- path = path + "[" + str + "]";
54611
+ path = "".concat(path, "[").concat(str, "]");
54569
54612
  }
54570
54613
  break;
54571
54614
  }
@@ -54592,7 +54635,7 @@ var ts;
54592
54635
  msg.code === ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code)
54593
54636
  ? ""
54594
54637
  : "...";
54595
- path = "" + prefix + path + "(" + params + ")";
54638
+ path = "".concat(prefix).concat(path, "(").concat(params, ")");
54596
54639
  }
54597
54640
  break;
54598
54641
  }
@@ -54605,7 +54648,7 @@ var ts;
54605
54648
  break;
54606
54649
  }
54607
54650
  default:
54608
- return ts.Debug.fail("Unhandled Diagnostic: " + msg.code);
54651
+ return ts.Debug.fail("Unhandled Diagnostic: ".concat(msg.code));
54609
54652
  }
54610
54653
  }
54611
54654
  if (path) {
@@ -55427,7 +55470,7 @@ var ts;
55427
55470
  if (reportErrors && originalErrorInfo) {
55428
55471
  resetErrorInfo(saveErrorInfo);
55429
55472
  }
55430
- if (result = isRelatedTo(source, constraint, 2, reportErrors)) {
55473
+ if (result = isRelatedTo(source, constraint, 2, reportErrors, undefined, intersectionState)) {
55431
55474
  return result;
55432
55475
  }
55433
55476
  if (reportErrors && originalErrorInfo && errorInfo) {
@@ -55490,8 +55533,8 @@ var ts;
55490
55533
  if (!c.root.inferTypeParameters && !isDistributionDependent(c.root)) {
55491
55534
  var skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
55492
55535
  var skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));
55493
- if (result = skipTrue ? -1 : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2, false)) {
55494
- result &= skipFalse ? -1 : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2, false);
55536
+ if (result = skipTrue ? -1 : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2, false, undefined, intersectionState)) {
55537
+ result &= skipFalse ? -1 : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2, false, undefined, intersectionState);
55495
55538
  if (result) {
55496
55539
  return result;
55497
55540
  }
@@ -56500,7 +56543,7 @@ var ts;
56500
56543
  var constraintMarker = "";
56501
56544
  var sourceId = getTypeReferenceId(source, 0);
56502
56545
  var targetId = getTypeReferenceId(target, 0);
56503
- return "" + constraintMarker + sourceId + "," + targetId + postFix;
56546
+ return "".concat(constraintMarker).concat(sourceId, ",").concat(targetId).concat(postFix);
56504
56547
  function getTypeReferenceId(type, depth) {
56505
56548
  if (depth === void 0) { depth = 0; }
56506
56549
  var result = "" + type.target.id;
@@ -56536,7 +56579,7 @@ var ts;
56536
56579
  var postFix = intersectionState ? ":" + intersectionState : "";
56537
56580
  return isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target) ?
56538
56581
  getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) :
56539
- source.id + "," + target.id + postFix;
56582
+ "".concat(source.id, ",").concat(target.id).concat(postFix);
56540
56583
  }
56541
56584
  function forEachProperty(prop, callback) {
56542
56585
  if (ts.getCheckFlags(prop) & 6) {
@@ -56855,7 +56898,7 @@ var ts;
56855
56898
  }
56856
56899
  function getBaseTypeOfLiteralTypeUnion(type) {
56857
56900
  var _a;
56858
- var key = "B" + getTypeId(type);
56901
+ var key = "B".concat(getTypeId(type));
56859
56902
  return (_a = getCachedType(key)) !== null && _a !== void 0 ? _a : setCachedType(key, mapType(type, getBaseTypeOfLiteralType));
56860
56903
  }
56861
56904
  function getWidenedLiteralType(type) {
@@ -57578,7 +57621,7 @@ var ts;
57578
57621
  }
57579
57622
  function parseBigIntLiteralType(text) {
57580
57623
  var negative = text.startsWith("-");
57581
- var base10Value = ts.parsePseudoBigInt((negative ? text.slice(1) : text) + "n");
57624
+ var base10Value = ts.parsePseudoBigInt("".concat(negative ? text.slice(1) : text, "n"));
57582
57625
  return getBigIntLiteralType({ negative: negative, base10Value: base10Value });
57583
57626
  }
57584
57627
  function isValidBigIntString(s, roundTripOnly) {
@@ -58449,10 +58492,10 @@ var ts;
58449
58492
  case 79:
58450
58493
  if (!ts.isThisInTypeQuery(node)) {
58451
58494
  var symbol = getResolvedSymbol(node);
58452
- return symbol !== unknownSymbol ? (flowContainer ? getNodeId(flowContainer) : "-1") + "|" + getTypeId(declaredType) + "|" + getTypeId(initialType) + "|" + getSymbolId(symbol) : undefined;
58495
+ return symbol !== unknownSymbol ? "".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType), "|").concat(getSymbolId(symbol)) : undefined;
58453
58496
  }
58454
58497
  case 108:
58455
- return "0|" + (flowContainer ? getNodeId(flowContainer) : "-1") + "|" + getTypeId(declaredType) + "|" + getTypeId(initialType);
58498
+ return "0|".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType));
58456
58499
  case 230:
58457
58500
  case 212:
58458
58501
  return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer);
@@ -58473,7 +58516,7 @@ var ts;
58473
58516
  case 213:
58474
58517
  case 214:
58475
58518
  case 169:
58476
- return getNodeId(node) + "#" + getTypeId(declaredType);
58519
+ return "".concat(getNodeId(node), "#").concat(getTypeId(declaredType));
58477
58520
  }
58478
58521
  return undefined;
58479
58522
  }
@@ -58726,7 +58769,7 @@ var ts;
58726
58769
  if (assignedType.flags & 131072) {
58727
58770
  return assignedType;
58728
58771
  }
58729
- var key = "A" + getTypeId(declaredType) + "," + getTypeId(assignedType);
58772
+ var key = "A".concat(getTypeId(declaredType), ",").concat(getTypeId(assignedType));
58730
58773
  return (_a = getCachedType(key)) !== null && _a !== void 0 ? _a : setCachedType(key, getAssignmentReducedTypeWorker(declaredType, assignedType));
58731
58774
  }
58732
58775
  function getAssignmentReducedTypeWorker(declaredType, assignedType) {
@@ -59850,7 +59893,7 @@ var ts;
59850
59893
  var narrowedPropType = narrowType(propType);
59851
59894
  return filterType(type, function (t) {
59852
59895
  var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
59853
- return !(narrowedPropType.flags & 131072) && isTypeComparableTo(narrowedPropType, discriminantType);
59896
+ return !(narrowedPropType.flags & 131072) && areTypesComparable(narrowedPropType, discriminantType);
59854
59897
  });
59855
59898
  }
59856
59899
  function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
@@ -59899,7 +59942,7 @@ var ts;
59899
59942
  }
59900
59943
  function narrowByInKeyword(type, name, assumeTrue) {
59901
59944
  if (type.flags & 1048576
59902
- || type.flags & 524288 && declaredType !== type
59945
+ || type.flags & 524288 && declaredType !== type && !(declaredType === unknownType && isEmptyAnonymousObjectType(type))
59903
59946
  || ts.isThisTypeParameter(type)
59904
59947
  || type.flags & 2097152 && ts.every(type.types, function (t) { return t.symbol !== globalThisSymbol; })) {
59905
59948
  return filterType(type, function (t) { return isTypePresencePossible(t, name, assumeTrue); });
@@ -60019,14 +60062,18 @@ var ts;
60019
60062
  assumeTrue = !assumeTrue;
60020
60063
  }
60021
60064
  var valueType = getTypeOfExpression(value);
60022
- if ((type.flags & 2) && assumeTrue && (operator === 36 || operator === 37)) {
60065
+ if (((type.flags & 2) || isEmptyAnonymousObjectType(type) && !(valueType.flags & 98304)) &&
60066
+ assumeTrue &&
60067
+ (operator === 36 || operator === 37)) {
60023
60068
  if (valueType.flags & (131068 | 67108864)) {
60024
60069
  return valueType;
60025
60070
  }
60026
60071
  if (valueType.flags & 524288) {
60027
60072
  return nonPrimitiveType;
60028
60073
  }
60029
- return type;
60074
+ if (type.flags & 2) {
60075
+ return type;
60076
+ }
60030
60077
  }
60031
60078
  if (valueType.flags & 98304) {
60032
60079
  if (!strictNullChecks) {
@@ -60214,7 +60261,7 @@ var ts;
60214
60261
  }
60215
60262
  function getNarrowedType(type, candidate, assumeTrue, checkDerived) {
60216
60263
  var _a;
60217
- var key = type.flags & 1048576 ? "N" + getTypeId(type) + "," + getTypeId(candidate) + "," + ((assumeTrue ? 1 : 0) | (checkDerived ? 2 : 0)) : undefined;
60264
+ var key = type.flags & 1048576 ? "N".concat(getTypeId(type), ",").concat(getTypeId(candidate), ",").concat((assumeTrue ? 1 : 0) | (checkDerived ? 2 : 0)) : undefined;
60218
60265
  return (_a = getCachedType(key)) !== null && _a !== void 0 ? _a : setCachedType(key, getNarrowedTypeWorker(type, candidate, assumeTrue, checkDerived));
60219
60266
  }
60220
60267
  function getNarrowedTypeWorker(type, candidate, assumeTrue, checkDerived) {
@@ -60421,7 +60468,9 @@ var ts;
60421
60468
  !!(type.flags & 465829888 && getBaseConstraintOrType(type).flags & (98304 | 1048576));
60422
60469
  }
60423
60470
  function isGenericTypeWithoutNullableConstraint(type) {
60424
- return !!(type.flags & 465829888 && !maybeTypeOfKind(getBaseConstraintOrType(type), 98304));
60471
+ return type.flags & 2097152 ?
60472
+ ts.some(type.types, isGenericTypeWithoutNullableConstraint) :
60473
+ !!(type.flags & 465829888 && !maybeTypeOfKind(getBaseConstraintOrType(type), 98304));
60425
60474
  }
60426
60475
  function hasContextualTypeWithNoGenericTypes(node, checkMode) {
60427
60476
  var contextualType = (ts.isIdentifier(node) || ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node)) &&
@@ -61464,25 +61513,7 @@ var ts;
61464
61513
  }
61465
61514
  function getTypeOfPropertyOfContextualType(type, name, nameType) {
61466
61515
  return mapType(type, function (t) {
61467
- if (t.flags & 2097152) {
61468
- var intersection = t;
61469
- var newTypes = ts.mapDefined(intersection.types, getTypeOfConcretePropertyOfContextualType);
61470
- if (newTypes.length > 0) {
61471
- return getIntersectionType(newTypes);
61472
- }
61473
- newTypes = ts.mapDefined(intersection.types, getTypeOfApplicableIndexInfoOfContextualType);
61474
- if (newTypes.length > 0) {
61475
- return getIntersectionType(newTypes);
61476
- }
61477
- return undefined;
61478
- }
61479
- var concretePropertyType = getTypeOfConcretePropertyOfContextualType(t);
61480
- if (concretePropertyType) {
61481
- return concretePropertyType;
61482
- }
61483
- return getTypeOfApplicableIndexInfoOfContextualType(t);
61484
- }, true);
61485
- function getTypeOfConcretePropertyOfContextualType(t) {
61516
+ var _a;
61486
61517
  if (isGenericMappedType(t) && !t.declaration.nameType) {
61487
61518
  var constraint = getConstraintTypeFromMappedType(t);
61488
61519
  var constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
@@ -61490,9 +61521,8 @@ var ts;
61490
61521
  if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {
61491
61522
  return substituteIndexedMappedType(t, propertyNameType);
61492
61523
  }
61493
- return undefined;
61494
61524
  }
61495
- if (t.flags & 3670016) {
61525
+ else if (t.flags & 3670016) {
61496
61526
  var prop = getPropertyOfType(t, name);
61497
61527
  if (prop) {
61498
61528
  return isCircularMappedProperty(prop) ? undefined : getTypeOfSymbol(prop);
@@ -61503,16 +61533,10 @@ var ts;
61503
61533
  return restType;
61504
61534
  }
61505
61535
  }
61536
+ return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(ts.unescapeLeadingUnderscores(name)))) === null || _a === void 0 ? void 0 : _a.type;
61506
61537
  }
61507
61538
  return undefined;
61508
- }
61509
- function getTypeOfApplicableIndexInfoOfContextualType(t) {
61510
- var _a;
61511
- if (!(t.flags & 3670016)) {
61512
- return undefined;
61513
- }
61514
- return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(ts.unescapeLeadingUnderscores(name)))) === null || _a === void 0 ? void 0 : _a.type;
61515
- }
61539
+ }, true);
61516
61540
  }
61517
61541
  function getContextualTypeForObjectLiteralMethod(node, contextFlags) {
61518
61542
  ts.Debug.assert(ts.isObjectLiteralMethod(node));
@@ -61878,7 +61902,7 @@ var ts;
61878
61902
  !leftName ? rightName :
61879
61903
  !rightName ? leftName :
61880
61904
  undefined;
61881
- var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg" + i);
61905
+ var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
61882
61906
  paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
61883
61907
  params[i] = paramSymbol;
61884
61908
  }
@@ -62272,26 +62296,15 @@ var ts;
62272
62296
  }
62273
62297
  propertiesArray.push(member);
62274
62298
  }
62275
- if (contextualTypeHasPattern) {
62276
- var rootPatternParent_1 = ts.findAncestor(contextualType.pattern.parent, function (n) {
62277
- return n.kind === 254 ||
62278
- n.kind === 221 ||
62279
- n.kind === 164;
62280
- });
62281
- var spreadOrOutsideRootObject = ts.findAncestor(node, function (n) {
62282
- return n === rootPatternParent_1 ||
62283
- n.kind === 298;
62284
- });
62285
- if (spreadOrOutsideRootObject.kind !== 298) {
62286
- for (var _d = 0, _e = getPropertiesOfType(contextualType); _d < _e.length; _d++) {
62287
- var prop = _e[_d];
62288
- if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) {
62289
- if (!(prop.flags & 16777216)) {
62290
- error(prop.valueDeclaration || prop.bindingElement, ts.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value);
62291
- }
62292
- propertiesTable.set(prop.escapedName, prop);
62293
- propertiesArray.push(prop);
62299
+ if (contextualTypeHasPattern && node.parent.kind !== 298) {
62300
+ for (var _d = 0, _e = getPropertiesOfType(contextualType); _d < _e.length; _d++) {
62301
+ var prop = _e[_d];
62302
+ if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) {
62303
+ if (!(prop.flags & 16777216)) {
62304
+ error(prop.valueDeclaration || prop.bindingElement, ts.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value);
62294
62305
  }
62306
+ propertiesTable.set(prop.escapedName, prop);
62307
+ propertiesArray.push(prop);
62295
62308
  }
62296
62309
  }
62297
62310
  }
@@ -70671,7 +70684,7 @@ var ts;
70671
70684
  function getPropertyNameForKnownSymbolName(symbolName) {
70672
70685
  var ctorType = getGlobalESSymbolConstructorSymbol(false);
70673
70686
  var uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), ts.escapeLeadingUnderscores(symbolName));
70674
- return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@" + symbolName;
70687
+ return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@".concat(symbolName);
70675
70688
  }
70676
70689
  function getIterationTypesOfIterableSlow(type, resolver, errorNode, errorOutputContainer, noCache) {
70677
70690
  var _a;
@@ -72282,7 +72295,7 @@ var ts;
72282
72295
  var importDeclaration = ts.findAncestor(node, ts.or(ts.isImportDeclaration, ts.isImportEqualsDeclaration));
72283
72296
  var moduleSpecifier = (_e = (importDeclaration && ((_d = ts.tryGetModuleSpecifierFromDeclaration(importDeclaration)) === null || _d === void 0 ? void 0 : _d.text))) !== null && _e !== void 0 ? _e : "...";
72284
72297
  var importedIdentifier = ts.unescapeLeadingUnderscores(ts.isIdentifier(errorNode) ? errorNode.escapedText : symbol.escapedName);
72285
- error(errorNode, ts.Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, importedIdentifier, "import(\"" + moduleSpecifier + "\")." + importedIdentifier);
72298
+ error(errorNode, ts.Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, importedIdentifier, "import(\"".concat(moduleSpecifier, "\").").concat(importedIdentifier));
72286
72299
  }
72287
72300
  return;
72288
72301
  }
@@ -74579,7 +74592,7 @@ var ts;
74579
74592
  return checkGrammarDecorators(node) || checkGrammarModifiers(node);
74580
74593
  }
74581
74594
  function checkGrammarDecorators(node) {
74582
- if (ts.canHaveIllegalDecorators(node) && ts.some(node.decorators)) {
74595
+ if (ts.canHaveIllegalDecorators(node) && ts.some(node.illegalDecorators)) {
74583
74596
  return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_not_valid_here);
74584
74597
  }
74585
74598
  if (!ts.canHaveDecorators(node) || !ts.hasDecorators(node)) {
@@ -77219,7 +77232,7 @@ var ts;
77219
77232
  value >= 52 && value < 62 ? 48 + value - 52 :
77220
77233
  value === 62 ? 43 :
77221
77234
  value === 63 ? 47 :
77222
- ts.Debug.fail(value + ": not a base64 value");
77235
+ ts.Debug.fail("".concat(value, ": not a base64 value"));
77223
77236
  }
77224
77237
  function base64FormatDecode(ch) {
77225
77238
  return ch >= 65 && ch <= 90 ? ch - 65 :
@@ -77292,7 +77305,7 @@ var ts;
77292
77305
  var mappings = ts.arrayFrom(decoder, processMapping);
77293
77306
  if (decoder.error !== undefined) {
77294
77307
  if (host.log) {
77295
- host.log("Encountered error while decoding sourcemap: " + decoder.error);
77308
+ host.log("Encountered error while decoding sourcemap: ".concat(decoder.error));
77296
77309
  }
77297
77310
  decodedMappings = ts.emptyArray;
77298
77311
  }
@@ -79379,7 +79392,7 @@ var ts;
79379
79392
  var substitute = typeof constantValue === "string" ? factory.createStringLiteral(constantValue) : factory.createNumericLiteral(constantValue);
79380
79393
  if (!compilerOptions.removeComments) {
79381
79394
  var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
79382
- ts.addSyntheticTrailingComment(substitute, 3, " " + safeMultiLineComment(ts.getTextOfNode(originalNode)) + " ");
79395
+ ts.addSyntheticTrailingComment(substitute, 3, " ".concat(safeMultiLineComment(ts.getTextOfNode(originalNode)), " "));
79383
79396
  }
79384
79397
  return substitute;
79385
79398
  }
@@ -80631,8 +80644,8 @@ var ts;
80631
80644
  }
80632
80645
  function createHoistedVariableForClass(name, node) {
80633
80646
  var className = getPrivateIdentifierEnvironment().className;
80634
- var prefix = className ? "_" + className : "";
80635
- var identifier = factory.createUniqueName(prefix + "_" + name, 16);
80647
+ var prefix = className ? "_".concat(className) : "";
80648
+ var identifier = factory.createUniqueName("".concat(prefix, "_").concat(name), 16);
80636
80649
  if (resolver.getNodeCheckFlags(node) & 524288) {
80637
80650
  addBlockScopedVariable(identifier);
80638
80651
  }
@@ -82943,7 +82956,7 @@ var ts;
82943
82956
  specifierSourceImports = new ts.Map();
82944
82957
  currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
82945
82958
  }
82946
- var generatedName = factory.createUniqueName("_" + name, 16 | 32 | 64);
82959
+ var generatedName = factory.createUniqueName("_".concat(name), 16 | 32 | 64);
82947
82960
  var specifier = factory.createImportSpecifier(false, factory.createIdentifier(name), generatedName);
82948
82961
  generatedName.generatedImportReference = specifier;
82949
82962
  specifierSourceImports.set(name, specifier);
@@ -83891,11 +83904,11 @@ var ts;
83891
83904
  }
83892
83905
  else {
83893
83906
  if (node.kind === 246) {
83894
- labelMarker = "break-" + label.escapedText;
83907
+ labelMarker = "break-".concat(label.escapedText);
83895
83908
  setLabeledJump(convertedLoopState, true, ts.idText(label), labelMarker);
83896
83909
  }
83897
83910
  else {
83898
- labelMarker = "continue-" + label.escapedText;
83911
+ labelMarker = "continue-".concat(label.escapedText);
83899
83912
  setLabeledJump(convertedLoopState, false, ts.idText(label), labelMarker);
83900
83913
  }
83901
83914
  }
@@ -89550,7 +89563,7 @@ var ts;
89550
89563
  return getTypeAliasDeclarationVisibilityError;
89551
89564
  }
89552
89565
  else {
89553
- return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: " + ts.Debug.formatSyntaxKind(node.kind));
89566
+ return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(ts.Debug.formatSyntaxKind(node.kind)));
89554
89567
  }
89555
89568
  function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) {
89556
89569
  if (node.kind === 254 || node.kind === 203) {
@@ -89747,7 +89760,7 @@ var ts;
89747
89760
  ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 :
89748
89761
  ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;
89749
89762
  default:
89750
- return ts.Debug.fail("Unknown parent for parameter: " + ts.Debug.formatSyntaxKind(node.parent.kind));
89763
+ return ts.Debug.fail("Unknown parent for parameter: ".concat(ts.Debug.formatSyntaxKind(node.parent.kind)));
89751
89764
  }
89752
89765
  }
89753
89766
  function getTypeParameterConstraintVisibilityError() {
@@ -90454,7 +90467,7 @@ var ts;
90454
90467
  while (ts.length(lateMarkedStatements)) {
90455
90468
  var i = lateMarkedStatements.shift();
90456
90469
  if (!ts.isLateVisibilityPaintedStatement(i)) {
90457
- return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: " + ts.Debug.formatSyntaxKind(i.kind));
90470
+ return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(ts.Debug.formatSyntaxKind(i.kind)));
90458
90471
  }
90459
90472
  var priorNeedsDeclare = needsDeclare;
90460
90473
  needsDeclare = i.parent && ts.isSourceFile(i.parent) && !(ts.isExternalModule(i.parent) && isBundledEmit);
@@ -90619,7 +90632,7 @@ var ts;
90619
90632
  return cleanup(input);
90620
90633
  return cleanup(factory.updateImportTypeNode(input, factory.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), input.assertions, input.qualifier, ts.visitNodes(input.typeArguments, visitDeclarationSubtree, ts.isTypeNode), input.isTypeOf));
90621
90634
  }
90622
- default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: " + ts.Debug.formatSyntaxKind(input.kind));
90635
+ default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: ".concat(ts.Debug.formatSyntaxKind(input.kind)));
90623
90636
  }
90624
90637
  }
90625
90638
  if (ts.isTupleTypeNode(input) && (ts.getLineAndCharacterOfPosition(currentSourceFile, input.pos).line === ts.getLineAndCharacterOfPosition(currentSourceFile, input.end).line)) {
@@ -90869,7 +90882,7 @@ var ts;
90869
90882
  var extendsClause_1 = ts.getEffectiveBaseTypeNode(input);
90870
90883
  if (extendsClause_1 && !ts.isEntityNameExpression(extendsClause_1.expression) && extendsClause_1.expression.kind !== 104) {
90871
90884
  var oldId = input.name ? ts.unescapeLeadingUnderscores(input.name.escapedText) : "default";
90872
- var newId_1 = factory.createUniqueName(oldId + "_base", 16);
90885
+ var newId_1 = factory.createUniqueName("".concat(oldId, "_base"), 16);
90873
90886
  getSymbolAccessibilityDiagnostic = function () { return ({
90874
90887
  diagnosticMessage: ts.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,
90875
90888
  errorNode: extendsClause_1,
@@ -90906,7 +90919,7 @@ var ts;
90906
90919
  }))));
90907
90920
  }
90908
90921
  }
90909
- return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: " + ts.Debug.formatSyntaxKind(input.kind));
90922
+ return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: ".concat(ts.Debug.formatSyntaxKind(input.kind)));
90910
90923
  function cleanup(node) {
90911
90924
  if (isEnclosingDeclaration(input)) {
90912
90925
  enclosingDeclaration = previousEnclosingDeclaration;
@@ -91676,13 +91689,13 @@ var ts;
91676
91689
  if (ts.fileExtensionIs(inputFileName, ".json"))
91677
91690
  return;
91678
91691
  if (js && configFile.options.sourceMap) {
91679
- addOutput(js + ".map");
91692
+ addOutput("".concat(js, ".map"));
91680
91693
  }
91681
91694
  if (ts.getEmitDeclarations(configFile.options)) {
91682
91695
  var dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory);
91683
91696
  addOutput(dts);
91684
91697
  if (configFile.options.declarationMap) {
91685
- addOutput(dts + ".map");
91698
+ addOutput("".concat(dts, ".map"));
91686
91699
  }
91687
91700
  }
91688
91701
  }
@@ -91742,7 +91755,7 @@ var ts;
91742
91755
  function getFirstProjectOutput(configFile, ignoreCase) {
91743
91756
  if (ts.outFile(configFile.options)) {
91744
91757
  var jsFilePath = getOutputPathsForBundle(configFile.options, false).jsFilePath;
91745
- return ts.Debug.checkDefined(jsFilePath, "project " + configFile.options.configFilePath + " expected to have at least one output");
91758
+ return ts.Debug.checkDefined(jsFilePath, "project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
91746
91759
  }
91747
91760
  var getCommonSourceDirectory = ts.memoize(function () { return getCommonSourceDirectoryOfConfig(configFile, ignoreCase); });
91748
91761
  for (var _a = 0, _b = configFile.fileNames; _a < _b.length; _a++) {
@@ -91761,7 +91774,7 @@ var ts;
91761
91774
  var buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options);
91762
91775
  if (buildInfoPath)
91763
91776
  return buildInfoPath;
91764
- return ts.Debug.fail("project " + configFile.options.configFilePath + " expected to have at least one output");
91777
+ return ts.Debug.fail("project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
91765
91778
  }
91766
91779
  ts.getFirstProjectOutput = getFirstProjectOutput;
91767
91780
  function emitFiles(resolver, host, targetSourceFile, _a, emitOnlyDtsFiles, onlyBuildInfo, forceDtsEmit) {
@@ -91969,7 +91982,7 @@ var ts;
91969
91982
  if (!writer.isAtStartOfLine())
91970
91983
  writer.rawWrite(newLine);
91971
91984
  sourceMapUrlPos = writer.getTextPos();
91972
- writer.writeComment("//# " + "sourceMappingURL" + "=" + sourceMappingURL);
91985
+ writer.writeComment("//# ".concat("sourceMappingURL", "=").concat(sourceMappingURL));
91973
91986
  }
91974
91987
  if (sourceMapFilePath) {
91975
91988
  var sourceMap = sourceMapGenerator.toString();
@@ -92014,7 +92027,7 @@ var ts;
92014
92027
  if (mapOptions.inlineSourceMap) {
92015
92028
  var sourceMapText = sourceMapGenerator.toString();
92016
92029
  var base64SourceMapText = ts.base64encode(ts.sys, sourceMapText);
92017
- return "data:application/json;base64," + base64SourceMapText;
92030
+ return "data:application/json;base64,".concat(base64SourceMapText);
92018
92031
  }
92019
92032
  var sourceMapFile = ts.getBaseFileName(ts.normalizeSlashes(ts.Debug.checkDefined(sourceMapFilePath)));
92020
92033
  if (mapOptions.mapRoot) {
@@ -92203,7 +92216,7 @@ var ts;
92203
92216
  return;
92204
92217
  break;
92205
92218
  default:
92206
- ts.Debug.fail("Unexpected path: " + name);
92219
+ ts.Debug.fail("Unexpected path: ".concat(name));
92207
92220
  }
92208
92221
  outputFiles.push({ name: name, text: text, writeByteOrderMark: writeByteOrderMark });
92209
92222
  },
@@ -93017,7 +93030,7 @@ var ts;
93017
93030
  return writeTokenNode(node, writeKeyword);
93018
93031
  if (ts.isTokenKind(node.kind))
93019
93032
  return writeTokenNode(node, writePunctuation);
93020
- ts.Debug.fail("Unhandled SyntaxKind: " + ts.Debug.formatSyntaxKind(node.kind) + ".");
93033
+ ts.Debug.fail("Unhandled SyntaxKind: ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
93021
93034
  }
93022
93035
  function emitMappedTypeParameter(node) {
93023
93036
  emit(node.name);
@@ -93157,14 +93170,14 @@ var ts;
93157
93170
  }
93158
93171
  }
93159
93172
  function emitPlaceholder(hint, node, snippet) {
93160
- nonEscapingWrite("${" + snippet.order + ":");
93173
+ nonEscapingWrite("${".concat(snippet.order, ":"));
93161
93174
  pipelineEmitWithHintWorker(hint, node, false);
93162
93175
  nonEscapingWrite("}");
93163
93176
  }
93164
93177
  function emitTabStop(hint, node, snippet) {
93165
- ts.Debug.assert(node.kind === 236, "A tab stop cannot be attached to a node of kind " + ts.Debug.formatSyntaxKind(node.kind) + ".");
93178
+ ts.Debug.assert(node.kind === 236, "A tab stop cannot be attached to a node of kind ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
93166
93179
  ts.Debug.assert(hint !== 5, "A tab stop cannot be attached to an embedded statement.");
93167
- nonEscapingWrite("$" + snippet.order);
93180
+ nonEscapingWrite("$".concat(snippet.order));
93168
93181
  }
93169
93182
  function emitIdentifier(node) {
93170
93183
  var writeText = node.symbol ? writeSymbol : write;
@@ -94823,17 +94836,17 @@ var ts;
94823
94836
  writeLine();
94824
94837
  }
94825
94838
  if (currentSourceFile && currentSourceFile.moduleName) {
94826
- writeComment("/// <amd-module name=\"" + currentSourceFile.moduleName + "\" />");
94839
+ writeComment("/// <amd-module name=\"".concat(currentSourceFile.moduleName, "\" />"));
94827
94840
  writeLine();
94828
94841
  }
94829
94842
  if (currentSourceFile && currentSourceFile.amdDependencies) {
94830
94843
  for (var _a = 0, _b = currentSourceFile.amdDependencies; _a < _b.length; _a++) {
94831
94844
  var dep = _b[_a];
94832
94845
  if (dep.name) {
94833
- writeComment("/// <amd-dependency name=\"" + dep.name + "\" path=\"" + dep.path + "\" />");
94846
+ writeComment("/// <amd-dependency name=\"".concat(dep.name, "\" path=\"").concat(dep.path, "\" />"));
94834
94847
  }
94835
94848
  else {
94836
- writeComment("/// <amd-dependency path=\"" + dep.path + "\" />");
94849
+ writeComment("/// <amd-dependency path=\"".concat(dep.path, "\" />"));
94837
94850
  }
94838
94851
  writeLine();
94839
94852
  }
@@ -94841,7 +94854,7 @@ var ts;
94841
94854
  for (var _c = 0, files_2 = files; _c < files_2.length; _c++) {
94842
94855
  var directive = files_2[_c];
94843
94856
  var pos = writer.getTextPos();
94844
- writeComment("/// <reference path=\"" + directive.fileName + "\" />");
94857
+ writeComment("/// <reference path=\"".concat(directive.fileName, "\" />"));
94845
94858
  if (bundleFileInfo)
94846
94859
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "reference", data: directive.fileName });
94847
94860
  writeLine();
@@ -94850,9 +94863,9 @@ var ts;
94850
94863
  var directive = types_23[_d];
94851
94864
  var pos = writer.getTextPos();
94852
94865
  var resolutionMode = directive.resolutionMode && directive.resolutionMode !== (currentSourceFile === null || currentSourceFile === void 0 ? void 0 : currentSourceFile.impliedNodeFormat)
94853
- ? "resolution-mode=\"" + (directive.resolutionMode === ts.ModuleKind.ESNext ? "import" : "require") + "\""
94866
+ ? "resolution-mode=\"".concat(directive.resolutionMode === ts.ModuleKind.ESNext ? "import" : "require", "\"")
94854
94867
  : "";
94855
- writeComment("/// <reference types=\"" + directive.fileName + "\" " + resolutionMode + "/>");
94868
+ writeComment("/// <reference types=\"".concat(directive.fileName, "\" ").concat(resolutionMode, "/>"));
94856
94869
  if (bundleFileInfo)
94857
94870
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: !directive.resolutionMode ? "type" : directive.resolutionMode === ts.ModuleKind.ESNext ? "type-import" : "type-require", data: directive.fileName });
94858
94871
  writeLine();
@@ -94860,7 +94873,7 @@ var ts;
94860
94873
  for (var _e = 0, libs_1 = libs; _e < libs_1.length; _e++) {
94861
94874
  var directive = libs_1[_e];
94862
94875
  var pos = writer.getTextPos();
94863
- writeComment("/// <reference lib=\"" + directive.fileName + "\" />");
94876
+ writeComment("/// <reference lib=\"".concat(directive.fileName, "\" />"));
94864
94877
  if (bundleFileInfo)
94865
94878
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "lib", data: directive.fileName });
94866
94879
  writeLine();
@@ -95587,9 +95600,9 @@ var ts;
95587
95600
  var textSourceNode = node.textSourceNode;
95588
95601
  if (ts.isIdentifier(textSourceNode) || ts.isNumericLiteral(textSourceNode)) {
95589
95602
  var text = ts.isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode(textSourceNode);
95590
- return jsxAttributeEscape ? "\"" + ts.escapeJsxAttributeString(text) + "\"" :
95591
- neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"" + ts.escapeString(text) + "\"" :
95592
- "\"" + ts.escapeNonAsciiString(text) + "\"";
95603
+ return jsxAttributeEscape ? "\"".concat(ts.escapeJsxAttributeString(text), "\"") :
95604
+ neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"".concat(ts.escapeString(text), "\"") :
95605
+ "\"".concat(ts.escapeNonAsciiString(text), "\"");
95593
95606
  }
95594
95607
  else {
95595
95608
  return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);
@@ -95992,8 +96005,8 @@ var ts;
95992
96005
  }
95993
96006
  function formatSynthesizedComment(comment) {
95994
96007
  return comment.kind === 3
95995
- ? "/*" + comment.text + "*/"
95996
- : "//" + comment.text;
96008
+ ? "/*".concat(comment.text, "*/")
96009
+ : "//".concat(comment.text);
95997
96010
  }
95998
96011
  function emitBodyWithDetachedComments(node, detachedRange, emitCallback) {
95999
96012
  enterComment();
@@ -96627,18 +96640,18 @@ var ts;
96627
96640
  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;
96628
96641
  var newPath = ts.removeIgnoredPath(fileOrDirectoryPath);
96629
96642
  if (!newPath) {
96630
- writeLog("Project: " + configFileName + " Detected ignored path: " + fileOrDirectory);
96643
+ writeLog("Project: ".concat(configFileName, " Detected ignored path: ").concat(fileOrDirectory));
96631
96644
  return true;
96632
96645
  }
96633
96646
  fileOrDirectoryPath = newPath;
96634
96647
  if (fileOrDirectoryPath === watchedDirPath)
96635
96648
  return false;
96636
96649
  if (ts.hasExtension(fileOrDirectoryPath) && !ts.isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {
96637
- writeLog("Project: " + configFileName + " Detected file add/remove of non supported extension: " + fileOrDirectory);
96650
+ writeLog("Project: ".concat(configFileName, " Detected file add/remove of non supported extension: ").concat(fileOrDirectory));
96638
96651
  return true;
96639
96652
  }
96640
96653
  if (ts.isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {
96641
- writeLog("Project: " + configFileName + " Detected excluded file: " + fileOrDirectory);
96654
+ writeLog("Project: ".concat(configFileName, " Detected excluded file: ").concat(fileOrDirectory));
96642
96655
  return true;
96643
96656
  }
96644
96657
  if (!program)
@@ -96657,7 +96670,7 @@ var ts;
96657
96670
  var builderProgram = !realProgram && !ts.isArray(program) ? program : undefined;
96658
96671
  if (hasSourceFile((filePathWithoutExtension + ".ts")) ||
96659
96672
  hasSourceFile((filePathWithoutExtension + ".tsx"))) {
96660
- writeLog("Project: " + configFileName + " Detected output file: " + fileOrDirectory);
96673
+ writeLog("Project: ".concat(configFileName, " Detected output file: ").concat(fileOrDirectory));
96661
96674
  return true;
96662
96675
  }
96663
96676
  return false;
@@ -96725,36 +96738,36 @@ var ts;
96725
96738
  host.useCaseSensitiveFileNames();
96726
96739
  }
96727
96740
  function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
96728
- log("ExcludeWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
96741
+ log("ExcludeWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
96729
96742
  return {
96730
- close: function () { return log("ExcludeWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)); }
96743
+ close: function () { return log("ExcludeWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo))); }
96731
96744
  };
96732
96745
  }
96733
96746
  function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
96734
- log("FileWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
96747
+ log("FileWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
96735
96748
  var watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);
96736
96749
  return {
96737
96750
  close: function () {
96738
- log("FileWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
96751
+ log("FileWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
96739
96752
  watcher.close();
96740
96753
  }
96741
96754
  };
96742
96755
  }
96743
96756
  function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
96744
- var watchInfo = "DirectoryWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
96757
+ var watchInfo = "DirectoryWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
96745
96758
  log(watchInfo);
96746
96759
  var start = ts.timestamp();
96747
96760
  var watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);
96748
96761
  var elapsed = ts.timestamp() - start;
96749
- log("Elapsed:: " + elapsed + "ms " + watchInfo);
96762
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
96750
96763
  return {
96751
96764
  close: function () {
96752
- var watchInfo = "DirectoryWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
96765
+ var watchInfo = "DirectoryWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
96753
96766
  log(watchInfo);
96754
96767
  var start = ts.timestamp();
96755
96768
  watcher.close();
96756
96769
  var elapsed = ts.timestamp() - start;
96757
- log("Elapsed:: " + elapsed + "ms " + watchInfo);
96770
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
96758
96771
  }
96759
96772
  };
96760
96773
  }
@@ -96764,16 +96777,16 @@ var ts;
96764
96777
  for (var _i = 0; _i < arguments.length; _i++) {
96765
96778
  args[_i] = arguments[_i];
96766
96779
  }
96767
- var triggerredInfo = (key === "watchFile" ? "FileWatcher" : "DirectoryWatcher") + ":: Triggered with " + args[0] + " " + (args[1] !== undefined ? args[1] : "") + ":: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
96780
+ 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));
96768
96781
  log(triggerredInfo);
96769
96782
  var start = ts.timestamp();
96770
96783
  cb.call.apply(cb, __spreadArray([undefined], args, false));
96771
96784
  var elapsed = ts.timestamp() - start;
96772
- log("Elapsed:: " + elapsed + "ms " + triggerredInfo);
96785
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(triggerredInfo));
96773
96786
  }, flags, options, detailInfo1, detailInfo2); };
96774
96787
  }
96775
96788
  function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo) {
96776
- return "WatchInfo: " + file + " " + flags + " " + JSON.stringify(options) + " " + (getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : detailInfo1 + " " + detailInfo2);
96789
+ return "WatchInfo: ".concat(file, " ").concat(flags, " ").concat(JSON.stringify(options), " ").concat(getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : "".concat(detailInfo1, " ").concat(detailInfo2));
96777
96790
  }
96778
96791
  }
96779
96792
  ts.getWatchFactory = getWatchFactory;
@@ -97040,12 +97053,12 @@ var ts;
97040
97053
  }
97041
97054
  ts.formatDiagnostics = formatDiagnostics;
97042
97055
  function formatDiagnostic(diagnostic, host) {
97043
- var errorMessage = ts.diagnosticCategoryName(diagnostic) + " TS" + diagnostic.code + ": " + flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()) + host.getNewLine();
97056
+ var errorMessage = "".concat(ts.diagnosticCategoryName(diagnostic), " TS").concat(diagnostic.code, ": ").concat(flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine())).concat(host.getNewLine());
97044
97057
  if (diagnostic.file) {
97045
97058
  var _a = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start), line = _a.line, character = _a.character;
97046
97059
  var fileName = diagnostic.file.fileName;
97047
97060
  var relativeFileName = ts.convertToRelativePath(fileName, host.getCurrentDirectory(), function (fileName) { return host.getCanonicalFileName(fileName); });
97048
- return relativeFileName + "(" + (line + 1) + "," + (character + 1) + "): " + errorMessage;
97061
+ return "".concat(relativeFileName, "(").concat(line + 1, ",").concat(character + 1, "): ") + errorMessage;
97049
97062
  }
97050
97063
  return errorMessage;
97051
97064
  }
@@ -97123,9 +97136,9 @@ var ts;
97123
97136
  var output = "";
97124
97137
  output += color(relativeFileName, ForegroundColorEscapeSequences.Cyan);
97125
97138
  output += ":";
97126
- output += color("" + (firstLine + 1), ForegroundColorEscapeSequences.Yellow);
97139
+ output += color("".concat(firstLine + 1), ForegroundColorEscapeSequences.Yellow);
97127
97140
  output += ":";
97128
- output += color("" + (firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
97141
+ output += color("".concat(firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
97129
97142
  return output;
97130
97143
  }
97131
97144
  ts.formatLocation = formatLocation;
@@ -97139,7 +97152,7 @@ var ts;
97139
97152
  output += " - ";
97140
97153
  }
97141
97154
  output += formatColorAndReset(ts.diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category));
97142
- output += formatColorAndReset(" TS" + diagnostic.code + ": ", ForegroundColorEscapeSequences.Grey);
97155
+ output += formatColorAndReset(" TS".concat(diagnostic.code, ": "), ForegroundColorEscapeSequences.Grey);
97143
97156
  output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine());
97144
97157
  if (diagnostic.file) {
97145
97158
  output += host.getNewLine();
@@ -97200,7 +97213,7 @@ var ts;
97200
97213
  var result = void 0;
97201
97214
  var mode = getModeForFileReference(name, containingFileMode);
97202
97215
  var strName = ts.isString(name) ? name : name.fileName.toLowerCase();
97203
- var cacheKey = mode !== undefined ? mode + "|" + strName : strName;
97216
+ var cacheKey = mode !== undefined ? "".concat(mode, "|").concat(strName) : strName;
97204
97217
  if (cache.has(cacheKey)) {
97205
97218
  result = cache.get(cacheKey);
97206
97219
  }
@@ -97295,7 +97308,7 @@ var ts;
97295
97308
  var result = void 0;
97296
97309
  var mode = getModeForResolutionAtIndex(containingFile, i);
97297
97310
  i++;
97298
- var cacheKey = mode !== undefined ? mode + "|" + name : name;
97311
+ var cacheKey = mode !== undefined ? "".concat(mode, "|").concat(name) : name;
97299
97312
  if (cache.has(cacheKey)) {
97300
97313
  result = cache.get(cacheKey);
97301
97314
  }
@@ -99239,7 +99252,7 @@ var ts;
99239
99252
  path += (i === 2 ? "/" : "-") + components[i];
99240
99253
  i++;
99241
99254
  }
99242
- var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_" + libFileName + "__.ts");
99255
+ var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_".concat(libFileName, "__.ts"));
99243
99256
  var localOverrideModuleResult = ts.resolveModuleName("@typescript/lib-" + path, resolveFrom, { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, moduleResolutionCache);
99244
99257
  if (localOverrideModuleResult === null || localOverrideModuleResult === void 0 ? void 0 : localOverrideModuleResult.resolvedModule) {
99245
99258
  return localOverrideModuleResult.resolvedModule.resolvedFileName;
@@ -99993,10 +100006,10 @@ var ts;
99993
100006
  }
99994
100007
  function directoryExistsIfProjectReferenceDeclDir(dir) {
99995
100008
  var dirPath = host.toPath(dir);
99996
- var dirPathWithTrailingDirectorySeparator = "" + dirPath + ts.directorySeparator;
100009
+ var dirPathWithTrailingDirectorySeparator = "".concat(dirPath).concat(ts.directorySeparator);
99997
100010
  return ts.forEachKey(setOfDeclarationDirectories, function (declDirPath) { return dirPath === declDirPath ||
99998
100011
  ts.startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) ||
99999
- ts.startsWith(dirPath, declDirPath + "/"); });
100012
+ ts.startsWith(dirPath, "".concat(declDirPath, "/")); });
100000
100013
  }
100001
100014
  function handleDirectoryCouldBeSymlink(directory) {
100002
100015
  var _a;
@@ -100044,7 +100057,7 @@ var ts;
100044
100057
  var result = fileOrDirectoryExistsUsingSource(fileOrDirectoryPath.replace(directoryPath, symlinkedDirectory.realPath));
100045
100058
  if (isFile && result) {
100046
100059
  var absolutePath = ts.getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirectory());
100047
- symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "" + symlinkedDirectory.real + absolutePath.replace(new RegExp(directoryPath, "i"), ""));
100060
+ symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "".concat(symlinkedDirectory.real).concat(absolutePath.replace(new RegExp(directoryPath, "i"), "")));
100048
100061
  }
100049
100062
  return result;
100050
100063
  }) || false;
@@ -100405,7 +100418,7 @@ var ts;
100405
100418
  var latestSignature;
100406
100419
  if (!sourceFile.isDeclarationFile && !useFileVersionAsSignature) {
100407
100420
  programOfThisState.emit(sourceFile, function (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) {
100408
- ts.Debug.assert(ts.isDeclarationFileName(fileName), "File extension for signature expected to be dts: Got:: " + fileName);
100421
+ ts.Debug.assert(ts.isDeclarationFileName(fileName), "File extension for signature expected to be dts: Got:: ".concat(fileName));
100409
100422
  latestSignature = ts.computeSignatureWithDiagnostics(sourceFile, text, computeHash, getCanonicalFileName, data);
100410
100423
  if (latestSignature !== prevSignature) {
100411
100424
  updateExportedModules(state, sourceFile, sourceFiles[0].exportedModulesFromDeclarationEmit);
@@ -101172,7 +101185,7 @@ var ts;
101172
101185
  var sourceFileDirectory;
101173
101186
  if ((_a = data === null || data === void 0 ? void 0 : data.diagnostics) === null || _a === void 0 ? void 0 : _a.length) {
101174
101187
  text += data.diagnostics.map(function (diagnostic) {
101175
- return "" + locationInfo(diagnostic) + ts.DiagnosticCategory[diagnostic.category] + diagnostic.code + ": " + flattenDiagnosticMessageText(diagnostic.messageText);
101188
+ return "".concat(locationInfo(diagnostic)).concat(ts.DiagnosticCategory[diagnostic.category]).concat(diagnostic.code, ": ").concat(flattenDiagnosticMessageText(diagnostic.messageText));
101176
101189
  }).join("\n");
101177
101190
  }
101178
101191
  return (computeHash !== null && computeHash !== void 0 ? computeHash : ts.generateDjb2Hash)(text);
@@ -101187,10 +101200,10 @@ var ts;
101187
101200
  }
101188
101201
  function locationInfo(diagnostic) {
101189
101202
  if (diagnostic.file.resolvedPath === sourceFile.resolvedPath)
101190
- return "(" + diagnostic.start + "," + diagnostic.length + ")";
101203
+ return "(".concat(diagnostic.start, ",").concat(diagnostic.length, ")");
101191
101204
  if (sourceFileDirectory === undefined)
101192
101205
  sourceFileDirectory = ts.getDirectoryPath(sourceFile.resolvedPath);
101193
- return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(sourceFileDirectory, diagnostic.file.resolvedPath, getCanonicalFileName)) + "(" + diagnostic.start + "," + diagnostic.length + ")";
101206
+ return "".concat(ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(sourceFileDirectory, diagnostic.file.resolvedPath, getCanonicalFileName)), "(").concat(diagnostic.start, ",").concat(diagnostic.length, ")");
101194
101207
  }
101195
101208
  }
101196
101209
  ts.computeSignatureWithDiagnostics = computeSignatureWithDiagnostics;
@@ -101973,7 +101986,7 @@ var ts;
101973
101986
  failedLookupLocation = ts.isRootedDiskPath(failedLookupLocation) ? ts.normalizePath(failedLookupLocation) : ts.getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory());
101974
101987
  var failedLookupPathSplit = failedLookupLocationPath.split(ts.directorySeparator);
101975
101988
  var failedLookupSplit = failedLookupLocation.split(ts.directorySeparator);
101976
- ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: " + failedLookupLocation + " failedLookupLocationPath: " + failedLookupLocationPath);
101989
+ ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: ".concat(failedLookupLocation, " failedLookupLocationPath: ").concat(failedLookupLocationPath));
101977
101990
  if (failedLookupPathSplit.length > rootSplitLength + 1) {
101978
101991
  return {
101979
101992
  dir: failedLookupSplit.slice(0, rootSplitLength + 1).join(ts.directorySeparator),
@@ -103053,7 +103066,7 @@ var ts;
103053
103066
  }
103054
103067
  function getJSExtensionForFile(fileName, options) {
103055
103068
  var _a;
103056
- return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension " + ts.extensionFromPath(fileName) + " is unsupported:: FileName:: " + fileName);
103069
+ return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension ".concat(ts.extensionFromPath(fileName), " is unsupported:: FileName:: ").concat(fileName));
103057
103070
  }
103058
103071
  function tryGetJSExtensionForFile(fileName, options) {
103059
103072
  var ext = ts.tryGetExtensionFromPath(fileName);
@@ -103143,8 +103156,8 @@ var ts;
103143
103156
  return pretty ?
103144
103157
  function (diagnostic, newLine, options) {
103145
103158
  clearScreenIfNotWatchingForFileChanges(system, diagnostic, options);
103146
- var output = "[" + ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + "] ";
103147
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (newLine + newLine);
103159
+ var output = "[".concat(ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ");
103160
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(newLine + newLine);
103148
103161
  system.write(output);
103149
103162
  } :
103150
103163
  function (diagnostic, newLine, options) {
@@ -103152,8 +103165,8 @@ var ts;
103152
103165
  if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) {
103153
103166
  output += newLine;
103154
103167
  }
103155
- output += getLocaleTimeString(system) + " - ";
103156
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + getPlainDiagnosticFollowingNewLines(diagnostic, newLine);
103168
+ output += "".concat(getLocaleTimeString(system), " - ");
103169
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(getPlainDiagnosticFollowingNewLines(diagnostic, newLine));
103157
103170
  system.write(output);
103158
103171
  };
103159
103172
  }
@@ -103175,7 +103188,7 @@ var ts;
103175
103188
  .map(function (errorDiagnostic) {
103176
103189
  if (errorDiagnostic.file === undefined)
103177
103190
  return;
103178
- return "" + errorDiagnostic.file.fileName;
103191
+ return "".concat(errorDiagnostic.file.fileName);
103179
103192
  });
103180
103193
  return filesInError.map(function (fileName) {
103181
103194
  var diagnosticForFileName = ts.find(diagnostics, function (diagnostic) {
@@ -103208,7 +103221,7 @@ var ts;
103208
103221
  if (errorCount === 0)
103209
103222
  return "";
103210
103223
  var nonNilFiles = filesInError.filter(function (fileInError) { return fileInError !== undefined; });
103211
- var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return fileInError.fileName + ":" + fileInError.line; })
103224
+ var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return "".concat(fileInError.fileName, ":").concat(fileInError.line); })
103212
103225
  .filter(function (value, index, self) { return self.indexOf(value) === index; });
103213
103226
  var firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory());
103214
103227
  var d = errorCount === 1 ?
@@ -103221,7 +103234,7 @@ var ts;
103221
103234
  ts.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1 :
103222
103235
  ts.Diagnostics.Found_0_errors_in_1_files, errorCount, distinctFileNamesWithLines.length === 1 ? firstFileReference : distinctFileNamesWithLines.length);
103223
103236
  var suffix = distinctFileNamesWithLines.length > 1 ? createTabularErrorsDisplay(nonNilFiles, host) : "";
103224
- return "" + newLine + ts.flattenDiagnosticMessageText(d.messageText, newLine) + newLine + newLine + suffix;
103237
+ return "".concat(newLine).concat(ts.flattenDiagnosticMessageText(d.messageText, newLine)).concat(newLine).concat(newLine).concat(suffix);
103225
103238
  }
103226
103239
  ts.getErrorSummaryText = getErrorSummaryText;
103227
103240
  function createTabularErrorsDisplay(filesInError, host) {
@@ -103244,7 +103257,7 @@ var ts;
103244
103257
  " ".repeat(leftPaddingGoal - errorCountDigitsLength)
103245
103258
  : "";
103246
103259
  var fileRef = prettyPathForFileError(file, host.getCurrentDirectory());
103247
- tabularData += "" + leftPadding + errorCount + " " + fileRef + "\n";
103260
+ tabularData += "".concat(leftPadding).concat(errorCount, " ").concat(fileRef, "\n");
103248
103261
  });
103249
103262
  return tabularData;
103250
103263
  }
@@ -103271,9 +103284,9 @@ var ts;
103271
103284
  var relativeFileName = function (fileName) { return ts.convertToRelativePath(fileName, program.getCurrentDirectory(), getCanonicalFileName); };
103272
103285
  for (var _i = 0, _c = program.getSourceFiles(); _i < _c.length; _i++) {
103273
103286
  var file = _c[_i];
103274
- write("" + toFileName(file, relativeFileName));
103275
- (_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" " + fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText); });
103276
- (_b = explainIfFileIsRedirectAndImpliedFormat(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" " + d.messageText); });
103287
+ write("".concat(toFileName(file, relativeFileName)));
103288
+ (_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" ".concat(fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText)); });
103289
+ (_b = explainIfFileIsRedirectAndImpliedFormat(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" ".concat(d.messageText)); });
103277
103290
  }
103278
103291
  }
103279
103292
  ts.explainFiles = explainFiles;
@@ -103333,7 +103346,7 @@ var ts;
103333
103346
  if (isJsonFile && !ts.endsWith(includeSpec, ".json"))
103334
103347
  return false;
103335
103348
  var pattern = ts.getPatternFromSpec(includeSpec, basePath, "files");
103336
- return !!pattern && ts.getRegexFromPattern("(" + pattern + ")$", useCaseSensitiveFileNames).test(fileName);
103349
+ return !!pattern && ts.getRegexFromPattern("(".concat(pattern, ")$"), useCaseSensitiveFileNames).test(fileName);
103337
103350
  });
103338
103351
  }
103339
103352
  ts.getMatchedIncludeSpec = getMatchedIncludeSpec;
@@ -103342,7 +103355,7 @@ var ts;
103342
103355
  var options = program.getCompilerOptions();
103343
103356
  if (ts.isReferencedFile(reason)) {
103344
103357
  var referenceLocation = ts.getReferencedFileLocation(function (path) { return program.getSourceFileByPath(path); }, reason);
103345
- var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"" + referenceLocation.text + "\"";
103358
+ var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"".concat(referenceLocation.text, "\"");
103346
103359
  var message = void 0;
103347
103360
  ts.Debug.assert(ts.isReferenceFileLocation(referenceLocation) || reason.kind === ts.FileIncludeKind.Import, "Only synthetic references are imports");
103348
103361
  switch (reason.kind) {
@@ -103455,7 +103468,7 @@ var ts;
103455
103468
  var currentDir_1 = program.getCurrentDirectory();
103456
103469
  ts.forEach(emittedFiles, function (file) {
103457
103470
  var filepath = ts.getNormalizedAbsolutePath(file, currentDir_1);
103458
- write("TSFILE: " + filepath);
103471
+ write("TSFILE: ".concat(filepath));
103459
103472
  });
103460
103473
  listFiles(program, write);
103461
103474
  }
@@ -103778,7 +103791,7 @@ var ts;
103778
103791
  }
103779
103792
  var _b = ts.createWatchFactory(host, compilerOptions), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory, writeLog = _b.writeLog;
103780
103793
  var getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
103781
- writeLog("Current directory: " + currentDirectory + " CaseSensitiveFileNames: " + useCaseSensitiveFileNames);
103794
+ writeLog("Current directory: ".concat(currentDirectory, " CaseSensitiveFileNames: ").concat(useCaseSensitiveFileNames));
103782
103795
  var configFileWatcher;
103783
103796
  if (configFileName) {
103784
103797
  configFileWatcher = watchFile(configFileName, scheduleProgramReload, ts.PollingInterval.High, watchOptions, ts.WatchType.ConfigFile);
@@ -103924,10 +103937,10 @@ var ts;
103924
103937
  }
103925
103938
  function createNewProgram(hasInvalidatedResolution) {
103926
103939
  writeLog("CreatingProgramWith::");
103927
- writeLog(" roots: " + JSON.stringify(rootFileNames));
103928
- writeLog(" options: " + JSON.stringify(compilerOptions));
103940
+ writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
103941
+ writeLog(" options: ".concat(JSON.stringify(compilerOptions)));
103929
103942
  if (projectReferences)
103930
- writeLog(" projectReferences: " + JSON.stringify(projectReferences));
103943
+ writeLog(" projectReferences: ".concat(JSON.stringify(projectReferences)));
103931
103944
  var needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !getCurrentProgram();
103932
103945
  hasChangedCompilerOptions = false;
103933
103946
  hasChangedConfigFileParsingErrors = false;
@@ -104062,7 +104075,7 @@ var ts;
104062
104075
  return resolutionCache.invalidateResolutionsOfFailedLookupLocations();
104063
104076
  }
104064
104077
  var pending = clearInvalidateResolutionsOfFailedLookupLocations();
104065
- writeLog("Scheduling invalidateFailedLookup" + (pending ? ", Cancelled earlier one" : ""));
104078
+ writeLog("Scheduling invalidateFailedLookup".concat(pending ? ", Cancelled earlier one" : ""));
104066
104079
  timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250);
104067
104080
  }
104068
104081
  function invalidateResolutionsOfFailedLookup() {
@@ -104119,7 +104132,7 @@ var ts;
104119
104132
  synchronizeProgram();
104120
104133
  }
104121
104134
  function reloadConfigFile() {
104122
- writeLog("Reloading config file: " + configFileName);
104135
+ writeLog("Reloading config file: ".concat(configFileName));
104123
104136
  reloadLevel = ts.ConfigFileProgramReloadLevel.None;
104124
104137
  if (cachedDirectoryStructureHost) {
104125
104138
  cachedDirectoryStructureHost.clearCache();
@@ -104157,7 +104170,7 @@ var ts;
104157
104170
  return config.parsedCommandLine;
104158
104171
  }
104159
104172
  }
104160
- writeLog("Loading config file: " + configFileName);
104173
+ writeLog("Loading config file: ".concat(configFileName));
104161
104174
  var parsedCommandLine = host.getParsedCommandLine ?
104162
104175
  host.getParsedCommandLine(configFileName) :
104163
104176
  getParsedCommandLineFromConfigFileHost(configFileName);
@@ -104400,8 +104413,8 @@ var ts;
104400
104413
  ts.getBuildOrderFromAnyBuildOrder = getBuildOrderFromAnyBuildOrder;
104401
104414
  function createBuilderStatusReporter(system, pretty) {
104402
104415
  return function (diagnostic) {
104403
- var output = pretty ? "[" + ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + "] " : ts.getLocaleTimeString(system) + " - ";
104404
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (system.newLine + system.newLine);
104416
+ var output = pretty ? "[".concat(ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ") : "".concat(ts.getLocaleTimeString(system), " - ");
104417
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(system.newLine + system.newLine);
104405
104418
  system.write(output);
104406
104419
  };
104407
104420
  }
@@ -105178,7 +105191,7 @@ var ts;
105178
105191
  function listEmittedFile(_a, proj, file) {
105179
105192
  var write = _a.write;
105180
105193
  if (write && proj.options.listEmittedFiles) {
105181
- write("TSFILE: " + file);
105194
+ write("TSFILE: ".concat(file));
105182
105195
  }
105183
105196
  }
105184
105197
  function getOldProgram(_a, proj, parsed) {
@@ -105207,7 +105220,7 @@ var ts;
105207
105220
  function buildErrors(state, resolvedPath, program, config, diagnostics, buildResult, errorType) {
105208
105221
  var canEmitBuildInfo = program && !ts.outFile(program.getCompilerOptions());
105209
105222
  reportAndStoreErrors(state, resolvedPath, diagnostics);
105210
- state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: errorType + " errors" });
105223
+ state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: "".concat(errorType, " errors") });
105211
105224
  if (canEmitBuildInfo)
105212
105225
  return { buildResult: buildResult, step: BuildStep.EmitBuildInfo };
105213
105226
  afterProgramDone(state, program, config);
@@ -105410,7 +105423,7 @@ var ts;
105410
105423
  if (inputTime === ts.missingFileModifiedTime) {
105411
105424
  return {
105412
105425
  type: ts.UpToDateStatusType.Unbuildable,
105413
- reason: inputFile + " does not exist"
105426
+ reason: "".concat(inputFile, " does not exist")
105414
105427
  };
105415
105428
  }
105416
105429
  if (buildInfoTime && buildInfoTime < inputTime) {
@@ -105468,9 +105481,7 @@ var ts;
105468
105481
  }
105469
105482
  }
105470
105483
  }
105471
- var seenRefs = buildInfoPath ? new ts.Set() : undefined;
105472
105484
  var buildInfoCacheEntry = state.buildInfoCache.get(resolvedPath);
105473
- seenRefs === null || seenRefs === void 0 ? void 0 : seenRefs.add(resolvedPath);
105474
105485
  var pseudoUpToDate = false;
105475
105486
  var usesPrepend = false;
105476
105487
  var upstreamChangedProject;
@@ -105481,7 +105492,7 @@ var ts;
105481
105492
  if (refStatus.newestInputFileTime && refStatus.newestInputFileTime <= oldestOutputFileTime) {
105482
105493
  continue;
105483
105494
  }
105484
- if (buildInfoCacheEntry && hasSameBuildInfo(state, buildInfoCacheEntry, seenRefs, resolvedConfig, resolvedRefPath)) {
105495
+ if (buildInfoCacheEntry && hasSameBuildInfo(state, buildInfoCacheEntry, resolvedRefPath)) {
105485
105496
  return {
105486
105497
  type: ts.UpToDateStatusType.OutOfDateWithUpstream,
105487
105498
  outOfDateOutputFileName: buildInfoPath,
@@ -105532,24 +105543,9 @@ var ts;
105532
105543
  oldestOutputFileName: oldestOutputFileName
105533
105544
  };
105534
105545
  }
105535
- function hasSameBuildInfo(state, buildInfoCacheEntry, seenRefs, resolvedConfig, resolvedRefPath) {
105536
- if (seenRefs.has(resolvedRefPath))
105537
- return false;
105538
- seenRefs.add(resolvedRefPath);
105546
+ function hasSameBuildInfo(state, buildInfoCacheEntry, resolvedRefPath) {
105539
105547
  var refBuildInfo = state.buildInfoCache.get(resolvedRefPath);
105540
- if (refBuildInfo.path === buildInfoCacheEntry.path)
105541
- return true;
105542
- if (resolvedConfig.projectReferences) {
105543
- for (var _i = 0, _a = resolvedConfig.projectReferences; _i < _a.length; _i++) {
105544
- var ref = _a[_i];
105545
- var resolvedRef = ts.resolveProjectReferencePath(ref);
105546
- var resolvedRefPath_1 = toResolvedConfigFilePath(state, resolvedRef);
105547
- var resolvedConfig_1 = parseConfigFile(state, resolvedRef, resolvedRefPath_1);
105548
- if (hasSameBuildInfo(state, buildInfoCacheEntry, seenRefs, resolvedConfig_1, resolvedRefPath_1))
105549
- return true;
105550
- }
105551
- }
105552
- return false;
105548
+ return refBuildInfo.path === buildInfoCacheEntry.path;
105553
105549
  }
105554
105550
  function getUpToDateStatus(state, project, resolvedPath) {
105555
105551
  if (project === undefined) {
@@ -105750,7 +105746,7 @@ var ts;
105750
105746
  }
105751
105747
  }
105752
105748
  if (filesToDelete) {
105753
- reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return "\r\n * " + f; }).join(""));
105749
+ 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(""));
105754
105750
  }
105755
105751
  return ts.ExitStatus.Success;
105756
105752
  }
@@ -106110,7 +106106,7 @@ var ts;
106110
106106
  };
106111
106107
  }
106112
106108
  function bold(str) {
106113
- return "\u001B[1m" + str + "\u001B[22m";
106109
+ return "\u001B[1m".concat(str, "\u001B[22m");
106114
106110
  }
106115
106111
  var isWindows = sys.getEnvironmentVariable("OS") && ts.stringContains(sys.getEnvironmentVariable("OS").toLowerCase(), "windows");
106116
106112
  var isWindowsTerminal = sys.getEnvironmentVariable("WT_SESSION");
@@ -106119,19 +106115,19 @@ var ts;
106119
106115
  if (isWindows && !isWindowsTerminal && !isVSCode) {
106120
106116
  return brightWhite(str);
106121
106117
  }
106122
- return "\u001B[94m" + str + "\u001B[39m";
106118
+ return "\u001B[94m".concat(str, "\u001B[39m");
106123
106119
  }
106124
106120
  var supportsRicherColors = sys.getEnvironmentVariable("COLORTERM") === "truecolor" || sys.getEnvironmentVariable("TERM") === "xterm-256color";
106125
106121
  function blueBackground(str) {
106126
106122
  if (supportsRicherColors) {
106127
- return "\u001B[48;5;68m" + str + "\u001B[39;49m";
106123
+ return "\u001B[48;5;68m".concat(str, "\u001B[39;49m");
106128
106124
  }
106129
106125
  else {
106130
- return "\u001B[44m" + str + "\u001B[39;49m";
106126
+ return "\u001B[44m".concat(str, "\u001B[39;49m");
106131
106127
  }
106132
106128
  }
106133
106129
  function brightWhite(str) {
106134
- return "\u001B[97m" + str + "\u001B[39m";
106130
+ return "\u001B[97m".concat(str, "\u001B[39m");
106135
106131
  }
106136
106132
  return {
106137
106133
  bold: bold,
@@ -106141,7 +106137,7 @@ var ts;
106141
106137
  };
106142
106138
  }
106143
106139
  function getDisplayNameTextOfOption(option) {
106144
- return "--" + option.name + (option.shortName ? ", -" + option.shortName : "");
106140
+ return "--".concat(option.name).concat(option.shortName ? ", -".concat(option.shortName) : "");
106145
106141
  }
106146
106142
  function generateOptionOutput(sys, option, rightAlignOfLeft, leftAlignOfRight) {
106147
106143
  var _a, _b;
@@ -106178,13 +106174,13 @@ var ts;
106178
106174
  text.push(sys.newLine);
106179
106175
  if (showAdditionalInfoOutput(valueCandidates, option)) {
106180
106176
  if (valueCandidates) {
106181
- text.push(valueCandidates.valueType + " " + valueCandidates.possibleValues);
106177
+ text.push("".concat(valueCandidates.valueType, " ").concat(valueCandidates.possibleValues));
106182
106178
  }
106183
106179
  if (defaultValueDescription) {
106184
106180
  if (valueCandidates)
106185
106181
  text.push(sys.newLine);
106186
106182
  var diagType = ts.getDiagnosticText(ts.Diagnostics.default_Colon);
106187
- text.push(diagType + " " + defaultValueDescription);
106183
+ text.push("".concat(diagType, " ").concat(defaultValueDescription));
106188
106184
  }
106189
106185
  text.push(sys.newLine);
106190
106186
  }
@@ -106233,7 +106229,7 @@ var ts;
106233
106229
  }
106234
106230
  var curRight = remainRight.substr(0, rightCharacterNumber);
106235
106231
  remainRight = remainRight.slice(rightCharacterNumber);
106236
- res.push("" + curLeft + curRight);
106232
+ res.push("".concat(curLeft).concat(curRight));
106237
106233
  isFirstLine = false;
106238
106234
  }
106239
106235
  return res;
@@ -106334,7 +106330,7 @@ var ts;
106334
106330
  categoryMap.set(curCategory, optionsOfCurCategory);
106335
106331
  }
106336
106332
  categoryMap.forEach(function (value, key) {
106337
- res.push("### " + key + sys.newLine + sys.newLine);
106333
+ res.push("### ".concat(key).concat(sys.newLine).concat(sys.newLine));
106338
106334
  res = __spreadArray(__spreadArray([], res, true), generateGroupOptionOutput(sys, value), true);
106339
106335
  });
106340
106336
  if (afterOptionsDescription) {
@@ -106344,7 +106340,7 @@ var ts;
106344
106340
  }
106345
106341
  function printEasyHelp(sys, simpleOptions) {
106346
106342
  var colors = createColors(sys);
106347
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
106343
+ 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);
106348
106344
  output.push(colors.bold(ts.getDiagnosticText(ts.Diagnostics.COMMON_COMMANDS)) + sys.newLine + sys.newLine);
106349
106345
  example("tsc", ts.Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
106350
106346
  example("tsc app.ts util.ts", ts.Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
@@ -106370,7 +106366,7 @@ var ts;
106370
106366
  }
106371
106367
  }
106372
106368
  function printAllHelp(sys, compilerOptions, buildOptions, watchOptions) {
106373
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
106369
+ 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);
106374
106370
  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/tsc")), true);
106375
106371
  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);
106376
106372
  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);
@@ -106380,7 +106376,7 @@ var ts;
106380
106376
  }
106381
106377
  }
106382
106378
  function printBuildHelp(sys, buildOptions) {
106383
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
106379
+ 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);
106384
106380
  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);
106385
106381
  for (var _i = 0, output_3 = output; _i < output_3.length; _i++) {
106386
106382
  var line = output_3[_i];
@@ -106761,7 +106757,7 @@ var ts;
106761
106757
  reportCountStatistic("Subtype cache size", caches.subtype);
106762
106758
  reportCountStatistic("Strict subtype cache size", caches.strictSubtype);
106763
106759
  if (isPerformanceEnabled) {
106764
- ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic(name + " time", duration); });
106760
+ ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic("".concat(name, " time"), duration); });
106765
106761
  }
106766
106762
  }
106767
106763
  else if (isPerformanceEnabled) {
@@ -106833,7 +106829,7 @@ var ts;
106833
106829
  // enable deprecation logging
106834
106830
  ts.Debug.loggingHost = {
106835
106831
  log: function (_level, s) {
106836
- ts.sys.write("" + (s || "") + ts.sys.newLine);
106832
+ ts.sys.write("".concat(s || "").concat(ts.sys.newLine));
106837
106833
  }
106838
106834
  };
106839
106835
  if (ts.Debug.isDebugging) {