@angular/compiler-cli 13.1.1 → 13.2.0-next.2

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.
Files changed (86) hide show
  1. package/bundles/{chunk-TI3THPMZ.js → chunk-676MI6WZ.js} +39 -60
  2. package/bundles/chunk-676MI6WZ.js.map +6 -0
  3. package/bundles/{chunk-X46CEINM.js → chunk-7PY7XEFH.js} +9 -9
  4. package/bundles/chunk-7PY7XEFH.js.map +6 -0
  5. package/bundles/{chunk-AUFNJGZ6.js → chunk-A5PL3TE6.js} +9 -9
  6. package/bundles/chunk-A5PL3TE6.js.map +6 -0
  7. package/bundles/{chunk-PF3ZPGF5.js → chunk-ADHVDA4A.js} +12 -12
  8. package/bundles/{chunk-PF3ZPGF5.js.map → chunk-ADHVDA4A.js.map} +1 -1
  9. package/bundles/{chunk-J6CW3T62.js → chunk-GLCRIILX.js} +5 -5
  10. package/bundles/{chunk-J6CW3T62.js.map → chunk-GLCRIILX.js.map} +0 -0
  11. package/bundles/{chunk-FXVUPJ6A.js → chunk-L2JNRKLG.js} +358 -438
  12. package/bundles/chunk-L2JNRKLG.js.map +6 -0
  13. package/bundles/{chunk-P5ZW5MI4.js → chunk-L5DQYLOG.js} +505 -357
  14. package/bundles/chunk-L5DQYLOG.js.map +6 -0
  15. package/bundles/{chunk-DJRTTRF3.js → chunk-NU7DCJLY.js} +61 -63
  16. package/bundles/chunk-NU7DCJLY.js.map +6 -0
  17. package/bundles/{chunk-QFB4WK55.js → chunk-O4XVCXRT.js} +4 -4
  18. package/bundles/{chunk-QFB4WK55.js.map → chunk-O4XVCXRT.js.map} +0 -0
  19. package/bundles/{chunk-O5ZEI3UY.js → chunk-QBU7RUKB.js} +270 -100
  20. package/bundles/chunk-QBU7RUKB.js.map +6 -0
  21. package/bundles/{chunk-BPCUCINV.js → chunk-QDWL7SZJ.js} +2 -2
  22. package/bundles/{chunk-BPCUCINV.js.map → chunk-QDWL7SZJ.js.map} +0 -0
  23. package/bundles/{chunk-KWZNY2SK.js → chunk-QGM254OS.js} +96 -98
  24. package/bundles/chunk-QGM254OS.js.map +6 -0
  25. package/bundles/{chunk-JTYUTYS2.js → chunk-SKBLJA43.js} +3 -3
  26. package/bundles/{chunk-JTYUTYS2.js.map → chunk-SKBLJA43.js.map} +0 -0
  27. package/bundles/{chunk-OOIW53QX.js → chunk-UESD6FVI.js} +39 -41
  28. package/bundles/chunk-UESD6FVI.js.map +6 -0
  29. package/bundles/{chunk-XA5IZLLC.js → chunk-WQ3TNYTD.js} +6 -6
  30. package/bundles/{chunk-XA5IZLLC.js.map → chunk-WQ3TNYTD.js.map} +0 -0
  31. package/bundles/{chunk-W5CGOJQ4.js → chunk-ZWPDFY6U.js} +16 -20
  32. package/bundles/chunk-ZWPDFY6U.js.map +6 -0
  33. package/bundles/index.js +14 -14
  34. package/bundles/index.js.map +1 -1
  35. package/bundles/linker/babel/index.js +85 -85
  36. package/bundles/linker/babel/index.js.map +1 -1
  37. package/bundles/linker/index.js +5 -5
  38. package/bundles/ngcc/index.js +13 -13
  39. package/bundles/ngcc/main-ngcc.js +14 -14
  40. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +14 -14
  41. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +5 -5
  42. package/bundles/private/bazel.js +2 -2
  43. package/bundles/private/localize.js +4 -4
  44. package/bundles/private/migrations.js +6 -6
  45. package/bundles/private/tooling.js +3 -3
  46. package/bundles/src/bin/ng_xi18n.js +11 -11
  47. package/bundles/src/bin/ngc.js +11 -11
  48. package/bundles/src/bin/ngc.js.map +1 -1
  49. package/bundles_metadata.json +1 -1
  50. package/index.d.ts +2 -0
  51. package/ngcc/src/packages/build_marker.d.ts +1 -1
  52. package/package.json +2 -2
  53. package/src/ngtsc/annotations/src/component.d.ts +2 -1
  54. package/src/ngtsc/annotations/src/util.d.ts +1 -1
  55. package/src/ngtsc/core/api/src/options.d.ts +3 -2
  56. package/src/ngtsc/core/api/src/public_options.d.ts +38 -0
  57. package/src/ngtsc/diagnostics/index.d.ts +2 -1
  58. package/src/ngtsc/diagnostics/src/error.d.ts +1 -0
  59. package/src/ngtsc/diagnostics/src/error_code.d.ts +7 -0
  60. package/src/ngtsc/diagnostics/src/error_details_base_url.d.ts +1 -1
  61. package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +21 -0
  62. package/src/ngtsc/file_system/src/compiler_host.d.ts +1 -0
  63. package/src/ngtsc/imports/index.d.ts +1 -1
  64. package/src/ngtsc/imports/src/emitter.d.ts +40 -8
  65. package/src/ngtsc/translator/src/translator.d.ts +0 -5
  66. package/src/ngtsc/translator/src/type_translator.d.ts +0 -2
  67. package/src/ngtsc/typecheck/extended/api/api.d.ts +30 -10
  68. package/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.d.ts +3 -14
  69. package/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.d.ts +3 -15
  70. package/src/ngtsc/typecheck/extended/index.d.ts +3 -0
  71. package/src/ngtsc/typecheck/extended/src/extended_template_checker.d.ts +5 -4
  72. package/src/ngtsc/typecheck/src/environment.d.ts +3 -1
  73. package/src/ngtsc/typecheck/src/tcb_util.d.ts +10 -2
  74. package/src/ngtsc/typecheck/src/type_constructor.d.ts +3 -2
  75. package/src/ngtsc/typecheck/src/type_emitter.d.ts +7 -21
  76. package/src/ngtsc/typecheck/src/type_parameter_emitter.d.ts +2 -2
  77. package/bundles/chunk-AUFNJGZ6.js.map +0 -6
  78. package/bundles/chunk-DJRTTRF3.js.map +0 -6
  79. package/bundles/chunk-FXVUPJ6A.js.map +0 -6
  80. package/bundles/chunk-KWZNY2SK.js.map +0 -6
  81. package/bundles/chunk-O5ZEI3UY.js.map +0 -6
  82. package/bundles/chunk-OOIW53QX.js.map +0 -6
  83. package/bundles/chunk-P5ZW5MI4.js.map +0 -6
  84. package/bundles/chunk-TI3THPMZ.js.map +0 -6
  85. package/bundles/chunk-W5CGOJQ4.js.map +0 -6
  86. package/bundles/chunk-X46CEINM.js.map +0 -6
