@angular/core 16.0.0-rc.1 → 16.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/esm2022/rxjs-interop/src/take_until_destroyed.mjs +3 -2
  2. package/esm2022/rxjs-interop/src/to_observable.mjs +19 -18
  3. package/esm2022/src/application_init.mjs +9 -3
  4. package/esm2022/src/application_ref.mjs +2 -1
  5. package/esm2022/src/errors.mjs +3 -3
  6. package/esm2022/src/hydration/annotate.mjs +5 -2
  7. package/esm2022/src/hydration/api.mjs +2 -2
  8. package/esm2022/src/hydration/error_handling.mjs +13 -5
  9. package/esm2022/src/hydration/node_lookup_utils.mjs +13 -8
  10. package/esm2022/src/hydration/tokens.mjs +3 -4
  11. package/esm2022/src/linker/template_ref.mjs +3 -2
  12. package/esm2022/src/render3/collect_native_nodes.mjs +18 -3
  13. package/esm2022/src/render3/component_ref.mjs +3 -2
  14. package/esm2022/src/render3/definition.mjs +4 -5
  15. package/esm2022/src/render3/i18n/i18n_parse.mjs +5 -6
  16. package/esm2022/src/render3/instructions/change_detection.mjs +263 -3
  17. package/esm2022/src/render3/instructions/element.mjs +2 -2
  18. package/esm2022/src/render3/instructions/element_container.mjs +2 -2
  19. package/esm2022/src/render3/instructions/render.mjs +125 -0
  20. package/esm2022/src/render3/instructions/shared.mjs +72 -427
  21. package/esm2022/src/render3/instructions/styling.mjs +22 -2
  22. package/esm2022/src/render3/instructions/template.mjs +22 -9
  23. package/esm2022/src/render3/interfaces/container.mjs +3 -3
  24. package/esm2022/src/render3/interfaces/view.mjs +2 -2
  25. package/esm2022/src/render3/node_manipulation.mjs +4 -8
  26. package/esm2022/src/render3/reactive_lview_consumer.mjs +4 -4
  27. package/esm2022/src/render3/reactivity/effect.mjs +8 -3
  28. package/esm2022/src/render3/util/view_utils.mjs +35 -11
  29. package/esm2022/src/render3/view_ref.mjs +2 -2
  30. package/esm2022/src/version.mjs +1 -1
  31. package/esm2022/testing/src/logger.mjs +3 -3
  32. package/esm2022/testing/src/test_bed.mjs +1 -3
  33. package/esm2022/testing/src/test_bed_common.mjs +1 -1
  34. package/esm2022/testing/src/test_bed_compiler.mjs +3 -8
  35. package/esm2022/testing/src/testing_internal.mjs +1 -2
  36. package/fesm2022/core.mjs +741 -640
  37. package/fesm2022/core.mjs.map +1 -1
  38. package/fesm2022/rxjs-interop.mjs +23 -21
  39. package/fesm2022/rxjs-interop.mjs.map +1 -1
  40. package/fesm2022/testing.mjs +730 -645
  41. package/fesm2022/testing.mjs.map +1 -1
  42. package/index.d.ts +24 -10
  43. package/package.json +1 -1
  44. package/rxjs-interop/index.d.ts +1 -1
  45. package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
  46. package/schematics/migrations/remove-module-id/bundle.js +14 -14
  47. package/schematics/ng-generate/standalone-migration/bundle.js +965 -494
  48. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  49. package/testing/index.d.ts +3 -3
  50. package/esm2022/testing/src/ng_zone_mock.mjs +0 -34
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
63
63
  });
64
64
  };
65
65
 
66
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
66
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
67
67
  var standalone_migration_exports = {};
