@angular/compiler-cli 15.2.0-rc.0 → 16.0.0-next.0

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 (165) hide show
  1. package/bundles/{chunk-JYL7IHZC.js → chunk-2DMH5JXJ.js} +16 -23
  2. package/bundles/chunk-2DMH5JXJ.js.map +6 -0
  3. package/bundles/{chunk-ZB4CDKOH.js → chunk-4TCRZYAK.js} +2 -2
  4. package/bundles/{chunk-NJMZRTB6.js → chunk-54RHUHYB.js} +1 -2
  5. package/bundles/{chunk-64X67E3N.js → chunk-6CARGXRJ.js} +5 -5
  6. package/bundles/{chunk-O4JLZZWJ.js → chunk-EDWIBG7R.js} +1 -10
  7. package/bundles/chunk-EDWIBG7R.js.map +6 -0
  8. package/bundles/{chunk-6ZJFIQBG.js → chunk-GYHDNUIK.js} +1 -2
  9. package/bundles/{chunk-HYFCMILZ.js → chunk-IS6KZYEA.js} +384 -614
  10. package/bundles/chunk-IS6KZYEA.js.map +6 -0
  11. package/bundles/{chunk-Q6W3UCXI.js → chunk-JHMH3CX2.js} +92 -125
  12. package/bundles/chunk-JHMH3CX2.js.map +6 -0
  13. package/bundles/chunk-K2A5WD7L.js +872 -0
  14. package/bundles/chunk-K2A5WD7L.js.map +6 -0
  15. package/bundles/chunk-PSGRCFPQ.js +714 -0
  16. package/bundles/chunk-PSGRCFPQ.js.map +6 -0
  17. package/bundles/index.js +13 -12
  18. package/bundles/index.js.map +1 -1
  19. package/bundles/linker/babel/index.js +8 -7
  20. package/bundles/linker/babel/index.js.map +1 -1
  21. package/bundles/linker/index.js +4 -3
  22. package/bundles/private/bazel.js +1 -1
  23. package/bundles/private/localize.js +1 -1
  24. package/bundles/private/migrations.js +5 -4
  25. package/bundles/private/tooling.js +4 -2
  26. package/bundles/src/bin/ng_xi18n.js +7 -6
  27. package/bundles/src/bin/ng_xi18n.js.map +1 -1
  28. package/bundles/src/bin/ngc.js +7 -6
  29. package/bundles/src/bin/ngc.js.map +1 -1
  30. package/bundles_metadata.json +1 -1
  31. package/package.json +2 -15
  32. package/src/ngtsc/annotations/ng_module/src/handler.d.ts +1 -3
  33. package/src/ngtsc/core/api/src/adapter.d.ts +0 -7
  34. package/src/ngtsc/core/api/src/options.d.ts +2 -2
  35. package/src/ngtsc/core/api/src/public_options.d.ts +0 -25
  36. package/src/ngtsc/core/src/host.d.ts +3 -5
  37. package/src/ngtsc/imports/index.d.ts +1 -0
  38. package/src/ngtsc/imports/src/default.d.ts +6 -10
  39. package/src/ngtsc/imports/src/patch_alias_reference_resolution.d.ts +61 -0
  40. package/src/ngtsc/shims/api.d.ts +0 -19
  41. package/src/ngtsc/shims/index.d.ts +0 -2
  42. package/src/transformers/api.d.ts +0 -5
  43. package/bundles/chunk-7DUI3BSX.js +0 -29
  44. package/bundles/chunk-7DUI3BSX.js.map +0 -6
  45. package/bundles/chunk-BEXFRTBC.js +0 -2187
  46. package/bundles/chunk-BEXFRTBC.js.map +0 -6
  47. package/bundles/chunk-HYFCMILZ.js.map +0 -6
  48. package/bundles/chunk-JYL7IHZC.js.map +0 -6
  49. package/bundles/chunk-O4JLZZWJ.js.map +0 -6
  50. package/bundles/chunk-OAZD7RII.js +0 -5263
  51. package/bundles/chunk-OAZD7RII.js.map +0 -6
  52. package/bundles/chunk-Q6W3UCXI.js.map +0 -6
  53. package/bundles/chunk-YRDMG3GM.js +0 -115
  54. package/bundles/chunk-YRDMG3GM.js.map +0 -6
  55. package/bundles/chunk-Z534TW2O.js +0 -1540
  56. package/bundles/chunk-Z534TW2O.js.map +0 -6
  57. package/bundles/ngcc/index.js +0 -51
  58. package/bundles/ngcc/index.js.map +0 -6
  59. package/bundles/ngcc/main-ngcc.js +0 -48
  60. package/bundles/ngcc/main-ngcc.js.map +0 -6
  61. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +0 -113
  62. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +0 -6
  63. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +0 -34
  64. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js.map +0 -6
  65. package/ngcc/index.d.ts +0 -19
  66. package/ngcc/main-ngcc.d.ts +0 -2
  67. package/ngcc/src/analysis/decoration_analyzer.d.ts +0 -80
  68. package/ngcc/src/analysis/migration_host.d.ts +0 -22
  69. package/ngcc/src/analysis/module_with_providers_analyzer.d.ts +0 -61
  70. package/ngcc/src/analysis/ngcc_references_registry.d.ts +0 -34
  71. package/ngcc/src/analysis/ngcc_trait_compiler.d.ts +0 -42
  72. package/ngcc/src/analysis/private_declarations_analyzer.d.ts +0 -29
  73. package/ngcc/src/analysis/types.d.ts +0 -29
  74. package/ngcc/src/analysis/util.d.ts +0 -11
  75. package/ngcc/src/command_line_options.d.ts +0 -3
  76. package/ngcc/src/constants.d.ts +0 -9
  77. package/ngcc/src/dependencies/commonjs_dependency_host.d.ts +0 -20
  78. package/ngcc/src/dependencies/dependency_host.d.ts +0 -77
  79. package/ngcc/src/dependencies/dependency_resolver.d.ts +0 -102
  80. package/ngcc/src/dependencies/dts_dependency_host.d.ts +0 -20
  81. package/ngcc/src/dependencies/esm_dependency_host.d.ts +0 -93
  82. package/ngcc/src/dependencies/module_resolver.d.ts +0 -134
  83. package/ngcc/src/dependencies/umd_dependency_host.d.ts +0 -9
  84. package/ngcc/src/entry_point_finder/directory_walker_entry_point_finder.d.ts +0 -41
  85. package/ngcc/src/entry_point_finder/entry_point_collector.d.ts +0 -41
  86. package/ngcc/src/entry_point_finder/interface.d.ts +0 -14
  87. package/ngcc/src/entry_point_finder/program_based_entry_point_finder.d.ts +0 -61
  88. package/ngcc/src/entry_point_finder/targeted_entry_point_finder.d.ts +0 -95
  89. package/ngcc/src/entry_point_finder/tracing_entry_point_finder.d.ts +0 -67
  90. package/ngcc/src/entry_point_finder/utils.d.ts +0 -38
  91. package/ngcc/src/execution/analyze_entry_points.d.ts +0 -9
  92. package/ngcc/src/execution/api.d.ts +0 -27
  93. package/ngcc/src/execution/cluster/api.d.ts +0 -51
  94. package/ngcc/src/execution/cluster/executor.d.ts +0 -29
  95. package/ngcc/src/execution/cluster/master.d.ts +0 -57
  96. package/ngcc/src/execution/cluster/ngcc_cluster_worker.d.ts +0 -8
  97. package/ngcc/src/execution/cluster/package_json_updater.d.ts +0 -22
  98. package/ngcc/src/execution/cluster/utils.d.ts +0 -44
  99. package/ngcc/src/execution/cluster/worker.d.ts +0 -10
  100. package/ngcc/src/execution/create_compile_function.d.ts +0 -10
  101. package/ngcc/src/execution/single_process_executor.d.ts +0 -34
  102. package/ngcc/src/execution/tasks/api.d.ts +0 -141
  103. package/ngcc/src/execution/tasks/completion.d.ts +0 -41
  104. package/ngcc/src/execution/tasks/queues/base_task_queue.d.ts +0 -38
  105. package/ngcc/src/execution/tasks/queues/parallel_task_queue.d.ts +0 -27
  106. package/ngcc/src/execution/tasks/queues/serial_task_queue.d.ts +0 -16
  107. package/ngcc/src/execution/tasks/utils.d.ts +0 -57
  108. package/ngcc/src/host/commonjs_host.d.ts +0 -69
  109. package/ngcc/src/host/commonjs_umd_utils.d.ts +0 -146
  110. package/ngcc/src/host/delegating_host.d.ts +0 -43
  111. package/ngcc/src/host/esm2015_host.d.ts +0 -935
  112. package/ngcc/src/host/esm5_host.d.ts +0 -299
  113. package/ngcc/src/host/ngcc_host.d.ts +0 -87
  114. package/ngcc/src/host/umd_host.d.ts +0 -85
  115. package/ngcc/src/host/utils.d.ts +0 -9
  116. package/ngcc/src/locking/async_locker.d.ts +0 -34
  117. package/ngcc/src/locking/lock_file.d.ts +0 -31
  118. package/ngcc/src/locking/lock_file_with_child_process/index.d.ts +0 -44
  119. package/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.d.ts +0 -1
  120. package/ngcc/src/locking/lock_file_with_child_process/util.d.ts +0 -16
  121. package/ngcc/src/locking/sync_locker.d.ts +0 -35
  122. package/ngcc/src/main.d.ts +0 -17
  123. package/ngcc/src/migrations/migration.d.ts +0 -59
  124. package/ngcc/src/migrations/missing_injectable_migration.d.ts +0 -35
  125. package/ngcc/src/migrations/undecorated_child_migration.d.ts +0 -15
  126. package/ngcc/src/migrations/undecorated_parent_migration.d.ts +0 -51
  127. package/ngcc/src/migrations/utils.d.ts +0 -41
  128. package/ngcc/src/ngcc_options.d.ts +0 -155
  129. package/ngcc/src/packages/adjust_cjs_umd_exports.d.ts +0 -16
  130. package/ngcc/src/packages/build_marker.d.ts +0 -44
  131. package/ngcc/src/packages/bundle_program.d.ts +0 -35
  132. package/ngcc/src/packages/configuration.d.ts +0 -222
  133. package/ngcc/src/packages/entry_point.d.ts +0 -109
  134. package/ngcc/src/packages/entry_point_bundle.d.ts +0 -46
  135. package/ngcc/src/packages/entry_point_manifest.d.ts +0 -79
  136. package/ngcc/src/packages/ngcc_compiler_host.d.ts +0 -36
  137. package/ngcc/src/packages/patch_ts_expando_initializer.d.ts +0 -41
  138. package/ngcc/src/packages/source_file_cache.d.ts +0 -97
  139. package/ngcc/src/packages/transformer.d.ts +0 -70
  140. package/ngcc/src/path_mappings.d.ts +0 -19
  141. package/ngcc/src/rendering/commonjs_rendering_formatter.d.ts +0 -34
  142. package/ngcc/src/rendering/dts_renderer.d.ts +0 -51
  143. package/ngcc/src/rendering/esm5_rendering_formatter.d.ts +0 -35
  144. package/ngcc/src/rendering/esm_rendering_formatter.d.ts +0 -84
  145. package/ngcc/src/rendering/ngcc_import_rewriter.d.ts +0 -13
  146. package/ngcc/src/rendering/renderer.d.ts +0 -72
  147. package/ngcc/src/rendering/rendering_formatter.d.ts +0 -37
  148. package/ngcc/src/rendering/source_maps.d.ts +0 -23
  149. package/ngcc/src/rendering/umd_rendering_formatter.d.ts +0 -54
  150. package/ngcc/src/rendering/utils.d.ts +0 -24
  151. package/ngcc/src/utils.d.ts +0 -112
  152. package/ngcc/src/writing/cleaning/cleaning_strategies.d.ts +0 -44
  153. package/ngcc/src/writing/cleaning/package_cleaner.d.ts +0 -38
  154. package/ngcc/src/writing/cleaning/utils.d.ts +0 -15
  155. package/ngcc/src/writing/file_writer.d.ts +0 -28
  156. package/ngcc/src/writing/in_place_file_writer.d.ts +0 -28
  157. package/ngcc/src/writing/new_entry_point_file_writer.d.ts +0 -48
  158. package/ngcc/src/writing/package_json_updater.d.ts +0 -98
  159. package/src/ngtsc/shims/src/factory_generator.d.ts +0 -24
  160. package/src/ngtsc/shims/src/summary_generator.d.ts +0 -15
  161. package/src/transformers/downlevel_decorators_transform/patch_alias_reference_resolution.d.ts +0 -14
  162. /package/bundles/{chunk-ZB4CDKOH.js.map → chunk-4TCRZYAK.js.map} +0 -0
  163. /package/bundles/{chunk-NJMZRTB6.js.map → chunk-54RHUHYB.js.map} +0 -0
  164. /package/bundles/{chunk-64X67E3N.js.map → chunk-6CARGXRJ.js.map} +0 -0
  165. /package/bundles/{chunk-6ZJFIQBG.js.map → chunk-GYHDNUIK.js.map} +0 -0
@@ -35,11 +35,18 @@ import {
35
35
  aliasTransformFactory,
36
36
  declarationTransformFactory,
37
37
  ivyTransformFactory
38
- } from "./chunk-JYL7IHZC.js";
38
+ } from "./chunk-2DMH5JXJ.js";
39
39
  import {
40
40
  TypeScriptReflectionHost,
41
41
  isNamedClassDeclaration
42
- } from "./chunk-O4JLZZWJ.js";
42
+ } from "./chunk-EDWIBG7R.js";
43
+ import {
44
+ ImportManager,
45
+ createFunctionDeclaration,
46
+ createParameterDeclaration,
47
+ translateExpression,
48
+ translateType
49
+ } from "./chunk-PSGRCFPQ.js";
43
50
  import {
44
51
  AbsoluteModuleStrategy,
45
52
  AliasStrategy,
@@ -49,7 +56,6 @@ import {
49
56
  ErrorCode,
50
57
  ExtendedTemplateDiagnosticName,
51
58
  ImportFlags,
52
- ImportManager,
53
59
  LocalIdentifierStrategy,
54
60
  LogicalProjectStrategy,
55
61
  ModuleResolver,
@@ -63,8 +69,6 @@ import {
63
69
  UnifiedModulesStrategy,
64
70
  addDiagnosticChain,
65
71
  assertSuccessfulReferenceEmit,
66
- createFunctionDeclaration,
67
- createParameterDeclaration,
68
72
  getRootDirs,
69
73
  getSourceFileOrNull,
70
74
  getTokenAtPosition,
@@ -79,28 +83,25 @@ import {
79
83
  normalizeSeparators,
80
84
  relativePathBetween,
81
85
  replaceTsWithNgInErrors,
82
- toUnredirectedSourceFile,
83
- translateExpression,
84
- translateType
85
- } from "./chunk-Z534TW2O.js";
86
+ toUnredirectedSourceFile
87
+ } from "./chunk-K2A5WD7L.js";
88
+ import {
89
+ ActivePerfRecorder,
90
+ DelegatingPerfRecorder,
91
+ PerfCheckpoint,
92
+ PerfEvent,
93
+ PerfPhase
94
+ } from "./chunk-54RHUHYB.js";
86
95
  import {
87
96
  LogicalFileSystem,
88
97
  absoluteFrom,
89
98
  absoluteFromSourceFile,
90
- basename,
91
99
  dirname,
92
100
  getFileSystem,
93
101
  getSourceFileOrError,
94
102
  join,
95
103
  resolve
96
104
  } from "./chunk-EC5K6QPP.js";
97
- import {
98
- ActivePerfRecorder,
99
- DelegatingPerfRecorder,
100
- PerfCheckpoint,
101
- PerfEvent,
102
- PerfPhase
103
- } from "./chunk-NJMZRTB6.js";
104
105
 
105
106
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
106
107
  var DEFAULT_ERROR_CODE = 100;
@@ -132,7 +133,7 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
132
133
 
133
134
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
134
135
  import { HtmlParser, MessageBundle } from "@angular/compiler";
135
- import ts34 from "typescript";
136
+ import ts32 from "typescript";
136
137
 
137
138
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
138
139
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
@@ -237,7 +238,7 @@ function verifySupportedTypeScriptVersion() {
237
238
  }
238
239
 
239
240
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
240
- import ts32 from "typescript";
241
+ import ts30 from "typescript";
241
242
 
242
243
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
243
244
  var CycleAnalyzer = class {
@@ -586,7 +587,7 @@ var UpdateMode;
586
587
  })(UpdateMode || (UpdateMode = {}));
587
588
 
588
589
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
589
- import ts9 from "typescript";
590
+ import ts7 from "typescript";
590
591
 
591
592
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
592
593
  import ts6 from "typescript";
@@ -656,15 +657,6 @@ var TS_EXTENSIONS = /\.tsx?$/i;
656
657
  function makeShimFileName(fileName, suffix) {
657
658
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
658
659
  }
659
- function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
660
- let moduleName;
661
- if (originalFileName.endsWith("/index.ts")) {
662
- moduleName = originalModuleName + "/index" + genSuffix;
663
- } else {
664
- moduleName = originalModuleName + genSuffix;
665
- }
666
- return moduleName;
667
- }
668
660
 
669
661
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
670
662
  var ShimAdapter = class {
@@ -761,166 +753,6 @@ var ShimAdapter = class {
761
753
  }
762
754
  };
763
755
 