@@ -10,7 +10,7 @@ import {
10
10
  MetadataDtsModuleScopeResolver,
11
11
  TypeCheckScopeRegistry,
12
12
  readConfiguration
13
- } from "./chunk-P5ZW5MI4.js";
13
+ } from "./chunk-L5DQYLOG.js";
14
14
  import {
15
15
  CompilationMode,
16
16
  ComponentDecoratorHandler,
@@ -30,10 +30,8 @@ import {
30
30
  TraitCompiler,
31
31
  TraitState,
32
32
  forwardRefResolver,
33
- isFatalDiagnosticError,
34
- readBaseClass,
35
- replaceTsWithNgInErrors
36
- } from "./chunk-FXVUPJ6A.js";
33
+ readBaseClass
34
+ } from "./chunk-L2JNRKLG.js";
37
35
  import {
38
36
  ClassMemberKind,
39
37
  KnownDeclaration,
@@ -44,15 +42,15 @@ import {
44
42
  isNamedFunctionDeclaration,
45
43
  isNamedVariableDeclaration,
46
44
  reflectObjectLiteral
47
- } from "./chunk-X46CEINM.js";
45
+ } from "./chunk-7PY7XEFH.js";
48
46
  import {
49
47
  ConsoleLogger,
50
48
  LogLevel
51
- } from "./chunk-JTYUTYS2.js";
49
+ } from "./chunk-SKBLJA43.js";
52
50
  import {
53
51
  ContentOrigin,
54
52
  SourceFileLoader
55
- } from "./chunk-PF3ZPGF5.js";
53
+ } from "./chunk-ADHVDA4A.js";
56
54
  import {
57
55
  AbsoluteModuleStrategy,
58
56
  ImportManager,
@@ -66,12 +64,14 @@ import {
66
64
  ReferenceEmitter,
67
65
  isAssignment,
68
66
  isDtsPath,
67
+ isFatalDiagnosticError,
69
68
  isFromDtsFile,
70
69
  isSymbolWithValueDeclaration,
70
+ replaceTsWithNgInErrors,
71
71
  translateStatement,
72
72
  translateType,
73
73
  validateAndRewriteCoreSymbol
74
- } from "./chunk-O5ZEI3UY.js";
74
+ } from "./chunk-QBU7RUKB.js";
75
75
  import {
76
76
  LogicalFileSystem,
77
77
  NgtscCompilerHost,
@@ -83,25 +83,25 @@ import {
83
83
  isRooted,
84
84
  relative,
85
85
  toRelativeImport
86
- } from "./chunk-TI3THPMZ.js";
86
+ } from "./chunk-676MI6WZ.js";
87
87
  import {
88
88
  NOOP_PERF_RECORDER
89
- } from "./chunk-J6CW3T62.js";
89
+ } from "./chunk-GLCRIILX.js";
90
90
  import {
91
91
  __spreadProps,
92
92
  __spreadValues
93
- } from "./chunk-XA5IZLLC.js";
93
+ } from "./chunk-WQ3TNYTD.js";
94
94
 
95
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
95
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
96
96
  import ts22 from "typescript";
97
97
 
98
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
98
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
99
99
  import ts7 from "typescript";
100
100
 
101
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
101
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
102
102
  import ts6 from "typescript";
103
103
 
104
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/utils.mjs
104
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/utils.mjs
105
105
  import ts from "typescript";