68
68
  __export(standalone_migration_exports, {
69
69
  default: () => standalone_migration_default
@@ -71,10 +71,10 @@ __export(standalone_migration_exports, {
71
71
  module.exports = __toCommonJS(standalone_migration_exports);
72
72
  var import_schematics = require("@angular-devkit/schematics");
73
73
 
74
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
74
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
75
75
  var import_typescript = __toESM(require("typescript"), 1);
76
76
 
77
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
77
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
78
78
  var InvalidFileSystem = class {
79
79
  exists(path3) {
80
80
  throw makeError();
@@ -162,7 +162,7 @@ function makeError() {
162
162
  return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
163
163
  }
164
164
 
165
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
165
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
166
166
  var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
167
167
  function stripExtension(path3) {
168
168
  return path3.replace(TS_DTS_JS_EXTENSION, "");
@@ -175,7 +175,7 @@ function getSourceFileOrError(program, fileName) {
175
175
  return sf;
176
176
  }
177
177
 
178
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
178
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
179
179
  var fs = new InvalidFileSystem();
180
180
  function getFileSystem() {
181
181
  return fs;
@@ -219,7 +219,7 @@ function toRelativeImport(relativePath) {
219
219
  return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
220
220
  }
221
221
 
222
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
222
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
223
223
  var LogicalProjectPath = {
224
224
  relativePathBetween: function(from, to) {
225
225
  const relativePath = relative(dirname(resolve(from)), resolve(to));
@@ -265,7 +265,7 @@ function isWithinBasePath(base, path3) {
265
265
  return isLocalRelativePath(relative(base, path3));
266
266
  }
267
267
 
268
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
268
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
269
269
  var import_fs = __toESM(require("fs"), 1);
270
270
  var import_module = __toESM(require("module"), 1);
271
271
  var p = __toESM(require("path"), 1);
@@ -373,7 +373,7 @@ function toggleCase(str) {
373
373
  return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
374
374
  }
375
375
 
376
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/selector.mjs
376
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/selector.mjs
377
377
  var _SELECTOR_REGEXP = new RegExp(
378
378
  `(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
379
379
  "g"
@@ -681,7 +681,7 @@ var SelectorContext = class {
681
681
  }
682
682
  };
683
683
 
684
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/core.mjs
684
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/core.mjs
685
685
  var emitDistinctChangesOnlyDefaultValue = true;
686
686
  var ViewEncapsulation;
687
687
  (function(ViewEncapsulation2) {
@@ -744,7 +744,7 @@ function parseSelectorToR3Selector(selector) {
744
744
  return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
745
745
  }
746
746
 
747
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/big_integer.mjs
747
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/big_integer.mjs
748
748
  var BigInteger = class {
749
749
  static zero() {
750
750
  return new BigInteger([0]);
@@ -836,7 +836,7 @@ var BigIntExponentiation = class {
836
836
  }
837
837
  };
838
838
 
839
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
839
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
840
840
  var textEncoder;
841
841
  function digest(message) {
842
842
  return message.id || computeDigest(message);
@@ -1099,7 +1099,7 @@ function wordsToDecimalString(hi, lo) {
1099
1099
  return decimal.toString();
1100
1100
  }
1101
1101
 
1102
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
1102
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
1103
1103
  var TypeModifier;
1104
1104
  (function(TypeModifier2) {
1105
1105
  TypeModifier2[TypeModifier2["None"] = 0] = "None";
@@ -2084,7 +2084,7 @@ function serializeTags(tags) {
2084
2084
  return out;
2085
2085
  }
2086
2086
 
2087
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
2087
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/constant_pool.mjs
2088
2088
  var CONSTANT_PREFIX = "_c";
2089
2089
  var UNKNOWN_VALUE_KEY = variable("<unknown>");
2090
2090
  var KEY_CONTEXT = {};
@@ -2093,6 +2093,7 @@ var FixupExpression = class extends Expression {
2093
2093
  constructor(resolved) {
2094
2094
  super(resolved.type);
2095
2095
  this.resolved = resolved;
2096
+ this.shared = false;
2096
2097
  this.original = resolved;
2097
2098
  }
2098
2099
  visitExpression(visitor, context) {
@@ -2252,7 +2253,7 @@ function isLongStringLiteral(expr) {
2252
2253
  return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
2253
2254
  }
2254
2255
 
2255
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
2256
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
2256
2257
  var CORE = "@angular/core";
2257
2258
  var _Identifiers = class {
2258
2259
  };
@@ -2807,7 +2808,7 @@ var Identifiers = _Identifiers;
2807
2808
  _Identifiers.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: CORE };
2808
2809
  })();
2809
2810
 
2810
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
2811
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/util.mjs
2811
2812
  var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
2812
2813
  function dashCaseToCamelCase(input) {
2813
2814
  return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
@@ -2895,7 +2896,7 @@ function partitionArray(arr, conditionFn) {
2895
2896
  return [truthy, falsy];
2896
2897
  }
2897
2898
 
2898
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
2899
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/source_map.mjs
2899
2900
  var VERSION = 3;
2900
2901
  var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
2901
2902
  var SourceMapGenerator = class {
@@ -3024,7 +3025,7 @@ function toBase64Digit(value) {
3024
3025
  return B64_DIGITS[value];
3025
3026
  }
3026
3027
 
3027
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
3028
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
3028
3029
  var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
3029
3030
  var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
3030
3031
  var _INDENT_WITH = " ";
@@ -3499,7 +3500,7 @@ function _createIndent(count) {
3499
3500
  return res;
3500
3501
  }
3501
3502
 
3502
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
3503
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/util.mjs
3503
3504
  function typeWithParameters(type, numParams) {
3504
3505
  if (numParams === 0) {
3505
3506
  return expressionType(type);
@@ -3567,7 +3568,7 @@ function generateForwardRef(expr) {
3567
3568
  return importExpr(Identifiers.forwardRef).callFn([fn([], [new ReturnStatement(expr)])]);
3568
3569
  }
3569
3570
 
3570
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
3571
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
3571
3572
  var R3FactoryDelegateType;
3572
3573
  (function(R3FactoryDelegateType2) {
3573
3574
  R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
@@ -3712,7 +3713,7 @@ function getInjectFn(target) {
3712
3713
  }
3713
3714
  }
3714
3715
 
3715
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
3716
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
3716
3717
  var Comment = class {
3717
3718
  constructor(value, sourceSpan) {
3718
3719
  this.value = value;
@@ -3934,7 +3935,7 @@ function visitAll(visitor, nodes) {
3934
3935
  return result;
3935
3936
  }
3936
3937
 
3937
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
3938
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
3938
3939
  var Message = class {
3939
3940
  constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
3940
3941
  this.nodes = nodes;
@@ -3978,11 +3979,12 @@ var Container = class {
3978
3979
  }
3979
3980
  };
3980
3981
  var Icu2 = class {
3981
- constructor(expression, type, cases, sourceSpan) {
3982
+ constructor(expression, type, cases, sourceSpan, expressionPlaceholder) {
3982
3983
  this.expression = expression;
3983
3984
  this.type = type;
3984
3985
  this.cases = cases;
3985
3986
  this.sourceSpan = sourceSpan;
3987
+ this.expressionPlaceholder = expressionPlaceholder;
3986
3988
  }
3987
3989
  visit(visitor, context) {
3988
3990
  return visitor.visitIcu(this, context);
@@ -4035,8 +4037,7 @@ var CloneVisitor = class {
4035
4037
  visitIcu(icu, context) {
4036
4038
  const cases = {};
4037
4039
  Object.keys(icu.cases).forEach((key) => cases[key] = icu.cases[key].visit(this, context));
4038
- const msg = new Icu2(icu.expression, icu.type, cases, icu.sourceSpan);
4039
- msg.expressionPlaceholder = icu.expressionPlaceholder;
4040
+ const msg = new Icu2(icu.expression, icu.type, cases, icu.sourceSpan, icu.expressionPlaceholder);
4040
4041
  return msg;
4041
4042
  }
4042
4043
  visitTagPlaceholder(ph, context) {
@@ -4097,7 +4098,7 @@ var LocalizeMessageStringVisitor = class {
4097
4098
  }
4098
4099
  };
4099
4100
 
4100
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
4101
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
4101
4102
  var Serializer = class {
4102
4103
  createNameMapper(message) {
4103
4104
  return null;
@@ -4149,7 +4150,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
4149
4150
  }
4150
4151
  };
4151
4152
 
4152
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
4153
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
4153
4154
  var _Visitor = class {
4154
4155
  visitTag(tag) {
4155
4156
  const strAttrs = this._serializeAttributes(tag.attrs);
@@ -4237,7 +4238,7 @@ function escapeXml(text2) {
4237
4238
  return _ESCAPED_CHARS.reduce((text3, entry) => text3.replace(entry[0], entry[1]), text2);
4238
4239
  }
4239
4240
 
4240
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
4241
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
4241
4242
  var _MESSAGES_TAG = "messagebundle";
4242
4243
  var _MESSAGE_TAG = "msg";
4243
4244
  var _PLACEHOLDER_TAG = "ph";
@@ -4380,7 +4381,7 @@ function toPublicName(internalName) {
4380
4381
  return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
4381
4382
  }
4382
4383
 
4383
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
4384
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
4384
4385
  var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
4385
4386
  var TRANSLATION_VAR_PREFIX = "i18n_";
4386
4387
  var I18N_ATTR = "i18n";
@@ -4482,7 +4483,7 @@ function declareI18nVariable(variable2) {
4482
4483
  return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
4483
4484
  }
4484
4485
 
4485
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
4486
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
4486
4487
  var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
4487
4488
  var TEMPORARY_NAME = "_t";
4488
4489
  var CONTEXT_NAME = "ctx";
@@ -4690,7 +4691,7 @@ function getInstructionStatements(instructions) {
4690
4691
  return statements;
4691
4692
  }
4692
4693
 
4693
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
4694
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
4694
4695
  function compileInjectable(meta, resolveForwardRefs) {
4695
4696
  let result = null;
4696
4697
  const factoryMeta = {
@@ -4778,7 +4779,7 @@ function createFactoryFunction(type) {
4778
4779
  return fn([new FnParam("t", DYNAMIC_TYPE)], [new ReturnStatement(type.prop("\u0275fac").callFn([variable("t")]))]);
4779
4780
  }
4780
4781
 
4781
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
4782
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/assertions.mjs
4782
4783
  var UNUSABLE_INTERPOLATION_REGEXPS = [
4783
4784
  /^\s*$/,
4784
4785
  /[<>]/,
@@ -4800,7 +4801,7 @@ function assertInterpolationSymbols(identifier, value) {
4800
4801
  }
4801
4802
  }
4802
4803
 
4803
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
4804
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
4804
4805
  var InterpolationConfig = class {
4805
4806
  static fromArray(markers) {
4806
4807
  if (!markers) {
@@ -4816,7 +4817,7 @@ var InterpolationConfig = class {
4816
4817
  };
4817
4818
  var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
4818
4819
 
4819
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
4820
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/chars.mjs
4820
4821
  var $EOF = 0;
4821
4822
  var $BSPACE = 8;
4822
4823
  var $TAB = 9;
@@ -4897,7 +4898,7 @@ function isQuote(code) {
4897
4898
  return code === $SQ || code === $DQ || code === $BT;
4898
4899
  }
4899
4900
 
4900
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
4901
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/parse_util.mjs
4901
4902
  var ParseLocation = class {
4902
4903
  constructor(file, offset, line, col) {
4903
4904
  this.file = file;
@@ -5044,7 +5045,7 @@ function sanitizeIdentifier(name) {
5044
5045
  return name.replace(/\W/g, "_");
5045
5046
  }
5046
5047
 
5047
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
5048
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
5048
5049
  var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
5049
5050
  var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
5050
5051
  constructor() {
@@ -5115,7 +5116,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
5115
5116
  }
5116
5117
  };
5117
5118
 
5118
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
5119
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
5119
5120
  var policy;
5120
5121
  function getPolicy() {
5121
5122
  if (policy === void 0) {
@@ -5152,7 +5153,7 @@ function newTrustedFunctionForJIT(...args) {
5152
5153
  return fn2.bind(_global);
5153
5154
  }
5154
5155
 
5155
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
5156
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
5156
5157
  var JitEvaluator = class {
5157
5158
  evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
5158
5159
  const converter = new JitEmitterVisitor(refResolver);
@@ -5243,7 +5244,7 @@ function isUseStrictStatement(statement) {
5243
5244
  return statement.isEquivalent(literal("use strict").toStmt());
5244
5245
  }
5245
5246
 
5246
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
5247
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
5247
5248
  function compileInjector(meta) {
5248
5249
  const definitionMap = new DefinitionMap();
5249
5250
  if (meta.providers !== null) {
@@ -5260,7 +5261,7 @@ function createInjectorType(meta) {
5260
5261
  return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
5261
5262
  }
5262
5263
 
5263
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
5264
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
5264
5265
  var R3JitReflector = class {
5265
5266
  constructor(context) {
5266
5267
  this.context = context;
@@ -5276,7 +5277,7 @@ var R3JitReflector = class {
5276
5277
  }
5277
5278
  };
5278
5279
 
5279
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
5280
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
5280
5281
  var R3SelectorScopeMode;
5281
5282
  (function(R3SelectorScopeMode2) {
5282
5283
  R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
@@ -5389,7 +5390,7 @@ function tupleOfTypes(types) {
5389
5390
  return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
5390
5391
  }
5391
5392
 
5392
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
5393
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
5393
5394
  function compilePipeFromMetadata(metadata) {
5394
5395
  const definitionMapValues = [];
5395
5396
  definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
@@ -5410,7 +5411,7 @@ function createPipeType(metadata) {
5410
5411
  ]));
5411
5412
  }
5412
5413
 
5413
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
5414
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
5414
5415
  var R3TemplateDependencyKind;
5415
5416
  (function(R3TemplateDependencyKind2) {
5416
5417
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
@@ -5418,7 +5419,7 @@ var R3TemplateDependencyKind;
5418
5419
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
5419
5420
  })(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
5420
5421
 
5421
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
5422
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
5422
5423
  var ParserError = class {
5423
5424
  constructor(message, input, errLocation, ctxLocation) {
5424
5425
  this.input = input;
@@ -6084,7 +6085,7 @@ var BoundElementProperty = class {
6084
6085
  }
6085
6086
  };
6086
6087
 
6087
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
6088
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
6088
6089
  var _EventHandlerVars = class {
6089
6090
  };
6090
6091
  var EventHandlerVars = _EventHandlerVars;
@@ -6705,7 +6706,7 @@ var BuiltinFunctionCall = class extends Call {
6705
6706
  }
6706
6707
  };
6707
6708
 
6708
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
6709
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
6709
6710
  var _SECURITY_SCHEMA;
6710
6711
  function SECURITY_SCHEMA() {
6711
6712
  if (!_SECURITY_SCHEMA) {
@@ -6763,7 +6764,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
6763
6764
  return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
6764
6765
  }
6765
6766
 
6766
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
6767
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/shadow_css.mjs
6767
6768
  var animationKeywords = /* @__PURE__ */ new Set([
6768
6769
  "inherit",
6769
6770
  "initial",
@@ -7223,7 +7224,7 @@ function repeatGroups(groups, multiples) {
7223
7224
  }
7224
7225
  }
7225
7226
 
7226
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
7227
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
7227
7228
  var TagContentType;
7228
7229
  (function(TagContentType2) {
7229
7230
  TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
@@ -7256,7 +7257,7 @@ function mergeNsAndName(prefix, localName) {
7256
7257
  return prefix ? `:${prefix}:${localName}` : localName;
7257
7258
  }
7258
7259
 
7259
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/element.mjs
7260
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/element.mjs
7260
7261
  var ElementAttributeKind;
7261
7262
  (function(ElementAttributeKind2) {
7262
7263
  ElementAttributeKind2[ElementAttributeKind2["Attribute"] = 0] = "Attribute";
@@ -7333,7 +7334,7 @@ function assertIsElementAttributes(attrs) {
7333
7334
  }
7334
7335
  }
7335
7336
 
7336
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
7337
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
7337
7338
  var OpKind;
7338
7339
  (function(OpKind2) {
7339
7340
  OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
@@ -7367,7 +7368,7 @@ var SemanticVariableKind;
7367
7368
  SemanticVariableKind2[SemanticVariableKind2["SavedView"] = 2] = "SavedView";
7368
7369
  })(SemanticVariableKind || (SemanticVariableKind = {}));
7369
7370
 
7370
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
7371
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
7371
7372
  var ConsumesSlot = Symbol("ConsumesSlot");
7372
7373
  var DependsOnSlotContext = Symbol("DependsOnSlotContext");
7373
7374
  var UsesSlotIndex = Symbol("UsesSlotIndex");
@@ -7377,6 +7378,10 @@ var TRAIT_CONSUMES_SLOT = {
7377
7378
  slot: null,
7378
7379
  numSlotsUsed: 1
7379
7380
  };
7381
+ var TRAIT_USES_SLOT_INDEX = {
7382
+ [UsesSlotIndex]: true,
7383
+ slot: null
7384
+ };
7380
7385
  var TRAIT_DEPENDS_ON_SLOT_CONTEXT = {
7381
7386
  [DependsOnSlotContext]: true
7382
7387
  };
@@ -7392,11 +7397,11 @@ function hasDependsOnSlotContextTrait(op) {
7392
7397
  function hasConsumesVarsTrait(value) {
7393
7398
  return value[ConsumesVarsTrait] === true;
7394
7399
  }
7395
- function hasUsesSlotIndexTrait(expr) {
7396
- return expr[UsesSlotIndex] === true;
7400
+ function hasUsesSlotIndexTrait(value) {
7401
+ return value[UsesSlotIndex] === true;
7397
7402
  }
7398
7403
 
7399
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
7404
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
7400
7405
  var _a;
7401
7406
  var ExpressionBase = class extends Expression {
7402
7407
  constructor(sourceSpan = null) {
@@ -7465,11 +7470,12 @@ var NextContextExpr = class extends ExpressionBase {
7465
7470
  constructor() {
7466
7471
  super();
7467
7472
  this.kind = ExpressionKind.NextContext;
7473
+ this.steps = 1;
7468
7474
  }
7469
7475
  visitExpression() {
7470
7476
  }
7471
7477
  isEquivalent(e) {
7472
- return e instanceof NextContextExpr;
7478
+ return e instanceof NextContextExpr && e.steps === this.steps;
7473
7479
  }
7474
7480
  isConstant() {
7475
7481
  return false;
@@ -7517,9 +7523,9 @@ var RestoreViewExpr = class extends ExpressionBase {
7517
7523
  isConstant() {
7518
7524
  return false;
7519
7525
  }
7520
- transformInternalExpressions(transform) {
7526
+ transformInternalExpressions(transform, flags) {
7521
7527
  if (typeof this.view !== "number") {
7522
- this.view = transformExpressionsInExpression(this.view, transform);
7528
+ this.view = transformExpressionsInExpression(this.view, transform, flags);
7523
7529
  }
7524
7530
  }
7525
7531
  };
@@ -7538,8 +7544,8 @@ var ResetViewExpr = class extends ExpressionBase {
7538
7544
  isConstant() {
7539
7545
  return false;
7540
7546
  }
7541
- transformInternalExpressions(transform) {
7542
- this.expr = transformExpressionsInExpression(this.expr, transform);
7547
+ transformInternalExpressions(transform, flags) {
7548
+ this.expr = transformExpressionsInExpression(this.expr, transform, flags);
7543
7549
  }
7544
7550
  };
7545
7551
  var ReadVariableExpr = class extends ExpressionBase {
@@ -7561,30 +7567,35 @@ var ReadVariableExpr = class extends ExpressionBase {
7561
7567
  }
7562
7568
  };
7563
7569
  function visitExpressionsInOp(op, visitor) {
7564
- transformExpressionsInOp(op, (expr) => {
7565
- visitor(expr);
7570
+ transformExpressionsInOp(op, (expr, flags) => {
7571
+ visitor(expr, flags);
7566
7572
  return expr;
7567
- });
7568
- }
7569
- function transformExpressionsInOp(op, transform) {
7573
+ }, VisitorContextFlag.None);
7574
+ }
7575
+ var VisitorContextFlag;
7576
+ (function(VisitorContextFlag2) {
7577
+ VisitorContextFlag2[VisitorContextFlag2["None"] = 0] = "None";
7578
+ VisitorContextFlag2[VisitorContextFlag2["InChildOperation"] = 1] = "InChildOperation";
7579
+ })(VisitorContextFlag || (VisitorContextFlag = {}));
7580
+ function transformExpressionsInOp(op, transform, flags) {
7570
7581
  switch (op.kind) {
7571
7582
  case OpKind.Property:
7572
- op.expression = transformExpressionsInExpression(op.expression, transform);
7583
+ op.expression = transformExpressionsInExpression(op.expression, transform, flags);
7573
7584
  break;
7574
7585
  case OpKind.Statement:
7575
- transformExpressionsInStatement(op.statement, transform);
7586
+ transformExpressionsInStatement(op.statement, transform, flags);
7576
7587
  break;
7577
7588
  case OpKind.Variable:
7578
- op.initializer = transformExpressionsInExpression(op.initializer, transform);
7589
+ op.initializer = transformExpressionsInExpression(op.initializer, transform, flags);
7579
7590
  break;
7580
7591
  case OpKind.InterpolateText:
7581
7592
  for (let i = 0; i < op.expressions.length; i++) {
7582
- op.expressions[i] = transformExpressionsInExpression(op.expressions[i], transform);
7593
+ op.expressions[i] = transformExpressionsInExpression(op.expressions[i], transform, flags);
7583
7594
  }
7584
7595
  break;
7585
7596
  case OpKind.Listener:
7586
7597
  for (const innerOp of op.handlerOps) {
7587
- transformExpressionsInOp(innerOp, transform);
7598
+ transformExpressionsInOp(innerOp, transform, flags | VisitorContextFlag.InChildOperation);
7588
7599
  }
7589
7600
  break;
7590
7601
  case OpKind.Element:
@@ -7592,24 +7603,25 @@ function transformExpressionsInOp(op, transform) {
7592
7603
  case OpKind.ElementEnd:
7593
7604
  case OpKind.Template:
7594
7605
  case OpKind.Text:
7606
+ case OpKind.Advance:
7595
7607
  break;
7596
7608
  default:
7597
7609
  throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${OpKind[op.kind]}`);
7598
7610
  }
7599
7611
  }
7600
- function transformExpressionsInExpression(expr, transform) {
7612
+ function transformExpressionsInExpression(expr, transform, flags) {
7601
7613
  if (expr instanceof ExpressionBase) {
7602
- expr.transformInternalExpressions(transform);
7603
- return transform(expr);
7614
+ expr.transformInternalExpressions(transform, flags);
7615
+ return transform(expr, flags);
7604
7616
  } else if (expr instanceof BinaryOperatorExpr) {
7605
- expr.lhs = transformExpressionsInExpression(expr.lhs, transform);
7606
- expr.rhs = transformExpressionsInExpression(expr.rhs, transform);
7617
+ expr.lhs = transformExpressionsInExpression(expr.lhs, transform, flags);
7618
+ expr.rhs = transformExpressionsInExpression(expr.rhs, transform, flags);
7607
7619
  } else if (expr instanceof ReadPropExpr) {
7608
- expr.receiver = transformExpressionsInExpression(expr.receiver, transform);
7620
+ expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);
7609
7621
  } else if (expr instanceof InvokeFunctionExpr) {
7610
- expr.fn = transformExpressionsInExpression(expr.fn, transform);
7622
+ expr.fn = transformExpressionsInExpression(expr.fn, transform, flags);
7611
7623
  for (let i = 0; i < expr.args.length; i++) {
7612
- expr.args[i] = transformExpressionsInExpression(expr.args[i], transform);
7624
+ expr.args[i] = transformExpressionsInExpression(expr.args[i], transform, flags);
7613
7625
  }
7614
7626
  } else if (expr instanceof ReadVarExpr || expr instanceof ExternalExpr || expr instanceof LiteralExpr) {
7615
7627
  } else {
@@ -7617,17 +7629,17 @@ function transformExpressionsInExpression(expr, transform) {
7617
7629
  }
7618
7630
  return expr;
7619
7631
  }
7620
- function transformExpressionsInStatement(stmt, transform) {
7632
+ function transformExpressionsInStatement(stmt, transform, flags) {
7621
7633
  if (stmt instanceof ExpressionStatement) {
7622
- stmt.expr = transformExpressionsInExpression(stmt.expr, transform);
7634
+ stmt.expr = transformExpressionsInExpression(stmt.expr, transform, flags);
7623
7635
  } else if (stmt instanceof ReturnStatement) {
7624
- stmt.value = transformExpressionsInExpression(stmt.value, transform);
7636
+ stmt.value = transformExpressionsInExpression(stmt.value, transform, flags);
7625
7637
  } else {
7626
7638
  throw new Error(`Unhandled statement kind: ${stmt.constructor.name}`);
7627
7639
  }
7628
7640
  }
7629
7641
 
7630
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
7642
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
7631
7643
  var _OpList = class {
7632
7644
  constructor() {
7633
7645
  this.debugListId = _OpList.nextListId++;
@@ -7678,12 +7690,21 @@ var _OpList = class {
7678
7690
  *[Symbol.iterator]() {
7679
7691
  let current = this.head.next;
7680
7692
  while (current !== this.tail) {
7681
- _OpList.assertIsOwned(current);
7693
+ _OpList.assertIsOwned(current, this.debugListId);
7682
7694
  const next = current.next;
7683
7695
  yield current;
7684
7696
  current = next;
7685
7697
  }
7686
7698
  }
7699
+ *reversed() {
7700
+ let current = this.tail.prev;
7701
+ while (current !== this.head) {
7702
+ _OpList.assertIsOwned(current, this.debugListId);
7703
+ const prev = current.prev;
7704
+ yield current;
7705
+ current = prev;
7706
+ }
7707
+ }
7687
7708
  static replace(oldOp, newOp) {
7688
7709
  _OpList.assertIsNotEnd(oldOp);
7689
7710
  _OpList.assertIsNotEnd(newOp);
@@ -7751,7 +7772,7 @@ var _OpList = class {
7751
7772
  _OpList.assertIsNotEnd(before);
7752
7773
  _OpList.assertIsNotEnd(op);
7753
7774
  _OpList.assertIsUnowned(op);
7754
- _OpList.assertIsOwned(before, op.debugListId);
7775
+ _OpList.assertIsOwned(before);
7755
7776
  op.debugListId = before.debugListId;
7756
7777
  op.prev = null;
7757
7778
  before.prev.next = op;
@@ -7782,7 +7803,7 @@ var OpList = _OpList;
7782
7803
  _OpList.nextListId = 0;
7783
7804
  })();
7784
7805
 
7785
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
7806
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
7786
7807
  function createStatementOp(statement) {
7787
7808
  return __spreadValues({
7788
7809
  kind: OpKind.Statement,
@@ -7793,7 +7814,6 @@ function createVariableOp(xref, variable2, initializer) {
7793
7814
  return __spreadValues({
7794
7815
  kind: OpKind.Variable,
7795
7816
  xref,
7796
- name: null,
7797
7817
  variable: variable2,
7798
7818
  initializer
7799
7819
  }, NEW_OP);
@@ -7804,7 +7824,7 @@ var NEW_OP = {
7804
7824
  next: null
7805
7825
  };
7806
7826
 
7807
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
7827
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
7808
7828
  function createElementStartOp(tag, xref) {
7809
7829
  return __spreadValues(__spreadValues({
7810
7830
  kind: OpKind.ElementStart,
@@ -7838,17 +7858,18 @@ function createTextOp(xref, initialValue) {
7838
7858
  initialValue
7839
7859
  }, TRAIT_CONSUMES_SLOT), NEW_OP);
7840
7860
  }
7841
- function createListenerOp(xref, name) {
7842
- return __spreadValues({
7861
+ function createListenerOp(target, name, tag) {
7862
+ return __spreadValues(__spreadValues({
7843
7863
  kind: OpKind.Listener,
7844
- xref,
7864
+ target,
7865
+ tag,
7845
7866
  name,
7846
7867
  handlerOps: new OpList(),
7847
7868
  handlerFnName: null
7848
- }, NEW_OP);
7869
+ }, NEW_OP), TRAIT_USES_SLOT_INDEX);
7849
7870
  }
7850
7871
 
7851
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
7872
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
7852
7873
  function createInterpolateTextOp(xref, strings, expressions) {
7853
7874
  return __spreadValues(__spreadValues(__spreadValues({
7854
7875
  kind: OpKind.InterpolateText,
@@ -7872,7 +7893,7 @@ function createAdvanceOp(delta) {
7872
7893
  }, NEW_OP);
7873
7894
  }
7874
7895
 
7875
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
7896
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
7876
7897
  function phaseConstCollection(cpl) {
7877
7898
  for (const [_, view] of cpl.views) {
7878
7899
  for (const op of view.create) {
@@ -7913,7 +7934,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n, projectAs, s
7913
7934
  return literalArr(attrArray);
7914
7935
  }
7915
7936
 
7916
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
7937
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
7917
7938
  function phaseEmptyElements(cpl) {
7918
7939
  for (const [_, view] of cpl.views) {
7919
7940
  for (const op of view.create) {
@@ -7925,7 +7946,7 @@ function phaseEmptyElements(cpl) {
7925
7946
  }
7926
7947
  }
7927
7948
 
7928
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
7949
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
7929
7950
  function phaseGenerateAdvance(cpl) {
7930
7951
  for (const [_, view] of cpl.views) {
7931
7952
  const slotMap = /* @__PURE__ */ new Map();
@@ -7950,14 +7971,14 @@ function phaseGenerateAdvance(cpl) {
7950
7971
  if (delta < 0) {
7951
7972
  throw new Error(`AssertionError: slot counter should never need to move backwards`);
7952
7973
  }
7953
- OpList.insertBefore(op, createAdvanceOp(delta));
7974
+ OpList.insertBefore(createAdvanceOp(delta), op);
7954
7975
  slotContext = slot;
7955
7976
  }
7956
7977
  }
7957
7978
  }
7958
7979
  }
7959
7980
 
7960
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
7981
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
7961
7982
  function element(slot, tag, constIndex, localRefIndex) {
7962
7983
  return elementStartBase(Identifiers.element, slot, tag, constIndex, localRefIndex);
7963
7984
  }
@@ -8008,8 +8029,8 @@ function reference(slot) {
8008
8029
  literal(slot)
8009
8030
  ]);
8010
8031
  }
8011
- function nextContext() {
8012
- return importExpr(Identifiers.nextContext).callFn([]);
8032
+ function nextContext(steps) {
8033
+ return importExpr(Identifiers.nextContext).callFn(steps === 1 ? [] : [literal(steps)]);
8013
8034
  }
8014
8035
  function getCurrentView() {
8015
8036
  return importExpr(Identifiers.getCurrentView).callFn([]);
@@ -8020,7 +8041,7 @@ function restoreView(savedView) {
8020
8041
  ]);
8021
8042
  }
8022
8043
  function resetView(returnValue) {
8023
- return importExpr(Identifiers.reference).callFn([
8044
+ return importExpr(Identifiers.resetView).callFn([
8024
8045
  returnValue
8025
8046
  ]);
8026
8047
  }
@@ -8042,11 +8063,15 @@ function textInterpolate(strings, expressions) {
8042
8063
  throw new Error(`AssertionError: expected specific shape of args for strings/expressions in interpolation`);
8043
8064
  }
8044
8065
  const interpolationArgs = [];
8045
- let idx;
8046
- for (idx = 0; idx < expressions.length; idx++) {
8047
- interpolationArgs.push(literal(strings[idx]), expressions[idx]);
8066
+ if (expressions.length === 1 && strings[0] === "" && strings[1] === "") {
8067
+ interpolationArgs.push(expressions[0]);
8068
+ } else {
8069
+ let idx;
8070
+ for (idx = 0; idx < expressions.length; idx++) {
8071
+ interpolationArgs.push(literal(strings[idx]), expressions[idx]);
8072
+ }
8073
+ interpolationArgs.push(literal(strings[idx]));
8048
8074
  }
8049
- interpolationArgs.push(literal(strings[idx]));
8050
8075
  return callInterpolation(TEXT_INTERPOLATE_CONFIG, [], interpolationArgs);
8051
8076
  }
8052
8077
  function call(instruction, args) {
@@ -8078,7 +8103,7 @@ function callInterpolation(config, baseArgs, interpolationArgs) {
8078
8103
  }
8079
8104
  }
8080
8105
 
8081
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
8106
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
8082
8107
  function phaseReify(cpl) {
8083
8108
  for (const [_, view] of cpl.views) {
8084
8109
  reifyCreateOperations(view, view.create);
@@ -8087,7 +8112,7 @@ function phaseReify(cpl) {
8087
8112
  }
8088
8113
  function reifyCreateOperations(view, ops) {
8089
8114
  for (const op of ops) {
8090
- transformExpressionsInOp(op, reifyIrExpression);
8115
+ transformExpressionsInOp(op, reifyIrExpression, VisitorContextFlag.None);
8091
8116
  switch (op.kind) {
8092
8117
  case OpKind.Text:
8093
8118
  OpList.replace(op, text(op.slot, op.initialValue));
@@ -8103,17 +8128,17 @@ function reifyCreateOperations(view, ops) {
8103
8128
  break;
8104
8129
  case OpKind.Template:
8105
8130
  const childView = view.tpl.views.get(op.xref);
8106
- OpList.replace(op, template(op.slot, variable(childView.fnName), childView.decls, childView.vars, op.tag, op.localRefs));
8131
+ OpList.replace(op, template(op.slot, variable(childView.fnName), childView.decls, childView.vars, op.tag, op.attributes));
8107
8132
  break;
8108
8133
  case OpKind.Listener:
8109
8134
  const listenerFn = reifyListenerHandler(view, op.handlerFnName, op.handlerOps);
8110
8135
  OpList.replace(op, listener(op.name, listenerFn));
8111
8136
  break;
8112
8137
  case OpKind.Variable:
8113
- if (op.name === null) {
8138
+ if (op.variable.name === null) {
8114
8139
  throw new Error(`AssertionError: unnamed variable ${op.xref}`);
8115
8140
  }
8116
- OpList.replace(op, createStatementOp(new DeclareVarStmt(op.name, op.initializer)));
8141
+ OpList.replace(op, createStatementOp(new DeclareVarStmt(op.variable.name, op.initializer, void 0, StmtModifier.Final)));
8117
8142
  break;
8118
8143
  case OpKind.Statement:
8119
8144
  break;
@@ -8124,7 +8149,7 @@ function reifyCreateOperations(view, ops) {
8124
8149
  }
8125
8150
  function reifyUpdateOperations(_view, ops) {
8126
8151
  for (const op of ops) {
8127
- transformExpressionsInOp(op, reifyIrExpression);
8152
+ transformExpressionsInOp(op, reifyIrExpression, VisitorContextFlag.None);
8128
8153
  switch (op.kind) {
8129
8154
  case OpKind.Advance:
8130
8155
  OpList.replace(op, advance(op.delta));
@@ -8136,10 +8161,10 @@ function reifyUpdateOperations(_view, ops) {
8136
8161
  OpList.replace(op, textInterpolate(op.strings, op.expressions));
8137
8162
  break;
8138
8163
  case OpKind.Variable:
8139
- if (op.name === null) {
8164
+ if (op.variable.name === null) {
8140
8165
  throw new Error(`AssertionError: unnamed variable ${op.xref}`);
8141
8166
  }
8142
- OpList.replace(op, createStatementOp(new DeclareVarStmt(op.name, op.initializer)));
8167
+ OpList.replace(op, createStatementOp(new DeclareVarStmt(op.variable.name, op.initializer, void 0, StmtModifier.Final)));
8143
8168
  break;
8144
8169
  case OpKind.Statement:
8145
8170
  break;
@@ -8151,7 +8176,7 @@ function reifyUpdateOperations(_view, ops) {
8151
8176
  function reifyIrExpression(expr) {
8152
8177
  switch (expr.kind) {
8153
8178
  case ExpressionKind.NextContext:
8154
- return nextContext();
8179
+ return nextContext(expr.steps);
8155
8180
  case ExpressionKind.Reference:
8156
8181
  return reference(expr.slot + 1 + expr.offset);
8157
8182
  case ExpressionKind.LexicalRead:
@@ -8203,7 +8228,7 @@ var LookForEventVisitor = class extends RecursiveAstVisitor {
8203
8228
  }
8204
8229
  };
8205
8230
 
8206
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
8231
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
8207
8232
  function phaseSlotAllocation(cpl) {
8208
8233
  const slotMap = /* @__PURE__ */ new Map();
8209
8234
  for (const [_, view] of cpl.views) {
@@ -8224,6 +8249,12 @@ function phaseSlotAllocation(cpl) {
8224
8249
  const childView = cpl.views.get(op.xref);
8225
8250
  op.decls = childView.decls;
8226
8251
  }
8252
+ if (hasUsesSlotIndexTrait(op) && op.slot === null) {
8253
+ if (!slotMap.has(op.target)) {
8254
+ throw new Error(`AssertionError: no slot allocated for ${OpKind[op.kind]} target ${op.target}`);
8255
+ }
8256
+ op.slot = slotMap.get(op.target);
8257
+ }
8227
8258
  visitExpressionsInOp(op, (expr) => {
8228
8259
  if (!hasUsesSlotIndexTrait(expr) || expr.slot !== null) {
8229
8260
  return;
@@ -8237,7 +8268,7 @@ function phaseSlotAllocation(cpl) {
8237
8268
  }
8238
8269
  }
8239
8270
 
8240
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
8271
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
8241
8272
  function phaseVarCounting(cpl) {
8242
8273
  for (const [_, view] of cpl.views) {
8243
8274
  let varCount = 0;
@@ -8277,45 +8308,65 @@ function varsUsedByIrExpression(expr) {
8277
8308
  return 0;
8278
8309
  }
8279
8310
 
8280
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
8311
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
8281
8312
  function phaseNaming(cpl) {
8282
- cpl.root.fnName = `${cpl.componentName}_Template`;
8283
- for (const [id, view] of cpl.views) {
8284
- let vIndex = 0;
8285
- if (view.fnName === null) {
8286
- view.fnName = `${cpl.componentName}_EmbeddedView_${id}`;
8287
- }
8288
- const varNames = /* @__PURE__ */ new Map();
8289
- for (const op of view.ops()) {
8290
- switch (op.kind) {
8291
- case OpKind.Listener:
8292
- if (op.handlerFnName === null) {
8293
- op.handlerFnName = `${view.fnName}_${op.name}_listener`;
8294
- }
8295
- break;
8296
- case OpKind.Variable:
8297
- if (op.name === null) {
8298
- op.name = `_r${vIndex++}`;
8299
- varNames.set(op.xref, op.name);
8313
+ addNamesToView(cpl.root, cpl.componentName, { index: 0 });
8314
+ }
8315
+ function addNamesToView(view, baseName, state) {
8316
+ if (view.fnName === null) {
8317
+ view.fnName = `${baseName}_Template`;
8318
+ }
8319
+ const varNames = /* @__PURE__ */ new Map();
8320
+ for (const op of view.ops()) {
8321
+ switch (op.kind) {
8322
+ case OpKind.Listener:
8323
+ if (op.handlerFnName === null) {
8324
+ if (op.slot === null) {
8325
+ throw new Error(`Expected a slot to be assigned`);
8300
8326
  }
8301
- break;
8302
- }
8303
- }
8304
- for (const op of view.ops()) {
8305
- visitExpressionsInOp(op, (expr) => {
8306
- if (!(expr instanceof ReadVariableExpr) || expr.name !== null) {
8307
- return;
8327
+ op.handlerFnName = `${view.fnName}_${op.tag}_${op.name}_${op.slot}_listener`;
8308
8328
  }
8309
- if (!varNames.has(expr.xref)) {
8310
- throw new Error(`Variable ${expr.xref} not yet named`);
8329
+ break;
8330
+ case OpKind.Variable:
8331
+ varNames.set(op.xref, getVariableName(op.variable, state));
8332
+ break;
8333
+ case OpKind.Template:
8334
+ const childView = view.tpl.views.get(op.xref);
8335
+ if (op.slot === null) {
8336
+ throw new Error(`Expected slot to be assigned`);
8311
8337
  }
8312
- expr.name = varNames.get(expr.xref);
8313
- });
8338
+ const safeTagName = op.tag.replace("-", "_");
8339
+ addNamesToView(childView, `${baseName}_${safeTagName}_${op.slot}`, state);
8340
+ break;
8314
8341
  }
8315
8342
  }
8343
+ for (const op of view.ops()) {
8344
+ visitExpressionsInOp(op, (expr) => {
8345
+ if (!(expr instanceof ReadVariableExpr) || expr.name !== null) {
8346
+ return;
8347
+ }
8348
+ if (!varNames.has(expr.xref)) {
8349
+ throw new Error(`Variable ${expr.xref} not yet named`);
8350
+ }
8351
+ expr.name = varNames.get(expr.xref);
8352
+ });
8353
+ }
8354
+ }
8355
+ function getVariableName(variable2, state) {
8356
+ if (variable2.name === null) {
8357
+ switch (variable2.kind) {
8358
+ case SemanticVariableKind.Identifier:
8359
+ variable2.name = `${variable2.identifier}_${state.index++}`;
8360
+ break;
8361
+ default:
8362
+ variable2.name = `_r${state.index++}`;
8363
+ break;
8364
+ }
8365
+ }
8366
+ return variable2.name;
8316
8367
  }
8317
8368
 
8318
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
8369
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
8319
8370
  function phaseLocalRefs(cpl) {
8320
8371
  for (const view of cpl.views.values()) {
8321
8372
  for (const op of view.create) {
@@ -8346,17 +8397,14 @@ function serializeLocalRefs(refs) {
8346
8397
  return literalArr(constRefs);
8347
8398
  }
8348
8399
 
8349
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
8400
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
8350
8401
  function phaseGenerateVariables(cpl) {
8351
8402
  recursivelyProcessView(cpl.root, null);
8352
8403
  }
8353
8404
  function recursivelyProcessView(view, parentScope) {
8354
8405
  const scope = getScopeForView(view, parentScope);
8355
8406
  view.create.prepend([
8356
- createVariableOp(view.tpl.allocateXrefId(), {
8357
- kind: SemanticVariableKind.SavedView,
8358
- view: view.xref
8359
- }, new GetCurrentViewExpr())
8407
+ createVariableOp(view.tpl.allocateXrefId(), scope.savedViewVariable, new GetCurrentViewExpr())
8360
8408
  ]);
8361
8409
  for (const op of view.create) {
8362
8410
  switch (op.kind) {
@@ -8365,10 +8413,7 @@ function recursivelyProcessView(view, parentScope) {
8365
8413
  break;
8366
8414
  case OpKind.Listener:
8367
8415
  const preambleOps2 = [
8368
- createVariableOp(view.tpl.allocateXrefId(), {
8369
- kind: SemanticVariableKind.Context,
8370
- view: view.xref
8371
- }, new RestoreViewExpr(view.xref)),
8416
+ createVariableOp(view.tpl.allocateXrefId(), scope.viewContextVariable, new RestoreViewExpr(view.xref)),
8372
8417
  ...generateVariablesInScopeForView(view, scope)
8373
8418
  ];
8374
8419
  op.handlerOps.prepend(preambleOps2);
@@ -8386,9 +8431,27 @@ function recursivelyProcessView(view, parentScope) {
8386
8431
  function getScopeForView(view, parent) {
8387
8432
  const scope = {
8388
8433
  view: view.xref,
8434
+ viewContextVariable: {
8435
+ kind: SemanticVariableKind.Context,
8436
+ name: null,
8437
+ view: view.xref
8438
+ },
8439
+ savedViewVariable: {
8440
+ kind: SemanticVariableKind.SavedView,
8441
+ name: null,
8442
+ view: view.xref
8443
+ },
8444
+ contextVariables: /* @__PURE__ */ new Map(),
8389
8445
  references: [],
8390
8446
  parent
8391
8447
  };
8448
+ for (const identifier of view.contextVariables.keys()) {
8449
+ scope.contextVariables.set(identifier, {
8450
+ kind: SemanticVariableKind.Identifier,
8451
+ name: null,
8452
+ identifier
8453
+ });
8454
+ }
8392
8455
  for (const op of view.create) {
8393
8456
  switch (op.kind) {
8394
8457
  case OpKind.Element:
@@ -8401,7 +8464,12 @@ function getScopeForView(view, parent) {
8401
8464
  scope.references.push({
8402
8465
  name: op.localRefs[offset].name,
8403
8466
  targetId: op.xref,
8404
- offset
8467
+ offset,
8468
+ variable: {
8469
+ kind: SemanticVariableKind.Identifier,
8470
+ name: null,
8471
+ identifier: op.localRefs[offset].name
8472
+ }
8405
8473
  });
8406
8474
  }
8407
8475
  break;
@@ -8412,22 +8480,13 @@ function getScopeForView(view, parent) {
8412
8480
  function generateVariablesInScopeForView(view, scope) {
8413
8481
  const newOps = [];
8414
8482
  if (scope.view !== view.xref) {
8415
- newOps.push(createVariableOp(view.tpl.allocateXrefId(), {
8416
- kind: SemanticVariableKind.Context,
8417
- view: scope.view
8418
- }, new NextContextExpr()));
8483
+ newOps.push(createVariableOp(view.tpl.allocateXrefId(), scope.viewContextVariable, new NextContextExpr()));
8419
8484
  }
8420
8485
  for (const [name, value] of view.tpl.views.get(scope.view).contextVariables) {
8421
- newOps.push(createVariableOp(view.tpl.allocateXrefId(), {
8422
- kind: SemanticVariableKind.Identifier,
8423
- name
8424
- }, new ReadPropExpr(new ContextExpr(view.xref), value)));
8486
+ newOps.push(createVariableOp(view.tpl.allocateXrefId(), scope.contextVariables.get(name), new ReadPropExpr(new ContextExpr(scope.view), value)));
8425
8487
  }
8426
8488
  for (const ref of scope.references) {
8427
- newOps.push(createVariableOp(view.tpl.allocateXrefId(), {
8428
- kind: SemanticVariableKind.Identifier,
8429
- name: ref.name
8430
- }, new ReferenceExpr(ref.targetId, ref.offset)));
8489
+ newOps.push(createVariableOp(view.tpl.allocateXrefId(), ref.variable, new ReferenceExpr(ref.targetId, ref.offset)));
8431
8490
  }
8432
8491
  if (scope.parent !== null) {
8433
8492
  newOps.push(...generateVariablesInScopeForView(view, scope.parent));
@@ -8435,7 +8494,7 @@ function generateVariablesInScopeForView(view, scope) {
8435
8494
  return newOps;
8436
8495
  }
8437
8496
 
8438
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
8497
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
8439
8498
  function phaseResolveNames(cpl) {
8440
8499
  for (const [_, view] of cpl.views) {
8441
8500
  processLexicalScope(view, view.create, null);
@@ -8449,10 +8508,10 @@ function processLexicalScope(view, ops, savedView) {
8449
8508
  case OpKind.Variable:
8450
8509
  switch (op.variable.kind) {
8451
8510
  case SemanticVariableKind.Identifier:
8452
- if (scope.has(op.variable.name)) {
8511
+ if (scope.has(op.variable.identifier)) {
8453
8512
  continue;
8454
8513
  }
8455
- scope.set(op.variable.name, op.xref);
8514
+ scope.set(op.variable.identifier, op.xref);
8456
8515
  break;
8457
8516
  case SemanticVariableKind.SavedView:
8458
8517
  savedView = {
@@ -8484,11 +8543,11 @@ function processLexicalScope(view, ops, savedView) {
8484
8543
  } else {
8485
8544
  return expr;
8486
8545
  }
8487
- });
8546
+ }, VisitorContextFlag.None);
8488
8547
  }
8489
8548
  }
8490
8549
 
8491
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
8550
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
8492
8551
  function phaseResolveContexts(cpl) {
8493
8552
  for (const view of cpl.views.values()) {
8494
8553
  processLexicalScope2(view, view.create);
@@ -8522,11 +8581,294 @@ function processLexicalScope2(view, ops) {
8522
8581
  } else {
8523
8582
  return expr;
8524
8583
  }
8525
- });
8584
+ }, VisitorContextFlag.None);
8585
+ }
8586
+ }
8587
+
8588
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
8589
+ function phaseVariableOptimization(cpl, options) {
8590
+ for (const [_, view] of cpl.views) {
8591
+ optimizeVariablesInOpList(view.create, options);
8592
+ optimizeVariablesInOpList(view.update, options);
8593
+ for (const op of view.create) {
8594
+ if (op.kind === OpKind.Listener) {
8595
+ optimizeVariablesInOpList(op.handlerOps, options);
8596
+ }
8597
+ }
8598
+ }
8599
+ }
8600
+ var Fence;
8601
+ (function(Fence2) {
8602
+ Fence2[Fence2["None"] = 0] = "None";
8603
+ Fence2[Fence2["ViewContextRead"] = 1] = "ViewContextRead";
8604
+ Fence2[Fence2["ViewContextWrite"] = 3] = "ViewContextWrite";
8605
+ Fence2[Fence2["SideEffectful"] = 4] = "SideEffectful";
8606
+ })(Fence || (Fence = {}));
8607
+ function optimizeVariablesInOpList(ops, options) {
8608
+ const varDecls = /* @__PURE__ */ new Map();
8609
+ const varUsages = /* @__PURE__ */ new Map();
8610
+ const varRemoteUsages = /* @__PURE__ */ new Set();
8611
+ const opMap = /* @__PURE__ */ new Map();
8612
+ for (const op of ops) {
8613
+ if (op.kind === OpKind.Variable) {
8614
+ if (varDecls.has(op.xref) || varUsages.has(op.xref)) {
8615
+ throw new Error(`Should not see two declarations of the same variable: ${op.xref}`);
8616
+ }
8617
+ varDecls.set(op.xref, op);
8618
+ varUsages.set(op.xref, 0);
8619
+ }
8620
+ opMap.set(op, collectOpInfo(op));
8621
+ countVariableUsages(op, varUsages, varRemoteUsages);
8622
+ }
8623
+ let contextIsUsed = false;
8624
+ for (const op of ops.reversed()) {
8625
+ const opInfo = opMap.get(op);
8626
+ if (op.kind === OpKind.Variable && varUsages.get(op.xref) === 0) {
8627
+ if (contextIsUsed && opInfo.fences & Fence.ViewContextWrite || opInfo.fences & Fence.SideEffectful) {
8628
+ const stmtOp = createStatementOp(op.initializer.toStmt());
8629
+ opMap.set(stmtOp, opInfo);
8630
+ OpList.replace(op, stmtOp);
8631
+ } else {
8632
+ uncountVariableUsages(op, varUsages);
8633
+ OpList.remove(op);
8634
+ }
8635
+ opMap.delete(op);
8636
+ varDecls.delete(op.xref);
8637
+ varUsages.delete(op.xref);
8638
+ continue;
8639
+ }
8640
+ if (opInfo.fences & Fence.ViewContextRead) {
8641
+ contextIsUsed = true;
8642
+ }
8643
+ }
8644
+ const toInline = [];
8645
+ for (const [id, count] of varUsages) {
8646
+ if (count !== 1) {
8647
+ continue;
8648
+ }
8649
+ if (varRemoteUsages.has(id)) {
8650
+ continue;
8651
+ }
8652
+ toInline.push(id);
8653
+ }
8654
+ let candidate;
8655
+ while (candidate = toInline.pop()) {
8656
+ const decl = varDecls.get(candidate);
8657
+ const varInfo = opMap.get(decl);
8658
+ for (let targetOp = decl.next; targetOp.kind !== OpKind.ListEnd; targetOp = targetOp.next) {
8659
+ const opInfo = opMap.get(targetOp);
8660
+ if (opInfo.variablesUsed.has(candidate)) {
8661
+ if (options.conservative && !allowConservativeInlining(decl, targetOp)) {
8662
+ break;
8663
+ }
8664
+ if (tryInlineVariableInitializer(candidate, decl.initializer, targetOp, varInfo.fences)) {
8665
+ opInfo.variablesUsed.delete(candidate);
8666
+ for (const id of varInfo.variablesUsed) {
8667
+ opInfo.variablesUsed.add(id);
8668
+ }
8669
+ opInfo.fences |= varInfo.fences;
8670
+ varDecls.delete(candidate);
8671
+ varUsages.delete(candidate);
8672
+ opMap.delete(decl);
8673
+ OpList.remove(decl);
8674
+ }
8675
+ break;
8676
+ }
8677
+ if (!safeToInlinePastFences(opInfo.fences, varInfo.fences)) {
8678
+ break;
8679
+ }
8680
+ }
8681
+ }
8682
+ }
8683
+ function fencesForIrExpression(expr) {
8684
+ switch (expr.kind) {
8685
+ case ExpressionKind.NextContext:
8686
+ return Fence.ViewContextWrite;
8687
+ case ExpressionKind.RestoreView:
8688
+ return Fence.ViewContextWrite | Fence.SideEffectful;
8689
+ case ExpressionKind.Reference:
8690
+ return Fence.ViewContextRead;
8691
+ default:
8692
+ return Fence.None;
8693
+ }
8694
+ }
8695
+ function collectOpInfo(op) {
8696
+ let fences = Fence.None;
8697
+ const variablesUsed = /* @__PURE__ */ new Set();
8698
+ visitExpressionsInOp(op, (expr) => {
8699
+ switch (expr.kind) {
8700
+ case ExpressionKind.ReadVariable:
8701
+ variablesUsed.add(expr.xref);
8702
+ break;
8703
+ default:
8704
+ fences |= fencesForIrExpression(expr);
8705
+ }
8706
+ });
8707
+ return { fences, variablesUsed };
8708
+ }
8709
+ function countVariableUsages(op, varUsages, varRemoteUsage) {
8710
+ visitExpressionsInOp(op, (expr, flags) => {
8711
+ if (expr.kind !== ExpressionKind.ReadVariable) {
8712
+ return;
8713
+ }
8714
+ const count = varUsages.get(expr.xref);
8715
+ if (count === void 0) {
8716
+ return;
8717
+ }
8718
+ varUsages.set(expr.xref, count + 1);
8719
+ if (flags & VisitorContextFlag.InChildOperation) {
8720
+ varRemoteUsage.add(expr.xref);
8721
+ }
8722
+ });
8723
+ }
8724
+ function uncountVariableUsages(op, varUsages) {
8725
+ visitExpressionsInOp(op, (expr) => {
8726
+ if (expr.kind !== ExpressionKind.ReadVariable) {
8727
+ return;
8728
+ }
8729
+ const count = varUsages.get(expr.xref);
8730
+ if (count === void 0) {
8731
+ return;
8732
+ } else if (count === 0) {
8733
+ throw new Error(`Inaccurate variable count: ${expr.xref} - found another read but count is already 0`);
8734
+ }
8735
+ varUsages.set(expr.xref, count - 1);
8736
+ });
8737
+ }
8738
+ function safeToInlinePastFences(fences, declFences) {
8739
+ if (fences & Fence.ViewContextWrite) {
8740
+ if (declFences & Fence.ViewContextRead) {
8741
+ return false;
8742
+ }
8743
+ } else if (fences & Fence.ViewContextRead) {
8744
+ if (declFences & Fence.ViewContextWrite) {
8745
+ return false;
8746
+ }
8747
+ }
8748
+ return true;
8749
+ }
8750
+ function tryInlineVariableInitializer(id, initializer, target, declFences) {
8751
+ let inlined = false;
8752
+ let inliningAllowed = true;
8753
+ transformExpressionsInOp(target, (expr, flags) => {
8754
+ if (inlined || !inliningAllowed) {
8755
+ return expr;
8756
+ } else if (flags & VisitorContextFlag.InChildOperation && declFences & Fence.ViewContextRead) {
8757
+ return expr;
8758
+ }
8759
+ switch (expr.kind) {
8760
+ case ExpressionKind.ReadVariable:
8761
+ if (expr.xref === id) {
8762
+ inlined = true;
8763
+ return initializer;
8764
+ }
8765
+ break;
8766
+ default:
8767
+ const exprFences = fencesForIrExpression(expr);
8768
+ inliningAllowed = inliningAllowed && safeToInlinePastFences(exprFences, declFences);
8769
+ break;
8770
+ }
8771
+ return expr;
8772
+ }, VisitorContextFlag.None);
8773
+ return inlined;
8774
+ }
8775
+ function allowConservativeInlining(decl, target) {
8776
+ switch (decl.variable.kind) {
8777
+ case SemanticVariableKind.Identifier:
8778
+ return false;
8779
+ case SemanticVariableKind.Context:
8780
+ return target.kind === OpKind.Variable;
8781
+ default:
8782
+ return true;
8783
+ }
8784
+ }
8785
+
8786
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
8787
+ var CHAINABLE = /* @__PURE__ */ new Set([
8788
+ Identifiers.elementStart,
8789
+ Identifiers.elementEnd,
8790
+ Identifiers.property
8791
+ ]);
8792
+ function phaseChaining(cpl) {
8793
+ for (const [_, view] of cpl.views) {
8794
+ chainOperationsInList(view.create);
8795
+ chainOperationsInList(view.update);
8796
+ }
8797
+ }
8798
+ function chainOperationsInList(opList) {
8799
+ let chain = null;
8800
+ for (const op of opList) {
8801
+ if (op.kind !== OpKind.Statement || !(op.statement instanceof ExpressionStatement)) {
8802
+ chain = null;
8803
+ continue;
8804
+ }
8805
+ if (!(op.statement.expr instanceof InvokeFunctionExpr) || !(op.statement.expr.fn instanceof ExternalExpr)) {
8806
+ chain = null;
8807
+ continue;
8808
+ }
8809
+ const instruction = op.statement.expr.fn.value;
8810
+ if (!CHAINABLE.has(instruction)) {
8811
+ chain = null;
8812
+ continue;
8813
+ }
8814
+ if (chain !== null && chain.instruction === instruction) {
8815
+ const expression = chain.expression.callFn(op.statement.expr.args, op.statement.expr.sourceSpan, op.statement.expr.pure);
8816
+ chain.expression = expression;
8817
+ chain.op.statement = expression.toStmt();
8818
+ OpList.remove(op);
8819
+ } else {
8820
+ chain = {
8821
+ op,
8822
+ instruction,
8823
+ expression: op.statement.expr
8824
+ };
8825
+ }
8526
8826
  }
8527
8827
  }
8528
8828
 
8529
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
8829
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
8830
+ function phaseMergeNextContext(cpl) {
8831
+ for (const view of cpl.views.values()) {
8832
+ for (const op of view.create) {
8833
+ if (op.kind === OpKind.Listener) {
8834
+ mergeNextContextsInOps(op.handlerOps);
8835
+ }
8836
+ }
8837
+ mergeNextContextsInOps(view.update);
8838
+ }
8839
+ }
8840
+ function mergeNextContextsInOps(ops) {
8841
+ for (const op of ops) {
8842
+ if (op.kind !== OpKind.Statement || !(op.statement instanceof ExpressionStatement) || !(op.statement.expr instanceof NextContextExpr)) {
8843
+ continue;
8844
+ }
8845
+ const mergeSteps = op.statement.expr.steps;
8846
+ let tryToMerge = true;
8847
+ for (let candidate = op.next; candidate.kind !== OpKind.ListEnd && tryToMerge; candidate = candidate.next) {
8848
+ visitExpressionsInOp(candidate, (expr, flags) => {
8849
+ if (!tryToMerge) {
8850
+ return;
8851
+ }
8852
+ if (flags & VisitorContextFlag.InChildOperation) {
8853
+ return;
8854
+ }
8855
+ switch (expr.kind) {
8856
+ case ExpressionKind.NextContext:
8857
+ expr.steps += mergeSteps;
8858
+ OpList.remove(op);
8859
+ tryToMerge = false;
8860
+ break;
8861
+ case ExpressionKind.GetCurrentView:
8862
+ case ExpressionKind.Reference:
8863
+ tryToMerge = false;
8864
+ break;
8865
+ }
8866
+ });
8867
+ }
8868
+ }
8869
+ }
8870
+
8871
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
8530
8872
  function transformTemplate(cpl) {
8531
8873
  phaseGenerateVariables(cpl);
8532
8874
  phaseResolveNames(cpl);
@@ -8538,18 +8880,25 @@ function transformTemplate(cpl) {
8538
8880
  phaseVarCounting(cpl);
8539
8881
  phaseGenerateAdvance(cpl);
8540
8882
  phaseNaming(cpl);
8883
+ phaseVariableOptimization(cpl, { conservative: true });
8884
+ phaseMergeNextContext(cpl);
8541
8885
  phaseReify(cpl);
8886
+ phaseChaining(cpl);
8542
8887
  }
8543
8888
  function emitTemplateFn(tpl, pool) {
8544
8889
  const rootFn = emitView(tpl.root);
8545
- for (const view of tpl.views.values()) {
8546
- if (view === tpl.root) {
8890
+ emitChildViews(tpl.root, pool);
8891
+ return rootFn;
8892
+ }
8893
+ function emitChildViews(parent, pool) {
8894
+ for (const view of parent.tpl.views.values()) {
8895
+ if (view.parent !== parent.xref) {
8547
8896
  continue;
8548
8897
  }
8898
+ emitChildViews(view, pool);
8549
8899
  const viewFn = emitView(view);
8550
8900
  pool.statements.push(viewFn.toDeclStmt(viewFn.name));
8551
8901
  }
8552
- return rootFn;
8553
8902
  }
8554
8903
  function emitView(view) {
8555
8904
  if (view.fnName === null) {
@@ -8569,16 +8918,32 @@ function emitView(view) {
8569
8918
  }
8570
8919
  updateStatements.push(op.statement);
8571
8920
  }
8572
- const rf = variable("rf");
8573
- const createCond = ifStmt(new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, rf, literal(1)), createStatements);
8574
- const updateCond = ifStmt(new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, rf, literal(2)), updateStatements);
8575
- return fn([
8576
- new FnParam("rf"),
8577
- new FnParam("ctx")
8578
- ], [createCond, updateCond], void 0, void 0, view.fnName);
8921
+ const createCond = maybeGenerateRfBlock(1, createStatements);
8922
+ const updateCond = maybeGenerateRfBlock(2, updateStatements);
8923
+ return fn(
8924
+ [
8925
+ new FnParam("rf"),
8926
+ new FnParam("ctx")
8927
+ ],
8928
+ [
8929
+ ...createCond,
8930
+ ...updateCond
8931
+ ],
8932
+ void 0,
8933
+ void 0,
8934
+ view.fnName
8935
+ );
8936
+ }
8937
+ function maybeGenerateRfBlock(flag, statements) {
8938
+ if (statements.length === 0) {
8939
+ return [];
8940
+ }
8941
+ return [
8942
+ ifStmt(new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, variable("rf"), literal(flag)), statements)
8943
+ ];
8579
8944
  }
8580
8945
 
8581
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
8946
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
8582
8947
  var ComponentCompilation = class {
8583
8948
  constructor(componentName) {
8584
8949
  this.componentName = componentName;
@@ -8635,7 +9000,7 @@ var ViewCompilation = class {
8635
9000
  }
8636
9001
  };
8637
9002
 
8638
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
9003
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
8639
9004
  function ingest(componentName, template2) {
8640
9005
  const cpl = new ComponentCompilation(componentName);
8641
9006
  ingestNodes(cpl.root, template2);
@@ -8696,23 +9061,27 @@ function ingestBoundText(view, text2) {
8696
9061
  }
8697
9062
  const textXref = view.tpl.allocateXrefId();
8698
9063
  view.create.push(createTextOp(textXref, ""));
8699
- view.update.push(createInterpolateTextOp(textXref, value.strings, value.expressions.map((expr) => convertAst(expr))));
9064
+ view.update.push(createInterpolateTextOp(textXref, value.strings, value.expressions.map((expr) => convertAst(expr, view.tpl))));
8700
9065
  }
8701
- function convertAst(ast) {
9066
+ function convertAst(ast, cpl) {
8702
9067
  if (ast instanceof ASTWithSource) {
8703
- return convertAst(ast.ast);
9068
+ return convertAst(ast.ast, cpl);
8704
9069
  } else if (ast instanceof PropertyRead) {
8705
9070
  if (ast.receiver instanceof ImplicitReceiver) {
8706
9071
  return new LexicalReadExpr(ast.name);
8707
9072
  } else {
8708
- return new ReadPropExpr(convertAst(ast.receiver), ast.name);
9073
+ return new ReadPropExpr(convertAst(ast.receiver, cpl), ast.name);
8709
9074
  }
8710
9075
  } else if (ast instanceof Call) {
8711
9076
  if (ast.receiver instanceof ImplicitReceiver) {
8712
9077
  throw new Error(`Unexpected ImplicitReceiver`);
8713
9078
  } else {
8714
- return new InvokeFunctionExpr(convertAst(ast.receiver), ast.args.map((arg) => convertAst(arg)));
9079
+ return new InvokeFunctionExpr(convertAst(ast.receiver, cpl), ast.args.map((arg) => convertAst(arg, cpl)));
8715
9080
  }
9081
+ } else if (ast instanceof LiteralPrimitive) {
9082
+ return literal(ast.value);
9083
+ } else if (ast instanceof ThisReceiver) {
9084
+ return new ContextExpr(cpl.root.xref);
8716
9085
  } else {
8717
9086
  throw new Error(`Unhandled expression type: ${ast.constructor.name}`);
8718
9087
  }
@@ -8738,18 +9107,17 @@ function ingestBindings(view, op, element2) {
8738
9107
  if (element2 instanceof Template) {
8739
9108
  for (const attr of element2.templateAttrs) {
8740
9109
  if (typeof attr.value === "string") {
8741
- throw new Error(`TODO: unhandled static attribute bindings (is this a thing?)`);
8742
9110
  } else {
8743
- view.update.push(createPropertyOp(op.xref, attr.name, convertAst(attr.value)));
9111
+ view.update.push(createPropertyOp(op.xref, attr.name, convertAst(attr.value, view.tpl)));
8744
9112
  }
8745
9113
  }
8746
9114
  } else {
8747
9115
  for (const input of element2.inputs) {
8748
- view.update.push(createPropertyOp(op.xref, input.name, convertAst(input.value)));
9116
+ view.update.push(createPropertyOp(op.xref, input.name, convertAst(input.value, view.tpl)));
8749
9117
  }
8750
9118
  for (const output of element2.outputs) {
8751
- const listenerOp = createListenerOp(op.xref, output.name);
8752
- listenerOp.handlerOps.push(createStatementOp(new ReturnStatement(convertAst(output.handler))));
9119
+ const listenerOp = createListenerOp(op.xref, output.name, op.tag);
9120
+ listenerOp.handlerOps.push(createStatementOp(new ReturnStatement(convertAst(output.handler, view.tpl))));
8753
9121
  view.create.push(listenerOp);
8754
9122
  }
8755
9123
  }
@@ -8769,10 +9137,10 @@ function assertIsArray(value) {
8769
9137
  }
8770
9138
  }
8771
9139
 
8772
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
9140
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
8773
9141
  var USE_TEMPLATE_PIPELINE = false;
8774
9142
 
8775
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
9143
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
8776
9144
  function parse(value) {
8777
9145
  const styles = [];
8778
9146
  let i = 0;
@@ -8833,7 +9201,7 @@ function hyphenate(value) {
8833
9201
  }).toLowerCase();
8834
9202
  }
8835
9203
 
8836
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
9204
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
8837
9205
  var IMPORTANT_FLAG = "!important";
8838
9206
  var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
8839
9207
  var StylingBuilder = class {
@@ -9166,7 +9534,7 @@ function isEmptyExpression(ast) {
9166
9534
  return ast instanceof EmptyExpr;
9167
9535
  }
9168
9536
 
9169
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
9537
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
9170
9538
  var TokenType;
9171
9539
  (function(TokenType2) {
9172
9540
  TokenType2[TokenType2["Character"] = 0] = "Character";
@@ -9527,7 +9895,7 @@ function parseIntAutoRadix(text2) {
9527
9895
  return result;
9528
9896
  }
9529
9897
 
9530
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
9898
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
9531
9899
  var SplitInterpolation = class {
9532
9900
  constructor(strings, expressions, offsets) {
9533
9901
  this.strings = strings;
@@ -10421,7 +10789,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
10421
10789
  return offsetMap;
10422
10790
  }
10423
10791
 
10424
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
10792
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
10425
10793
  var NodeWithI18n = class {
10426
10794
  constructor(sourceSpan, i18n) {
10427
10795
  this.sourceSpan = sourceSpan;
@@ -10509,11 +10877,11 @@ function visitAll2(visitor, nodes, context = null) {
10509
10877
  return result;
10510
10878
  }
10511
10879
 
10512
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
10880
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
10513
10881
  var ElementSchemaRegistry = class {
10514
10882
  };
10515
10883
 
10516
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
10884
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
10517
10885
  var BOOLEAN = "boolean";
10518
10886
  var NUMBER = "number";
10519
10887
  var STRING = "string";
@@ -10866,7 +11234,7 @@ function _isPixelDimensionStyle(prop) {
10866
11234
  }
10867
11235
  }
10868
11236
 
10869
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
11237
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
10870
11238
  var HtmlTagDefinition = class {
10871
11239
  constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
10872
11240
  this.closedByChildren = {};
@@ -10984,7 +11352,7 @@ function getHtmlTagDefinition(tagName) {
10984
11352
  return (_b = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b : DEFAULT_TAG_DEFINITION;
10985
11353
  }
10986
11354
 
10987
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
11355
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
10988
11356
  var NAMED_ENTITIES = {
10989
11357
  "AElig": "\xC6",
10990
11358
  "AMP": "&",
@@ -13115,7 +13483,7 @@ var NAMED_ENTITIES = {
13115
13483
  var NGSP_UNICODE = "\uE500";
13116
13484
  NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
13117
13485
 
13118
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
13486
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
13119
13487
  var TokenError = class extends ParseError {
13120
13488
  constructor(errorMsg, tokenType, span) {
13121
13489
  super(span, errorMsg);
@@ -13950,7 +14318,7 @@ var CursorError = class {
13950
14318
  }
13951
14319
  };
13952
14320
 
13953
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
14321
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
13954
14322
  var TreeError = class extends ParseError {
13955
14323
  static create(elementName, span, msg) {
13956
14324
  return new TreeError(elementName, span, msg);
@@ -14277,7 +14645,7 @@ function decodeEntity(match, entity) {
14277
14645
  return match;
14278
14646
  }
14279
14647
 
14280
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
14648
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
14281
14649
  var HtmlParser = class extends Parser2 {
14282
14650
  constructor() {
14283
14651
  super(getHtmlTagDefinition);
@@ -14287,7 +14655,7 @@ var HtmlParser = class extends Parser2 {
14287
14655
  }
14288
14656
  };
14289
14657
 
14290
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
14658
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
14291
14659
  var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
14292
14660
  var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
14293
14661
  var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
@@ -14347,7 +14715,7 @@ function visitAllWithSiblings(visitor, nodes) {
14347
14715
  return result;
14348
14716
  }
14349
14717
 
14350
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
14718
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/map_util.mjs
14351
14719
  function mapLiteral(obj, quoted = false) {
14352
14720
  return literalMap(Object.keys(obj).map((key) => ({
14353
14721
  key,
@@ -14356,7 +14724,7 @@ function mapLiteral(obj, quoted = false) {
14356
14724
  })));
14357
14725
  }
14358
14726
 
14359
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
14727
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
14360
14728
  var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
14361
14729
  "iframe|srcdoc",
14362
14730
  "*|innerhtml",
@@ -14371,7 +14739,7 @@ function isTrustedTypesSink(tagName, propName) {
14371
14739
  return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
14372
14740
  }
14373
14741
 
14374
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
14742
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
14375
14743
  var PROPERTY_PARTS_SEPARATOR = ".";
14376
14744
  var ATTRIBUTE_PREFIX = "attr";
14377
14745
  var CLASS_PREFIX = "class";
@@ -14691,7 +15059,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
14691
15059
  return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
14692
15060
  }
14693
15061
 
14694
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
15062
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
14695
15063
  function isStyleUrlResolvable(url) {
14696
15064
  if (url == null || url.length === 0 || url[0] == "/")
14697
15065
  return false;
@@ -14700,7 +15068,7 @@ function isStyleUrlResolvable(url) {
14700
15068
  }
14701
15069
  var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
14702
15070
 
14703
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
15071
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
14704
15072
  var NG_CONTENT_SELECT_ATTR = "select";
14705
15073
  var LINK_ELEMENT = "link";
14706
15074
  var LINK_STYLE_REL_ATTR = "rel";
@@ -14770,7 +15138,7 @@ function normalizeNgContentSelect(selectAttr) {
14770
15138
  return selectAttr;
14771
15139
  }
14772
15140
 
14773
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
15141
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
14774
15142
  var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
14775
15143
  var KW_BIND_IDX = 1;
14776
15144
  var KW_LET_IDX = 2;
@@ -15118,7 +15486,7 @@ function textContents(node) {
15118
15486
  }
15119
15487
  }
15120
15488
 
15121
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
15489
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
15122
15490
  var TagType;
15123
15491
  (function(TagType2) {
15124
15492
  TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
@@ -15253,7 +15621,7 @@ function serializePlaceholderValue(value) {
15253
15621
  }
15254
15622
  }
15255
15623
 
15256
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
15624
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
15257
15625
  var IcuSerializerVisitor = class {
15258
15626
  visitText(text2) {
15259
15627
  return text2.value;
@@ -15284,7 +15652,7 @@ function serializeIcuNode(icu) {
15284
15652
  return icu.visit(serializer);
15285
15653
  }
15286
15654
 
15287
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
15655
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
15288
15656
  var TAG_TO_PLACEHOLDER_NAMES = {
15289
15657
  "A": "LINK",
15290
15658
  "B": "BOLD_TEXT",
@@ -15378,7 +15746,7 @@ var PlaceholderRegistry = class {
15378
15746
  }
15379
15747
  };
15380
15748
 
15381
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
15749
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
15382
15750
  var _expParser = new Parser(new Lexer());
15383
15751
  function createI18nMessageFactory(interpolationConfig) {
15384
15752
  const visitor = new _I18nVisitor(_expParser, interpolationConfig);
@@ -15533,14 +15901,14 @@ function extractPlaceholderName(input) {
15533
15901
  return input.split(_CUSTOM_PH_EXP)[2];
15534
15902
  }
15535
15903
 
15536
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
15904
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
15537
15905
  var I18nError = class extends ParseError {
15538
15906
  constructor(span, msg) {
15539
15907
  super(span, msg);
15540
15908
  }
15541
15909
  };
15542
15910
 
15543
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
15911
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
15544
15912
  var setI18nRefs = (htmlNode, i18nNode) => {
15545
15913
  if (htmlNode instanceof NodeWithI18n) {
15546
15914
  if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
@@ -15689,7 +16057,7 @@ function i18nMetaToJSDoc(meta) {
15689
16057
  return jsDocComment(tags);
15690
16058
  }
15691
16059
 
15692
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
16060
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
15693
16061
  var GOOG_GET_MSG = "goog.getMsg";
15694
16062
  function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
15695
16063
  const messageString = serializeI18nMessageForGetMsg(message);
@@ -15737,7 +16105,7 @@ function serializeI18nMessageForGetMsg(message) {
15737
16105
  return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
15738
16106
  }
15739
16107
 
15740
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
16108
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
15741
16109
  function createLocalizeStatements(variable2, message, params) {
15742
16110
  const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
15743
16111
  const sourceSpan = getSourceSpan(message);
@@ -15820,7 +16188,7 @@ function createEmptyMessagePart(location) {
15820
16188
  return new LiteralPiece("", new ParseSourceSpan(location, location));
15821
16189
  }
15822
16190
 
15823
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
16191
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
15824
16192
  var NG_CONTENT_SELECT_ATTR2 = "select";
15825
16193
  var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
15826
16194
  var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
@@ -17122,7 +17490,7 @@ function createClosureModeGuard() {
17122
17490
  return typeofExpr(variable(NG_I18N_CLOSURE_MODE)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE));
17123
17491
  }
17124
17492
 
17125
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
17493
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
17126
17494
  var ATTR_REGEX = /attr\.([^\]]+)/;
17127
17495
  var COMPONENT_VARIABLE = "%COMP%";
17128
17496
  var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
@@ -17229,10 +17597,12 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
17229
17597
  const tpl = ingest(meta.name, meta.template.nodes);
17230
17598
  transformTemplate(tpl);
17231
17599
  const templateFn = emitTemplateFn(tpl, constantPool);
17232
- definitionMap.set("template", templateFn);
17233
17600
  definitionMap.set("decls", literal(tpl.root.decls));
17234
17601
  definitionMap.set("vars", literal(tpl.root.vars));
17235
- definitionMap.set("consts", literalArr(tpl.consts));
17602
+ if (tpl.consts.length > 0) {
17603
+ definitionMap.set("consts", literalArr(tpl.consts));
17604
+ }
17605
+ definitionMap.set("template", templateFn);
17236
17606
  }
17237
17607
  if (meta.declarations.length > 0) {
17238
17608
  definitionMap.set("dependencies", compileDeclarationList(literalArr(meta.declarations.map((decl) => decl.type)), meta.declarationListEmitMode));
@@ -17664,11 +18034,11 @@ function createHostDirectivesMappingArray(mapping) {
17664
18034
  return elements.length > 0 ? literalArr(elements) : null;
17665
18035
  }
17666
18036
 
17667
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
18037
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/resource_loader.mjs
17668
18038
  var ResourceLoader = class {
17669
18039
  };
17670
18040
 
17671
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
18041
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
17672
18042
  var CompilerFacadeImpl = class {
17673
18043
  constructor(jitEvaluator = new JitEvaluator()) {
17674
18044
  this.jitEvaluator = jitEvaluator;
@@ -18169,10 +18539,10 @@ function publishFacade(global2) {
18169
18539
  ng.\u0275compilerFacade = new CompilerFacadeImpl();
18170
18540
  }
18171
18541
 
18172
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
18173
- var VERSION2 = new Version("16.0.0-rc.1");
18542
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/version.mjs
18543
+ var VERSION2 = new Version("16.0.0-rc.3");
18174
18544
 
18175
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
18545
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
18176
18546
  var _I18N_ATTR = "i18n";
18177
18547
  var _I18N_ATTR_PREFIX = "i18n-";
18178
18548
  var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
@@ -18476,10 +18846,11 @@ function _parseMessageMeta(i18n) {
18476
18846
  return { meaning, description, id: id.trim() };
18477
18847
  }
18478
18848
 
18479
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
18849
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
18480
18850
  var XmlTagDefinition = class {
18481
18851
  constructor() {
18482
18852
  this.closedByParent = false;
18853
+ this.implicitNamespacePrefix = null;
18483
18854
  this.isVoid = false;
18484
18855
  this.ignoreFirstLf = false;
18485
18856
  this.canSelfClose = true;
@@ -18500,7 +18871,7 @@ function getXmlTagDefinition(tagName) {
18500
18871
  return _TAG_DEFINITION;
18501
18872
  }
18502
18873
 
18503
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
18874
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
18504
18875
  var XmlParser = class extends Parser2 {
18505
18876
  constructor() {
18506
18877
  super(getXmlTagDefinition);
@@ -18510,7 +18881,7 @@ var XmlParser = class extends Parser2 {
18510
18881
  }
18511
18882
  };
18512
18883
 
18513
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
18884
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
18514
18885
  var _VERSION = "1.2";
18515
18886
  var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
18516
18887
  var _DEFAULT_SOURCE_LANG = "en";
@@ -18750,7 +19121,7 @@ function getCtypeForTag(tag) {
18750
19121
  }
18751
19122
  }
18752
19123
 
18753
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
19124
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
18754
19125
  var _VERSION2 = "2.0";
18755
19126
  var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
18756
19127
  var _DEFAULT_SOURCE_LANG2 = "en";
@@ -18818,6 +19189,9 @@ ${errors.join("\n")}`);
18818
19189
  }
18819
19190
  };
18820
19191
  var _WriteVisitor2 = class {
19192
+ constructor() {
19193
+ this._nextPlaceholderId = 0;
19194
+ }
18821
19195
  visitText(text2, context) {
18822
19196
  return [new Text3(text2.value)];
18823
19197
  }
@@ -19038,7 +19412,7 @@ function getTypeForTag(tag) {
19038
19412
  }
19039
19413
  }
19040
19414
 
19041
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
19415
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
19042
19416
  var MessageBundle = class {
19043
19417
  constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
19044
19418
  this._htmlParser = _htmlParser;
@@ -19105,7 +19479,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
19105
19479
  }
19106
19480
  };
19107
19481
 
19108
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
19482
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
19109
19483
  var FactoryTarget2;
19110
19484
  (function(FactoryTarget3) {
19111
19485
  FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
@@ -19115,7 +19489,7 @@ var FactoryTarget2;
19115
19489
  FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
19116
19490
  })(FactoryTarget2 || (FactoryTarget2 = {}));
19117
19491
 
19118
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
19492
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
19119
19493
  var R3TargetBinder = class {
19120
19494
  constructor(directiveMatcher) {
19121
19495
  this.directiveMatcher = directiveMatcher;
@@ -19467,7 +19841,7 @@ function extractTemplateEntities(rootScope) {
19467
19841
  return templateEntities;
19468
19842
  }
19469
19843
 
19470
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
19844
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
19471
19845
  function compileClassMetadata(metadata) {
19472
19846
  var _a2, _b;
19473
19847
  const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
@@ -19480,12 +19854,12 @@ function compileClassMetadata(metadata) {
19480
19854
  return iife.callFn([]);
19481
19855
  }
19482
19856
 
19483
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
19857
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
19484
19858
  var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
19485
19859
  function compileDeclareClassMetadata(metadata) {
19486
19860
  const definitionMap = new DefinitionMap();
19487
19861
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
19488
- definitionMap.set("version", literal("16.0.0-rc.1"));
19862
+ definitionMap.set("version", literal("16.0.0-rc.3"));
19489
19863
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19490
19864
  definitionMap.set("type", metadata.type);
19491
19865
  definitionMap.set("decorators", metadata.decorators);
@@ -19494,7 +19868,7 @@ function compileDeclareClassMetadata(metadata) {
19494
19868
  return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
19495
19869
  }
19496
19870
 
19497
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
19871
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
19498
19872
  function toOptionalLiteralArray(values, mapper) {
19499
19873
  if (values === null || values.length === 0) {
19500
19874
  return null;
@@ -19542,7 +19916,7 @@ function compileDependency(dep) {
19542
19916
  return depMeta.toLiteralMap();
19543
19917
  }
19544
19918
 
19545
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
19919
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
19546
19920
  var MINIMUM_PARTIAL_LINKER_VERSION2 = "14.0.0";
19547
19921
  function compileDeclareDirectiveFromMetadata(meta) {
19548
19922
  const definitionMap = createDirectiveDefinitionMap(meta);
@@ -19554,7 +19928,7 @@ function createDirectiveDefinitionMap(meta) {
19554
19928
  var _a2;
19555
19929
  const definitionMap = new DefinitionMap();
19556
19930
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
19557
- definitionMap.set("version", literal("16.0.0-rc.1"));
19931
+ definitionMap.set("version", literal("16.0.0-rc.3"));
19558
19932
  definitionMap.set("type", meta.type.value);
19559
19933
  if (meta.isStandalone) {
19560
19934
  definitionMap.set("isStandalone", literal(meta.isStandalone));
@@ -19644,7 +20018,7 @@ function createHostDirectives(hostDirectives) {
19644
20018
  return literalArr(expressions);
19645
20019
  }
19646
20020
 
19647
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
20021
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
19648
20022
  function compileDeclareComponentFromMetadata(meta, template2, additionalTemplateInfo) {
19649
20023
  const definitionMap = createComponentDefinitionMap(meta, template2, additionalTemplateInfo);
19650
20024
  const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
@@ -19731,12 +20105,12 @@ function compileUsedDependenciesMetadata(meta) {
19731
20105
  });
19732
20106
  }
19733
20107
 
19734
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
20108
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
19735
20109
  var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
19736
20110
  function compileDeclareFactoryFunction(meta) {
19737
20111
  const definitionMap = new DefinitionMap();
19738
20112
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
19739
- definitionMap.set("version", literal("16.0.0-rc.1"));
20113
+ definitionMap.set("version", literal("16.0.0-rc.3"));
19740
20114
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19741
20115
  definitionMap.set("type", meta.type.value);
19742
20116
  definitionMap.set("deps", compileDependencies(meta.deps));
@@ -19748,7 +20122,7 @@ function compileDeclareFactoryFunction(meta) {
19748
20122
  };
19749
20123
  }
19750
20124
 
19751
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
20125
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
19752
20126
  var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
19753
20127
  function compileDeclareInjectableFromMetadata(meta) {
19754
20128
  const definitionMap = createInjectableDefinitionMap(meta);
@@ -19759,7 +20133,7 @@ function compileDeclareInjectableFromMetadata(meta) {
19759
20133
  function createInjectableDefinitionMap(meta) {
19760
20134
  const definitionMap = new DefinitionMap();
19761
20135
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
19762
- definitionMap.set("version", literal("16.0.0-rc.1"));
20136
+ definitionMap.set("version", literal("16.0.0-rc.3"));
19763
20137
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19764
20138
  definitionMap.set("type", meta.type.value);
19765
20139
  if (meta.providedIn !== void 0) {
@@ -19786,7 +20160,7 @@ function createInjectableDefinitionMap(meta) {
19786
20160
  return definitionMap;
19787
20161
  }
19788
20162
 
19789
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
20163
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
19790
20164
  var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
19791
20165
  function compileDeclareInjectorFromMetadata(meta) {
19792
20166
  const definitionMap = createInjectorDefinitionMap(meta);
@@ -19797,7 +20171,7 @@ function compileDeclareInjectorFromMetadata(meta) {
19797
20171
  function createInjectorDefinitionMap(meta) {
19798
20172
  const definitionMap = new DefinitionMap();
19799
20173
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
19800
- definitionMap.set("version", literal("16.0.0-rc.1"));
20174
+ definitionMap.set("version", literal("16.0.0-rc.3"));
19801
20175
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19802
20176
  definitionMap.set("type", meta.type.value);
19803
20177
  definitionMap.set("providers", meta.providers);
@@ -19807,7 +20181,7 @@ function createInjectorDefinitionMap(meta) {
19807
20181
  return definitionMap;
19808
20182
  }
19809
20183
 
19810
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
20184
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
19811
20185
  var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
19812
20186
  function compileDeclareNgModuleFromMetadata(meta) {
19813
20187
  const definitionMap = createNgModuleDefinitionMap(meta);
@@ -19818,7 +20192,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
19818
20192
  function createNgModuleDefinitionMap(meta) {
19819
20193
  const definitionMap = new DefinitionMap();
19820
20194
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
19821
- definitionMap.set("version", literal("16.0.0-rc.1"));
20195
+ definitionMap.set("version", literal("16.0.0-rc.3"));
19822
20196
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19823
20197
  definitionMap.set("type", meta.type.value);
19824
20198
  if (meta.bootstrap.length > 0) {
@@ -19842,7 +20216,7 @@ function createNgModuleDefinitionMap(meta) {
19842
20216
  return definitionMap;
19843
20217
  }
19844
20218
 
19845
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
20219
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
19846
20220
  var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
19847
20221
  function compileDeclarePipeFromMetadata(meta) {
19848
20222
  const definitionMap = createPipeDefinitionMap(meta);
@@ -19853,7 +20227,7 @@ function compileDeclarePipeFromMetadata(meta) {
19853
20227
  function createPipeDefinitionMap(meta) {
19854
20228
  const definitionMap = new DefinitionMap();
19855
20229
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
19856
- definitionMap.set("version", literal("16.0.0-rc.1"));
20230
+ definitionMap.set("version", literal("16.0.0-rc.3"));
19857
20231
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19858
20232
  definitionMap.set("type", meta.type.value);
19859
20233
  if (meta.isStandalone) {
@@ -19866,13 +20240,13 @@ function createPipeDefinitionMap(meta) {
19866
20240
  return definitionMap;
19867
20241
  }
19868
20242
 
19869
- // bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
20243
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler.mjs
19870
20244
  publishFacade(_global);
19871
20245
 
19872
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
19873
- var VERSION3 = new Version("16.0.0-rc.1");
20246
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version.mjs
20247
+ var VERSION3 = new Version("16.0.0-rc.3");
19874
20248
 
19875
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
20249
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
19876
20250
  var EmitFlags;
19877
20251
  (function(EmitFlags2) {
19878
20252
  EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
@@ -19884,13 +20258,13 @@ var EmitFlags;
19884
20258
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
19885
20259
  })(EmitFlags || (EmitFlags = {}));
19886
20260
 
19887
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
20261
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
19888
20262
  var import_typescript2 = __toESM(require("typescript"), 1);
19889
20263
 
19890
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
20264
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
19891
20265
  var import_typescript94 = __toESM(require("typescript"), 1);
19892
20266
 
19893
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
20267
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
19894
20268
  var path = __toESM(require("path"), 1);
19895
20269
  function i18nGetExtension(formatName) {
19896
20270
  const format = formatName.toLowerCase();
@@ -19940,10 +20314,10 @@ function getPathNormalizer(basePath) {
19940
20314
  };
19941
20315
  }
19942
20316
 
19943
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
20317
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
19944
20318
  var import_typescript3 = __toESM(require("typescript"), 1);
19945
20319
 
19946
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
20320
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
19947
20321
  function toNumbers(value) {
19948
20322
  const suffixIndex = value.lastIndexOf("-");
19949
20323
  return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
@@ -19978,7 +20352,7 @@ function compareVersions(v1, v2) {
19978
20352
  return compareNumbers(toNumbers(v1), toNumbers(v2));
19979
20353
  }
19980
20354
 
19981
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
20355
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
19982
20356
  var MIN_TS_VERSION = "4.9.3";
19983
20357
  var MAX_TS_VERSION = "5.1.0";
19984
20358
  var tsVersion = import_typescript3.default.version;
@@ -19991,13 +20365,13 @@ function verifySupportedTypeScriptVersion() {
19991
20365
  checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
19992
20366
  }
19993
20367
 
19994
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
20368
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
19995
20369
  var import_typescript90 = __toESM(require("typescript"), 1);
19996
20370
 
19997
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
20371
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
19998
20372
  var import_typescript14 = __toESM(require("typescript"), 1);
19999
20373
 
20000
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
20374
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
20001
20375
  var ErrorCode;
20002
20376
  (function(ErrorCode2) {
20003
20377
  ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
@@ -20070,7 +20444,7 @@ var ErrorCode;
20070
20444
  ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
20071
20445
  })(ErrorCode || (ErrorCode = {}));
20072
20446
 
20073
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
20447
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
20074
20448
  var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
20075
20449
  ErrorCode.DECORATOR_ARG_NOT_LITERAL,
20076
20450
  ErrorCode.IMPORT_CYCLE_DETECTED,
@@ -20082,15 +20456,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
20082
20456
  ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
20083
20457
  ]);
20084
20458
 
20085
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
20459
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
20086
20460
  var import_typescript4 = __toESM(require("typescript"), 1);
20087
20461
 
20088
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
20462
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
20089
20463
  function ngErrorCode(code) {
20090
20464
  return parseInt("-99" + code);
20091
20465
  }
20092
20466
 
20093
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
20467
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
20094
20468
  var FatalDiagnosticError = class {
20095
20469
  constructor(code, node, message, relatedInformation) {
20096
20470
  this.code = code;
@@ -20146,10 +20520,10 @@ function addDiagnosticChain(messageText, add) {
20146
20520
  return messageText;
20147
20521
  }
20148
20522
 
20149
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
20523
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
20150
20524
  var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
20151
20525
 
20152
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
20526
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
20153
20527
  var ExtendedTemplateDiagnosticName;
20154
20528
  (function(ExtendedTemplateDiagnosticName2) {
20155
20529
  ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
@@ -20162,13 +20536,13 @@ var ExtendedTemplateDiagnosticName;
20162
20536
  ExtendedTemplateDiagnosticName2["SKIP_HYDRATION_NOT_STATIC"] = "skipHydrationNotStatic";
20163
20537
  })(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
20164
20538
 
20165
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
20539
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
20166
20540
  var import_typescript13 = __toESM(require("typescript"), 1);
20167
20541
 
20168
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
20542
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
20169
20543
  var import_typescript7 = __toESM(require("typescript"), 1);
20170
20544
 
20171
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
20545
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
20172
20546
  var import_typescript5 = __toESM(require("typescript"), 1);
20173
20547
  var TS = /\.tsx?$/i;
20174
20548
  var D_TS = /\.d\.ts$/i;
@@ -20269,7 +20643,7 @@ function toUnredirectedSourceFile(sf) {
20269
20643
  return redirectInfo.unredirected;
20270
20644
  }
20271
20645
 
20272
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
20646
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
20273
20647
  function findExportedNameOfNode(target, file, reflector) {
20274
20648
  const exports = reflector.getExportsOfModule(file);
20275
20649
  if (exports === null) {
@@ -20289,7 +20663,7 @@ function findExportedNameOfNode(target, file, reflector) {
20289
20663
  return foundExportName;
20290
20664
  }
20291
20665
 
20292
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
20666
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
20293
20667
  var ImportFlags;
20294
20668
  (function(ImportFlags2) {
20295
20669
  ImportFlags2[ImportFlags2["None"] = 0] = "None";
@@ -20505,7 +20879,7 @@ var UnifiedModulesStrategy = class {
20505
20879
  }
20506
20880
  };
20507
20881
 
20508
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
20882
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
20509
20883
  var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
20510
20884
  var UnifiedModulesAliasingHost = class {
20511
20885
  constructor(unifiedModulesHost) {
@@ -20572,7 +20946,7 @@ var AliasStrategy = class {
20572
20946
  }
20573
20947
  };
20574
20948
 
20575
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
20949
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
20576
20950
  function relativePathBetween(from, to) {
20577
20951
  const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
20578
20952
  return relativePath !== "" ? toRelativeImport(relativePath) : null;
@@ -20581,7 +20955,7 @@ function normalizeSeparators2(path3) {
20581
20955
  return path3.replace(/\\/g, "/");
20582
20956
  }
20583
20957
 
20584
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
20958
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
20585
20959
  var NoopImportRewriter = class {
20586
20960
  shouldImportSymbol(symbol, specifier) {
20587
20961
  return true;
@@ -20639,7 +21013,7 @@ function validateAndRewriteCoreSymbol(name) {
20639
21013
  return CORE_SUPPORTED_SYMBOLS.get(name);
20640
21014
  }
20641
21015
 
20642
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
21016
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
20643
21017
  var import_typescript9 = __toESM(require("typescript"), 1);
20644
21018
  var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
20645
21019
  function loadIsReferencedAliasDeclarationPatch(context) {
@@ -20674,7 +21048,7 @@ function throwIncompatibleTransformationContextError() {
20674
21048
  throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
20675
21049
  }
20676
21050
 
20677
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
21051
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
20678
21052
  var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
20679
21053
  function attachDefaultImportDeclaration(expr, importDecl) {
20680
21054
  expr[DefaultImportDeclaration] = importDecl;
@@ -20715,7 +21089,7 @@ var DefaultImportTracker = class {
20715
21089
  }
20716
21090
  };
20717
21091
 
20718
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
21092
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
20719
21093
  var Reference2 = class {
20720
21094
  constructor(node, bestGuessOwningModule = null) {
20721
21095
  this.node = node;
@@ -20778,7 +21152,7 @@ var Reference2 = class {
20778
21152
  }
20779
21153
  };
20780
21154
 
20781
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
21155
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
20782
21156
  var ModuleResolver = class {
20783
21157
  constructor(program, compilerOptions, host, moduleResolutionCache) {
20784
21158
  this.program = program;
@@ -20795,7 +21169,7 @@ var ModuleResolver = class {
20795
21169
  }
20796
21170
  };
20797
21171
 
20798
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
21172
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
20799
21173
  function valueReferenceToExpression(valueRef) {
20800
21174
  if (valueRef.kind === 2) {
20801
21175
  return null;
@@ -21030,7 +21404,7 @@ function isAbstractClassDeclaration(clazz) {
21030
21404
  return import_typescript13.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript13.default.SyntaxKind.AbstractKeyword) : false;
21031
21405
  }
21032
21406
 
21033
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
21407
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
21034
21408
  function getConstructorDependencies(clazz, reflector, isCore) {
21035
21409
  const deps = [];
21036
21410
  const errors = [];
@@ -21172,10 +21546,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
21172
21546
  return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
21173
21547
  }
21174
21548
 
21175
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
21549
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
21176
21550
  var import_typescript27 = __toESM(require("typescript"), 1);
21177
21551
 
21178
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
21552
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
21179
21553
  var MetaKind;
21180
21554
  (function(MetaKind2) {
21181
21555
  MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
@@ -21188,10 +21562,10 @@ var MatchSource;
21188
21562
  MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
21189
21563
  })(MatchSource || (MatchSource = {}));
21190
21564
 
21191
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
21565
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
21192
21566
  var import_typescript22 = __toESM(require("typescript"), 1);
21193
21567
 
21194
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
21568
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
21195
21569
  var import_typescript15 = __toESM(require("typescript"), 1);
21196
21570
  function isDecoratorIdentifier(exp) {
21197
21571
  return import_typescript15.default.isIdentifier(exp) || import_typescript15.default.isPropertyAccessExpression(exp) && import_typescript15.default.isIdentifier(exp.expression) && import_typescript15.default.isIdentifier(exp.name);
@@ -21205,7 +21579,7 @@ var ClassMemberKind;
21205
21579
  ClassMemberKind2[ClassMemberKind2["Method"] = 4] = "Method";
21206
21580
  })(ClassMemberKind || (ClassMemberKind = {}));
21207
21581
 
21208
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
21582
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
21209
21583
  var import_typescript16 = __toESM(require("typescript"), 1);
21210
21584
  function typeToValue(typeNode, checker) {
21211
21585
  if (typeNode === null) {
@@ -21371,10 +21745,10 @@ function extractModuleName(node) {
21371
21745
  return node.moduleSpecifier.text;
21372
21746
  }
21373
21747
 
21374
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
21748
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
21375
21749
  var import_typescript18 = __toESM(require("typescript"), 1);
21376
21750
 
21377
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
21751
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
21378
21752
  var import_typescript17 = __toESM(require("typescript"), 1);
21379
21753
  function isNamedClassDeclaration(node) {
21380
21754
  return import_typescript17.default.isClassDeclaration(node) && isIdentifier(node.name);
@@ -21383,7 +21757,7 @@ function isIdentifier(node) {
21383
21757
  return node !== void 0 && import_typescript17.default.isIdentifier(node);
21384
21758
  }
21385
21759
 
21386
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
21760
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
21387
21761
  var TypeScriptReflectionHost = class {
21388
21762
  constructor(checker) {
21389
21763
  this.checker = checker;
@@ -21804,7 +22178,7 @@ function getExportedName(decl, originalId) {
21804
22178
  }
21805
22179
  var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
21806
22180
 
21807
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
22181
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
21808
22182
  var ClassPropertyMapping = class {
21809
22183
  constructor(forwardMap) {
21810
22184
  this.forwardMap = forwardMap;
@@ -21882,7 +22256,7 @@ function reverseMapFromForwardMap(forwardMap) {
21882
22256
  return reverseMap;
21883
22257
  }
21884
22258
 
21885
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
22259
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
21886
22260
  var import_typescript20 = __toESM(require("typescript"), 1);
21887
22261
  function extractReferencesFromType(checker, def, bestGuessOwningModule) {
21888
22262
  if (!import_typescript20.default.isTupleTypeNode(def)) {
@@ -22064,7 +22438,7 @@ function hasInjectableFields(clazz, host) {
22064
22438
  return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
22065
22439
  }
22066
22440
 
22067
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
22441
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
22068
22442
  var DtsMetadataReader = class {
22069
22443
  constructor(checker, reflector) {
22070
22444
  this.checker = checker;
@@ -22089,7 +22463,8 @@ var DtsMetadataReader = class {
22089
22463
  rawDeclarations: null,
22090
22464
  rawImports: null,
22091
22465
  rawExports: null,
22092
- decorator: null
22466
+ decorator: null,
22467
+ mayDeclareProviders: true
22093
22468
  };
22094
22469
  }
22095
22470
  getDirectiveMetadata(ref) {
@@ -22130,7 +22505,8 @@ var DtsMetadataReader = class {
22130
22505
  isStandalone,
22131
22506
  imports: null,
22132
22507
  schemas: null,
22133
- decorator: null
22508
+ decorator: null,
22509
+ assumedToExportProviders: isComponent && isStandalone
22134
22510
  });
22135
22511
  }
22136
22512
  getPipeMetadata(ref) {
@@ -22232,7 +22608,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
22232
22608
  return result.length > 0 ? result : null;
22233
22609
  }
22234
22610
 
22235
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
22611
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
22236
22612
  function flattenInheritedDirectiveMetadata(reader, dir) {
22237
22613
  const topMeta = reader.getDirectiveMetadata(dir);
22238
22614
  if (topMeta === null) {
@@ -22289,7 +22665,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
22289
22665
  });
22290
22666
  }
22291
22667
 
22292
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
22668
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
22293
22669
  var LocalMetadataRegistry = class {
22294
22670
  constructor() {
22295
22671
  this.directives = /* @__PURE__ */ new Map();
@@ -22346,7 +22722,7 @@ var CompoundMetadataRegistry = class {
22346
22722
  }
22347
22723
  };
22348
22724
 
22349
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
22725
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
22350
22726
  var ResourceRegistry = class {
22351
22727
  constructor() {
22352
22728
  this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
@@ -22411,7 +22787,51 @@ var ResourceRegistry = class {
22411
22787
  }
22412
22788
  };
22413
22789
 
22414
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
22790
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
22791
+ var ExportedProviderStatusResolver = class {
22792
+ constructor(metaReader) {
22793
+ this.metaReader = metaReader;
22794
+ this.calculating = /* @__PURE__ */ new Set();
22795
+ }
22796
+ mayExportProviders(ref, dependencyCallback) {
22797
+ var _a2;
22798
+ if (this.calculating.has(ref.node)) {
22799
+ return false;
22800
+ }
22801
+ this.calculating.add(ref.node);
22802
+ if (dependencyCallback !== void 0) {
22803
+ dependencyCallback(ref);
22804
+ }
22805
+ try {
22806
+ const dirMeta = this.metaReader.getDirectiveMetadata(ref);
22807
+ if (dirMeta !== null) {
22808
+ if (!dirMeta.isComponent || !dirMeta.isStandalone) {
22809
+ return false;
22810
+ }
22811
+ if (dirMeta.assumedToExportProviders) {
22812
+ return true;
22813
+ }
22814
+ return ((_a2 = dirMeta.imports) != null ? _a2 : []).some((importRef) => this.mayExportProviders(importRef, dependencyCallback));
22815
+ }
22816
+ const pipeMeta = this.metaReader.getPipeMetadata(ref);
22817
+ if (pipeMeta !== null) {
22818
+ return false;
22819
+ }
22820
+ const ngModuleMeta = this.metaReader.getNgModuleMetadata(ref);
22821
+ if (ngModuleMeta !== null) {
22822
+ if (ngModuleMeta.mayDeclareProviders) {
22823
+ return true;
22824
+ }
22825
+ return ngModuleMeta.imports.some((importRef) => this.mayExportProviders(importRef, dependencyCallback));
22826
+ }
22827
+ return false;
22828
+ } finally {
22829
+ this.calculating.delete(ref.node);
22830
+ }
22831
+ }
22832
+ };
22833
+
22834
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
22415
22835
  var EMPTY_ARRAY = [];
22416
22836
  var HostDirectivesResolver = class {
22417
22837
  constructor(metaReader) {
@@ -22471,10 +22891,10 @@ function resolveOutput(bindingName) {
22471
22891
  return bindingName;
22472
22892
  }
22473
22893
 
22474
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
22894
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
22475
22895
  var import_typescript24 = __toESM(require("typescript"), 1);
22476
22896
 
22477
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
22897
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
22478
22898
  var DynamicValue = class {
22479
22899
  constructor(node, reason, code) {
22480
22900
  this.node = node;
@@ -22564,7 +22984,7 @@ var DynamicValue = class {
22564
22984
  }
22565
22985
  };
22566
22986
 
22567
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
22987
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
22568
22988
  var ResolvedModule = class {
22569
22989
  constructor(exports, evaluate) {
22570
22990
  this.exports = exports;
@@ -22594,7 +23014,7 @@ var EnumValue = class {
22594
23014
  var KnownFn = class {
22595
23015
  };
22596
23016
 
22597
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
23017
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
22598
23018
  function describeResolvedType(value, maxDepth = 1) {
22599
23019
  var _a2, _b;
22600
23020
  if (value === null) {
@@ -22723,10 +23143,10 @@ function getContainerNode(node) {
22723
23143
  return node.getSourceFile();
22724
23144
  }
22725
23145
 
22726
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
23146
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
22727
23147
  var import_typescript25 = __toESM(require("typescript"), 1);
22728
23148
 
22729
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
23149
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
22730
23150
  var ArraySliceBuiltinFn = class extends KnownFn {
22731
23151
  constructor(lhs) {
22732
23152
  super();
@@ -22778,14 +23198,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
22778
23198
  }
22779
23199
  };
22780
23200
 
22781
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
23201
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
22782
23202
  var SyntheticValue = class {
22783
23203
  constructor(value) {
22784
23204
  this.value = value;
22785
23205
  }
22786
23206
  };
22787
23207
 
22788
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
23208
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
22789
23209
  function literalBinaryOp(op) {
22790
23210
  return { op, literal: true };
22791
23211
  }
@@ -23360,7 +23780,7 @@ function owningModule(context, override = null) {
23360
23780
  }
23361
23781
  }
23362
23782
 
23363
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
23783
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
23364
23784
  var PartialEvaluator = class {
23365
23785
  constructor(host, checker, dependencyTracker) {
23366
23786
  this.host = host;
@@ -23380,7 +23800,7 @@ var PartialEvaluator = class {
23380
23800
  }
23381
23801
  };
23382
23802
 
23383
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
23803
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
23384
23804
  function makeDuplicateDeclarationError(node, data, kind) {
23385
23805
  const context = [];
23386
23806
  for (const decl of data) {
@@ -23576,7 +23996,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
23576
23996
  return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${kind.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @${baseNeedsDecorator} decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
23577
23997
  }
23578
23998
 
23579
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
23999
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
23580
24000
  var import_typescript29 = __toESM(require("typescript"), 1);
23581
24001
  function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
23582
24002
  let resolved = null;
@@ -23609,7 +24029,7 @@ function resolveLiteral(decorator, literalCache) {
23609
24029
  return meta;
23610
24030
  }
23611
24031
 
23612
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
24032
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
23613
24033
  function compileNgFactoryDefField(metadata) {
23614
24034
  const res = compileFactoryFunction(metadata);
23615
24035
  return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
@@ -23619,7 +24039,7 @@ function compileDeclareFactory(metadata) {
23619
24039
  return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
23620
24040
  }
23621
24041
 
23622
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
24042
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
23623
24043
  var InjectableClassRegistry = class {
23624
24044
  constructor(host, isCore) {
23625
24045
  this.host = host;
@@ -23645,7 +24065,7 @@ var InjectableClassRegistry = class {
23645
24065
  }
23646
24066
  };
23647
24067
 
23648
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
24068
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
23649
24069
  var import_typescript30 = __toESM(require("typescript"), 1);
23650
24070
  function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
23651
24071
  if (!reflection.isClass(clazz)) {
@@ -23731,13 +24151,13 @@ function removeIdentifierReferences(node, name) {
23731
24151
  return result.transformed[0];
23732
24152
  }
23733
24153
 
23734
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
24154
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
23735
24155
  var NoopReferencesRegistry = class {
23736
24156
  add(source, ...references) {
23737
24157
  }
23738
24158
  };
23739
24159
 
23740
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
24160
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
23741
24161
  function extractSchemas(rawExpr, evaluator, context) {
23742
24162
  const schemas = [];
23743
24163
  const result = evaluator.evaluate(rawExpr);
@@ -23766,10 +24186,10 @@ function extractSchemas(rawExpr, evaluator, context) {
23766
24186
  return schemas;
23767
24187
  }
23768
24188
 
23769
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
24189
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
23770
24190
  var import_typescript51 = __toESM(require("typescript"), 1);
23771
24191
 
23772
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
24192
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
23773
24193
  var import_typescript31 = __toESM(require("typescript"), 1);
23774
24194
  var SemanticSymbol = class {
23775
24195
  constructor(decl) {
@@ -23785,7 +24205,7 @@ function getSymbolIdentifier(decl) {
23785
24205
  return decl.name.text;
23786
24206
  }
23787
24207
 
23788
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
24208
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
23789
24209
  var OpaqueSymbol = class extends SemanticSymbol {
23790
24210
  isPublicApiAffected() {
23791
24211
  return false;
@@ -23927,10 +24347,10 @@ function getImportPath(expr) {
23927
24347
  }
23928
24348
  }
23929
24349
 
23930
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
24350
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
23931
24351
  var import_typescript32 = __toESM(require("typescript"), 1);
23932
24352
 
23933
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
24353
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
23934
24354
  function isSymbolEqual(a, b) {
23935
24355
  if (a.decl === b.decl) {
23936
24356
  return true;
@@ -23980,7 +24400,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
23980
24400
  return true;
23981
24401
  }
23982
24402
 
23983
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
24403
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
23984
24404
  function extractSemanticTypeParameters(node) {
23985
24405
  if (!import_typescript32.default.isClassDeclaration(node) || node.typeParameters === void 0) {
23986
24406
  return null;
@@ -24000,7 +24420,7 @@ function isTypeParameterEqual(a, b) {
24000
24420
  return a.hasGenericTypeBound === b.hasGenericTypeBound;
24001
24421
  }
24002
24422
 
24003
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
24423
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
24004
24424
  var PerfPhase;
24005
24425
  (function(PerfPhase2) {
24006
24426
  PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
@@ -24067,7 +24487,7 @@ var PerfCheckpoint;
24067
24487
  PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
24068
24488
  })(PerfCheckpoint || (PerfCheckpoint = {}));
24069
24489
 
24070
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
24490
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
24071
24491
  var NoopPerfRecorder = class {
24072
24492
  eventCount() {
24073
24493
  }
@@ -24084,7 +24504,7 @@ var NoopPerfRecorder = class {
24084
24504
  };
24085
24505
  var NOOP_PERF_RECORDER = new NoopPerfRecorder();
24086
24506
 
24087
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
24507
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
24088
24508
  function mark() {
24089
24509
  return process.hrtime();
24090
24510
  }
@@ -24093,7 +24513,7 @@ function timeSinceInMicros(mark2) {
24093
24513
  return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
24094
24514
  }
24095
24515
 
24096
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
24516
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
24097
24517
  var ActivePerfRecorder = class {
24098
24518
  static zeroedToNow() {
24099
24519
  return new ActivePerfRecorder(mark());
@@ -24187,14 +24607,14 @@ var DelegatingPerfRecorder = class {
24187
24607
  }
24188
24608
  };
24189
24609
 
24190
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
24610
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
24191
24611
  var ComponentScopeKind;
24192
24612
  (function(ComponentScopeKind2) {
24193
24613
  ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
24194
24614
  ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
24195
24615
  })(ComponentScopeKind || (ComponentScopeKind = {}));
24196
24616
 
24197
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
24617
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
24198
24618
  var CompoundComponentScopeReader = class {
24199
24619
  constructor(readers) {
24200
24620
  this.readers = readers;
@@ -24219,7 +24639,7 @@ var CompoundComponentScopeReader = class {
24219
24639
  }
24220
24640
  };
24221
24641
 
24222
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
24642
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
24223
24643
  var MetadataDtsModuleScopeResolver = class {
24224
24644
  constructor(dtsMetaReader, aliasingHost) {
24225
24645
  this.dtsMetaReader = dtsMetaReader;
@@ -24294,10 +24714,10 @@ var MetadataDtsModuleScopeResolver = class {
24294
24714
  }
24295
24715
  };
24296
24716
 
24297
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
24717
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
24298
24718
  var import_typescript33 = __toESM(require("typescript"), 1);
24299
24719
 
24300
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
24720
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
24301
24721
  function getDiagnosticNode(ref, rawExpr) {
24302
24722
  return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
24303
24723
  }
@@ -24320,7 +24740,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
24320
24740
  return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
24321
24741
  }
24322
24742
 
24323
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
24743
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
24324
24744
  var LocalModuleScopeRegistry = class {
24325
24745
  constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
24326
24746
  this.localReader = localReader;
@@ -24659,7 +25079,7 @@ function reexportCollision(module3, refA, refB) {
24659
25079
  ]);
24660
25080
  }
24661
25081
 
24662
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
25082
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
24663
25083
  var import_typescript35 = __toESM(require("typescript"), 1);
24664
25084
  var TypeCheckScopeRegistry = class {
24665
25085
  constructor(scopeReader, metaReader, hostDirectivesResolver) {
@@ -24727,11 +25147,12 @@ var TypeCheckScopeRegistry = class {
24727
25147
  }
24728
25148
  };
24729
25149
 
24730
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
25150
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
24731
25151
  var CompilationMode;
24732
25152
  (function(CompilationMode2) {
24733
25153
  CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
24734
25154
  CompilationMode2[CompilationMode2["PARTIAL"] = 1] = "PARTIAL";
25155
+ CompilationMode2[CompilationMode2["LOCAL"] = 2] = "LOCAL";
24735
25156
  })(CompilationMode || (CompilationMode = {}));
24736
25157
  var HandlerPrecedence;
24737
25158
  (function(HandlerPrecedence2) {
@@ -24745,7 +25166,7 @@ var HandlerFlags;
24745
25166
  HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
24746
25167
  })(HandlerFlags || (HandlerFlags = {}));
24747
25168
 
24748
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
25169
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
24749
25170
  var import_typescript36 = __toESM(require("typescript"), 1);
24750
25171
  function aliasTransformFactory(exportStatements) {
24751
25172
  return () => {
@@ -24768,10 +25189,10 @@ function aliasTransformFactory(exportStatements) {
24768
25189
  };
24769
25190
  }
24770
25191
 
24771
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
25192
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
24772
25193
  var import_typescript37 = __toESM(require("typescript"), 1);
24773
25194
 
24774
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
25195
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
24775
25196
  var TraitState;
24776
25197
  (function(TraitState2) {
24777
25198
  TraitState2[TraitState2["Pending"] = 0] = "Pending";
@@ -24828,7 +25249,7 @@ var TraitImpl = class {
24828
25249
  }
24829
25250
  };
24830
25251
 
24831
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
25252
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
24832
25253
  var TraitCompiler = class {
24833
25254
  constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
24834
25255
  this.handlers = handlers;
@@ -25263,10 +25684,10 @@ function containsErrors(diagnostics) {
25263
25684
  return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript37.default.DiagnosticCategory.Error);
25264
25685
  }
25265
25686
 
25266
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
25687
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
25267
25688
  var import_typescript43 = __toESM(require("typescript"), 1);
25268
25689
 
25269
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
25690
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
25270
25691
  var Context = class {
25271
25692
  constructor(isStatement) {
25272
25693
  this.isStatement = isStatement;
@@ -25279,7 +25700,7 @@ var Context = class {
25279
25700
  }
25280
25701
  };
25281
25702
 
25282
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
25703
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
25283
25704
  var import_typescript39 = __toESM(require("typescript"), 1);
25284
25705
  var ImportManager = class {
25285
25706
  constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
@@ -25315,7 +25736,7 @@ var ImportManager = class {
25315
25736
  }
25316
25737
  };
25317
25738
 
25318
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
25739
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
25319
25740
  var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
25320
25741
  [UnaryOperator.Minus, "-"],
25321
25742
  [UnaryOperator.Plus, "+"]
@@ -25546,7 +25967,7 @@ function createRange(span) {
25546
25967
  };
25547
25968
  }
25548
25969
 
25549
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
25970
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
25550
25971
  var import_typescript40 = __toESM(require("typescript"), 1);
25551
25972
  function translateType(type, imports) {
25552
25973
  return type.visitType(new TypeTranslatorVisitor(imports), new Context(false));
@@ -25721,7 +26142,7 @@ var TypeTranslatorVisitor = class {
25721
26142
  }
25722
26143
  };
25723
26144
 
25724
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
26145
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
25725
26146
  var import_typescript41 = __toESM(require("typescript"), 1);
25726
26147
  var PureAnnotation;
25727
26148
  (function(PureAnnotation2) {
@@ -25904,7 +26325,7 @@ function attachComments(statement, leadingComments) {
25904
26325
  }
25905
26326
  }
25906
26327
 
25907
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
26328
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
25908
26329
  function translateExpression(expression, imports, options = {}) {
25909
26330
  return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
25910
26331
  }
@@ -25912,7 +26333,7 @@ function translateStatement(statement, imports, options = {}) {
25912
26333
  return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
25913
26334
  }
25914
26335
 
25915
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
26336
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
25916
26337
  var import_typescript42 = __toESM(require("typescript"), 1);
25917
26338
  function addImports(importManager, sf, extraStatements = []) {
25918
26339
  const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
@@ -25948,7 +26369,7 @@ function isImportStatement(stmt) {
25948
26369
  return import_typescript42.default.isImportDeclaration(stmt) || import_typescript42.default.isImportEqualsDeclaration(stmt) || import_typescript42.default.isNamespaceImport(stmt);
25949
26370
  }
25950
26371
 
25951
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
26372
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
25952
26373
  var DtsTransformRegistry = class {
25953
26374
  constructor() {
25954
26375
  this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
@@ -26093,10 +26514,10 @@ function markForEmitAsSingleLine(node) {
26093
26514
  import_typescript43.default.forEachChild(node, markForEmitAsSingleLine);
26094
26515
  }
26095
26516
 
26096
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
26517
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
26097
26518
  var import_typescript45 = __toESM(require("typescript"), 1);
26098
26519
 
26099
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
26520
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
26100
26521
  var import_typescript44 = __toESM(require("typescript"), 1);
26101
26522
  function visit(node, visitor, context) {
26102
26523
  return visitor._visit(node, context);
@@ -26157,7 +26578,7 @@ var Visitor = class {
26157
26578
  }
26158
26579
  };
26159
26580
 
26160
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
26581
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
26161
26582
  var NO_DECORATORS = /* @__PURE__ */ new Set();
26162
26583
  var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
26163
26584
  function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
@@ -26365,7 +26786,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
26365
26786
  return array;
26366
26787
  }
26367
26788
 
26368
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
26789
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
26369
26790
  var import_typescript46 = __toESM(require("typescript"), 1);
26370
26791
  var EMPTY_OBJECT = {};
26371
26792
  var QUERY_TYPES = /* @__PURE__ */ new Set([
@@ -26836,7 +27257,7 @@ function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
26836
27257
  };
26837
27258
  }
26838
27259
 
26839
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
27260
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
26840
27261
  var DirectiveSymbol = class extends SemanticSymbol {
26841
27262
  constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
26842
27263
  super(decl);
@@ -26916,7 +27337,7 @@ function isBaseClassEqual(current, previous) {
26916
27337
  return isSymbolEqual(current, previous);
26917
27338
  }
26918
27339
 
26919
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
27340
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
26920
27341
  var FIELD_DECORATORS = [
26921
27342
  "Input",
26922
27343
  "Output",
@@ -27025,7 +27446,8 @@ var DirectiveDecoratorHandler = class {
27025
27446
  isStandalone: analysis.meta.isStandalone,
27026
27447
  imports: null,
27027
27448
  schemas: null,
27028
- decorator: analysis.decorator
27449
+ decorator: analysis.decorator,
27450
+ assumedToExportProviders: false
27029
27451
  }));
27030
27452
  this.injectableRegistry.registerInjectable(node, {
27031
27453
  ctorDeps: analysis.meta.deps
@@ -27075,10 +27497,10 @@ var DirectiveDecoratorHandler = class {
27075
27497
  }
27076
27498
  };
27077
27499
 
27078
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
27500
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
27079
27501
  var import_typescript48 = __toESM(require("typescript"), 1);
27080
27502
 
27081
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
27503
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
27082
27504
  var import_typescript47 = __toESM(require("typescript"), 1);
27083
27505
  function createModuleWithProvidersResolver(reflector, isCore) {
27084
27506
  function _reflectModuleFromTypeParam(type, node) {
@@ -27145,16 +27567,21 @@ function isResolvedModuleWithProviders(sv) {
27145
27567
  return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
27146
27568
  }
27147
27569
 
27148
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
27570
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
27149
27571
  var NgModuleSymbol = class extends SemanticSymbol {
27150
- constructor() {
27151
- super(...arguments);
27572
+ constructor(decl, hasProviders) {
27573
+ super(decl);
27574
+ this.hasProviders = hasProviders;
27152
27575
  this.remotelyScopedComponents = [];
27576
+ this.transitiveImportsFromStandaloneComponents = /* @__PURE__ */ new Set();
27153
27577
  }
27154
27578
  isPublicApiAffected(previousSymbol) {
27155
27579
  if (!(previousSymbol instanceof NgModuleSymbol)) {
27156
27580
  return true;
27157
27581
  }
27582
+ if (previousSymbol.hasProviders !== this.hasProviders) {
27583
+ return true;
27584
+ }
27158
27585
  return false;
27159
27586
  }
27160
27587
  isEmitAffected(previousSymbol) {
@@ -27178,6 +27605,19 @@ var NgModuleSymbol = class extends SemanticSymbol {
27178
27605
  return true;
27179
27606
  }
27180
27607
  }
27608
+ if (previousSymbol.transitiveImportsFromStandaloneComponents.size !== this.transitiveImportsFromStandaloneComponents.size) {
27609
+ return true;
27610
+ }
27611
+ const previousImports = Array.from(previousSymbol.transitiveImportsFromStandaloneComponents);
27612
+ for (const transitiveImport of this.transitiveImportsFromStandaloneComponents) {
27613
+ const prevEntry = previousImports.find((prevEntry2) => isSymbolEqual(prevEntry2, transitiveImport));
27614
+ if (prevEntry === void 0) {
27615
+ return true;
27616
+ }
27617
+ if (transitiveImport.isPublicApiAffected(prevEntry)) {
27618
+ return true;
27619
+ }
27620
+ }
27181
27621
  return false;
27182
27622
  }
27183
27623
  isTypeCheckApiAffected(previousSymbol) {
@@ -27189,15 +27629,20 @@ var NgModuleSymbol = class extends SemanticSymbol {
27189
27629
  addRemotelyScopedComponent(component, usedDirectives, usedPipes) {
27190
27630
  this.remotelyScopedComponents.push({ component, usedDirectives, usedPipes });
27191
27631
  }
27632
+ addTransitiveImportFromStandaloneComponent(importedSymbol) {
27633
+ this.transitiveImportsFromStandaloneComponents.add(importedSymbol);
27634
+ }
27192
27635
  };
27193
27636
  var NgModuleDecoratorHandler = class {
27194
- constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf) {
27637
+ constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf) {
27195
27638
  this.reflector = reflector;
27196
27639
  this.evaluator = evaluator;
27197
27640
  this.metaReader = metaReader;
27198
27641
  this.metaRegistry = metaRegistry;
27199
27642
  this.scopeRegistry = scopeRegistry;
27200
27643
  this.referencesRegistry = referencesRegistry;
27644
+ this.exportedProviderStatusResolver = exportedProviderStatusResolver;
27645
+ this.semanticDepGraphUpdater = semanticDepGraphUpdater;
27201
27646
  this.isCore = isCore;
27202
27647
  this.refEmitter = refEmitter;
27203
27648
  this.annotateForClosureCompiler = annotateForClosureCompiler;
@@ -27396,8 +27841,8 @@ var NgModuleDecoratorHandler = class {
27396
27841
  }
27397
27842
  };
27398
27843
  }
27399
- symbol(node) {
27400
- return new NgModuleSymbol(node);
27844
+ symbol(node, analysis) {
27845
+ return new NgModuleSymbol(node, analysis.providers !== null);
27401
27846
  }
27402
27847
  register(node, analysis) {
27403
27848
  this.metaRegistry.registerNgModuleMetadata({
@@ -27410,7 +27855,8 @@ var NgModuleDecoratorHandler = class {
27410
27855
  rawDeclarations: analysis.rawDeclarations,
27411
27856
  rawImports: analysis.rawImports,
27412
27857
  rawExports: analysis.rawExports,
27413
- decorator: analysis.decorator
27858
+ decorator: analysis.decorator,
27859
+ mayDeclareProviders: analysis.providers !== null
27414
27860
  });
27415
27861
  this.injectableRegistry.registerInjectable(node, {
27416
27862
  ctorDeps: analysis.fac.deps
@@ -27436,10 +27882,28 @@ var NgModuleDecoratorHandler = class {
27436
27882
  continue;
27437
27883
  }
27438
27884
  const refsToEmit = [];
27885
+ let symbol = null;
27886
+ if (this.semanticDepGraphUpdater !== null) {
27887
+ const sym = this.semanticDepGraphUpdater.getSymbol(node);
27888
+ if (sym instanceof NgModuleSymbol) {
27889
+ symbol = sym;
27890
+ }
27891
+ }
27439
27892
  for (const ref of topLevelImport.resolvedReferences) {
27440
27893
  const dirMeta = this.metaReader.getDirectiveMetadata(ref);
27441
- if (dirMeta !== null && !dirMeta.isComponent) {
27442
- continue;
27894
+ if (dirMeta !== null) {
27895
+ if (!dirMeta.isComponent) {
27896
+ continue;
27897
+ }
27898
+ const mayExportProviders = this.exportedProviderStatusResolver.mayExportProviders(dirMeta.ref, (importRef) => {
27899
+ if (symbol !== null && this.semanticDepGraphUpdater !== null) {
27900
+ const importSymbol = this.semanticDepGraphUpdater.getSymbol(importRef.node);
27901
+ symbol.addTransitiveImportFromStandaloneComponent(importSymbol);
27902
+ }
27903
+ });
27904
+ if (!mayExportProviders) {
27905
+ continue;
27906
+ }
27443
27907
  }
27444
27908
  const pipeMeta = dirMeta === null ? this.metaReader.getPipeMetadata(ref) : null;
27445
27909
  if (pipeMeta !== null) {
@@ -27625,7 +28089,7 @@ function isSyntheticReference(ref) {
27625
28089
  return ref.synthetic;
27626
28090
  }
27627
28091
 
27628
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
28092
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
27629
28093
  function makeCyclicImportInfo(ref, type, cycle) {
27630
28094
  const name = ref.debugName || "(unknown)";
27631
28095
  const path3 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
@@ -27648,15 +28112,10 @@ function checkCustomElementSelectorForErrors(selector) {
27648
28112
  return null;
27649
28113
  }
27650
28114
 
27651
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
28115
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
27652
28116
  var import_typescript50 = __toESM(require("typescript"), 1);
27653
28117
  function getTemplateDeclarationNodeForError(declaration) {
27654
- switch (declaration.isInline) {
27655
- case true:
27656
- return declaration.expression;
27657
- case false:
27658
- return declaration.templateUrlExpression;
27659
- }
28118
+ return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
27660
28119
  }
27661
28120
  function extractTemplate(node, template2, evaluator, depTracker, resourceLoader, options) {
27662
28121
  if (template2.isInline) {
@@ -27963,7 +28422,7 @@ function _extractTemplateStyleUrls(template2) {
27963
28422
  return template2.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
27964
28423
  }
27965
28424
 
27966
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
28425
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
27967
28426
  var ComponentSymbol = class extends DirectiveSymbol {
27968
28427
  constructor() {
27969
28428
  super(...arguments);
@@ -27998,7 +28457,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
27998
28457
  }
27999
28458
  };
28000
28459
 
28001
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
28460
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
28002
28461
  function collectAnimationNames(value, animationTriggerNames) {
28003
28462
  if (value instanceof Map) {
28004
28463
  const name = value.get("name");
@@ -28074,7 +28533,7 @@ function isLikelyModuleWithProviders(value) {
28074
28533
  return false;
28075
28534
  }
28076
28535
 
28077
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
28536
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
28078
28537
  var EMPTY_ARRAY2 = [];
28079
28538
  var ComponentDecoratorHandler = class {
28080
28539
  constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver) {
@@ -28398,7 +28857,8 @@ var ComponentDecoratorHandler = class {
28398
28857
  imports: analysis.resolvedImports,
28399
28858
  animationTriggerNames: analysis.animationTriggerNames,
28400
28859
  schemas: analysis.schemas,
28401
- decorator: analysis.decorator
28860
+ decorator: analysis.decorator,
28861
+ assumedToExportProviders: false
28402
28862
  }));
28403
28863
  this.resourceRegistry.registerResources(analysis.resources, node);
28404
28864
  this.injectableRegistry.registerInjectable(node, {
@@ -28721,7 +29181,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
28721
29181
  return diagnostics;
28722
29182
  }
28723
29183
 
28724
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
29184
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
28725
29185
  var import_typescript53 = __toESM(require("typescript"), 1);
28726
29186
  var InjectableDecoratorHandler = class {
28727
29187
  constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
@@ -28935,7 +29395,7 @@ function getDep(dep, reflector) {
28935
29395
  return meta;
28936
29396
  }
28937
29397
 
28938
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
29398
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
28939
29399
  var import_typescript54 = __toESM(require("typescript"), 1);
28940
29400
  var PipeSymbol = class extends SemanticSymbol {
28941
29401
  constructor(decl, name) {
@@ -29078,7 +29538,7 @@ var PipeDecoratorHandler = class {
29078
29538
  }
29079
29539
  };
29080
29540
 
29081
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
29541
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
29082
29542
  var CycleAnalyzer = class {
29083
29543
  constructor(importGraph) {
29084
29544
  this.importGraph = importGraph;
@@ -29149,7 +29609,7 @@ var Cycle = class {
29149
29609
  }
29150
29610
  };
29151
29611
 
29152
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
29612
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
29153
29613
  var import_typescript55 = __toESM(require("typescript"), 1);
29154
29614
  var ImportGraph = class {
29155
29615
  constructor(checker, perf) {
@@ -29241,7 +29701,7 @@ var Found = class {
29241
29701
  }
29242
29702
  };
29243
29703
 
29244
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
29704
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
29245
29705
  var import_typescript56 = __toESM(require("typescript"), 1);
29246
29706
  var FlatIndexGenerator = class {
29247
29707
  constructor(entryPoint, relativeFlatIndexPath, moduleName) {
@@ -29266,7 +29726,7 @@ export * from '${relativeEntryPoint}';
29266
29726
  }
29267
29727
  };
29268
29728
 
29269
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
29729
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
29270
29730
  function findFlatIndexEntryPoint(rootFiles) {
29271
29731
  const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
29272
29732
  let resolvedEntryPoint = null;
@@ -29282,7 +29742,7 @@ function findFlatIndexEntryPoint(rootFiles) {
29282
29742
  return resolvedEntryPoint;
29283
29743
  }
29284
29744
 
29285
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
29745
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
29286
29746
  var import_typescript58 = __toESM(require("typescript"), 1);
29287
29747
  function checkForPrivateExports(entryPoint, checker, refGraph) {
29288
29748
  const diagnostics = [];
@@ -29362,7 +29822,7 @@ function getDescriptorOfDeclaration(decl) {
29362
29822
  }
29363
29823
  }
29364
29824
 
29365
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
29825
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
29366
29826
  var ReferenceGraph = class {
29367
29827
  constructor() {
29368
29828
  this.references = /* @__PURE__ */ new Map();
@@ -29416,7 +29876,7 @@ var ReferenceGraph = class {
29416
29876
  }
29417
29877
  };
29418
29878
 
29419
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
29879
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
29420
29880
  var NgOriginalFile = Symbol("NgOriginalFile");
29421
29881
  var UpdateMode;
29422
29882
  (function(UpdateMode2) {
@@ -29424,13 +29884,13 @@ var UpdateMode;
29424
29884
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
29425
29885
  })(UpdateMode || (UpdateMode = {}));
29426
29886
 
29427
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
29887
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
29428
29888
  var import_typescript62 = __toESM(require("typescript"), 1);
29429
29889
 
29430
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
29890
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
29431
29891
  var import_typescript59 = __toESM(require("typescript"), 1);
29432
29892
 
29433
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
29893
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
29434
29894
  var NgExtension = Symbol("NgExtension");
29435
29895
  function isExtended(sf) {
29436
29896
  return sf[NgExtension] !== void 0;
@@ -29490,13 +29950,13 @@ function retagTsFile(sf) {
29490
29950
  }
29491
29951
  }
29492
29952
 
29493
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
29953
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
29494
29954
  var TS_EXTENSIONS = /\.tsx?$/i;
29495
29955
  function makeShimFileName(fileName, suffix) {
29496
29956
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
29497
29957
  }
29498
29958
 
29499
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
29959
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
29500
29960
  var ShimAdapter = class {
29501
29961
  constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
29502
29962
  this.delegate = delegate;
@@ -29591,7 +30051,7 @@ var ShimAdapter = class {
29591
30051
  }
29592
30052
  };
29593
30053
 
29594
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
30054
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
29595
30055
  var ShimReferenceTagger = class {
29596
30056
  constructor(shimExtensions) {
29597
30057
  this.tagged = /* @__PURE__ */ new Set();
@@ -29625,7 +30085,7 @@ var ShimReferenceTagger = class {
29625
30085
  }
29626
30086
  };
29627
30087
 
29628
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
30088
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
29629
30089
  var DelegatingCompilerHost = class {
29630
30090
  constructor(delegate) {
29631
30091
  this.delegate = delegate;
@@ -29738,7 +30198,7 @@ var TsCreateProgramDriver = class {
29738
30198
  }
29739
30199
  };
29740
30200
 
29741
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
30201
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
29742
30202
  var FileDependencyGraph = class {
29743
30203
  constructor() {
29744
30204
  this.nodes = /* @__PURE__ */ new Map();
@@ -29805,7 +30265,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
29805
30265
  return false;
29806
30266
  }
29807
30267
 
29808
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
30268
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
29809
30269
  var IncrementalStateKind;
29810
30270
  (function(IncrementalStateKind2) {
29811
30271
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -29813,7 +30273,7 @@ var IncrementalStateKind;
29813
30273
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
29814
30274
  })(IncrementalStateKind || (IncrementalStateKind = {}));
29815
30275
 
29816
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
30276
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
29817
30277
  var PhaseKind;
29818
30278
  (function(PhaseKind2) {
29819
30279
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
@@ -30014,7 +30474,7 @@ function toOriginalSourceFile(sf) {
30014
30474
  }
30015
30475
  }
30016
30476
 
30017
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
30477
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
30018
30478
  var TrackedIncrementalBuildStrategy = class {
30019
30479
  constructor() {
30020
30480
  this.state = null;
@@ -30035,7 +30495,7 @@ var TrackedIncrementalBuildStrategy = class {
30035
30495
  };
30036
30496
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
30037
30497
 
30038
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
30498
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
30039
30499
  var IdentifierKind;
30040
30500
  (function(IdentifierKind2) {
30041
30501
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -30053,7 +30513,7 @@ var AbsoluteSourceSpan2 = class {
30053
30513
  }
30054
30514
  };
30055
30515
 
30056
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
30516
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
30057
30517
  var IndexingContext = class {
30058
30518
  constructor() {
30059
30519
  this.components = /* @__PURE__ */ new Set();
@@ -30063,7 +30523,7 @@ var IndexingContext = class {
30063
30523
  }
30064
30524
  };
30065
30525
 
30066
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
30526
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
30067
30527
  var ExpressionVisitor = class extends RecursiveAstVisitor2 {
30068
30528
  constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
30069
30529
  super();
@@ -30299,7 +30759,7 @@ function getTemplateIdentifiers(boundTemplate) {
30299
30759
  return { identifiers: visitor.identifiers, errors: visitor.errors };
30300
30760
  }
30301
30761
 
30302
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
30762
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
30303
30763
  function generateAnalysis(context) {
30304
30764
  const analysis = /* @__PURE__ */ new Map();
30305
30765
  context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
@@ -30335,7 +30795,7 @@ function generateAnalysis(context) {
30335
30795
  return analysis;
30336
30796
  }
30337
30797
 
30338
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
30798
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
30339
30799
  var NgModuleIndexImpl = class {
30340
30800
  constructor(metaReader, localReader) {
30341
30801
  this.metaReader = metaReader;
@@ -30424,7 +30884,7 @@ var NgModuleIndexImpl = class {
30424
30884
  }
30425
30885
  };
30426
30886
 
30427
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
30887
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
30428
30888
  var import_typescript65 = __toESM(require("typescript"), 1);
30429
30889
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
30430
30890
  var RESOURCE_MARKER = ".$ngresource$";
@@ -30572,7 +31032,7 @@ function createLookupResolutionHost(adapter) {
30572
31032
  };
30573
31033
  }
30574
31034
 
30575
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
31035
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
30576
31036
  var StandaloneComponentScopeReader = class {
30577
31037
  constructor(metaReader, localModuleReader, dtsModuleReader) {
30578
31038
  this.metaReader = metaReader;
@@ -30650,21 +31110,21 @@ var StandaloneComponentScopeReader = class {
30650
31110
  }
30651
31111
  };
30652
31112
 
30653
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
31113
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
30654
31114
  var OptimizeFor;
30655
31115
  (function(OptimizeFor2) {
30656
31116
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
30657
31117
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
30658
31118
  })(OptimizeFor || (OptimizeFor = {}));
30659
31119
 
30660
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
31120
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
30661
31121
  var CompletionKind;
30662
31122
  (function(CompletionKind2) {
30663
31123
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
30664
31124
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
30665
31125
  })(CompletionKind || (CompletionKind = {}));
30666
31126
 
30667
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
31127
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
30668
31128
  var PotentialImportKind;
30669
31129
  (function(PotentialImportKind2) {
30670
31130
  PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
@@ -30676,7 +31136,7 @@ var PotentialImportMode;
30676
31136
  PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
30677
31137
  })(PotentialImportMode || (PotentialImportMode = {}));
30678
31138
 
30679
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
31139
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
30680
31140
  var SymbolKind;
30681
31141
  (function(SymbolKind2) {
30682
31142
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -30692,7 +31152,7 @@ var SymbolKind;
30692
31152
  SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
30693
31153
  })(SymbolKind || (SymbolKind = {}));
30694
31154
 
30695
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
31155
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
30696
31156
  var import_typescript66 = __toESM(require("typescript"), 1);
30697
31157
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
30698
31158
  var _a2;
@@ -30799,7 +31259,7 @@ function parseTemplateAsSourceFile(fileName, template2) {
30799
31259
  return import_typescript66.default.createSourceFile(fileName, template2, import_typescript66.default.ScriptTarget.Latest, false, import_typescript66.default.ScriptKind.JSX);
30800
31260
  }
30801
31261
 
30802
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
31262
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
30803
31263
  var TEMPLATE_ID = Symbol("ngTemplateId");
30804
31264
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
30805
31265
  function getTemplateId(clazz) {
@@ -30816,10 +31276,10 @@ function allocateTemplateId(sf) {
30816
31276
  return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
30817
31277
  }
30818
31278
 
30819
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
31279
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
30820
31280
  var import_typescript68 = __toESM(require("typescript"), 1);
30821
31281
 
30822
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
31282
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
30823
31283
  var import_typescript67 = __toESM(require("typescript"), 1);
30824
31284
  var parseSpanComment = /^(\d+),(\d+)$/;
30825
31285
  function readSpanComment(node, sourceFile = node.getSourceFile()) {
@@ -30948,7 +31408,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
30948
31408
  }) || false;
30949
31409
  }
30950
31410
 
30951
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
31411
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
30952
31412
  var CompletionEngine = class {
30953
31413
  constructor(tcb, data, tcbPath, tcbIsShim) {
30954
31414
  this.tcb = tcb;
@@ -31105,10 +31565,10 @@ var CompletionEngine = class {
31105
31565
  }
31106
31566
  };
31107
31567
 
31108
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
31568
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
31109
31569
  var import_typescript83 = __toESM(require("typescript"), 1);
31110
31570
 
31111
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
31571
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
31112
31572
  var import_typescript69 = __toESM(require("typescript"), 1);
31113
31573
  var REGISTRY = new DomElementSchemaRegistry();
31114
31574
  var REMOVE_XHTML_REGEX = /^:xhtml:/;
@@ -31160,10 +31620,10 @@ var RegistryDomSchemaChecker = class {
31160
31620
  }
31161
31621
  };
31162
31622
 
31163
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
31623
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
31164
31624
  var import_typescript76 = __toESM(require("typescript"), 1);
31165
31625
 
31166
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
31626
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
31167
31627
  var import_typescript70 = __toESM(require("typescript"), 1);
31168
31628
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
31169
31629
  import_typescript70.default.SyntaxKind.ParenthesizedExpression,
@@ -31237,16 +31697,16 @@ function isAccessExpression(node) {
31237
31697
  return import_typescript70.default.isPropertyAccessExpression(node) || import_typescript70.default.isElementAccessExpression(node);
31238
31698
  }
31239
31699
 
31240
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
31700
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
31241
31701
  var import_typescript75 = __toESM(require("typescript"), 1);
31242
31702
 
31243
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
31703
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
31244
31704
  var import_typescript73 = __toESM(require("typescript"), 1);
31245
31705
 
31246
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
31706
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
31247
31707
  var import_typescript72 = __toESM(require("typescript"), 1);
31248
31708
 
31249
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
31709
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
31250
31710
  var import_typescript71 = __toESM(require("typescript"), 1);
31251
31711
  var INELIGIBLE = {};
31252
31712
  function canEmitType(type, canEmit) {
@@ -31321,7 +31781,7 @@ var TypeEmitter = class {
31321
31781
  }
31322
31782
  };
31323
31783
 
31324
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
31784
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
31325
31785
  var TypeParameterEmitter = class {
31326
31786
  constructor(typeParameters, reflector) {
31327
31787
  this.typeParameters = typeParameters;
@@ -31398,7 +31858,7 @@ var TypeParameterEmitter = class {
31398
31858
  }
31399
31859
  };
31400
31860
 
31401
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
31861
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
31402
31862
  var TcbInliningRequirement;
31403
31863
  (function(TcbInliningRequirement2) {
31404
31864
  TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
@@ -31478,7 +31938,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
31478
31938
  return emitter.canEmit((ref) => env.canReferenceType(ref));
31479
31939
  }
31480
31940
 
31481
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
31941
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
31482
31942
  function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
31483
31943
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
31484
31944
  const rawType = import_typescript75.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -31590,7 +32050,7 @@ function typeParametersWithDefaultTypes(params) {
31590
32050
  });
31591
32051
  }
31592
32052
 
31593
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
32053
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
31594
32054
  var Environment = class {
31595
32055
  constructor(config, importManager, refEmitter, reflector, contextFile) {
31596
32056
  this.config = config;
@@ -31682,7 +32142,7 @@ var Environment = class {
31682
32142
  }
31683
32143
  };
31684
32144
 
31685
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
32145
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
31686
32146
  var import_typescript77 = __toESM(require("typescript"), 1);
31687
32147
  var OutOfBandDiagnosticRecorderImpl = class {
31688
32148
  constructor(resolver) {
@@ -31817,7 +32277,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
31817
32277
  });
31818
32278
  }
31819
32279
 
31820
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
32280
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
31821
32281
  var import_typescript78 = __toESM(require("typescript"), 1);
31822
32282
  var TypeCheckShimGenerator = class {
31823
32283
  constructor() {
@@ -31835,10 +32295,10 @@ var TypeCheckShimGenerator = class {
31835
32295
  }
31836
32296
  };
31837
32297
 
31838
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
32298
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
31839
32299
  var import_typescript81 = __toESM(require("typescript"), 1);
31840
32300
 
31841
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
32301
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
31842
32302
  var import_typescript79 = __toESM(require("typescript"), 1);
31843
32303
  function wrapForDiagnostics(expr) {
31844
32304
  return import_typescript79.default.factory.createParenthesizedExpression(expr);
@@ -31883,7 +32343,7 @@ function translateDiagnostic(diagnostic, resolver) {
31883
32343
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
31884
32344
  }
31885
32345
 
31886
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
32346
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
31887
32347
  var import_typescript80 = __toESM(require("typescript"), 1);
31888
32348
  var NULL_AS_ANY = import_typescript80.default.factory.createAsExpression(import_typescript80.default.factory.createNull(), import_typescript80.default.factory.createKeywordTypeNode(import_typescript80.default.SyntaxKind.AnyKeyword));
31889
32349
  var UNDEFINED = import_typescript80.default.factory.createIdentifier("undefined");
@@ -32215,7 +32675,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
32215
32675
  _VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
32216
32676
  })();
32217
32677
 
32218
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
32678
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
32219
32679
  var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
32220
32680
  constructor(templateId, boundTarget, oob) {
32221
32681
  super();
@@ -32238,7 +32698,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
32238
32698
  }
32239
32699
  };
32240
32700
 
32241
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
32701
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
32242
32702
  var TcbGenericContextBehavior;
32243
32703
  (function(TcbGenericContextBehavior2) {
32244
32704
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -33353,7 +33813,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
33353
33813
  }
33354
33814
  };
33355
33815
 
33356
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
33816
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
33357
33817
  var import_typescript82 = __toESM(require("typescript"), 1);
33358
33818
  var TypeCheckFile = class extends Environment {
33359
33819
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
@@ -33389,7 +33849,7 @@ var TypeCheckFile = class extends Environment {
33389
33849
  }
33390
33850
  };
33391
33851
 
33392
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
33852
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
33393
33853
  var InliningMode;
33394
33854
  (function(InliningMode2) {
33395
33855
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -33627,7 +34087,7 @@ function splitStringAtPoints(str, points) {
33627
34087
  return splits;
33628
34088
  }
33629
34089
 
33630
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
34090
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
33631
34091
  var LF_CHAR = 10;
33632
34092
  var CR_CHAR = 13;
33633
34093
  var LINE_SEP_CHAR = 8232;
@@ -33668,7 +34128,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
33668
34128
  return low - 1;
33669
34129
  }
33670
34130
 
33671
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
34131
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
33672
34132
  var TemplateSource = class {
33673
34133
  constructor(mapping, file) {
33674
34134
  this.mapping = mapping;
@@ -33719,7 +34179,7 @@ var TemplateSourceManager = class {
33719
34179
  }
33720
34180
  };
33721
34181
 
33722
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
34182
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
33723
34183
  var import_typescript84 = __toESM(require("typescript"), 1);
33724
34184
  var SymbolBuilder = class {
33725
34185
  constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
@@ -34196,7 +34656,7 @@ function sourceSpanEqual(a, b) {
34196
34656
  return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
34197
34657
  }
34198
34658
 
34199
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
34659
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
34200
34660
  var REGISTRY2 = new DomElementSchemaRegistry();
34201
34661
  var TemplateTypeCheckerImpl = class {
34202
34662
  constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
@@ -34889,7 +35349,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
34889
35349
  }
34890
35350
  };
34891
35351
 
34892
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
35352
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
34893
35353
  var TemplateCheckWithVisitor = class {
34894
35354
  run(ctx, component, template2) {
34895
35355
  const visitor = new TemplateVisitor2(ctx, component, this);
@@ -34965,7 +35425,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
34965
35425
  }
34966
35426
  };
34967
35427
 
34968
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
35428
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
34969
35429
  var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
34970
35430
  constructor() {
34971
35431
  super(...arguments);
@@ -34990,7 +35450,7 @@ var factory = {
34990
35450
  create: () => new InvalidBananaInBoxCheck()
34991
35451
  };
34992
35452
 
34993
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
35453
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
34994
35454
  var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
34995
35455
  ["ngIf", "NgIf"],
34996
35456
  ["ngFor", "NgFor"],
@@ -35034,7 +35494,7 @@ var factory2 = {
35034
35494
  }
35035
35495
  };
35036
35496
 
35037
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
35497
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
35038
35498
  var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
35039
35499
  constructor() {
35040
35500
  super(...arguments);
@@ -35066,7 +35526,7 @@ var factory3 = {
35066
35526
  create: () => new MissingNgForOfLetCheck()
35067
35527
  };
35068
35528
 
35069
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
35529
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
35070
35530
  var import_typescript87 = __toESM(require("typescript"), 1);
35071
35531
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
35072
35532
  constructor() {
@@ -35110,7 +35570,7 @@ var factory4 = {
35110
35570
  }
35111
35571
  };
35112
35572
 
35113
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
35573
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
35114
35574
  var import_typescript88 = __toESM(require("typescript"), 1);
35115
35575
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
35116
35576
  constructor() {
@@ -35155,7 +35615,7 @@ var factory5 = {
35155
35615
  }
35156
35616
  };
35157
35617
 
35158
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
35618
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
35159
35619
  var STYLE_SUFFIXES = ["px", "%", "em"];
35160
35620
  var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
35161
35621
  constructor() {
@@ -35178,7 +35638,7 @@ var factory6 = {
35178
35638
  create: () => new SuffixNotSupportedCheck()
35179
35639
  };
35180
35640
 
35181
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
35641
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
35182
35642
  var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
35183
35643
  constructor() {
35184
35644
  super(...arguments);
@@ -35216,10 +35676,10 @@ var factory7 = {
35216
35676
  create: () => new TextAttributeNotBindingSpec()
35217
35677
  };
35218
35678
 
35219
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
35679
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
35220
35680
  var import_typescript89 = __toESM(require("typescript"), 1);
35221
35681
 
35222
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
35682
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
35223
35683
  var DiagnosticCategoryLabel;
35224
35684
  (function(DiagnosticCategoryLabel2) {
35225
35685
  DiagnosticCategoryLabel2["Warning"] = "warning";
@@ -35227,7 +35687,7 @@ var DiagnosticCategoryLabel;
35227
35687
  DiagnosticCategoryLabel2["Suppress"] = "suppress";
35228
35688
  })(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
35229
35689
 
35230
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
35690
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
35231
35691
  var ExtendedTemplateCheckerImpl = class {
35232
35692
  constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
35233
35693
  var _a2, _b, _c, _d, _e;
@@ -35279,7 +35739,7 @@ function assertNever(value) {
35279
35739
  ${value}`);
35280
35740
  }
35281
35741
 
35282
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
35742
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
35283
35743
  var ALL_DIAGNOSTIC_FACTORIES = [
35284
35744
  factory,
35285
35745
  factory4,
@@ -35290,7 +35750,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
35290
35750
  factory6
35291
35751
  ];
35292
35752
 
35293
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
35753
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
35294
35754
  var CompilationTicketKind;
35295
35755
  (function(CompilationTicketKind2) {
35296
35756
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -35388,9 +35848,6 @@ var NgCompiler = class {
35388
35848
  get perfRecorder() {
35389
35849
  return this.livePerfRecorder;
35390
35850
  }
35391
- get incrementalDriver() {
35392
- return this.incrementalCompilation;
35393
- }
35394
35851
  updateWithChangedResources(changedResources, perfRecorder) {
35395
35852
  this.livePerfRecorder = perfRecorder;
35396
35853
  this.delegatingPerfRecorder.target = perfRecorder;
@@ -35785,6 +36242,7 @@ var NgCompiler = class {
35785
36242
  const metaRegistry = new CompoundMetadataRegistry([localMetaRegistry, ngModuleScopeRegistry]);
35786
36243
  const injectableRegistry = new InjectableClassRegistry(reflector, isCore);
35787
36244
  const hostDirectivesResolver = new HostDirectivesResolver(metaReader);
36245
+ const exportedProviderStatusResolver = new ExportedProviderStatusResolver(metaReader);
35788
36246
  const typeCheckScopeRegistry = new TypeCheckScopeRegistry(scopeReader, metaReader, hostDirectivesResolver);
35789
36247
  let referencesRegistry;
35790
36248
  let exportReferenceGraph = null;
@@ -35796,7 +36254,20 @@ var NgCompiler = class {
35796
36254
  }
35797
36255
  const dtsTransforms = new DtsTransformRegistry();
35798
36256
  const resourceRegistry = new ResourceRegistry();
35799
- const compilationMode = this.options.compilationMode === "partial" && !isCore ? CompilationMode.PARTIAL : CompilationMode.FULL;
36257
+ let compilationMode = CompilationMode.FULL;
36258
+ if (!isCore) {
36259
+ switch (this.options.compilationMode) {
36260
+ case "full":
36261
+ compilationMode = CompilationMode.FULL;
36262
+ break;
36263
+ case "partial":
36264
+ compilationMode = CompilationMode.PARTIAL;
36265
+ break;
36266
+ case "experimental-local":
36267
+ compilationMode = CompilationMode.LOCAL;
36268
+ break;
36269
+ }
36270
+ }
35800
36271
  const cycleHandlingStrategy = compilationMode === CompilationMode.FULL ? 0 : 1;
35801
36272
  const strictCtorDeps = this.options.strictInjectionParameters || false;
35802
36273
  const handlers = [
@@ -35804,7 +36275,7 @@ var NgCompiler = class {
35804
36275
  new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder),
35805
36276
  new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
35806
36277
  new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder),
35807
- new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.closureCompilerEnabled, (_a2 = this.options.onlyPublishPublicTypingsForNgModules) != null ? _a2 : false, injectableRegistry, this.delegatingPerfRecorder)
36278
+ new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_a2 = this.options.onlyPublishPublicTypingsForNgModules) != null ? _a2 : false, injectableRegistry, this.delegatingPerfRecorder)
35808
36279
  ];
35809
36280
  const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
35810
36281
  const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
@@ -35991,7 +36462,7 @@ function versionMapFromProgram(program, driver) {
35991
36462
  return versions;
35992
36463
  }
35993
36464
 
35994
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
36465
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
35995
36466
  var import_typescript92 = __toESM(require("typescript"), 1);
35996
36467
  var DelegatingCompilerHost2 = class {
35997
36468
  constructor(delegate) {
@@ -36124,7 +36595,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
36124
36595
  }
36125
36596
  };
36126
36597
 
36127
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
36598
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
36128
36599
  var NgtscProgram = class {
36129
36600
  constructor(rootNames, options, delegateHost, oldProgram) {
36130
36601
  this.options = options;
@@ -36342,21 +36813,21 @@ function mergeEmitResults(emitResults) {
36342
36813
  return { diagnostics, emitSkipped, emittedFiles };
36343
36814
  }
36344
36815
 
36345
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
36816
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
36346
36817
  function createProgram({ rootNames, options, host, oldProgram }) {
36347
36818
  return new NgtscProgram(rootNames, options, host, oldProgram);
36348
36819
  }
36349
36820
 
36350
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
36821
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
36351
36822
  var import_typescript96 = __toESM(require("typescript"), 1);
36352
36823
 
36353
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
36824
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
36354
36825
  var import_typescript95 = __toESM(require("typescript"), 1);
36355
36826
 
36356
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
36827
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
36357
36828
  var import_typescript97 = __toESM(require("typescript"), 1);
36358
36829
 
36359
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
36830
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
36360
36831
  var GLOBAL_DEFS_FOR_TERSER = {
36361
36832
  ngDevMode: false,
36362
36833
  ngI18nClosureMode: false
@@ -36365,7 +36836,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
36365
36836
  ngJitMode: false
36366
36837
  });
36367
36838
 
36368
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
36839
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
36369
36840
  var LogLevel;
36370
36841
  (function(LogLevel2) {
36371
36842
  LogLevel2[LogLevel2["debug"] = 0] = "debug";
@@ -36374,7 +36845,7 @@ var LogLevel;
36374
36845
  LogLevel2[LogLevel2["error"] = 3] = "error";
36375
36846
  })(LogLevel || (LogLevel = {}));
36376
36847
 
36377
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
36848
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
36378
36849
  var RESET = "\x1B[0m";
36379
36850
  var RED = "\x1B[31m";
36380
36851
  var YELLOW = "\x1B[33m";
@@ -36383,18 +36854,18 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
36383
36854
  var WARN = `${YELLOW}Warning:${RESET}`;
36384
36855
  var ERROR = `${RED}Error:${RESET}`;
36385
36856
 
36386
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/index.mjs
36857
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/index.mjs
36387
36858
  setFileSystem(new NodeJSFileSystem());
36388
36859
 
36389
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
36860
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
36390
36861
  var import_fs2 = require("fs");
36391
36862
  var import_path8 = require("path");
36392
36863
  var import_typescript110 = __toESM(require("typescript"), 1);
36393
36864
 
36394
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
36865
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
36395
36866
  var import_typescript99 = __toESM(require("typescript"), 1);
36396
36867
 
36397
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
36868
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
36398
36869
  var import_path4 = require("path");
36399
36870
  var import_typescript98 = __toESM(require("typescript"), 1);
36400
36871
  var ImportManager2 = class {
@@ -36578,7 +37049,7 @@ ${text2}`;
36578
37049
  }
36579
37050
  };
36580
37051
 
36581
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
37052
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
36582
37053
  var ChangeTracker = class {
36583
37054
  constructor(_printer, _importRemapper) {
36584
37055
  __publicField(this, "_printer");
@@ -36634,7 +37105,7 @@ function normalizePath(path3) {
36634
37105
  return path3.replace(/\\/g, "/");
36635
37106
  }
36636
37107
 
36637
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
37108
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
36638
37109
  var import_core13 = require("@angular-devkit/core");
36639
37110
  function getProjectTsConfigPaths(tree) {
36640
37111
  return __async(this, null, function* () {
@@ -36714,11 +37185,11 @@ function getWorkspace(tree) {
36714
37185
  });
36715
37186
  }
36716
37187
 
36717
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
37188
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
36718
37189
  var import_path5 = require("path");
36719
37190
  var import_typescript101 = __toESM(require("typescript"), 1);
36720
37191
 
36721
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
37192
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
36722
37193
  var path2 = __toESM(require("path"), 1);
36723
37194
  var import_typescript100 = __toESM(require("typescript"), 1);
36724
37195
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -36735,7 +37206,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
36735
37206
  return import_typescript100.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
36736
37207
  }
36737
37208
 
36738
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
37209
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
36739
37210
  function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
36740
37211
  tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
36741
37212
  const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
@@ -36764,13 +37235,13 @@ function canMigrateFile(basePath, sourceFile, program) {
36764
37235
  return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
36765
37236
  }
36766
37237
 
36767
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
37238
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
36768
37239
  var import_typescript106 = __toESM(require("typescript"), 1);
36769
37240
 
36770
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
37241
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
36771
37242
  var import_typescript103 = __toESM(require("typescript"), 1);
36772
37243
 
36773
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
37244
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
36774
37245
  var import_typescript102 = __toESM(require("typescript"), 1);
36775
37246
  function getImportOfIdentifier(typeChecker, node) {
36776
37247
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -36821,7 +37292,7 @@ function findImportSpecifier(nodes, specifierName) {
36821
37292
  });
36822
37293
  }
36823
37294
 
36824
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
37295
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
36825
37296
  function getCallDecoratorImport(typeChecker, decorator) {
36826
37297
  if (!import_typescript103.default.isCallExpression(decorator.expression) || !import_typescript103.default.isIdentifier(decorator.expression.expression)) {
36827
37298
  return null;
@@ -36830,7 +37301,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
36830
37301
  return getImportOfIdentifier(typeChecker, identifier);
36831
37302
  }
36832
37303
 
36833
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
37304
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
36834
37305
  function getAngularDecorators(typeChecker, decorators) {
36835
37306
  return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
36836
37307
  node,
@@ -36840,7 +37311,7 @@ function getAngularDecorators(typeChecker, decorators) {
36840
37311
  }));
36841
37312
  }
36842
37313
 
36843
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
37314
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
36844
37315
  var import_typescript104 = __toESM(require("typescript"), 1);
36845
37316
  function closestNode(node, predicate) {
36846
37317
  let current = node.parent;
@@ -36853,7 +37324,7 @@ function closestNode(node, predicate) {
36853
37324
  return null;
36854
37325
  }
36855
37326
 
36856
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
37327
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
36857
37328
  var import_path6 = require("path");
36858
37329
  var import_typescript105 = __toESM(require("typescript"), 1);
36859
37330
  var UniqueItemTracker = class {
@@ -37029,7 +37500,7 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
37029
37500
  }));
37030
37501
  }
37031
37502
 
37032
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
37503
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
37033
37504
  function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
37034
37505
  const filesToRemove = /* @__PURE__ */ new Set();
37035
37506
  const tracker = new ChangeTracker(printer, importRemapper);
@@ -37228,14 +37699,14 @@ function findNgModuleDecorator(node, typeChecker) {
37228
37699
  return decorators.find((decorator) => decorator.name === "NgModule") || null;
37229
37700
  }
37230
37701
 
37231
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
37702
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
37232
37703
  var import_path7 = require("path");
37233
37704
  var import_typescript109 = __toESM(require("typescript"), 1);
37234
37705
 
37235
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
37706
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
37236
37707
  var import_typescript108 = __toESM(require("typescript"), 1);
37237
37708
 
37238
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
37709
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
37239
37710
  var import_typescript107 = __toESM(require("typescript"), 1);
37240
37711
  function isReferenceToImport(typeChecker, node, importSpecifier) {
37241
37712
  var _a2, _b;
@@ -37244,7 +37715,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
37244
37715
  return !!(((_a2 = nodeSymbol == null ? void 0 : nodeSymbol.declarations) == null ? void 0 : _a2[0]) && ((_b = importSymbol == null ? void 0 : importSymbol.declarations) == null ? void 0 : _b[0])) && nodeSymbol.declarations[0] === importSymbol.declarations[0];
37245
37716
  }
37246
37717
 
37247
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
37718
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
37248
37719
  function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
37249
37720
  const templateTypeChecker = program.compiler.getTemplateTypeChecker();
37250
37721
  const typeChecker = program.getTsProgram().getTypeChecker();
@@ -37607,7 +38078,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
37607
38078
  return metadata != null && metadata.isStandalone;
37608
38079
  }
37609
38080
 
37610
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
38081
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
37611
38082
  function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
37612
38083
  const tracker = new ChangeTracker(printer, importRemapper);
37613
38084
  const typeChecker = program.getTsProgram().getTypeChecker();
@@ -37984,7 +38455,7 @@ function hasImport(program, rootFileNames, moduleName) {
37984
38455
  return false;
37985
38456
  }
37986
38457
 
37987
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
38458
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
37988
38459
  var MigrationMode;
37989
38460
  (function(MigrationMode2) {
37990
38461
  MigrationMode2["toStandalone"] = "convert-to-standalone";