764
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
765
- import ts7 from "typescript";
766
- var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
767
- var STRIP_NG_FACTORY = /(.*)NgFactory$/;
768
- var FactoryGenerator = class {
769
- constructor() {
770
- this.sourceInfo = /* @__PURE__ */ new Map();
771
- this.sourceToFactorySymbols = /* @__PURE__ */ new Map();
772
- this.shouldEmit = true;
773
- this.extensionPrefix = "ngfactory";
774
- }
775
- generateShimForFile(sf, genFilePath) {
776
- const absoluteSfPath = absoluteFromSourceFile(sf);
777
- const relativePathToSource = "./" + basename(sf.fileName).replace(TS_DTS_SUFFIX, "");
778
- const symbolNames = sf.statements.filter(ts7.isClassDeclaration).filter((decl) => isExported(decl) && ts7.getDecorators(decl) !== void 0 && decl.name !== void 0).map((decl) => decl.name.text);
779
- let sourceText = "";
780
- const leadingComment = getFileoverviewComment(sf);
781
- if (leadingComment !== null) {
782
- sourceText = leadingComment + "\n\n";
783
- }
784
- if (symbolNames.length > 0) {
785
- const varLines = symbolNames.map((name) => `export const ${name}NgFactory: i0.\u0275NgModuleFactory<any> = new i0.\u0275NgModuleFactory(${name});`);
786
- sourceText += [
787
- `import * as i0 from '@angular/core';`,
788
- `import {${symbolNames.join(", ")}} from '${relativePathToSource}';`,
789
- ...varLines
790
- ].join("\n");
791
- }
792
- sourceText += "\nexport const \u0275NonEmptyModule = true;";
793
- const genFile = ts7.createSourceFile(genFilePath, sourceText, sf.languageVersion, true, ts7.ScriptKind.TS);
794
- if (sf.moduleName !== void 0) {
795
- genFile.moduleName = generatedModuleName(sf.moduleName, sf.fileName, ".ngfactory");
796
- }
797
- const moduleSymbols = /* @__PURE__ */ new Map();
798
- this.sourceToFactorySymbols.set(absoluteSfPath, moduleSymbols);
799
- this.sourceInfo.set(genFilePath, {
800
- sourceFilePath: absoluteSfPath,
801
- moduleSymbols
802
- });
803
- return genFile;
804
- }
805
- track(sf, moduleInfo) {
806
- if (this.sourceToFactorySymbols.has(sf.fileName)) {
807
- this.sourceToFactorySymbols.get(sf.fileName).set(moduleInfo.name, moduleInfo);
808
- }
809
- }
810
- };
811
- function isExported(decl) {
812
- const modifiers = ts7.canHaveModifiers(decl) ? ts7.getModifiers(decl) : void 0;
813
- return modifiers !== void 0 && modifiers.some((mod) => mod.kind == ts7.SyntaxKind.ExportKeyword);
814
- }
815
- function generatedFactoryTransform(factoryMap, importRewriter) {
816
- return (context) => {
817
- return (file) => {
818
- return transformFactorySourceFile(factoryMap, context, importRewriter, file);
819
- };
820
- };
821
- }
822
- function transformFactorySourceFile(factoryMap, context, importRewriter, file) {
823
- if (!factoryMap.has(file.fileName)) {
824
- return file;
825
- }
826
- const { moduleSymbols, sourceFilePath } = factoryMap.get(file.fileName);
827
- const transformedStatements = [];
828
- let nonEmptyExport = null;
829
- const coreImportIdentifiers = /* @__PURE__ */ new Set();
830
- for (const stmt of file.statements) {
831
- if (ts7.isImportDeclaration(stmt) && ts7.isStringLiteral(stmt.moduleSpecifier) && stmt.moduleSpecifier.text === "@angular/core") {
832
- const rewrittenModuleSpecifier = importRewriter.rewriteSpecifier("@angular/core", sourceFilePath);
833
- if (rewrittenModuleSpecifier !== stmt.moduleSpecifier.text) {
834
- transformedStatements.push(ts7.factory.updateImportDeclaration(stmt, ts7.getModifiers(stmt), stmt.importClause, ts7.factory.createStringLiteral(rewrittenModuleSpecifier), void 0));
835
- if (stmt.importClause !== void 0 && stmt.importClause.namedBindings !== void 0 && ts7.isNamespaceImport(stmt.importClause.namedBindings)) {
836
- coreImportIdentifiers.add(stmt.importClause.namedBindings.name.text);
837
- }
838
- } else {
839
- transformedStatements.push(stmt);
840
- }
841
- } else if (ts7.isVariableStatement(stmt) && stmt.declarationList.declarations.length === 1) {
842
- const decl = stmt.declarationList.declarations[0];
843
- if (ts7.isIdentifier(decl.name)) {
844
- if (decl.name.text === "\u0275NonEmptyModule") {
845
- nonEmptyExport = stmt;
846
- continue;
847
- }
848
- const match = STRIP_NG_FACTORY.exec(decl.name.text);
849
- const module = match ? moduleSymbols.get(match[1]) : null;
850
- if (module) {
851
- transformedStatements.push(updateInitializers(stmt, (init) => init ? wrapInNoSideEffects(init) : void 0));
852
- }
853
- } else {
854
- transformedStatements.push(stmt);
855
- }
856
- } else {
857
- transformedStatements.push(stmt);
858
- }
859
- }
860
- if (!transformedStatements.some(ts7.isVariableStatement) && nonEmptyExport !== null) {
861
- transformedStatements.push(nonEmptyExport);
862
- }
863
- file = ts7.factory.updateSourceFile(file, transformedStatements);
864
- if (coreImportIdentifiers.size > 0) {
865
- const visit = (node) => {
866
- node = ts7.visitEachChild(node, (child) => visit(child), context);
867
- if (ts7.isPropertyAccessExpression(node) && ts7.isIdentifier(node.expression) && coreImportIdentifiers.has(node.expression.text)) {
868
- const rewrittenSymbol = importRewriter.rewriteSymbol(node.name.text, "@angular/core");
869
- if (rewrittenSymbol !== node.name.text) {
870
- const updated = ts7.factory.updatePropertyAccessExpression(node, node.expression, ts7.factory.createIdentifier(rewrittenSymbol));
871
- node = updated;
872
- }
873
- }
874
- return node;
875
- };
876
- file = visit(file);
877
- }
878
- return file;
879
- }
880
- function getFileoverviewComment(sourceFile) {
881
- const text = sourceFile.getFullText();
882
- const trivia = text.substring(0, sourceFile.getStart());
883
- const leadingComments = ts7.getLeadingCommentRanges(trivia, 0);
884
- if (!leadingComments || leadingComments.length === 0) {
885
- return null;
886
- }
887
- const comment = leadingComments[0];
888
- if (comment.kind !== ts7.SyntaxKind.MultiLineCommentTrivia) {
889
- return null;
890
- }
891
- if (text.substring(comment.end, comment.end + 2) !== "\n\n") {
892
- return null;
893
- }
894
- const commentText = text.substring(comment.pos, comment.end);
895
- if (commentText.indexOf("@license") !== -1) {
896
- return null;
897
- }
898
- return commentText;
899
- }
900
- function wrapInNoSideEffects(expr) {
901
- const noSideEffects = ts7.factory.createPropertyAccessExpression(ts7.factory.createIdentifier("i0"), "\u0275noSideEffects");
902
- return ts7.factory.createCallExpression(
903
- noSideEffects,
904
- [],
905
- [
906
- ts7.factory.createFunctionExpression(
907
- [],
908
- void 0,
909
- void 0,
910
- [],
911
- [],
912
- void 0,
913
- ts7.factory.createBlock([
914
- ts7.factory.createReturnStatement(expr)
915
- ])
916
- )
917
- ]
918
- );
919
- }
920
- function updateInitializers(stmt, update) {
921
- return ts7.factory.updateVariableStatement(stmt, ts7.getModifiers(stmt), ts7.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts7.factory.updateVariableDeclaration(decl, decl.name, decl.exclamationToken, decl.type, update(decl.initializer)))));
922
- }
923
-
924
756
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
925
757
  var ShimReferenceTagger = class {
926
758
  constructor(shimExtensions) {
@@ -955,47 +787,6 @@ var ShimReferenceTagger = class {
955
787
  }
956
788
  };
957
789
 
958
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
959
- import ts8 from "typescript";
960
- var SummaryGenerator = class {
961
- constructor() {
962
- this.shouldEmit = true;
963
- this.extensionPrefix = "ngsummary";
964
- }
965
- generateShimForFile(sf, genFilePath) {
966
- const symbolNames = [];
967
- for (const stmt of sf.statements) {
968
- if (ts8.isClassDeclaration(stmt)) {
969
- if (!isExported2(stmt) || stmt.name === void 0 || ts8.getDecorators(stmt) === void 0) {
970
- continue;
971
- }
972
- symbolNames.push(stmt.name.text);
973
- } else if (ts8.isExportDeclaration(stmt)) {
974
- if (stmt.exportClause === void 0 || stmt.moduleSpecifier !== void 0 || !ts8.isNamedExports(stmt.exportClause)) {
975
- continue;
976
- }
977
- for (const specifier of stmt.exportClause.elements) {
978
- symbolNames.push(specifier.name.text);
979
- }
980
- }
981
- }
982
- const varLines = symbolNames.map((name) => `export const ${name}NgSummary: any = null;`);
983
- if (varLines.length === 0) {
984
- varLines.push(`export const \u0275empty = null;`);
985
- }
986
- const sourceText = varLines.join("\n");
987
- const genFile = ts8.createSourceFile(genFilePath, sourceText, sf.languageVersion, true, ts8.ScriptKind.TS);
988
- if (sf.moduleName !== void 0) {
989
- genFile.moduleName = generatedModuleName(sf.moduleName, sf.fileName, ".ngsummary");
990
- }
991
- return genFile;
992
- }
993
- };
994
- function isExported2(decl) {
995
- const modifiers = ts8.canHaveModifiers(decl) ? ts8.getModifiers(decl) : void 0;
996
- return modifiers !== void 0 && modifiers.some((mod) => mod.kind == ts8.SyntaxKind.ExportKeyword) || false;
997
- }
998
-
999
790
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1000
791
  var DelegatingCompilerHost = class {
1001
792
  constructor(delegate) {
@@ -1086,7 +877,7 @@ var TsCreateProgramDriver = class {
1086
877
  this.sfMap.clear();
1087
878
  }
1088
879
  for (const [filePath, { newText, originalFile }] of contents.entries()) {
1089
- const sf = ts9.createSourceFile(filePath, newText, ts9.ScriptTarget.Latest, true);
880
+ const sf = ts7.createSourceFile(filePath, newText, ts7.ScriptTarget.Latest, true);
1090
881
  if (originalFile !== null) {
1091
882
  sf[NgOriginalFile] = originalFile;
1092
883
  }
@@ -1095,7 +886,7 @@ var TsCreateProgramDriver = class {
1095
886
  const host = new UpdatedProgramHost(this.sfMap, this.originalProgram, this.originalHost, this.shimExtensionPrefixes);
1096
887
  const oldProgram = this.program;
1097
888
  retagAllTsFiles(oldProgram);
1098
- this.program = ts9.createProgram({
889
+ this.program = ts7.createProgram({
1099
890
  host,
1100
891
  rootNames: this.program.getRootFileNames(),
1101
892
  options: this.options,
@@ -1813,7 +1604,7 @@ var NgModuleIndexImpl = class {
1813
1604
  };
1814
1605
 
1815
1606
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
1816
- import ts10 from "typescript";
1607
+ import ts8 from "typescript";
1817
1608
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
1818
1609
  var RESOURCE_MARKER = ".$ngresource$";
1819
1610
  var RESOURCE_MARKER_TS = RESOURCE_MARKER + ".ts";
@@ -1923,7 +1714,7 @@ var AdapterResourceLoader = class {
1923
1714
  return this.adapter.rootDirs.map((rootDir) => join(rootDir, segment));
1924
1715
  }
1925
1716
  getResolvedCandidateLocations(url, fromFile) {
1926
- const failedLookup = ts10.resolveModuleName(url + RESOURCE_MARKER, fromFile, this.options, this.lookupResolutionHost);
1717
+ const failedLookup = ts8.resolveModuleName(url + RESOURCE_MARKER, fromFile, this.options, this.lookupResolutionHost);
1927
1718
  if (failedLookup.failedLookupLocations === void 0) {
1928
1719
  throw new Error(`Internal error: expected to find failedLookupLocations during resolution of resource '${url}' in context of ${fromFile}`);
1929
1720
  }
@@ -2040,7 +1831,7 @@ var StandaloneComponentScopeReader = class {
2040
1831
  import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr } from "@angular/compiler";
2041
1832
 
2042
1833
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
2043
- import ts11 from "typescript";
1834
+ import ts9 from "typescript";
2044
1835
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
2045
1836
  var _a;
2046
1837
  if (mapping.type === "direct") {
@@ -2049,7 +1840,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
2049
1840
  relatedInformation = [];
2050
1841
  for (const relatedMessage of relatedMessages) {
2051
1842
  relatedInformation.push({
2052
- category: ts11.DiagnosticCategory.Message,
1843
+ category: ts9.DiagnosticCategory.Message,
2053
1844
  code: 0,
2054
1845
  file: relatedMessage.sourceFile,
2055
1846
  start: relatedMessage.start,
@@ -2078,7 +1869,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
2078
1869
  if (relatedMessages !== void 0) {
2079
1870
  for (const relatedMessage of relatedMessages) {
2080
1871
  relatedInformation.push({
2081
- category: ts11.DiagnosticCategory.Message,
1872
+ category: ts9.DiagnosticCategory.Message,
2082
1873
  code: 0,
2083
1874
  file: relatedMessage.sourceFile,
2084
1875
  start: relatedMessage.start,
@@ -2108,7 +1899,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
2108
1899
  };
2109
1900
  }
2110
1901
  relatedInformation.push({
2111
- category: ts11.DiagnosticCategory.Message,
1902
+ category: ts9.DiagnosticCategory.Message,
2112
1903
  code: 0,
2113
1904
  file: componentSf,
2114
1905
  start: mapping.node.getStart(),
@@ -2143,7 +1934,7 @@ function parseTemplateAsSourceFile(fileName, template) {
2143
1934
  if (parseTemplateAsSourceFileForTest !== null) {
2144
1935
  return parseTemplateAsSourceFileForTest(fileName, template);
2145
1936
  }
2146
- return ts11.createSourceFile(fileName, template, ts11.ScriptTarget.Latest, false, ts11.ScriptKind.JSX);
1937
+ return ts9.createSourceFile(fileName, template, ts9.ScriptTarget.Latest, false, ts9.ScriptKind.JSX);
2147
1938
  }
2148
1939
 
2149
1940
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
@@ -2165,15 +1956,15 @@ function allocateTemplateId(sf) {
2165
1956
 
2166
1957
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2167
1958
  import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
2168
- import ts13 from "typescript";
1959
+ import ts11 from "typescript";
2169
1960
 
2170
1961
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
2171
1962
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
2172
- import ts12 from "typescript";
1963
+ import ts10 from "typescript";
2173
1964
  var parseSpanComment = /^(\d+),(\d+)$/;
2174
1965
  function readSpanComment(node, sourceFile = node.getSourceFile()) {
2175
- return ts12.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
2176
- if (kind !== ts12.SyntaxKind.MultiLineCommentTrivia) {
1966
+ return ts10.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
1967
+ if (kind !== ts10.SyntaxKind.MultiLineCommentTrivia) {
2177
1968
  return null;
2178
1969
  }
2179
1970
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -2196,25 +1987,25 @@ var ExpressionIdentifier;
2196
1987
  ExpressionIdentifier2["EVENT_PARAMETER"] = "EP";
2197
1988
  })(ExpressionIdentifier || (ExpressionIdentifier = {}));
2198
1989
  function addExpressionIdentifier(node, identifier) {
2199
- ts12.addSyntheticTrailingComment(
1990
+ ts10.addSyntheticTrailingComment(
2200
1991
  node,
2201
- ts12.SyntaxKind.MultiLineCommentTrivia,
1992
+ ts10.SyntaxKind.MultiLineCommentTrivia,
2202
1993
  `${CommentTriviaType.EXPRESSION_TYPE_IDENTIFIER}:${identifier}`,
2203
1994
  false
2204
1995
  );
2205
1996
  }
2206
1997
  var IGNORE_FOR_DIAGNOSTICS_MARKER = `${CommentTriviaType.DIAGNOSTIC}:ignore`;
2207
1998
  function markIgnoreDiagnostics(node) {
2208
- ts12.addSyntheticTrailingComment(
1999
+ ts10.addSyntheticTrailingComment(
2209
2000
  node,
2210
- ts12.SyntaxKind.MultiLineCommentTrivia,
2001
+ ts10.SyntaxKind.MultiLineCommentTrivia,
2211
2002
  IGNORE_FOR_DIAGNOSTICS_MARKER,
2212
2003
  false
2213
2004
  );
2214
2005
  }
2215
2006
  function hasIgnoreForDiagnosticsMarker(node, sourceFile) {
2216
- return ts12.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
2217
- if (kind !== ts12.SyntaxKind.MultiLineCommentTrivia) {
2007
+ return ts10.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
2008
+ if (kind !== ts10.SyntaxKind.MultiLineCommentTrivia) {
2218
2009
  return null;
2219
2010
  }
2220
2011
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -2288,8 +2079,8 @@ function findAllMatchingNodes(tcb, opts) {
2288
2079
  return results;
2289
2080
  }
2290
2081
  function hasExpressionIdentifier(sourceFile, node, identifier) {
2291
- return ts12.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
2292
- if (kind !== ts12.SyntaxKind.MultiLineCommentTrivia) {
2082
+ return ts10.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
2083
+ if (kind !== ts10.SyntaxKind.MultiLineCommentTrivia) {
2293
2084
  return false;
2294
2085
  }
2295
2086
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -2307,7 +2098,7 @@ var CompletionEngine = class {
2307
2098
  this.templateContextCache = /* @__PURE__ */ new Map();
2308
2099
  this.expressionCompletionCache = /* @__PURE__ */ new Map();
2309
2100
  const globalRead = findFirstMatchingNode(this.tcb, {
2310
- filter: ts13.isPropertyAccessExpression,
2101
+ filter: ts11.isPropertyAccessExpression,
2311
2102
  withExpressionIdentifier: ExpressionIdentifier.COMPONENT_COMPLETION
2312
2103
  });
2313
2104
  if (globalRead !== null) {
@@ -2331,7 +2122,7 @@ var CompletionEngine = class {
2331
2122
  let nodeContext = null;
2332
2123
  if (node instanceof EmptyExpr) {
2333
2124
  const nodeLocation = findFirstMatchingNode(this.tcb, {
2334
- filter: ts13.isIdentifier,
2125
+ filter: ts11.isIdentifier,
2335
2126
  withSpan: node.sourceSpan
2336
2127
  });
2337
2128
  if (nodeLocation !== null) {
@@ -2344,7 +2135,7 @@ var CompletionEngine = class {
2344
2135
  }
2345
2136
  if (node instanceof PropertyRead2 && node.receiver instanceof ImplicitReceiver2) {
2346
2137
  const nodeLocation = findFirstMatchingNode(this.tcb, {
2347
- filter: ts13.isPropertyAccessExpression,
2138
+ filter: ts11.isPropertyAccessExpression,
2348
2139
  withSpan: node.sourceSpan
2349
2140
  });
2350
2141
  if (nodeLocation) {
@@ -2368,21 +2159,21 @@ var CompletionEngine = class {
2368
2159
  let tsExpr = null;
2369
2160
  if (expr instanceof PropertyRead2 || expr instanceof PropertyWrite2) {
2370
2161
  tsExpr = findFirstMatchingNode(this.tcb, {
2371
- filter: ts13.isPropertyAccessExpression,
2162
+ filter: ts11.isPropertyAccessExpression,
2372
2163
  withSpan: expr.nameSpan
2373
2164
  });
2374
2165
  } else if (expr instanceof SafePropertyRead) {
2375
2166
  const ternaryExpr = findFirstMatchingNode(this.tcb, {
2376
- filter: ts13.isParenthesizedExpression,
2167
+ filter: ts11.isParenthesizedExpression,
2377
2168
  withSpan: expr.sourceSpan
2378
2169
  });
2379
- if (ternaryExpr === null || !ts13.isConditionalExpression(ternaryExpr.expression)) {
2170
+ if (ternaryExpr === null || !ts11.isConditionalExpression(ternaryExpr.expression)) {
2380
2171
  return null;
2381
2172
  }
2382
2173
  const whenTrue = ternaryExpr.expression.whenTrue;
2383
- if (ts13.isPropertyAccessExpression(whenTrue)) {
2174
+ if (ts11.isPropertyAccessExpression(whenTrue)) {
2384
2175
  tsExpr = whenTrue;
2385
- } else if (ts13.isCallExpression(whenTrue) && ts13.isPropertyAccessExpression(whenTrue.expression)) {
2176
+ } else if (ts11.isCallExpression(whenTrue) && ts11.isPropertyAccessExpression(whenTrue.expression)) {
2386
2177
  tsExpr = whenTrue.expression;
2387
2178
  }
2388
2179
  }
@@ -2404,15 +2195,15 @@ var CompletionEngine = class {
2404
2195
  let tsExpr = null;
2405
2196
  if (expr instanceof TmplAstTextAttribute) {
2406
2197
  const strNode = findFirstMatchingNode(this.tcb, {
2407
- filter: ts13.isParenthesizedExpression,
2198
+ filter: ts11.isParenthesizedExpression,
2408
2199
  withSpan: expr.sourceSpan
2409
2200
  });
2410
- if (strNode !== null && ts13.isStringLiteral(strNode.expression)) {
2201
+ if (strNode !== null && ts11.isStringLiteral(strNode.expression)) {
2411
2202
  tsExpr = strNode.expression;
2412
2203
  }
2413
2204
  } else {
2414
2205
  tsExpr = findFirstMatchingNode(this.tcb, {
2415
- filter: (n) => ts13.isStringLiteral(n) || ts13.isNumericLiteral(n),
2206
+ filter: (n) => ts11.isStringLiteral(n) || ts11.isNumericLiteral(n),
2416
2207
  withSpan: expr.sourceSpan
2417
2208
  });
2418
2209
  }
@@ -2420,7 +2211,7 @@ var CompletionEngine = class {
2420
2211
  return null;
2421
2212
  }
2422
2213
  let positionInShimFile = tsExpr.getEnd();
2423
- if (ts13.isStringLiteral(tsExpr)) {
2214
+ if (ts11.isStringLiteral(tsExpr)) {
2424
2215
  positionInShimFile -= 1;
2425
2216
  }
2426
2217
  const res = {
@@ -2455,11 +2246,11 @@ var CompletionEngine = class {
2455
2246
  };
2456
2247
 
2457
2248
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
2458
- import ts27 from "typescript";
2249
+ import ts25 from "typescript";
2459
2250
 
2460
2251
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
2461
2252
  import { DomElementSchemaRegistry } from "@angular/compiler";
2462
- import ts14 from "typescript";
2253
+ import ts12 from "typescript";
2463
2254
  var REGISTRY = new DomElementSchemaRegistry();
2464
2255
  var REMOVE_XHTML_REGEX = /^:xhtml:/;
2465
2256
  var RegistryDomSchemaChecker = class {
@@ -2484,7 +2275,7 @@ var RegistryDomSchemaChecker = class {
2484
2275
  } else {
2485
2276
  errorMsg += `2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
2486
2277
  }
2487
- const diag = makeTemplateDiagnostic(id, mapping, element.startSourceSpan, ts14.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ELEMENT), errorMsg);
2278
+ const diag = makeTemplateDiagnostic(id, mapping, element.startSourceSpan, ts12.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ELEMENT), errorMsg);
2488
2279
  this._diagnostics.push(diag);
2489
2280
  }
2490
2281
  }
@@ -2504,7 +2295,7 @@ var RegistryDomSchemaChecker = class {
2504
2295
  2. If '${element.name}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${schemas2} of this component to suppress this message.
2505
2296
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
2506
2297
  }
2507
- const diag = makeTemplateDiagnostic(id, mapping, span, ts14.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ATTRIBUTE), errorMsg);
2298
+ const diag = makeTemplateDiagnostic(id, mapping, span, ts12.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ATTRIBUTE), errorMsg);
2508
2299
  this._diagnostics.push(diag);
2509
2300
  }
2510
2301
  }
@@ -2512,93 +2303,93 @@ var RegistryDomSchemaChecker = class {
2512
2303
 
2513
2304
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2514
2305
  import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
2515
- import ts20 from "typescript";
2306
+ import ts18 from "typescript";
2516
2307
 
2517
2308
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
2518
- import ts15 from "typescript";
2309
+ import ts13 from "typescript";
2519
2310
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
2520
- ts15.SyntaxKind.ParenthesizedExpression,
2521
- ts15.SyntaxKind.Identifier,
2522
- ts15.SyntaxKind.CallExpression,
2523
- ts15.SyntaxKind.NonNullExpression,
2524
- ts15.SyntaxKind.ElementAccessExpression,
2525
- ts15.SyntaxKind.PropertyAccessExpression,
2526
- ts15.SyntaxKind.ArrayLiteralExpression,
2527
- ts15.SyntaxKind.ObjectLiteralExpression,
2528
- ts15.SyntaxKind.StringLiteral,
2529
- ts15.SyntaxKind.NumericLiteral,
2530
- ts15.SyntaxKind.TrueKeyword,
2531
- ts15.SyntaxKind.FalseKeyword,
2532
- ts15.SyntaxKind.NullKeyword,
2533
- ts15.SyntaxKind.UndefinedKeyword
2311
+ ts13.SyntaxKind.ParenthesizedExpression,
2312
+ ts13.SyntaxKind.Identifier,
2313
+ ts13.SyntaxKind.CallExpression,
2314
+ ts13.SyntaxKind.NonNullExpression,
2315
+ ts13.SyntaxKind.ElementAccessExpression,
2316
+ ts13.SyntaxKind.PropertyAccessExpression,
2317
+ ts13.SyntaxKind.ArrayLiteralExpression,
2318
+ ts13.SyntaxKind.ObjectLiteralExpression,
2319
+ ts13.SyntaxKind.StringLiteral,
2320
+ ts13.SyntaxKind.NumericLiteral,
2321
+ ts13.SyntaxKind.TrueKeyword,
2322
+ ts13.SyntaxKind.FalseKeyword,
2323
+ ts13.SyntaxKind.NullKeyword,
2324
+ ts13.SyntaxKind.UndefinedKeyword
2534
2325
  ]);
2535
2326
  function tsCastToAny(expr) {
2536
2327
  if (!SAFE_TO_CAST_WITHOUT_PARENS.has(expr.kind)) {
2537
- expr = ts15.factory.createParenthesizedExpression(expr);
2328
+ expr = ts13.factory.createParenthesizedExpression(expr);
2538
2329
  }
2539
- return ts15.factory.createParenthesizedExpression(ts15.factory.createAsExpression(expr, ts15.factory.createKeywordTypeNode(ts15.SyntaxKind.AnyKeyword)));
2330
+ return ts13.factory.createParenthesizedExpression(ts13.factory.createAsExpression(expr, ts13.factory.createKeywordTypeNode(ts13.SyntaxKind.AnyKeyword)));
2540
2331
  }
2541
2332
  function tsCreateElement(tagName) {
2542
- const createElement = ts15.factory.createPropertyAccessExpression(
2543
- ts15.factory.createIdentifier("document"),
2333
+ const createElement = ts13.factory.createPropertyAccessExpression(
2334
+ ts13.factory.createIdentifier("document"),
2544
2335
  "createElement"
2545
2336
  );
2546
- return ts15.factory.createCallExpression(
2337
+ return ts13.factory.createCallExpression(
2547
2338
  createElement,
2548
2339
  void 0,
2549
- [ts15.factory.createStringLiteral(tagName)]
2340
+ [ts13.factory.createStringLiteral(tagName)]
2550
2341
  );
2551
2342
  }
2552
2343
  function tsDeclareVariable(id, type) {
2553
- const decl = ts15.factory.createVariableDeclaration(
2344
+ const decl = ts13.factory.createVariableDeclaration(
2554
2345
  id,
2555
2346
  void 0,
2556
2347
  type,
2557
- ts15.factory.createNonNullExpression(ts15.factory.createNull())
2348
+ ts13.factory.createNonNullExpression(ts13.factory.createNull())
2558
2349
  );
2559
- return ts15.factory.createVariableStatement(
2350
+ return ts13.factory.createVariableStatement(
2560
2351
  void 0,
2561
2352
  [decl]
2562
2353
  );
2563
2354
  }
2564
2355
  function tsCreateTypeQueryForCoercedInput(typeName, coercedInputName) {
2565
- return ts15.factory.createTypeQueryNode(ts15.factory.createQualifiedName(typeName, `ngAcceptInputType_${coercedInputName}`));
2356
+ return ts13.factory.createTypeQueryNode(ts13.factory.createQualifiedName(typeName, `ngAcceptInputType_${coercedInputName}`));
2566
2357
  }
2567
2358
  function tsCreateVariable(id, initializer) {
2568
- const decl = ts15.factory.createVariableDeclaration(
2359
+ const decl = ts13.factory.createVariableDeclaration(
2569
2360
  id,
2570
2361
  void 0,
2571
2362
  void 0,
2572
2363
  initializer
2573
2364
  );
2574
- return ts15.factory.createVariableStatement(
2365
+ return ts13.factory.createVariableStatement(
2575
2366
  void 0,
2576
2367
  [decl]
2577
2368
  );
2578
2369
  }
2579
2370
  function tsCallMethod(receiver, methodName, args = []) {
2580
- const methodAccess = ts15.factory.createPropertyAccessExpression(receiver, methodName);
2581
- return ts15.factory.createCallExpression(
2371
+ const methodAccess = ts13.factory.createPropertyAccessExpression(receiver, methodName);
2372
+ return ts13.factory.createCallExpression(
2582
2373
  methodAccess,
2583
2374
  void 0,
2584
2375
  args
2585
2376
  );
2586
2377
  }
2587
2378
  function isAccessExpression(node) {
2588
- return ts15.isPropertyAccessExpression(node) || ts15.isElementAccessExpression(node);
2379
+ return ts13.isPropertyAccessExpression(node) || ts13.isElementAccessExpression(node);
2589
2380
  }
2590
2381
 
2591
2382
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2592
- import ts19 from "typescript";
2383
+ import ts17 from "typescript";
2593
2384
 
2594
2385
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2595
- import ts18 from "typescript";
2386
+ import ts16 from "typescript";
2596
2387
 
2597
2388
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2598
- import ts17 from "typescript";
2389
+ import ts15 from "typescript";
2599
2390
 
2600
2391
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
2601
- import ts16 from "typescript";
2392
+ import ts14 from "typescript";
2602
2393
  var INELIGIBLE = {};
2603
2394
  function canEmitType(type, canEmit) {
2604
2395
  return canEmitTypeWorker(type);
@@ -2606,13 +2397,13 @@ function canEmitType(type, canEmit) {
2606
2397
  return visitNode(type2) !== INELIGIBLE;
2607
2398
  }
2608
2399
  function visitNode(node) {
2609
- if (ts16.isImportTypeNode(node)) {
2400
+ if (ts14.isImportTypeNode(node)) {
2610
2401
  return INELIGIBLE;
2611
2402
  }
2612
- if (ts16.isTypeReferenceNode(node) && !canEmitTypeReference(node)) {
2403
+ if (ts14.isTypeReferenceNode(node) && !canEmitTypeReference(node)) {
2613
2404
  return INELIGIBLE;
2614
2405
  } else {
2615
- return ts16.forEachChild(node, visitNode);
2406
+ return ts14.forEachChild(node, visitNode);
2616
2407
  }
2617
2408
  }
2618
2409
  function canEmitTypeReference(type2) {
@@ -2629,35 +2420,35 @@ var TypeEmitter = class {
2629
2420
  emitType(type) {
2630
2421
  const typeReferenceTransformer = (context) => {
2631
2422
  const visitNode = (node) => {
2632
- if (ts16.isImportTypeNode(node)) {
2423
+ if (ts14.isImportTypeNode(node)) {
2633
2424
  throw new Error("Unable to emit import type");
2634
2425
  }
2635
- if (ts16.isTypeReferenceNode(node)) {
2426
+ if (ts14.isTypeReferenceNode(node)) {
2636
2427
  return this.emitTypeReference(node);
2637
- } else if (ts16.isLiteralExpression(node)) {
2428
+ } else if (ts14.isLiteralExpression(node)) {
2638
2429
  let clone;
2639
- if (ts16.isStringLiteral(node)) {
2640
- clone = ts16.factory.createStringLiteral(node.text);
2641
- } else if (ts16.isNumericLiteral(node)) {
2642
- clone = ts16.factory.createNumericLiteral(node.text);
2643
- } else if (ts16.isBigIntLiteral(node)) {
2644
- clone = ts16.factory.createBigIntLiteral(node.text);
2645
- } else if (ts16.isNoSubstitutionTemplateLiteral(node)) {
2646
- clone = ts16.factory.createNoSubstitutionTemplateLiteral(node.text, node.rawText);
2647
- } else if (ts16.isRegularExpressionLiteral(node)) {
2648
- clone = ts16.factory.createRegularExpressionLiteral(node.text);
2430
+ if (ts14.isStringLiteral(node)) {
2431
+ clone = ts14.factory.createStringLiteral(node.text);
2432
+ } else if (ts14.isNumericLiteral(node)) {
2433
+ clone = ts14.factory.createNumericLiteral(node.text);
2434
+ } else if (ts14.isBigIntLiteral(node)) {
2435
+ clone = ts14.factory.createBigIntLiteral(node.text);
2436
+ } else if (ts14.isNoSubstitutionTemplateLiteral(node)) {
2437
+ clone = ts14.factory.createNoSubstitutionTemplateLiteral(node.text, node.rawText);
2438
+ } else if (ts14.isRegularExpressionLiteral(node)) {
2439
+ clone = ts14.factory.createRegularExpressionLiteral(node.text);
2649
2440
  } else {
2650
- throw new Error(`Unsupported literal kind ${ts16.SyntaxKind[node.kind]}`);
2441
+ throw new Error(`Unsupported literal kind ${ts14.SyntaxKind[node.kind]}`);
2651
2442
  }
2652
- ts16.setTextRange(clone, { pos: -1, end: -1 });
2443
+ ts14.setTextRange(clone, { pos: -1, end: -1 });
2653
2444
  return clone;
2654
2445
  } else {
2655
- return ts16.visitEachChild(node, visitNode, context);
2446
+ return ts14.visitEachChild(node, visitNode, context);
2656
2447
  }
2657
2448
  };
2658
- return (node) => ts16.visitNode(node, visitNode);
2449
+ return (node) => ts14.visitNode(node, visitNode);
2659
2450
  };
2660
- return ts16.transform(type, [typeReferenceTransformer]).transformed[0];
2451
+ return ts14.transform(type, [typeReferenceTransformer]).transformed[0];
2661
2452
  }
2662
2453
  emitTypeReference(type) {
2663
2454
  const translatedType = this.translator(type);
@@ -2666,9 +2457,9 @@ var TypeEmitter = class {
2666
2457
  }
2667
2458
  let typeArguments = void 0;
2668
2459
  if (type.typeArguments !== void 0) {
2669
- typeArguments = ts16.factory.createNodeArray(type.typeArguments.map((typeArg) => this.emitType(typeArg)));
2460
+ typeArguments = ts14.factory.createNodeArray(type.typeArguments.map((typeArg) => this.emitType(typeArg)));
2670
2461
  }
2671
- return ts16.factory.updateTypeReferenceNode(type, translatedType.typeName, typeArguments);
2462
+ return ts14.factory.updateTypeReferenceNode(type, translatedType.typeName, typeArguments);
2672
2463
  }
2673
2464
  };
2674
2465
 
@@ -2709,11 +2500,11 @@ var TypeParameterEmitter = class {
2709
2500
  return this.typeParameters.map((typeParam) => {
2710
2501
  const constraint = typeParam.constraint !== void 0 ? emitter.emitType(typeParam.constraint) : void 0;
2711
2502
  const defaultType = typeParam.default !== void 0 ? emitter.emitType(typeParam.default) : void 0;
2712
- return ts17.factory.updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
2503
+ return ts15.factory.updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
2713
2504
  });
2714
2505
  }
2715
2506
  resolveTypeReference(type) {
2716
- const target = ts17.isIdentifier(type.typeName) ? type.typeName : type.typeName.right;
2507
+ const target = ts15.isIdentifier(type.typeName) ? type.typeName : type.typeName.right;
2717
2508
  const declaration = this.reflector.getDeclarationOfIdentifier(target);
2718
2509
  if (declaration === null || declaration.node === null) {
2719
2510
  return null;
@@ -2739,8 +2530,8 @@ var TypeParameterEmitter = class {
2739
2530
  if (typeNode === null) {
2740
2531
  return null;
2741
2532
  }
2742
- if (!ts17.isTypeReferenceNode(typeNode)) {
2743
- throw new Error(`Expected TypeReferenceNode for emitted reference, got ${ts17.SyntaxKind[typeNode.kind]}.`);
2533
+ if (!ts15.isTypeReferenceNode(typeNode)) {
2534
+ throw new Error(`Expected TypeReferenceNode for emitted reference, got ${ts15.SyntaxKind[typeNode.kind]}.`);
2744
2535
  }
2745
2536
  return typeNode;
2746
2537
  }
@@ -2782,14 +2573,14 @@ function getTemplateMapping(shimSf, position, resolver, isDiagnosticRequest) {
2782
2573
  }
2783
2574
  function findTypeCheckBlock(file, id, isDiagnosticRequest) {
2784
2575
  for (const stmt of file.statements) {
2785
- if (ts18.isFunctionDeclaration(stmt) && getTemplateId2(stmt, file, isDiagnosticRequest) === id) {
2576
+ if (ts16.isFunctionDeclaration(stmt) && getTemplateId2(stmt, file, isDiagnosticRequest) === id) {
2786
2577
  return stmt;
2787
2578
  }
2788
2579
  }
2789
2580
  return null;
2790
2581
  }
2791
2582
  function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
2792
- while (node !== void 0 && !ts18.isFunctionDeclaration(node)) {
2583
+ while (node !== void 0 && !ts16.isFunctionDeclaration(node)) {
2793
2584
  if (hasIgnoreForDiagnosticsMarker(node, sourceFile) && isDiagnosticsRequest) {
2794
2585
  return null;
2795
2586
  }
@@ -2806,7 +2597,7 @@ function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
2806
2597
  return null;
2807
2598
  }
2808
2599
  function getTemplateId2(node, sourceFile, isDiagnosticRequest) {
2809
- while (!ts18.isFunctionDeclaration(node)) {
2600
+ while (!ts16.isFunctionDeclaration(node)) {
2810
2601
  if (hasIgnoreForDiagnosticsMarker(node, sourceFile) && isDiagnosticRequest) {
2811
2602
  return null;
2812
2603
  }
@@ -2816,8 +2607,8 @@ function getTemplateId2(node, sourceFile, isDiagnosticRequest) {
2816
2607
  }
2817
2608
  }
2818
2609
  const start = node.getFullStart();
2819
- return ts18.forEachLeadingCommentRange(sourceFile.text, start, (pos, end, kind) => {
2820
- if (kind !== ts18.SyntaxKind.MultiLineCommentTrivia) {
2610
+ return ts16.forEachLeadingCommentRange(sourceFile.text, start, (pos, end, kind) => {
2611
+ if (kind !== ts16.SyntaxKind.MultiLineCommentTrivia) {
2821
2612
  return null;
2822
2613
  }
2823
2614
  const commentText = sourceFile.text.substring(pos + 2, end - 2);
@@ -2832,29 +2623,29 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
2832
2623
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2833
2624
  function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
2834
2625
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
2835
- const rawType = ts19.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
2626
+ const rawType = ts17.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
2836
2627
  const initParam = constructTypeCtorParameter(node, meta, rawType);
2837
2628
  const typeParameters = typeParametersWithDefaultTypes(typeParams);
2838
2629
  if (meta.body) {
2839
- const fnType = ts19.factory.createFunctionTypeNode(
2630
+ const fnType = ts17.factory.createFunctionTypeNode(
2840
2631
  typeParameters,
2841
2632
  [initParam],
2842
2633
  rawType
2843
2634
  );
2844
- const decl = ts19.factory.createVariableDeclaration(
2635
+ const decl = ts17.factory.createVariableDeclaration(
2845
2636
  meta.fnName,
2846
2637
  void 0,
2847
2638
  fnType,
2848
- ts19.factory.createNonNullExpression(ts19.factory.createNull())
2639
+ ts17.factory.createNonNullExpression(ts17.factory.createNull())
2849
2640
  );
2850
- const declList = ts19.factory.createVariableDeclarationList([decl], ts19.NodeFlags.Const);
2851
- return ts19.factory.createVariableStatement(
2641
+ const declList = ts17.factory.createVariableDeclarationList([decl], ts17.NodeFlags.Const);
2642
+ return ts17.factory.createVariableStatement(
2852
2643
  void 0,
2853
2644
  declList
2854
2645
  );
2855
2646
  } else {
2856
2647
  return createFunctionDeclaration(
2857
- [ts19.factory.createModifier(ts19.SyntaxKind.DeclareKeyword)],
2648
+ [ts17.factory.createModifier(ts17.SyntaxKind.DeclareKeyword)],
2858
2649
  void 0,
2859
2650
  meta.fnName,
2860
2651
  typeParameters,
@@ -2866,16 +2657,16 @@ function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
2866
2657
  }
2867
2658
  function generateInlineTypeCtor(node, meta) {
2868
2659
  const rawTypeArgs = node.typeParameters !== void 0 ? generateGenericArgs(node.typeParameters) : void 0;
2869
- const rawType = ts19.factory.createTypeReferenceNode(node.name, rawTypeArgs);
2660
+ const rawType = ts17.factory.createTypeReferenceNode(node.name, rawTypeArgs);
2870
2661
  const initParam = constructTypeCtorParameter(node, meta, rawType);
2871
2662
  let body = void 0;
2872
2663
  if (meta.body) {
2873
- body = ts19.factory.createBlock([
2874
- ts19.factory.createReturnStatement(ts19.factory.createNonNullExpression(ts19.factory.createNull()))
2664
+ body = ts17.factory.createBlock([
2665
+ ts17.factory.createReturnStatement(ts17.factory.createNonNullExpression(ts17.factory.createNull()))
2875
2666
  ]);
2876
2667
  }
2877
- return ts19.factory.createMethodDeclaration(
2878
- [ts19.factory.createModifier(ts19.SyntaxKind.StaticKeyword)],
2668
+ return ts17.factory.createMethodDeclaration(
2669
+ [ts17.factory.createModifier(ts17.SyntaxKind.StaticKeyword)],
2879
2670
  void 0,
2880
2671
  meta.fnName,
2881
2672
  void 0,
@@ -2892,9 +2683,9 @@ function constructTypeCtorParameter(node, meta, rawType) {
2892
2683
  const coercedKeys = [];
2893
2684
  for (const key of keys) {
2894
2685
  if (!meta.coercedInputFields.has(key)) {
2895
- plainKeys.push(ts19.factory.createLiteralTypeNode(ts19.factory.createStringLiteral(key)));
2686
+ plainKeys.push(ts17.factory.createLiteralTypeNode(ts17.factory.createStringLiteral(key)));
2896
2687
  } else {
2897
- coercedKeys.push(ts19.factory.createPropertySignature(
2688
+ coercedKeys.push(ts17.factory.createPropertySignature(
2898
2689
  void 0,
2899
2690
  key,
2900
2691
  void 0,
@@ -2903,15 +2694,15 @@ function constructTypeCtorParameter(node, meta, rawType) {
2903
2694
  }
2904
2695
  }
2905
2696
  if (plainKeys.length > 0) {
2906
- const keyTypeUnion = ts19.factory.createUnionTypeNode(plainKeys);
2907
- initType = ts19.factory.createTypeReferenceNode("Pick", [rawType, keyTypeUnion]);
2697
+ const keyTypeUnion = ts17.factory.createUnionTypeNode(plainKeys);
2698
+ initType = ts17.factory.createTypeReferenceNode("Pick", [rawType, keyTypeUnion]);
2908
2699
  }
2909
2700
  if (coercedKeys.length > 0) {
2910
- const coercedLiteral = ts19.factory.createTypeLiteralNode(coercedKeys);
2911
- initType = initType !== null ? ts19.factory.createIntersectionTypeNode([initType, coercedLiteral]) : coercedLiteral;
2701
+ const coercedLiteral = ts17.factory.createTypeLiteralNode(coercedKeys);
2702
+ initType = initType !== null ? ts17.factory.createIntersectionTypeNode([initType, coercedLiteral]) : coercedLiteral;
2912
2703
  }
2913
2704
  if (initType === null) {
2914
- initType = ts19.factory.createTypeLiteralNode([]);
2705
+ initType = ts17.factory.createTypeLiteralNode([]);
2915
2706
  }
2916
2707
  return createParameterDeclaration(
2917
2708
  void 0,
@@ -2923,7 +2714,7 @@ function constructTypeCtorParameter(node, meta, rawType) {
2923
2714
  );
2924
2715
  }
2925
2716
  function generateGenericArgs(params) {
2926
- return params.map((param) => ts19.factory.createTypeReferenceNode(param.name, void 0));
2717
+ return params.map((param) => ts17.factory.createTypeReferenceNode(param.name, void 0));
2927
2718
  }
2928
2719
  function requiresInlineTypeCtor(node, host, env) {
2929
2720
  return !checkIfGenericTypeBoundsCanBeEmitted(node, host, env);
@@ -2934,7 +2725,7 @@ function typeParametersWithDefaultTypes(params) {
2934
2725
  }
2935
2726
  return params.map((param) => {
2936
2727
  if (param.default === void 0) {
2937
- return ts19.factory.updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, ts19.factory.createKeywordTypeNode(ts19.SyntaxKind.AnyKeyword));
2728
+ return ts17.factory.updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, ts17.factory.createKeywordTypeNode(ts17.SyntaxKind.AnyKeyword));
2938
2729
  } else {
2939
2730
  return param;
2940
2731
  }
@@ -2966,13 +2757,13 @@ var Environment = class {
2966
2757
  }
2967
2758
  if (requiresInlineTypeCtor(node, this.reflector, this)) {
2968
2759
  const ref = this.reference(dirRef);
2969
- const typeCtorExpr = ts20.factory.createPropertyAccessExpression(ref, "ngTypeCtor");
2760
+ const typeCtorExpr = ts18.factory.createPropertyAccessExpression(ref, "ngTypeCtor");
2970
2761
  this.typeCtors.set(node, typeCtorExpr);
2971
2762
  return typeCtorExpr;
2972
2763
  } else {
2973
2764
  const fnName = `_ctor${this.nextIds.typeCtor++}`;
2974
2765
  const nodeTypeRef = this.referenceType(dirRef);
2975
- if (!ts20.isTypeReferenceNode(nodeTypeRef)) {
2766
+ if (!ts18.isTypeReferenceNode(nodeTypeRef)) {
2976
2767
  throw new Error(`Expected TypeReferenceNode from reference to ${dirRef.debugName}`);
2977
2768
  }
2978
2769
  const meta = {
@@ -2988,7 +2779,7 @@ var Environment = class {
2988
2779
  const typeParams = this.emitTypeParameters(node);
2989
2780
  const typeCtor = generateTypeCtorDeclarationFn(node, meta, nodeTypeRef.typeName, typeParams);
2990
2781
  this.typeCtorStatements.push(typeCtor);
2991
- const fnId = ts20.factory.createIdentifier(fnName);
2782
+ const fnId = ts18.factory.createIdentifier(fnName);
2992
2783
  this.typeCtors.set(node, fnId);
2993
2784
  return fnId;
2994
2785
  }
@@ -2998,7 +2789,7 @@ var Environment = class {
2998
2789
  return this.pipeInsts.get(ref.node);
2999
2790
  }
3000
2791
  const pipeType = this.referenceType(ref);
3001
- const pipeInstId = ts20.factory.createIdentifier(`_pipe${this.nextIds.pipeInst++}`);
2792
+ const pipeInstId = ts18.factory.createIdentifier(`_pipe${this.nextIds.pipeInst++}`);
3002
2793
  this.pipeInstStatements.push(tsDeclareVariable(pipeInstId, pipeType));
3003
2794
  this.pipeInsts.set(ref.node, pipeInstId);
3004
2795
  return pipeInstId;
@@ -3035,7 +2826,7 @@ var Environment = class {
3035
2826
 
3036
2827
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
3037
2828
  import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
3038
- import ts21 from "typescript";
2829
+ import ts19 from "typescript";
3039
2830
  var OutOfBandDiagnosticRecorderImpl = class {
3040
2831
  constructor(resolver) {
3041
2832
  this.resolver = resolver;
@@ -3049,7 +2840,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
3049
2840
  const mapping = this.resolver.getSourceMapping(templateId);
3050
2841
  const value = ref.value.trim();
3051
2842
  const errorMsg = `No directive found with exportAs '${value}'.`;
3052
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, ref.valueSpan || ref.sourceSpan, ts21.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REFERENCE_TARGET), errorMsg));
2843
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, ref.valueSpan || ref.sourceSpan, ts19.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REFERENCE_TARGET), errorMsg));
3053
2844
  }
3054
2845
  missingPipe(templateId, ast) {
3055
2846
  if (this.recordedPipes.has(ast)) {
@@ -3061,7 +2852,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
3061
2852
  if (sourceSpan === null) {
3062
2853
  throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${ast.name}'.`);
3063
2854
  }
3064
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, ts21.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
2855
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, ts19.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
3065
2856
  this.recordedPipes.add(ast);
3066
2857
  }
3067
2858
  illegalAssignmentToTemplateVar(templateId, assignment, target) {
@@ -3072,7 +2863,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
3072
2863
  if (sourceSpan === null) {
3073
2864
  throw new Error(`Assertion failure: no SourceLocation found for property binding.`);
3074
2865
  }
3075
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, ts21.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMsg, [{
2866
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, ts19.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMsg, [{
3076
2867
  text: `The variable ${assignment.name} is declared here.`,
3077
2868
  start: ((_a = target.valueSpan) == null ? void 0 : _a.start.offset) || target.sourceSpan.start.offset,
3078
2869
  end: ((_b = target.valueSpan) == null ? void 0 : _b.end.offset) || target.sourceSpan.end.offset,
@@ -3082,7 +2873,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
3082
2873
  duplicateTemplateVar(templateId, variable, firstDecl) {
3083
2874
  const mapping = this.resolver.getSourceMapping(templateId);
3084
2875
  const errorMsg = `Cannot redeclare variable '${variable.name}' as it was previously declared elsewhere for the same template.`;
3085
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, variable.sourceSpan, ts21.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [{
2876
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, variable.sourceSpan, ts19.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [{
3086
2877
  text: `The variable '${firstDecl.name}' was first declared here.`,
3087
2878
  start: firstDecl.sourceSpan.start.offset,
3088
2879
  end: firstDecl.sourceSpan.end.offset,
@@ -3121,7 +2912,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
3121
2912
  const message = `This structural directive supports advanced type inference, but the current compiler configuration prevents its usage. The variable ${varIdentification} will have type 'any' as a result.
3122
2913
 
3123
2914
  Consider enabling the 'strictTemplates' option in your tsconfig.json for better type inference within this template.`;
3124
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, diagnosticVar.keySpan, ts21.DiagnosticCategory.Suggestion, ngErrorCode(ErrorCode.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE), message));
2915
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, diagnosticVar.keySpan, ts19.DiagnosticCategory.Suggestion, ngErrorCode(ErrorCode.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE), message));
3125
2916
  }
3126
2917
  splitTwoWayBinding(templateId, input, output, inputConsumer, outputConsumer) {
3127
2918
  const mapping = this.resolver.getSourceMapping(templateId);
@@ -3155,7 +2946,7 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
3155
2946
  sourceFile: outputConsumer.name.getSourceFile()
3156
2947
  });
3157
2948
  }
3158
- this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, input.keySpan, ts21.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
2949
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, input.keySpan, ts19.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
3159
2950
  }
3160
2951
  };
3161
2952
  function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
@@ -3167,7 +2958,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
3167
2958
  }
3168
2959
 
3169
2960
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
3170
- import ts22 from "typescript";
2961
+ import ts20 from "typescript";
3171
2962
  var TypeCheckShimGenerator = class {
3172
2963
  constructor() {
3173
2964
  this.extensionPrefix = "ngtypecheck";
@@ -3177,7 +2968,7 @@ var TypeCheckShimGenerator = class {
3177
2968
  if (priorShimSf !== null) {
3178
2969
  return priorShimSf;
3179
2970
  }
3180
- return ts22.createSourceFile(genFilePath, "export const USED_FOR_NG_TYPE_CHECKING = true;", ts22.ScriptTarget.Latest, true, ts22.ScriptKind.TS);
2971
+ return ts20.createSourceFile(genFilePath, "export const USED_FOR_NG_TYPE_CHECKING = true;", ts20.ScriptTarget.Latest, true, ts20.ScriptKind.TS);
3181
2972
  }
3182
2973
  static shimFor(fileName) {
3183
2974
  return absoluteFrom(fileName.replace(/\.tsx?$/, ".ngtypecheck.ts"));
@@ -3186,16 +2977,16 @@ var TypeCheckShimGenerator = class {
3186
2977
 
3187
2978
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3188
2979
  import { BindingPipe, Call as Call2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, SafeCall, SafePropertyRead as SafePropertyRead3, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstElement as TmplAstElement3, TmplAstIcu, TmplAstReference as TmplAstReference3, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
3189
- import ts25 from "typescript";
2980
+ import ts23 from "typescript";
3190
2981
 
3191
2982
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
3192
2983
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
3193
- import ts23 from "typescript";
2984
+ import ts21 from "typescript";
3194
2985
  function wrapForDiagnostics(expr) {
3195
- return ts23.factory.createParenthesizedExpression(expr);
2986
+ return ts21.factory.createParenthesizedExpression(expr);
3196
2987
  }
3197
2988
  function wrapForTypeChecker(expr) {
3198
- return ts23.factory.createParenthesizedExpression(expr);
2989
+ return ts21.factory.createParenthesizedExpression(expr);
3199
2990
  }
3200
2991
  function addParseSpanInfo(node, span) {
3201
2992
  let commentText;
@@ -3204,10 +2995,10 @@ function addParseSpanInfo(node, span) {
3204
2995
  } else {
3205
2996
  commentText = `${span.start.offset},${span.end.offset}`;
3206
2997
  }
3207
- ts23.addSyntheticTrailingComment(node, ts23.SyntaxKind.MultiLineCommentTrivia, commentText, false);
2998
+ ts21.addSyntheticTrailingComment(node, ts21.SyntaxKind.MultiLineCommentTrivia, commentText, false);
3208
2999
  }
3209
3000
  function addTemplateId(tcb, id) {
3210
- ts23.addSyntheticLeadingComment(tcb, ts23.SyntaxKind.MultiLineCommentTrivia, id, true);
3001
+ ts21.addSyntheticLeadingComment(tcb, ts21.SyntaxKind.MultiLineCommentTrivia, id, true);
3211
3002
  }
3212
3003
  function shouldReportDiagnostic(diagnostic) {
3213
3004
  const { code } = diagnostic;
@@ -3236,32 +3027,32 @@ function translateDiagnostic(diagnostic, resolver) {
3236
3027
 
3237
3028
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
3238
3029
  import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
3239
- import ts24 from "typescript";
3240
- var NULL_AS_ANY = ts24.factory.createAsExpression(ts24.factory.createNull(), ts24.factory.createKeywordTypeNode(ts24.SyntaxKind.AnyKeyword));
3241
- var UNDEFINED = ts24.factory.createIdentifier("undefined");
3030
+ import ts22 from "typescript";
3031
+ var NULL_AS_ANY = ts22.factory.createAsExpression(ts22.factory.createNull(), ts22.factory.createKeywordTypeNode(ts22.SyntaxKind.AnyKeyword));
3032
+ var UNDEFINED = ts22.factory.createIdentifier("undefined");
3242
3033
  var UNARY_OPS = /* @__PURE__ */ new Map([
3243
- ["+", ts24.SyntaxKind.PlusToken],
3244
- ["-", ts24.SyntaxKind.MinusToken]
3034
+ ["+", ts22.SyntaxKind.PlusToken],
3035
+ ["-", ts22.SyntaxKind.MinusToken]
3245
3036
  ]);
3246
3037
  var BINARY_OPS = /* @__PURE__ */ new Map([
3247
- ["+", ts24.SyntaxKind.PlusToken],
3248
- ["-", ts24.SyntaxKind.MinusToken],
3249
- ["<", ts24.SyntaxKind.LessThanToken],
3250
- [">", ts24.SyntaxKind.GreaterThanToken],
3251
- ["<=", ts24.SyntaxKind.LessThanEqualsToken],
3252
- [">=", ts24.SyntaxKind.GreaterThanEqualsToken],
3253
- ["==", ts24.SyntaxKind.EqualsEqualsToken],
3254
- ["===", ts24.SyntaxKind.EqualsEqualsEqualsToken],
3255
- ["*", ts24.SyntaxKind.AsteriskToken],
3256
- ["/", ts24.SyntaxKind.SlashToken],
3257
- ["%", ts24.SyntaxKind.PercentToken],
3258
- ["!=", ts24.SyntaxKind.ExclamationEqualsToken],
3259
- ["!==", ts24.SyntaxKind.ExclamationEqualsEqualsToken],
3260
- ["||", ts24.SyntaxKind.BarBarToken],
3261
- ["&&", ts24.SyntaxKind.AmpersandAmpersandToken],
3262
- ["&", ts24.SyntaxKind.AmpersandToken],
3263
- ["|", ts24.SyntaxKind.BarToken],
3264
- ["??", ts24.SyntaxKind.QuestionQuestionToken]
3038
+ ["+", ts22.SyntaxKind.PlusToken],
3039
+ ["-", ts22.SyntaxKind.MinusToken],
3040
+ ["<", ts22.SyntaxKind.LessThanToken],
3041
+ [">", ts22.SyntaxKind.GreaterThanToken],
3042
+ ["<=", ts22.SyntaxKind.LessThanEqualsToken],
3043
+ [">=", ts22.SyntaxKind.GreaterThanEqualsToken],
3044
+ ["==", ts22.SyntaxKind.EqualsEqualsToken],
3045
+ ["===", ts22.SyntaxKind.EqualsEqualsEqualsToken],
3046
+ ["*", ts22.SyntaxKind.AsteriskToken],
3047
+ ["/", ts22.SyntaxKind.SlashToken],
3048
+ ["%", ts22.SyntaxKind.PercentToken],
3049
+ ["!=", ts22.SyntaxKind.ExclamationEqualsToken],
3050
+ ["!==", ts22.SyntaxKind.ExclamationEqualsEqualsToken],
3051
+ ["||", ts22.SyntaxKind.BarBarToken],
3052
+ ["&&", ts22.SyntaxKind.AmpersandAmpersandToken],
3053
+ ["&", ts22.SyntaxKind.AmpersandToken],
3054
+ ["|", ts22.SyntaxKind.BarToken],
3055
+ ["??", ts22.SyntaxKind.QuestionQuestionToken]
3265
3056
  ]);
3266
3057
  function astToTypescript(ast, maybeResolve, config) {
3267
3058
  const translator = new AstTranslator(maybeResolve, config);
@@ -3277,7 +3068,7 @@ var AstTranslator = class {
3277
3068
  ast = ast.ast;
3278
3069
  }
3279
3070
  if (ast instanceof EmptyExpr2) {
3280
- const res = ts24.factory.createIdentifier("undefined");
3071
+ const res = ts22.factory.createIdentifier("undefined");
3281
3072
  addParseSpanInfo(res, ast.sourceSpan);
3282
3073
  return res;
3283
3074
  }
@@ -3293,7 +3084,7 @@ var AstTranslator = class {
3293
3084
  if (op === void 0) {
3294
3085
  throw new Error(`Unsupported Unary.operator: ${ast.operator}`);
3295
3086
  }
3296
- const node = wrapForDiagnostics(ts24.factory.createPrefixUnaryExpression(op, expr));
3087
+ const node = wrapForDiagnostics(ts22.factory.createPrefixUnaryExpression(op, expr));
3297
3088
  addParseSpanInfo(node, ast.sourceSpan);
3298
3089
  return node;
3299
3090
  }
@@ -3304,13 +3095,13 @@ var AstTranslator = class {
3304
3095
  if (op === void 0) {
3305
3096
  throw new Error(`Unsupported Binary.operation: ${ast.operation}`);
3306
3097
  }
3307
- const node = ts24.factory.createBinaryExpression(lhs, op, rhs);
3098
+ const node = ts22.factory.createBinaryExpression(lhs, op, rhs);
3308
3099
  addParseSpanInfo(node, ast.sourceSpan);
3309
3100
  return node;
3310
3101
  }
3311
3102
  visitChain(ast) {
3312
3103
  const elements = ast.expressions.map((expr) => this.translate(expr));
3313
- const node = wrapForDiagnostics(ts24.factory.createCommaListExpression(elements));
3104
+ const node = wrapForDiagnostics(ts22.factory.createCommaListExpression(elements));
3314
3105
  addParseSpanInfo(node, ast.sourceSpan);
3315
3106
  return node;
3316
3107
  }
@@ -3318,7 +3109,7 @@ var AstTranslator = class {
3318
3109
  const condExpr = this.translate(ast.condition);
3319
3110
  const trueExpr = this.translate(ast.trueExp);
3320
3111
  const falseExpr = wrapForTypeChecker(this.translate(ast.falseExp));
3321
- const node = ts24.factory.createParenthesizedExpression(ts24.factory.createConditionalExpression(condExpr, void 0, trueExpr, void 0, falseExpr));
3112
+ const node = ts22.factory.createParenthesizedExpression(ts22.factory.createConditionalExpression(condExpr, void 0, trueExpr, void 0, falseExpr));
3322
3113
  addParseSpanInfo(node, ast.sourceSpan);
3323
3114
  return node;
3324
3115
  }
@@ -3329,26 +3120,26 @@ var AstTranslator = class {
3329
3120
  throw new Error("Method not implemented.");
3330
3121
  }
3331
3122
  visitInterpolation(ast) {
3332
- return ast.expressions.reduce((lhs, ast2) => ts24.factory.createBinaryExpression(lhs, ts24.SyntaxKind.PlusToken, wrapForTypeChecker(this.translate(ast2))), ts24.factory.createStringLiteral(""));
3123
+ return ast.expressions.reduce((lhs, ast2) => ts22.factory.createBinaryExpression(lhs, ts22.SyntaxKind.PlusToken, wrapForTypeChecker(this.translate(ast2))), ts22.factory.createStringLiteral(""));
3333
3124
  }
3334
3125
  visitKeyedRead(ast) {
3335
3126
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
3336
3127
  const key = this.translate(ast.key);
3337
- const node = ts24.factory.createElementAccessExpression(receiver, key);
3128
+ const node = ts22.factory.createElementAccessExpression(receiver, key);
3338
3129
  addParseSpanInfo(node, ast.sourceSpan);
3339
3130
  return node;
3340
3131
  }
3341
3132
  visitKeyedWrite(ast) {
3342
3133
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
3343
- const left = ts24.factory.createElementAccessExpression(receiver, this.translate(ast.key));
3134
+ const left = ts22.factory.createElementAccessExpression(receiver, this.translate(ast.key));
3344
3135
  const right = wrapForTypeChecker(this.translate(ast.value));
3345
- const node = wrapForDiagnostics(ts24.factory.createBinaryExpression(left, ts24.SyntaxKind.EqualsToken, right));
3136
+ const node = wrapForDiagnostics(ts22.factory.createBinaryExpression(left, ts22.SyntaxKind.EqualsToken, right));
3346
3137
  addParseSpanInfo(node, ast.sourceSpan);
3347
3138
  return node;
3348
3139
  }
3349
3140
  visitLiteralArray(ast) {
3350
3141
  const elements = ast.expressions.map((expr) => this.translate(expr));
3351
- const literal = ts24.factory.createArrayLiteralExpression(elements);
3142
+ const literal = ts22.factory.createArrayLiteralExpression(elements);
3352
3143
  const node = this.config.strictLiteralTypes ? literal : tsCastToAny(literal);
3353
3144
  addParseSpanInfo(node, ast.sourceSpan);
3354
3145
  return node;
@@ -3356,9 +3147,9 @@ var AstTranslator = class {
3356
3147
  visitLiteralMap(ast) {
3357
3148
  const properties = ast.keys.map(({ key }, idx) => {
3358
3149
  const value = this.translate(ast.values[idx]);
3359
- return ts24.factory.createPropertyAssignment(ts24.factory.createStringLiteral(key), value);
3150
+ return ts22.factory.createPropertyAssignment(ts22.factory.createStringLiteral(key), value);
3360
3151
  });
3361
- const literal = ts24.factory.createObjectLiteralExpression(properties, true);
3152
+ const literal = ts22.factory.createObjectLiteralExpression(properties, true);
3362
3153
  const node = this.config.strictLiteralTypes ? literal : tsCastToAny(literal);
3363
3154
  addParseSpanInfo(node, ast.sourceSpan);
3364
3155
  return node;
@@ -3366,15 +3157,15 @@ var AstTranslator = class {
3366
3157
  visitLiteralPrimitive(ast) {
3367
3158
  let node;
3368
3159
  if (ast.value === void 0) {
3369
- node = ts24.factory.createIdentifier("undefined");
3160
+ node = ts22.factory.createIdentifier("undefined");
3370
3161
  } else if (ast.value === null) {
3371
- node = ts24.factory.createNull();
3162
+ node = ts22.factory.createNull();
3372
3163
  } else if (typeof ast.value === "string") {
3373
- node = ts24.factory.createStringLiteral(ast.value);
3164
+ node = ts22.factory.createStringLiteral(ast.value);
3374
3165
  } else if (typeof ast.value === "number") {
3375
- node = ts24.factory.createNumericLiteral(ast.value);
3166
+ node = ts22.factory.createNumericLiteral(ast.value);
3376
3167
  } else if (typeof ast.value === "boolean") {
3377
- node = ast.value ? ts24.factory.createTrue() : ts24.factory.createFalse();
3168
+ node = ast.value ? ts22.factory.createTrue() : ts22.factory.createFalse();
3378
3169
  } else {
3379
3170
  throw Error(`Unsupported AST value of type ${typeof ast.value}`);
3380
3171
  }
@@ -3383,7 +3174,7 @@ var AstTranslator = class {
3383
3174
  }
3384
3175
  visitNonNullAssert(ast) {
3385
3176
  const expr = wrapForDiagnostics(this.translate(ast.expression));
3386
- const node = ts24.factory.createNonNullExpression(expr);
3177
+ const node = ts22.factory.createNonNullExpression(expr);
3387
3178
  addParseSpanInfo(node, ast.sourceSpan);
3388
3179
  return node;
3389
3180
  }
@@ -3392,13 +3183,13 @@ var AstTranslator = class {
3392
3183
  }
3393
3184
  visitPrefixNot(ast) {
3394
3185
  const expression = wrapForDiagnostics(this.translate(ast.expression));
3395
- const node = ts24.factory.createLogicalNot(expression);
3186
+ const node = ts22.factory.createLogicalNot(expression);
3396
3187
  addParseSpanInfo(node, ast.sourceSpan);
3397
3188
  return node;
3398
3189
  }
3399
3190
  visitPropertyRead(ast) {
3400
3191
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
3401
- const name = ts24.factory.createPropertyAccessExpression(receiver, ast.name);
3192
+ const name = ts22.factory.createPropertyAccessExpression(receiver, ast.name);
3402
3193
  addParseSpanInfo(name, ast.nameSpan);
3403
3194
  const node = wrapForDiagnostics(name);
3404
3195
  addParseSpanInfo(node, ast.sourceSpan);
@@ -3406,12 +3197,12 @@ var AstTranslator = class {
3406
3197
  }
3407
3198
  visitPropertyWrite(ast) {
3408
3199
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
3409
- const left = ts24.factory.createPropertyAccessExpression(receiver, ast.name);
3200
+ const left = ts22.factory.createPropertyAccessExpression(receiver, ast.name);
3410
3201
  addParseSpanInfo(left, ast.nameSpan);
3411
3202
  const leftWithPath = wrapForDiagnostics(left);
3412
3203
  addParseSpanInfo(leftWithPath, ast.sourceSpan);
3413
3204
  const right = wrapForTypeChecker(this.translate(ast.value));
3414
- const node = wrapForDiagnostics(ts24.factory.createBinaryExpression(leftWithPath, ts24.SyntaxKind.EqualsToken, right));
3205
+ const node = wrapForDiagnostics(ts22.factory.createBinaryExpression(leftWithPath, ts22.SyntaxKind.EqualsToken, right));
3415
3206
  addParseSpanInfo(node, ast.sourceSpan);
3416
3207
  return node;
3417
3208
  }
@@ -3419,13 +3210,13 @@ var AstTranslator = class {
3419
3210
  let node;
3420
3211
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
3421
3212
  if (this.config.strictSafeNavigationTypes) {
3422
- const expr = ts24.factory.createPropertyAccessExpression(ts24.factory.createNonNullExpression(receiver), ast.name);
3213
+ const expr = ts22.factory.createPropertyAccessExpression(ts22.factory.createNonNullExpression(receiver), ast.name);
3423
3214
  addParseSpanInfo(expr, ast.nameSpan);
3424
- node = ts24.factory.createParenthesizedExpression(ts24.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
3215
+ node = ts22.factory.createParenthesizedExpression(ts22.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
3425
3216
  } else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
3426
- node = ts24.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
3217
+ node = ts22.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
3427
3218
  } else {
3428
- const expr = ts24.factory.createPropertyAccessExpression(ts24.factory.createNonNullExpression(receiver), ast.name);
3219
+ const expr = ts22.factory.createPropertyAccessExpression(ts22.factory.createNonNullExpression(receiver), ast.name);
3429
3220
  addParseSpanInfo(expr, ast.nameSpan);
3430
3221
  node = tsCastToAny(expr);
3431
3222
  }
@@ -3437,13 +3228,13 @@ var AstTranslator = class {
3437
3228
  const key = this.translate(ast.key);
3438
3229
  let node;
3439
3230
  if (this.config.strictSafeNavigationTypes) {
3440
- const expr = ts24.factory.createElementAccessExpression(ts24.factory.createNonNullExpression(receiver), key);
3231
+ const expr = ts22.factory.createElementAccessExpression(ts22.factory.createNonNullExpression(receiver), key);
3441
3232
  addParseSpanInfo(expr, ast.sourceSpan);
3442
- node = ts24.factory.createParenthesizedExpression(ts24.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
3233
+ node = ts22.factory.createParenthesizedExpression(ts22.factory.createConditionalExpression(NULL_AS_ANY, void 0, expr, void 0, UNDEFINED));
3443
3234
  } else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
3444
- node = ts24.factory.createElementAccessExpression(tsCastToAny(receiver), key);
3235
+ node = ts22.factory.createElementAccessExpression(tsCastToAny(receiver), key);
3445
3236
  } else {
3446
- const expr = ts24.factory.createElementAccessExpression(ts24.factory.createNonNullExpression(receiver), key);
3237
+ const expr = ts22.factory.createElementAccessExpression(ts22.factory.createNonNullExpression(receiver), key);
3447
3238
  addParseSpanInfo(expr, ast.sourceSpan);
3448
3239
  node = tsCastToAny(expr);
3449
3240
  }
@@ -3460,7 +3251,7 @@ var AstTranslator = class {
3460
3251
  expr = resolved;
3461
3252
  } else {
3462
3253
  const propertyReceiver = wrapForDiagnostics(this.translate(receiver.receiver));
3463
- expr = ts24.factory.createPropertyAccessExpression(propertyReceiver, receiver.name);
3254
+ expr = ts22.factory.createPropertyAccessExpression(propertyReceiver, receiver.name);
3464
3255
  addParseSpanInfo(expr, receiver.nameSpan);
3465
3256
  }
3466
3257
  } else {
@@ -3470,7 +3261,7 @@ var AstTranslator = class {
3470
3261
  if (ast.receiver instanceof SafePropertyRead2 || ast.receiver instanceof SafeKeyedRead) {
3471
3262
  node = this.convertToSafeCall(ast, expr, args);
3472
3263
  } else {
3473
- node = ts24.factory.createCallExpression(expr, void 0, args);
3264
+ node = ts22.factory.createCallExpression(expr, void 0, args);
3474
3265
  }
3475
3266
  addParseSpanInfo(node, ast.sourceSpan);
3476
3267
  return node;
@@ -3484,13 +3275,13 @@ var AstTranslator = class {
3484
3275
  }
3485
3276
  convertToSafeCall(ast, expr, args) {
3486
3277
  if (this.config.strictSafeNavigationTypes) {
3487
- const call = ts24.factory.createCallExpression(ts24.factory.createNonNullExpression(expr), void 0, args);
3488
- return ts24.factory.createParenthesizedExpression(ts24.factory.createConditionalExpression(NULL_AS_ANY, void 0, call, void 0, UNDEFINED));
3278
+ const call = ts22.factory.createCallExpression(ts22.factory.createNonNullExpression(expr), void 0, args);
3279
+ return ts22.factory.createParenthesizedExpression(ts22.factory.createConditionalExpression(NULL_AS_ANY, void 0, call, void 0, UNDEFINED));
3489
3280
  }
3490
3281
  if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
3491
- return ts24.factory.createCallExpression(tsCastToAny(expr), void 0, args);
3282
+ return ts22.factory.createCallExpression(tsCastToAny(expr), void 0, args);
3492
3283
  }
3493
- return tsCastToAny(ts24.factory.createCallExpression(ts24.factory.createNonNullExpression(expr), void 0, args));
3284
+ return tsCastToAny(ts22.factory.createCallExpression(ts22.factory.createNonNullExpression(expr), void 0, args));
3494
3285
  }
3495
3286
  };
3496
3287
  var VeSafeLhsInferenceBugDetector = class {
@@ -3599,7 +3390,7 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
3599
3390
  const tcb = new Context(env, domSchemaChecker, oobRecorder, meta.id, meta.boundTarget, meta.pipes, meta.schemas, meta.isStandalone);
3600
3391
  const scope = Scope.forNodes(tcb, null, tcb.boundTarget.target.template, null);
3601
3392
  const ctxRawType = env.referenceType(ref);
3602
- if (!ts25.isTypeReferenceNode(ctxRawType)) {
3393
+ if (!ts23.isTypeReferenceNode(ctxRawType)) {
3603
3394
  throw new Error(`Expected TypeReferenceNode when referencing the ctx param for ${ref.debugName}`);
3604
3395
  }
3605
3396
  let typeParameters = void 0;
@@ -3611,24 +3402,24 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
3611
3402
  switch (genericContextBehavior) {
3612
3403
  case TcbGenericContextBehavior.UseEmitter:
3613
3404
  typeParameters = new TypeParameterEmitter(ref.node.typeParameters, env.reflector).emit((typeRef) => env.referenceType(typeRef));
3614
- typeArguments = typeParameters.map((param) => ts25.factory.createTypeReferenceNode(param.name));
3405
+ typeArguments = typeParameters.map((param) => ts23.factory.createTypeReferenceNode(param.name));
3615
3406
  break;
3616
3407
  case TcbGenericContextBehavior.CopyClassNodes:
3617
3408
  typeParameters = [...ref.node.typeParameters];
3618
- typeArguments = typeParameters.map((param) => ts25.factory.createTypeReferenceNode(param.name));
3409
+ typeArguments = typeParameters.map((param) => ts23.factory.createTypeReferenceNode(param.name));
3619
3410
  break;
3620
3411
  case TcbGenericContextBehavior.FallbackToAny:
3621
- typeArguments = ref.node.typeParameters.map(() => ts25.factory.createKeywordTypeNode(ts25.SyntaxKind.AnyKeyword));
3412
+ typeArguments = ref.node.typeParameters.map(() => ts23.factory.createKeywordTypeNode(ts23.SyntaxKind.AnyKeyword));
3622
3413
  break;
3623
3414
  }
3624
3415
  }
3625
3416
  const paramList = [tcbThisParam(ctxRawType.typeName, typeArguments)];
3626
3417
  const scopeStatements = scope.render();
3627
- const innerBody = ts25.factory.createBlock([
3418
+ const innerBody = ts23.factory.createBlock([
3628
3419
  ...env.getPreludeStatements(),
3629
3420
  ...scopeStatements
3630
3421
  ]);
3631
- const body = ts25.factory.createBlock([ts25.factory.createIfStatement(ts25.factory.createTrue(), innerBody, void 0)]);
3422
+ const body = ts23.factory.createBlock([ts23.factory.createIfStatement(ts23.factory.createTrue(), innerBody, void 0)]);
3632
3423
  const fnDecl = createFunctionDeclaration(
3633
3424
  void 0,
3634
3425
  void 0,
@@ -3678,7 +3469,7 @@ var TcbVariableOp = class extends TcbOp {
3678
3469
  execute() {
3679
3470
  const ctx = this.scope.resolve(this.template);
3680
3471
  const id = this.tcb.allocateId();
3681
- const initializer = ts25.factory.createPropertyAccessExpression(
3472
+ const initializer = ts23.factory.createPropertyAccessExpression(
3682
3473
  ctx,
3683
3474
  this.variable.value || "$implicit"
3684
3475
  );
@@ -3704,7 +3495,7 @@ var TcbTemplateContextOp = class extends TcbOp {
3704
3495
  }
3705
3496
  execute() {
3706
3497
  const ctx = this.tcb.allocateId();
3707
- const type = ts25.factory.createKeywordTypeNode(ts25.SyntaxKind.AnyKeyword);
3498
+ const type = ts23.factory.createKeywordTypeNode(ts23.SyntaxKind.AnyKeyword);
3708
3499
  this.scope.addStatement(tsDeclareVariable(ctx, type));
3709
3500
  return ctx;
3710
3501
  }
@@ -3757,16 +3548,16 @@ var TcbTemplateBodyOp = class extends TcbOp {
3757
3548
  }
3758
3549
  let guard = null;
3759
3550
  if (directiveGuards.length > 0) {
3760
- guard = directiveGuards.reduce((expr, dirGuard) => ts25.factory.createBinaryExpression(expr, ts25.SyntaxKind.AmpersandAmpersandToken, dirGuard), directiveGuards.pop());
3551
+ guard = directiveGuards.reduce((expr, dirGuard) => ts23.factory.createBinaryExpression(expr, ts23.SyntaxKind.AmpersandAmpersandToken, dirGuard), directiveGuards.pop());
3761
3552
  }
3762
3553
  const tmplScope = Scope.forNodes(this.tcb, this.scope, this.template, guard);
3763
3554
  const statements = tmplScope.render();
3764
3555
  if (statements.length === 0) {
3765
3556
  return null;
3766
3557
  }
3767
- let tmplBlock = ts25.factory.createBlock(statements);
3558
+ let tmplBlock = ts23.factory.createBlock(statements);
3768
3559
  if (guard !== null) {
3769
- tmplBlock = ts25.factory.createIfStatement(guard, tmplBlock);
3560
+ tmplBlock = ts23.factory.createIfStatement(guard, tmplBlock);
3770
3561
  }
3771
3562
  this.scope.addStatement(tmplBlock);
3772
3563
  return null;
@@ -3784,7 +3575,7 @@ var TcbTextInterpolationOp = class extends TcbOp {
3784
3575
  }
3785
3576
  execute() {
3786
3577
  const expr = tcbExpression(this.binding.value, this.tcb, this.scope);
3787
- this.scope.addStatement(ts25.factory.createExpressionStatement(expr));
3578
+ this.scope.addStatement(ts23.factory.createExpressionStatement(expr));
3788
3579
  return null;
3789
3580
  }
3790
3581
  };
@@ -3806,11 +3597,11 @@ var TcbDirectiveTypeOpBase = class extends TcbOp {
3806
3597
  if (this.dir.isGeneric === false || dirRef.node.typeParameters === void 0) {
3807
3598
  type = rawType;
3808
3599
  } else {
3809
- if (!ts25.isTypeReferenceNode(rawType)) {
3600
+ if (!ts23.isTypeReferenceNode(rawType)) {
3810
3601
  throw new Error(`Expected TypeReferenceNode when referencing the type for ${this.dir.ref.debugName}`);
3811
3602
  }
3812
- const typeArguments = dirRef.node.typeParameters.map(() => ts25.factory.createKeywordTypeNode(ts25.SyntaxKind.AnyKeyword));
3813
- type = ts25.factory.createTypeReferenceNode(rawType.typeName, typeArguments);
3603
+ const typeArguments = dirRef.node.typeParameters.map(() => ts23.factory.createKeywordTypeNode(ts23.SyntaxKind.AnyKeyword));
3604
+ type = ts23.factory.createTypeReferenceNode(rawType.typeName, typeArguments);
3814
3605
  }
3815
3606
  const id = this.tcb.allocateId();
3816
3607
  addExpressionIdentifier(type, ExpressionIdentifier.DIRECTIVE);
@@ -3851,11 +3642,11 @@ var TcbReferenceOp = class extends TcbOp {
3851
3642
  const id = this.tcb.allocateId();
3852
3643
  let initializer = this.target instanceof TmplAstTemplate2 || this.target instanceof TmplAstElement3 ? this.scope.resolve(this.target) : this.scope.resolve(this.host, this.target);
3853
3644
  if (this.target instanceof TmplAstElement3 && !this.tcb.env.config.checkTypeOfDomReferences || !this.tcb.env.config.checkTypeOfNonDomReferences) {
3854
- initializer = ts25.factory.createAsExpression(initializer, ts25.factory.createKeywordTypeNode(ts25.SyntaxKind.AnyKeyword));
3645
+ initializer = ts23.factory.createAsExpression(initializer, ts23.factory.createKeywordTypeNode(ts23.SyntaxKind.AnyKeyword));
3855
3646
  } else if (this.target instanceof TmplAstTemplate2) {
3856
- initializer = ts25.factory.createAsExpression(initializer, ts25.factory.createKeywordTypeNode(ts25.SyntaxKind.AnyKeyword));
3857
- initializer = ts25.factory.createAsExpression(initializer, this.tcb.env.referenceExternalType("@angular/core", "TemplateRef", [DYNAMIC_TYPE]));
3858
- initializer = ts25.factory.createParenthesizedExpression(initializer);
3647
+ initializer = ts23.factory.createAsExpression(initializer, ts23.factory.createKeywordTypeNode(ts23.SyntaxKind.AnyKeyword));
3648
+ initializer = ts23.factory.createAsExpression(initializer, this.tcb.env.referenceExternalType("@angular/core", "TemplateRef", [DYNAMIC_TYPE]));
3649
+ initializer = ts23.factory.createParenthesizedExpression(initializer);
3859
3650
  }
3860
3651
  addParseSpanInfo(initializer, this.node.sourceSpan);
3861
3652
  addParseSpanInfo(id, this.node.keySpan);
@@ -3945,7 +3736,7 @@ var TcbDirectiveInputsOp = class extends TcbOp {
3945
3736
  let target;
3946
3737
  if (this.dir.coercedInputFields.has(fieldName)) {
3947
3738
  const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
3948
- if (!ts25.isTypeReferenceNode(dirTypeRef)) {
3739
+ if (!ts23.isTypeReferenceNode(dirTypeRef)) {
3949
3740
  throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);
3950
3741
  }
3951
3742
  const id = this.tcb.allocateId();
@@ -3960,10 +3751,10 @@ var TcbDirectiveInputsOp = class extends TcbOp {
3960
3751
  }
3961
3752
  const id = this.tcb.allocateId();
3962
3753
  const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
3963
- if (!ts25.isTypeReferenceNode(dirTypeRef)) {
3754
+ if (!ts23.isTypeReferenceNode(dirTypeRef)) {
3964
3755
  throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);
3965
3756
  }
3966
- const type = ts25.factory.createIndexedAccessTypeNode(ts25.factory.createTypeQueryNode(dirId), ts25.factory.createLiteralTypeNode(ts25.factory.createStringLiteral(fieldName)));
3757
+ const type = ts23.factory.createIndexedAccessTypeNode(ts23.factory.createTypeQueryNode(dirId), ts23.factory.createLiteralTypeNode(ts23.factory.createStringLiteral(fieldName)));
3967
3758
  const temp = tsDeclareVariable(id, type);
3968
3759
  this.scope.addStatement(temp);
3969
3760
  target = id;
@@ -3971,18 +3762,18 @@ var TcbDirectiveInputsOp = class extends TcbOp {
3971
3762
  if (dirId === null) {
3972
3763
  dirId = this.scope.resolve(this.node, this.dir);
3973
3764
  }
3974
- target = this.dir.stringLiteralInputFields.has(fieldName) ? ts25.factory.createElementAccessExpression(dirId, ts25.factory.createStringLiteral(fieldName)) : ts25.factory.createPropertyAccessExpression(dirId, ts25.factory.createIdentifier(fieldName));
3765
+ target = this.dir.stringLiteralInputFields.has(fieldName) ? ts23.factory.createElementAccessExpression(dirId, ts23.factory.createStringLiteral(fieldName)) : ts23.factory.createPropertyAccessExpression(dirId, ts23.factory.createIdentifier(fieldName));
3975
3766
  }
3976
3767
  if (input.attribute.keySpan !== void 0) {
3977
3768
  addParseSpanInfo(target, input.attribute.keySpan);
3978
3769
  }
3979
- assignment = ts25.factory.createBinaryExpression(target, ts25.SyntaxKind.EqualsToken, assignment);
3770
+ assignment = ts23.factory.createBinaryExpression(target, ts23.SyntaxKind.EqualsToken, assignment);
3980
3771
  }
3981
3772
  addParseSpanInfo(assignment, input.attribute.sourceSpan);
3982
3773
  if (!this.tcb.env.config.checkTypeOfAttributes && input.attribute instanceof TmplAstTextAttribute2) {
3983
3774
  markIgnoreDiagnostics(assignment);
3984
3775
  }
3985
- this.scope.addStatement(ts25.factory.createExpressionStatement(assignment));
3776
+ this.scope.addStatement(ts23.factory.createExpressionStatement(assignment));
3986
3777
  }
3987
3778
  return null;
3988
3779
  }
@@ -4001,7 +3792,7 @@ var TcbDirectiveCtorCircularFallbackOp = class extends TcbOp {
4001
3792
  execute() {
4002
3793
  const id = this.tcb.allocateId();
4003
3794
  const typeCtor = this.tcb.env.typeCtorFor(this.dir);
4004
- const circularPlaceholder = ts25.factory.createCallExpression(typeCtor, void 0, [ts25.factory.createNonNullExpression(ts25.factory.createNull())]);
3795
+ const circularPlaceholder = ts23.factory.createCallExpression(typeCtor, void 0, [ts23.factory.createNonNullExpression(ts23.factory.createNull())]);
4005
3796
  this.scope.addStatement(tsCreateVariable(id, circularPlaceholder));
4006
3797
  return id;
4007
3798
  }
@@ -4069,15 +3860,15 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
4069
3860
  elId = this.scope.resolve(this.element);
4070
3861
  }
4071
3862
  const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
4072
- const prop = ts25.factory.createElementAccessExpression(elId, ts25.factory.createStringLiteral(propertyName));
4073
- const stmt = ts25.factory.createBinaryExpression(prop, ts25.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
3863
+ const prop = ts23.factory.createElementAccessExpression(elId, ts23.factory.createStringLiteral(propertyName));
3864
+ const stmt = ts23.factory.createBinaryExpression(prop, ts23.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
4074
3865
  addParseSpanInfo(stmt, binding.sourceSpan);
4075
- this.scope.addStatement(ts25.factory.createExpressionStatement(stmt));
3866
+ this.scope.addStatement(ts23.factory.createExpressionStatement(stmt));
4076
3867
  } else {
4077
- this.scope.addStatement(ts25.factory.createExpressionStatement(expr));
3868
+ this.scope.addStatement(ts23.factory.createExpressionStatement(expr));
4078
3869
  }
4079
3870
  } else {
4080
- this.scope.addStatement(ts25.factory.createExpressionStatement(expr));
3871
+ this.scope.addStatement(ts23.factory.createExpressionStatement(expr));
4081
3872
  }
4082
3873
  }
4083
3874
  return null;
@@ -4109,18 +3900,18 @@ var TcbDirectiveOutputsOp = class extends TcbOp {
4109
3900
  if (dirId === null) {
4110
3901
  dirId = this.scope.resolve(this.node, this.dir);
4111
3902
  }
4112
- const outputField = ts25.factory.createElementAccessExpression(dirId, ts25.factory.createStringLiteral(field));
3903
+ const outputField = ts23.factory.createElementAccessExpression(dirId, ts23.factory.createStringLiteral(field));
4113
3904
  addParseSpanInfo(outputField, output.keySpan);
4114
3905
  if (this.tcb.env.config.checkTypeOfOutputEvents) {
4115
3906
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 0);
4116
- const subscribeFn = ts25.factory.createPropertyAccessExpression(outputField, "subscribe");
4117
- const call = ts25.factory.createCallExpression(subscribeFn, void 0, [handler]);
3907
+ const subscribeFn = ts23.factory.createPropertyAccessExpression(outputField, "subscribe");
3908
+ const call = ts23.factory.createCallExpression(subscribeFn, void 0, [handler]);
4118
3909
  addParseSpanInfo(call, output.sourceSpan);
4119
- this.scope.addStatement(ts25.factory.createExpressionStatement(call));
3910
+ this.scope.addStatement(ts23.factory.createExpressionStatement(call));
4120
3911
  } else {
4121
- this.scope.addStatement(ts25.factory.createExpressionStatement(outputField));
3912
+ this.scope.addStatement(ts23.factory.createExpressionStatement(outputField));
4122
3913
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 1);
4123
- this.scope.addStatement(ts25.factory.createExpressionStatement(handler));
3914
+ this.scope.addStatement(ts23.factory.createExpressionStatement(handler));
4124
3915
  }
4125
3916
  ExpressionSemanticVisitor.visit(output.handler, this.tcb.id, this.tcb.boundTarget, this.tcb.oobRecorder);
4126
3917
  }
@@ -4153,24 +3944,24 @@ var TcbUnclaimedOutputsOp = class extends TcbOp {
4153
3944
  if (output.type === 1) {
4154
3945
  const eventType = this.tcb.env.config.checkTypeOfAnimationEvents ? this.tcb.env.referenceExternalType("@angular/animations", "AnimationEvent") : 1;
4155
3946
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, eventType);
4156
- this.scope.addStatement(ts25.factory.createExpressionStatement(handler));
3947
+ this.scope.addStatement(ts23.factory.createExpressionStatement(handler));
4157
3948
  } else if (this.tcb.env.config.checkTypeOfDomEvents) {
4158
3949
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 0);
4159
3950
  if (elId === null) {
4160
3951
  elId = this.scope.resolve(this.element);
4161
3952
  }
4162
- const propertyAccess = ts25.factory.createPropertyAccessExpression(elId, "addEventListener");
3953
+ const propertyAccess = ts23.factory.createPropertyAccessExpression(elId, "addEventListener");
4163
3954
  addParseSpanInfo(propertyAccess, output.keySpan);
4164
- const call = ts25.factory.createCallExpression(
3955
+ const call = ts23.factory.createCallExpression(
4165
3956
  propertyAccess,
4166
3957
  void 0,
4167
- [ts25.factory.createStringLiteral(output.name), handler]
3958
+ [ts23.factory.createStringLiteral(output.name), handler]
4168
3959
  );
4169
3960
  addParseSpanInfo(call, output.sourceSpan);
4170
- this.scope.addStatement(ts25.factory.createExpressionStatement(call));
3961
+ this.scope.addStatement(ts23.factory.createExpressionStatement(call));
4171
3962
  } else {
4172
3963
  const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 1);
4173
- this.scope.addStatement(ts25.factory.createExpressionStatement(handler));
3964
+ this.scope.addStatement(ts23.factory.createExpressionStatement(handler));
4174
3965
  }
4175
3966
  ExpressionSemanticVisitor.visit(output.handler, this.tcb.id, this.tcb.boundTarget, this.tcb.oobRecorder);
4176
3967
  }
@@ -4184,15 +3975,15 @@ var TcbComponentContextCompletionOp = class extends TcbOp {
4184
3975
  this.optional = false;
4185
3976
  }
4186
3977
  execute() {
4187
- const ctx = ts25.factory.createThis();
4188
- const ctxDot = ts25.factory.createPropertyAccessExpression(ctx, "");
3978
+ const ctx = ts23.factory.createThis();
3979
+ const ctxDot = ts23.factory.createPropertyAccessExpression(ctx, "");
4189
3980
  markIgnoreDiagnostics(ctxDot);
4190
3981
  addExpressionIdentifier(ctxDot, ExpressionIdentifier.COMPONENT_COMPLETION);
4191
- this.scope.addStatement(ts25.factory.createExpressionStatement(ctxDot));
3982
+ this.scope.addStatement(ts23.factory.createExpressionStatement(ctxDot));
4192
3983
  return null;
4193
3984
  }
4194
3985
  };
4195
- var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = ts25.factory.createNonNullExpression(ts25.factory.createNull());
3986
+ var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = ts23.factory.createNonNullExpression(ts23.factory.createNull());
4196
3987
  var Context = class {
4197
3988
  constructor(env, domSchemaChecker, oobRecorder, id, boundTarget, pipes, schemas, hostIsStandalone) {
4198
3989
  this.env = env;
@@ -4206,7 +3997,7 @@ var Context = class {
4206
3997
  this.nextId = 1;
4207
3998
  }
4208
3999
  allocateId() {
4209
- return ts25.factory.createIdentifier(`_t${this.nextId++}`);
4000
+ return ts23.factory.createIdentifier(`_t${this.nextId++}`);
4210
4001
  }
4211
4002
  getPipeByName(name) {
4212
4003
  if (!this.pipes.has(name)) {
@@ -4259,16 +4050,16 @@ var Scope = class {
4259
4050
  const res = this.resolveLocal(node, directive);
4260
4051
  if (res !== null) {
4261
4052
  let clone;
4262
- if (ts25.isIdentifier(res)) {
4263
- clone = ts25.factory.createIdentifier(res.text);
4264
- } else if (ts25.isNonNullExpression(res)) {
4265
- clone = ts25.factory.createNonNullExpression(res.expression);
4053
+ if (ts23.isIdentifier(res)) {
4054
+ clone = ts23.factory.createIdentifier(res.text);
4055
+ } else if (ts23.isNonNullExpression(res)) {
4056
+ clone = ts23.factory.createNonNullExpression(res.expression);
4266
4057
  } else {
4267
4058
  throw new Error(`Could not resolve ${node} to an Identifier or a NonNullExpression`);
4268
4059
  }
4269
- ts25.setOriginalNode(clone, res);
4060
+ ts23.setOriginalNode(clone, res);
4270
4061
  clone.parent = clone.parent;
4271
- return ts25.setSyntheticTrailingComments(clone, []);
4062
+ return ts23.setSyntheticTrailingComments(clone, []);
4272
4063
  } else if (this.parent !== null) {
4273
4064
  return this.parent.resolve(node, directive);
4274
4065
  } else {
@@ -4295,7 +4086,7 @@ var Scope = class {
4295
4086
  } else if (parentGuards === null) {
4296
4087
  return this.guard;
4297
4088
  } else {
4298
- return ts25.factory.createBinaryExpression(parentGuards, ts25.SyntaxKind.AmpersandAmpersandToken, this.guard);
4089
+ return ts23.factory.createBinaryExpression(parentGuards, ts23.SyntaxKind.AmpersandAmpersandToken, this.guard);
4299
4090
  }
4300
4091
  }
4301
4092
  resolveLocal(ref, directive) {
@@ -4480,7 +4271,7 @@ function tcbThisParam(name, typeArguments) {
4480
4271
  void 0,
4481
4272
  "this",
4482
4273
  void 0,
4483
- ts25.factory.createTypeReferenceNode(name, typeArguments),
4274
+ ts23.factory.createTypeReferenceNode(name, typeArguments),
4484
4275
  void 0
4485
4276
  );
4486
4277
  }
@@ -4505,11 +4296,11 @@ var TcbExpressionTranslator = class {
4505
4296
  return null;
4506
4297
  }
4507
4298
  const expr = this.translate(ast.value);
4508
- const result = ts25.factory.createParenthesizedExpression(ts25.factory.createBinaryExpression(target, ts25.SyntaxKind.EqualsToken, expr));
4299
+ const result = ts23.factory.createParenthesizedExpression(ts23.factory.createBinaryExpression(target, ts23.SyntaxKind.EqualsToken, expr));
4509
4300
  addParseSpanInfo(result, ast.sourceSpan);
4510
4301
  return result;
4511
4302
  } else if (ast instanceof ImplicitReceiver4) {
4512
- return ts25.factory.createThis();
4303
+ return ts23.factory.createThis();
4513
4304
  } else if (ast instanceof BindingPipe) {
4514
4305
  const expr = this.translate(ast.exp);
4515
4306
  const pipeRef = this.tcb.getPipeByName(ast.name);
@@ -4521,12 +4312,12 @@ var TcbExpressionTranslator = class {
4521
4312
  pipe = this.tcb.env.pipeInst(pipeRef);
4522
4313
  }
4523
4314
  const args = ast.args.map((arg) => this.translate(arg));
4524
- let methodAccess = ts25.factory.createPropertyAccessExpression(pipe, "transform");
4315
+ let methodAccess = ts23.factory.createPropertyAccessExpression(pipe, "transform");
4525
4316
  addParseSpanInfo(methodAccess, ast.nameSpan);
4526
4317
  if (!this.tcb.env.config.checkTypeOfPipes) {
4527
- methodAccess = ts25.factory.createAsExpression(methodAccess, ts25.factory.createKeywordTypeNode(ts25.SyntaxKind.AnyKeyword));
4318
+ methodAccess = ts23.factory.createAsExpression(methodAccess, ts23.factory.createKeywordTypeNode(ts23.SyntaxKind.AnyKeyword));
4528
4319
  }
4529
- const result = ts25.factory.createCallExpression(
4320
+ const result = ts23.factory.createCallExpression(
4530
4321
  methodAccess,
4531
4322
  void 0,
4532
4323
  [expr, ...args]
@@ -4536,8 +4327,8 @@ var TcbExpressionTranslator = class {
4536
4327
  } else if ((ast instanceof Call2 || ast instanceof SafeCall) && (ast.receiver instanceof PropertyRead4 || ast.receiver instanceof SafePropertyRead3)) {
4537
4328
  if (ast.receiver.receiver instanceof ImplicitReceiver4 && !(ast.receiver.receiver instanceof ThisReceiver) && ast.receiver.name === "$any" && ast.args.length === 1) {
4538
4329
  const expr = this.translate(ast.args[0]);
4539
- const exprAsAny = ts25.factory.createAsExpression(expr, ts25.factory.createKeywordTypeNode(ts25.SyntaxKind.AnyKeyword));
4540
- const result = ts25.factory.createParenthesizedExpression(exprAsAny);
4330
+ const exprAsAny = ts23.factory.createAsExpression(expr, ts23.factory.createKeywordTypeNode(ts23.SyntaxKind.AnyKeyword));
4331
+ const result = ts23.factory.createParenthesizedExpression(exprAsAny);
4541
4332
  addParseSpanInfo(result, ast.sourceSpan);
4542
4333
  return result;
4543
4334
  }
@@ -4548,7 +4339,7 @@ var TcbExpressionTranslator = class {
4548
4339
  const method = wrapForDiagnostics(receiver);
4549
4340
  addParseSpanInfo(method, ast.receiver.nameSpan);
4550
4341
  const args = ast.args.map((arg) => this.translate(arg));
4551
- const node = ts25.factory.createCallExpression(method, void 0, args);
4342
+ const node = ts23.factory.createCallExpression(method, void 0, args);
4552
4343
  addParseSpanInfo(node, ast.sourceSpan);
4553
4344
  return node;
4554
4345
  } else {
@@ -4568,20 +4359,20 @@ var TcbExpressionTranslator = class {
4568
4359
  function tcbCallTypeCtor(dir, tcb, inputs) {
4569
4360
  const typeCtor = tcb.env.typeCtorFor(dir);
4570
4361
  const members = inputs.map((input) => {
4571
- const propertyName = ts25.factory.createStringLiteral(input.field);
4362
+ const propertyName = ts23.factory.createStringLiteral(input.field);
4572
4363
  if (input.type === "binding") {
4573
4364
  const expr = widenBinding(input.expression, tcb);
4574
- const assignment = ts25.factory.createPropertyAssignment(propertyName, wrapForDiagnostics(expr));
4365
+ const assignment = ts23.factory.createPropertyAssignment(propertyName, wrapForDiagnostics(expr));
4575
4366
  addParseSpanInfo(assignment, input.sourceSpan);
4576
4367
  return assignment;
4577
4368
  } else {
4578
- return ts25.factory.createPropertyAssignment(propertyName, NULL_AS_ANY);
4369
+ return ts23.factory.createPropertyAssignment(propertyName, NULL_AS_ANY);
4579
4370
  }
4580
4371
  });
4581
- return ts25.factory.createCallExpression(
4372
+ return ts23.factory.createCallExpression(
4582
4373
  typeCtor,
4583
4374
  void 0,
4584
- [ts25.factory.createObjectLiteralExpression(members)]
4375
+ [ts23.factory.createObjectLiteralExpression(members)]
4585
4376
  );
4586
4377
  }
4587
4378
  function getBoundInputs(directive, node, tcb) {
@@ -4608,17 +4399,17 @@ function translateInput(attr, tcb, scope) {
4608
4399
  if (attr instanceof TmplAstBoundAttribute) {
4609
4400
  return tcbExpression(attr.value, tcb, scope);
4610
4401
  } else {
4611
- return ts25.factory.createStringLiteral(attr.value);
4402
+ return ts23.factory.createStringLiteral(attr.value);
4612
4403
  }
4613
4404
  }
4614
4405
  function widenBinding(expr, tcb) {
4615
4406
  if (!tcb.env.config.checkTypeOfInputBindings) {
4616
4407
  return tsCastToAny(expr);
4617
4408
  } else if (!tcb.env.config.strictNullInputBindings) {
4618
- if (ts25.isObjectLiteralExpression(expr) || ts25.isArrayLiteralExpression(expr)) {
4409
+ if (ts23.isObjectLiteralExpression(expr) || ts23.isArrayLiteralExpression(expr)) {
4619
4410
  return expr;
4620
4411
  } else {
4621
- return ts25.factory.createNonNullExpression(expr);
4412
+ return ts23.factory.createNonNullExpression(expr);
4622
4413
  }
4623
4414
  } else {
4624
4415
  return expr;
@@ -4631,14 +4422,14 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
4631
4422
  if (eventType === 0) {
4632
4423
  eventParamType = void 0;
4633
4424
  } else if (eventType === 1) {
4634
- eventParamType = ts25.factory.createKeywordTypeNode(ts25.SyntaxKind.AnyKeyword);
4425
+ eventParamType = ts23.factory.createKeywordTypeNode(ts23.SyntaxKind.AnyKeyword);
4635
4426
  } else {
4636
4427
  eventParamType = eventType;
4637
4428
  }
4638
4429
  const guards = scope.guards();
4639
- let body = ts25.factory.createExpressionStatement(handler);
4430
+ let body = ts23.factory.createExpressionStatement(handler);
4640
4431
  if (guards !== null) {
4641
- body = ts25.factory.createIfStatement(guards, body);
4432
+ body = ts23.factory.createIfStatement(guards, body);
4642
4433
  }
4643
4434
  const eventParam = createParameterDeclaration(
4644
4435
  void 0,
@@ -4648,13 +4439,13 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
4648
4439
  eventParamType
4649
4440
  );
4650
4441
  addExpressionIdentifier(eventParam, ExpressionIdentifier.EVENT_PARAMETER);
4651
- return ts25.factory.createArrowFunction(
4442
+ return ts23.factory.createArrowFunction(
4652
4443
  void 0,
4653
4444
  void 0,
4654
4445
  [eventParam],
4655
- ts25.factory.createKeywordTypeNode(ts25.SyntaxKind.AnyKeyword),
4446
+ ts23.factory.createKeywordTypeNode(ts23.SyntaxKind.AnyKeyword),
4656
4447
  void 0,
4657
- ts25.factory.createBlock([body])
4448
+ ts23.factory.createBlock([body])
4658
4449
  );
4659
4450
  }
4660
4451
  function tcbEventHandlerExpression(ast, tcb, scope) {
@@ -4683,7 +4474,7 @@ function isSplitTwoWayBinding(inputName, output, inputs, tcb) {
4683
4474
  var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
4684
4475
  resolve(ast) {
4685
4476
  if (ast instanceof PropertyRead4 && ast.receiver instanceof ImplicitReceiver4 && !(ast.receiver instanceof ThisReceiver) && ast.name === EVENT_PARAMETER) {
4686
- const event = ts25.factory.createIdentifier(EVENT_PARAMETER);
4477
+ const event = ts23.factory.createIdentifier(EVENT_PARAMETER);
4687
4478
  addParseSpanInfo(event, ast.nameSpan);
4688
4479
  return event;
4689
4480
  }
@@ -4692,32 +4483,32 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
4692
4483
  };
4693
4484
 
4694
4485
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
4695
- import ts26 from "typescript";
4486
+ import ts24 from "typescript";
4696
4487
  var TypeCheckFile = class extends Environment {
4697
4488
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
4698
- super(config, new ImportManager(new NoopImportRewriter(), "i"), refEmitter, reflector, ts26.createSourceFile(compilerHost.getCanonicalFileName(fileName), "", ts26.ScriptTarget.Latest, true));
4489
+ super(config, new ImportManager(new NoopImportRewriter(), "i"), refEmitter, reflector, ts24.createSourceFile(compilerHost.getCanonicalFileName(fileName), "", ts24.ScriptTarget.Latest, true));
4699
4490
  this.fileName = fileName;
4700
4491
  this.nextTcbId = 1;
4701
4492
  this.tcbStatements = [];
4702
4493
  }
4703
4494
  addTypeCheckBlock(ref, meta, domSchemaChecker, oobRecorder, genericContextBehavior) {
4704
- const fnId = ts26.factory.createIdentifier(`_tcb${this.nextTcbId++}`);
4495
+ const fnId = ts24.factory.createIdentifier(`_tcb${this.nextTcbId++}`);
4705
4496
  const fn = generateTypeCheckBlock(this, ref, fnId, meta, domSchemaChecker, oobRecorder, genericContextBehavior);
4706
4497
  this.tcbStatements.push(fn);
4707
4498
  }
4708
4499
  render(removeComments) {
4709
4500
  let source = this.importManager.getAllImports(this.contextFile.fileName).map((i) => `import * as ${i.qualifier.text} from '${i.specifier}';`).join("\n") + "\n\n";
4710
- const printer = ts26.createPrinter({ removeComments });
4501
+ const printer = ts24.createPrinter({ removeComments });
4711
4502
  source += "\n";
4712
4503
  for (const stmt of this.pipeInstStatements) {
4713
- source += printer.printNode(ts26.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
4504
+ source += printer.printNode(ts24.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
4714
4505
  }
4715
4506
  for (const stmt of this.typeCtorStatements) {
4716
- source += printer.printNode(ts26.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
4507
+ source += printer.printNode(ts24.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
4717
4508
  }
4718
4509
  source += "\n";
4719
4510
  for (const stmt of this.tcbStatements) {
4720
- source += printer.printNode(ts26.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
4511
+ source += printer.printNode(ts24.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
4721
4512
  }
4722
4513
  source += "\nexport const IS_A_MODULE = true;\n";
4723
4514
  return source;
@@ -4833,7 +4624,7 @@ var TypeCheckContextImpl = class {
4833
4624
  const importManager = new ImportManager(new NoopImportRewriter(), "_i");
4834
4625
  const ops = this.opMap.get(sf).sort(orderOps);
4835
4626
  const textParts = splitStringAtPoints(sf.text, ops.map((op) => op.splitPoint));
4836
- const printer = ts27.createPrinter({ omitTrailingSemicolon: true });
4627
+ const printer = ts25.createPrinter({ omitTrailingSemicolon: true });
4837
4628
  let code = textParts[0];
4838
4629
  ops.forEach((op, idx) => {
4839
4630
  const text = op.execute(importManager, sf, this.refEmitter, printer);
@@ -4914,7 +4705,7 @@ var TypeCheckContextImpl = class {
4914
4705
  if (span.start.offset === span.end.offset) {
4915
4706
  span.end.offset++;
4916
4707
  }
4917
- return makeTemplateDiagnostic(templateId, sourceMapping, span, ts27.DiagnosticCategory.Error, ngErrorCode(ErrorCode.TEMPLATE_PARSE_ERROR), error.msg);
4708
+ return makeTemplateDiagnostic(templateId, sourceMapping, span, ts25.DiagnosticCategory.Error, ngErrorCode(ErrorCode.TEMPLATE_PARSE_ERROR), error.msg);
4918
4709
  });
4919
4710
  }
4920
4711
  };
@@ -4932,9 +4723,9 @@ var InlineTcbOp = class {
4932
4723
  }
4933
4724
  execute(im, sf, refEmitter, printer) {
4934
4725
  const env = new Environment(this.config, im, refEmitter, this.reflector, sf);
4935
- const fnName = ts27.factory.createIdentifier(`_tcb_${this.ref.node.pos}`);
4726
+ const fnName = ts25.factory.createIdentifier(`_tcb_${this.ref.node.pos}`);
4936
4727
  const fn = generateTypeCheckBlock(env, this.ref, fnName, this.meta, this.domSchemaChecker, this.oobRecorder, TcbGenericContextBehavior.CopyClassNodes);
4937
- return printer.printNode(ts27.EmitHint.Unspecified, fn, sf);
4728
+ return printer.printNode(ts25.EmitHint.Unspecified, fn, sf);
4938
4729
  }
4939
4730
  };
4940
4731
  var TypeCtorOp = class {
@@ -4947,7 +4738,7 @@ var TypeCtorOp = class {
4947
4738
  }
4948
4739
  execute(im, sf, refEmitter, printer) {
4949
4740
  const tcb = generateInlineTypeCtor(this.ref.node, this.meta);
4950
- return printer.printNode(ts27.EmitHint.Unspecified, tcb, sf);
4741
+ return printer.printNode(ts25.EmitHint.Unspecified, tcb, sf);
4951
4742
  }
4952
4743
  };
4953
4744
  function orderOps(op1, op2) {
@@ -5062,7 +4853,7 @@ var TemplateSourceManager = class {
5062
4853
 
5063
4854
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
5064
4855
  import { AST, ASTWithSource as ASTWithSource3, BindingPipe as BindingPipe2, PropertyRead as PropertyRead5, PropertyWrite as PropertyWrite4, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement4, TmplAstReference as TmplAstReference4, TmplAstTemplate as TmplAstTemplate3, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
5065
- import ts28 from "typescript";
4856
+ import ts26 from "typescript";
5066
4857
  var SymbolBuilder = class {
5067
4858
  constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
5068
4859
  this.tcbPath = tcbPath;
@@ -5106,7 +4897,7 @@ var SymbolBuilder = class {
5106
4897
  getSymbolOfElement(element) {
5107
4898
  var _a;
5108
4899
  const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
5109
- const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: ts28.isVariableDeclaration });
4900
+ const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: ts26.isVariableDeclaration });
5110
4901
  if (node === null) {
5111
4902
  return null;
5112
4903
  }
@@ -5126,12 +4917,12 @@ var SymbolBuilder = class {
5126
4917
  var _a;
5127
4918
  const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
5128
4919
  const tcbSourceFile = this.typeCheckBlock.getSourceFile();
5129
- const isDirectiveDeclaration = (node) => (ts28.isTypeNode(node) || ts28.isIdentifier(node)) && ts28.isVariableDeclaration(node.parent) && hasExpressionIdentifier(tcbSourceFile, node, ExpressionIdentifier.DIRECTIVE);
4920
+ const isDirectiveDeclaration = (node) => (ts26.isTypeNode(node) || ts26.isIdentifier(node)) && ts26.isVariableDeclaration(node.parent) && hasExpressionIdentifier(tcbSourceFile, node, ExpressionIdentifier.DIRECTIVE);
5130
4921
  const nodes = findAllMatchingNodes(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: isDirectiveDeclaration });
5131
4922
  const symbols = [];
5132
4923
  for (const node of nodes) {
5133
4924
  const symbol = this.getSymbolOfTsNode(node.parent);
5134
- if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !ts28.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
4925
+ if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !ts26.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
5135
4926
  continue;
5136
4927
  }
5137
4928
  const meta = this.getDirectiveMeta(element, symbol.tsSymbol.valueDeclaration);
@@ -5159,7 +4950,7 @@ var SymbolBuilder = class {
5159
4950
  }
5160
4951
  addHostDirectiveSymbols(host, hostDirectives, symbols) {
5161
4952
  for (const current of hostDirectives) {
5162
- if (!ts28.isClassDeclaration(current.directive.node)) {
4953
+ if (!ts26.isClassDeclaration(current.directive.node)) {
5163
4954
  continue;
5164
4955
  }
5165
4956
  const symbol = this.getSymbolOfTsNode(current.directive.node);
@@ -5232,17 +5023,17 @@ var SymbolBuilder = class {
5232
5023
  if (!isAccessExpression(n)) {
5233
5024
  return false;
5234
5025
  }
5235
- if (ts28.isPropertyAccessExpression(n)) {
5026
+ if (ts26.isPropertyAccessExpression(n)) {
5236
5027
  return n.name.getText() === expectedAccess;
5237
5028
  } else {
5238
- return ts28.isStringLiteral(n.argumentExpression) && n.argumentExpression.text === expectedAccess;
5029
+ return ts26.isStringLiteral(n.argumentExpression) && n.argumentExpression.text === expectedAccess;
5239
5030
  }
5240
5031
  }
5241
5032
  const outputFieldAccesses = findAllMatchingNodes(this.typeCheckBlock, { withSpan: eventBinding.keySpan, filter });
5242
5033
  const bindings = [];
5243
5034
  for (const outputFieldAccess of outputFieldAccesses) {
5244
5035
  if (consumer instanceof TmplAstTemplate3 || consumer instanceof TmplAstElement4) {
5245
- if (!ts28.isPropertyAccessExpression(outputFieldAccess)) {
5036
+ if (!ts26.isPropertyAccessExpression(outputFieldAccess)) {
5246
5037
  continue;
5247
5038
  }
5248
5039
  const addEventListener = outputFieldAccess.name;
@@ -5265,7 +5056,7 @@ var SymbolBuilder = class {
5265
5056
  }
5266
5057
  });
5267
5058
  } else {
5268
- if (!ts28.isElementAccessExpression(outputFieldAccess)) {
5059
+ if (!ts26.isElementAccessExpression(outputFieldAccess)) {
5269
5060
  continue;
5270
5061
  }
5271
5062
  const tsSymbol = this.getTypeChecker().getSymbolAtLocation(outputFieldAccess.argumentExpression);
@@ -5338,7 +5129,7 @@ var SymbolBuilder = class {
5338
5129
  return null;
5339
5130
  }
5340
5131
  const [declaration] = tsSymbol.declarations;
5341
- if (!ts28.isVariableDeclaration(declaration) || !hasExpressionIdentifier(
5132
+ if (!ts26.isVariableDeclaration(declaration) || !hasExpressionIdentifier(
5342
5133
  declaration.getSourceFile(),
5343
5134
  (_a = declaration.type) != null ? _a : declaration.name,
5344
5135
  ExpressionIdentifier.DIRECTIVE
@@ -5346,7 +5137,7 @@ var SymbolBuilder = class {
5346
5137
  return null;
5347
5138
  }
5348
5139
  const symbol = this.getSymbolOfTsNode(declaration);
5349
- if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !ts28.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
5140
+ if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !ts26.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
5350
5141
  return null;
5351
5142
  }
5352
5143
  const ref = new Reference(symbol.tsSymbol.valueDeclaration);
@@ -5366,7 +5157,7 @@ var SymbolBuilder = class {
5366
5157
  };
5367
5158
  }
5368
5159
  getSymbolOfVariable(variable) {
5369
- const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: variable.sourceSpan, filter: ts28.isVariableDeclaration });
5160
+ const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: variable.sourceSpan, filter: ts26.isVariableDeclaration });
5370
5161
  if (node === null || node.initializer === void 0) {
5371
5162
  return null;
5372
5163
  }
@@ -5389,11 +5180,11 @@ var SymbolBuilder = class {
5389
5180
  }
5390
5181
  getSymbolOfReference(ref) {
5391
5182
  const target = this.templateData.boundTarget.getReferenceTarget(ref);
5392
- let node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: ref.sourceSpan, filter: ts28.isVariableDeclaration });
5183
+ let node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: ref.sourceSpan, filter: ts26.isVariableDeclaration });
5393
5184
  if (node === null || target === null || node.initializer === void 0) {
5394
5185
  return null;
5395
5186
  }
5396
- const originalDeclaration = ts28.isParenthesizedExpression(node.initializer) && ts28.isAsExpression(node.initializer.expression) ? this.getTypeChecker().getSymbolAtLocation(node.name) : this.getTypeChecker().getSymbolAtLocation(node.initializer);
5187
+ const originalDeclaration = ts26.isParenthesizedExpression(node.initializer) && ts26.isAsExpression(node.initializer.expression) ? this.getTypeChecker().getSymbolAtLocation(node.name) : this.getTypeChecker().getSymbolAtLocation(node.initializer);
5397
5188
  if (originalDeclaration === void 0 || originalDeclaration.valueDeclaration === void 0) {
5398
5189
  return null;
5399
5190
  }
@@ -5417,7 +5208,7 @@ var SymbolBuilder = class {
5417
5208
  referenceVarLocation: referenceVarTcbLocation
5418
5209
  };
5419
5210
  } else {
5420
- if (!ts28.isClassDeclaration(target.directive.ref.node)) {
5211
+ if (!ts26.isClassDeclaration(target.directive.ref.node)) {
5421
5212
  return null;
5422
5213
  }
5423
5214
  return {
@@ -5432,7 +5223,7 @@ var SymbolBuilder = class {
5432
5223
  }
5433
5224
  }
5434
5225
  getSymbolOfPipe(expression) {
5435
- const methodAccess = findFirstMatchingNode(this.typeCheckBlock, { withSpan: expression.nameSpan, filter: ts28.isPropertyAccessExpression });
5226
+ const methodAccess = findFirstMatchingNode(this.typeCheckBlock, { withSpan: expression.nameSpan, filter: ts26.isPropertyAccessExpression });
5436
5227
  if (methodAccess === null) {
5437
5228
  return null;
5438
5229
  }
@@ -5472,7 +5263,7 @@ var SymbolBuilder = class {
5472
5263
  }
5473
5264
  let node = null;
5474
5265
  if (expression instanceof PropertyRead5) {
5475
- node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: ts28.isPropertyAccessExpression });
5266
+ node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: ts26.isPropertyAccessExpression });
5476
5267
  }
5477
5268
  if (node === null) {
5478
5269
  node = findFirstMatchingNode(this.typeCheckBlock, { withSpan, filter: anyNodeFilter });
@@ -5480,10 +5271,10 @@ var SymbolBuilder = class {
5480
5271
  if (node === null) {
5481
5272
  return null;
5482
5273
  }
5483
- while (ts28.isParenthesizedExpression(node)) {
5274
+ while (ts26.isParenthesizedExpression(node)) {
5484
5275
  node = node.expression;
5485
5276
  }
5486
- if (expression instanceof SafePropertyRead4 && ts28.isConditionalExpression(node)) {
5277
+ if (expression instanceof SafePropertyRead4 && ts26.isConditionalExpression(node)) {
5487
5278
  const whenTrueSymbol = this.getSymbolOfTsNode(node.whenTrue);
5488
5279
  if (whenTrueSymbol === null) {
5489
5280
  return null;
@@ -5500,13 +5291,13 @@ var SymbolBuilder = class {
5500
5291
  }
5501
5292
  getSymbolOfTsNode(node) {
5502
5293
  var _a;
5503
- while (ts28.isParenthesizedExpression(node)) {
5294
+ while (ts26.isParenthesizedExpression(node)) {
5504
5295
  node = node.expression;
5505
5296
  }
5506
5297
  let tsSymbol;
5507
- if (ts28.isPropertyAccessExpression(node)) {
5298
+ if (ts26.isPropertyAccessExpression(node)) {
5508
5299
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.name);
5509
- } else if (ts28.isElementAccessExpression(node)) {
5300
+ } else if (ts26.isElementAccessExpression(node)) {
5510
5301
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.argumentExpression);
5511
5302
  } else {
5512
5303
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node);
@@ -5524,13 +5315,13 @@ var SymbolBuilder = class {
5524
5315
  };
5525
5316
  }
5526
5317
  getTcbPositionForNode(node) {
5527
- if (ts28.isTypeReferenceNode(node)) {
5318
+ if (ts26.isTypeReferenceNode(node)) {
5528
5319
  return this.getTcbPositionForNode(node.typeName);
5529
- } else if (ts28.isQualifiedName(node)) {
5320
+ } else if (ts26.isQualifiedName(node)) {
5530
5321
  return node.right.getStart();
5531
- } else if (ts28.isPropertyAccessExpression(node)) {
5322
+ } else if (ts26.isPropertyAccessExpression(node)) {
5532
5323
  return node.name.getStart();
5533
- } else if (ts28.isElementAccessExpression(node)) {
5324
+ } else if (ts26.isElementAccessExpression(node)) {
5534
5325
  return node.argumentExpression.getStart();
5535
5326
  } else {
5536
5327
  return node.getStart();
@@ -6423,7 +6214,7 @@ var factory3 = {
6423
6214
 
6424
6215
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
6425
6216
  import { Binary } from "@angular/compiler";
6426
- import ts29 from "typescript";
6217
+ import ts27 from "typescript";
6427
6218
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
6428
6219
  constructor() {
6429
6220
  super(...arguments);
@@ -6437,7 +6228,7 @@ var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
6437
6228
  return [];
6438
6229
  }
6439
6230
  const typeLeft = symbolLeft.tsType;
6440
- if (typeLeft.flags & (ts29.TypeFlags.Any | ts29.TypeFlags.Unknown)) {
6231
+ if (typeLeft.flags & (ts27.TypeFlags.Any | ts27.TypeFlags.Unknown)) {
6441
6232
  return [];
6442
6233
  }
6443
6234
  if (typeLeft.getNonNullableType() !== typeLeft)
@@ -6468,7 +6259,7 @@ var factory4 = {
6468
6259
 
6469
6260
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
6470
6261
  import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
6471
- import ts30 from "typescript";
6262
+ import ts28 from "typescript";
6472
6263
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
6473
6264
  constructor() {
6474
6265
  super(...arguments);
@@ -6482,7 +6273,7 @@ var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
6482
6273
  return [];
6483
6274
  }
6484
6275
  const typeLeft = symbolLeft.tsType;
6485
- if (typeLeft.flags & (ts30.TypeFlags.Any | ts30.TypeFlags.Unknown)) {
6276
+ if (typeLeft.flags & (ts28.TypeFlags.Any | ts28.TypeFlags.Unknown)) {
6486
6277
  return [];
6487
6278
  }
6488
6279
  if (typeLeft.getNonNullableType() !== typeLeft)
@@ -6576,7 +6367,7 @@ var factory7 = {
6576
6367
  };
6577
6368
 
6578
6369
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6579
- import ts31 from "typescript";
6370
+ import ts29 from "typescript";
6580
6371
 
6581
6372
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
6582
6373
  var DiagnosticCategoryLabel;
@@ -6625,9 +6416,9 @@ var ExtendedTemplateCheckerImpl = class {
6625
6416
  function diagnosticLabelToCategory(label) {
6626
6417
  switch (label) {
6627
6418
  case DiagnosticCategoryLabel.Warning:
6628
- return ts31.DiagnosticCategory.Warning;
6419
+ return ts29.DiagnosticCategory.Warning;
6629
6420
  case DiagnosticCategoryLabel.Error:
6630
- return ts31.DiagnosticCategory.Error;
6421
+ return ts29.DiagnosticCategory.Error;
6631
6422
  case DiagnosticCategoryLabel.Suppress:
6632
6423
  return null;
6633
6424
  default:
@@ -6740,7 +6531,7 @@ var NgCompiler = class {
6740
6531
  this.currentProgram = inputProgram;
6741
6532
  this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
6742
6533
  this.entryPoint = adapter.entryPoint !== null ? getSourceFileOrNull(inputProgram, adapter.entryPoint) : null;
6743
- const moduleResolutionCache = ts32.createModuleResolutionCache(
6534
+ const moduleResolutionCache = ts30.createModuleResolutionCache(
6744
6535
  this.adapter.getCurrentDirectory(),
6745
6536
  this.adapter.getCanonicalFileName.bind(this.adapter)
6746
6537
  );
@@ -6787,7 +6578,7 @@ var NgCompiler = class {
6787
6578
  }
6788
6579
  for (const clazz of classesToUpdate) {
6789
6580
  this.compilation.traitCompiler.updateResources(clazz);
6790
- if (!ts32.isClassDeclaration(clazz)) {
6581
+ if (!ts30.isClassDeclaration(clazz)) {
6791
6582
  continue;
6792
6583
  }
6793
6584
  this.compilation.templateTypeChecker.invalidateClass(clazz);
@@ -6924,9 +6715,6 @@ var NgCompiler = class {
6924
6715
  if (compilation.aliasingHost !== null && compilation.aliasingHost.aliasExportsInDts) {
6925
6716
  afterDeclarations.push(aliasTransformFactory(compilation.traitCompiler.exportStatements));
6926
6717
  }
6927
- if (this.adapter.factoryTracker !== null) {
6928
- before.push(generatedFactoryTransform(this.adapter.factoryTracker.sourceInfo, importRewriter));
6929
- }
6930
6718
  return { transformers: { before, afterDeclarations } };
6931
6719
  }
6932
6720
  getIndexedComponents() {
@@ -7169,7 +6957,7 @@ var NgCompiler = class {
7169
6957
  new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
7170
6958
  new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
7171
6959
  new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder),
7172
- new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.adapter.factoryTracker, this.closureCompilerEnabled, (_a = this.options.onlyPublishPublicTypingsForNgModules) != null ? _a : false, injectableRegistry, this.delegatingPerfRecorder)
6960
+ new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.closureCompilerEnabled, (_a = this.options.onlyPublishPublicTypingsForNgModules) != null ? _a : false, injectableRegistry, this.delegatingPerfRecorder)
7173
6961
  ];
7174
6962
  const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
7175
6963
  const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
@@ -7201,18 +6989,18 @@ function isAngularCorePackage(program) {
7201
6989
  return false;
7202
6990
  }
7203
6991
  return r3Symbols.statements.some((stmt) => {
7204
- if (!ts32.isVariableStatement(stmt)) {
6992
+ if (!ts30.isVariableStatement(stmt)) {
7205
6993
  return false;
7206
6994
  }
7207
- const modifiers = ts32.getModifiers(stmt);
7208
- if (modifiers === void 0 || !modifiers.some((mod) => mod.kind === ts32.SyntaxKind.ExportKeyword)) {
6995
+ const modifiers = ts30.getModifiers(stmt);
6996
+ if (modifiers === void 0 || !modifiers.some((mod) => mod.kind === ts30.SyntaxKind.ExportKeyword)) {
7209
6997
  return false;
7210
6998
  }
7211
6999
  return stmt.declarationList.declarations.some((decl) => {
7212
- if (!ts32.isIdentifier(decl.name) || decl.name.text !== "ITS_JUST_ANGULAR") {
7000
+ if (!ts30.isIdentifier(decl.name) || decl.name.text !== "ITS_JUST_ANGULAR") {
7213
7001
  return false;
7214
7002
  }
7215
- if (decl.initializer === void 0 || decl.initializer.kind !== ts32.SyntaxKind.TrueKeyword) {
7003
+ if (decl.initializer === void 0 || decl.initializer.kind !== ts30.SyntaxKind.TrueKeyword) {
7216
7004
  return false;
7217
7005
  }
7218
7006
  return true;
@@ -7226,7 +7014,7 @@ function* verifyCompatibleTypeCheckOptions(options) {
7226
7014
  var _a, _b, _c;
7227
7015
  if (options.fullTemplateTypeCheck === false && options.strictTemplates === true) {
7228
7016
  yield makeConfigDiagnostic({
7229
- category: ts32.DiagnosticCategory.Error,
7017
+ category: ts30.DiagnosticCategory.Error,
7230
7018
  code: ErrorCode.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK,
7231
7019
  messageText: `
7232
7020
  Angular compiler option "strictTemplates" is enabled, however "fullTemplateTypeCheck" is disabled.
@@ -7245,7 +7033,7 @@ https://angular.io/guide/template-typecheck
7245
7033
  }
7246
7034
  if (options.extendedDiagnostics && options.strictTemplates === false) {
7247
7035
  yield makeConfigDiagnostic({
7248
- category: ts32.DiagnosticCategory.Error,
7036
+ category: ts30.DiagnosticCategory.Error,
7249
7037
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES,
7250
7038
  messageText: `
7251
7039
  Angular compiler option "extendedDiagnostics" is configured, however "strictTemplates" is disabled.
@@ -7262,7 +7050,7 @@ One of the following actions is required:
7262
7050
  const defaultCategory = (_a = options.extendedDiagnostics) == null ? void 0 : _a.defaultCategory;
7263
7051
  if (defaultCategory && !allowedCategoryLabels.includes(defaultCategory)) {
7264
7052
  yield makeConfigDiagnostic({
7265
- category: ts32.DiagnosticCategory.Error,
7053
+ category: ts30.DiagnosticCategory.Error,
7266
7054
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL,
7267
7055
  messageText: `
7268
7056
  Angular compiler option "extendedDiagnostics.defaultCategory" has an unknown diagnostic category: "${defaultCategory}".
@@ -7276,7 +7064,7 @@ ${allowedCategoryLabels.join("\n")}
7276
7064
  for (const [checkName, category] of Object.entries((_c = (_b = options.extendedDiagnostics) == null ? void 0 : _b.checks) != null ? _c : {})) {
7277
7065
  if (!allExtendedDiagnosticNames.includes(checkName)) {
7278
7066
  yield makeConfigDiagnostic({
7279
- category: ts32.DiagnosticCategory.Error,
7067
+ category: ts30.DiagnosticCategory.Error,
7280
7068
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK,
7281
7069
  messageText: `
7282
7070
  Angular compiler option "extendedDiagnostics.checks" has an unknown check: "${checkName}".
@@ -7288,7 +7076,7 @@ ${allExtendedDiagnosticNames.join("\n")}
7288
7076
  }
7289
7077
  if (!allowedCategoryLabels.includes(category)) {
7290
7078
  yield makeConfigDiagnostic({
7291
- category: ts32.DiagnosticCategory.Error,
7079
+ category: ts30.DiagnosticCategory.Error,
7292
7080
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL,
7293
7081
  messageText: `
7294
7082
  Angular compiler option "extendedDiagnostics.checks['${checkName}']" has an unknown diagnostic category: "${category}".
@@ -7318,7 +7106,7 @@ var ReferenceGraphAdapter = class {
7318
7106
  for (const { node } of references) {
7319
7107
  let sourceFile = node.getSourceFile();
7320
7108
  if (sourceFile === void 0) {
7321
- sourceFile = ts32.getOriginalNode(node).getSourceFile();
7109
+ sourceFile = ts30.getOriginalNode(node).getSourceFile();
7322
7110
  }
7323
7111
  if (sourceFile === void 0 || !isDtsPath(sourceFile.fileName)) {
7324
7112
  this.graph.add(source, node);
@@ -7357,7 +7145,7 @@ function versionMapFromProgram(program, driver) {
7357
7145
  }
7358
7146
 
7359
7147
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
7360
- import ts33 from "typescript";
7148
+ import ts31 from "typescript";
7361
7149
  var DelegatingCompilerHost2 = class {
7362
7150
  constructor(delegate) {
7363
7151
  this.delegate = delegate;
@@ -7394,13 +7182,11 @@ var DelegatingCompilerHost2 = class {
7394
7182
  }
7395
7183
  };
7396
7184
  var NgCompilerHost = class extends DelegatingCompilerHost2 {
7397
- constructor(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, factoryTracker, diagnostics) {
7185
+ constructor(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, diagnostics) {
7398
7186
  super(delegate);
7399
7187
  this.shimAdapter = shimAdapter;
7400
7188
  this.shimTagger = shimTagger;
7401
- this.factoryTracker = null;
7402
7189
  this.entryPoint = null;
7403
- this.factoryTracker = factoryTracker;
7404
7190
  this.entryPoint = entryPoint;
7405
7191
  this.constructionDiagnostics = diagnostics;
7406
7192
  this.inputFiles = [...inputFiles, ...shimAdapter.extraInputFiles];
@@ -7419,20 +7205,8 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
7419
7205
  this.shimTagger.finalize();
7420
7206
  }
7421
7207
  static wrap(delegate, inputFiles, options, oldProgram) {
7422
- const allowEmptyCodegenFiles = options.allowEmptyCodegenFiles || false;
7423
- const shouldGenerateFactoryShims = options.generateNgFactoryShims !== void 0 ? options.generateNgFactoryShims : allowEmptyCodegenFiles;
7424
- const shouldGenerateSummaryShims = options.generateNgSummaryShims !== void 0 ? options.generateNgSummaryShims : allowEmptyCodegenFiles;
7425
7208
  const topLevelShimGenerators = [];
7426
7209
  const perFileShimGenerators = [];
7427
- if (shouldGenerateSummaryShims) {
7428
- perFileShimGenerators.push(new SummaryGenerator());
7429
- }
7430
- let factoryTracker = null;
7431
- if (shouldGenerateFactoryShims) {
7432
- const factoryGenerator = new FactoryGenerator();
7433
- perFileShimGenerators.push(factoryGenerator);
7434
- factoryTracker = factoryGenerator;
7435
- }
7436
7210
  const rootDirs = getRootDirs(delegate, options);
7437
7211
  perFileShimGenerators.push(new TypeCheckShimGenerator());
7438
7212
  let diagnostics = [];
@@ -7448,7 +7222,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
7448
7222
  entryPoint = findFlatIndexEntryPoint(normalizedTsInputFiles);
7449
7223
  if (entryPoint === null) {
7450
7224
  diagnostics.push({
7451
- category: ts33.DiagnosticCategory.Error,
7225
+ category: ts31.DiagnosticCategory.Error,
7452
7226
  code: ngErrorCode(ErrorCode.CONFIG_FLAT_MODULE_NO_INDEX),
7453
7227
  file: void 0,
7454
7228
  start: void 0,
@@ -7464,7 +7238,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
7464
7238
  }
7465
7239
  const shimAdapter = new ShimAdapter(delegate, normalizedTsInputFiles, topLevelShimGenerators, perFileShimGenerators, oldProgram);
7466
7240
  const shimTagger = new ShimReferenceTagger(perFileShimGenerators.map((gen) => gen.extensionPrefix));
7467
- return new NgCompilerHost(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, factoryTracker, diagnostics);
7241
+ return new NgCompilerHost(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, diagnostics);
7468
7242
  }
7469
7243
  isShim(sf) {
7470
7244
  return isShim(sf);
@@ -7491,10 +7265,10 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
7491
7265
  return this.fileNameToModuleName !== void 0 ? this : null;
7492
7266
  }
7493
7267
  createCachedResolveModuleNamesFunction() {
7494
- const moduleResolutionCache = ts33.createModuleResolutionCache(this.getCurrentDirectory(), this.getCanonicalFileName.bind(this));
7268
+ const moduleResolutionCache = ts31.createModuleResolutionCache(this.getCurrentDirectory(), this.getCanonicalFileName.bind(this));
7495
7269
  return (moduleNames, containingFile, reusedNames, redirectedReference, options) => {
7496
7270
  return moduleNames.map((moduleName) => {
7497
- const module = ts33.resolveModuleName(moduleName, containingFile, options, this, moduleResolutionCache, redirectedReference);
7271
+ const module = ts31.resolveModuleName(moduleName, containingFile, options, this, moduleResolutionCache, redirectedReference);
7498
7272
  return module.resolvedModule;
7499
7273
  });
7500
7274
  };
@@ -7515,7 +7289,7 @@ var NgtscProgram = class {
7515
7289
  if (reuseProgram !== void 0) {
7516
7290
  retagAllTsFiles(reuseProgram);
7517
7291
  }
7518
- this.tsProgram = perfRecorder.inPhase(PerfPhase.TypeScriptProgramCreate, () => ts34.createProgram(this.host.inputFiles, options, this.host, reuseProgram));
7292
+ this.tsProgram = perfRecorder.inPhase(PerfPhase.TypeScriptProgramCreate, () => ts32.createProgram(this.host.inputFiles, options, this.host, reuseProgram));
7519
7293
  perfRecorder.phase(PerfPhase.Unaccounted);
7520
7294
  perfRecorder.memory(PerfCheckpoint.TypeScriptProgramCreate);
7521
7295
  this.host.postProgramCreationCleanup();
@@ -7725,16 +7499,16 @@ function createProgram({ rootNames, options, host, oldProgram }) {
7725
7499
  }
7726
7500
 
7727
7501
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7728
- import ts36 from "typescript";
7502
+ import ts34 from "typescript";
7729
7503
 
7730
7504
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
7731
- import ts35 from "typescript";
7505
+ import ts33 from "typescript";
7732
7506
  function createMessageDiagnostic(messageText) {
7733
7507
  return {
7734
7508
  file: void 0,
7735
7509
  start: void 0,
7736
7510
  length: void 0,
7737
- category: ts35.DiagnosticCategory.Message,
7511
+ category: ts33.DiagnosticCategory.Message,
7738
7512
  messageText,
7739
7513
  code: DEFAULT_ERROR_CODE,
7740
7514
  source: SOURCE
@@ -7743,13 +7517,13 @@ function createMessageDiagnostic(messageText) {
7743
7517
 
7744
7518
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7745
7519
  var defaultFormatHost = {
7746
- getCurrentDirectory: () => ts36.sys.getCurrentDirectory(),
7520
+ getCurrentDirectory: () => ts34.sys.getCurrentDirectory(),
7747
7521
  getCanonicalFileName: (fileName) => fileName,
7748
- getNewLine: () => ts36.sys.newLine
7522
+ getNewLine: () => ts34.sys.newLine
7749
7523
  };
7750
7524
  function formatDiagnostics(diags, host = defaultFormatHost) {
7751
7525
  if (diags && diags.length) {
7752
- return diags.map((diagnostic) => replaceTsWithNgInErrors(ts36.formatDiagnosticsWithColorAndContext([diagnostic], host))).join("");
7526
+ return diags.map((diagnostic) => replaceTsWithNgInErrors(ts34.formatDiagnosticsWithColorAndContext([diagnostic], host))).join("");
7753
7527
  } else {
7754
7528
  return "";
7755
7529
  }
@@ -7766,7 +7540,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
7766
7540
  var _a;
7767
7541
  try {
7768
7542
  const fs = getFileSystem();
7769
- const readConfigFile = (configFile) => ts36.readConfigFile(configFile, (file) => host.readFile(host.resolve(file)));
7543
+ const readConfigFile = (configFile) => ts34.readConfigFile(configFile, (file) => host.readFile(host.resolve(file)));
7770
7544
  const readAngularCompilerOptions = (configFile, parentOptions = {}) => {
7771
7545
  const { config: config2, error: error2 } = readConfigFile(configFile);
7772
7546
  if (error2) {
@@ -7800,7 +7574,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
7800
7574
  ...existingOptions
7801
7575
  };
7802
7576
  const parseConfigHost = createParseConfigHost(host, fs);
7803
- const { options, errors, fileNames: rootNames, projectReferences } = ts36.parseJsonConfigFileContent(config, parseConfigHost, basePath, existingCompilerOptions, configFileName);
7577
+ const { options, errors, fileNames: rootNames, projectReferences } = ts34.parseJsonConfigFileContent(config, parseConfigHost, basePath, existingCompilerOptions, configFileName);
7804
7578
  let emitFlags = EmitFlags.Default;
7805
7579
  if (!(options.skipMetadataEmit || options.flatModuleOutFile)) {
7806
7580
  emitFlags |= EmitFlags.Metadata;
@@ -7811,7 +7585,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
7811
7585
  return { project: projectFile, rootNames, projectReferences, options, errors, emitFlags };
7812
7586
  } catch (e) {
7813
7587
  const errors = [{
7814
- category: ts36.DiagnosticCategory.Error,
7588
+ category: ts34.DiagnosticCategory.Error,
7815
7589
  messageText: (_a = e.stack) != null ? _a : e.message,
7816
7590
  file: void 0,
7817
7591
  start: void 0,
@@ -7825,7 +7599,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
7825
7599
  function createParseConfigHost(host, fs = getFileSystem()) {
7826
7600
  return {
7827
7601
  fileExists: host.exists.bind(host),
7828
- readDirectory: ts36.sys.readDirectory,
7602
+ readDirectory: ts34.sys.readDirectory,
7829
7603
  readFile: host.readFile.bind(host),
7830
7604
  useCaseSensitiveFileNames: fs.isCaseSensitive()
7831
7605
  };
@@ -7845,7 +7619,7 @@ function getExtendedConfigPathWorker(configFile, extendsValue, host, fs) {
7845
7619
  }
7846
7620
  } else {
7847
7621
  const parseConfigHost = createParseConfigHost(host, fs);
7848
- const { resolvedModule } = ts36.nodeModuleNameResolver(extendsValue, configFile, { moduleResolution: ts36.ModuleResolutionKind.NodeJs, resolveJsonModule: true }, parseConfigHost);
7622
+ const { resolvedModule } = ts34.nodeModuleNameResolver(extendsValue, configFile, { moduleResolution: ts34.ModuleResolutionKind.NodeJs, resolveJsonModule: true }, parseConfigHost);
7849
7623
  if (resolvedModule) {
7850
7624
  return absoluteFrom(resolvedModule.resolvedFileName);
7851
7625
  }
@@ -7855,7 +7629,7 @@ function getExtendedConfigPathWorker(configFile, extendsValue, host, fs) {
7855
7629
  function exitCodeFromResult(diags) {
7856
7630
  if (!diags)
7857
7631
  return 0;
7858
- if (diags.every((diag) => diag.category !== ts36.DiagnosticCategory.Error)) {
7632
+ if (diags.every((diag) => diag.category !== ts34.DiagnosticCategory.Error)) {
7859
7633
  return 0;
7860
7634
  }
7861
7635
  return diags.some((d) => d.source === "angular" && d.code === UNKNOWN_ERROR_CODE) ? 2 : 1;
@@ -7888,7 +7662,7 @@ function performCompilation({ rootNames, options, host, oldProgram, emitCallback
7888
7662
  } catch (e) {
7889
7663
  program = void 0;
7890
7664
  allDiagnostics.push({
7891
- category: ts36.DiagnosticCategory.Error,
7665
+ category: ts34.DiagnosticCategory.Error,
7892
7666
  messageText: (_a = e.stack) != null ? _a : e.message,
7893
7667
  code: UNKNOWN_ERROR_CODE,
7894
7668
  file: void 0,
@@ -7915,7 +7689,7 @@ function defaultGatherDiagnostics(program) {
7915
7689
  return allDiagnostics;
7916
7690
  }
7917
7691
  function hasErrors(diags) {
7918
- return diags.some((d) => d.category === ts36.DiagnosticCategory.Error);
7692
+ return diags.some((d) => d.category === ts34.DiagnosticCategory.Error);
7919
7693
  }
7920
7694
 
7921
7695
  export {
@@ -7925,9 +7699,6 @@ export {
7925
7699
  isTsDiagnostic,
7926
7700
  EmitFlags,
7927
7701
  createCompilerHost,
7928
- CycleAnalyzer,
7929
- ImportGraph,
7930
- isShim,
7931
7702
  untagAllTsFiles,
7932
7703
  TsCreateProgramDriver,
7933
7704
  PatchedProgramIncrementalBuildStrategy,
@@ -7952,5 +7723,4 @@ export {
7952
7723
  * Use of this source code is governed by an MIT-style license that can be
7953
7724
  * found in the LICENSE file at https://angular.io/license
7954
7725
  */
7955
- // Closure Compiler ignores @suppress and similar if the comment contains @license.
7956
- //# sourceMappingURL=chunk-HYFCMILZ.js.map
7726
+ //# sourceMappingURL=chunk-IS6KZYEA.js.map