@angular/core 17.2.0-next.0 → 17.2.0-next.1

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 (63) hide show
  1. package/esm2022/primitives/signals/index.mjs +2 -2
  2. package/esm2022/src/application/application_init.mjs +2 -2
  3. package/esm2022/src/application/application_ref.mjs +2 -2
  4. package/esm2022/src/application/application_tokens.mjs +10 -9
  5. package/esm2022/src/authoring/input.mjs +1 -1
  6. package/esm2022/src/authoring/input_signal.mjs +4 -1
  7. package/esm2022/src/authoring/input_type_checking.mjs +1 -1
  8. package/esm2022/src/authoring/queries.mjs +8 -7
  9. package/esm2022/src/authoring.mjs +1 -1
  10. package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +51 -18
  11. package/esm2022/src/core_private_export.mjs +2 -2
  12. package/esm2022/src/defer/instructions.mjs +4 -2
  13. package/esm2022/src/di/forward_ref.mjs +1 -1
  14. package/esm2022/src/di/initializer_token.mjs +2 -2
  15. package/esm2022/src/di/injector.mjs +4 -4
  16. package/esm2022/src/di/injector_token.mjs +2 -2
  17. package/esm2022/src/di/internal_tokens.mjs +2 -2
  18. package/esm2022/src/di/scope.mjs +2 -2
  19. package/esm2022/src/hydration/error_handling.mjs +17 -6
  20. package/esm2022/src/hydration/utils.mjs +54 -8
  21. package/esm2022/src/i18n/tokens.mjs +5 -5
  22. package/esm2022/src/linker/compiler.mjs +2 -2
  23. package/esm2022/src/linker/query_list.mjs +7 -1
  24. package/esm2022/src/metadata/di.mjs +1 -1
  25. package/esm2022/src/platform/platform.mjs +2 -2
  26. package/esm2022/src/platform/platform_ref.mjs +2 -2
  27. package/esm2022/src/render3/component_ref.mjs +1 -1
  28. package/esm2022/src/render3/instructions/all.mjs +2 -1
  29. package/esm2022/src/render3/instructions/element.mjs +3 -3
  30. package/esm2022/src/render3/instructions/queries.mjs +6 -40
  31. package/esm2022/src/render3/instructions/queries_signals.mjs +55 -0
  32. package/esm2022/src/render3/instructions/write_to_directive_input.mjs +1 -1
  33. package/esm2022/src/render3/query.mjs +46 -7
  34. package/esm2022/src/render3/query_reactive.mjs +110 -0
  35. package/esm2022/src/render3/reactivity/computed.mjs +4 -1
  36. package/esm2022/src/render3/reactivity/signal.mjs +4 -1
  37. package/esm2022/src/util/ng_dev_mode.mjs +11 -3
  38. package/esm2022/src/version.mjs +1 -1
  39. package/esm2022/testing/src/component_fixture.mjs +128 -93
  40. package/esm2022/testing/src/logger.mjs +3 -3
  41. package/esm2022/testing/src/test_bed.mjs +11 -6
  42. package/esm2022/testing/src/test_bed_common.mjs +9 -2
  43. package/esm2022/testing/src/test_bed_compiler.mjs +5 -4
  44. package/esm2022/testing/src/testing.mjs +2 -2
  45. package/fesm2022/core.mjs +359 -100
  46. package/fesm2022/core.mjs.map +1 -1
  47. package/fesm2022/primitives/signals.mjs +2 -2
  48. package/fesm2022/rxjs-interop.mjs +1 -1
  49. package/fesm2022/testing.mjs +143 -96
  50. package/fesm2022/testing.mjs.map +1 -1
  51. package/index.d.ts +120 -21
  52. package/package.json +1 -1
  53. package/primitives/signals/index.d.ts +3 -1
  54. package/rxjs-interop/index.d.ts +1 -1
  55. package/schematics/migrations/block-template-entities/bundle.js +242 -207
  56. package/schematics/migrations/block-template-entities/bundle.js.map +3 -3
  57. package/schematics/migrations/compiler-options/bundle.js +13 -13
  58. package/schematics/migrations/transfer-state/bundle.js +13 -13
  59. package/schematics/ng-generate/control-flow-migration/bundle.js +252 -217
  60. package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
  61. package/schematics/ng-generate/standalone-migration/bundle.js +1942 -1675
  62. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  63. package/testing/index.d.ts +6 -17
@@ -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";
@@ -1712,7 +1712,7 @@ function serializeTags(tags) {
1712
1712
  return out;
1713
1713
  }
1714
1714
 
1715
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/constant_pool.mjs
1715
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
1716
1716
  var CONSTANT_PREFIX = "_c";
1717
1717
  var UNKNOWN_VALUE_KEY = variable("<unknown>");
1718
1718
  var KEY_CONTEXT = {};
@@ -1895,7 +1895,7 @@ function isLongStringLiteral(expr) {
1895
1895
  return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
1896
1896
  }
1897
1897
 
1898
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
1898
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
1899
1899
  var CORE = "@angular/core";
1900
1900
  var _Identifiers = class {
1901
1901
  };
@@ -2549,7 +2549,7 @@ var Identifiers = _Identifiers;
2549
2549
  _Identifiers.UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: CORE };
2550
2550
  })();
2551
2551
 
2552
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/util.mjs
2552
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
2553
2553
  var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