106
106
  function isDefined(value) {
107
107
  return value !== void 0 && value !== null;
@@ -172,7 +172,7 @@ function stripExtension(fileName) {
172
172
  return fileName.replace(/\..+$/, "");
173
173
  }
174
174
 
175
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_umd_utils.mjs
175
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_umd_utils.mjs
176
176
  import ts2 from "typescript";
177
177
  function findNamespaceOfIdentifier(id) {
178
178
  return id.parent && ts2.isPropertyAccessExpression(id.parent) && id.parent.name === id && ts2.isIdentifier(id.parent.expression) ? id.parent.expression : null;
@@ -258,10 +258,10 @@ function skipAliases(node) {
258
258
  return node;
259
259
  }
260
260
 
261
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
261
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
262
262
  import ts4 from "typescript";
263
263
 
264
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/util.mjs
264
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/util.mjs
265
265
  function isWithinPackage(packagePath, filePath) {
266
266
  const relativePath = relative(packagePath, filePath);
267
267
  return isLocalRelativePath(relativePath) && !relativePath.startsWith("node_modules/");
@@ -276,13 +276,13 @@ var NoopDependencyTracker = class {
276
276
  };
277
277
  var NOOP_DEPENDENCY_TRACKER = new NoopDependencyTracker();
278
278
 
279
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/utils.mjs
279
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/utils.mjs
280
280
  import ts3 from "typescript";
281
281
  function stripParentheses(node) {
282
282
  return ts3.isParenthesizedExpression(node) ? node.expression : node;
283
283
  }
284
284
 
285
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
285
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
286
286
  var DECORATORS = "decorators";
287
287
  var PROP_DECORATORS = "propDecorators";
288
288
  var CONSTRUCTOR = "__constructor";
@@ -296,9 +296,9 @@ var Esm2015ReflectionHost = class extends TypeScriptReflectionHost {
296
296
  this.dts = dts;
297
297
  this.publicDtsDeclarationMap = null;
298
298
  this.privateDtsDeclarationMap = null;
299
- this.preprocessedSourceFiles = new Set();
300
- this.aliasedClassDeclarations = new Map();
301
- this.decoratorCache = new Map();
299
+ this.preprocessedSourceFiles = /* @__PURE__ */ new Set();
300
+ this.aliasedClassDeclarations = /* @__PURE__ */ new Map();
301
+ this.decoratorCache = /* @__PURE__ */ new Map();
302
302
  }
303
303
  getClassSymbol(declaration) {
304
304
  const symbol = this.getClassSymbolFromOuterDeclaration(declaration);
@@ -441,7 +441,7 @@ ${declaration.getText()}`);
441
441
  return null;
442
442
  }
443
443
  findClassSymbols(sourceFile) {
444
- const classes = new Map();
444
+ const classes = /* @__PURE__ */ new Map();
445
445
  this.getModuleStatements(sourceFile).forEach((statement) => this.addClassSymbolsFromStatement(classes, statement));
446
446
  return Array.from(classes.values());
447
447
  }
@@ -781,7 +781,7 @@ ${declaration.getText()}`);
781
781
  return members;
782
782
  }
783
783
  getMemberDecoratorsFromStaticProperty(decoratorsProperty) {
784
- const memberDecorators = new Map();
784
+ const memberDecorators = /* @__PURE__ */ new Map();
785
785
  const propDecoratorsMap = getPropertyValueFromSymbol(decoratorsProperty);
786
786
  if (propDecoratorsMap && ts4.isObjectLiteralExpression(propDecoratorsMap)) {
787
787
  const propertiesMap = reflectObjectLiteral(propDecoratorsMap);
@@ -796,7 +796,7 @@ ${declaration.getText()}`);
796
796
  }
797
797
  computeDecoratorInfoFromHelperCalls(classSymbol) {
798
798
  let classDecorators = null;
799
- const memberDecorators = new Map();
799
+ const memberDecorators = /* @__PURE__ */ new Map();
800
800
  const constructorParamInfo = [];
801
801
  const getConstructorParamInfo = (index) => {
802
802
  let param = constructorParamInfo[index];
@@ -1141,8 +1141,8 @@ ${declaration.getText()}`);
1141
1141
  }
1142
1142
  }
1143
1143
  computePublicDtsDeclarationMap(src, dts) {
1144
- const declarationMap = new Map();
1145
- const dtsDeclarationMap = new Map();
1144
+ const declarationMap = /* @__PURE__ */ new Map();
1145
+ const dtsDeclarationMap = /* @__PURE__ */ new Map();
1146
1146
  const rootDts = getRootFileOrFail(dts);
1147
1147
  this.collectDtsExportedDeclarations(dtsDeclarationMap, rootDts, dts.program.getTypeChecker());
1148
1148
  const rootSrc = getRootFileOrFail(src);
@@ -1150,8 +1150,8 @@ ${declaration.getText()}`);
1150
1150
  return declarationMap;
1151
1151
  }
1152
1152
  computePrivateDtsDeclarationMap(src, dts) {
1153
- const declarationMap = new Map();
1154
- const dtsDeclarationMap = new Map();
1153
+ const declarationMap = /* @__PURE__ */ new Map();
1154
+ const dtsDeclarationMap = /* @__PURE__ */ new Map();
1155
1155
  const typeChecker = dts.program.getTypeChecker();
1156
1156
  const dtsFiles = getNonRootPackageFiles(dts);
1157
1157
  for (const dtsFile of dtsFiles) {
@@ -1510,7 +1510,7 @@ function getOuterNodeFromInnerDeclaration(node) {
1510
1510
  return outerNode;
1511
1511
  }
1512
1512
 
1513
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm5_host.mjs
1513
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm5_host.mjs
1514
1514
  import ts5 from "typescript";
1515
1515
  var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
1516
1516
  getBaseClassExpression(clazz) {
@@ -1844,7 +1844,7 @@ function getIifeFn(classSymbol) {
1844
1844
  return iifeWrapper && ts5.isFunctionExpression(iifeWrapper) ? iifeWrapper : null;
1845
1845
  }
1846
1846
 
1847
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
1847
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
1848
1848
  var UmdReflectionHost = class extends Esm5ReflectionHost {
1849
1849
  constructor(logger, isCore, src, dts = null) {
1850
1850
  super(logger, isCore, src, dts);
@@ -1971,7 +1971,7 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
1971
1971
  return parseStatementForUmdModule(sourceFile.statements[0]);
1972
1972
  }
1973
1973
  computeExportsOfUmdModule(sourceFile) {
1974
- const moduleMap = new Map();
1974
+ const moduleMap = /* @__PURE__ */ new Map();
1975
1975
  for (const statement of this.getModuleStatements(sourceFile)) {
1976
1976
  if (isExportsStatement(statement)) {
1977
1977
  const exportDeclaration = this.extractBasicUmdExportDeclaration(statement);
@@ -2344,7 +2344,7 @@ function isExportsIdentifier(node) {
2344
2344
  return ts6.isIdentifier(node) && node.text === "exports";
2345
2345
  }
2346
2346
 
2347
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
2347
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
2348
2348
  var SUPPORTED_FORMAT_PROPERTIES = ["fesm2015", "fesm5", "es2015", "esm2015", "esm5", "main", "module", "browser"];
2349
2349
  var NO_ENTRY_POINT = "no-entry-point";
2350
2350
  var IGNORED_ENTRY_POINT = "ignored-entry-point";
@@ -2503,7 +2503,7 @@ function getRepositoryUrl(packageJson) {
2503
2503
  return packageJson.repository.url;
2504
2504
  }
2505
2505
 
2506
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/api.mjs
2506
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/api.mjs
2507
2507
  var DtsProcessing;
2508
2508
  (function(DtsProcessing2) {
2509
2509
  DtsProcessing2[DtsProcessing2["Yes"] = 0] = "Yes";
@@ -2512,10 +2512,10 @@ var DtsProcessing;
2512
2512
  })(DtsProcessing || (DtsProcessing = {}));
2513
2513
  var TaskDependencies = Map;
2514
2514
 
2515
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
2515
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
2516
2516
  import ts9 from "typescript";
2517
2517
 
2518
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/patch_ts_expando_initializer.mjs
2518
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/patch_ts_expando_initializer.mjs
2519
2519
  import ts8 from "typescript";
2520
2520
  function patchTsGetExpandoInitializer() {
2521
2521
  if (isTs31778GetExpandoInitializerFixed()) {
@@ -2620,7 +2620,7 @@ function makeUnsupportedTypeScriptError() {
2620
2620
  return new Error("The TypeScript version used is not supported by ngcc.");
2621
2621
  }
2622
2622
 
2623
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
2623
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
2624
2624
  function makeBundleProgram(fs, isCore, pkg, path, r3FileName, options, host, additionalFiles = []) {
2625
2625
  const r3SymbolsPath = isCore ? findR3SymbolsPath(fs, fs.dirname(path), r3FileName) : null;
2626
2626
  let rootPaths = r3SymbolsPath ? [path, r3SymbolsPath, ...additionalFiles] : [path, ...additionalFiles];
@@ -2650,7 +2650,7 @@ function findR3SymbolsPath(fs, directory, filename) {
2650
2650
  return null;
2651
2651
  }
2652
2652
 
2653
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/ngcc_compiler_host.mjs
2653
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/ngcc_compiler_host.mjs
2654
2654
  import ts10 from "typescript";
2655
2655
  var NgccSourcesCompilerHost = class extends NgtscCompilerHost {
2656
2656
  constructor(fs, options, cache, moduleResolutionCache, packagePath) {
@@ -2695,12 +2695,12 @@ var NgccDtsCompilerHost = class extends NgtscCompilerHost {
2695
2695
  }
2696
2696
  };
2697
2697
 
2698
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/source_file_cache.mjs
2698
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/source_file_cache.mjs
2699
2699
  import ts11 from "typescript";
2700
2700
  var SharedFileCache = class {
2701
2701
  constructor(fs) {
2702
2702
  this.fs = fs;
2703
- this.sfCache = new Map();
2703
+ this.sfCache = /* @__PURE__ */ new Map();
2704
2704
  }
2705
2705
  getCachedSourceFile(fileName) {
2706
2706
  const absPath = this.fs.resolve(fileName);
@@ -2764,7 +2764,7 @@ var EntryPointFileCache = class {
2764
2764
  constructor(fs, sharedFileCache) {
2765
2765
  this.fs = fs;
2766
2766
  this.sharedFileCache = sharedFileCache;
2767
- this.sfCache = new Map();
2767
+ this.sfCache = /* @__PURE__ */ new Map();
2768
2768
  }
2769
2769
  getCachedSourceFile(fileName, languageVersion) {
2770
2770
  const staticSf = this.sharedFileCache.getCachedSourceFile(fileName);
@@ -2796,7 +2796,7 @@ function createModuleResolutionCache(fs) {
2796
2796
  });
2797
2797
  }
2798
2798
 
2799
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point_bundle.mjs
2799
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point_bundle.mjs
2800
2800
  function makeEntryPointBundle(fs, entryPoint, sharedFileCache, moduleResolutionCache, formatPath, isCore, format, dtsProcessing, pathMappings, mirrorDtsFromSrc = false, enableI18nLegacyMessageIdFormat = true) {
2801
2801
  const rootDir = entryPoint.packagePath;
2802
2802
  const options = __spreadValues({ allowJs: true, maxNodeModuleJsDepth: Infinity, rootDir }, pathMappings);
@@ -2837,13 +2837,13 @@ function computePotentialDtsFilesFromJsFiles(fs, srcProgram, formatPath, typings
2837
2837
  return additionalFiles;
2838
2838
  }
2839
2839
 
2840
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
2840
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
2841
2841
  import ts21 from "typescript";
2842
2842
 
2843
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
2843
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
2844
2844
  import { ConstantPool } from "@angular/compiler";
2845
2845
 
2846
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/utils.mjs
2846
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/utils.mjs
2847
2847
  import ts12 from "typescript";
2848
2848
  function isClassDeclaration(clazz) {
2849
2849
  return isNamedClassDeclaration(clazz) || isNamedFunctionDeclaration(clazz) || isNamedVariableDeclaration(clazz);
@@ -2926,7 +2926,7 @@ function reifySourceFile(expr) {
2926
2926
  return stmt.declarationList.declarations[0].initializer;
2927
2927
  }
2928
2928
 
2929
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/missing_injectable_migration.mjs
2929
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/missing_injectable_migration.mjs
2930
2930
  var MissingInjectableMigration = class {
2931
2931
  apply(clazz, host) {
2932
2932
  const decorators = host.reflectionHost.getDecoratorsOfDeclaration(clazz);
@@ -3010,7 +3010,7 @@ function migrateProviderClass(provider, host) {
3010
3010
  host.injectSyntheticDecorator(clazz, createInjectableDecorator(clazz));
3011
3011
  }
3012
3012
  }
3013
- var NO_MIGRATE_DECORATORS = new Set(["Injectable", "Directive", "Component", "Pipe"]);
3013
+ var NO_MIGRATE_DECORATORS = /* @__PURE__ */ new Set(["Injectable", "Directive", "Component", "Pipe"]);
3014
3014
  function needsInjectableDecorator(clazz, host) {
3015
3015
  const decorators = host.getAllDecorators(clazz);
3016
3016
  if (decorators === null) {
@@ -3031,7 +3031,7 @@ function getAngularCoreDecoratorName(decorator) {
3031
3031
  return decorator.import.name;
3032
3032
  }
3033
3033
 
3034
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_child_migration.mjs
3034
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_child_migration.mjs
3035
3035
  var UndecoratedChildMigration = class {
3036
3036
  apply(clazz, host) {
3037
3037
  const moduleMeta = host.metadata.getNgModuleMetadata(new Reference(clazz));
@@ -3066,7 +3066,7 @@ var UndecoratedChildMigration = class {
3066
3066
  }
3067
3067
  };
3068
3068
 
3069
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_parent_migration.mjs
3069
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_parent_migration.mjs
3070
3070
  var UndecoratedParentMigration = class {
3071
3071
  apply(clazz, host) {
3072
3072
  if (!hasDirectiveDecorator(host, clazz) || hasConstructor(host, clazz)) {
@@ -3099,7 +3099,7 @@ function determineBaseClass(clazz, host) {
3099
3099
  return baseClass;
3100
3100
  }
3101
3101
 
3102
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/migration_host.mjs
3102
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/migration_host.mjs
3103
3103
  import ts13 from "typescript";
3104
3104
  var DefaultMigrationHost = class {
3105
3105
  constructor(reflectionHost, metadata, evaluator, compiler, entryPointPath) {
@@ -3159,7 +3159,7 @@ function createMigrationDiagnostic(diagnostic, source, decorator) {
3159
3159
  return clone;
3160
3160
  }
3161
3161
 
3162
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_trait_compiler.mjs
3162
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_trait_compiler.mjs
3163
3163
  var NgccTraitCompiler = class extends TraitCompiler {
3164
3164
  constructor(handlers, ngccReflector) {
3165
3165
  super(handlers, ngccReflector, NOOP_PERF_RECORDER, new NoIncrementalBuild(), true, CompilationMode.FULL, new DtsTransformRegistry(), null);
@@ -3204,10 +3204,10 @@ var NoIncrementalBuild = class {
3204
3204
  }
3205
3205
  };
3206
3206
 
3207
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/types.mjs
3207
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/types.mjs
3208
3208
  var DecorationAnalyses = Map;
3209
3209
 
3210
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
3210
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
3211
3211
  var NgccResourceLoader = class {
3212
3212
  constructor(fs) {
3213
3213
  this.fs = fs;
@@ -3363,7 +3363,7 @@ var DecorationAnalyzer = class {
3363
3363
  }
3364
3364
  };
3365
3365
 
3366
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/module_with_providers_analyzer.mjs
3366
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/module_with_providers_analyzer.mjs
3367
3367
  import ts14 from "typescript";
3368
3368
  var ModuleWithProvidersAnalyses = Map;
3369
3369
  var ModuleWithProvidersAnalyzer = class {
@@ -3502,11 +3502,11 @@ function isAnyKeyword(typeParam) {
3502
3502
  return typeParam.kind === ts14.SyntaxKind.AnyKeyword;
3503
3503
  }
3504
3504
 
3505
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_references_registry.mjs
3505
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_references_registry.mjs
3506
3506
  var NgccReferencesRegistry = class {
3507
3507
  constructor(host) {
3508
3508
  this.host = host;
3509
- this.map = new Map();
3509
+ this.map = /* @__PURE__ */ new Map();
3510
3510
  }
3511
3511
  add(source, ...references) {
3512
3512
  references.forEach((ref) => {
@@ -3523,7 +3523,7 @@ var NgccReferencesRegistry = class {
3523
3523
  }
3524
3524
  };
3525
3525
 
3526
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/private_declarations_analyzer.mjs
3526
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/private_declarations_analyzer.mjs
3527
3527
  var PrivateDeclarationsAnalyzer = class {
3528
3528
  constructor(host, referencesRegistry) {
3529
3529
  this.host = host;
@@ -3564,7 +3564,7 @@ var PrivateDeclarationsAnalyzer = class {
3564
3564
  }
3565
3565
  };
3566
3566
 
3567
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_host.mjs
3567
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_host.mjs
3568
3568
  import ts15 from "typescript";
3569
3569
  var CommonJsReflectionHost = class extends Esm5ReflectionHost {
3570
3570
  constructor(logger, isCore, src, dts = null) {
@@ -3605,7 +3605,7 @@ var CommonJsReflectionHost = class extends Esm5ReflectionHost {
3605
3605
  return calls;
3606
3606
  }
3607
3607
  computeExportsOfCommonJsModule(sourceFile) {
3608
- const moduleMap = new Map();
3608
+ const moduleMap = /* @__PURE__ */ new Map();
3609
3609
  for (const statement of this.getModuleStatements(sourceFile)) {
3610
3610
  if (isExportsStatement(statement)) {
3611
3611
  const exportDeclaration = this.extractBasicCommonJsExportDeclaration(statement);
@@ -3728,7 +3728,7 @@ var CommonJsReflectionHost = class extends Esm5ReflectionHost {
3728
3728
  }
3729
3729
  };
3730
3730
 
3731
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/host/delegating_host.mjs
3731
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/delegating_host.mjs
3732
3732
  var DelegatingReflectionHost = class {
3733
3733
  constructor(tsHost, ngccHost) {
3734
3734
  this.tsHost = tsHost;
@@ -3849,16 +3849,16 @@ var DelegatingReflectionHost = class {
3849
3849
  }
3850
3850
  };
3851
3851
 
3852
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
3852
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
3853
3853
  import ts18 from "typescript";
3854
3854
 
3855
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
3855
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
3856
3856
  import ts17 from "typescript";
3857
3857
 
3858
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
3858
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
3859
3859
  import ts16 from "typescript";
3860
3860
 
3861
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/ngcc_import_rewriter.mjs
3861
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/ngcc_import_rewriter.mjs
3862
3862
  var NgccFlatImportRewriter = class {
3863
3863
  shouldImportSymbol(symbol, specifier) {
3864
3864
  if (specifier === "@angular/core") {
@@ -3879,7 +3879,7 @@ var NgccFlatImportRewriter = class {
3879
3879
  }
3880
3880
  };
3881
3881
 
3882
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/utils.mjs
3882
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/utils.mjs
3883
3883
  function getImportRewriter(r3SymbolsFile, isCore, isFlat) {
3884
3884
  if (isCore && isFlat) {
3885
3885
  return new NgccFlatImportRewriter();
@@ -3893,7 +3893,7 @@ function stripExtension2(filePath) {
3893
3893
  return filePath.replace(/\.(js|d\.ts)$/, "");
3894
3894
  }
3895
3895
 
3896
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
3896
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
3897
3897
  var EsmRenderingFormatter = class {
3898
3898
  constructor(fs, host, isCore) {
3899
3899
  this.fs = fs;
@@ -4053,7 +4053,7 @@ function getEndExceptSemicolon(statement) {
4053
4053
  return lastToken && lastToken.kind === ts16.SyntaxKind.SemicolonToken ? statement.getEnd() - 1 : statement.getEnd();
4054
4054
  }
4055
4055
 
4056
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
4056
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
4057
4057
  var Esm5RenderingFormatter = class extends EsmRenderingFormatter {
4058
4058
  addDefinitions(output, compiledClass, definitions) {
4059
4059
  const classSymbol = this.host.getClassSymbol(compiledClass.declaration);
@@ -4081,7 +4081,7 @@ Expected an ES5 IIFE wrapped function. But got:
4081
4081
  }
4082
4082
  };
4083
4083
 
4084
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
4084
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
4085
4085
  var CommonJsRenderingFormatter = class extends Esm5RenderingFormatter {
4086
4086
  constructor(fs, commonJsHost, isCore) {
4087
4087
  super(fs, commonJsHost, isCore);
@@ -4130,15 +4130,15 @@ exports.${e.asAlias} = ${importNamespace}${namedImport.symbol};`;
4130
4130
  }
4131
4131
  };
