@angular/compiler-cli 17.2.1 → 17.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/bundles/{chunk-UM6JO3VZ.js → chunk-75YFKYUJ.js} +7 -7
  2. package/bundles/{chunk-63UQIYTZ.js → chunk-FS75LCNP.js} +30 -30
  3. package/bundles/{chunk-KYE5EYIK.js → chunk-LWM7EW6L.js} +28 -28
  4. package/bundles/{chunk-KYE5EYIK.js.map → chunk-LWM7EW6L.js.map} +1 -1
  5. package/bundles/{chunk-PQBKKYRL.js → chunk-MV5DSSRA.js} +497 -492
  6. package/bundles/chunk-MV5DSSRA.js.map +6 -0
  7. package/bundles/{chunk-QLLRERNV.js → chunk-NQAH24UD.js} +5 -5
  8. package/bundles/{chunk-6VEEN3ZS.js → chunk-Q5Y7HH3O.js} +5 -5
  9. package/bundles/{chunk-64JBPJBS.js → chunk-R4KQI5XI.js} +5 -5
  10. package/bundles/{chunk-LYJKWJUC.js → chunk-SBDNBITT.js} +3 -3
  11. package/bundles/{chunk-KMYUI7UU.js → chunk-SGHI77T2.js} +595 -534
  12. package/bundles/chunk-SGHI77T2.js.map +6 -0
  13. package/bundles/{chunk-2WQIUGOU.js → chunk-WCD6LVCP.js} +7 -7
  14. package/bundles/{chunk-CVK4HV4K.js → chunk-YBXVKJOM.js} +248 -188
  15. package/bundles/{chunk-CVK4HV4K.js.map → chunk-YBXVKJOM.js.map} +3 -3
  16. package/bundles/index.js +12 -12
  17. package/bundles/linker/babel/index.js +12 -12
  18. package/bundles/linker/index.js +4 -4
  19. package/bundles/ngcc/index.js +1 -1
  20. package/bundles/private/bazel.js +1 -1
  21. package/bundles/private/localize.js +3 -3
  22. package/bundles/private/migrations.js +5 -5
  23. package/bundles/private/tooling.js +5 -5
  24. package/bundles/src/bin/ng_xi18n.js +10 -10
  25. package/bundles/src/bin/ngc.js +8 -8
  26. package/bundles_metadata.json +1 -1
  27. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  28. package/package.json +2 -2
  29. package/src/ngtsc/annotations/component/src/handler.d.ts +3 -2
  30. package/src/ngtsc/annotations/directive/src/handler.d.ts +3 -2
  31. package/src/ngtsc/annotations/directive/src/initializer_functions.d.ts +2 -3
  32. package/src/ngtsc/annotations/directive/src/input_function.d.ts +2 -1
  33. package/src/ngtsc/annotations/directive/src/model_function.d.ts +2 -1
  34. package/src/ngtsc/annotations/directive/src/output_function.d.ts +2 -1
  35. package/src/ngtsc/annotations/directive/src/query_functions.d.ts +2 -1
  36. package/src/ngtsc/annotations/directive/src/shared.d.ts +2 -2
  37. package/src/ngtsc/docs/src/constant_extractor.d.ts +2 -2
  38. package/src/ngtsc/imports/index.d.ts +1 -0
  39. package/src/ngtsc/imports/src/imported_symbols_tracker.d.ts +37 -0
  40. package/src/transformers/jit_transforms/initializer_api_transforms/transform.d.ts +2 -1
  41. package/src/transformers/jit_transforms/initializer_api_transforms/transform_api.d.ts +3 -2
  42. package/bundles/chunk-KMYUI7UU.js.map +0 -6
  43. package/bundles/chunk-PQBKKYRL.js.map +0 -6
  44. /package/bundles/{chunk-UM6JO3VZ.js.map → chunk-75YFKYUJ.js.map} +0 -0
  45. /package/bundles/{chunk-63UQIYTZ.js.map → chunk-FS75LCNP.js.map} +0 -0
  46. /package/bundles/{chunk-QLLRERNV.js.map → chunk-NQAH24UD.js.map} +0 -0
  47. /package/bundles/{chunk-6VEEN3ZS.js.map → chunk-Q5Y7HH3O.js.map} +0 -0
  48. /package/bundles/{chunk-64JBPJBS.js.map → chunk-R4KQI5XI.js.map} +0 -0
  49. /package/bundles/{chunk-LYJKWJUC.js.map → chunk-SBDNBITT.js.map} +0 -0
  50. /package/bundles/{chunk-2WQIUGOU.js.map → chunk-WCD6LVCP.js.map} +0 -0
@@ -29,18 +29,274 @@ import {
29
29
  translateStatement,
30
30
  translateType,
31
31
  typeNodeToValueExpr
32
- } from "./chunk-CVK4HV4K.js";
32
+ } from "./chunk-YBXVKJOM.js";
33
33
  import {
34
34
  PerfEvent,
35
35
  PerfPhase
36
- } from "./chunk-64JBPJBS.js";
36
+ } from "./chunk-R4KQI5XI.js";
37
37
  import {
38
38
  absoluteFrom,
39
39
  absoluteFromSourceFile,
40
40
  relative
41
- } from "./chunk-UM6JO3VZ.js";
41
+ } from "./chunk-75YFKYUJ.js";
42
42
 