2554
2554
  function dashCaseToCamelCase(input) {
2555
2555
  return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
@@ -2637,7 +2637,7 @@ function partitionArray(arr, conditionFn) {
2637
2637
  return [truthy, falsy];
2638
2638
  }
2639
2639
 
2640
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/source_map.mjs
2640
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
2641
2641
  var VERSION = 3;
2642
2642
  var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
2643
2643
  var SourceMapGenerator = class {
@@ -2766,7 +2766,7 @@ function toBase64Digit(value) {
2766
2766
  return B64_DIGITS[value];
2767
2767
  }
2768
2768
 
2769
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
2769
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
2770
2770
  var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
2771
2771
  var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
2772
2772
  var _INDENT_WITH = " ";
@@ -3254,7 +3254,7 @@ function _createIndent(count) {
3254
3254
  return res;
3255
3255
  }
3256
3256
 
3257
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/util.mjs
3257
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
3258
3258
  function typeWithParameters(type, numParams) {
3259
3259
  if (numParams === 0) {
3260
3260
  return expressionType(type);
@@ -3319,7 +3319,7 @@ function generateForwardRef(expr) {
3319
3319
  return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
3320
3320
  }
3321
3321
 
3322
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
3322
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
3323
3323
  var R3FactoryDelegateType;
3324
3324
  (function(R3FactoryDelegateType2) {
3325
3325
  R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
@@ -3464,7 +3464,7 @@ function getInjectFn(target) {
3464
3464
  }
3465
3465
  }
3466
3466
 
3467
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
3467
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
3468
3468
  var TagContentType;
3469
3469
  (function(TagContentType2) {
3470
3470
  TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
@@ -3501,7 +3501,7 @@ function mergeNsAndName(prefix, localName) {
3501
3501
  return prefix ? `:${prefix}:${localName}` : localName;
3502
3502
  }
3503
3503
 
3504
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
3504
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
3505
3505
  var Comment = class {
3506
3506
  constructor(value, sourceSpan) {
3507
3507
  this.value = value;
@@ -3882,7 +3882,7 @@ function visitAll(visitor, nodes) {
3882
3882
  return result;
3883
3883
  }
3884
3884
 
3885
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
3885
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
3886
3886
  var Message = class {
3887
3887
  constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
3888
3888
  this.nodes = nodes;
@@ -4020,7 +4020,7 @@ var LocalizeMessageStringVisitor = class {
4020
4020
  }
4021
4021
  };
4022
4022
 
4023
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
4023
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
4024
4024
  var _Visitor = class {
4025
4025
  visitTag(tag) {
4026
4026
  const strAttrs = this._serializeAttributes(tag.attrs);
@@ -4048,12 +4048,12 @@ ${doctype.dtd}
4048
4048
  };
4049
4049
  var _visitor = new _Visitor();
4050
4050
 
4051
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
4051
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
4052
4052
  function toPublicName(internalName) {
4053
4053
  return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
4054
4054
  }
4055
4055
 
4056
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
4056
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
4057
4057
  var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
4058
4058
  var TRANSLATION_VAR_PREFIX = "i18n_";
4059
4059
  var I18N_ATTR = "i18n";
@@ -4155,7 +4155,7 @@ function declareI18nVariable(variable2) {
4155
4155
  return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
4156
4156
  }
4157
4157
 
4158
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
4158
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
4159
4159
  var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
4160
4160
  var TEMPORARY_NAME = "_t";
4161
4161
  var CONTEXT_NAME = "ctx";
@@ -4354,7 +4354,7 @@ function getAttrsForDirectiveMatching(elOrTpl) {
4354
4354
  }
4355
4355
  });
4356
4356
  elOrTpl.inputs.forEach((i) => {
4357
- if (i.type === 0) {
4357
+ if (i.type === 0 || i.type === 5) {
4358
4358
  attributesMap[i.name] = "";
4359
4359
  }
4360
4360
  });
@@ -4399,7 +4399,7 @@ function getInstructionStatements(instructions) {
4399
4399
  return statements;
4400
4400
  }
4401
4401
 
4402
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
4402
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
4403
4403
  function compileInjectable(meta, resolveForwardRefs) {
4404
4404
  let result = null;
4405
4405
  const factoryMeta = {
@@ -4484,7 +4484,7 @@ function createFactoryFunction(type) {
4484
4484
  return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
4485
4485
  }
4486
4486
 
4487
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
4487
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
4488
4488
  var UNUSABLE_INTERPOLATION_REGEXPS = [
4489
4489
  /^\s*$/,
4490
4490
  /[<>]/,
@@ -4506,7 +4506,7 @@ function assertInterpolationSymbols(identifier, value) {
4506
4506
  }
4507
4507
  }
4508
4508
 
4509
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
4509
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
4510
4510
  var InterpolationConfig = class {
4511
4511
  static fromArray(markers) {
4512
4512
  if (!markers) {
@@ -4523,7 +4523,7 @@ var InterpolationConfig = class {
4523
4523
  var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
4524
4524
  var DEFAULT_CONTAINER_BLOCKS = /* @__PURE__ */ new Set(["switch"]);
4525
4525
 
4526
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/chars.mjs
4526
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
4527
4527
  var $EOF = 0;
4528
4528
  var $BSPACE = 8;
4529
4529
  var $TAB = 9;
@@ -4605,7 +4605,7 @@ function isQuote(code) {
4605
4605
  return code === $SQ || code === $DQ || code === $BT;
4606
4606
  }
4607
4607
 
4608
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/parse_util.mjs
4608
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
4609
4609
  var ParseLocation = class {
4610
4610
  constructor(file, offset, line, col) {
4611
4611
  this.file = file;
@@ -4752,7 +4752,7 @@ function sanitizeIdentifier(name) {
4752
4752
  return name.replace(/\W/g, "_");
4753
4753
  }
4754
4754
 
4755
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
4755
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
4756
4756
  var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
4757
4757
  var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
4758
4758
  constructor() {
@@ -4845,7 +4845,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
4845
4845
  }
4846
4846
  };
4847
4847
 
4848
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
4848
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
4849
4849
  var policy;
4850
4850
  function getPolicy() {
4851
4851
  if (policy === void 0) {
@@ -4883,7 +4883,7 @@ function newTrustedFunctionForJIT(...args) {
4883
4883
  return fn2.bind(_global);
4884
4884
  }
4885
4885
 
4886
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
4886
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
4887
4887
  var JitEvaluator = class {
4888
4888
  evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
4889
4889
  const converter = new JitEmitterVisitor(refResolver);
@@ -4974,7 +4974,7 @@ function isUseStrictStatement(statement) {
4974
4974
  return statement.isEquivalent(literal("use strict").toStmt());
4975
4975
  }
4976
4976
 
4977
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
4977
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
4978
4978
  function compileInjector(meta) {
4979
4979
  const definitionMap = new DefinitionMap();
4980
4980
  if (meta.providers !== null) {
@@ -4991,7 +4991,7 @@ function createInjectorType(meta) {
4991
4991
  return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
4992
4992
  }
4993
4993
 
4994
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
4994
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
4995
4995
  var R3JitReflector = class {
4996
4996
  constructor(context) {
4997
4997
  this.context = context;
@@ -5007,7 +5007,7 @@ var R3JitReflector = class {
5007
5007
  }
5008
5008
  };
5009
5009
 
5010
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
5010
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
5011
5011
  var R3SelectorScopeMode;
5012
5012
  (function(R3SelectorScopeMode2) {
5013
5013
  R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
@@ -5148,7 +5148,7 @@ function tupleOfTypes(types) {
5148
5148
  return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
5149
5149
  }
5150
5150
 
5151
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
5151
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
5152
5152
  function compilePipeFromMetadata(metadata) {
5153
5153
  const definitionMapValues = [];
5154
5154
  definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
@@ -5169,7 +5169,7 @@ function createPipeType(metadata) {
5169
5169
  ]));
5170
5170
  }
5171
5171
 
5172
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
5172
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
5173
5173
  var R3TemplateDependencyKind;
5174
5174
  (function(R3TemplateDependencyKind2) {
5175
5175
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
@@ -5177,7 +5177,7 @@ var R3TemplateDependencyKind;
5177
5177
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
5178
5178
  })(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
5179
5179
 
5180
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
5180
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
5181
5181
  var ParserError = class {
5182
5182
  constructor(message, input, errLocation, ctxLocation) {
5183
5183
  this.input = input;
@@ -5809,6 +5809,7 @@ var ParsedPropertyType;
5809
5809
  ParsedPropertyType2[ParsedPropertyType2["DEFAULT"] = 0] = "DEFAULT";
5810
5810
  ParsedPropertyType2[ParsedPropertyType2["LITERAL_ATTR"] = 1] = "LITERAL_ATTR";
5811
5811
  ParsedPropertyType2[ParsedPropertyType2["ANIMATION"] = 2] = "ANIMATION";
5812
+ ParsedPropertyType2[ParsedPropertyType2["TWO_WAY"] = 3] = "TWO_WAY";
5812
5813
  })(ParsedPropertyType || (ParsedPropertyType = {}));
5813
5814
  var ParsedEvent = class {
5814
5815
  constructor(name, targetOrPhase, type, handler, sourceSpan, handlerSpan, keySpan) {
@@ -5843,7 +5844,7 @@ var BoundElementProperty = class {
5843
5844
  }
5844
5845
  };
5845
5846
 
5846
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
5847
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
5847
5848
  var _EventHandlerVars = class {
5848
5849
  };
5849
5850
  var EventHandlerVars = _EventHandlerVars;
@@ -6484,7 +6485,7 @@ var BuiltinFunctionCall = class extends Call {
6484
6485
  }
6485
6486
  };
6486
6487
 
6487
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
6488
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
6488
6489
  var _SECURITY_SCHEMA;
6489
6490
  function SECURITY_SCHEMA() {
6490
6491
  if (!_SECURITY_SCHEMA) {
@@ -6542,7 +6543,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
6542
6543
  return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
6543
6544
  }
6544
6545
 
6545
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/shadow_css.mjs
6546
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
6546
6547
  var animationKeywords = /* @__PURE__ */ new Set([
6547
6548
  "inherit",
6548
6549
  "initial",
@@ -7014,7 +7015,7 @@ function repeatGroups(groups, multiples) {
7014
7015
  }
7015
7016
  }
7016
7017
 
7017
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
7018
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
7018
7019
  var OpKind;
7019
7020
  (function(OpKind2) {
7020
7021
  OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
@@ -7173,7 +7174,7 @@ var TemplateKind;
7173
7174
  TemplateKind2[TemplateKind2["Block"] = 2] = "Block";
7174
7175
  })(TemplateKind || (TemplateKind = {}));
7175
7176
 
7176
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
7177
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
7177
7178
  var ConsumesSlot = Symbol("ConsumesSlot");
7178
7179
  var DependsOnSlotContext = Symbol("DependsOnSlotContext");
7179
7180
  var ConsumesVarsTrait = Symbol("ConsumesVars");
@@ -7205,7 +7206,7 @@ function hasUsesVarOffsetTrait(expr) {
7205
7206
  return expr[UsesVarOffset] === true;
7206
7207
  }
7207
7208
 
7208
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
7209
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
7209
7210
  function createStatementOp(statement) {
7210
7211
  return __spreadValues({
7211
7212
  kind: OpKind.Statement,
@@ -7227,7 +7228,7 @@ var NEW_OP = {
7227
7228
  next: null
7228
7229
  };
7229
7230
 
7230
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
7231
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
7231
7232
  function createInterpolateTextOp(xref, interpolation, sourceSpan) {
7232
7233
  return __spreadValues(__spreadValues(__spreadValues({
7233
7234
  kind: OpKind.InterpolateText,
@@ -7393,7 +7394,7 @@ function createI18nApplyOp(owner, handle, sourceSpan) {
7393
7394
  }, NEW_OP);
7394
7395
  }
7395
7396
 
7396
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
7397
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
7397
7398
  var _a;
7398
7399
  var _b;
7399
7400
  var _c;
@@ -8225,7 +8226,7 @@ function isStringLiteral(expr) {
8225
8226
  return expr instanceof LiteralExpr && typeof expr.value === "string";
8226
8227
  }
8227
8228
 
8228
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
8229
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
8229
8230
  var _OpList = class {
8230
8231
  constructor() {
8231
8232
  this.debugListId = _OpList.nextListId++;
@@ -8416,14 +8417,14 @@ var OpList = _OpList;
8416
8417
  _OpList.nextListId = 0;
8417
8418
  })();
8418
8419
 
8419
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
8420
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
8420
8421
  var SlotHandle = class {
8421
8422
  constructor() {
8422
8423
  this.slot = null;
8423
8424
  }
8424
8425
  };
8425
8426
 
8426
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
8427
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
8427
8428
  var elementContainerOpKinds = /* @__PURE__ */ new Set([
8428
8429
  OpKind.Element,
8429
8430
  OpKind.ElementStart,
@@ -8592,7 +8593,7 @@ function createExtractedAttributeOp(target, bindingKind, namespace, name, expres
8592
8593
  trustedValueFn: null
8593
8594
  }, NEW_OP);
8594
8595
  }
8595
- function createDeferOp(xref, main, mainSlot, metadata, sourceSpan) {
8596
+ function createDeferOp(xref, main, mainSlot, metadata, resolverFn, sourceSpan) {
8596
8597
  return __spreadProps(__spreadValues(__spreadValues({
8597
8598
  kind: OpKind.Defer,
8598
8599
  xref,
@@ -8611,7 +8612,7 @@ function createDeferOp(xref, main, mainSlot, metadata, sourceSpan) {
8611
8612
  errorView: null,
8612
8613
  errorSlot: null,
8613
8614
  metadata,
8614
- resolverFn: null,
8615
+ resolverFn,
8615
8616
  sourceSpan
8616
8617
  }, NEW_OP), TRAIT_CONSUMES_SLOT), {
8617
8618
  numSlotsUsed: 2
@@ -8710,7 +8711,7 @@ function createI18nAttributesOp(xref, handle, target) {
8710
8711
  }, NEW_OP), TRAIT_CONSUMES_SLOT);
8711
8712
  }
8712
8713
 
8713
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
8714
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
8714
8715
  function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext, securityContext, sourceSpan) {
8715
8716
  return __spreadValues(__spreadValues({
8716
8717
  kind: OpKind.HostProperty,
@@ -8724,10 +8725,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext,
8724
8725
  }, TRAIT_CONSUMES_VARS), NEW_OP);
8725
8726
  }
8726
8727
 
8727
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
8728
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
8728
8729
  var CTX_REF = "CTX_REF_MARKER";
8729
8730
 
8730
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
8731
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
8731
8732
  var CompilationJobKind;
8732
8733
  (function(CompilationJobKind2) {
8733
8734
  CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
@@ -8747,11 +8748,12 @@ var CompilationJob = class {
8747
8748
  }
8748
8749
  };
8749
8750
  var ComponentCompilationJob = class extends CompilationJob {
8750
- constructor(componentName, pool, compatibility, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta) {
8751
+ constructor(componentName, pool, compatibility, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta, allDeferrableDepsFn) {
8751
8752
  super(componentName, pool, compatibility);
8752
8753
  this.relativeContextFilePath = relativeContextFilePath;
8753
8754
  this.i18nUseExternalIds = i18nUseExternalIds;
8754
8755
  this.deferBlocksMeta = deferBlocksMeta;
8756
+ this.allDeferrableDepsFn = allDeferrableDepsFn;
8755
8757
  this.kind = CompilationJobKind.Tmpl;
8756
8758
  this.fnSuffix = "Template";
8757
8759
  this.views = /* @__PURE__ */ new Map();
@@ -8834,7 +8836,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
8834
8836
  }
8835
8837
  };
8836
8838
 
8837
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
8839
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
8838
8840
  function deleteAnyCasts(job) {
8839
8841
  for (const unit of job.units) {
8840
8842
  for (const op of unit.ops()) {
@@ -8852,7 +8854,7 @@ function removeAnys(e) {
8852
8854
  return e;
8853
8855
  }
8854
8856
 
8855
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
8857
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
8856
8858
  function applyI18nExpressions(job) {
8857
8859
  const i18nContexts = /* @__PURE__ */ new Map();
8858
8860
  for (const unit of job.units) {
@@ -8895,7 +8897,7 @@ function needsApplication(i18nContexts, op) {
8895
8897
  return false;
8896
8898
  }
8897
8899
 
8898
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
8900
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
8899
8901
  function assignI18nSlotDependencies(job) {
8900
8902
  for (const unit of job.units) {
8901
8903
  let updateOp = unit.update.head;
@@ -8940,7 +8942,7 @@ function assignI18nSlotDependencies(job) {
8940
8942
  }
8941
8943
  }
8942
8944
 
8943
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
8945
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
8944
8946
  function createOpXrefMap(unit) {
8945
8947
  const map = /* @__PURE__ */ new Map();
8946
8948
  for (const op of unit.create) {
@@ -8955,7 +8957,7 @@ function createOpXrefMap(unit) {
8955
8957
  return map;
8956
8958
  }
8957
8959
 
8958
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
8960
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
8959
8961
  function extractAttributes(job) {
8960
8962
  for (const unit of job.units) {
8961
8963
  const elements = createOpXrefMap(unit);
@@ -9057,7 +9059,7 @@ function extractAttributeOp(unit, op, elements) {
9057
9059
  }
9058
9060
  }
9059
9061
 
9060
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
9062
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
9061
9063
  function lookupElement2(elements, xref) {
9062
9064
  const el = elements.get(xref);
9063
9065
  if (el === void 0) {
@@ -9108,7 +9110,7 @@ function specializeBindings(job) {
9108
9110
  }
9109
9111
  }
9110
9112
 
9111
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
9113
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
9112
9114
  var CHAINABLE = /* @__PURE__ */ new Set([
9113
9115
  Identifiers.attribute,
9114
9116
  Identifiers.classProp,
@@ -9174,7 +9176,7 @@ function chainOperationsInList(opList) {
9174
9176
  }
9175
9177
  }
9176
9178
 
9177
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
9179
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
9178
9180
  function collapseSingletonInterpolations(job) {
9179
9181
  for (const unit of job.units) {
9180
9182
  for (const op of unit.update) {
@@ -9186,7 +9188,7 @@ function collapseSingletonInterpolations(job) {
9186
9188
  }
9187
9189
  }
9188
9190
 
9189
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
9191
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
9190
9192
  function generateConditionalExpressions(job) {
9191
9193
  for (const unit of job.units) {
9192
9194
  for (const op of unit.ops()) {
@@ -9223,7 +9225,7 @@ function generateConditionalExpressions(job) {
9223
9225
  }
9224
9226
  }
9225
9227
 
9226
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
9228
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
9227
9229
  var BINARY_OPERATORS = /* @__PURE__ */ new Map([
9228
9230
  ["&&", BinaryOperator.And],
9229
9231
  [">", BinaryOperator.Bigger],
@@ -9274,7 +9276,7 @@ function literalOrArrayLiteral(value) {
9274
9276
  return literal(value);
9275
9277
  }
9276
9278
 
9277
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
9279
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
9278
9280
  function collectElementConsts(job) {
9279
9281
  const allElementAttributes = /* @__PURE__ */ new Map();
9280
9282
  for (const unit of job.units) {
@@ -9436,7 +9438,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
9436
9438
  return literalArr(attrArray);
9437
9439
  }
9438
9440
 
9439
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
9441
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
9440
9442
  function convertI18nBindings(job) {
9441
9443
  const i18nAttributesByElem = /* @__PURE__ */ new Map();
9442
9444
  for (const unit of job.units) {
@@ -9477,14 +9479,18 @@ function convertI18nBindings(job) {
9477
9479
  }
9478
9480
  }
9479
9481
 
9480
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
9482
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
9481
9483
  function createDeferDepsFns(job) {
9484
+ var _a2;
9482
9485
  for (const unit of job.units) {
9483
9486
  for (const op of unit.create) {
9484
9487
  if (op.kind === OpKind.Defer) {
9485
9488
  if (op.metadata.deps.length === 0) {
9486
9489
  continue;
9487
9490
  }
9491
+ if (op.resolverFn !== null) {
9492
+ continue;
9493
+ }
9488
9494
  const dependencies = [];
9489
9495
  for (const dep of op.metadata.deps) {
9490
9496
  if (dep.isDeferrable) {
@@ -9499,9 +9505,10 @@ function createDeferDepsFns(job) {
9499
9505
  if (op.handle.slot === null) {
9500
9506
  throw new Error("AssertionError: slot must be assigned bfore extracting defer deps functions");
9501
9507
  }
9508
+ const fullPathName = (_a2 = unit.fnName) == null ? void 0 : _a2.replace(`_Template`, ``);
9502
9509
  op.resolverFn = job.pool.getSharedFunctionReference(
9503
9510
  depsFnExpr,
9504
- `${job.componentName}_Defer_${op.handle.slot}_DepsFn`,
9511
+ `${fullPathName}_Defer_${op.handle.slot}_DepsFn`,
9505
9512
  false
9506
9513
  );
9507
9514
  }
@@ -9509,7 +9516,7 @@ function createDeferDepsFns(job) {
9509
9516
  }
9510
9517
  }
9511
9518
 
9512
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
9519
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
9513
9520
  function createI18nContexts(job) {
9514
9521
  const attrContextByMessage = /* @__PURE__ */ new Map();
9515
9522
  for (const unit of job.units) {
@@ -9587,7 +9594,7 @@ function createI18nContexts(job) {
9587
9594
  }
9588
9595
  }
9589
9596
 
9590
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
9597
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
9591
9598
  function deduplicateTextBindings(job) {
9592
9599
  const seen = /* @__PURE__ */ new Map();
9593
9600
  for (const unit of job.units) {
@@ -9609,7 +9616,7 @@ function deduplicateTextBindings(job) {
9609
9616
  }
9610
9617
  }
9611
9618
 
9612
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
9619
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
9613
9620
  function configureDeferInstructions(job) {
9614
9621
  for (const unit of job.units) {
9615
9622
  for (const op of unit.create) {
@@ -9626,7 +9633,7 @@ function configureDeferInstructions(job) {
9626
9633
  }
9627
9634
  }
9628
9635
 
9629
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
9636
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
9630
9637
  function resolveDeferTargetNames(job) {
9631
9638
  const scopes = /* @__PURE__ */ new Map();
9632
9639
  function getScopeForView2(view) {
@@ -9720,7 +9727,7 @@ var Scope = class {
9720
9727
  }
9721
9728
  };
9722
9729
 
9723
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
9730
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
9724
9731
  var REPLACEMENTS = /* @__PURE__ */ new Map([
9725
9732
  [OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
9726
9733
  [OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
@@ -9747,7 +9754,7 @@ function collapseEmptyInstructions(job) {
9747
9754
  }
9748
9755
  }
9749
9756
 
9750
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
9757
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
9751
9758
  function expandSafeReads(job) {
9752
9759
  for (const unit of job.units) {
9753
9760
  for (const op of unit.ops()) {
@@ -9883,7 +9890,7 @@ function ternaryTransform(e) {
9883
9890
  return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
9884
9891
  }
9885
9892
 
9886
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
9893
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
9887
9894
  var ESCAPE = "\uFFFD";
9888
9895
  var ELEMENT_MARKER = "#";
9889
9896
  var TEMPLATE_MARKER = "*";
@@ -10019,7 +10026,7 @@ function formatValue(value) {
10019
10026
  return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
10020
10027
  }
10021
10028
 
10022
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
10029
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
10023
10030
  function generateAdvance(job) {
10024
10031
  for (const unit of job.units) {
10025
10032
  const slotMap = /* @__PURE__ */ new Map();
@@ -10051,7 +10058,7 @@ function generateAdvance(job) {
10051
10058
  }
10052
10059
  }
10053
10060
 
10054
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
10061
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
10055
10062
  function generateProjectionDefs(job) {
10056
10063
  const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
10057
10064
  const selectors = [];
@@ -10075,7 +10082,7 @@ function generateProjectionDefs(job) {
10075
10082
  }
10076
10083
  }
10077
10084
 
10078
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
10085
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
10079
10086
  function generateVariables(job) {
10080
10087
  recursivelyProcessView(job.root, null);
10081
10088
  }
@@ -10168,7 +10175,7 @@ function generateVariablesInScopeForView(view, scope) {
10168
10175
  return newOps;
10169
10176
  }
10170
10177
 
10171
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
10178
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
10172
10179
  function collectConstExpressions(job) {
10173
10180
  for (const unit of job.units) {
10174
10181
  for (const op of unit.ops()) {
@@ -10182,7 +10189,7 @@ function collectConstExpressions(job) {
10182
10189
  }
10183
10190
  }
10184
10191
 
10185
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
10192
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
10186
10193
  var STYLE_DOT = "style.";
10187
10194
  var CLASS_DOT = "class.";
10188
10195
  var STYLE_BANG = "style!";
@@ -10240,7 +10247,7 @@ function parseProperty(name) {
10240
10247
  return { property: property2, suffix };
10241
10248
  }
10242
10249
 
10243
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/map_util.mjs
10250
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
10244
10251
  function mapLiteral(obj, quoted = false) {
10245
10252
  return literalMap(Object.keys(obj).map((key) => ({
10246
10253
  key,
@@ -10249,7 +10256,7 @@ function mapLiteral(obj, quoted = false) {
10249
10256
  })));
10250
10257
  }
10251
10258
 
10252
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
10259
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
10253
10260
  var IcuSerializerVisitor = class {
10254
10261
  visitText(text2) {
10255
10262
  return text2.value;
@@ -10283,7 +10290,7 @@ function serializeIcuNode(icu) {
10283
10290
  return icu.visit(serializer);
10284
10291
  }
10285
10292
 
10286
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
10293
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
10287
10294
  var TokenType;
10288
10295
  (function(TokenType2) {
10289
10296
  TokenType2[TokenType2["Character"] = 0] = "Character";
@@ -10644,7 +10651,7 @@ function parseIntAutoRadix(text2) {
10644
10651
  return result;
10645
10652
  }
10646
10653
 
10647
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
10654
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
10648
10655
  var SplitInterpolation = class {
10649
10656
  constructor(strings, expressions, offsets) {
10650
10657
  this.strings = strings;
@@ -11538,7 +11545,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
11538
11545
  return offsetMap;
11539
11546
  }
11540
11547
 
11541
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
11548
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
11542
11549
  var NodeWithI18n = class {
11543
11550
  constructor(sourceSpan, i18n2) {
11544
11551
  this.sourceSpan = sourceSpan;
@@ -11690,11 +11697,11 @@ var RecursiveVisitor = class {
11690
11697
  }
11691
11698
  };
11692
11699
 
11693
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
11700
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
11694
11701
  var ElementSchemaRegistry = class {
11695
11702
  };
11696
11703
 
11697
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
11704
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
11698
11705
  var BOOLEAN = "boolean";
11699
11706
  var NUMBER = "number";
11700
11707
  var STRING = "string";
@@ -12047,7 +12054,7 @@ function _isPixelDimensionStyle(prop) {
12047
12054
  }
12048
12055
  }
12049
12056
 
12050
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
12057
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
12051
12058
  var HtmlTagDefinition = class {
12052
12059
  constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
12053
12060
  this.closedByChildren = {};
@@ -12165,7 +12172,7 @@ function getHtmlTagDefinition(tagName) {
12165
12172
  return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
12166
12173
  }
12167
12174
 
12168
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
12175
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
12169
12176
  var TAG_TO_PLACEHOLDER_NAMES = {
12170
12177
  "A": "LINK",
12171
12178
  "B": "BOLD_TEXT",
@@ -12287,7 +12294,7 @@ var PlaceholderRegistry = class {
12287
12294
  }
12288
12295
  };
12289
12296
 
12290
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
12297
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
12291
12298
  var _expParser = new Parser(new Lexer());
12292
12299
  function createI18nMessageFactory(interpolationConfig, containerBlocks) {
12293
12300
  const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);
@@ -12466,14 +12473,14 @@ function extractPlaceholderName(input) {
12466
12473
  return input.split(_CUSTOM_PH_EXP)[2];
12467
12474
  }
12468
12475
 
12469
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
12476
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
12470
12477
  var I18nError = class extends ParseError {
12471
12478
  constructor(span, msg) {
12472
12479
  super(span, msg);
12473
12480
  }
12474
12481
  };
12475
12482
 
12476
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
12483
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
12477
12484
  var NAMED_ENTITIES = {
12478
12485
  "AElig": "\xC6",
12479
12486
  "AMP": "&",
@@ -14604,7 +14611,7 @@ var NAMED_ENTITIES = {
14604
14611
  var NGSP_UNICODE = "\uE500";
14605
14612
  NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
14606
14613
 
14607
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
14614
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
14608
14615
  var TokenError = class extends ParseError {
14609
14616
  constructor(errorMsg, tokenType, span) {
14610
14617
  super(span, errorMsg);
@@ -15525,7 +15532,7 @@ var CursorError = class {
15525
15532
  }
15526
15533
  };
15527
15534
 
15528
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
15535
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
15529
15536
  var TreeError = class extends ParseError {
15530
15537
  static create(elementName, span, msg) {
15531
15538
  return new TreeError(elementName, span, msg);
@@ -15909,7 +15916,7 @@ function decodeEntity(match, entity) {
15909
15916
  return match;
15910
15917
  }
15911
15918
 
15912
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
15919
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
15913
15920
  var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
15914
15921
  "iframe|srcdoc",
15915
15922
  "*|innerhtml",
@@ -15924,7 +15931,7 @@ function isTrustedTypesSink(tagName, propName) {
15924
15931
  return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
15925
15932
  }
15926
15933
 
15927
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
15934
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
15928
15935
  var setI18nRefs = (htmlNode, i18nNode) => {
15929
15936
  if (htmlNode instanceof NodeWithI18n) {
15930
15937
  if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
@@ -16081,7 +16088,7 @@ function i18nMetaToJSDoc(meta) {
16081
16088
  return jsDocComment(tags);
16082
16089
  }
16083
16090
 
16084
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
16091
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
16085
16092
  var GOOG_GET_MSG = "goog.getMsg";
16086
16093
  function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
16087
16094
  const messageString = serializeI18nMessageForGetMsg(message);
@@ -16132,7 +16139,7 @@ function serializeI18nMessageForGetMsg(message) {
16132
16139
  return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
16133
16140
  }
16134
16141
 
16135
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
16142
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
16136
16143
  function createLocalizeStatements(variable2, message, params) {
16137
16144
  const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
16138
16145
  const sourceSpan = getSourceSpan(message);
@@ -16221,7 +16228,7 @@ function createEmptyMessagePart(location) {
16221
16228
  return new LiteralPiece("", new ParseSourceSpan(location, location));
16222
16229
  }
16223
16230
 
16224
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
16231
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
16225
16232
  var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
16226
16233
  var TRANSLATION_VAR_PREFIX2 = "i18n_";
16227
16234
  var I18N_ICU_MAPPING_PREFIX2 = "I18N_EXP_";
@@ -16382,7 +16389,7 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
16382
16389
  return variable(name);
16383
16390
  }
16384
16391
 
16385
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
16392
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
16386
16393
  function convertI18nText(job) {
16387
16394
  var _a2, _b2, _c2;
16388
16395
  for (const unit of job.units) {
@@ -16452,7 +16459,7 @@ function convertI18nText(job) {
16452
16459
  }
16453
16460
  }
16454
16461
 
16455
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
16462
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
16456
16463
  function liftLocalRefs(job) {
16457
16464
  for (const unit of job.units) {
16458
16465
  for (const op of unit.create) {
@@ -16482,7 +16489,7 @@ function serializeLocalRefs(refs) {
16482
16489
  return literalArr(constRefs);
16483
16490
  }
16484
16491
 
16485
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
16492
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
16486
16493
  function emitNamespaceChanges(job) {
16487
16494
  for (const unit of job.units) {
16488
16495
  let activeNamespace = Namespace.HTML;
@@ -16498,7 +16505,7 @@ function emitNamespaceChanges(job) {
16498
16505
  }
16499
16506
  }
16500
16507
 
16501
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
16508
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
16502
16509
  function parse(value) {
16503
16510
  const styles = [];
16504
16511
  let i = 0;
@@ -16559,7 +16566,7 @@ function hyphenate2(value) {
16559
16566
  }).toLowerCase();
16560
16567
  }
16561
16568
 
16562
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
16569
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
16563
16570
  function nameFunctionsAndVariables(job) {
16564
16571
  addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
16565
16572
  }
@@ -16679,7 +16686,7 @@ function stripImportant(name) {
16679
16686
  return name;
16680
16687
  }
16681
16688
 
16682
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
16689
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
16683
16690
  function mergeNextContextExpressions(job) {
16684
16691
  for (const unit of job.units) {
16685
16692
  for (const op of unit.create) {
@@ -16725,7 +16732,7 @@ function mergeNextContextsInOps(ops) {
16725
16732
  }
16726
16733
  }
16727
16734
 
16728
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
16735
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
16729
16736
  var CONTAINER_TAG = "ng-container";
16730
16737
  function generateNgContainerOps(job) {
16731
16738
  for (const unit of job.units) {
@@ -16742,7 +16749,7 @@ function generateNgContainerOps(job) {
16742
16749
  }
16743
16750
  }
16744
16751
 
16745
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
16752
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
16746
16753
  function lookupElement3(elements, xref) {
16747
16754
  const el = elements.get(xref);
16748
16755
  if (el === void 0) {
@@ -16772,7 +16779,7 @@ function disableBindings(job) {
16772
16779
  }
16773
16780
  }
16774
16781
 
16775
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
16782
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
16776
16783
  function generateNullishCoalesceExpressions(job) {
16777
16784
  for (const unit of job.units) {
16778
16785
  for (const op of unit.ops()) {
@@ -16788,7 +16795,7 @@ function generateNullishCoalesceExpressions(job) {
16788
16795
  }
16789
16796
  }
16790
16797
 
16791
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
16798
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
16792
16799
  function kindTest(kind) {
16793
16800
  return (op) => op.kind === kind;
16794
16801
  }
@@ -16870,7 +16877,7 @@ function keepLast(ops) {
16870
16877
  return ops.slice(ops.length - 1);
16871
16878
  }
16872
16879
 
16873
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
16880
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
16874
16881
  function parseExtractedStyles(job) {
16875
16882
  const elements = /* @__PURE__ */ new Map();
16876
16883
  for (const unit of job.units) {
@@ -16905,7 +16912,7 @@ function parseExtractedStyles(job) {
16905
16912
  }
16906
16913
  }
16907
16914
 
16908
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
16915
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
16909
16916
  function removeContentSelectors(job) {
16910
16917
  for (const unit of job.units) {
16911
16918
  const elements = createOpXrefMap(unit);
@@ -16932,7 +16939,7 @@ function lookupInXrefMap(map, xref) {
16932
16939
  return el;
16933
16940
  }
16934
16941
 
16935
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
16942
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
16936
16943
  function createPipes(job) {
16937
16944
  for (const unit of job.units) {
16938
16945
  processPipeBindingsInView(unit);
@@ -16980,7 +16987,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
16980
16987
  throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
16981
16988
  }
16982
16989
 
16983
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
16990
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
16984
16991
  function createVariadicPipes(job) {
16985
16992
  for (const unit of job.units) {
16986
16993
  for (const op of unit.update) {
@@ -16997,7 +17004,7 @@ function createVariadicPipes(job) {
16997
17004
  }
16998
17005
  }
16999
17006
 
17000
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
17007
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
17001
17008
  function propagateI18nBlocks(job) {
17002
17009
  propagateI18nBlocksToTemplates(job.root, 0);
17003
17010
  }
@@ -17051,7 +17058,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
17051
17058
  }
17052
17059
  }
17053
17060
 
17054
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
17061
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
17055
17062
  function extractPureFunctions(job) {
17056
17063
  for (const view of job.units) {
17057
17064
  for (const op of view.ops()) {
@@ -17093,7 +17100,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
17093
17100
  }
17094
17101
  };
17095
17102
 
17096
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
17103
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
17097
17104
  function generatePureLiteralStructures(job) {
17098
17105
  for (const unit of job.units) {
17099
17106
  for (const op of unit.update) {
@@ -17140,7 +17147,7 @@ function transformLiteralMap(expr) {
17140
17147
  return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
17141
17148
  }
17142
17149
 
17143
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
17150
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
17144
17151
  function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
17145
17152
  return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
17146
17153
  }
@@ -17662,7 +17669,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
17662
17669
  return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
17663
17670
  }
17664
17671
 
17665
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
17672
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
17666
17673
  var GLOBAL_TARGET_RESOLVERS = /* @__PURE__ */ new Map([
17667
17674
  ["window", Identifiers.resolveWindow],
17668
17675
  ["document", Identifiers.resolveDocument],
@@ -17995,7 +18002,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
17995
18002
  return fn(params, handlerStmts, void 0, void 0, name);
17996
18003
  }
17997
18004
 
17998
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
18005
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
17999
18006
  function removeEmptyBindings(job) {
18000
18007
  for (const unit of job.units) {
18001
18008
  for (const op of unit.update) {
@@ -18016,7 +18023,7 @@ function removeEmptyBindings(job) {
18016
18023
  }
18017
18024
  }
18018
18025
 
18019
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
18026
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
18020
18027
  function removeI18nContexts(job) {
18021
18028
  for (const unit of job.units) {
18022
18029
  for (const op of unit.create) {
@@ -18032,7 +18039,7 @@ function removeI18nContexts(job) {
18032
18039
  }
18033
18040
  }
18034
18041
 
18035
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
18042
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
18036
18043
  function removeUnusedI18nAttributesOps(job) {
18037
18044
  for (const unit of job.units) {
18038
18045
  const ownersWithI18nExpressions = /* @__PURE__ */ new Set();
@@ -18054,7 +18061,7 @@ function removeUnusedI18nAttributesOps(job) {
18054
18061
  }
18055
18062
  }
18056
18063
 
18057
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
18064
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
18058
18065
  function resolveContexts(job) {
18059
18066
  for (const unit of job.units) {
18060
18067
  processLexicalScope(unit, unit.create);
@@ -18095,7 +18102,7 @@ function processLexicalScope(view, ops) {
18095
18102
  }
18096
18103
  }
18097
18104
 
18098
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
18105
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
18099
18106
  function resolveDollarEvent(job) {
18100
18107
  for (const unit of job.units) {
18101
18108
  transformDollarEvent(unit, unit.create);
@@ -18116,7 +18123,7 @@ function transformDollarEvent(unit, ops) {
18116
18123
  }
18117
18124
  }
18118
18125
 
18119
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
18126
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
18120
18127
  function resolveI18nElementPlaceholders(job) {
18121
18128
  const i18nContexts = /* @__PURE__ */ new Map();
18122
18129
  const elements = /* @__PURE__ */ new Map();
@@ -18295,7 +18302,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags) {
18295
18302
  params.set(placeholder, values);
18296
18303
  }
18297
18304
 
18298
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
18305
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
18299
18306
  function resolveI18nExpressionPlaceholders(job) {
18300
18307
  var _a2;
18301
18308
  const subTemplateIndicies = /* @__PURE__ */ new Map();
@@ -18348,7 +18355,7 @@ function updatePlaceholder(op, value, i18nContexts, icuPlaceholders) {
18348
18355
  }
18349
18356
  }
18350
18357
 
18351
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
18358
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
18352
18359
  function resolveNames(job) {
18353
18360
  for (const unit of job.units) {
18354
18361
  processLexicalScope2(unit, unit.create, null);
@@ -18412,7 +18419,7 @@ function processLexicalScope2(unit, ops, savedView) {
18412
18419
  }
18413
18420
  }
18414
18421
 
18415
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
18422
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
18416
18423
  var sanitizerFns = /* @__PURE__ */ new Map([
18417
18424
  [SecurityContext.HTML, Identifiers.sanitizeHtml],
18418
18425
  [SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],
@@ -18482,7 +18489,7 @@ function getOnlySecurityContext(securityContext) {
18482
18489
  return securityContext;
18483
18490
  }
18484
18491
 
18485
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
18492
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
18486
18493
  function saveAndRestoreView(job) {
18487
18494
  for (const unit of job.units) {
18488
18495
  unit.create.prepend([
@@ -18527,7 +18534,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
18527
18534
  }
18528
18535
  }
18529
18536
 
18530
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
18537
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
18531
18538
  function allocateSlots(job) {
18532
18539
  const slotMap = /* @__PURE__ */ new Map();
18533
18540
  for (const unit of job.units) {
@@ -18552,7 +18559,7 @@ function allocateSlots(job) {
18552
18559
  }
18553
18560
  }
18554
18561
 
18555
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
18562
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
18556
18563
  function specializeStyleBindings(job) {
18557
18564
  for (const unit of job.units) {
18558
18565
  for (const op of unit.update) {
@@ -18582,7 +18589,7 @@ function specializeStyleBindings(job) {
18582
18589
  }
18583
18590
  }
18584
18591
 
18585
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
18592
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
18586
18593
  function generateTemporaryVariables(job) {
18587
18594
  for (const unit of job.units) {
18588
18595
  unit.create.prepend(generateTemporaries(unit.create));
@@ -18640,7 +18647,7 @@ function assignName(names, expr) {
18640
18647
  expr.name = name;
18641
18648
  }
18642
18649
 
18643
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
18650
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
18644
18651
  function generateTrackFns(job) {
18645
18652
  for (const unit of job.units) {
18646
18653
  for (const op of unit.create) {
@@ -18673,7 +18680,7 @@ function generateTrackFns(job) {
18673
18680
  }
18674
18681
  }
18675
18682
 
18676
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
18683
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
18677
18684
  function optimizeTrackFns(job) {
18678
18685
  for (const unit of job.units) {
18679
18686
  for (const op of unit.create) {
@@ -18720,7 +18727,7 @@ function isTrackByFunctionCall(rootView, expr) {
18720
18727
  return true;
18721
18728
  }
18722
18729
 
18723
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
18730
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
18724
18731
  function generateTrackVariables(job) {
18725
18732
  for (const unit of job.units) {
18726
18733
  for (const op of unit.create) {
@@ -18741,7 +18748,7 @@ function generateTrackVariables(job) {
18741
18748
  }
18742
18749
  }
18743
18750
 
18744
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
18751
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
18745
18752
  function countVariables(job) {
18746
18753
  for (const unit of job.units) {
18747
18754
  let varCount = 0;
@@ -18849,7 +18856,7 @@ function isSingletonInterpolation(expr) {
18849
18856
  return true;
18850
18857
  }
18851
18858
 
18852
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
18859
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
18853
18860
  function optimizeVariables(job) {
18854
18861
  for (const unit of job.units) {
18855
18862
  inlineAlwaysInlineVariables(unit.create);
@@ -19099,7 +19106,7 @@ function allowConservativeInlining(decl, target) {
19099
19106
  }
19100
19107
  }
19101
19108
 
19102
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
19109
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
19103
19110
  function wrapI18nIcus(job) {
19104
19111
  for (const unit of job.units) {
19105
19112
  let currentI18nOp = null;
@@ -19129,7 +19136,7 @@ function wrapI18nIcus(job) {
19129
19136
  }
19130
19137
  }
19131
19138
 
19132
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
19139
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
19133
19140
  var phases = [
19134
19141
  { kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
19135
19142
  { kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
@@ -19171,7 +19178,6 @@ var phases = [
19171
19178
  { kind: CompilationJobKind.Both, fn: expandSafeReads },
19172
19179
  { kind: CompilationJobKind.Both, fn: generateTemporaryVariables },
19173
19180
  { kind: CompilationJobKind.Tmpl, fn: allocateSlots },
19174
- { kind: CompilationJobKind.Tmpl, fn: createDeferDepsFns },
19175
19181
  { kind: CompilationJobKind.Tmpl, fn: resolveI18nElementPlaceholders },
19176
19182
  { kind: CompilationJobKind.Tmpl, fn: resolveI18nExpressionPlaceholders },
19177
19183
  { kind: CompilationJobKind.Tmpl, fn: extractI18nMessages },
@@ -19184,6 +19190,7 @@ var phases = [
19184
19190
  { kind: CompilationJobKind.Tmpl, fn: generateAdvance },
19185
19191
  { kind: CompilationJobKind.Both, fn: optimizeVariables },
19186
19192
  { kind: CompilationJobKind.Both, fn: nameFunctionsAndVariables },
19193
+ { kind: CompilationJobKind.Tmpl, fn: createDeferDepsFns },
19187
19194
  { kind: CompilationJobKind.Tmpl, fn: mergeNextContextExpressions },
19188
19195
  { kind: CompilationJobKind.Tmpl, fn: generateNgContainerOps },
19189
19196
  { kind: CompilationJobKind.Tmpl, fn: collapseEmptyInstructions },
@@ -19294,12 +19301,12 @@ function emitHostBindingFunction(job) {
19294
19301
  );
19295
19302
  }
19296
19303
 
19297
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
19304
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
19298
19305
  var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
19299
19306
  var domSchema = new DomElementSchemaRegistry();
19300
19307
  var NG_TEMPLATE_TAG_NAME = "ng-template";
19301
- function ingestComponent(componentName, template2, constantPool, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta) {
19302
- const job = new ComponentCompilationJob(componentName, constantPool, compatibilityMode, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta);
19308
+ function ingestComponent(componentName, template2, constantPool, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta, allDeferrableDepsFn) {
19309
+ const job = new ComponentCompilationJob(componentName, constantPool, compatibilityMode, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta, allDeferrableDepsFn);
19303
19310
  ingestNodes(job.root, template2);
19304
19311
  return job;
19305
19312
  }
@@ -19354,7 +19361,7 @@ function ingestHostAttribute(job, name, value, securityContexts) {
19354
19361
  job.root.update.push(attrBinding);
19355
19362
  }
19356
19363
  function ingestHostEvent(job, event) {
19357
- const [phase, target] = event.type === 0 ? [null, event.targetOrPhase] : [event.targetOrPhase, null];
19364
+ const [phase, target] = event.type !== 1 ? [null, event.targetOrPhase] : [event.targetOrPhase, null];
19358
19365
  const eventBinding = createListenerOp(job.root.xref, new SlotHandle(), event.name, null, makeListenerHandlerOps(job.root, event.handler, event.handlerSpan), phase, target, true, event.sourceSpan);
19359
19366
  job.root.create.push(eventBinding);
19360
19367
  }
@@ -19563,7 +19570,7 @@ function ingestDeferBlock(unit, deferBlock) {
19563
19570
  const placeholder = ingestDeferView(unit, "Placeholder", (_d2 = deferBlock.placeholder) == null ? void 0 : _d2.i18n, (_e2 = deferBlock.placeholder) == null ? void 0 : _e2.children, (_f2 = deferBlock.placeholder) == null ? void 0 : _f2.sourceSpan);
19564
19571
  const error2 = ingestDeferView(unit, "Error", (_g = deferBlock.error) == null ? void 0 : _g.i18n, (_h = deferBlock.error) == null ? void 0 : _h.children, (_i = deferBlock.error) == null ? void 0 : _i.sourceSpan);
19565
19572
  const deferXref = unit.job.allocateXrefId();
19566
- const deferOp = createDeferOp(deferXref, main.xref, main.handle, blockMeta, deferBlock.sourceSpan);
19573
+ const deferOp = createDeferOp(deferXref, main.xref, main.handle, blockMeta, unit.job.allDeferrableDepsFn, deferBlock.sourceSpan);
19567
19574
  deferOp.placeholderView = (_j = placeholder == null ? void 0 : placeholder.xref) != null ? _j : null;
19568
19575
  deferOp.placeholderSlot = (_k = placeholder == null ? void 0 : placeholder.handle) != null ? _k : null;
19569
19576
  deferOp.loadingSlot = (_l = loading == null ? void 0 : loading.handle) != null ? _l : null;
@@ -19821,6 +19828,7 @@ function convertAstWithInterpolation(job, value, i18nMeta, sourceSpan) {
19821
19828
  }
19822
19829
  var BINDING_KINDS = /* @__PURE__ */ new Map([
19823
19830
  [0, BindingKind.Property],
19831
+ [5, BindingKind.Property],
19824
19832
  [1, BindingKind.Attribute],
19825
19833
  [2, BindingKind.ClassName],
19826
19834
  [3, BindingKind.StyleProperty],
@@ -19899,7 +19907,7 @@ function ingestTemplateBindings(unit, op, template2, templateKind) {
19899
19907
  function createTemplateBinding(view, xref, type, name, value, unit, securityContext, isStructuralTemplateAttribute, templateKind, i18nMessage, sourceSpan) {
19900
19908
  const isTextBinding = typeof value === "string";
19901
19909
  if (templateKind === TemplateKind.Structural) {
19902
- if (!isStructuralTemplateAttribute && (type === 0 || type === 2 || type === 3)) {
19910
+ if (!isStructuralTemplateAttribute && (type === 0 || type === 5 || type === 2 || type === 3)) {
19903
19911
  return createExtractedAttributeOp(xref, BindingKind.Property, null, name, null, null, i18nMessage, securityContext);
19904
19912
  }
19905
19913
  if (!isTextBinding && (type === 1 || type === 4)) {
@@ -19977,10 +19985,10 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
19977
19985
  return null;
19978
19986
  }
19979
19987
 
19980
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
19988
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
19981
19989
  var USE_TEMPLATE_PIPELINE = false;
19982
19990
 
19983
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
19991
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
19984
19992
  var HtmlParser = class extends Parser2 {
19985
19993
  constructor() {
19986
19994
  super(getHtmlTagDefinition);
@@ -19990,7 +19998,7 @@ var HtmlParser = class extends Parser2 {
19990
19998
  }
19991
19999
  };
19992
20000
 
19993
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
20001
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
19994
20002
  var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
19995
20003
  var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
19996
20004
  var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
@@ -20056,7 +20064,7 @@ function visitAllWithSiblings(visitor, nodes) {
20056
20064
  return result;
20057
20065
  }
20058
20066
 
20059
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
20067
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
20060
20068
  var PROPERTY_PARTS_SEPARATOR = ".";
20061
20069
  var ATTRIBUTE_PREFIX = "attr";
20062
20070
  var CLASS_PREFIX = "class";
@@ -20082,6 +20090,7 @@ var BindingParser = class {
20082
20090
  propName,
20083
20091
  expression,
20084
20092
  true,
20093
+ false,
20085
20094
  sourceSpan,
20086
20095
  sourceSpan.start.offset,
20087
20096
  void 0,
@@ -20147,7 +20156,7 @@ var BindingParser = class {
20147
20156
  } else if (binding.value) {
20148
20157
  const srcSpan = isIvyAst ? bindingSpan : sourceSpan;
20149
20158
  const valueSpan = moveParseSourceSpan(sourceSpan, binding.value.ast.sourceSpan);
20150
- this._parsePropertyAst(key, binding.value, srcSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
20159
+ this._parsePropertyAst(key, binding.value, false, srcSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
20151
20160
  } else {
20152
20161
  targetMatchableAttrs.push([key, ""]);
20153
20162
  this.parseLiteralAttr(key, null, keySpan, absoluteValueOffset, void 0, targetMatchableAttrs, targetProps, keySpan);
@@ -20182,7 +20191,7 @@ var BindingParser = class {
20182
20191
  targetProps.push(new ParsedProperty(name, this._exprParser.wrapLiteralPrimitive(value, "", absoluteOffset), ParsedPropertyType.LITERAL_ATTR, sourceSpan, keySpan, valueSpan));
20183
20192
  }
20184
20193
  }
20185
- parsePropertyBinding(name, expression, isHost, sourceSpan, absoluteOffset, valueSpan, targetMatchableAttrs, targetProps, keySpan) {
20194
+ parsePropertyBinding(name, expression, isHost, isPartOfAssignmentBinding, sourceSpan, absoluteOffset, valueSpan, targetMatchableAttrs, targetProps, keySpan) {
20186
20195
  if (name.length === 0) {
20187
20196
  this._reportError(`Property name is missing in binding`, sourceSpan);
20188
20197
  }
@@ -20203,20 +20212,20 @@ var BindingParser = class {
20203
20212
  if (isAnimationProp) {
20204
20213
  this._parseAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);
20205
20214
  } else {
20206
- this._parsePropertyAst(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
20215
+ this._parsePropertyAst(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), isPartOfAssignmentBinding, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
20207
20216
  }
20208
20217
  }
20209
20218
  parsePropertyInterpolation(name, value, sourceSpan, valueSpan, targetMatchableAttrs, targetProps, keySpan, interpolatedTokens) {
20210
20219
  const expr = this.parseInterpolation(value, valueSpan || sourceSpan, interpolatedTokens);
20211
20220
  if (expr) {
20212
- this._parsePropertyAst(name, expr, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
20221
+ this._parsePropertyAst(name, expr, false, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
20213
20222
  return true;
20214
20223
  }
20215
20224
  return false;
20216
20225
  }
20217
- _parsePropertyAst(name, ast, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps) {
20226
+ _parsePropertyAst(name, ast, isPartOfAssignmentBinding, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps) {
20218
20227
  targetMatchableAttrs.push([name, ast.source]);
20219
- targetProps.push(new ParsedProperty(name, ast, ParsedPropertyType.DEFAULT, sourceSpan, keySpan, valueSpan));
20228
+ targetProps.push(new ParsedProperty(name, ast, isPartOfAssignmentBinding ? ParsedPropertyType.TWO_WAY : ParsedPropertyType.DEFAULT, sourceSpan, keySpan, valueSpan));
20220
20229
  }
20221
20230
  _parseAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps) {
20222
20231
  if (name.length === 0) {
@@ -20276,7 +20285,7 @@ var BindingParser = class {
20276
20285
  const mappedPropName = this._schemaRegistry.getMappedPropName(boundProp.name);
20277
20286
  boundPropertyName = mapPropertyName ? mappedPropName : boundProp.name;
20278
20287
  securityContexts = calcPossibleSecurityContexts(this._schemaRegistry, elementSelector, mappedPropName, false);
20279
- bindingType = 0;
20288
+ bindingType = boundProp.type === ParsedPropertyType.TWO_WAY ? 5 : 0;
20280
20289
  if (!skipValidation) {
20281
20290
  this._validatePropertyOrAttributeName(mappedPropName, boundProp.sourceSpan, false);
20282
20291
  }
@@ -20322,7 +20331,7 @@ var BindingParser = class {
20322
20331
  const [target, eventName] = splitAtColon(name, [null, name]);
20323
20332
  const ast = this._parseAction(expression, isAssignmentEvent, handlerSpan);
20324
20333
  targetMatchableAttrs.push([name, ast.source]);
20325
- targetEvents.push(new ParsedEvent(eventName, target, 0, ast, sourceSpan, handlerSpan, keySpan));
20334
+ targetEvents.push(new ParsedEvent(eventName, target, isAssignmentEvent ? 2 : 0, ast, sourceSpan, handlerSpan, keySpan));
20326
20335
  }
20327
20336
  _parseAction(value, isAssignmentEvent, sourceSpan) {
20328
20337
  const sourceInfo = (sourceSpan && sourceSpan.start || "(unknown").toString();
@@ -20376,7 +20385,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
20376
20385
  return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
20377
20386
  }
20378
20387
 
20379
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
20388
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
20380
20389
  function isStyleUrlResolvable(url) {
20381
20390
  if (url == null || url.length === 0 || url[0] == "/")
20382
20391
  return false;
@@ -20385,7 +20394,7 @@ function isStyleUrlResolvable(url) {
20385
20394
  }
20386
20395
  var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
20387
20396
 
20388
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
20397
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
20389
20398
  var NG_CONTENT_SELECT_ATTR = "select";
20390
20399
  var LINK_ELEMENT = "link";
20391
20400
  var LINK_STYLE_REL_ATTR = "rel";
@@ -20455,12 +20464,13 @@ function normalizeNgContentSelect(selectAttr) {
20455
20464
  return selectAttr;
20456
20465
  }
20457
20466
 
20458
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
20467
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
20459
20468
  var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
20460
20469
  var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
20461
- var CONDITIONAL_ALIAS_PATTERN = /^as\s+(.*)/;
20470
+ var CONDITIONAL_ALIAS_PATTERN = /^(as\s)+(.*)/;
20462
20471
  var ELSE_IF_PATTERN = /^else[^\S\r\n]+if/;
20463
20472
  var FOR_LOOP_LET_PATTERN = /^let\s+([\S\s]*)/;
20473
+ var CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN = /(\s*)(\S+)(\s*)/;
20464
20474
  var ALLOWED_FOR_LOOP_LET_VARIABLES = /* @__PURE__ */ new Set(["$index", "$first", "$last", "$even", "$odd", "$count"]);
20465
20475
  function isConnectedForLoopBlock(name) {
20466
20476
  return name === "empty";
@@ -20572,8 +20582,10 @@ function parseForLoopParameters(block, errors, bindingParser) {
20572
20582
  return null;
20573
20583
  }
20574
20584
  const [, itemName, rawExpression] = match;
20585
+ const variableName = expressionParam.expression.split(" ")[0];
20586
+ const variableSpan = new ParseSourceSpan(expressionParam.sourceSpan.start, expressionParam.sourceSpan.start.moveBy(variableName.length));
20575
20587
  const result = {
20576
- itemName: new Variable(itemName, "$implicit", expressionParam.sourceSpan, expressionParam.sourceSpan),
20588
+ itemName: new Variable(itemName, "$implicit", variableSpan, variableSpan),
20577
20589
  trackBy: null,
20578
20590
  expression: parseBlockParameterToBinding(expressionParam, bindingParser, rawExpression),
20579
20591
  context: {}
@@ -20581,7 +20593,8 @@ function parseForLoopParameters(block, errors, bindingParser) {
20581
20593
  for (const param of secondaryParams) {
20582
20594
  const letMatch = param.expression.match(FOR_LOOP_LET_PATTERN);
20583
20595
  if (letMatch !== null) {
20584
- parseLetParameter(param.sourceSpan, letMatch[1], param.sourceSpan, result.context, errors);
20596
+ const variablesSpan = new ParseSourceSpan(param.sourceSpan.start.moveBy(letMatch[0].length - letMatch[1].length), param.sourceSpan.end);
20597
+ parseLetParameter(param.sourceSpan, letMatch[1], variablesSpan, result.context, errors);
20585
20598
  continue;
20586
20599
  }
20587
20600
  const trackMatch = param.expression.match(FOR_LOOP_TRACK_PATTERN);
@@ -20597,16 +20610,18 @@ function parseForLoopParameters(block, errors, bindingParser) {
20597
20610
  }
20598
20611
  errors.push(new ParseError(param.sourceSpan, `Unrecognized @for loop paramater "${param.expression}"`));
20599
20612
  }
20600
- for (const variableName of ALLOWED_FOR_LOOP_LET_VARIABLES) {
20601
- if (!result.context.hasOwnProperty(variableName)) {
20613
+ for (const variableName2 of ALLOWED_FOR_LOOP_LET_VARIABLES) {
20614
+ if (!result.context.hasOwnProperty(variableName2)) {
20602
20615
  const emptySpanAfterForBlockStart = new ParseSourceSpan(block.startSourceSpan.end, block.startSourceSpan.end);
20603
- result.context[variableName] = new Variable(variableName, variableName, emptySpanAfterForBlockStart, emptySpanAfterForBlockStart);
20616
+ result.context[variableName2] = new Variable(variableName2, variableName2, emptySpanAfterForBlockStart, emptySpanAfterForBlockStart);
20604
20617
  }
20605
20618
  }
20606
20619
  return result;
20607
20620
  }
20608
20621
  function parseLetParameter(sourceSpan, expression, span, context, errors) {
20622
+ var _a2, _b2, _c2;
20609
20623
  const parts = expression.split(",");
20624
+ let startSpan = span.start;
20610
20625
  for (const part of parts) {
20611
20626
  const expressionParts = part.split("=");
20612
20627
  const name = expressionParts.length === 2 ? expressionParts[0].trim() : "";
@@ -20618,8 +20633,20 @@ function parseLetParameter(sourceSpan, expression, span, context, errors) {
20618
20633
  } else if (context.hasOwnProperty(variableName)) {
20619
20634
  errors.push(new ParseError(sourceSpan, `Duplicate "let" parameter variable "${variableName}"`));
20620
20635
  } else {
20621
- context[variableName] = new Variable(name, variableName, span, span);
20636
+ const [, keyLeadingWhitespace, keyName] = (_a2 = expressionParts[0].match(CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN)) != null ? _a2 : [];
20637
+ const keySpan = keyLeadingWhitespace !== void 0 && expressionParts.length === 2 ? new ParseSourceSpan(
20638
+ startSpan.moveBy(keyLeadingWhitespace.length),
20639
+ startSpan.moveBy(keyLeadingWhitespace.length + keyName.length)
20640
+ ) : span;
20641
+ let valueSpan = void 0;
20642
+ if (expressionParts.length === 2) {
20643
+ const [, valueLeadingWhitespace, implicit] = (_b2 = expressionParts[1].match(CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN)) != null ? _b2 : [];
20644
+ valueSpan = valueLeadingWhitespace !== void 0 ? new ParseSourceSpan(startSpan.moveBy(expressionParts[0].length + 1 + valueLeadingWhitespace.length), startSpan.moveBy(expressionParts[0].length + 1 + valueLeadingWhitespace.length + implicit.length)) : void 0;
20645
+ }
20646
+ const sourceSpan2 = new ParseSourceSpan(keySpan.start, (_c2 = valueSpan == null ? void 0 : valueSpan.end) != null ? _c2 : keySpan.end);
20647
+ context[variableName] = new Variable(name, variableName, sourceSpan2, keySpan, valueSpan);
20622
20648
  }
20649
+ startSpan = startSpan.moveBy(part.length + 1);
20623
20650
  }
20624
20651
  }
20625
20652
  function validateIfConnectedBlocks(connectedBlocks) {
@@ -20699,8 +20726,10 @@ function parseConditionalBlockParameters(block, errors, bindingParser) {
20699
20726
  } else if (expressionAlias !== null) {
20700
20727
  errors.push(new ParseError(param.sourceSpan, 'Conditional can only have one "as" expression'));
20701
20728
  } else {
20702
- const name = aliasMatch[1].trim();
20703
- expressionAlias = new Variable(name, name, param.sourceSpan, param.sourceSpan);
20729
+ const name = aliasMatch[2].trim();
20730
+ const variableStart = param.sourceSpan.start.moveBy(aliasMatch[1].length);
20731
+ const variableSpan = new ParseSourceSpan(variableStart, variableStart.moveBy(name.length));
20732
+ expressionAlias = new Variable(name, name, variableSpan, variableSpan);
20704
20733
  }
20705
20734
  }
20706
20735
  return { expression, expressionAlias };
@@ -20746,7 +20775,7 @@ function stripOptionalParentheses(param, errors) {
20746
20775
  return expression.slice(start, end);
20747
20776
  }
20748
20777
 
20749
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
20778
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
20750
20779
  var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
20751
20780
  var SEPARATOR_PATTERN = /^\s$/;
20752
20781
  var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
@@ -21010,7 +21039,7 @@ function parseDeferredTime(value) {
21010
21039
  return parseFloat(time) * (units === "s" ? 1e3 : 1);
21011
21040
  }
21012
21041
 
21013
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
21042
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
21014
21043
  var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
21015
21044
  var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
21016
21045
  var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
@@ -21145,7 +21174,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
21145
21174
  return { triggers, prefetchTriggers };
21146
21175
  }
21147
21176
 
21148
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
21177
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
21149
21178
  var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
21150
21179
  var KW_BIND_IDX = 1;
21151
21180
  var KW_LET_IDX = 2;
@@ -21418,7 +21447,7 @@ var HtmlAstToIvyAst = class {
21418
21447
  if (bindParts[KW_BIND_IDX] != null) {
21419
21448
  const identifier = bindParts[IDENT_KW_IDX];
21420
21449
  const keySpan2 = createKeySpan(srcSpan, bindParts[KW_BIND_IDX], identifier);
21421
- this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
21450
+ this.bindingParser.parsePropertyBinding(identifier, value, false, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
21422
21451
  } else if (bindParts[KW_LET_IDX]) {
21423
21452
  if (isTemplateElement) {
21424
21453
  const identifier = bindParts[IDENT_KW_IDX];
@@ -21440,7 +21469,7 @@ var HtmlAstToIvyAst = class {
21440
21469
  } else if (bindParts[KW_BINDON_IDX]) {
21441
21470
  const identifier = bindParts[IDENT_KW_IDX];
21442
21471
  const keySpan2 = createKeySpan(srcSpan, bindParts[KW_BINDON_IDX], identifier);
21443
- this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
21472
+ this.bindingParser.parsePropertyBinding(identifier, value, false, true, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
21444
21473
  this.parseAssignmentEvent(identifier, value, srcSpan, attribute2.valueSpan, matchableAttributes, boundEvents, keySpan2);
21445
21474
  } else if (bindParts[KW_AT_IDX]) {
21446
21475
  const keySpan2 = createKeySpan(srcSpan, "", name);
@@ -21460,10 +21489,10 @@ var HtmlAstToIvyAst = class {
21460
21489
  const identifier = name.substring(delims.start.length, name.length - delims.end.length);
21461
21490
  const keySpan2 = createKeySpan(srcSpan, delims.start, identifier);
21462
21491
  if (delims.start === BINDING_DELIMS.BANANA_BOX.start) {
21463
- this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
21492
+ this.bindingParser.parsePropertyBinding(identifier, value, false, true, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
21464
21493
  this.parseAssignmentEvent(identifier, value, srcSpan, attribute2.valueSpan, matchableAttributes, boundEvents, keySpan2);
21465
21494
  } else if (delims.start === BINDING_DELIMS.PROPERTY.start) {
21466
- this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
21495
+ this.bindingParser.parsePropertyBinding(identifier, value, false, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
21467
21496
  } else {
21468
21497
  const events = [];
21469
21498
  this.bindingParser.parseEvent(identifier, value, false, srcSpan, attribute2.valueSpan || srcSpan, matchableAttributes, events, keySpan2);
@@ -21576,7 +21605,7 @@ function textContents(node) {
21576
21605
  }
21577
21606
  }
21578
21607
 
21579
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
21608
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
21580
21609
  var TagType;
21581
21610
  (function(TagType2) {
21582
21611
  TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
@@ -21721,7 +21750,7 @@ function serializePlaceholderValue(value) {
21721
21750
  }
21722
21751
  }
21723
21752
 
21724
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
21753
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
21725
21754
  var IMPORTANT_FLAG = "!important";
21726
21755
  var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
21727
21756
  var StylingBuilder = class {
@@ -22054,7 +22083,7 @@ function isEmptyExpression(ast) {
22054
22083
  return ast instanceof EmptyExpr;
22055
22084
  }
22056
22085
 
22057
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
22086
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
22058
22087
  var NG_CONTENT_SELECT_ATTR2 = "select";
22059
22088
  var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
22060
22089
  var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
@@ -22465,7 +22494,7 @@ var TemplateDefinitionBuilder = class {
22465
22494
  element2.inputs.forEach((input) => {
22466
22495
  const stylingInputWasSet = stylingBuilder.registerBoundInput(input);
22467
22496
  if (!stylingInputWasSet) {
22468
- if (input.type === 0 && input.i18n) {
22497
+ if ((input.type === 0 || input.type === 5) && input.i18n) {
22469
22498
  boundI18nAttrs.push(input);
22470
22499
  } else {
22471
22500
  allOtherInputs.push(input);
@@ -22551,7 +22580,7 @@ var TemplateDefinitionBuilder = class {
22551
22580
  }
22552
22581
  }
22553
22582
  this.allocateBindingSlots(value);
22554
- if (inputType === 0) {
22583
+ if (inputType === 0 || inputType === 5) {
22555
22584
  if (value instanceof Interpolation) {
22556
22585
  this.interpolatedUpdateInstruction(getPropertyInterpolationExpression(value), elementIndex, attrName, input, value, params);
22557
22586
  } else {
@@ -23741,7 +23770,7 @@ function createClosureModeGuard2() {
23741
23770
  return typeofExpr(variable(NG_I18N_CLOSURE_MODE2)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE2));
23742
23771
  }
23743
23772
 
23744
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/query_generation.mjs
23773
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/query_generation.mjs
23745
23774
  function toQueryFlags(query) {
23746
23775
  return (query.descendants ? 1 : 0) | (query.static ? 2 : 0) | (query.emitDistinctChangesOnly ? 4 : 0);
23747
23776
  }
@@ -23858,7 +23887,7 @@ function createContentQueriesFunction(queries, constantPool, name) {
23858
23887
  ], INFERRED_TYPE, null, contentQueriesFnName);
23859
23888
  }
23860
23889
 
23861
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
23890
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
23862
23891
  var ATTR_REGEX = /attr\.([^\]]+)/;
23863
23892
  var COMPONENT_VARIABLE = "%COMP%";
23864
23893
  var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
@@ -23962,12 +23991,12 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
23962
23991
  }
23963
23992
  const templateTypeName = meta.name;
23964
23993
  const templateName = templateTypeName ? `${templateTypeName}_Template` : null;
23965
- if (!USE_TEMPLATE_PIPELINE) {
23966
- let allDeferrableDepsFn = null;
23967
- if (meta.deferBlocks.size > 0 && meta.deferrableTypes.size > 0 && meta.deferBlockDepsEmitMode === 1) {
23968
- const fnName = `${templateTypeName}_DeferFn`;
23969
- allDeferrableDepsFn = createDeferredDepsFunction(constantPool, fnName, meta.deferrableTypes);
23970
- }
23994
+ let allDeferrableDepsFn = null;
23995
+ if (meta.deferBlocks.size > 0 && meta.deferrableTypes.size > 0 && meta.deferBlockDepsEmitMode === 1) {
23996
+ const fnName = `${templateTypeName}_DeferFn`;
23997
+ allDeferrableDepsFn = createDeferredDepsFunction(constantPool, fnName, meta.deferrableTypes);
23998
+ }
23999
+ if (!USE_TEMPLATE_PIPELINE && !meta.useTemplatePipeline) {
23971
24000
  const template2 = meta.template;
23972
24001
  const templateBuilder = new TemplateDefinitionBuilder(constantPool, BindingScope.createRootScope(), 0, templateTypeName, null, null, templateName, Identifiers.namespaceHTML, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks, /* @__PURE__ */ new Map(), allDeferrableDepsFn);
23973
24002
  const templateFunctionExpression = templateBuilder.buildTemplateFunction(template2.nodes, []);
@@ -23987,7 +24016,7 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
23987
24016
  }
23988
24017
  definitionMap.set("template", templateFunctionExpression);
23989
24018
  } else {
23990
- const tpl = ingestComponent(meta.name, meta.template.nodes, constantPool, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks);
24019
+ const tpl = ingestComponent(meta.name, meta.template.nodes, constantPool, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks, allDeferrableDepsFn);
23991
24020
  transform(tpl, CompilationJobKind.Tmpl);
23992
24021
  const templateFn = emitTemplateFn(tpl, constantPool);
23993
24022
  if (tpl.contentSelectors !== null) {
@@ -24135,7 +24164,7 @@ function createDirectiveType(meta) {
24135
24164
  function createHostBindingsFunction(hostBindingsMetadata, typeSourceSpan, bindingParser, constantPool, selector, name, definitionMap) {
24136
24165
  const bindings = bindingParser.createBoundHostProperties(hostBindingsMetadata.properties, typeSourceSpan);
24137
24166
  const eventBindings = bindingParser.createDirectiveHostEventAsts(hostBindingsMetadata.listeners, typeSourceSpan);
24138
- if (USE_TEMPLATE_PIPELINE) {
24167
+ if (USE_TEMPLATE_PIPELINE || hostBindingsMetadata.useTemplatePipeline) {
24139
24168
  if (hostBindingsMetadata.specialAttributes.styleAttr) {
24140
24169
  hostBindingsMetadata.attributes["style"] = literal(hostBindingsMetadata.specialAttributes.styleAttr);
24141
24170
  }
@@ -24438,7 +24467,7 @@ function createHostDirectivesMappingArray(mapping) {
24438
24467
  return elements.length > 0 ? literalArr(elements) : null;
24439
24468
  }
24440
24469
 
24441
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
24470
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
24442
24471
  var R3TargetBinder = class {
24443
24472
  constructor(directiveMatcher) {
24444
24473
  this.directiveMatcher = directiveMatcher;
@@ -25055,11 +25084,12 @@ function extractScopedNodeEntities(rootScope) {
25055
25084
  return templateEntities;
25056
25085
  }
25057
25086
 
25058
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/resource_loader.mjs
25087
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
25059
25088
  var ResourceLoader = class {
25060
25089
  };
25061
25090
 
25062
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
25091
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
25092
+ var SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT = false;
25063
25093
  var CompilerFacadeImpl = class {
25064
25094
  constructor(jitEvaluator = new JitEvaluator()) {
25065
25095
  this.jitEvaluator = jitEvaluator;
@@ -25192,7 +25222,8 @@ var CompilerFacadeImpl = class {
25192
25222
  animations: facade.animations != null ? new WrappedNodeExpr(facade.animations) : null,
25193
25223
  viewProviders: facade.viewProviders != null ? new WrappedNodeExpr(facade.viewProviders) : null,
25194
25224
  relativeContextFilePath: "",
25195
- i18nUseExternalIds: true
25225
+ i18nUseExternalIds: true,
25226
+ useTemplatePipeline: SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT
25196
25227
  });
25197
25228
  const jitExpressionSourceMap = `ng:///${facade.name}.js`;
25198
25229
  return this.compileComponentFromMeta(angularCoreEnv, jitExpressionSourceMap, meta);
@@ -25293,7 +25324,9 @@ function convertDirectiveFacadeToMetadata(facade) {
25293
25324
  typeSourceSpan: facade.typeSourceSpan,
25294
25325
  type: wrapReference(facade.type),
25295
25326
  deps: null,
25296
- host: extractHostBindings(facade.propMetadata, facade.typeSourceSpan, facade.host),
25327
+ host: __spreadProps(__spreadValues({}, extractHostBindings(facade.propMetadata, facade.typeSourceSpan, facade.host)), {
25328
+ useTemplatePipeline: SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT
25329
+ }),
25297
25330
  inputs: __spreadValues(__spreadValues({}, inputsFromMetadata), inputsFromType),
25298
25331
  outputs: __spreadValues(__spreadValues({}, outputsFromMetadata), outputsFromType),
25299
25332
  queries: facade.queries.map(convertToR3QueryMetadata),
@@ -25336,7 +25369,8 @@ function convertHostDeclarationToMetadata(host = {}) {
25336
25369
  specialAttributes: {
25337
25370
  classAttr: host.classAttribute,
25338
25371
  styleAttr: host.styleAttribute
25339
- }
25372
+ },
25373
+ useTemplatePipeline: SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT
25340
25374
  };
25341
25375
  }
25342
25376
  function convertHostDirectivesToMetadata(metadata) {
@@ -25401,7 +25435,8 @@ function convertDeclareComponentFacadeToMetadata(decl, typeSourceSpan, sourceMap
25401
25435
  interpolation,
25402
25436
  declarationListEmitMode: 2,
25403
25437
  relativeContextFilePath: "",
25404
- i18nUseExternalIds: true
25438
+ i18nUseExternalIds: true,
25439
+ useTemplatePipeline: SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT
25405
25440
  });
25406
25441
  }
25407
25442
  function convertDeclarationFacadeToMetadata(declaration) {
@@ -25634,17 +25669,17 @@ function publishFacade(global) {
25634
25669
  ng.\u0275compilerFacade = new CompilerFacadeImpl();
25635
25670
  }
25636
25671
 
25637
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
25638
- var VERSION2 = new Version("17.2.0-next.0");
25672
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
25673
+ var VERSION2 = new Version("17.2.0-next.1");
25639
25674
 
25640
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
25675
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
25641
25676
  var _VisitorMode;
25642
25677
  (function(_VisitorMode2) {
25643
25678
  _VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
25644
25679
  _VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
25645
25680
  })(_VisitorMode || (_VisitorMode = {}));
25646
25681
 
25647
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
25682
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
25648
25683
  var XmlTagDefinition = class {
25649
25684
  constructor() {
25650
25685
  this.closedByParent = false;
@@ -25666,7 +25701,7 @@ var XmlTagDefinition = class {
25666
25701
  };
25667
25702
  var _TAG_DEFINITION = new XmlTagDefinition();
25668
25703
 
25669
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
25704
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
25670
25705
  var FactoryTarget2;
25671
25706
  (function(FactoryTarget3) {
25672
25707
  FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
@@ -25676,10 +25711,10 @@ var FactoryTarget2;
25676
25711
  FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
25677
25712
  })(FactoryTarget2 || (FactoryTarget2 = {}));
25678
25713
 
25679
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler.mjs
25714
+ // bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
25680
25715
  publishFacade(_global);
25681
25716
 
25682
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/identifier-lookup.mjs
25717
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/identifier-lookup.mjs
25683
25718
  var import_typescript5 = __toESM(require("typescript"), 1);
25684
25719
  function lookupIdentifiersInSourceFile(sourceFile, names) {
25685
25720
  const results = /* @__PURE__ */ new Set();
@@ -25693,7 +25728,7 @@ function lookupIdentifiersInSourceFile(sourceFile, names) {
25693
25728
  return results;
25694
25729
  }
25695
25730
 
25696
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/types.mjs
25731
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/types.mjs
25697
25732
  var ngtemplate = "ng-template";
25698
25733
  var boundngifelse = "[ngIfElse]";
25699
25734
  var boundngifthenelse = "[ngIfThenElse]";
@@ -26026,7 +26061,7 @@ var TemplateCollector = class extends RecursiveVisitor {
26026
26061
  }
26027
26062
  };
26028
26063
 
26029
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/util.mjs
26064
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/util.mjs
26030
26065
  var import_path2 = require("path");
26031
26066
  var import_typescript6 = __toESM(require("typescript"), 1);
26032
26067
  var startMarkerRegex = new RegExp(startMarker, "gm");
@@ -26526,7 +26561,7 @@ function forEachClass(sourceFile, callback) {
26526
26561
  });
26527
26562
  }
26528
26563
 
26529
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/cases.mjs
26564
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/cases.mjs
26530
26565
  var boundcase = "[ngSwitchCase]";
26531
26566
  var switchcase = "*ngSwitchCase";
26532
26567
  var nakedcase = "ngSwitchCase";
@@ -26604,7 +26639,7 @@ function migrateNgSwitchDefault(etm, tmpl, offset) {
26604
26639
  return { tmpl: updatedTmpl, offsets: { pre, post } };
26605
26640
  }
26606
26641
 
26607
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/fors.mjs
26642
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/fors.mjs
26608
26643
  var ngfor = "*ngFor";
26609
26644
  var nakedngfor2 = "ngFor";
26610
26645
  var fors = [
@@ -26778,7 +26813,7 @@ function getNgForParts(expression) {
26778
26813
  return parts;
26779
26814
  }
26780
26815
 
26781
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/ifs.mjs
26816
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/ifs.mjs
26782
26817
  var ngif = "*ngIf";
26783
26818
  var boundngif = "[ngIf]";
26784
26819
  var nakedngif = "ngIf";
@@ -26931,7 +26966,7 @@ function buildIfThenBlock(etm, tmpl, condition, thenPlaceholder, offset) {
26931
26966
  return { tmpl: updatedTmpl, offsets: { pre, post } };
26932
26967
  }
26933
26968
 
26934
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/switches.mjs
26969
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/switches.mjs
26935
26970
  var ngswitch = "[ngSwitch]";
26936
26971
  var switches = [
26937
26972
  ngswitch
@@ -26999,7 +27034,7 @@ function migrateNgSwitch(etm, tmpl, offset) {
26999
27034
  return { tmpl: updatedTmpl, offsets: { pre, post } };
27000
27035
  }
27001
27036
 
27002
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/migration.mjs
27037
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/migration.mjs
27003
27038
  function migrateTemplate(template2, templateType, node, file, format = true, analyzedFiles) {
27004
27039
  let errors = [];
27005
27040
  let migrated = template2;
@@ -27050,7 +27085,7 @@ function migrateTemplate(template2, templateType, node, file, format = true, ana
27050
27085
  return { migrated, errors };
27051
27086
  }
27052
27087
 
27053
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/index.mjs
27088
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/index.mjs
27054
27089
  function control_flow_migration_default(options) {
27055
27090
  return (tree, context) => __async(this, null, function* () {
27056
27091
  const basePath = process.cwd();
@@ -27069,7 +27104,7 @@ function control_flow_migration_default(options) {
27069
27104
  errors = [...errors, ...migrateErrors];
27070
27105
  }
27071
27106
  if (errors.length > 0) {
27072
- context.logger.warn(`WARNING: ${errors.length} errors occured during your migration:
27107
+ context.logger.warn(`WARNING: ${errors.length} errors occurred during your migration:
27073
27108
  `);
27074
27109
  errors.forEach((err) => {
27075
27110
  context.logger.warn(err);