@angular/core 18.0.1 → 18.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/esm2022/primitives/event-dispatch/index.mjs +2 -1
  2. package/esm2022/primitives/event-dispatch/src/dispatcher.mjs +4 -3
  3. package/esm2022/primitives/event-dispatch/src/event_dispatcher.mjs +4 -6
  4. package/esm2022/primitives/event-dispatch/src/event_type.mjs +2 -2
  5. package/esm2022/primitives/signals/src/graph.mjs +6 -5
  6. package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +2 -4
  7. package/esm2022/src/core_private_export.mjs +2 -2
  8. package/esm2022/src/event_delegation_utils.mjs +68 -0
  9. package/esm2022/src/hydration/annotate.mjs +18 -7
  10. package/esm2022/src/hydration/api.mjs +2 -2
  11. package/esm2022/src/hydration/event_replay.mjs +46 -69
  12. package/esm2022/src/hydration/tokens.mjs +6 -1
  13. package/esm2022/src/render3/component_ref.mjs +1 -1
  14. package/esm2022/src/render3/instructions/listener.mjs +5 -5
  15. package/esm2022/src/render3/instructions/shared.mjs +3 -3
  16. package/esm2022/src/version.mjs +1 -1
  17. package/esm2022/testing/src/logger.mjs +3 -3
  18. package/fesm2022/core.mjs +133 -86
  19. package/fesm2022/core.mjs.map +1 -1
  20. package/fesm2022/primitives/event-dispatch.mjs +9 -10
  21. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  22. package/fesm2022/primitives/signals.mjs +6 -5
  23. package/fesm2022/primitives/signals.mjs.map +1 -1
  24. package/fesm2022/rxjs-interop.mjs +1 -1
  25. package/fesm2022/testing.mjs +1 -1
  26. package/index.d.ts +7 -1
  27. package/package.json +2 -2
  28. package/primitives/event-dispatch/index.d.ts +66 -1
  29. package/primitives/signals/index.d.ts +1 -1
  30. package/rxjs-interop/index.d.ts +1 -1
  31. package/schematics/migrations/http-providers/bundle.js +25 -17
  32. package/schematics/migrations/http-providers/bundle.js.map +2 -2
  33. package/schematics/migrations/invalid-two-way-bindings/bundle.js +334 -165
  34. package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +3 -3
  35. package/schematics/ng-generate/control-flow-migration/bundle.js +357 -181
  36. package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
  37. package/schematics/ng-generate/standalone-migration/bundle.js +807 -494
  38. package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
  39. package/testing/index.d.ts +1 -1
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
63
63
  });
64
64
  };
65
65
 
66
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/index.mjs
66
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/index.mjs
67
67
  var control_flow_migration_exports = {};