43
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
43
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
44
+ import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
45
+ import ts from "typescript";
46
+ var CORE_MODULE = "@angular/core";
47
+ function valueReferenceToExpression(valueRef) {
48
+ if (valueRef.kind === 2) {
49
+ return null;
50
+ } else if (valueRef.kind === 0) {
51
+ const expr = new WrappedNodeExpr(valueRef.expression);
52
+ if (valueRef.defaultImportStatement !== null) {
53
+ attachDefaultImportDeclaration(expr, valueRef.defaultImportStatement);
54
+ }
55
+ return expr;
56
+ } else {
57
+ let importExpr = new ExternalExpr({ moduleName: valueRef.moduleName, name: valueRef.importedName });
58
+ if (valueRef.nestedPath !== null) {
59
+ for (const property of valueRef.nestedPath) {
60
+ importExpr = new ReadPropExpr(importExpr, property);
61
+ }
62
+ }
63
+ return importExpr;
64
+ }
65
+ }
66
+ function toR3Reference(origin, ref, context, refEmitter) {
67
+ const emittedValueRef = refEmitter.emit(ref, context);
68
+ assertSuccessfulReferenceEmit(emittedValueRef, origin, "class");
69
+ const emittedTypeRef = refEmitter.emit(ref, context, ImportFlags.ForceNewImport | ImportFlags.AllowTypeImports);
70
+ assertSuccessfulReferenceEmit(emittedTypeRef, origin, "class");
71
+ return {
72
+ value: emittedValueRef.expression,
73
+ type: emittedTypeRef.expression
74
+ };
75
+ }
76
+ function isAngularCore(decorator) {
77
+ return decorator.import !== null && decorator.import.from === CORE_MODULE;
78
+ }
79
+ function isAngularCoreReference(reference, symbolName) {
80
+ return reference.ownedByModuleGuess === CORE_MODULE && reference.debugName === symbolName;
81
+ }
82
+ function findAngularDecorator(decorators, name, isCore) {
83
+ return decorators.find((decorator) => isAngularDecorator(decorator, name, isCore));
84
+ }
85
+ function isAngularDecorator(decorator, name, isCore) {
86
+ if (isCore) {
87
+ return decorator.name === name;
88
+ } else if (isAngularCore(decorator)) {
89
+ return decorator.import.name === name;
90
+ }
91
+ return false;
92
+ }
93
+ function getAngularDecorators(decorators, names, isCore) {
94
+ return decorators.filter((decorator) => {
95
+ var _a;
96
+ const name = isCore ? decorator.name : (_a = decorator.import) == null ? void 0 : _a.name;
97
+ if (name === void 0 || !names.includes(name)) {
98
+ return false;
99
+ }
100
+ return isCore || isAngularCore(decorator);
101
+ });
102
+ }
103
+ function unwrapExpression(node) {
104
+ while (ts.isAsExpression(node) || ts.isParenthesizedExpression(node)) {
105
+ node = node.expression;
106
+ }
107
+ return node;
108
+ }
109
+ function expandForwardRef(arg) {
110
+ arg = unwrapExpression(arg);
111
+ if (!ts.isArrowFunction(arg) && !ts.isFunctionExpression(arg)) {
112
+ return null;
113
+ }
114
+ const body = arg.body;
115
+ if (ts.isBlock(body)) {
116
+ if (body.statements.length !== 1) {
117
+ return null;
118
+ }
119
+ const stmt = body.statements[0];
120
+ if (!ts.isReturnStatement(stmt) || stmt.expression === void 0) {
121
+ return null;
122
+ }
123
+ return stmt.expression;
124
+ } else {
125
+ return body;
126
+ }
127
+ }
128
+ function tryUnwrapForwardRef(node, reflector) {
129
+ node = unwrapExpression(node);
130
+ if (!ts.isCallExpression(node) || node.arguments.length !== 1) {
131
+ return null;
132
+ }
133
+ const fn = ts.isPropertyAccessExpression(node.expression) ? node.expression.name : node.expression;
134
+ if (!ts.isIdentifier(fn)) {
135
+ return null;
136
+ }
137
+ const expr = expandForwardRef(node.arguments[0]);
138
+ if (expr === null) {
139
+ return null;
140
+ }
141
+ const imp = reflector.getImportOfIdentifier(fn);
142
+ if (imp === null || imp.from !== "@angular/core" || imp.name !== "forwardRef") {
143
+ return null;
144
+ }
145
+ return expr;
146
+ }
147
+ var forwardRefResolver = (fn, callExpr, resolve, unresolvable) => {
148
+ if (!isAngularCoreReference(fn, "forwardRef") || callExpr.arguments.length !== 1) {
149
+ return unresolvable;
150
+ }
151
+ const expanded = expandForwardRef(callExpr.arguments[0]);
152
+ if (expanded !== null) {
153
+ return resolve(expanded);
154
+ } else {
155
+ return unresolvable;
156
+ }
157
+ };
158
+ function combineResolvers(resolvers) {
159
+ return (fn, callExpr, resolve, unresolvable) => {
160
+ for (const resolver of resolvers) {
161
+ const resolved = resolver(fn, callExpr, resolve, unresolvable);
162
+ if (resolved !== unresolvable) {
163
+ return resolved;
164
+ }
165
+ }
166
+ return unresolvable;
167
+ };
168
+ }
169
+ function isExpressionForwardReference(expr, context, contextSource) {
170
+ if (isWrappedTsNodeExpr(expr)) {
171
+ const node = ts.getOriginalNode(expr.node);
172
+ return node.getSourceFile() === contextSource && context.pos < node.pos;
173
+ } else {
174
+ return false;
175
+ }
176
+ }
177
+ function isWrappedTsNodeExpr(expr) {
178
+ return expr instanceof WrappedNodeExpr;
179
+ }
180
+ function readBaseClass(node, reflector, evaluator) {
181
+ const baseExpression = reflector.getBaseClassExpression(node);
182
+ if (baseExpression !== null) {
183
+ const baseClass = evaluator.evaluate(baseExpression);
184
+ if (baseClass instanceof Reference && reflector.isClass(baseClass.node)) {
185
+ return baseClass;
186
+ } else {
187
+ return "dynamic";
188
+ }
189
+ }
190
+ return null;
191
+ }
192
+ var parensWrapperTransformerFactory = (context) => {
193
+ const visitor = (node) => {
194
+ const visited = ts.visitEachChild(node, visitor, context);
195
+ if (ts.isArrowFunction(visited) || ts.isFunctionExpression(visited)) {
196
+ return ts.factory.createParenthesizedExpression(visited);
197
+ }
198
+ return visited;
199
+ };
200
+ return (node) => ts.visitEachChild(node, visitor, context);
201
+ };
202
+ function wrapFunctionExpressionsInParens(expression) {
203
+ return ts.transform(expression, [parensWrapperTransformerFactory]).transformed[0];
204
+ }
205
+ function resolveProvidersRequiringFactory(rawProviders, reflector, evaluator) {
206
+ const providers = /* @__PURE__ */ new Set();
207
+ const resolvedProviders = evaluator.evaluate(rawProviders);
208
+ if (!Array.isArray(resolvedProviders)) {
209
+ return providers;
210
+ }
211
+ resolvedProviders.forEach(function processProviders(provider) {
212
+ let tokenClass = null;
213
+ if (Array.isArray(provider)) {
214
+ provider.forEach(processProviders);
215
+ } else if (provider instanceof Reference) {
216
+ tokenClass = provider;
217
+ } else if (provider instanceof Map && provider.has("useClass") && !provider.has("deps")) {
218
+ const useExisting = provider.get("useClass");
219
+ if (useExisting instanceof Reference) {
220
+ tokenClass = useExisting;
221
+ }
222
+ }
223
+ if (tokenClass !== null && !tokenClass.node.getSourceFile().isDeclarationFile && reflector.isClass(tokenClass.node)) {
224
+ const constructorParameters = reflector.getConstructorParameters(tokenClass.node);
225
+ if (constructorParameters !== null && constructorParameters.length > 0) {
226
+ providers.add(tokenClass);
227
+ }
228
+ }
229
+ });
230
+ return providers;
231
+ }
232
+ function wrapTypeReference(reflector, clazz) {
233
+ const value = new WrappedNodeExpr(clazz.name);
234
+ const type = value;
235
+ return { value, type };
236
+ }
237
+ function createSourceSpan(node) {
238
+ const sf = node.getSourceFile();
239
+ const [startOffset, endOffset] = [node.getStart(), node.getEnd()];
240
+ const { line: startLine, character: startCol } = sf.getLineAndCharacterOfPosition(startOffset);
241
+ const { line: endLine, character: endCol } = sf.getLineAndCharacterOfPosition(endOffset);
242
+ const parseSf = new ParseSourceFile(sf.getFullText(), sf.fileName);
243
+ return new ParseSourceSpan(new ParseLocation(parseSf, startOffset, startLine + 1, startCol + 1), new ParseLocation(parseSf, endOffset, endLine + 1, endCol + 1));
244
+ }
245
+ function compileResults(fac, def, metadataStmt, propName, additionalFields, deferrableImports, debugInfo = null) {
246
+ const statements = def.statements;
247
+ if (metadataStmt !== null) {
248
+ statements.push(metadataStmt);
249
+ }
250
+ if (debugInfo !== null) {
251
+ statements.push(debugInfo);
252
+ }
253
+ const results = [
254
+ fac,
255
+ {
256
+ name: propName,
257
+ initializer: def.expression,
258
+ statements: def.statements,
259
+ type: def.type,
260
+ deferrableImports
261
+ }
262
+ ];
263
+ if (additionalFields !== null) {
264
+ results.push(...additionalFields);
265
+ }
266
+ return results;
267
+ }
268
+ function toFactoryMetadata(meta, target) {
269
+ return {
270
+ name: meta.name,
271
+ type: meta.type,
272
+ typeArgumentCount: meta.typeArgumentCount,
273
+ deps: meta.deps,
274
+ target
275
+ };
276
+ }
277
+ function resolveImportedFile(moduleResolver, importedFile, expr, origin) {
278
+ if (importedFile !== "unknown") {
279
+ return importedFile;
280
+ }
281
+ if (!(expr instanceof ExternalExpr)) {
282
+ return null;
283
+ }
284
+ return moduleResolver.resolveModule(expr.value.moduleName, origin.fileName);
285
+ }
286
+ function getOriginNodeForDiagnostics(expr, container) {
287
+ const nodeSf = expr.getSourceFile();
288
+ const exprSf = container.getSourceFile();
289
+ if (nodeSf === exprSf && expr.pos >= container.pos && expr.end <= container.end) {
290
+ return expr;
291
+ } else {
292
+ return container;
293
+ }
294
+ }
295
+ function isAbstractClassDeclaration(clazz) {
296
+ return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
297
+ }
298
+
299
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
44
300
  var DynamicValue = class {
45
301
  constructor(node, reason, code) {
46
302
  this.node = node;
@@ -130,10 +386,10 @@ var DynamicValue = class {
130
386
  }
131
387
  };
132
388
 
133
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
134
- import ts from "typescript";
389
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
390
+ import ts2 from "typescript";
135
391
 
136
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
392
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
137
393
  var ResolvedModule = class {
138
394
  constructor(exports, evaluate) {
139
395
  this.exports = exports;
@@ -163,7 +419,7 @@ var EnumValue = class {
163
419
  var KnownFn = class {
164
420
  };
165
421
 
166
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
422
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
167
423
  var ArraySliceBuiltinFn = class extends KnownFn {
168
424
  constructor(lhs) {
169
425
  super();
@@ -215,14 +471,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
215
471
  }
216
472
  };
217
473
 
218
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
474
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
219
475
  var SyntheticValue = class {
220
476
  constructor(value) {
221
477
  this.value = value;
222
478
  }
223
479
  };
224
480
 
225
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
481
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
226
482
  function literalBinaryOp(op) {
227
483
  return { op, literal: true };
228
484
  }
@@ -230,34 +486,34 @@ function referenceBinaryOp(op) {
230
486
  return { op, literal: false };
231
487
  }
232
488
  var BINARY_OPERATORS = /* @__PURE__ */ new Map([
233
- [ts.SyntaxKind.PlusToken, literalBinaryOp((a, b) => a + b)],
234
- [ts.SyntaxKind.MinusToken, literalBinaryOp((a, b) => a - b)],
235
- [ts.SyntaxKind.AsteriskToken, literalBinaryOp((a, b) => a * b)],
236
- [ts.SyntaxKind.SlashToken, literalBinaryOp((a, b) => a / b)],
237
- [ts.SyntaxKind.PercentToken, literalBinaryOp((a, b) => a % b)],
238
- [ts.SyntaxKind.AmpersandToken, literalBinaryOp((a, b) => a & b)],
239
- [ts.SyntaxKind.BarToken, literalBinaryOp((a, b) => a | b)],
240
- [ts.SyntaxKind.CaretToken, literalBinaryOp((a, b) => a ^ b)],
241
- [ts.SyntaxKind.LessThanToken, literalBinaryOp((a, b) => a < b)],
242
- [ts.SyntaxKind.LessThanEqualsToken, literalBinaryOp((a, b) => a <= b)],
243
- [ts.SyntaxKind.GreaterThanToken, literalBinaryOp((a, b) => a > b)],
244
- [ts.SyntaxKind.GreaterThanEqualsToken, literalBinaryOp((a, b) => a >= b)],
245
- [ts.SyntaxKind.EqualsEqualsToken, literalBinaryOp((a, b) => a == b)],
246
- [ts.SyntaxKind.EqualsEqualsEqualsToken, literalBinaryOp((a, b) => a === b)],
247
- [ts.SyntaxKind.ExclamationEqualsToken, literalBinaryOp((a, b) => a != b)],
248
- [ts.SyntaxKind.ExclamationEqualsEqualsToken, literalBinaryOp((a, b) => a !== b)],
249
- [ts.SyntaxKind.LessThanLessThanToken, literalBinaryOp((a, b) => a << b)],
250
- [ts.SyntaxKind.GreaterThanGreaterThanToken, literalBinaryOp((a, b) => a >> b)],
251
- [ts.SyntaxKind.GreaterThanGreaterThanGreaterThanToken, literalBinaryOp((a, b) => a >>> b)],
252
- [ts.SyntaxKind.AsteriskAsteriskToken, literalBinaryOp((a, b) => Math.pow(a, b))],
253
- [ts.SyntaxKind.AmpersandAmpersandToken, referenceBinaryOp((a, b) => a && b)],
254
- [ts.SyntaxKind.BarBarToken, referenceBinaryOp((a, b) => a || b)]
489
+ [ts2.SyntaxKind.PlusToken, literalBinaryOp((a, b) => a + b)],
490
+ [ts2.SyntaxKind.MinusToken, literalBinaryOp((a, b) => a - b)],
491
+ [ts2.SyntaxKind.AsteriskToken, literalBinaryOp((a, b) => a * b)],
492
+ [ts2.SyntaxKind.SlashToken, literalBinaryOp((a, b) => a / b)],
493
+ [ts2.SyntaxKind.PercentToken, literalBinaryOp((a, b) => a % b)],
494
+ [ts2.SyntaxKind.AmpersandToken, literalBinaryOp((a, b) => a & b)],
495
+ [ts2.SyntaxKind.BarToken, literalBinaryOp((a, b) => a | b)],
496
+ [ts2.SyntaxKind.CaretToken, literalBinaryOp((a, b) => a ^ b)],
497
+ [ts2.SyntaxKind.LessThanToken, literalBinaryOp((a, b) => a < b)],
498
+ [ts2.SyntaxKind.LessThanEqualsToken, literalBinaryOp((a, b) => a <= b)],
499
+ [ts2.SyntaxKind.GreaterThanToken, literalBinaryOp((a, b) => a > b)],
500
+ [ts2.SyntaxKind.GreaterThanEqualsToken, literalBinaryOp((a, b) => a >= b)],
501
+ [ts2.SyntaxKind.EqualsEqualsToken, literalBinaryOp((a, b) => a == b)],
502
+ [ts2.SyntaxKind.EqualsEqualsEqualsToken, literalBinaryOp((a, b) => a === b)],
503
+ [ts2.SyntaxKind.ExclamationEqualsToken, literalBinaryOp((a, b) => a != b)],
504
+ [ts2.SyntaxKind.ExclamationEqualsEqualsToken, literalBinaryOp((a, b) => a !== b)],
505
+ [ts2.SyntaxKind.LessThanLessThanToken, literalBinaryOp((a, b) => a << b)],
506
+ [ts2.SyntaxKind.GreaterThanGreaterThanToken, literalBinaryOp((a, b) => a >> b)],
507
+ [ts2.SyntaxKind.GreaterThanGreaterThanGreaterThanToken, literalBinaryOp((a, b) => a >>> b)],
508
+ [ts2.SyntaxKind.AsteriskAsteriskToken, literalBinaryOp((a, b) => Math.pow(a, b))],
509
+ [ts2.SyntaxKind.AmpersandAmpersandToken, referenceBinaryOp((a, b) => a && b)],
510
+ [ts2.SyntaxKind.BarBarToken, referenceBinaryOp((a, b) => a || b)]
255
511
  ]);
256
512
  var UNARY_OPERATORS = /* @__PURE__ */ new Map([
257
- [ts.SyntaxKind.TildeToken, (a) => ~a],
258
- [ts.SyntaxKind.MinusToken, (a) => -a],
259
- [ts.SyntaxKind.PlusToken, (a) => +a],
260
- [ts.SyntaxKind.ExclamationToken, (a) => !a]
513
+ [ts2.SyntaxKind.TildeToken, (a) => ~a],
514
+ [ts2.SyntaxKind.MinusToken, (a) => -a],
515
+ [ts2.SyntaxKind.PlusToken, (a) => +a],
516
+ [ts2.SyntaxKind.ExclamationToken, (a) => !a]
261
517
  ]);
262
518
  var StaticInterpreter = class {
263
519
  constructor(host, checker, dependencyTracker) {
@@ -270,43 +526,43 @@ var StaticInterpreter = class {
270
526
  }
271
527
  visitExpression(node, context) {
272
528
  let result;
273
- if (node.kind === ts.SyntaxKind.TrueKeyword) {
529
+ if (node.kind === ts2.SyntaxKind.TrueKeyword) {
274
530
  return true;
275
- } else if (node.kind === ts.SyntaxKind.FalseKeyword) {
531
+ } else if (node.kind === ts2.SyntaxKind.FalseKeyword) {
276
532
  return false;
277
- } else if (node.kind === ts.SyntaxKind.NullKeyword) {
533
+ } else if (node.kind === ts2.SyntaxKind.NullKeyword) {
278
534
  return null;
279
- } else if (ts.isStringLiteral(node)) {
535
+ } else if (ts2.isStringLiteral(node)) {
280
536
  return node.text;
281
- } else if (ts.isNoSubstitutionTemplateLiteral(node)) {
537
+ } else if (ts2.isNoSubstitutionTemplateLiteral(node)) {
282
538
  return node.text;
283
- } else if (ts.isTemplateExpression(node)) {
539
+ } else if (ts2.isTemplateExpression(node)) {
284
540
  result = this.visitTemplateExpression(node, context);
285
- } else if (ts.isNumericLiteral(node)) {
541
+ } else if (ts2.isNumericLiteral(node)) {
286
542
  return parseFloat(node.text);
287
- } else if (ts.isObjectLiteralExpression(node)) {
543
+ } else if (ts2.isObjectLiteralExpression(node)) {
288
544
  result = this.visitObjectLiteralExpression(node, context);
289
- } else if (ts.isIdentifier(node)) {
545
+ } else if (ts2.isIdentifier(node)) {
290
546
  result = this.visitIdentifier(node, context);
291
- } else if (ts.isPropertyAccessExpression(node)) {
547
+ } else if (ts2.isPropertyAccessExpression(node)) {
292
548
  result = this.visitPropertyAccessExpression(node, context);
293
- } else if (ts.isCallExpression(node)) {
549
+ } else if (ts2.isCallExpression(node)) {
294
550
  result = this.visitCallExpression(node, context);
295
- } else if (ts.isConditionalExpression(node)) {
551
+ } else if (ts2.isConditionalExpression(node)) {
296
552
  result = this.visitConditionalExpression(node, context);
297
- } else if (ts.isPrefixUnaryExpression(node)) {
553
+ } else if (ts2.isPrefixUnaryExpression(node)) {
298
554
  result = this.visitPrefixUnaryExpression(node, context);
299
- } else if (ts.isBinaryExpression(node)) {
555
+ } else if (ts2.isBinaryExpression(node)) {
300
556
  result = this.visitBinaryExpression(node, context);
301
- } else if (ts.isArrayLiteralExpression(node)) {
557
+ } else if (ts2.isArrayLiteralExpression(node)) {
302
558
  result = this.visitArrayLiteralExpression(node, context);
303
- } else if (ts.isParenthesizedExpression(node)) {
559
+ } else if (ts2.isParenthesizedExpression(node)) {
304
560
  result = this.visitParenthesizedExpression(node, context);
305
- } else if (ts.isElementAccessExpression(node)) {
561
+ } else if (ts2.isElementAccessExpression(node)) {
306
562
  result = this.visitElementAccessExpression(node, context);
307
- } else if (ts.isAsExpression(node)) {
563
+ } else if (ts2.isAsExpression(node)) {
308
564
  result = this.visitExpression(node.expression, context);
309
- } else if (ts.isNonNullExpression(node)) {
565
+ } else if (ts2.isNonNullExpression(node)) {
310
566
  result = this.visitExpression(node.expression, context);
311
567
  } else if (this.host.isClass(node)) {
312
568
  result = this.visitDeclaration(node, context);
@@ -322,7 +578,7 @@ var StaticInterpreter = class {
322
578
  const array = [];
323
579
  for (let i = 0; i < node.elements.length; i++) {
324
580
  const element = node.elements[i];
325
- if (ts.isSpreadElement(element)) {
581
+ if (ts2.isSpreadElement(element)) {
326
582
  array.push(...this.visitSpreadElement(element, context));
327
583
  } else {
328
584
  array.push(this.visitExpression(element, context));
@@ -334,20 +590,20 @@ var StaticInterpreter = class {
334
590
  const map = /* @__PURE__ */ new Map();
335
591
  for (let i = 0; i < node.properties.length; i++) {
336
592
  const property = node.properties[i];
337
- if (ts.isPropertyAssignment(property)) {
593
+ if (ts2.isPropertyAssignment(property)) {
338
594
  const name = this.stringNameFromPropertyName(property.name, context);
339
595
  if (name === void 0) {
340
596
  return DynamicValue.fromDynamicInput(node, DynamicValue.fromDynamicString(property.name));
341
597
  }
342
598
  map.set(name, this.visitExpression(property.initializer, context));
343
- } else if (ts.isShorthandPropertyAssignment(property)) {
599
+ } else if (ts2.isShorthandPropertyAssignment(property)) {
344
600
  const symbol = this.checker.getShorthandAssignmentValueSymbol(property);
345
601
  if (symbol === void 0 || symbol.valueDeclaration === void 0) {
346
602
  map.set(property.name.text, DynamicValue.fromUnknown(property));
347
603
  } else {
348
604
  map.set(property.name.text, this.visitDeclaration(symbol.valueDeclaration, context));
349
605
  }
350
- } else if (ts.isSpreadAssignment(property)) {
606
+ } else if (ts2.isSpreadAssignment(property)) {
351
607
  const spread = this.visitExpression(property.expression, context);
352
608
  if (spread instanceof DynamicValue) {
353
609
  return DynamicValue.fromDynamicInput(node, spread);
@@ -379,7 +635,7 @@ var StaticInterpreter = class {
379
635
  visitIdentifier(node, context) {
380
636
  const decl = this.host.getDeclarationOfIdentifier(node);
381
637
  if (decl === null) {
382
- if (ts.identifierToKeywordKind(node) === ts.SyntaxKind.UndefinedKeyword) {
638
+ if (ts2.identifierToKeywordKind(node) === ts2.SyntaxKind.UndefinedKeyword) {
383
639
  return void 0;
384
640
  } else {
385
641
  if (this.dependencyTracker !== null && this.host.getImportOfIdentifier(node) !== null) {
@@ -405,17 +661,17 @@ var StaticInterpreter = class {
405
661
  }
406
662
  if (this.host.isClass(node)) {
407
663
  return this.getReference(node, context);
408
- } else if (ts.isVariableDeclaration(node)) {
664
+ } else if (ts2.isVariableDeclaration(node)) {
409
665
  return this.visitVariableDeclaration(node, context);
410
- } else if (ts.isParameter(node) && context.scope.has(node)) {
666
+ } else if (ts2.isParameter(node) && context.scope.has(node)) {
411
667
  return context.scope.get(node);
412
- } else if (ts.isExportAssignment(node)) {
668
+ } else if (ts2.isExportAssignment(node)) {
413
669
  return this.visitExpression(node.expression, context);
414
- } else if (ts.isEnumDeclaration(node)) {
670
+ } else if (ts2.isEnumDeclaration(node)) {
415
671
  return this.visitEnumDeclaration(node, context);
416
- } else if (ts.isSourceFile(node)) {
672
+ } else if (ts2.isSourceFile(node)) {
417
673
  return this.visitSourceFile(node, context);
418
- } else if (ts.isBindingElement(node)) {
674
+ } else if (ts2.isBindingElement(node)) {
419
675
  return this.visitBindingElement(node, context);
420
676
  } else {
421
677
  return this.getReference(node, context);
@@ -583,7 +839,7 @@ var StaticInterpreter = class {
583
839
  visitFunctionBody(node, fn, context) {
584
840
  if (fn.body === null) {
585
841
  return DynamicValue.fromUnknown(node);
586
- } else if (fn.body.length !== 1 || !ts.isReturnStatement(fn.body[0])) {
842
+ } else if (fn.body.length !== 1 || !ts2.isReturnStatement(fn.body[0])) {
587
843
  return DynamicValue.fromComplexFunctionCall(node, fn);
588
844
  }
589
845
  const ret = fn.body[0];
@@ -654,7 +910,7 @@ var StaticInterpreter = class {
654
910
  evaluateFunctionArguments(node, context) {
655
911
  const args = [];
656
912
  for (const arg of node.arguments) {
657
- if (ts.isSpreadElement(arg)) {
913
+ if (ts2.isSpreadElement(arg)) {
658
914
  args.push(...this.visitSpreadElement(arg, context));
659
915
  } else {
660
916
  args.push(this.visitExpression(arg, context));
@@ -675,23 +931,23 @@ var StaticInterpreter = class {
675
931
  visitBindingElement(node, context) {
676
932
  const path2 = [];
677
933
  let closestDeclaration = node;
678
- while (ts.isBindingElement(closestDeclaration) || ts.isArrayBindingPattern(closestDeclaration) || ts.isObjectBindingPattern(closestDeclaration)) {
679
- if (ts.isBindingElement(closestDeclaration)) {
934
+ while (ts2.isBindingElement(closestDeclaration) || ts2.isArrayBindingPattern(closestDeclaration) || ts2.isObjectBindingPattern(closestDeclaration)) {
935
+ if (ts2.isBindingElement(closestDeclaration)) {
680
936
  path2.unshift(closestDeclaration);
681
937
  }
682
938
  closestDeclaration = closestDeclaration.parent;
683
939
  }
684
- if (!ts.isVariableDeclaration(closestDeclaration) || closestDeclaration.initializer === void 0) {
940
+ if (!ts2.isVariableDeclaration(closestDeclaration) || closestDeclaration.initializer === void 0) {
685
941
  return DynamicValue.fromUnknown(node);
686
942
  }
687
943
  let value = this.visit(closestDeclaration.initializer, context);
688
944
  for (const element of path2) {
689
945
  let key;
690
- if (ts.isArrayBindingPattern(element.parent)) {
946
+ if (ts2.isArrayBindingPattern(element.parent)) {
691
947
  key = element.parent.elements.indexOf(element);
692
948
  } else {
693
949
  const name = element.propertyName || element.name;
694
- if (ts.isIdentifier(name)) {
950
+ if (ts2.isIdentifier(name)) {
695
951
  key = name.text;
696
952
  } else {
697
953
  return DynamicValue.fromUnknown(element);
@@ -705,9 +961,9 @@ var StaticInterpreter = class {
705
961
  return value;
706
962
  }
707
963
  stringNameFromPropertyName(node, context) {
708
- if (ts.isIdentifier(node) || ts.isStringLiteral(node) || ts.isNumericLiteral(node)) {
964
+ if (ts2.isIdentifier(node) || ts2.isStringLiteral(node) || ts2.isNumericLiteral(node)) {
709
965
  return node.text;
710
- } else if (ts.isComputedPropertyName(node)) {
966
+ } else if (ts2.isComputedPropertyName(node)) {
711
967
  const literal3 = this.visitExpression(node.expression, context);
712
968
  return typeof literal3 === "string" ? literal3 : void 0;
713
969
  } else {
@@ -718,15 +974,15 @@ var StaticInterpreter = class {
718
974
  return new Reference(node, owningModule(context));
719
975
  }
720
976
  visitType(node, context) {
721
- if (ts.isLiteralTypeNode(node)) {
977
+ if (ts2.isLiteralTypeNode(node)) {
722
978
  return this.visitExpression(node.literal, context);
723
- } else if (ts.isTupleTypeNode(node)) {
979
+ } else if (ts2.isTupleTypeNode(node)) {
724
980
  return this.visitTupleType(node, context);
725
- } else if (ts.isNamedTupleMember(node)) {
981
+ } else if (ts2.isNamedTupleMember(node)) {
726
982
  return this.visitType(node.type, context);
727
- } else if (ts.isTypeOperatorNode(node) && node.operator === ts.SyntaxKind.ReadonlyKeyword) {
983
+ } else if (ts2.isTypeOperatorNode(node) && node.operator === ts2.SyntaxKind.ReadonlyKeyword) {
728
984
  return this.visitType(node.type, context);
729
- } else if (ts.isTypeQueryNode(node)) {
985
+ } else if (ts2.isTypeQueryNode(node)) {
730
986
  return this.visitTypeQuery(node, context);
731
987
  }
732
988
  return DynamicValue.fromDynamicType(node);
@@ -739,7 +995,7 @@ var StaticInterpreter = class {
739
995
  return res;
740
996
  }
741
997
  visitTypeQuery(node, context) {
742
- if (!ts.isIdentifier(node.exprName)) {
998
+ if (!ts2.isIdentifier(node.exprName)) {
743
999
  return DynamicValue.fromUnknown(node);
744
1000
  }
745
1001
  const decl = this.host.getDeclarationOfIdentifier(node.exprName);
@@ -751,7 +1007,7 @@ var StaticInterpreter = class {
751
1007
  }
752
1008
  };
753
1009
  function isFunctionOrMethodReference(ref) {
754
- return ts.isFunctionDeclaration(ref.node) || ts.isMethodDeclaration(ref.node) || ts.isFunctionExpression(ref.node);
1010
+ return ts2.isFunctionDeclaration(ref.node) || ts2.isMethodDeclaration(ref.node) || ts2.isFunctionExpression(ref.node);
755
1011
  }
756
1012
  function literal(value, reject) {
757
1013
  if (value instanceof EnumValue) {
@@ -763,16 +1019,16 @@ function literal(value, reject) {
763
1019
  return reject(value);
764
1020
  }
765
1021
  function isVariableDeclarationDeclared(node) {
766
- if (node.parent === void 0 || !ts.isVariableDeclarationList(node.parent)) {
1022
+ if (node.parent === void 0 || !ts2.isVariableDeclarationList(node.parent)) {
767
1023
  return false;
768
1024
  }
769
1025
  const declList = node.parent;
770
- if (declList.parent === void 0 || !ts.isVariableStatement(declList.parent)) {
1026
+ if (declList.parent === void 0 || !ts2.isVariableStatement(declList.parent)) {
771
1027
  return false;
772
1028
  }
773
1029
  const varStmt = declList.parent;
774
- const modifiers = ts.getModifiers(varStmt);
775
- return modifiers !== void 0 && modifiers.some((mod) => mod.kind === ts.SyntaxKind.DeclareKeyword);
1030
+ const modifiers = ts2.getModifiers(varStmt);
1031
+ return modifiers !== void 0 && modifiers.some((mod) => mod.kind === ts2.SyntaxKind.DeclareKeyword);
776
1032
  }
777
1033
  var EMPTY = {};
778
1034
  function joinModuleContext(existing, node, decl) {
@@ -800,7 +1056,7 @@ function owningModule(context, override = null) {
800
1056
  }
801
1057
  }
802
1058
 
803
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1059
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
804
1060
  var PartialEvaluator = class {
805
1061
  constructor(host, checker, dependencyTracker) {
806
1062
  this.host = host;
@@ -820,8 +1076,8 @@ var PartialEvaluator = class {
820
1076
  }
821
1077
  };
822
1078
 
823
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
824
- import ts2 from "typescript";
1079
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1080
+ import ts3 from "typescript";
825
1081
  function describeResolvedType(value, maxDepth = 1) {
826
1082
  var _a, _b;
827
1083
  if (value === null) {
@@ -928,21 +1184,21 @@ function getContainerNode(node) {
928
1184
  let currentNode = node;
929
1185
  while (currentNode !== void 0) {
930
1186
  switch (currentNode.kind) {
931
- case ts2.SyntaxKind.ExpressionStatement:
932
- case ts2.SyntaxKind.VariableStatement:
933
- case ts2.SyntaxKind.ReturnStatement:
934
- case ts2.SyntaxKind.IfStatement:
935
- case ts2.SyntaxKind.SwitchStatement:
936
- case ts2.SyntaxKind.DoStatement:
937
- case ts2.SyntaxKind.WhileStatement:
938
- case ts2.SyntaxKind.ForStatement:
939
- case ts2.SyntaxKind.ForInStatement:
940
- case ts2.SyntaxKind.ForOfStatement:
941
- case ts2.SyntaxKind.ContinueStatement:
942
- case ts2.SyntaxKind.BreakStatement:
943
- case ts2.SyntaxKind.ThrowStatement:
944
- case ts2.SyntaxKind.ObjectBindingPattern:
945
- case ts2.SyntaxKind.ArrayBindingPattern:
1187
+ case ts3.SyntaxKind.ExpressionStatement:
1188
+ case ts3.SyntaxKind.VariableStatement:
1189
+ case ts3.SyntaxKind.ReturnStatement:
1190
+ case ts3.SyntaxKind.IfStatement:
1191
+ case ts3.SyntaxKind.SwitchStatement:
1192
+ case ts3.SyntaxKind.DoStatement:
1193
+ case ts3.SyntaxKind.WhileStatement:
1194
+ case ts3.SyntaxKind.ForStatement:
1195
+ case ts3.SyntaxKind.ForInStatement:
1196
+ case ts3.SyntaxKind.ForOfStatement:
1197
+ case ts3.SyntaxKind.ContinueStatement:
1198
+ case ts3.SyntaxKind.BreakStatement:
1199
+ case ts3.SyntaxKind.ThrowStatement:
1200
+ case ts3.SyntaxKind.ObjectBindingPattern:
1201
+ case ts3.SyntaxKind.ArrayBindingPattern:
946
1202
  return currentNode;
947
1203
  }
948
1204
  currentNode = currentNode.parent;
@@ -950,263 +1206,7 @@ function getContainerNode(node) {
950
1206
  return node.getSourceFile();
951
1207
  }
952
1208
 
953
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
954
- import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
955
- import ts3 from "typescript";
956
- var CORE_MODULE = "@angular/core";
957
- function valueReferenceToExpression(valueRef) {
958
- if (valueRef.kind === 2) {
959
- return null;
960
- } else if (valueRef.kind === 0) {
961
- const expr = new WrappedNodeExpr(valueRef.expression);
962
- if (valueRef.defaultImportStatement !== null) {
963
- attachDefaultImportDeclaration(expr, valueRef.defaultImportStatement);
964
- }
965
- return expr;
966
- } else {
967
- let importExpr = new ExternalExpr({ moduleName: valueRef.moduleName, name: valueRef.importedName });
968
- if (valueRef.nestedPath !== null) {
969
- for (const property of valueRef.nestedPath) {
970
- importExpr = new ReadPropExpr(importExpr, property);
971
- }
972
- }
973
- return importExpr;
974
- }
975
- }
976
- function toR3Reference(origin, ref, context, refEmitter) {
977
- const emittedValueRef = refEmitter.emit(ref, context);
978
- assertSuccessfulReferenceEmit(emittedValueRef, origin, "class");
979
- const emittedTypeRef = refEmitter.emit(ref, context, ImportFlags.ForceNewImport | ImportFlags.AllowTypeImports);
980
- assertSuccessfulReferenceEmit(emittedTypeRef, origin, "class");
981
- return {
982
- value: emittedValueRef.expression,
983
- type: emittedTypeRef.expression
984
- };
985
- }
986
- function isAngularCore(decorator) {
987
- return decorator.import !== null && decorator.import.from === CORE_MODULE;
988
- }
989
- function isAngularCoreReference(reference, symbolName) {
990
- return reference.ownedByModuleGuess === CORE_MODULE && reference.debugName === symbolName;
991
- }
992
- function findAngularDecorator(decorators, name, isCore) {
993
- return decorators.find((decorator) => isAngularDecorator(decorator, name, isCore));
994
- }
995
- function isAngularDecorator(decorator, name, isCore) {
996
- if (isCore) {
997
- return decorator.name === name;
998
- } else if (isAngularCore(decorator)) {
999
- return decorator.import.name === name;
1000
- }
1001
- return false;
1002
- }
1003
- function getAngularDecorators(decorators, names, isCore) {
1004
- return decorators.filter((decorator) => {
1005
- var _a;
1006
- const name = isCore ? decorator.name : (_a = decorator.import) == null ? void 0 : _a.name;
1007
- if (name === void 0 || !names.includes(name)) {
1008
- return false;
1009
- }
1010
- return isCore || isAngularCore(decorator);
1011
- });
1012
- }
1013
- function unwrapExpression(node) {
1014
- while (ts3.isAsExpression(node) || ts3.isParenthesizedExpression(node)) {
1015
- node = node.expression;
1016
- }
1017
- return node;
1018
- }
1019
- function expandForwardRef(arg) {
1020
- arg = unwrapExpression(arg);
1021
- if (!ts3.isArrowFunction(arg) && !ts3.isFunctionExpression(arg)) {
1022
- return null;
1023
- }
1024
- const body = arg.body;
1025
- if (ts3.isBlock(body)) {
1026
- if (body.statements.length !== 1) {
1027
- return null;
1028
- }
1029
- const stmt = body.statements[0];
1030
- if (!ts3.isReturnStatement(stmt) || stmt.expression === void 0) {
1031
- return null;
1032
- }
1033
- return stmt.expression;
1034
- } else {
1035
- return body;
1036
- }
1037
- }
1038
- function tryUnwrapForwardRef(node, reflector) {
1039
- node = unwrapExpression(node);
1040
- if (!ts3.isCallExpression(node) || node.arguments.length !== 1) {
1041
- return null;
1042
- }
1043
- const fn = ts3.isPropertyAccessExpression(node.expression) ? node.expression.name : node.expression;
1044
- if (!ts3.isIdentifier(fn)) {
1045
- return null;
1046
- }
1047
- const expr = expandForwardRef(node.arguments[0]);
1048
- if (expr === null) {
1049
- return null;
1050
- }
1051
- const imp = reflector.getImportOfIdentifier(fn);
1052
- if (imp === null || imp.from !== "@angular/core" || imp.name !== "forwardRef") {
1053
- return null;
1054
- }
1055
- return expr;
1056
- }
1057
- var forwardRefResolver = (fn, callExpr, resolve, unresolvable) => {
1058
- if (!isAngularCoreReference(fn, "forwardRef") || callExpr.arguments.length !== 1) {
1059
- return unresolvable;
1060
- }
1061
- const expanded = expandForwardRef(callExpr.arguments[0]);
1062
- if (expanded !== null) {
1063
- return resolve(expanded);
1064
- } else {
1065
- return unresolvable;
1066
- }
1067
- };
1068
- function combineResolvers(resolvers) {
1069
- return (fn, callExpr, resolve, unresolvable) => {
1070
- for (const resolver of resolvers) {
1071
- const resolved = resolver(fn, callExpr, resolve, unresolvable);
1072
- if (resolved !== unresolvable) {
1073
- return resolved;
1074
- }
1075
- }
1076
- return unresolvable;
1077
- };
1078
- }
1079
- function isExpressionForwardReference(expr, context, contextSource) {
1080
- if (isWrappedTsNodeExpr(expr)) {
1081
- const node = ts3.getOriginalNode(expr.node);
1082
- return node.getSourceFile() === contextSource && context.pos < node.pos;
1083
- } else {
1084
- return false;
1085
- }
1086
- }
1087
- function isWrappedTsNodeExpr(expr) {
1088
- return expr instanceof WrappedNodeExpr;
1089
- }
1090
- function readBaseClass(node, reflector, evaluator) {
1091
- const baseExpression = reflector.getBaseClassExpression(node);
1092
- if (baseExpression !== null) {
1093
- const baseClass = evaluator.evaluate(baseExpression);
1094
- if (baseClass instanceof Reference && reflector.isClass(baseClass.node)) {
1095
- return baseClass;
1096
- } else {
1097
- return "dynamic";
1098
- }
1099
- }
1100
- return null;
1101
- }
1102
- var parensWrapperTransformerFactory = (context) => {
1103
- const visitor = (node) => {
1104
- const visited = ts3.visitEachChild(node, visitor, context);
1105
- if (ts3.isArrowFunction(visited) || ts3.isFunctionExpression(visited)) {
1106
- return ts3.factory.createParenthesizedExpression(visited);
1107
- }
1108
- return visited;
1109
- };
1110
- return (node) => ts3.visitEachChild(node, visitor, context);
1111
- };
1112
- function wrapFunctionExpressionsInParens(expression) {
1113
- return ts3.transform(expression, [parensWrapperTransformerFactory]).transformed[0];
1114
- }
1115
- function resolveProvidersRequiringFactory(rawProviders, reflector, evaluator) {
1116
- const providers = /* @__PURE__ */ new Set();
1117
- const resolvedProviders = evaluator.evaluate(rawProviders);
1118
- if (!Array.isArray(resolvedProviders)) {
1119
- return providers;
1120
- }
1121
- resolvedProviders.forEach(function processProviders(provider) {
1122
- let tokenClass = null;
1123
- if (Array.isArray(provider)) {
1124
- provider.forEach(processProviders);
1125
- } else if (provider instanceof Reference) {
1126
- tokenClass = provider;
1127
- } else if (provider instanceof Map && provider.has("useClass") && !provider.has("deps")) {
1128
- const useExisting = provider.get("useClass");
1129
- if (useExisting instanceof Reference) {
1130
- tokenClass = useExisting;
1131
- }
1132
- }
1133
- if (tokenClass !== null && !tokenClass.node.getSourceFile().isDeclarationFile && reflector.isClass(tokenClass.node)) {
1134
- const constructorParameters = reflector.getConstructorParameters(tokenClass.node);
1135
- if (constructorParameters !== null && constructorParameters.length > 0) {
1136
- providers.add(tokenClass);
1137
- }
1138
- }
1139
- });
1140
- return providers;
1141
- }
1142
- function wrapTypeReference(reflector, clazz) {
1143
- const value = new WrappedNodeExpr(clazz.name);
1144
- const type = value;
1145
- return { value, type };
1146
- }
1147
- function createSourceSpan(node) {
1148
- const sf = node.getSourceFile();
1149
- const [startOffset, endOffset] = [node.getStart(), node.getEnd()];
1150
- const { line: startLine, character: startCol } = sf.getLineAndCharacterOfPosition(startOffset);
1151
- const { line: endLine, character: endCol } = sf.getLineAndCharacterOfPosition(endOffset);
1152
- const parseSf = new ParseSourceFile(sf.getFullText(), sf.fileName);
1153
- return new ParseSourceSpan(new ParseLocation(parseSf, startOffset, startLine + 1, startCol + 1), new ParseLocation(parseSf, endOffset, endLine + 1, endCol + 1));
1154
- }
1155
- function compileResults(fac, def, metadataStmt, propName, additionalFields, deferrableImports, debugInfo = null) {
1156
- const statements = def.statements;
1157
- if (metadataStmt !== null) {
1158
- statements.push(metadataStmt);
1159
- }
1160
- if (debugInfo !== null) {
1161
- statements.push(debugInfo);
1162
- }
1163
- const results = [
1164
- fac,
1165
- {
1166
- name: propName,
1167
- initializer: def.expression,
1168
- statements: def.statements,
1169
- type: def.type,
1170
- deferrableImports
1171
- }
1172
- ];
1173
- if (additionalFields !== null) {
1174
- results.push(...additionalFields);
1175
- }
1176
- return results;
1177
- }
1178
- function toFactoryMetadata(meta, target) {
1179
- return {
1180
- name: meta.name,
1181
- type: meta.type,
1182
- typeArgumentCount: meta.typeArgumentCount,
1183
- deps: meta.deps,
1184
- target
1185
- };
1186
- }
1187
- function resolveImportedFile(moduleResolver, importedFile, expr, origin) {
1188
- if (importedFile !== "unknown") {
1189
- return importedFile;
1190
- }
1191
- if (!(expr instanceof ExternalExpr)) {
1192
- return null;
1193
- }
1194
- return moduleResolver.resolveModule(expr.value.moduleName, origin.fileName);
1195
- }
1196
- function getOriginNodeForDiagnostics(expr, container) {
1197
- const nodeSf = expr.getSourceFile();
1198
- const exprSf = container.getSourceFile();
1199
- if (nodeSf === exprSf && expr.pos >= container.pos && expr.end <= container.end) {
1200
- return expr;
1201
- } else {
1202
- return container;
1203
- }
1204
- }
1205
- function isAbstractClassDeclaration(clazz) {
1206
- return ts3.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts3.SyntaxKind.AbstractKeyword) : false;
1207
- }
1208
-
1209
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1209
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1210
1210
  import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
1211
1211
  import ts4 from "typescript";
1212
1212
  function getConstructorDependencies(clazz, reflector, isCore) {
@@ -1350,10 +1350,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
1350
1350
  return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
1351
1351
  }
1352
1352
 
1353
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1353
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1354
1354
  import ts13 from "typescript";
1355
1355
 
1356
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1356
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1357
1357
  var MetaKind;
1358
1358
  (function(MetaKind2) {
1359
1359
  MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
@@ -1366,10 +1366,10 @@ var MatchSource;
1366
1366
  MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
1367
1367
  })(MatchSource || (MatchSource = {}));
1368
1368
 
1369
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1369
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1370
1370
  import ts6 from "typescript";
1371
1371
 
1372
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1372
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1373
1373
  var ClassPropertyMapping = class {
1374
1374
  constructor(forwardMap) {
1375
1375
  this.forwardMap = forwardMap;
@@ -1449,7 +1449,7 @@ function reverseMapFromForwardMap(forwardMap) {
1449
1449
  return reverseMap;
1450
1450
  }
1451
1451
 
1452
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1452
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1453
1453
  import ts5 from "typescript";
1454
1454
  function extractReferencesFromType(checker, def, bestGuessOwningModule) {
1455
1455
  if (!ts5.isTupleTypeNode(def)) {
@@ -1642,7 +1642,7 @@ function isHostDirectiveMetaForGlobalMode(hostDirectiveMeta) {
1642
1642
  return hostDirectiveMeta.directive instanceof Reference;
1643
1643
  }
1644
1644
 
1645
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1645
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1646
1646
  var DtsMetadataReader = class {
1647
1647
  constructor(checker, reflector) {
1648
1648
  this.checker = checker;
@@ -1825,7 +1825,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
1825
1825
  return result.length > 0 ? result : null;
1826
1826
  }
1827
1827
 
1828
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
1828
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
1829
1829
  function flattenInheritedDirectiveMetadata(reader, dir) {
1830
1830
  const topMeta = reader.getDirectiveMetadata(dir);
1831
1831
  if (topMeta === null) {
@@ -1889,7 +1889,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
1889
1889
  };
1890
1890
  }
1891
1891
 
1892
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
1892
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
1893
1893
  var LocalMetadataRegistry = class {
1894
1894
  constructor() {
1895
1895
  this.directives = /* @__PURE__ */ new Map();
@@ -1946,7 +1946,7 @@ var CompoundMetadataRegistry = class {
1946
1946
  }
1947
1947
  };
1948
1948
 
1949
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
1949
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
1950
1950
  var ResourceRegistry = class {
1951
1951
  constructor() {
1952
1952
  this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
@@ -2011,7 +2011,7 @@ var ResourceRegistry = class {
2011
2011
  }
2012
2012
  };
2013
2013
 
2014
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
2014
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
2015
2015
  var ExportedProviderStatusResolver = class {
2016
2016
  constructor(metaReader) {
2017
2017
  this.metaReader = metaReader;
@@ -2055,7 +2055,7 @@ var ExportedProviderStatusResolver = class {
2055
2055
  }
2056
2056
  };
2057
2057
 
2058
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
2058
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
2059
2059
  var EMPTY_ARRAY = [];
2060
2060
  var HostDirectivesResolver = class {
2061
2061
  constructor(metaReader) {
@@ -2121,7 +2121,7 @@ function resolveOutput(bindingName) {
2121
2121
  return bindingName;
2122
2122
  }
2123
2123
 
2124
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
2124
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
2125
2125
  var CompilationMode;
2126
2126
  (function(CompilationMode2) {
2127
2127
  CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
@@ -2135,7 +2135,7 @@ var HandlerPrecedence;
2135
2135
  HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
2136
2136
  })(HandlerPrecedence || (HandlerPrecedence = {}));
2137
2137
 
2138
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
2138
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
2139
2139
  import ts7 from "typescript";
2140
2140
  function aliasTransformFactory(exportStatements) {
2141
2141
  return () => {
@@ -2158,10 +2158,10 @@ function aliasTransformFactory(exportStatements) {
2158
2158
  };
2159
2159
  }
2160
2160
 
2161
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2161
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2162
2162
  import ts8 from "typescript";
2163
2163
 
2164
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
2164
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
2165
2165
  var TraitState;
2166
2166
  (function(TraitState2) {
2167
2167
  TraitState2[TraitState2["Pending"] = 0] = "Pending";
@@ -2218,7 +2218,7 @@ var TraitImpl = class {
2218
2218
  }
2219
2219
  };
2220
2220
 
2221
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2221
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2222
2222
  var TraitCompiler = class {
2223
2223
  constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
2224
2224
  this.handlers = handlers;
@@ -2675,10 +2675,10 @@ function containsErrors(diagnostics) {
2675
2675
  return diagnostics !== null && diagnostics.some((diag) => diag.category === ts8.DiagnosticCategory.Error);
2676
2676
  }
2677
2677
 
2678
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
2678
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
2679
2679
  import ts10 from "typescript";
2680
2680
 
2681
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
2681
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
2682
2682
  import ts9 from "typescript";
2683
2683
  function addImports(factory = ts9.factory, importManager, sf, extraStatements = []) {
2684
2684
  const addedImports = importManager.getAllImports(sf.fileName).map((i) => i.qualifier !== null ? createNamespaceImportDecl(i, factory) : createSideEffectImportDecl(i, factory));
@@ -2722,7 +2722,7 @@ function isImportStatement(stmt) {
2722
2722
  return ts9.isImportDeclaration(stmt) || ts9.isImportEqualsDeclaration(stmt) || ts9.isNamespaceImport(stmt);
2723
2723
  }
2724
2724
 
2725
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
2725
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
2726
2726
  var DtsTransformRegistry = class {
2727
2727
  constructor() {
2728
2728
  this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
@@ -2869,11 +2869,11 @@ function markForEmitAsSingleLine(node) {
2869
2869
  ts10.forEachChild(node, markForEmitAsSingleLine);
2870
2870
  }
2871
2871
 
2872
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2872
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2873
2873
  import { ConstantPool } from "@angular/compiler";
2874
2874
  import ts12 from "typescript";
2875
2875
 
2876
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
2876
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
2877
2877
  import ts11 from "typescript";
2878
2878
  function visit(node, visitor, context) {
2879
2879
  return visitor._visit(node, context);
@@ -2934,7 +2934,7 @@ var Visitor = class {
2934
2934
  }
2935
2935
  };
2936
2936
 
2937
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2937
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2938
2938
  var NO_DECORATORS = /* @__PURE__ */ new Set();
2939
2939
  var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
2940
2940
  function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, localCompilationExtraImportsTracker, perf, isCore, isClosureCompilerEnabled) {
@@ -3163,7 +3163,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
3163
3163
  return array;
3164
3164
  }
3165
3165
 
3166
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
3166
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
3167
3167
  function makeDuplicateDeclarationError(node, data, kind) {
3168
3168
  const context = [];
3169
3169
  for (const decl of data) {
@@ -3370,7 +3370,7 @@ function assertLocalCompilationUnresolvedConst(compilationMode, value, nodeToHig
3370
3370
  }
3371
3371
  }
3372
3372
 
3373
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
3373
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
3374
3374
  import { ViewEncapsulation } from "@angular/compiler";
3375
3375
  import ts14 from "typescript";
3376
3376
  function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
@@ -3421,7 +3421,7 @@ function resolveLiteral(decorator, literalCache) {
3421
3421
  return meta;
3422
3422
  }
3423
3423
 
3424
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
3424
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
3425
3425
  import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
3426
3426
  function compileNgFactoryDefField(metadata) {
3427
3427
  const res = compileFactoryFunction(metadata);
@@ -3444,7 +3444,7 @@ function compileDeclareFactory(metadata) {
3444
3444
  };
3445
3445
  }
3446
3446
 
3447
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
3447
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
3448
3448
  var InjectableClassRegistry = class {
3449
3449
  constructor(host, isCore) {
3450
3450
  this.host = host;
@@ -3470,7 +3470,7 @@ var InjectableClassRegistry = class {
3470
3470
  }
3471
3471
  };
3472
3472
 
3473
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
3473
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
3474
3474
  import { ArrowFunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
3475
3475
  import ts15 from "typescript";
3476
3476
  function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
@@ -3555,7 +3555,7 @@ function removeIdentifierReferences(node, names) {
3555
3555
  return result.transformed[0];
3556
3556
  }
3557
3557
 
3558
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
3558
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
3559
3559
  import { literal as literal2, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
3560
3560
  import * as path from "path";
3561
3561
  function extractClassDebugInfo(clazz, reflection, rootDirs, forbidOrphanRendering) {
@@ -3582,13 +3582,13 @@ function computeRelativePathIfPossible(filePath, rootDirs) {
3582
3582
  return null;
3583
3583
  }
3584
3584
 
3585
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
3585
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
3586
3586
  var NoopReferencesRegistry = class {
3587
3587
  add(source, ...references) {
3588
3588
  }
3589
3589
  };
3590
3590
 
3591
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
3591
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
3592
3592
  import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
3593
3593
  function extractSchemas(rawExpr, evaluator, context) {
3594
3594
  const schemas = [];
@@ -3618,7 +3618,7 @@ function extractSchemas(rawExpr, evaluator, context) {
3618
3618
  return schemas;
3619
3619
  }
3620
3620
 
3621
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
3621
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
3622
3622
  import { outputAst } from "@angular/compiler";
3623
3623
  function compileInputTransformFields(inputs) {
3624
3624
  const extraFields = [];
@@ -3636,11 +3636,11 @@ function compileInputTransformFields(inputs) {
3636
3636
  return extraFields;
3637
3637
  }
3638
3638
 
3639
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
3639
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
3640
3640
  import { compileClassDebugInfo, compileComponentClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector as CssSelector2, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, ExternalExpr as ExternalExpr6, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher2, ViewEncapsulation as ViewEncapsulation2, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
3641
3641
  import ts27 from "typescript";
3642
3642
 
3643
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
3643
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
3644
3644
  import ts16 from "typescript";
3645
3645
  var SemanticSymbol = class {
3646
3646
  constructor(decl) {
@@ -3656,7 +3656,7 @@ function getSymbolIdentifier(decl) {
3656
3656
  return decl.name.text;
3657
3657
  }
3658
3658
 
3659
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
3659
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
3660
3660
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
3661
3661
  var OpaqueSymbol = class extends SemanticSymbol {
3662
3662
  isPublicApiAffected() {
@@ -3799,10 +3799,10 @@ function getImportPath(expr) {
3799
3799
  }
3800
3800
  }
3801
3801
 
3802
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3802
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3803
3803
  import ts17 from "typescript";
3804
3804
 
3805
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
3805
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
3806
3806
  function isSymbolEqual(a, b) {
3807
3807
  if (a.decl === b.decl) {
3808
3808
  return true;
@@ -3852,7 +3852,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
3852
3852
  return true;
3853
3853
  }
3854
3854
 
3855
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3855
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3856
3856
  function extractSemanticTypeParameters(node) {
3857
3857
  if (!ts17.isClassDeclaration(node) || node.typeParameters === void 0) {
3858
3858
  return null;
@@ -3872,14 +3872,14 @@ function isTypeParameterEqual(a, b) {
3872
3872
  return a.hasGenericTypeBound === b.hasGenericTypeBound;
3873
3873
  }
3874
3874
 
3875
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
3875
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
3876
3876
  var ComponentScopeKind;
3877
3877
  (function(ComponentScopeKind2) {
3878
3878
  ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
3879
3879
  ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
3880
3880
  })(ComponentScopeKind || (ComponentScopeKind = {}));
3881
3881
 
3882
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
3882
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
3883
3883
  var CompoundComponentScopeReader = class {
3884
3884
  constructor(readers) {
3885
3885
  this.readers = readers;
@@ -3904,7 +3904,7 @@ var CompoundComponentScopeReader = class {
3904
3904
  }
3905
3905
  };
3906
3906
 
3907
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
3907
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
3908
3908
  var MetadataDtsModuleScopeResolver = class {
3909
3909
  constructor(dtsMetaReader, aliasingHost) {
3910
3910
  this.dtsMetaReader = dtsMetaReader;
@@ -3980,11 +3980,11 @@ var MetadataDtsModuleScopeResolver = class {
3980
3980
  }
3981
3981
  };
3982
3982
 
3983
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
3983
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
3984
3984
  import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
3985
3985
  import ts18 from "typescript";
3986
3986
 
3987
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
3987
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
3988
3988
  function getDiagnosticNode(ref, rawExpr) {
3989
3989
  return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
3990
3990
  }
@@ -4010,7 +4010,7 @@ function makeUnknownComponentDeferredImportDiagnostic(ref, rawExpr) {
4010
4010
  return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_DEFERRED_IMPORT, getDiagnosticNode(ref, rawExpr), `Component deferred imports must be standalone components, directives or pipes.`);
4011
4011
  }
4012
4012
 
4013
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
4013
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
4014
4014
  var LocalModuleScopeRegistry = class {
4015
4015
  constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
4016
4016
  this.localReader = localReader;
@@ -4349,7 +4349,7 @@ function reexportCollision(module, refA, refB) {
4349
4349
  ]);
4350
4350
  }
4351
4351
 
4352
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
4352
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
4353
4353
  import { CssSelector, SelectorMatcher } from "@angular/compiler";
4354
4354
  import ts19 from "typescript";
4355
4355
  var TypeCheckScopeRegistry = class {
@@ -4427,69 +4427,70 @@ var TypeCheckScopeRegistry = class {
4427
4427
  }
4428
4428
  };
4429
4429
 
4430
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4430
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4431
4431
  import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
4432
4432
 
4433
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4433
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4434
4434
  import { createMayBeForwardRefExpression as createMayBeForwardRefExpression2, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
4435
4435
  import ts23 from "typescript";
4436
4436
 
4437
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
4437
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
4438
4438
  import ts20 from "typescript";
4439
- function tryParseInitializerApiMember(fnNames, member, reflector, isCore) {
4439
+ function tryParseInitializerApiMember(fnNames, member, reflector, importTracker) {
4440
4440
  if (member.value === null || !ts20.isCallExpression(member.value)) {
4441
4441
  return null;
4442
4442
  }
4443
4443
  const call = member.value;
4444
- let target = extractPropertyTarget(call.expression);
4445
- if (target === null) {
4446
- return null;
4447
- }
4448
- let apiName = fnNames.find((n) => n === target.text);
4449
- if (apiName !== void 0) {
4450
- if (!isReferenceToInitializerApiFunction(apiName, target, isCore, reflector)) {
4451
- return null;
4452
- }
4453
- return { apiName, call, isRequired: false };
4454
- }
4455
- if (target.text !== "required" || !ts20.isPropertyAccessExpression(call.expression)) {
4456
- return null;
4457
- }
4458
- const apiPropertyAccess = call.expression;
4459
- target = extractPropertyTarget(apiPropertyAccess.expression);
4460
- if (target === null) {
4444
+ const staticResult = parseTopLevelCall(call, fnNames, importTracker) || parseTopLevelRequiredCall(call, fnNames, importTracker) || parseTopLevelCallFromNamespace(call, fnNames, importTracker);
4445
+ if (staticResult === null) {
4461
4446
  return null;
4462
4447
  }
4463
- apiName = fnNames.find((n) => n === target.text);
4464
- if (apiName === void 0 || !isReferenceToInitializerApiFunction(apiName, target, isCore, reflector)) {
4448
+ const resolvedImport = reflector.getImportOfIdentifier(staticResult.node);
4449
+ if (resolvedImport === null || !fnNames.includes(resolvedImport.name)) {
4465
4450
  return null;
4466
4451
  }
4467
4452
  return {
4468
- apiName,
4469
4453
  call,
4470
- isRequired: true
4454
+ isRequired: staticResult.isRequired,
4455
+ apiName: resolvedImport.name
4471
4456
  };
4472
4457
  }
4473
- function extractPropertyTarget(node) {
4474
- if (ts20.isPropertyAccessExpression(node) && ts20.isIdentifier(node.name)) {
4475
- return node.name;
4476
- } else if (ts20.isIdentifier(node)) {
4477
- return node;
4458
+ function parseTopLevelCall(call, fnNames, importTracker) {
4459
+ const node = call.expression;
4460
+ if (!ts20.isIdentifier(node)) {
4461
+ return null;
4478
4462
  }
4479
- return null;
4463
+ return fnNames.some((name) => importTracker.isPotentialReferenceToNamedImport(node, name, CORE_MODULE)) ? { node, isRequired: false } : null;
4480
4464
  }
4481
- function isReferenceToInitializerApiFunction(functionName, target, isCore, reflector) {
4482
- let targetImport = reflector.getImportOfIdentifier(target);
4483
- if (targetImport === null) {
4484
- if (!isCore) {
4485
- return false;
4486
- }
4487
- targetImport = { name: target.text, from: CORE_MODULE };
4465
+ function parseTopLevelRequiredCall(call, fnNames, importTracker) {
4466
+ const node = call.expression;
4467
+ if (!ts20.isPropertyAccessExpression(node) || !ts20.isIdentifier(node.expression) || node.name.text !== "required") {
4468
+ return null;
4488
4469
  }
4489
- return targetImport.name === functionName && targetImport.from === CORE_MODULE;
4470
+ const expression = node.expression;
4471
+ const matchesCoreApi = fnNames.some((name) => importTracker.isPotentialReferenceToNamedImport(expression, name, CORE_MODULE));
4472
+ return matchesCoreApi ? { node: expression, isRequired: true } : null;
4473
+ }
4474
+ function parseTopLevelCallFromNamespace(call, fnNames, importTracker) {
4475
+ const node = call.expression;
4476
+ if (!ts20.isPropertyAccessExpression(node)) {
4477
+ return null;
4478
+ }
4479
+ let apiReference = null;
4480
+ let isRequired = false;
4481
+ if (ts20.isIdentifier(node.expression) && ts20.isIdentifier(node.name) && importTracker.isPotentialReferenceToNamespaceImport(node.expression, CORE_MODULE)) {
4482
+ apiReference = node.name;
4483
+ } else if (ts20.isPropertyAccessExpression(node.expression) && ts20.isIdentifier(node.expression.expression) && ts20.isIdentifier(node.expression.name) && importTracker.isPotentialReferenceToNamespaceImport(node.expression.expression, CORE_MODULE) && node.name.text === "required") {
4484
+ apiReference = node.expression.name;
4485
+ isRequired = true;
4486
+ }
4487
+ if (apiReference === null || !fnNames.includes(apiReference.text)) {
4488
+ return null;
4489
+ }
4490
+ return { node: apiReference, isRequired };
4490
4491
  }
4491
4492
 
4492
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
4493
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
4493
4494
  import ts21 from "typescript";
4494
4495
  function parseAndValidateInputAndOutputOptions(optionsNode) {
4495
4496
  if (!ts21.isObjectLiteralExpression(optionsNode)) {
@@ -4507,10 +4508,10 @@ function parseAndValidateInputAndOutputOptions(optionsNode) {
4507
4508
  return { alias };
4508
4509
  }
4509
4510
 
4510
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
4511
- function tryParseSignalInputMapping(member, reflector, isCore) {
4511
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
4512
+ function tryParseSignalInputMapping(member, reflector, importTracker) {
4512
4513
  var _a;
4513
- const signalInput = tryParseInitializerApiMember(["input"], member, reflector, isCore);
4514
+ const signalInput = tryParseInitializerApiMember(["input"], member, reflector, importTracker);
4514
4515
  if (signalInput === null) {
4515
4516
  return null;
4516
4517
  }
@@ -4526,10 +4527,10 @@ function tryParseSignalInputMapping(member, reflector, isCore) {
4526
4527
  };
4527
4528
  }
4528
4529
 
4529
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
4530
- function tryParseSignalModelMapping(member, reflector, isCore) {
4530
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
4531
+ function tryParseSignalModelMapping(member, reflector, importTracker) {
4531
4532
  var _a;
4532
- const model = tryParseInitializerApiMember(["model"], member, reflector, isCore);
4533
+ const model = tryParseInitializerApiMember(["model"], member, reflector, importTracker);
4533
4534
  if (model === null) {
4534
4535
  return null;
4535
4536
  }
@@ -4554,10 +4555,10 @@ function tryParseSignalModelMapping(member, reflector, isCore) {
4554
4555
  };
4555
4556
  }
4556
4557
 
4557
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
4558
- function tryParseInitializerBasedOutput(member, reflector, isCore) {
4558
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
4559
+ function tryParseInitializerBasedOutput(member, reflector, importTracker) {
4559
4560
  var _a;
4560
- const output = tryParseInitializerApiMember(["output", "\u0275output"], member, reflector, isCore);
4561
+ const output = tryParseInitializerApiMember(["output", "\u0275output"], member, reflector, importTracker);
4561
4562
  if (output === null) {
4562
4563
  return null;
4563
4564
  }
@@ -4577,13 +4578,13 @@ function tryParseInitializerBasedOutput(member, reflector, isCore) {
4577
4578
  };
4578
4579
  }
4579
4580
 
4580
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
4581
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
4581
4582
  import { createMayBeForwardRefExpression, outputAst as o } from "@angular/compiler";
4582
4583
  import ts22 from "typescript";
4583
4584
  var queryFunctionNames = ["viewChild", "viewChildren", "contentChild", "contentChildren"];
4584
4585
  var defaultDescendantsValue = (type) => type !== "contentChildren";
4585
- function tryParseSignalQueryFromInitializer(member, reflector, isCore) {
4586
- const query = tryParseInitializerApiMember(queryFunctionNames, member, reflector, isCore);
4586
+ function tryParseSignalQueryFromInitializer(member, reflector, importTracker) {
4587
+ const query = tryParseInitializerApiMember(queryFunctionNames, member, reflector, importTracker);
4587
4588
  if (query === null) {
4588
4589
  return null;
4589
4590
  }
@@ -4639,11 +4640,11 @@ function parseDescendantsOption(value) {
4639
4640
  throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, value, `Expected "descendants" option to be a boolean literal.`);
4640
4641
  }
4641
4642
 
4642
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4643
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4643
4644
  var EMPTY_OBJECT = {};
4644
4645
  var queryDecoratorNames = ["ViewChild", "ViewChildren", "ContentChild", "ContentChildren"];
4645
4646
  var QUERY_TYPES = new Set(queryDecoratorNames);
4646
- function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmitter, referencesRegistry, isCore, annotateForClosureCompiler, compilationMode, defaultSelector, useTemplatePipeline) {
4647
+ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, evaluator, refEmitter, referencesRegistry, isCore, annotateForClosureCompiler, compilationMode, defaultSelector, useTemplatePipeline) {
4647
4648
  let directive;
4648
4649
  if (decorator.args === null || decorator.args.length === 0) {
4649
4650
  directive = /* @__PURE__ */ new Map();
@@ -4663,12 +4664,12 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
4663
4664
  const decoratedElements = members.filter((member) => !member.isStatic && member.decorators !== null);
4664
4665
  const coreModule = isCore ? void 0 : "@angular/core";
4665
4666
  const inputsFromMeta = parseInputsArray(clazz, directive, evaluator, reflector, refEmitter, compilationMode);
4666
- const inputsFromFields = parseInputFields(clazz, members, evaluator, reflector, refEmitter, isCore, compilationMode, inputsFromMeta, decorator);
4667
+ const inputsFromFields = parseInputFields(clazz, members, evaluator, reflector, importTracker, refEmitter, isCore, compilationMode, inputsFromMeta, decorator);
4667
4668
  const inputs = ClassPropertyMapping.fromMappedObject({ ...inputsFromMeta, ...inputsFromFields });
4668
4669
  const outputsFromMeta = parseOutputsArray(directive, evaluator);
4669
- const outputsFromFields = parseOutputFields(clazz, decorator, members, isCore, reflector, evaluator, outputsFromMeta);
4670
+ const outputsFromFields = parseOutputFields(clazz, decorator, members, isCore, reflector, importTracker, evaluator, outputsFromMeta);
4670
4671
  const outputs = ClassPropertyMapping.fromMappedObject({ ...outputsFromMeta, ...outputsFromFields });
4671
- const { viewQueries, contentQueries } = parseQueriesOfClassFields(members, reflector, evaluator, isCore);
4672
+ const { viewQueries, contentQueries } = parseQueriesOfClassFields(members, reflector, importTracker, evaluator, isCore);
4672
4673
  if (directive.has("queries")) {
4673
4674
  const signalQueryFields = new Set([...viewQueries, ...contentQueries].filter((q) => q.isSignal).map((q) => q.propertyName));
4674
4675
  const queriesFromDecorator = extractQueriesFromDecorator(directive.get("queries"), reflector, evaluator, isCore);
@@ -5077,11 +5078,11 @@ function tryGetDecoratorOnMember(member, decoratorName, isCore) {
5077
5078
  }
5078
5079
  return null;
5079
5080
  }
5080
- function tryParseInputFieldMapping(clazz, member, evaluator, reflector, isCore, refEmitter, compilationMode) {
5081
+ function tryParseInputFieldMapping(clazz, member, evaluator, reflector, importTracker, isCore, refEmitter, compilationMode) {
5081
5082
  const classPropertyName = member.name;
5082
5083
  const decorator = tryGetDecoratorOnMember(member, "Input", isCore);
5083
- const signalInputMapping = tryParseSignalInputMapping(member, reflector, isCore);
5084
- const modelInputMapping = tryParseSignalModelMapping(member, reflector, isCore);
5084
+ const signalInputMapping = tryParseSignalInputMapping(member, reflector, importTracker);
5085
+ const modelInputMapping = tryParseSignalModelMapping(member, reflector, importTracker);
5085
5086
  if (decorator !== null && signalInputMapping !== null) {
5086
5087
  throw new FatalDiagnosticError(ErrorCode.INITIALIZER_API_WITH_DISALLOWED_DECORATOR, decorator.node, `Using @Input with a signal input is not allowed.`);
5087
5088
  }
@@ -5129,12 +5130,12 @@ function tryParseInputFieldMapping(clazz, member, evaluator, reflector, isCore,
5129
5130
  }
5130
5131
  return null;
5131
5132
  }
5132
- function parseInputFields(clazz, members, evaluator, reflector, refEmitter, isCore, compilationMode, inputsFromClassDecorator, classDecorator) {
5133
+ function parseInputFields(clazz, members, evaluator, reflector, importTracker, refEmitter, isCore, compilationMode, inputsFromClassDecorator, classDecorator) {
5133
5134
  var _a, _b;
5134
5135
  const inputs = {};
5135
5136
  for (const member of members) {
5136
5137
  const classPropertyName = member.name;
5137
- const inputMapping = tryParseInputFieldMapping(clazz, member, evaluator, reflector, isCore, refEmitter, compilationMode);
5138
+ const inputMapping = tryParseInputFieldMapping(clazz, member, evaluator, reflector, importTracker, isCore, refEmitter, compilationMode);
5138
5139
  if (inputMapping === null) {
5139
5140
  continue;
5140
5141
  }
@@ -5214,7 +5215,7 @@ function assertEmittableInputType(type, contextFile, reflector, refEmitter) {
5214
5215
  node.forEachChild(walk);
5215
5216
  })(type);
5216
5217
  }
5217
- function parseQueriesOfClassFields(members, reflector, evaluator, isCore) {
5218
+ function parseQueriesOfClassFields(members, reflector, importTracker, evaluator, isCore) {
5218
5219
  var _a;
5219
5220
  const viewQueries = [];
5220
5221
  const contentQueries = [];
@@ -5224,7 +5225,7 @@ function parseQueriesOfClassFields(members, reflector, evaluator, isCore) {
5224
5225
  const decoratorContentChildren = [];
5225
5226
  for (const member of members) {
5226
5227
  const decoratorQuery = tryGetQueryFromFieldDecorator(member, reflector, evaluator, isCore);
5227
- const signalQuery = tryParseSignalQueryFromInitializer(member, reflector, isCore);
5228
+ const signalQuery = tryParseSignalQueryFromInitializer(member, reflector, importTracker);
5228
5229
  if (decoratorQuery !== null && signalQuery !== null) {
5229
5230
  throw new FatalDiagnosticError(ErrorCode.INITIALIZER_API_WITH_DISALLOWED_DECORATOR, decoratorQuery.decorator.node, `Using @${decoratorQuery.name} with a signal-based query is not allowed.`);
5230
5231
  }
@@ -5269,13 +5270,13 @@ function parseOutputsArray(directive, evaluator) {
5269
5270
  const metaValues = parseFieldStringArrayValue(directive, "outputs", evaluator);
5270
5271
  return metaValues ? parseMappingStringArray(metaValues) : EMPTY_OBJECT;
5271
5272
  }
5272
- function parseOutputFields(clazz, classDecorator, members, isCore, reflector, evaluator, outputsFromMeta) {
5273
+ function parseOutputFields(clazz, classDecorator, members, isCore, reflector, importTracker, evaluator, outputsFromMeta) {
5273
5274
  var _a, _b, _c;
5274
5275
  const outputs = {};
5275
5276
  for (const member of members) {
5276
5277
  const decoratorOutput = tryParseDecoratorOutput(member, evaluator, isCore);
5277
- const initializerOutput = tryParseInitializerBasedOutput(member, reflector, isCore);
5278
- const modelMapping = tryParseSignalModelMapping(member, reflector, isCore);
5278
+ const initializerOutput = tryParseInitializerBasedOutput(member, reflector, importTracker);
5279
+ const modelMapping = tryParseSignalModelMapping(member, reflector, importTracker);
5279
5280
  if (decoratorOutput !== null && initializerOutput !== null) {
5280
5281
  throw new FatalDiagnosticError(ErrorCode.INITIALIZER_API_WITH_DISALLOWED_DECORATOR, decoratorOutput.decorator.node, `Using "@Output" with "output()" is not allowed.`);
5281
5282
  }
@@ -5435,7 +5436,7 @@ function toR3InputMetadata(mapping) {
5435
5436
  };
5436
5437
  }
5437
5438
 
5438
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
5439
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
5439
5440
  var DirectiveSymbol = class extends SemanticSymbol {
5440
5441
  constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
5441
5442
  super(decl);
@@ -5515,7 +5516,7 @@ function isBaseClassEqual(current, previous) {
5515
5516
  return isSymbolEqual(current, previous);
5516
5517
  }
5517
5518
 
5518
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
5519
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
5519
5520
  var FIELD_DECORATORS = [
5520
5521
  "Input",
5521
5522
  "Output",
@@ -5537,7 +5538,7 @@ var LIFECYCLE_HOOKS = /* @__PURE__ */ new Set([
5537
5538
  "ngAfterContentChecked"
5538
5539
  ]);
5539
5540
  var DirectiveDecoratorHandler = class {
5540
- constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, perf, includeClassMetadata, compilationMode, useTemplatePipeline, generateExtraImportsInLocalMode) {
5541
+ constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, perf, importTracker, includeClassMetadata, compilationMode, useTemplatePipeline, generateExtraImportsInLocalMode) {
5541
5542
  this.reflector = reflector;
5542
5543
  this.evaluator = evaluator;
5543
5544
  this.metaRegistry = metaRegistry;
@@ -5551,6 +5552,7 @@ var DirectiveDecoratorHandler = class {
5551
5552
  this.semanticDepGraphUpdater = semanticDepGraphUpdater;
5552
5553
  this.annotateForClosureCompiler = annotateForClosureCompiler;
5553
5554
  this.perf = perf;
5555
+ this.importTracker = importTracker;
5554
5556
  this.includeClassMetadata = includeClassMetadata;
5555
5557
  this.compilationMode = compilationMode;
5556
5558
  this.useTemplatePipeline = useTemplatePipeline;
@@ -5580,6 +5582,7 @@ var DirectiveDecoratorHandler = class {
5580
5582
  node,
5581
5583
  decorator,
5582
5584
  this.reflector,
5585
+ this.importTracker,
5583
5586
  this.evaluator,
5584
5587
  this.refEmitter,
5585
5588
  this.referencesRegistry,
@@ -5708,11 +5711,11 @@ var DirectiveDecoratorHandler = class {
5708
5711
  }
5709
5712
  };
5710
5713
 
5711
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5714
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5712
5715
  import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
5713
5716
  import ts25 from "typescript";
5714
5717
 
5715
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
5718
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
5716
5719
  import ts24 from "typescript";
5717
5720
  function createModuleWithProvidersResolver(reflector, isCore) {
5718
5721
  function _reflectModuleFromTypeParam(type, node) {
@@ -5779,7 +5782,7 @@ function isResolvedModuleWithProviders(sv) {
5779
5782
  return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
5780
5783
  }
5781
5784
 
5782
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5785
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5783
5786
  var NgModuleSymbol = class extends SemanticSymbol {
5784
5787
  constructor(decl, hasProviders) {
5785
5788
  super(decl);
@@ -6390,7 +6393,7 @@ function isSyntheticReference(ref) {
6390
6393
  return ref.synthetic;
6391
6394
  }
6392
6395
 
6393
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
6396
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
6394
6397
  function makeCyclicImportInfo(ref, type, cycle) {
6395
6398
  const name = ref.debugName || "(unknown)";
6396
6399
  const path2 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
@@ -6413,7 +6416,7 @@ function checkCustomElementSelectorForErrors(selector) {
6413
6416
  return null;
6414
6417
  }
6415
6418
 
6416
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
6419
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
6417
6420
  import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
6418
6421
  import ts26 from "typescript";
6419
6422
  function getTemplateDeclarationNodeForError(declaration) {
@@ -6764,7 +6767,7 @@ function _extractTemplateStyleUrls(template) {
6764
6767
  return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
6765
6768
  }
6766
6769
 
6767
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
6770
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
6768
6771
  var ComponentSymbol = class extends DirectiveSymbol {
6769
6772
  constructor() {
6770
6773
  super(...arguments);
@@ -6799,7 +6802,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
6799
6802
  }
6800
6803
  };
6801
6804
 
6802
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
6805
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
6803
6806
  function collectAnimationNames(value, animationTriggerNames) {
6804
6807
  if (value instanceof Map) {
6805
6808
  const name = value.get("name");
@@ -6876,12 +6879,12 @@ function isLikelyModuleWithProviders(value) {
6876
6879
  return false;
6877
6880
  }
6878
6881
 
6879
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
6882
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
6880
6883
  var EMPTY_ARRAY2 = [];
6881
6884
  var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
6882
6885
  var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
6883
6886
  var ComponentDecoratorHandler = class {
6884
- constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, includeClassMetadata, compilationMode, deferredSymbolTracker, forbidOrphanRendering, enableBlockSyntax, useTemplatePipeline, localCompilationExtraImportsTracker) {
6887
+ constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, importTracker, includeClassMetadata, compilationMode, deferredSymbolTracker, forbidOrphanRendering, enableBlockSyntax, useTemplatePipeline, localCompilationExtraImportsTracker) {
6885
6888
  this.reflector = reflector;
6886
6889
  this.evaluator = evaluator;
6887
6890
  this.metaRegistry = metaRegistry;
@@ -6911,6 +6914,7 @@ var ComponentDecoratorHandler = class {
6911
6914
  this.annotateForClosureCompiler = annotateForClosureCompiler;
6912
6915
  this.perf = perf;
6913
6916
  this.hostDirectivesResolver = hostDirectivesResolver;
6917
+ this.importTracker = importTracker;
6914
6918
  this.includeClassMetadata = includeClassMetadata;
6915
6919
  this.compilationMode = compilationMode;
6916
6920
  this.deferredSymbolTracker = deferredSymbolTracker;
@@ -6994,7 +6998,7 @@ var ComponentDecoratorHandler = class {
6994
6998
  this.literalCache.delete(decorator);
6995
6999
  let diagnostics;
6996
7000
  let isPoisoned = false;
6997
- const directiveResult = extractDirectiveMetadata(node, decorator, this.reflector, this.evaluator, this.refEmitter, this.referencesRegistry, this.isCore, this.annotateForClosureCompiler, this.compilationMode, this.elementSchemaRegistry.getDefaultComponentElementName(), this.useTemplatePipeline);
7001
+ const directiveResult = extractDirectiveMetadata(node, decorator, this.reflector, this.importTracker, this.evaluator, this.refEmitter, this.referencesRegistry, this.isCore, this.annotateForClosureCompiler, this.compilationMode, this.elementSchemaRegistry.getDefaultComponentElementName(), this.useTemplatePipeline);
6998
7002
  if (directiveResult === void 0) {
6999
7003
  return {};
7000
7004
  }
@@ -7670,9 +7674,10 @@ var ComponentDecoratorHandler = class {
7670
7674
  if (importDecl !== null && this.deferredSymbolTracker.canDefer(importDecl)) {
7671
7675
  deferBlockDep.isDeferrable = true;
7672
7676
  deferBlockDep.importPath = importDecl.moduleSpecifier.text;
7677
+ deferBlockDep.isDefaultImport = isDefaultImport(importDecl);
7673
7678
  deferrableTypes.set(deferBlockDep.symbolName, {
7674
7679
  importPath: deferBlockDep.importPath,
7675
- isDefaultImport: isDefaultImport(importDecl)
7680
+ isDefaultImport: deferBlockDep.isDefaultImport
7676
7681
  });
7677
7682
  }
7678
7683
  }
@@ -7871,7 +7876,7 @@ function isDefaultImport(node) {
7871
7876
  return node.importClause !== void 0 && node.importClause.namedBindings === void 0;
7872
7877
  }
7873
7878
 
7874
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
7879
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
7875
7880
  import { compileClassMetadata as compileClassMetadata3, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression3, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
7876
7881
  import ts28 from "typescript";
7877
7882
  var InjectableDecoratorHandler = class {
@@ -8103,7 +8108,7 @@ function getDep(dep, reflector) {
8103
8108
  return meta;
8104
8109
  }
8105
8110
 
8106
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
8111
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
8107
8112
  import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
8108
8113
  import ts29 from "typescript";
8109
8114
  var PipeSymbol = class extends SemanticSymbol {
@@ -8261,9 +8266,6 @@ var PipeDecoratorHandler = class {
8261
8266
  };
8262
8267
 
8263
8268
  export {
8264
- DynamicValue,
8265
- StaticInterpreter,
8266
- PartialEvaluator,
8267
8269
  isAngularDecorator,
8268
8270
  getAngularDecorators,
8269
8271
  forwardRefResolver,
@@ -8276,6 +8278,9 @@ export {
8276
8278
  ResourceRegistry,
8277
8279
  ExportedProviderStatusResolver,
8278
8280
  HostDirectivesResolver,
8281
+ DynamicValue,
8282
+ StaticInterpreter,
8283
+ PartialEvaluator,
8279
8284
  CompilationMode,
8280
8285
  aliasTransformFactory,
8281
8286
  TraitCompiler,
@@ -8316,4 +8321,4 @@ export {
8316
8321
  * Use of this source code is governed by an MIT-style license that can be
8317
8322
  * found in the LICENSE file at https://angular.io/license
8318
8323
  */
8319
- //# sourceMappingURL=chunk-PQBKKYRL.js.map
8324
+ //# sourceMappingURL=chunk-MV5DSSRA.js.map