4132
4132
 
4133
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
4133
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
4134
4134
  import MagicString from "magic-string";
4135
4135
  import ts19 from "typescript";
4136
4136
 
4137
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/constants.mjs
4137
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/constants.mjs
4138
4138
  var IMPORT_PREFIX = "\u0275ngcc";
4139
4139
  var NGCC_TIMED_OUT_EXIT_CODE = 177;
4140
4140
 
4141
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/source_maps.mjs
4141
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/source_maps.mjs
4142
4142
  import mapHelpers from "convert-source-map";
4143
4143
  function renderSourceAndMap(logger, fs, sourceFile, generatedMagicString) {
4144
4144
  var _a;
@@ -4173,7 +4173,7 @@ ${sourceMapComment}` },
4173
4173
  }
4174
4174
  }
4175
4175
 
4176
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
4176
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
4177
4177
  var DtsRenderInfo = class {
4178
4178
  constructor() {
4179
4179
  this.classInfo = [];
@@ -4229,7 +4229,7 @@ export {${e.symbolName} as ${e.asAlias}} from '${e.fromModule}';`;
4229
4229
  return renderSourceAndMap(this.logger, this.fs, dtsFile, outputText);
4230
4230
  }
4231
4231
  getTypingsFilesToRender(decorationAnalyses, privateDeclarationsAnalyses, moduleWithProvidersAnalyses) {
4232
- const dtsMap = new Map();
4232
+ const dtsMap = /* @__PURE__ */ new Map();
4233
4233
  decorationAnalyses.forEach((compiledFile) => {
4234
4234
  let appliedReexports = false;
4235
4235
  compiledFile.compiledClasses.forEach((compiledClass) => {
@@ -4274,14 +4274,14 @@ function markForEmitAsSingleLine(node) {
4274
4274
  ts19.forEachChild(node, markForEmitAsSingleLine);
4275
4275
  }
4276
4276
 
4277
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
4277
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
4278
4278
  import { jsDocComment, WrappedNodeExpr, WritePropExpr } from "@angular/compiler";
4279
4279
  import MagicString2 from "magic-string";
4280
4280
 
4281
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/rendering_formatter.mjs
4281
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/rendering_formatter.mjs
4282
4282
  var RedundantDecoratorMap = Map;
4283
4283
 
4284
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
4284
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
4285
4285
  var Renderer = class {
4286
4286
  constructor(host, srcFormatter, fs, logger, bundle, tsConfig = null) {
4287
4287
  this.host = host;
@@ -4384,7 +4384,7 @@ function createAssignmentStatement(receiverName, propName, initializer, leadingC
4384
4384
  return statement;
4385
4385
  }
4386
4386
 
4387
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/umd_rendering_formatter.mjs
4387
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/umd_rendering_formatter.mjs
4388
4388
  import ts20 from "typescript";
4389
4389
  var UmdRenderingFormatter = class extends Esm5RenderingFormatter {
4390
4390
  constructor(fs, umdHost, isCore) {
@@ -4500,7 +4500,7 @@ function getGlobalIdentifier(i) {
4500
4500
  return i.specifier.replace(/^@angular\//, "ng.").replace(/^@/, "").replace(/\//g, ".").replace(/[-_]+(.?)/g, (_, c) => c.toUpperCase()).replace(/^./, (c) => c.toLowerCase());
4501
4501
  }
4502
4502
 
4503
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
4503
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
4504
4504
  var Transformer = class {
4505
4505
  constructor(fs, logger, tsConfig = null) {
4506
4506
  this.fs = fs;
@@ -4581,7 +4581,7 @@ function hasErrors(diagnostics) {
4581
4581
  return diagnostics.some((d) => d.category === ts21.DiagnosticCategory.Error);
4582
4582
  }
4583
4583
 
4584
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
4584
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
4585
4585
  function getCreateCompileFn(fileSystem, logger, fileWriter, enableI18nLegacyMessageIdFormat, tsConfig, pathMappings) {
4586
4586
  return (beforeWritingFiles, onTaskCompleted) => {
4587
4587
  const transformer = new Transformer(fileSystem, logger, tsConfig);
@@ -4620,12 +4620,10 @@ ${errors}`);
4620
4620
  };
4621
4621
  }
4622
4622
 
4623
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
4624
- import {
4625
- cpus
4626
- } from "os";
4623
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
4624
+ import * as os from "os";
4627
4625
 
4628
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/path_mappings.mjs
4626
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/path_mappings.mjs
4629
4627
  function getPathMappingsFromTsConfig(fs, tsConfig, projectPath) {
4630
4628
  if (tsConfig !== null && tsConfig.options.baseUrl !== void 0 && tsConfig.options.paths !== void 0) {
4631
4629
  return {
@@ -4635,7 +4633,7 @@ function getPathMappingsFromTsConfig(fs, tsConfig, projectPath) {
4635
4633
  }
4636
4634
  }
4637
4635
 
4638
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/in_place_file_writer.mjs
4636
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/in_place_file_writer.mjs
4639
4637
  var NGCC_BACKUP_EXTENSION = ".__ivy_ngcc_bak";
4640
4638
  var InPlaceFileWriter = class {
4641
4639
  constructor(fs, logger, errorOnFailedEntryPoint) {
@@ -4684,7 +4682,7 @@ This error may be caused by one of the following:
4684
4682
  }
4685
4683
  };
4686
4684
 
4687
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/new_entry_point_file_writer.mjs
4685
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/new_entry_point_file_writer.mjs
4688
4686
  var NGCC_DIRECTORY = "__ivy_ngcc__";
4689
4687
  var NGCC_PROPERTY_EXTENSION = "_ivy_ngcc";
4690
4688
  var NewEntryPointFileWriter = class extends InPlaceFileWriter {
@@ -4792,7 +4790,7 @@ var NewEntryPointFileWriter = class extends InPlaceFileWriter {
4792
4790
  }
4793
4791
  };
4794
4792
 
4795
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
4793
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
4796
4794
  function getSharedSetup(options) {
4797
4795
  const fileSystem = getFileSystem();
4798
4796
  const absBasePath = absoluteFrom(options.basePath);
@@ -4857,7 +4855,7 @@ If you did intend to use this file, then you can hide this warning by providing
4857
4855
  function getMaxNumberOfWorkers() {
4858
4856
  const maxWorkers = process.env.NGCC_MAX_WORKERS;
4859
4857
  if (maxWorkers === void 0) {
4860
- return Math.max(1, Math.min(4, cpus().length - 1));
4858
+ return Math.max(1, Math.min(4, os.cpus().length - 1));
4861
4859
  }
4862
4860
  const numericMaxWorkers = +maxWorkers.trim();
4863
4861
  if (!Number.isInteger(numericMaxWorkers)) {
@@ -4868,11 +4866,11 @@ function getMaxNumberOfWorkers() {
4868
4866
  return numericMaxWorkers;
4869
4867
  }
4870
4868
 
4871
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/utils.mjs
4869
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/utils.mjs
4872
4870
  var stringifyTask = (task) => `{entryPoint: ${task.entryPoint.name}, formatProperty: ${task.formatProperty}, processDts: ${DtsProcessing[task.processDts]}}`;
4873
4871
  function computeTaskDependencies(tasks, graph) {
4874
4872
  const dependencies = new TaskDependencies();
4875
- const candidateDependencies = new Map();
4873
+ const candidateDependencies = /* @__PURE__ */ new Map();
4876
4874
  tasks.forEach((task) => {
4877
4875
  const entryPointPath = task.entryPoint.path;
4878
4876
  const deps = graph.dependenciesOf(entryPointPath);
@@ -4903,12 +4901,12 @@ function computeTaskDependencies(tasks, graph) {
4903
4901
  }
4904
4902
  function getDependentsSet(map, task) {
4905
4903
  if (!map.has(task)) {
4906
- map.set(task, new Set());
4904
+ map.set(task, /* @__PURE__ */ new Set());
4907
4905
  }
4908
4906
  return map.get(task);
4909
4907
  }
4910
4908
  function getBlockedTasks(dependencies) {
4911
- const blockedTasks = new Map();
4909
+ const blockedTasks = /* @__PURE__ */ new Map();
4912
4910
  for (const [dependency, dependents] of dependencies) {
4913
4911
  for (const dependent of dependents) {
4914
4912
  const dependentSet = getDependentsSet(blockedTasks, dependent);
@@ -4918,7 +4916,7 @@ function getBlockedTasks(dependencies) {
4918
4916
  return blockedTasks;
4919
4917
  }
4920
4918
  function sortTasksByPriority(tasks, dependencies) {
4921
- const priorityPerTask = new Map();
4919
+ const priorityPerTask = /* @__PURE__ */ new Map();
4922
4920
  const computePriority = (task, idx) => [dependencies.has(task) ? dependencies.get(task).size : 0, idx];
4923
4921
  tasks.forEach((task, i) => priorityPerTask.set(task, computePriority(task, i)));
4924
4922
  return tasks.slice().sort((task1, task2) => {
@@ -4928,7 +4926,7 @@ function sortTasksByPriority(tasks, dependencies) {
4928
4926
  });
4929
4927
  }
4930
4928
 
4931
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/utils.mjs
4929
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/utils.mjs
4932
4930
  import cluster from "cluster";
4933
4931
  var Deferred = class {
4934
4932
  constructor() {
@@ -4962,7 +4960,7 @@ var sendMessageToWorker = (workerId, msg) => {
4962
4960
  });
4963
4961
  };
4964
4962
 
4965
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/package_json_updater.mjs
4963
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/package_json_updater.mjs
4966
4964
  var PackageJsonUpdate = class {
4967
4965
  constructor(writeChangesImpl) {
4968
4966
  this.writeChangesImpl = writeChangesImpl;
@@ -5096,4 +5094,4 @@ export {
5096
5094
  * Use of this source code is governed by an MIT-style license that can be
5097
5095
  * found in the LICENSE file at https://angular.io/license
5098
5096
  */
5099
- //# sourceMappingURL=chunk-KWZNY2SK.js.map
5097
+ //# sourceMappingURL=chunk-QGM254OS.js.map