68
68
  __export(control_flow_migration_exports, {
69
69
  default: () => control_flow_migration_default
@@ -72,22 +72,22 @@ module.exports = __toCommonJS(control_flow_migration_exports);
72
72
  var import_schematics = require("@angular-devkit/schematics");
73
73
  var import_path3 = require("path");
74
74
 
75
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
75
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
76
76
  var import_typescript2 = __toESM(require("typescript"), 1);
77
77
 
78
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
78
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
79
79
  var import_typescript = __toESM(require("typescript"), 1);
80
80
 
81
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
81
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
82
82
  function normalizePath(path2) {
83
83
  return path2.replace(/\\/g, "/");
84
84
  }
85
85
 
86
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
86
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
87
87
  var import_path = require("path");
88
88
  var import_typescript4 = __toESM(require("typescript"), 1);
89
89
 
90
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
90
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
91
91
  var path = __toESM(require("path"), 1);
92
92
  var import_typescript3 = __toESM(require("typescript"), 1);
93
93
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -104,7 +104,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
104
104
  return import_typescript3.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
105
105
  }
106
106
 
107
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
107
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
108
108
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
109
109
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
110
110
  return import_typescript4.default.createProgram(rootNames, options, host);
@@ -137,7 +137,7 @@ function canMigrateFile(basePath, sourceFile, program) {
137
137
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
138
138
  }
139
139
 
140
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/selector.mjs
140
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/selector.mjs
141
141
  var _SELECTOR_REGEXP = new RegExp(
142
142
  `(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
143
143
  "g"
@@ -445,7 +445,7 @@ var SelectorContext = class {
445
445
  }
446
446
  };
447
447
 
448
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/core.mjs
448
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/core.mjs
449
449
  var ViewEncapsulation;
450
450
  (function(ViewEncapsulation2) {
451
451
  ViewEncapsulation2[ViewEncapsulation2["Emulated"] = 0] = "Emulated";
@@ -513,7 +513,7 @@ function parseSelectorToR3Selector(selector) {
513
513
  return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
514
514
  }
515
515
 
516
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
516
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
517
517
  var textEncoder;
518
518
  function computeDigest(message) {
519
519
  return sha1(serializeNodes(message.nodes).join("") + `[${message.meaning}]`);
@@ -753,7 +753,7 @@ function wordAt(bytes, index, endian) {
753
753
  return word;
754
754
  }
755
755
 
756
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
756
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
757
757
  var TypeModifier;
758
758
  (function(TypeModifier2) {
759
759
  TypeModifier2[TypeModifier2["None"] = 0] = "None";
@@ -1691,7 +1691,7 @@ function serializeTags(tags) {
1691
1691
  return out;
1692
1692
  }
1693
1693
 
1694
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/constant_pool.mjs
1694
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
1695
1695
  var CONSTANT_PREFIX = "_c";
1696
1696
  var UNKNOWN_VALUE_KEY = variable("<unknown>");
1697
1697
  var KEY_CONTEXT = {};
@@ -1879,7 +1879,7 @@ function isLongStringLiteral(expr) {
1879
1879
  return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
1880
1880
  }
1881
1881
 
1882
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
1882
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
1883
1883
  var CORE = "@angular/core";
1884
1884
  var _Identifiers = class {
1885
1885
  };
@@ -2767,7 +2767,7 @@ var Identifiers = _Identifiers;
2767
2767
  _Identifiers.unwrapWritableSignal = { name: "\u0275unwrapWritableSignal", moduleName: CORE };
2768
2768
  })();
2769
2769
 
2770
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/util.mjs
2770
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
2771
2771
  var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
2772
2772
  function dashCaseToCamelCase(input) {
2773
2773
  return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
@@ -2844,7 +2844,7 @@ var Version = class {
2844
2844
  };
2845
2845
  var _global = globalThis;
2846
2846
 
2847
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/source_map.mjs
2847
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
2848
2848
  var VERSION = 3;
2849
2849
  var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
2850
2850
  var SourceMapGenerator = class {
@@ -2973,7 +2973,7 @@ function toBase64Digit(value) {
2973
2973
  return B64_DIGITS[value];
2974
2974
  }
2975
2975
 
2976
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
2976
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
2977
2977
  var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
2978
2978
  var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
2979
2979
  var _INDENT_WITH = " ";
@@ -3461,7 +3461,7 @@ function _createIndent(count) {
3461
3461
  return res;
3462
3462
  }
3463
3463
 
3464
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/util.mjs
3464
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
3465
3465
  function typeWithParameters(type, numParams) {
3466
3466
  if (numParams === 0) {
3467
3467
  return expressionType(type);
@@ -3516,7 +3516,7 @@ function generateForwardRef(expr) {
3516
3516
  return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
3517
3517
  }
3518
3518
 
3519
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
3519
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
3520
3520
  var R3FactoryDelegateType;
3521
3521
  (function(R3FactoryDelegateType2) {
3522
3522
  R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
@@ -3661,7 +3661,7 @@ function getInjectFn(target) {
3661
3661
  }
3662
3662
  }
3663
3663
 
3664
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
3664
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
3665
3665
  var ParserError = class {
3666
3666
  constructor(message, input, errLocation, ctxLocation) {
3667
3667
  this.input = input;
@@ -4099,7 +4099,7 @@ var BoundElementProperty = class {
4099
4099
  }
4100
4100
  };
4101
4101
 
4102
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
4102
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
4103
4103
  var TagContentType;
4104
4104
  (function(TagContentType2) {
4105
4105
  TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
@@ -4136,7 +4136,7 @@ function mergeNsAndName(prefix, localName) {
4136
4136
  return prefix ? `:${prefix}:${localName}` : localName;
4137
4137
  }
4138
4138
 
4139
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
4139
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
4140
4140
  var Comment = class {
4141
4141
  constructor(value, sourceSpan) {
4142
4142
  this.value = value;
@@ -4434,6 +4434,18 @@ var UnknownBlock = class {
4434
4434
  return visitor.visitUnknownBlock(this);
4435
4435
  }
4436
4436
  };
4437
+ var LetDeclaration = class {
4438
+ constructor(name, value, sourceSpan, nameSpan, valueSpan) {
4439
+ this.name = name;
4440
+ this.value = value;
4441
+ this.sourceSpan = sourceSpan;
4442
+ this.nameSpan = nameSpan;
4443
+ this.valueSpan = valueSpan;
4444
+ }
4445
+ visit(visitor) {
4446
+ return visitor.visitLetDeclaration(this);
4447
+ }
4448
+ };
4437
4449
  var Template = class {
4438
4450
  constructor(tagName, attributes, inputs, outputs, templateAttrs, children, references, variables, sourceSpan, startSourceSpan, endSourceSpan, i18n2) {
4439
4451
  this.tagName = tagName;
@@ -4518,7 +4530,7 @@ function visitAll(visitor, nodes) {
4518
4530
  return result;
4519
4531
  }
4520
4532
 
4521
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
4533
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
4522
4534
  var Message = class {
4523
4535
  constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
4524
4536
  this.nodes = nodes;
@@ -4658,7 +4670,7 @@ var LocalizeMessageStringVisitor = class {
4658
4670
  }
4659
4671
  };
4660
4672
 
4661
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
4673
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
4662
4674
  var _Visitor = class {
4663
4675
  visitTag(tag) {
4664
4676
  const strAttrs = this._serializeAttributes(tag.attrs);
@@ -4686,12 +4698,12 @@ ${doctype.dtd}
4686
4698
  };
4687
4699
  var _visitor = new _Visitor();
4688
4700
 
4689
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
4701
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
4690
4702
  function toPublicName(internalName) {
4691
4703
  return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
4692
4704
  }
4693
4705
 
4694
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
4706
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
4695
4707
  var I18N_ATTR = "i18n";
4696
4708
  var I18N_ATTR_PREFIX = "i18n-";
4697
4709
  var I18N_ICU_VAR_PREFIX = "VAR_";
@@ -4731,7 +4743,7 @@ function formatI18nPlaceholderName(name, useCamelCase = true) {
4731
4743
  return postfix ? `${raw}_${postfix}` : raw;
4732
4744
  }
4733
4745
 
4734
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
4746
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
4735
4747
  var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
4736
4748
  var TEMPORARY_NAME = "_t";
4737
4749
  var CONTEXT_NAME = "ctx";
@@ -4858,7 +4870,7 @@ function getAttrsForDirectiveMatching(elOrTpl) {
4858
4870
  return attributesMap;
4859
4871
  }
4860
4872
 
4861
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
4873
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
4862
4874
  function compileInjectable(meta, resolveForwardRefs) {
4863
4875
  let result = null;
4864
4876
  const factoryMeta = {
@@ -4945,7 +4957,7 @@ function createFactoryFunction(type) {
4945
4957
  return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
4946
4958
  }
4947
4959
 
4948
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
4960
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
4949
4961
  var UNUSABLE_INTERPOLATION_REGEXPS = [
4950
4962
  /@/,
4951
4963
  /^\s*$/,
@@ -4968,7 +4980,7 @@ function assertInterpolationSymbols(identifier, value) {
4968
4980
  }
4969
4981
  }
4970
4982
 
4971
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
4983
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
4972
4984
  var InterpolationConfig = class {
4973
4985
  static fromArray(markers) {
4974
4986
  if (!markers) {
@@ -4985,7 +4997,7 @@ var InterpolationConfig = class {
4985
4997
  var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
4986
4998
  var DEFAULT_CONTAINER_BLOCKS = /* @__PURE__ */ new Set(["switch"]);
4987
4999
 
4988
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/chars.mjs
5000
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
4989
5001
  var $EOF = 0;
4990
5002
  var $BSPACE = 8;
4991
5003
  var $TAB = 9;
@@ -5067,7 +5079,7 @@ function isQuote(code) {
5067
5079
  return code === $SQ || code === $DQ || code === $BT;
5068
5080
  }
5069
5081
 
5070
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/parse_util.mjs
5082
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
5071
5083
  var ParseLocation = class {
5072
5084
  constructor(file, offset, line, col) {
5073
5085
  this.file = file;
@@ -5214,7 +5226,7 @@ function sanitizeIdentifier(name) {
5214
5226
  return name.replace(/\W/g, "_");
5215
5227
  }
5216
5228
 
5217
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
5229
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
5218
5230
  var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
5219
5231
  var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
5220
5232
  constructor() {
@@ -5307,7 +5319,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
5307
5319
  }
5308
5320
  };
5309
5321
 
5310
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
5322
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
5311
5323
  var policy;
5312
5324
  function getPolicy() {
5313
5325
  if (policy === void 0) {
@@ -5345,7 +5357,7 @@ function newTrustedFunctionForJIT(...args) {
5345
5357
  return fn2.bind(_global);
5346
5358
  }
5347
5359
 
5348
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
5360
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
5349
5361
  var JitEvaluator = class {
5350
5362
  evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
5351
5363
  const converter = new JitEmitterVisitor(refResolver);
@@ -5433,7 +5445,7 @@ function isUseStrictStatement(statement) {
5433
5445
  return statement.isEquivalent(literal("use strict").toStmt());
5434
5446
  }
5435
5447
 
5436
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
5448
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
5437
5449
  function compileInjector(meta) {
5438
5450
  const definitionMap = new DefinitionMap();
5439
5451
  if (meta.providers !== null) {
@@ -5450,7 +5462,7 @@ function createInjectorType(meta) {
5450
5462
  return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
5451
5463
  }
5452
5464
 
5453
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
5465
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
5454
5466
  var R3JitReflector = class {
5455
5467
  constructor(context) {
5456
5468
  this.context = context;
@@ -5466,7 +5478,7 @@ var R3JitReflector = class {
5466
5478
  }
5467
5479
  };
5468
5480
 
5469
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
5481
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
5470
5482
  var R3SelectorScopeMode;
5471
5483
  (function(R3SelectorScopeMode2) {
5472
5484
  R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
@@ -5601,7 +5613,7 @@ function tupleOfTypes(types) {
5601
5613
  return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
5602
5614
  }
5603
5615
 
5604
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
5616
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
5605
5617
  function compilePipeFromMetadata(metadata) {
5606
5618
  const definitionMapValues = [];
5607
5619
  definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
@@ -5622,7 +5634,7 @@ function createPipeType(metadata) {
5622
5634
  ]));
5623
5635
  }
5624
5636
 
5625
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
5637
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
5626
5638
  var R3TemplateDependencyKind;
5627
5639
  (function(R3TemplateDependencyKind2) {
5628
5640
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
@@ -5630,7 +5642,7 @@ var R3TemplateDependencyKind;
5630
5642
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
5631
5643
  })(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
5632
5644
 
5633
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/shadow_css.mjs
5645
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
5634
5646
  var animationKeywords = /* @__PURE__ */ new Set([
5635
5647
  "inherit",
5636
5648
  "initial",
@@ -6110,7 +6122,7 @@ function repeatGroups(groups, multiples) {
6110
6122
  }
6111
6123
  }
6112
6124
 
6113
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
6125
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
6114
6126
  var OpKind;
6115
6127
  (function(OpKind2) {
6116
6128
  OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
@@ -6264,7 +6276,7 @@ var TemplateKind;
6264
6276
  TemplateKind2[TemplateKind2["Block"] = 2] = "Block";
6265
6277
  })(TemplateKind || (TemplateKind = {}));
6266
6278
 
6267
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
6279
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
6268
6280
  var ConsumesSlot = Symbol("ConsumesSlot");
6269
6281
  var DependsOnSlotContext = Symbol("DependsOnSlotContext");
6270
6282
  var ConsumesVarsTrait = Symbol("ConsumesVars");
@@ -6292,7 +6304,7 @@ function hasUsesVarOffsetTrait(expr) {
6292
6304
  return expr[UsesVarOffset] === true;
6293
6305
  }
6294
6306
 
6295
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
6307
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
6296
6308
  function createStatementOp(statement) {
6297
6309
  return __spreadValues({
6298
6310
  kind: OpKind.Statement,
@@ -6314,7 +6326,7 @@ var NEW_OP = {
6314
6326
  next: null
6315
6327
  };
6316
6328
 
6317
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
6329
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
6318
6330
  function createInterpolateTextOp(xref, interpolation, sourceSpan) {
6319
6331
  return __spreadValues(__spreadValues(__spreadValues({
6320
6332
  kind: OpKind.InterpolateText,
@@ -6494,7 +6506,7 @@ function createI18nApplyOp(owner, handle, sourceSpan) {
6494
6506
  }, NEW_OP);
6495
6507
  }
6496
6508
 
6497
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
6509
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
6498
6510
  var _a;
6499
6511
  var _b;
6500
6512
  var _c;
@@ -7356,7 +7368,7 @@ function isStringLiteral(expr) {
7356
7368
  return expr instanceof LiteralExpr && typeof expr.value === "string";
7357
7369
  }
7358
7370
 
7359
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
7371
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
7360
7372
  var _OpList = class {
7361
7373
  constructor() {
7362
7374
  this.debugListId = _OpList.nextListId++;
@@ -7547,14 +7559,14 @@ var OpList = _OpList;
7547
7559
  _OpList.nextListId = 0;
7548
7560
  })();
7549
7561
 
7550
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
7562
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
7551
7563
  var SlotHandle = class {
7552
7564
  constructor() {
7553
7565
  this.slot = null;
7554
7566
  }
7555
7567
  };
7556
7568
 
7557
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
7569
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
7558
7570
  var elementContainerOpKinds = /* @__PURE__ */ new Set([
7559
7571
  OpKind.Element,
7560
7572
  OpKind.ElementStart,
@@ -7858,7 +7870,7 @@ function createI18nAttributesOp(xref, handle, target) {
7858
7870
  }, NEW_OP), TRAIT_CONSUMES_SLOT);
7859
7871
  }
7860
7872
 
7861
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
7873
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
7862
7874
  function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext, securityContext, sourceSpan) {
7863
7875
  return __spreadValues(__spreadValues({
7864
7876
  kind: OpKind.HostProperty,
@@ -7872,10 +7884,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext,
7872
7884
  }, TRAIT_CONSUMES_VARS), NEW_OP);
7873
7885
  }
7874
7886
 
7875
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
7887
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
7876
7888
  var CTX_REF = "CTX_REF_MARKER";
7877
7889
 
7878
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
7890
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
7879
7891
  var CompilationJobKind;
7880
7892
  (function(CompilationJobKind2) {
7881
7893
  CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
@@ -7983,7 +7995,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
7983
7995
  }
7984
7996
  };
7985
7997
 
7986
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
7998
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
7987
7999
  function deleteAnyCasts(job) {
7988
8000
  for (const unit of job.units) {
7989
8001
  for (const op of unit.ops()) {
@@ -8001,7 +8013,7 @@ function removeAnys(e) {
8001
8013
  return e;
8002
8014
  }
8003
8015
 
8004
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
8016
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
8005
8017
  function applyI18nExpressions(job) {
8006
8018
  const i18nContexts = /* @__PURE__ */ new Map();
8007
8019
  for (const unit of job.units) {
@@ -8044,7 +8056,7 @@ function needsApplication(i18nContexts, op) {
8044
8056
  return false;
8045
8057
  }
8046
8058
 
8047
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
8059
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
8048
8060
  function assignI18nSlotDependencies(job) {
8049
8061
  for (const unit of job.units) {
8050
8062
  let updateOp = unit.update.head;
@@ -8089,7 +8101,7 @@ function assignI18nSlotDependencies(job) {
8089
8101
  }
8090
8102
  }
8091
8103
 
8092
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
8104
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
8093
8105
  function createOpXrefMap(unit) {
8094
8106
  const map = /* @__PURE__ */ new Map();
8095
8107
  for (const op of unit.create) {
@@ -8104,7 +8116,7 @@ function createOpXrefMap(unit) {
8104
8116
  return map;
8105
8117
  }
8106
8118
 
8107
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
8119
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
8108
8120
  function extractAttributes(job) {
8109
8121
  for (const unit of job.units) {
8110
8122
  const elements = createOpXrefMap(unit);
@@ -8233,7 +8245,7 @@ function extractAttributeOp(unit, op, elements) {
8233
8245
  }
8234
8246
  }
8235
8247
 
8236
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
8248
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
8237
8249
  function lookupElement2(elements, xref) {
8238
8250
  const el = elements.get(xref);
8239
8251
  if (el === void 0) {
@@ -8290,7 +8302,7 @@ function specializeBindings(job) {
8290
8302
  }
8291
8303
  }
8292
8304
 
8293
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
8305
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
8294
8306
  var CHAINABLE = /* @__PURE__ */ new Set([
8295
8307
  Identifiers.attribute,
8296
8308
  Identifiers.classProp,
@@ -8358,7 +8370,7 @@ function chainOperationsInList(opList) {
8358
8370
  }
8359
8371
  }
8360
8372
 
8361
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
8373
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
8362
8374
  function collapseSingletonInterpolations(job) {
8363
8375
  for (const unit of job.units) {
8364
8376
  for (const op of unit.update) {
@@ -8370,7 +8382,7 @@ function collapseSingletonInterpolations(job) {
8370
8382
  }
8371
8383
  }
8372
8384
 
8373
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
8385
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
8374
8386
  function generateConditionalExpressions(job) {
8375
8387
  for (const unit of job.units) {
8376
8388
  for (const op of unit.ops()) {
@@ -8407,7 +8419,7 @@ function generateConditionalExpressions(job) {
8407
8419
  }
8408
8420
  }
8409
8421
 
8410
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
8422
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
8411
8423
  var BINARY_OPERATORS = /* @__PURE__ */ new Map([
8412
8424
  ["&&", BinaryOperator.And],
8413
8425
  [">", BinaryOperator.Bigger],
@@ -8464,7 +8476,7 @@ function literalOrArrayLiteral(value) {
8464
8476
  return literal(value);
8465
8477
  }
8466
8478
 
8467
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
8479
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
8468
8480
  function collectElementConsts(job) {
8469
8481
  const allElementAttributes = /* @__PURE__ */ new Map();
8470
8482
  for (const unit of job.units) {
@@ -8633,7 +8645,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
8633
8645
  return literalArr(attrArray);
8634
8646
  }
8635
8647
 
8636
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
8648
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
8637
8649
  function convertI18nBindings(job) {
8638
8650
  const i18nAttributesByElem = /* @__PURE__ */ new Map();
8639
8651
  for (const unit of job.units) {
@@ -8674,7 +8686,7 @@ function convertI18nBindings(job) {
8674
8686
  }
8675
8687
  }
8676
8688
 
8677
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_defer_deps_fns.mjs
8689
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_defer_deps_fns.mjs
8678
8690
  function resolveDeferDepsFns(job) {
8679
8691
  var _a2;
8680
8692
  for (const unit of job.units) {
@@ -8699,7 +8711,7 @@ function resolveDeferDepsFns(job) {
8699
8711
  }
8700
8712
  }
8701
8713
 
8702
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
8714
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
8703
8715
  function createI18nContexts(job) {
8704
8716
  const attrContextByMessage = /* @__PURE__ */ new Map();
8705
8717
  for (const unit of job.units) {
@@ -8777,7 +8789,7 @@ function createI18nContexts(job) {
8777
8789
  }
8778
8790
  }
8779
8791
 
8780
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
8792
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
8781
8793
  function deduplicateTextBindings(job) {
8782
8794
  const seen = /* @__PURE__ */ new Map();
8783
8795
  for (const unit of job.units) {
@@ -8799,7 +8811,7 @@ function deduplicateTextBindings(job) {
8799
8811
  }
8800
8812
  }
8801
8813
 
8802
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
8814
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
8803
8815
  function configureDeferInstructions(job) {
8804
8816
  for (const unit of job.units) {
8805
8817
  for (const op of unit.create) {
@@ -8816,7 +8828,7 @@ function configureDeferInstructions(job) {
8816
8828
  }
8817
8829
  }
8818
8830
 
8819
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
8831
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
8820
8832
  function resolveDeferTargetNames(job) {
8821
8833
  const scopes = /* @__PURE__ */ new Map();
8822
8834
  function getScopeForView2(view) {
@@ -8910,7 +8922,7 @@ var Scope = class {
8910
8922
  }
8911
8923
  };
8912
8924
 
8913
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
8925
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
8914
8926
  var REPLACEMENTS = /* @__PURE__ */ new Map([
8915
8927
  [OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
8916
8928
  [OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
@@ -8937,7 +8949,7 @@ function collapseEmptyInstructions(job) {
8937
8949
  }
8938
8950
  }
8939
8951
 
8940
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
8952
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
8941
8953
  function expandSafeReads(job) {
8942
8954
  for (const unit of job.units) {
8943
8955
  for (const op of unit.ops()) {
@@ -9073,7 +9085,7 @@ function ternaryTransform(e) {
9073
9085
  return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
9074
9086
  }
9075
9087
 
9076
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
9088
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
9077
9089
  var ESCAPE = "\uFFFD";
9078
9090
  var ELEMENT_MARKER = "#";
9079
9091
  var TEMPLATE_MARKER = "*";
@@ -9209,7 +9221,7 @@ function formatValue(value) {
9209
9221
  return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
9210
9222
  }
9211
9223
 
9212
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
9224
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
9213
9225
  function generateAdvance(job) {
9214
9226
  for (const unit of job.units) {
9215
9227
  const slotMap = /* @__PURE__ */ new Map();
@@ -9241,7 +9253,7 @@ function generateAdvance(job) {
9241
9253
  }
9242
9254
  }
9243
9255
 
9244
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
9256
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
9245
9257
  function generateProjectionDefs(job) {
9246
9258
  const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
9247
9259
  const selectors = [];
@@ -9265,7 +9277,7 @@ function generateProjectionDefs(job) {
9265
9277
  }
9266
9278
  }
9267
9279
 
9268
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
9280
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
9269
9281
  function generateVariables(job) {
9270
9282
  recursivelyProcessView(job.root, null);
9271
9283
  }
@@ -9364,7 +9376,7 @@ function generateVariablesInScopeForView(view, scope) {
9364
9376
  return newOps;
9365
9377
  }
9366
9378
 
9367
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
9379
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
9368
9380
  function collectConstExpressions(job) {
9369
9381
  for (const unit of job.units) {
9370
9382
  for (const op of unit.ops()) {
@@ -9378,7 +9390,7 @@ function collectConstExpressions(job) {
9378
9390
  }
9379
9391
  }
9380
9392
 
9381
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
9393
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
9382
9394
  var STYLE_DOT = "style.";
9383
9395
  var CLASS_DOT = "class.";
9384
9396
  var STYLE_BANG = "style!";
@@ -9436,7 +9448,7 @@ function parseProperty(name) {
9436
9448
  return { property: property2, suffix };
9437
9449
  }
9438
9450
 
9439
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/map_util.mjs
9451
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
9440
9452
  function mapLiteral(obj, quoted = false) {
9441
9453
  return literalMap(Object.keys(obj).map((key) => ({
9442
9454
  key,
@@ -9445,7 +9457,7 @@ function mapLiteral(obj, quoted = false) {
9445
9457
  })));
9446
9458
  }
9447
9459
 
9448
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
9460
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
9449
9461
  var IcuSerializerVisitor = class {
9450
9462
  visitText(text2) {
9451
9463
  return text2.value;
@@ -9479,7 +9491,7 @@ function serializeIcuNode(icu) {
9479
9491
  return icu.visit(serializer);
9480
9492
  }
9481
9493
 
9482
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
9494
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
9483
9495
  var TokenType;
9484
9496
  (function(TokenType2) {
9485
9497
  TokenType2[TokenType2["Character"] = 0] = "Character";
@@ -9840,7 +9852,7 @@ function parseIntAutoRadix(text2) {
9840
9852
  return result;
9841
9853
  }
9842
9854
 
9843
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
9855
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
9844
9856
  var SplitInterpolation = class {
9845
9857
  constructor(strings, expressions, offsets) {
9846
9858
  this.strings = strings;
@@ -10722,7 +10734,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
10722
10734
  return offsetMap;
10723
10735
  }
10724
10736
 
10725
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
10737
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
10726
10738
  var NodeWithI18n = class {
10727
10739
  constructor(sourceSpan, i18n2) {
10728
10740
  this.sourceSpan = sourceSpan;
@@ -10821,6 +10833,18 @@ var BlockParameter = class {
10821
10833
  return visitor.visitBlockParameter(this, context);
10822
10834
  }
10823
10835
  };
10836
+ var LetDeclaration2 = class {
10837
+ constructor(name, value, sourceSpan, nameSpan, valueSpan) {
10838
+ this.name = name;
10839
+ this.value = value;
10840
+ this.sourceSpan = sourceSpan;
10841
+ this.nameSpan = nameSpan;
10842
+ this.valueSpan = valueSpan;
10843
+ }
10844
+ visit(visitor, context) {
10845
+ return visitor.visitLetDeclaration(this, context);
10846
+ }
10847
+ };
10824
10848
  function visitAll2(visitor, nodes, context = null) {
10825
10849
  const result = [];
10826
10850
  const visit = visitor.visit ? (ast) => visitor.visit(ast, context) || ast.visit(visitor, context) : (ast) => ast.visit(visitor, context);
@@ -10862,6 +10886,8 @@ var RecursiveVisitor = class {
10862
10886
  }
10863
10887
  visitBlockParameter(ast, context) {
10864
10888
  }
10889
+ visitLetDeclaration(decl, context) {
10890
+ }
10865
10891
  visitChildren(context, cb) {
10866
10892
  let results = [];
10867
10893
  let t = this;
@@ -10874,7 +10900,7 @@ var RecursiveVisitor = class {
10874
10900
  }
10875
10901
  };
10876
10902
 
10877
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
10903
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
10878
10904
  var _SECURITY_SCHEMA;
10879
10905
  function SECURITY_SCHEMA() {
10880
10906
  if (!_SECURITY_SCHEMA) {
@@ -10935,11 +10961,11 @@ function isIframeSecuritySensitiveAttr(attrName) {
10935
10961
  return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
10936
10962
  }
10937
10963
 
10938
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
10964
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
10939
10965
  var ElementSchemaRegistry = class {
10940
10966
  };
10941
10967
 
10942
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
10968
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
10943
10969
  var BOOLEAN = "boolean";
10944
10970
  var NUMBER = "number";
10945
10971
  var STRING = "string";
@@ -11322,7 +11348,7 @@ function _isPixelDimensionStyle(prop) {
11322
11348
  }
11323
11349
  }
11324
11350
 
11325
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
11351
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
11326
11352
  var HtmlTagDefinition = class {
11327
11353
  constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
11328
11354
  this.closedByChildren = {};
@@ -11458,7 +11484,7 @@ function getHtmlTagDefinition(tagName) {
11458
11484
  return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
11459
11485
  }
11460
11486
 
11461
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
11487
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
11462
11488
  var TAG_TO_PLACEHOLDER_NAMES = {
11463
11489
  "A": "LINK",
11464
11490
  "B": "BOLD_TEXT",
@@ -11580,7 +11606,7 @@ var PlaceholderRegistry = class {
11580
11606
  }
11581
11607
  };
11582
11608
 
11583
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
11609
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
11584
11610
  var _expParser = new Parser(new Lexer());
11585
11611
  function createI18nMessageFactory(interpolationConfig, containerBlocks) {
11586
11612
  const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);
@@ -11690,6 +11716,9 @@ var _I18nVisitor = class {
11690
11716
  visitBlockParameter(_parameter, _context) {
11691
11717
  throw new Error("Unreachable code");
11692
11718
  }
11719
+ visitLetDeclaration(decl, context) {
11720
+ return null;
11721
+ }
11693
11722
  _visitTextWithInterpolation(tokens, sourceSpan, context, previousI18n) {
11694
11723
  const nodes = [];
11695
11724
  let hasInterpolation = false;
@@ -11759,14 +11788,14 @@ function extractPlaceholderName(input) {
11759
11788
  return input.split(_CUSTOM_PH_EXP)[2];
11760
11789
  }
11761
11790
 
11762
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
11791
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
11763
11792
  var I18nError = class extends ParseError {
11764
11793
  constructor(span, msg) {
11765
11794
  super(span, msg);
11766
11795
  }
11767
11796
  };
11768
11797
 
11769
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
11798
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
11770
11799
  var NAMED_ENTITIES = {
11771
11800
  "AElig": "\xC6",
11772
11801
  "AMP": "&",
@@ -13897,7 +13926,7 @@ var NAMED_ENTITIES = {
13897
13926
  var NGSP_UNICODE = "\uE500";
13898
13927
  NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
13899
13928
 
13900
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
13929
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
13901
13930
  var TokenError = class extends ParseError {
13902
13931
  constructor(errorMsg, tokenType, span) {
13903
13932
  super(span, errorMsg);
@@ -13961,6 +13990,7 @@ var _Tokenizer = class {
13961
13990
  this._preserveLineEndings = options.preserveLineEndings || false;
13962
13991
  this._i18nNormalizeLineEndingsInICUs = options.i18nNormalizeLineEndingsInICUs || false;
13963
13992
  this._tokenizeBlocks = (_a2 = options.tokenizeBlocks) != null ? _a2 : true;
13993
+ this._tokenizeLet = options.tokenizeLet || false;
13964
13994
  try {
13965
13995
  this._cursor.init();
13966
13996
  } catch (e) {
@@ -13991,6 +14021,8 @@ var _Tokenizer = class {
13991
14021
  } else {
13992
14022
  this._consumeTagOpen(start);
13993
14023
  }
14024
+ } else if (this._tokenizeLet && this._cursor.peek() === $AT && !this._inInterpolation && this._attemptStr("@let")) {
14025
+ this._consumeLetDeclaration(start);
13994
14026
  } else if (this._tokenizeBlocks && this._attemptCharCode($AT)) {
13995
14027
  this._consumeBlockStart(start);
13996
14028
  } else if (this._tokenizeBlocks && !this._inInterpolation && !this._isInExpansionCase() && !this._isInExpansionForm() && this._attemptCharCode($RBRACE)) {
@@ -14002,7 +14034,7 @@ var _Tokenizer = class {
14002
14034
  this.handleError(e);
14003
14035
  }
14004
14036
  }
14005
- this._beginToken(29);
14037
+ this._beginToken(33);
14006
14038
  this._endToken([]);
14007
14039
  }
14008
14040
  _getBlockName() {
@@ -14075,6 +14107,67 @@ var _Tokenizer = class {
14075
14107
  this._attemptCharCodeUntilFn(isBlockParameterChar);
14076
14108
  }
14077
14109
  }
14110
+ _consumeLetDeclaration(start) {
14111
+ this._beginToken(29, start);
14112
+ if (isWhitespace(this._cursor.peek())) {
14113
+ this._attemptCharCodeUntilFn(isNotWhitespace);
14114
+ } else {
14115
+ const token = this._endToken([this._cursor.getChars(start)]);
14116
+ token.type = 32;
14117
+ return;
14118
+ }
14119
+ const startToken = this._endToken([this._getLetDeclarationName()]);
14120
+ this._attemptCharCodeUntilFn(isNotWhitespace);
14121
+ if (!this._attemptCharCode($EQ)) {
14122
+ startToken.type = 32;
14123
+ return;
14124
+ }
14125
+ this._attemptCharCodeUntilFn((code) => isNotWhitespace(code) && !isNewLine(code));
14126
+ this._consumeLetDeclarationValue();
14127
+ const endChar = this._cursor.peek();
14128
+ if (endChar === $SEMICOLON) {
14129
+ this._beginToken(31);
14130
+ this._endToken([]);
14131
+ this._cursor.advance();
14132
+ } else {
14133
+ startToken.type = 32;
14134
+ startToken.sourceSpan = this._cursor.getSpan(start);
14135
+ }
14136
+ }
14137
+ _getLetDeclarationName() {
14138
+ const nameCursor = this._cursor.clone();
14139
+ let allowDigit = false;
14140
+ this._attemptCharCodeUntilFn((code) => {
14141
+ if (isAsciiLetter(code) || code === $_ || allowDigit && isDigit(code)) {
14142
+ allowDigit = true;
14143
+ return false;
14144
+ }
14145
+ return true;
14146
+ });
14147
+ return this._cursor.getChars(nameCursor).trim();
14148
+ }
14149
+ _consumeLetDeclarationValue() {
14150
+ const start = this._cursor.clone();
14151
+ this._beginToken(30, start);
14152
+ while (this._cursor.peek() !== $EOF) {
14153
+ const char = this._cursor.peek();
14154
+ if (char === $SEMICOLON) {
14155
+ break;
14156
+ }
14157
+ if (isQuote(char)) {
14158
+ this._cursor.advance();
14159
+ this._attemptCharCodeUntilFn((inner) => {
14160
+ if (inner === $BACKSLASH) {
14161
+ this._cursor.advance();
14162
+ return false;
14163
+ }
14164
+ return inner === char;
14165
+ });
14166
+ }
14167
+ this._cursor.advance();
14168
+ }
14169
+ this._endToken([this._cursor.getChars(start)]);
14170
+ }
14078
14171
  _tokenizeExpansionForm() {
14079
14172
  if (this.isExpansionFormStart()) {
14080
14173
  this._consumeExpansionFormStart();
@@ -14823,7 +14916,7 @@ var CursorError = class {
14823
14916
  }
14824
14917
  };
14825
14918
 
14826
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
14919
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
14827
14920
  var TreeError = class extends ParseError {
14828
14921
  static create(elementName, span, msg) {
14829
14922
  return new TreeError(elementName, span, msg);
@@ -14861,7 +14954,7 @@ var _TreeBuilder = class {
14861
14954
  this._advance();
14862
14955
  }
14863
14956
  build() {
14864
- while (this._peek.type !== 29) {
14957
+ while (this._peek.type !== 33) {
14865
14958
  if (this._peek.type === 0 || this._peek.type === 4) {
14866
14959
  this._consumeStartTag(this._advance());
14867
14960
  } else if (this._peek.type === 3) {
@@ -14886,6 +14979,12 @@ var _TreeBuilder = class {
14886
14979
  } else if (this._peek.type === 28) {
14887
14980
  this._closeVoidElement();
14888
14981
  this._consumeIncompleteBlock(this._advance());
14982
+ } else if (this._peek.type === 29) {
14983
+ this._closeVoidElement();
14984
+ this._consumeLet(this._advance());
14985
+ } else if (this._peek.type === 32) {
14986
+ this._closeVoidElement();
14987
+ this._consumeIncompleteLet(this._advance());
14889
14988
  } else {
14890
14989
  this._advance();
14891
14990
  }
@@ -14950,7 +15049,7 @@ var _TreeBuilder = class {
14950
15049
  if (!exp)
14951
15050
  return null;
14952
15051
  const end = this._advance();
14953
- exp.push({ type: 29, parts: [], sourceSpan: end.sourceSpan });
15052
+ exp.push({ type: 33, parts: [], sourceSpan: end.sourceSpan });
14954
15053
  const expansionCaseParser = new _TreeBuilder(exp, this.getTagDefinition);
14955
15054
  expansionCaseParser.build();
14956
15055
  if (expansionCaseParser.errors.length > 0) {
@@ -14986,7 +15085,7 @@ var _TreeBuilder = class {
14986
15085
  return null;
14987
15086
  }
14988
15087
  }
14989
- if (this._peek.type === 29) {
15088
+ if (this._peek.type === 33) {
14990
15089
  this.errors.push(TreeError.create(null, start.sourceSpan, `Invalid ICU message. Missing '}'.`));
14991
15090
  return null;
14992
15091
  }
@@ -15158,6 +15257,44 @@ var _TreeBuilder = class {
15158
15257
  this._popContainer(null, Block, null);
15159
15258
  this.errors.push(TreeError.create(token.parts[0], span, `Incomplete block "${token.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`));
15160
15259
  }
15260
+ _consumeLet(startToken) {
15261
+ const name = startToken.parts[0];
15262
+ let valueToken;
15263
+ let endToken;
15264
+ if (this._peek.type !== 30) {
15265
+ this.errors.push(TreeError.create(startToken.parts[0], startToken.sourceSpan, `Invalid @let declaration "${name}". Declaration must have a value.`));
15266
+ return;
15267
+ } else {
15268
+ valueToken = this._advance();
15269
+ }
15270
+ if (this._peek.type !== 31) {
15271
+ this.errors.push(TreeError.create(startToken.parts[0], startToken.sourceSpan, `Unterminated @let declaration "${name}". Declaration must be terminated with a semicolon.`));
15272
+ return;
15273
+ } else {
15274
+ endToken = this._advance();
15275
+ }
15276
+ const end = endToken.sourceSpan.fullStart;
15277
+ const span = new ParseSourceSpan(startToken.sourceSpan.start, end, startToken.sourceSpan.fullStart);
15278
+ const startOffset = startToken.sourceSpan.toString().lastIndexOf(name);
15279
+ const nameStart = startToken.sourceSpan.start.moveBy(startOffset);
15280
+ const nameSpan = new ParseSourceSpan(nameStart, startToken.sourceSpan.end);
15281
+ const node = new LetDeclaration2(name, valueToken.parts[0], span, nameSpan, valueToken.sourceSpan);
15282
+ this._addToParent(node);
15283
+ }
15284
+ _consumeIncompleteLet(token) {
15285
+ var _a2;
15286
+ const name = (_a2 = token.parts[0]) != null ? _a2 : "";
15287
+ const nameString = name ? ` "${name}"` : "";
15288
+ if (name.length > 0) {
15289
+ const startOffset = token.sourceSpan.toString().lastIndexOf(name);
15290
+ const nameStart = token.sourceSpan.start.moveBy(startOffset);
15291
+ const nameSpan = new ParseSourceSpan(nameStart, token.sourceSpan.end);
15292
+ const valueSpan = new ParseSourceSpan(token.sourceSpan.start, token.sourceSpan.start.moveBy(0));
15293
+ const node = new LetDeclaration2(name, "", token.sourceSpan, nameSpan, valueSpan);
15294
+ this._addToParent(node);
15295
+ }
15296
+ this.errors.push(TreeError.create(token.parts[0], token.sourceSpan, `Incomplete @let declaration${nameString}. @let declarations must be written as \`@let <name> = <value>;\``));
15297
+ }
15161
15298
  _getContainer() {
15162
15299
  return this._containerStack.length > 0 ? this._containerStack[this._containerStack.length - 1] : null;
15163
15300
  }
@@ -15207,7 +15344,7 @@ function decodeEntity(match, entity) {
15207
15344
  return match;
15208
15345
  }
15209
15346
 
15210
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
15347
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
15211
15348
  var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
15212
15349
  "iframe|srcdoc",
15213
15350
  "*|innerhtml",
@@ -15222,7 +15359,7 @@ function isTrustedTypesSink(tagName, propName) {
15222
15359
  return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
15223
15360
  }
15224
15361
 
15225
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
15362
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
15226
15363
  var setI18nRefs = (htmlNode, i18nNode) => {
15227
15364
  if (htmlNode instanceof NodeWithI18n) {
15228
15365
  if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
@@ -15330,6 +15467,9 @@ var I18nMetaVisitor = class {
15330
15467
  visitBlockParameter(parameter, context) {
15331
15468
  return parameter;
15332
15469
  }
15470
+ visitLetDeclaration(decl, context) {
15471
+ return decl;
15472
+ }
15333
15473
  _parseMetadata(meta) {
15334
15474
  return typeof meta === "string" ? parseI18nMeta(meta) : meta instanceof Message ? meta : {};
15335
15475
  }
@@ -15379,7 +15519,7 @@ function i18nMetaToJSDoc(meta) {
15379
15519
  return jsDocComment(tags);
15380
15520
  }
15381
15521
 
15382
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
15522
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
15383
15523
  var GOOG_GET_MSG = "goog.getMsg";
15384
15524
  function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
15385
15525
  const messageString = serializeI18nMessageForGetMsg(message);
@@ -15430,7 +15570,7 @@ function serializeI18nMessageForGetMsg(message) {
15430
15570
  return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
15431
15571
  }
15432
15572
 
15433
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
15573
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
15434
15574
  function createLocalizeStatements(variable2, message, params) {
15435
15575
  const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
15436
15576
  const sourceSpan = getSourceSpan(message);
@@ -15519,7 +15659,7 @@ function createEmptyMessagePart(location) {
15519
15659
  return new LiteralPiece("", new ParseSourceSpan(location, location));
15520
15660
  }
15521
15661
 
15522
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
15662
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
15523
15663
  var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
15524
15664
  var TRANSLATION_VAR_PREFIX = "i18n_";
15525
15665
  var I18N_ICU_MAPPING_PREFIX = "I18N_EXP_";
@@ -15690,7 +15830,7 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
15690
15830
  return variable(name);
15691
15831
  }
15692
15832
 
15693
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
15833
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
15694
15834
  function convertI18nText(job) {
15695
15835
  var _a2, _b2, _c2;
15696
15836
  for (const unit of job.units) {
@@ -15760,7 +15900,7 @@ function convertI18nText(job) {
15760
15900
  }
15761
15901
  }
15762
15902
 
15763
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
15903
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
15764
15904
  function liftLocalRefs(job) {
15765
15905
  for (const unit of job.units) {
15766
15906
  for (const op of unit.create) {
@@ -15790,7 +15930,7 @@ function serializeLocalRefs(refs) {
15790
15930
  return literalArr(constRefs);
15791
15931
  }
15792
15932
 
15793
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
15933
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
15794
15934
  function emitNamespaceChanges(job) {
15795
15935
  for (const unit of job.units) {
15796
15936
  let activeNamespace = Namespace.HTML;
@@ -15806,7 +15946,7 @@ function emitNamespaceChanges(job) {
15806
15946
  }
15807
15947
  }
15808
15948
 
15809
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
15949
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
15810
15950
  function parse(value) {
15811
15951
  const styles = [];
15812
15952
  let i = 0;
@@ -15900,7 +16040,7 @@ function parseExtractedStyles(job) {
15900
16040
  }
15901
16041
  }
15902
16042
 
15903
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
16043
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
15904
16044
  function nameFunctionsAndVariables(job) {
15905
16045
  addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
15906
16046
  }
@@ -16044,7 +16184,7 @@ function stripImportant(name) {
16044
16184
  return name;
16045
16185
  }
16046
16186
 
16047
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
16187
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
16048
16188
  function mergeNextContextExpressions(job) {
16049
16189
  for (const unit of job.units) {
16050
16190
  for (const op of unit.create) {
@@ -16090,7 +16230,7 @@ function mergeNextContextsInOps(ops) {
16090
16230
  }
16091
16231
  }
16092
16232
 
16093
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
16233
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
16094
16234
  var CONTAINER_TAG = "ng-container";
16095
16235
  function generateNgContainerOps(job) {
16096
16236
  for (const unit of job.units) {
@@ -16107,7 +16247,7 @@ function generateNgContainerOps(job) {
16107
16247
  }
16108
16248
  }
16109
16249
 
16110
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
16250
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
16111
16251
  function lookupElement3(elements, xref) {
16112
16252
  const el = elements.get(xref);
16113
16253
  if (el === void 0) {
@@ -16137,7 +16277,7 @@ function disableBindings(job) {
16137
16277
  }
16138
16278
  }
16139
16279
 
16140
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
16280
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
16141
16281
  function generateNullishCoalesceExpressions(job) {
16142
16282
  for (const unit of job.units) {
16143
16283
  for (const op of unit.ops()) {
@@ -16153,7 +16293,7 @@ function generateNullishCoalesceExpressions(job) {
16153
16293
  }
16154
16294
  }
16155
16295
 
16156
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
16296
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
16157
16297
  function kindTest(kind) {
16158
16298
  return (op) => op.kind === kind;
16159
16299
  }
@@ -16243,7 +16383,7 @@ function keepLast(ops) {
16243
16383
  return ops.slice(ops.length - 1);
16244
16384
  }
16245
16385
 
16246
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
16386
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
16247
16387
  function removeContentSelectors(job) {
16248
16388
  for (const unit of job.units) {
16249
16389
  const elements = createOpXrefMap(unit);
@@ -16270,7 +16410,7 @@ function lookupInXrefMap(map, xref) {
16270
16410
  return el;
16271
16411
  }
16272
16412
 
16273
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
16413
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
16274
16414
  function createPipes(job) {
16275
16415
  for (const unit of job.units) {
16276
16416
  processPipeBindingsInView(unit);
@@ -16318,7 +16458,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
16318
16458
  throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
16319
16459
  }
16320
16460
 
16321
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
16461
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
16322
16462
  function createVariadicPipes(job) {
16323
16463
  for (const unit of job.units) {
16324
16464
  for (const op of unit.update) {
@@ -16335,7 +16475,7 @@ function createVariadicPipes(job) {
16335
16475
  }
16336
16476
  }
16337
16477
 
16338
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
16478
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
16339
16479
  function propagateI18nBlocks(job) {
16340
16480
  propagateI18nBlocksToTemplates(job.root, 0);
16341
16481
  }
@@ -16389,7 +16529,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
16389
16529
  }
16390
16530
  }
16391
16531
 
16392
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
16532
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
16393
16533
  function extractPureFunctions(job) {
16394
16534
  for (const view of job.units) {
16395
16535
  for (const op of view.ops()) {
@@ -16431,7 +16571,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
16431
16571
  }
16432
16572
  };
16433
16573
 
16434
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
16574
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
16435
16575
  function generatePureLiteralStructures(job) {
16436
16576
  for (const unit of job.units) {
16437
16577
  for (const op of unit.update) {
@@ -16478,7 +16618,7 @@ function transformLiteralMap(expr) {
16478
16618
  return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
16479
16619
  }
16480
16620
 
16481
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
16621
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
16482
16622
  function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
16483
16623
  return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
16484
16624
  }
@@ -17001,7 +17141,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
17001
17141
  return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
17002
17142
  }
17003
17143
 
17004
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
17144
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
17005
17145
  var GLOBAL_TARGET_RESOLVERS = /* @__PURE__ */ new Map([
17006
17146
  ["window", Identifiers.resolveWindow],
17007
17147
  ["document", Identifiers.resolveDocument],
@@ -17357,7 +17497,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
17357
17497
  return fn(params, handlerStmts, void 0, void 0, name);
17358
17498
  }
17359
17499
 
17360
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
17500
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
17361
17501
  function removeEmptyBindings(job) {
17362
17502
  for (const unit of job.units) {
17363
17503
  for (const op of unit.update) {
@@ -17378,7 +17518,7 @@ function removeEmptyBindings(job) {
17378
17518
  }
17379
17519
  }
17380
17520
 
17381
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
17521
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
17382
17522
  function removeI18nContexts(job) {
17383
17523
  for (const unit of job.units) {
17384
17524
  for (const op of unit.create) {
@@ -17394,7 +17534,7 @@ function removeI18nContexts(job) {
17394
17534
  }
17395
17535
  }
17396
17536
 
17397
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
17537
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
17398
17538
  function removeUnusedI18nAttributesOps(job) {
17399
17539
  for (const unit of job.units) {
17400
17540
  const ownersWithI18nExpressions = /* @__PURE__ */ new Set();
@@ -17416,7 +17556,7 @@ function removeUnusedI18nAttributesOps(job) {
17416
17556
  }
17417
17557
  }
17418
17558
 
17419
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
17559
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
17420
17560
  function resolveContexts(job) {
17421
17561
  for (const unit of job.units) {
17422
17562
  processLexicalScope(unit, unit.create);
@@ -17458,7 +17598,7 @@ function processLexicalScope(view, ops) {
17458
17598
  }
17459
17599
  }
17460
17600
 
17461
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
17601
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
17462
17602
  function resolveDollarEvent(job) {
17463
17603
  for (const unit of job.units) {
17464
17604
  transformDollarEvent(unit.create);
@@ -17481,7 +17621,7 @@ function transformDollarEvent(ops) {
17481
17621
  }
17482
17622
  }
17483
17623
 
17484
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
17624
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
17485
17625
  function resolveI18nElementPlaceholders(job) {
17486
17626
  const i18nContexts = /* @__PURE__ */ new Map();
17487
17627
  const elements = /* @__PURE__ */ new Map();
@@ -17660,7 +17800,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags) {
17660
17800
  params.set(placeholder, values);
17661
17801
  }
17662
17802
 
17663
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
17803
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
17664
17804
  function resolveI18nExpressionPlaceholders(job) {
17665
17805
  var _a2;
17666
17806
  const subTemplateIndices = /* @__PURE__ */ new Map();
@@ -17713,7 +17853,7 @@ function updatePlaceholder(op, value, i18nContexts, icuPlaceholders) {
17713
17853
  }
17714
17854
  }
17715
17855
 
17716
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
17856
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
17717
17857
  function resolveNames(job) {
17718
17858
  for (const unit of job.units) {
17719
17859
  processLexicalScope2(unit, unit.create, null);
@@ -17778,7 +17918,7 @@ function processLexicalScope2(unit, ops, savedView) {
17778
17918
  }
17779
17919
  }
17780
17920
 
17781
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
17921
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
17782
17922
  var sanitizerFns = /* @__PURE__ */ new Map([
17783
17923
  [SecurityContext.HTML, Identifiers.sanitizeHtml],
17784
17924
  [SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],
@@ -17848,7 +17988,7 @@ function getOnlySecurityContext(securityContext) {
17848
17988
  return securityContext;
17849
17989
  }
17850
17990
 
17851
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/transform_two_way_binding_set.mjs
17991
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/transform_two_way_binding_set.mjs
17852
17992
  function transformTwoWayBindingSet(job) {
17853
17993
  for (const unit of job.units) {
17854
17994
  for (const op of unit.create) {
@@ -17871,7 +18011,7 @@ function transformTwoWayBindingSet(job) {
17871
18011
  }
17872
18012
  }
17873
18013
 
17874
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
18014
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
17875
18015
  function saveAndRestoreView(job) {
17876
18016
  for (const unit of job.units) {
17877
18017
  unit.create.prepend([
@@ -17916,7 +18056,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
17916
18056
  }
17917
18057
  }
17918
18058
 
17919
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
18059
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
17920
18060
  function allocateSlots(job) {
17921
18061
  const slotMap = /* @__PURE__ */ new Map();
17922
18062
  for (const unit of job.units) {
@@ -17941,7 +18081,7 @@ function allocateSlots(job) {
17941
18081
  }
17942
18082
  }
17943
18083
 
17944
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
18084
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
17945
18085
  function specializeStyleBindings(job) {
17946
18086
  for (const unit of job.units) {
17947
18087
  for (const op of unit.update) {
@@ -17971,7 +18111,7 @@ function specializeStyleBindings(job) {
17971
18111
  }
17972
18112
  }
17973
18113
 
17974
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
18114
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
17975
18115
  function generateTemporaryVariables(job) {
17976
18116
  for (const unit of job.units) {
17977
18117
  unit.create.prepend(generateTemporaries(unit.create));
@@ -18029,7 +18169,7 @@ function assignName(names, expr) {
18029
18169
  expr.name = name;
18030
18170
  }
18031
18171
 
18032
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
18172
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
18033
18173
  function generateTrackFns(job) {
18034
18174
  for (const unit of job.units) {
18035
18175
  for (const op of unit.create) {
@@ -18062,7 +18202,7 @@ function generateTrackFns(job) {
18062
18202
  }
18063
18203
  }
18064
18204
 
18065
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
18205
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
18066
18206
  function optimizeTrackFns(job) {
18067
18207
  for (const unit of job.units) {
18068
18208
  for (const op of unit.create) {
@@ -18112,7 +18252,7 @@ function isTrackByFunctionCall(rootView, expr) {
18112
18252
  return true;
18113
18253
  }
18114
18254
 
18115
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
18255
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
18116
18256
  function generateTrackVariables(job) {
18117
18257
  for (const unit of job.units) {
18118
18258
  for (const op of unit.create) {
@@ -18133,7 +18273,7 @@ function generateTrackVariables(job) {
18133
18273
  }
18134
18274
  }
18135
18275
 
18136
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
18276
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
18137
18277
  function countVariables(job) {
18138
18278
  for (const unit of job.units) {
18139
18279
  let varCount = 0;
@@ -18243,7 +18383,7 @@ function isSingletonInterpolation(expr) {
18243
18383
  return true;
18244
18384
  }
18245
18385
 
18246
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
18386
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
18247
18387
  function optimizeVariables(job) {
18248
18388
  for (const unit of job.units) {
18249
18389
  inlineAlwaysInlineVariables(unit.create);
@@ -18492,7 +18632,7 @@ function allowConservativeInlining(decl, target) {
18492
18632
  }
18493
18633
  }
18494
18634
 
18495
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
18635
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
18496
18636
  function wrapI18nIcus(job) {
18497
18637
  for (const unit of job.units) {
18498
18638
  let currentI18nOp = null;
@@ -18522,7 +18662,7 @@ function wrapI18nIcus(job) {
18522
18662
  }
18523
18663
  }
18524
18664
 
18525
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
18665
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
18526
18666
  var phases = [
18527
18667
  { kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
18528
18668
  { kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
@@ -18676,7 +18816,7 @@ function emitHostBindingFunction(job) {
18676
18816
  );
18677
18817
  }
18678
18818
 
18679
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
18819
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
18680
18820
  var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
18681
18821
  var domSchema = new DomElementSchemaRegistry();
18682
18822
  var NG_TEMPLATE_TAG_NAME = "ng-template";
@@ -18780,6 +18920,7 @@ function ingestNodes(unit, template2) {
18780
18920
  ingestIcu(unit, node);
18781
18921
  } else if (node instanceof ForLoopBlock) {
18782
18922
  ingestForBlock(unit, node);
18923
+ } else if (node instanceof LetDeclaration) {
18783
18924
  } else {
18784
18925
  throw new Error(`Unsupported template node: ${node.constructor.name}`);
18785
18926
  }
@@ -19427,7 +19568,7 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
19427
19568
  return null;
19428
19569
  }
19429
19570
 
19430
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/query_generation.mjs
19571
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/query_generation.mjs
19431
19572
  function renderFlagCheckIfStmt(flags, statements) {
19432
19573
  return ifStmt(variable(RENDER_FLAGS).bitwiseAnd(literal(flags), null, false), statements);
19433
19574
  }
@@ -19547,7 +19688,7 @@ function createContentQueriesFunction(queries, constantPool, name) {
19547
19688
  ], INFERRED_TYPE, null, contentQueriesFnName);
19548
19689
  }
19549
19690
 
19550
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
19691
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
19551
19692
  var HtmlParser = class extends Parser2 {
19552
19693
  constructor() {
19553
19694
  super(getHtmlTagDefinition);
@@ -19557,7 +19698,7 @@ var HtmlParser = class extends Parser2 {
19557
19698
  }
19558
19699
  };
19559
19700
 
19560
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
19701
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
19561
19702
  var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
19562
19703
  var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
19563
19704
  var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
@@ -19604,6 +19745,9 @@ var WhitespaceVisitor = class {
19604
19745
  visitBlockParameter(parameter, context) {
19605
19746
  return parameter;
19606
19747
  }
19748
+ visitLetDeclaration(decl, context) {
19749
+ return decl;
19750
+ }
19607
19751
  };
19608
19752
  function createWhitespaceProcessedTextToken({ type, parts, sourceSpan }) {
19609
19753
  return { type, parts: [processWhitespace(parts[0])], sourceSpan };
@@ -19623,7 +19767,7 @@ function visitAllWithSiblings(visitor, nodes) {
19623
19767
  return result;
19624
19768
  }
19625
19769
 
19626
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
19770
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
19627
19771
  var PROPERTY_PARTS_SEPARATOR = ".";
19628
19772
  var ATTRIBUTE_PREFIX = "attr";
19629
19773
  var CLASS_PREFIX = "class";
@@ -19977,7 +20121,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
19977
20121
  return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
19978
20122
  }
19979
20123
 
19980
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
20124
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
19981
20125
  function isStyleUrlResolvable(url) {
19982
20126
  if (url == null || url.length === 0 || url[0] == "/")
19983
20127
  return false;
@@ -19986,7 +20130,7 @@ function isStyleUrlResolvable(url) {
19986
20130
  }
19987
20131
  var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
19988
20132
 
19989
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
20133
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
19990
20134
  var NG_CONTENT_SELECT_ATTR = "select";
19991
20135
  var LINK_ELEMENT = "link";
19992
20136
  var LINK_STYLE_REL_ATTR = "rel";
@@ -20056,7 +20200,7 @@ function normalizeNgContentSelect(selectAttr) {
20056
20200
  return selectAttr;
20057
20201
  }
20058
20202
 
20059
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
20203
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
20060
20204
  var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
20061
20205
  var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
20062
20206
  var CONDITIONAL_ALIAS_PATTERN = /^(as\s)+(.*)/;
@@ -20379,7 +20523,7 @@ function stripOptionalParentheses(param, errors) {
20379
20523
  return expression.slice(start, end);
20380
20524
  }
20381
20525
 
20382
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
20526
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
20383
20527
  var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
20384
20528
  var SEPARATOR_PATTERN = /^\s$/;
20385
20529
  var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
@@ -20643,7 +20787,7 @@ function parseDeferredTime(value) {
20643
20787
  return parseFloat(time) * (units === "s" ? 1e3 : 1);
20644
20788
  }
20645
20789
 
20646
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
20790
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
20647
20791
  var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
20648
20792
  var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
20649
20793
  var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
@@ -20778,7 +20922,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
20778
20922
  return { triggers, prefetchTriggers };
20779
20923
  }
20780
20924
 
20781
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
20925
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
20782
20926
  var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
20783
20927
  var KW_BIND_IDX = 1;
20784
20928
  var KW_LET_IDX = 2;
@@ -20953,6 +21097,13 @@ var HtmlAstToIvyAst = class {
20953
21097
  }
20954
21098
  return null;
20955
21099
  }
21100
+ visitLetDeclaration(decl, context) {
21101
+ const value = this.bindingParser.parseBinding(decl.value, false, decl.valueSpan, decl.valueSpan.start.offset);
21102
+ if (value.errors.length === 0 && value.ast instanceof EmptyExpr) {
21103
+ this.reportError("@let declaration value cannot be empty", decl.valueSpan);
21104
+ }
21105
+ return new LetDeclaration(decl.name, value, decl.sourceSpan, decl.nameSpan, decl.valueSpan);
21106
+ }
20956
21107
  visitBlockParameter() {
20957
21108
  return null;
20958
21109
  }
@@ -21219,6 +21370,9 @@ var NonBindableVisitor = class {
21219
21370
  visitBlockParameter(parameter, context) {
21220
21371
  return null;
21221
21372
  }
21373
+ visitLetDeclaration(decl, context) {
21374
+ return new Text(`@let ${decl.name} = ${decl.value};`, decl.sourceSpan);
21375
+ }
21222
21376
  };
21223
21377
  var NON_BINDABLE_VISITOR = new NonBindableVisitor();
21224
21378
  function normalizeAttributeName(attrName) {
@@ -21235,10 +21389,10 @@ function textContents(node) {
21235
21389
  }
21236
21390
  }
21237
21391
 
21238
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
21392
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
21239
21393
  var LEADING_TRIVIA_CHARS = [" ", "\n", "\r", " "];
21240
21394
  function parseTemplate(template2, templateUrl, options = {}) {
21241
- var _a2;
21395
+ var _a2, _b2;
21242
21396
  const { interpolationConfig, preserveWhitespaces, enableI18nLegacyMessageIdFormat, allowInvalidAssignmentEvents } = options;
21243
21397
  const bindingParser = makeBindingParser(interpolationConfig, allowInvalidAssignmentEvents);
21244
21398
  const htmlParser = new HtmlParser();
@@ -21246,7 +21400,8 @@ function parseTemplate(template2, templateUrl, options = {}) {
21246
21400
  leadingTriviaChars: LEADING_TRIVIA_CHARS
21247
21401
  }, options), {
21248
21402
  tokenizeExpansionForms: true,
21249
- tokenizeBlocks: (_a2 = options.enableBlockSyntax) != null ? _a2 : true
21403
+ tokenizeBlocks: (_a2 = options.enableBlockSyntax) != null ? _a2 : true,
21404
+ tokenizeLet: (_b2 = options.enableLetSyntax) != null ? _b2 : false
21250
21405
  }));
21251
21406
  if (!options.alwaysAttemptHtmlToR3AstConversion && parseResult.errors && parseResult.errors.length > 0) {
21252
21407
  const parsedTemplate2 = {
@@ -21313,7 +21468,7 @@ function makeBindingParser(interpolationConfig = DEFAULT_INTERPOLATION_CONFIG, a
21313
21468
  return new BindingParser(new Parser(new Lexer()), interpolationConfig, elementRegistry, [], allowInvalidAssignmentEvents);
21314
21469
  }
21315
21470
 
21316
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
21471
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
21317
21472
  var COMPONENT_VARIABLE = "%COMP%";
21318
21473
  var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
21319
21474
  var CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;
@@ -21680,7 +21835,7 @@ function createHostDirectivesMappingArray(mapping) {
21680
21835
  return elements.length > 0 ? literalArr(elements) : null;
21681
21836
  }
21682
21837
 
21683
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
21838
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
21684
21839
  var R3TargetBinder = class {
21685
21840
  constructor(directiveMatcher) {
21686
21841
  this.directiveMatcher = directiveMatcher;
@@ -21786,6 +21941,9 @@ var Scope2 = class {
21786
21941
  visitContent(content) {
21787
21942
  this.ingestScopedNode(content);
21788
21943
  }
21944
+ visitLetDeclaration(decl) {
21945
+ this.maybeDeclare(decl);
21946
+ }
21789
21947
  visitBoundAttribute(attr) {
21790
21948
  }
21791
21949
  visitBoundEvent(event) {
@@ -21963,6 +22121,8 @@ var DirectiveBinder = class {
21963
22121
  }
21964
22122
  visitUnknownBlock(block) {
21965
22123
  }
22124
+ visitLetDeclaration(decl) {
22125
+ }
21966
22126
  };
21967
22127
  var TemplateBinder = class extends RecursiveAstVisitor {
21968
22128
  constructor(bindings, symbols, usedPipes, eagerPipes, deferBlocks, nestingLevel, scope, rootNode, level) {
@@ -22119,6 +22279,12 @@ var TemplateBinder = class extends RecursiveAstVisitor {
22119
22279
  visitBoundText(text2) {
22120
22280
  text2.value.visit(this);
22121
22281
  }
22282
+ visitLetDeclaration(decl) {
22283
+ decl.value.visit(this);
22284
+ if (this.rootNode !== null) {
22285
+ this.symbols.set(decl, this.rootNode);
22286
+ }
22287
+ }
22122
22288
  visitPipe(ast, context) {
22123
22289
  this.usedPipes.add(ast.name);
22124
22290
  if (!this.scope.isDeferred) {
@@ -22147,7 +22313,10 @@ var TemplateBinder = class extends RecursiveAstVisitor {
22147
22313
  if (!(ast.receiver instanceof ImplicitReceiver)) {
22148
22314
  return;
22149
22315
  }
22150
- let target = this.scope.lookup(name);
22316
+ const target = this.scope.lookup(name);
22317
+ if (target instanceof LetDeclaration && ast.receiver instanceof ThisReceiver) {
22318
+ return;
22319
+ }
22151
22320
  if (target !== null) {
22152
22321
  this.bindings.set(ast, target);
22153
22322
  }
@@ -22313,11 +22482,11 @@ function extractScopedNodeEntities(rootScope) {
22313
22482
  return templateEntities;
22314
22483
  }
22315
22484
 
22316
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/resource_loader.mjs
22485
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
22317
22486
  var ResourceLoader = class {
22318
22487
  };
22319
22488
 
22320
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
22489
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
22321
22490
  var CompilerFacadeImpl = class {
22322
22491
  constructor(jitEvaluator = new JitEvaluator()) {
22323
22492
  this.jitEvaluator = jitEvaluator;
@@ -22883,17 +23052,17 @@ function publishFacade(global) {
22883
23052
  ng.\u0275compilerFacade = new CompilerFacadeImpl();
22884
23053
  }
22885
23054
 
22886
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
22887
- var VERSION2 = new Version("18.0.1");
23055
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
23056
+ var VERSION2 = new Version("18.0.2");
22888
23057
 
22889
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
23058
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
22890
23059
  var _VisitorMode;
22891
23060
  (function(_VisitorMode2) {
22892
23061
  _VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
22893
23062
  _VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
22894
23063
  })(_VisitorMode || (_VisitorMode = {}));
22895
23064
 
22896
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
23065
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
22897
23066
  var XmlTagDefinition = class {
22898
23067
  constructor() {
22899
23068
  this.closedByParent = false;
@@ -22915,7 +23084,7 @@ var XmlTagDefinition = class {
22915
23084
  };
22916
23085
  var _TAG_DEFINITION = new XmlTagDefinition();
22917
23086
 
22918
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
23087
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
22919
23088
  var FactoryTarget2;
22920
23089
  (function(FactoryTarget3) {
22921
23090
  FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
@@ -22925,10 +23094,10 @@ var FactoryTarget2;
22925
23094
  FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
22926
23095
  })(FactoryTarget2 || (FactoryTarget2 = {}));
22927
23096
 
22928
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler.mjs
23097
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
22929
23098
  publishFacade(_global);
22930
23099
 
22931
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/identifier-lookup.mjs
23100
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/identifier-lookup.mjs
22932
23101
  var import_typescript5 = __toESM(require("typescript"), 1);
22933
23102
  function lookupIdentifiersInSourceFile(sourceFile, names) {
22934
23103
  const results = /* @__PURE__ */ new Set();
@@ -22942,7 +23111,7 @@ function lookupIdentifiersInSourceFile(sourceFile, names) {
22942
23111
  return results;
22943
23112
  }
22944
23113
 
22945
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/types.mjs
23114
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/types.mjs
22946
23115
  var ngtemplate = "ng-template";
22947
23116
  var boundngifelse = "[ngIfElse]";
22948
23117
  var boundngifthenelse = "[ngIfThenElse]";
@@ -22997,8 +23166,7 @@ var commonModulePipes = [
22997
23166
  "lowercase",
22998
23167
  "uppercase",
22999
23168
  "titlecase",
23000
- "percent",
23001
- "titlecase"
23169
+ "percent"
23002
23170
  ].map((name) => pipeMatchRegExpFor(name));
23003
23171
  var ElementToMigrate = class {
23004
23172
  constructor(el, attr, elseAttr = void 0, thenAttr = void 0, forAttrs = void 0, aliasAttrs = void 0) {
@@ -23271,7 +23439,7 @@ var TemplateCollector = class extends RecursiveVisitor {
23271
23439
  }
23272
23440
  };
23273
23441
 
23274
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/util.mjs
23442
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/util.mjs
23275
23443
  var import_path2 = require("path");
23276
23444
  var import_typescript6 = __toESM(require("typescript"), 1);
23277
23445
  var startMarkerRegex = new RegExp(startMarker, "gm");
@@ -23791,7 +23959,7 @@ function forEachClass(sourceFile, callback) {
23791
23959
  });
23792
23960
  }
23793
23961
 
23794
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/cases.mjs
23962
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/cases.mjs
23795
23963
  var boundcase = "[ngSwitchCase]";
23796
23964
  var switchcase = "*ngSwitchCase";
23797
23965
  var nakedcase = "ngSwitchCase";
@@ -23863,7 +24031,7 @@ function migrateNgSwitchDefault(etm, tmpl, offset) {
23863
24031
  return { tmpl: updatedTmpl, offsets: { pre, post } };
23864
24032
  }
23865
24033
 
23866
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/fors.mjs
24034
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/fors.mjs
23867
24035
  var ngfor = "*ngFor";
23868
24036
  var nakedngfor2 = "ngFor";
23869
24037
  var fors = [ngfor, nakedngfor2];
@@ -23938,16 +24106,24 @@ function migrateStandardNgFor(etm, tmpl, offset) {
23938
24106
  }
23939
24107
  if (part.match(aliasWithEqualRegexp)) {
23940
24108
  const aliasParts = part.split("=");
23941
- aliases.push(` ${aliasParts[0].trim()} = $${aliasParts[1].trim()}`);
23942
- if (aliasParts[1].trim() === "index") {
23943
- aliasedIndex = aliasParts[0].replace("let", "").trim();
24109
+ const aliasedName = aliasParts[0].replace("let", "").trim();
24110
+ const originalName = aliasParts[1].trim();
24111
+ if (aliasedName !== "$" + originalName) {
24112
+ aliases.push(` let ${aliasedName} = $${originalName}`);
24113
+ }
24114
+ if (originalName === "index") {
24115
+ aliasedIndex = aliasedName;
23944
24116
  }
23945
24117
  }
23946
24118
  if (part.match(aliasWithAsRegexp)) {
23947
24119
  const aliasParts = part.split(/\s+as\s+/);
23948
- aliases.push(` let ${aliasParts[1].trim()} = $${aliasParts[0].trim()}`);
23949
- if (aliasParts[0].trim() === "index") {
23950
- aliasedIndex = aliasParts[1].trim();
24120
+ const originalName = aliasParts[0].trim();
24121
+ const aliasedName = aliasParts[1].trim();
24122
+ if (aliasedName !== "$" + originalName) {
24123
+ aliases.push(` let ${aliasedName} = $${originalName}`);
24124
+ }
24125
+ if (originalName === "index") {
24126
+ aliasedIndex = aliasedName;
23951
24127
  }
23952
24128
  }
23953
24129
  }
@@ -24034,7 +24210,7 @@ function getNgForParts(expression) {
24034
24210
  return parts;
24035
24211
  }
24036
24212
 
24037
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/ifs.mjs
24213
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/ifs.mjs
24038
24214
  var ngif = "*ngIf";
24039
24215
  var boundngif = "[ngIf]";
24040
24216
  var nakedngif = "ngIf";
@@ -24183,7 +24359,7 @@ function buildIfThenBlock(etm, tmpl, condition, thenPlaceholder, offset) {
24183
24359
  return { tmpl: updatedTmpl, offsets: { pre, post } };
24184
24360
  }
24185
24361
 
24186
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/switches.mjs
24362
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/switches.mjs
24187
24363
  var ngswitch = "[ngSwitch]";
24188
24364
  var switches = [ngswitch];
24189
24365
  function migrateSwitch(template2) {
@@ -24249,7 +24425,7 @@ function migrateNgSwitch(etm, tmpl, offset) {
24249
24425
  return { tmpl: updatedTmpl, offsets: { pre, post } };
24250
24426
  }
24251
24427
 
24252
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/migration.mjs
24428
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/migration.mjs
24253
24429
  function migrateTemplate(template2, templateType, node, file, format = true, analyzedFiles) {
24254
24430
  let errors = [];
24255
24431
  let migrated = template2;
@@ -24300,7 +24476,7 @@ function migrateTemplate(template2, templateType, node, file, format = true, ana
24300
24476
  return { migrated, errors };
24301
24477
  }
24302
24478
 
24303
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/index.mjs
24479
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/index.mjs
24304
24480
  function control_flow_migration_default(options) {
24305
24481
  return (tree, context) => __async(this, null, function* () {
24306
24482
  const basePath = process.cwd();