@angular/core 17.1.0 → 17.2.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/authoring/queries.mjs +113 -0
- package/esm2022/src/compiler/compiler_facade_interface.mjs +1 -1
- package/esm2022/src/core_render3_private_export.mjs +2 -2
- package/esm2022/src/linker/compiler.mjs +1 -1
- package/esm2022/src/metadata/di.mjs +7 -7
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/index.mjs +2 -2
- package/esm2022/src/render3/instructions/queries.mjs +16 -1
- package/esm2022/src/render3/jit/directive.mjs +2 -1
- package/esm2022/src/render3/jit/environment.mjs +4 -1
- package/esm2022/src/render3/node_manipulation.mjs +2 -5
- package/esm2022/src/render3/util/global_utils.mjs +3 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +30 -13
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +11 -6
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +770 -710
- package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
- package/schematics/migrations/compiler-options/bundle.js +13 -13
- package/schematics/migrations/transfer-state/bundle.js +13 -13
- package/schematics/ng-generate/control-flow-migration/bundle.js +779 -719
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/standalone-migration/bundle.js +1833 -1584
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// bazel-out/
|
|
66
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/index.mjs
|
|
67
67
|
var control_flow_migration_exports = {};
|
|
68
68
|
__export(control_flow_migration_exports, {
|
|
69
69
|
default: () => control_flow_migration_default
|
|
@@ -72,22 +72,22 @@ module.exports = __toCommonJS(control_flow_migration_exports);
|
|
|
72
72
|
var import_schematics = require("@angular-devkit/schematics");
|
|
73
73
|
var import_path3 = require("path");
|
|
74
74
|
|
|
75
|
-
// bazel-out/
|
|
75
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
76
76
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
77
77
|
|
|
78
|
-
// bazel-out/
|
|
78
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
79
79
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
80
80
|
|
|
81
|
-
// bazel-out/
|
|
81
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
82
82
|
function normalizePath(path2) {
|
|
83
83
|
return path2.replace(/\\/g, "/");
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
// bazel-out/
|
|
86
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
87
87
|
var import_path = require("path");
|
|
88
88
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
89
89
|
|
|
90
|
-
// bazel-out/
|
|
90
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
91
91
|
var path = __toESM(require("path"), 1);
|
|
92
92
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
93
93
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -104,7 +104,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
104
104
|
return import_typescript3.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
// bazel-out/
|
|
107
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
108
108
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
109
109
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
110
110
|
return import_typescript4.default.createProgram(rootNames, options, host);
|
|
@@ -137,7 +137,7 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
137
137
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
// bazel-out/
|
|
140
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
141
141
|
var _SELECTOR_REGEXP = new RegExp(
|
|
142
142
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
143
143
|
"g"
|
|
@@ -445,7 +445,7 @@ var SelectorContext = class {
|
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
|
|
448
|
-
// bazel-out/
|
|
448
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/core.mjs
|
|
449
449
|
var ViewEncapsulation;
|
|
450
450
|
(function(ViewEncapsulation2) {
|
|
451
451
|
ViewEncapsulation2[ViewEncapsulation2["Emulated"] = 0] = "Emulated";
|
|
@@ -513,7 +513,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
513
513
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
// bazel-out/
|
|
516
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
517
517
|
var textEncoder;
|
|
518
518
|
function computeDigest(message) {
|
|
519
519
|
return sha1(serializeNodes(message.nodes).join("") + `[${message.meaning}]`);
|
|
@@ -753,7 +753,7 @@ function wordAt(bytes, index, endian) {
|
|
|
753
753
|
return word;
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
-
// bazel-out/
|
|
756
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
757
757
|
var TypeModifier;
|
|
758
758
|
(function(TypeModifier2) {
|
|
759
759
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1712,7 +1712,7 @@ function serializeTags(tags) {
|
|
|
1712
1712
|
return out;
|
|
1713
1713
|
}
|
|
1714
1714
|
|
|
1715
|
-
// bazel-out/
|
|
1715
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
1716
1716
|
var CONSTANT_PREFIX = "_c";
|
|
1717
1717
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
1718
1718
|
var KEY_CONTEXT = {};
|
|
@@ -1895,7 +1895,7 @@ function isLongStringLiteral(expr) {
|
|
|
1895
1895
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
1896
1896
|
}
|
|
1897
1897
|
|
|
1898
|
-
// bazel-out/
|
|
1898
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
1899
1899
|
var CORE = "@angular/core";
|
|
1900
1900
|
var _Identifiers = class {
|
|
1901
1901
|
};
|
|
@@ -2470,6 +2470,15 @@ var Identifiers = _Identifiers;
|
|
|
2470
2470
|
(() => {
|
|
2471
2471
|
_Identifiers.contentQuery = { name: "\u0275\u0275contentQuery", moduleName: CORE };
|
|
2472
2472
|
})();
|
|
2473
|
+
(() => {
|
|
2474
|
+
_Identifiers.viewQuerySignal = { name: "\u0275\u0275viewQuerySignal", moduleName: CORE };
|
|
2475
|
+
})();
|
|
2476
|
+
(() => {
|
|
2477
|
+
_Identifiers.contentQuerySignal = { name: "\u0275\u0275contentQuerySignal", moduleName: CORE };
|
|
2478
|
+
})();
|
|
2479
|
+
(() => {
|
|
2480
|
+
_Identifiers.queryAdvance = { name: "\u0275\u0275queryAdvance", moduleName: CORE };
|
|
2481
|
+
})();
|
|
2473
2482
|
(() => {
|
|
2474
2483
|
_Identifiers.NgOnChangesFeature = { name: "\u0275\u0275NgOnChangesFeature", moduleName: CORE };
|
|
2475
2484
|
})();
|
|
@@ -2540,7 +2549,7 @@ var Identifiers = _Identifiers;
|
|
|
2540
2549
|
_Identifiers.UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: CORE };
|
|
2541
2550
|
})();
|
|
2542
2551
|
|
|
2543
|
-
// bazel-out/
|
|
2552
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2544
2553
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2545
2554
|
function dashCaseToCamelCase(input) {
|
|
2546
2555
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -2628,7 +2637,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
2628
2637
|
return [truthy, falsy];
|
|
2629
2638
|
}
|
|
2630
2639
|
|
|
2631
|
-
// bazel-out/
|
|
2640
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
2632
2641
|
var VERSION = 3;
|
|
2633
2642
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
2634
2643
|
var SourceMapGenerator = class {
|
|
@@ -2757,7 +2766,7 @@ function toBase64Digit(value) {
|
|
|
2757
2766
|
return B64_DIGITS[value];
|
|
2758
2767
|
}
|
|
2759
2768
|
|
|
2760
|
-
// bazel-out/
|
|
2769
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
2761
2770
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
2762
2771
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
2763
2772
|
var _INDENT_WITH = " ";
|
|
@@ -3245,7 +3254,7 @@ function _createIndent(count) {
|
|
|
3245
3254
|
return res;
|
|
3246
3255
|
}
|
|
3247
3256
|
|
|
3248
|
-
// bazel-out/
|
|
3257
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3249
3258
|
function typeWithParameters(type, numParams) {
|
|
3250
3259
|
if (numParams === 0) {
|
|
3251
3260
|
return expressionType(type);
|
|
@@ -3310,7 +3319,7 @@ function generateForwardRef(expr) {
|
|
|
3310
3319
|
return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
|
|
3311
3320
|
}
|
|
3312
3321
|
|
|
3313
|
-
// bazel-out/
|
|
3322
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3314
3323
|
var R3FactoryDelegateType;
|
|
3315
3324
|
(function(R3FactoryDelegateType2) {
|
|
3316
3325
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3455,7 +3464,7 @@ function getInjectFn(target) {
|
|
|
3455
3464
|
}
|
|
3456
3465
|
}
|
|
3457
3466
|
|
|
3458
|
-
// bazel-out/
|
|
3467
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
3459
3468
|
var TagContentType;
|
|
3460
3469
|
(function(TagContentType2) {
|
|
3461
3470
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -3492,7 +3501,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
3492
3501
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
3493
3502
|
}
|
|
3494
3503
|
|
|
3495
|
-
// bazel-out/
|
|
3504
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3496
3505
|
var Comment = class {
|
|
3497
3506
|
constructor(value, sourceSpan) {
|
|
3498
3507
|
this.value = value;
|
|
@@ -3873,7 +3882,7 @@ function visitAll(visitor, nodes) {
|
|
|
3873
3882
|
return result;
|
|
3874
3883
|
}
|
|
3875
3884
|
|
|
3876
|
-
// bazel-out/
|
|
3885
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
3877
3886
|
var Message = class {
|
|
3878
3887
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
3879
3888
|
this.nodes = nodes;
|
|
@@ -4011,7 +4020,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4011
4020
|
}
|
|
4012
4021
|
};
|
|
4013
4022
|
|
|
4014
|
-
// bazel-out/
|
|
4023
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4015
4024
|
var _Visitor = class {
|
|
4016
4025
|
visitTag(tag) {
|
|
4017
4026
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4039,12 +4048,12 @@ ${doctype.dtd}
|
|
|
4039
4048
|
};
|
|
4040
4049
|
var _visitor = new _Visitor();
|
|
4041
4050
|
|
|
4042
|
-
// bazel-out/
|
|
4051
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4043
4052
|
function toPublicName(internalName) {
|
|
4044
4053
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4045
4054
|
}
|
|
4046
4055
|
|
|
4047
|
-
// bazel-out/
|
|
4056
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4048
4057
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4049
4058
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4050
4059
|
var I18N_ATTR = "i18n";
|
|
@@ -4146,7 +4155,7 @@ function declareI18nVariable(variable2) {
|
|
|
4146
4155
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4147
4156
|
}
|
|
4148
4157
|
|
|
4149
|
-
// bazel-out/
|
|
4158
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4150
4159
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4151
4160
|
var TEMPORARY_NAME = "_t";
|
|
4152
4161
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4215,11 +4224,11 @@ var CHAINABLE_INSTRUCTIONS = /* @__PURE__ */ new Set([
|
|
|
4215
4224
|
function invokeInstruction(span, reference2, params) {
|
|
4216
4225
|
return importExpr(reference2, null, span).callFn(params, span);
|
|
4217
4226
|
}
|
|
4218
|
-
function temporaryAllocator(
|
|
4227
|
+
function temporaryAllocator(pushStatement, name) {
|
|
4219
4228
|
let temp = null;
|
|
4220
4229
|
return () => {
|
|
4221
4230
|
if (!temp) {
|
|
4222
|
-
|
|
4231
|
+
pushStatement(new DeclareVarStmt(TEMPORARY_NAME, void 0, DYNAMIC_TYPE));
|
|
4223
4232
|
temp = variable(name);
|
|
4224
4233
|
}
|
|
4225
4234
|
return temp;
|
|
@@ -4299,24 +4308,6 @@ function trimTrailingNulls(parameters) {
|
|
|
4299
4308
|
}
|
|
4300
4309
|
return parameters;
|
|
4301
4310
|
}
|
|
4302
|
-
function getQueryPredicate(query, constantPool) {
|
|
4303
|
-
if (Array.isArray(query.predicate)) {
|
|
4304
|
-
let predicate = [];
|
|
4305
|
-
query.predicate.forEach((selector) => {
|
|
4306
|
-
const selectors = selector.split(",").map((token) => literal(token.trim()));
|
|
4307
|
-
predicate.push(...selectors);
|
|
4308
|
-
});
|
|
4309
|
-
return constantPool.getConstLiteral(literalArr(predicate), true);
|
|
4310
|
-
} else {
|
|
4311
|
-
switch (query.predicate.forwardRef) {
|
|
4312
|
-
case 0:
|
|
4313
|
-
case 2:
|
|
4314
|
-
return query.predicate.expression;
|
|
4315
|
-
case 1:
|
|
4316
|
-
return importExpr(Identifiers.resolveForwardRef).callFn([query.predicate.expression]);
|
|
4317
|
-
}
|
|
4318
|
-
}
|
|
4319
|
-
}
|
|
4320
4311
|
var DefinitionMap = class {
|
|
4321
4312
|
constructor() {
|
|
4322
4313
|
this.values = [];
|
|
@@ -4408,7 +4399,7 @@ function getInstructionStatements(instructions) {
|
|
|
4408
4399
|
return statements;
|
|
4409
4400
|
}
|
|
4410
4401
|
|
|
4411
|
-
// bazel-out/
|
|
4402
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4412
4403
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4413
4404
|
let result = null;
|
|
4414
4405
|
const factoryMeta = {
|
|
@@ -4493,7 +4484,7 @@ function createFactoryFunction(type) {
|
|
|
4493
4484
|
return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
|
|
4494
4485
|
}
|
|
4495
4486
|
|
|
4496
|
-
// bazel-out/
|
|
4487
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
4497
4488
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
4498
4489
|
/^\s*$/,
|
|
4499
4490
|
/[<>]/,
|
|
@@ -4515,7 +4506,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
4515
4506
|
}
|
|
4516
4507
|
}
|
|
4517
4508
|
|
|
4518
|
-
// bazel-out/
|
|
4509
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
|
|
4519
4510
|
var InterpolationConfig = class {
|
|
4520
4511
|
static fromArray(markers) {
|
|
4521
4512
|
if (!markers) {
|
|
@@ -4532,7 +4523,7 @@ var InterpolationConfig = class {
|
|
|
4532
4523
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
4533
4524
|
var DEFAULT_CONTAINER_BLOCKS = /* @__PURE__ */ new Set(["switch"]);
|
|
4534
4525
|
|
|
4535
|
-
// bazel-out/
|
|
4526
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
4536
4527
|
var $EOF = 0;
|
|
4537
4528
|
var $BSPACE = 8;
|
|
4538
4529
|
var $TAB = 9;
|
|
@@ -4614,7 +4605,7 @@ function isQuote(code) {
|
|
|
4614
4605
|
return code === $SQ || code === $DQ || code === $BT;
|
|
4615
4606
|
}
|
|
4616
4607
|
|
|
4617
|
-
// bazel-out/
|
|
4608
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
4618
4609
|
var ParseLocation = class {
|
|
4619
4610
|
constructor(file, offset, line, col) {
|
|
4620
4611
|
this.file = file;
|
|
@@ -4761,7 +4752,7 @@ function sanitizeIdentifier(name) {
|
|
|
4761
4752
|
return name.replace(/\W/g, "_");
|
|
4762
4753
|
}
|
|
4763
4754
|
|
|
4764
|
-
// bazel-out/
|
|
4755
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
4765
4756
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
4766
4757
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
4767
4758
|
constructor() {
|
|
@@ -4854,7 +4845,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
4854
4845
|
}
|
|
4855
4846
|
};
|
|
4856
4847
|
|
|
4857
|
-
// bazel-out/
|
|
4848
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
4858
4849
|
var policy;
|
|
4859
4850
|
function getPolicy() {
|
|
4860
4851
|
if (policy === void 0) {
|
|
@@ -4892,7 +4883,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
4892
4883
|
return fn2.bind(_global);
|
|
4893
4884
|
}
|
|
4894
4885
|
|
|
4895
|
-
// bazel-out/
|
|
4886
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
4896
4887
|
var JitEvaluator = class {
|
|
4897
4888
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
4898
4889
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -4983,7 +4974,7 @@ function isUseStrictStatement(statement) {
|
|
|
4983
4974
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
4984
4975
|
}
|
|
4985
4976
|
|
|
4986
|
-
// bazel-out/
|
|
4977
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
4987
4978
|
function compileInjector(meta) {
|
|
4988
4979
|
const definitionMap = new DefinitionMap();
|
|
4989
4980
|
if (meta.providers !== null) {
|
|
@@ -5000,7 +4991,7 @@ function createInjectorType(meta) {
|
|
|
5000
4991
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
5001
4992
|
}
|
|
5002
4993
|
|
|
5003
|
-
// bazel-out/
|
|
4994
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
5004
4995
|
var R3JitReflector = class {
|
|
5005
4996
|
constructor(context) {
|
|
5006
4997
|
this.context = context;
|
|
@@ -5016,7 +5007,7 @@ var R3JitReflector = class {
|
|
|
5016
5007
|
}
|
|
5017
5008
|
};
|
|
5018
5009
|
|
|
5019
|
-
// bazel-out/
|
|
5010
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5020
5011
|
var R3SelectorScopeMode;
|
|
5021
5012
|
(function(R3SelectorScopeMode2) {
|
|
5022
5013
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5157,7 +5148,7 @@ function tupleOfTypes(types) {
|
|
|
5157
5148
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5158
5149
|
}
|
|
5159
5150
|
|
|
5160
|
-
// bazel-out/
|
|
5151
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5161
5152
|
function compilePipeFromMetadata(metadata) {
|
|
5162
5153
|
const definitionMapValues = [];
|
|
5163
5154
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5178,7 +5169,7 @@ function createPipeType(metadata) {
|
|
|
5178
5169
|
]));
|
|
5179
5170
|
}
|
|
5180
5171
|
|
|
5181
|
-
// bazel-out/
|
|
5172
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5182
5173
|
var R3TemplateDependencyKind;
|
|
5183
5174
|
(function(R3TemplateDependencyKind2) {
|
|
5184
5175
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5186,7 +5177,7 @@ var R3TemplateDependencyKind;
|
|
|
5186
5177
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5187
5178
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5188
5179
|
|
|
5189
|
-
// bazel-out/
|
|
5180
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5190
5181
|
var ParserError = class {
|
|
5191
5182
|
constructor(message, input, errLocation, ctxLocation) {
|
|
5192
5183
|
this.input = input;
|
|
@@ -5852,7 +5843,7 @@ var BoundElementProperty = class {
|
|
|
5852
5843
|
}
|
|
5853
5844
|
};
|
|
5854
5845
|
|
|
5855
|
-
// bazel-out/
|
|
5846
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
5856
5847
|
var _EventHandlerVars = class {
|
|
5857
5848
|
};
|
|
5858
5849
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -6493,7 +6484,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6493
6484
|
}
|
|
6494
6485
|
};
|
|
6495
6486
|
|
|
6496
|
-
// bazel-out/
|
|
6487
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6497
6488
|
var _SECURITY_SCHEMA;
|
|
6498
6489
|
function SECURITY_SCHEMA() {
|
|
6499
6490
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6551,7 +6542,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6551
6542
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6552
6543
|
}
|
|
6553
6544
|
|
|
6554
|
-
// bazel-out/
|
|
6545
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6555
6546
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6556
6547
|
"inherit",
|
|
6557
6548
|
"initial",
|
|
@@ -6581,6 +6572,7 @@ var animationKeywords = /* @__PURE__ */ new Set([
|
|
|
6581
6572
|
"jump-start",
|
|
6582
6573
|
"start"
|
|
6583
6574
|
]);
|
|
6575
|
+
var scopedAtRuleIdentifiers = ["@media", "@supports", "@document", "@layer", "@container", "@scope", "@starting-style"];
|
|
6584
6576
|
var ShadowCss = class {
|
|
6585
6577
|
constructor() {
|
|
6586
6578
|
this._animationDeclarationKeyframesRe = /(^|\s+)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;
|
|
@@ -6715,7 +6707,7 @@ var ShadowCss = class {
|
|
|
6715
6707
|
let content = rule.content;
|
|
6716
6708
|
if (rule.selector[0] !== "@") {
|
|
6717
6709
|
selector = this._scopeSelector(rule.selector, scopeSelector, hostSelector);
|
|
6718
|
-
} else if (
|
|
6710
|
+
} else if (scopedAtRuleIdentifiers.some((atRule) => rule.selector.startsWith(atRule))) {
|
|
6719
6711
|
content = this._scopeSelectors(rule.content, scopeSelector, hostSelector);
|
|
6720
6712
|
} else if (rule.selector.startsWith("@font-face") || rule.selector.startsWith("@page")) {
|
|
6721
6713
|
content = this._stripScopingSelectors(rule.content);
|
|
@@ -7022,7 +7014,7 @@ function repeatGroups(groups, multiples) {
|
|
|
7022
7014
|
}
|
|
7023
7015
|
}
|
|
7024
7016
|
|
|
7025
|
-
// bazel-out/
|
|
7017
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
7026
7018
|
var OpKind;
|
|
7027
7019
|
(function(OpKind2) {
|
|
7028
7020
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7181,7 +7173,7 @@ var TemplateKind;
|
|
|
7181
7173
|
TemplateKind2[TemplateKind2["Block"] = 2] = "Block";
|
|
7182
7174
|
})(TemplateKind || (TemplateKind = {}));
|
|
7183
7175
|
|
|
7184
|
-
// bazel-out/
|
|
7176
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7185
7177
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7186
7178
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7187
7179
|
var ConsumesVarsTrait = Symbol("ConsumesVars");
|
|
@@ -7213,7 +7205,7 @@ function hasUsesVarOffsetTrait(expr) {
|
|
|
7213
7205
|
return expr[UsesVarOffset] === true;
|
|
7214
7206
|
}
|
|
7215
7207
|
|
|
7216
|
-
// bazel-out/
|
|
7208
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
7217
7209
|
function createStatementOp(statement) {
|
|
7218
7210
|
return __spreadValues({
|
|
7219
7211
|
kind: OpKind.Statement,
|
|
@@ -7235,7 +7227,7 @@ var NEW_OP = {
|
|
|
7235
7227
|
next: null
|
|
7236
7228
|
};
|
|
7237
7229
|
|
|
7238
|
-
// bazel-out/
|
|
7230
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
7239
7231
|
function createInterpolateTextOp(xref, interpolation, sourceSpan) {
|
|
7240
7232
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
7241
7233
|
kind: OpKind.InterpolateText,
|
|
@@ -7401,7 +7393,7 @@ function createI18nApplyOp(owner, handle, sourceSpan) {
|
|
|
7401
7393
|
}, NEW_OP);
|
|
7402
7394
|
}
|
|
7403
7395
|
|
|
7404
|
-
// bazel-out/
|
|
7396
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
7405
7397
|
var _a;
|
|
7406
7398
|
var _b;
|
|
7407
7399
|
var _c;
|
|
@@ -8233,7 +8225,7 @@ function isStringLiteral(expr) {
|
|
|
8233
8225
|
return expr instanceof LiteralExpr && typeof expr.value === "string";
|
|
8234
8226
|
}
|
|
8235
8227
|
|
|
8236
|
-
// bazel-out/
|
|
8228
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
8237
8229
|
var _OpList = class {
|
|
8238
8230
|
constructor() {
|
|
8239
8231
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -8424,14 +8416,14 @@ var OpList = _OpList;
|
|
|
8424
8416
|
_OpList.nextListId = 0;
|
|
8425
8417
|
})();
|
|
8426
8418
|
|
|
8427
|
-
// bazel-out/
|
|
8419
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
|
|
8428
8420
|
var SlotHandle = class {
|
|
8429
8421
|
constructor() {
|
|
8430
8422
|
this.slot = null;
|
|
8431
8423
|
}
|
|
8432
8424
|
};
|
|
8433
8425
|
|
|
8434
|
-
// bazel-out/
|
|
8426
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
8435
8427
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
8436
8428
|
OpKind.Element,
|
|
8437
8429
|
OpKind.ElementStart,
|
|
@@ -8718,7 +8710,7 @@ function createI18nAttributesOp(xref, handle, target) {
|
|
|
8718
8710
|
}, NEW_OP), TRAIT_CONSUMES_SLOT);
|
|
8719
8711
|
}
|
|
8720
8712
|
|
|
8721
|
-
// bazel-out/
|
|
8713
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
|
|
8722
8714
|
function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext, securityContext, sourceSpan) {
|
|
8723
8715
|
return __spreadValues(__spreadValues({
|
|
8724
8716
|
kind: OpKind.HostProperty,
|
|
@@ -8732,10 +8724,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext,
|
|
|
8732
8724
|
}, TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8733
8725
|
}
|
|
8734
8726
|
|
|
8735
|
-
// bazel-out/
|
|
8727
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
|
|
8736
8728
|
var CTX_REF = "CTX_REF_MARKER";
|
|
8737
8729
|
|
|
8738
|
-
// bazel-out/
|
|
8730
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
8739
8731
|
var CompilationJobKind;
|
|
8740
8732
|
(function(CompilationJobKind2) {
|
|
8741
8733
|
CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
|
|
@@ -8842,7 +8834,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
|
|
|
8842
8834
|
}
|
|
8843
8835
|
};
|
|
8844
8836
|
|
|
8845
|
-
// bazel-out/
|
|
8837
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
|
|
8846
8838
|
function deleteAnyCasts(job) {
|
|
8847
8839
|
for (const unit of job.units) {
|
|
8848
8840
|
for (const op of unit.ops()) {
|
|
@@ -8860,7 +8852,7 @@ function removeAnys(e) {
|
|
|
8860
8852
|
return e;
|
|
8861
8853
|
}
|
|
8862
8854
|
|
|
8863
|
-
// bazel-out/
|
|
8855
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
|
|
8864
8856
|
function applyI18nExpressions(job) {
|
|
8865
8857
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
8866
8858
|
for (const unit of job.units) {
|
|
@@ -8903,7 +8895,7 @@ function needsApplication(i18nContexts, op) {
|
|
|
8903
8895
|
return false;
|
|
8904
8896
|
}
|
|
8905
8897
|
|
|
8906
|
-
// bazel-out/
|
|
8898
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
|
|
8907
8899
|
function assignI18nSlotDependencies(job) {
|
|
8908
8900
|
for (const unit of job.units) {
|
|
8909
8901
|
let updateOp = unit.update.head;
|
|
@@ -8948,7 +8940,7 @@ function assignI18nSlotDependencies(job) {
|
|
|
8948
8940
|
}
|
|
8949
8941
|
}
|
|
8950
8942
|
|
|
8951
|
-
// bazel-out/
|
|
8943
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
|
|
8952
8944
|
function createOpXrefMap(unit) {
|
|
8953
8945
|
const map = /* @__PURE__ */ new Map();
|
|
8954
8946
|
for (const op of unit.create) {
|
|
@@ -8963,7 +8955,7 @@ function createOpXrefMap(unit) {
|
|
|
8963
8955
|
return map;
|
|
8964
8956
|
}
|
|
8965
8957
|
|
|
8966
|
-
// bazel-out/
|
|
8958
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
8967
8959
|
function extractAttributes(job) {
|
|
8968
8960
|
for (const unit of job.units) {
|
|
8969
8961
|
const elements = createOpXrefMap(unit);
|
|
@@ -9065,7 +9057,7 @@ function extractAttributeOp(unit, op, elements) {
|
|
|
9065
9057
|
}
|
|
9066
9058
|
}
|
|
9067
9059
|
|
|
9068
|
-
// bazel-out/
|
|
9060
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
|
|
9069
9061
|
function lookupElement2(elements, xref) {
|
|
9070
9062
|
const el = elements.get(xref);
|
|
9071
9063
|
if (el === void 0) {
|
|
@@ -9116,7 +9108,7 @@ function specializeBindings(job) {
|
|
|
9116
9108
|
}
|
|
9117
9109
|
}
|
|
9118
9110
|
|
|
9119
|
-
// bazel-out/
|
|
9111
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
9120
9112
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
9121
9113
|
Identifiers.attribute,
|
|
9122
9114
|
Identifiers.classProp,
|
|
@@ -9182,7 +9174,7 @@ function chainOperationsInList(opList) {
|
|
|
9182
9174
|
}
|
|
9183
9175
|
}
|
|
9184
9176
|
|
|
9185
|
-
// bazel-out/
|
|
9177
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
|
|
9186
9178
|
function collapseSingletonInterpolations(job) {
|
|
9187
9179
|
for (const unit of job.units) {
|
|
9188
9180
|
for (const op of unit.update) {
|
|
@@ -9194,7 +9186,7 @@ function collapseSingletonInterpolations(job) {
|
|
|
9194
9186
|
}
|
|
9195
9187
|
}
|
|
9196
9188
|
|
|
9197
|
-
// bazel-out/
|
|
9189
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
|
|
9198
9190
|
function generateConditionalExpressions(job) {
|
|
9199
9191
|
for (const unit of job.units) {
|
|
9200
9192
|
for (const op of unit.ops()) {
|
|
@@ -9231,7 +9223,7 @@ function generateConditionalExpressions(job) {
|
|
|
9231
9223
|
}
|
|
9232
9224
|
}
|
|
9233
9225
|
|
|
9234
|
-
// bazel-out/
|
|
9226
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
9235
9227
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
9236
9228
|
["&&", BinaryOperator.And],
|
|
9237
9229
|
[">", BinaryOperator.Bigger],
|
|
@@ -9282,7 +9274,7 @@ function literalOrArrayLiteral(value) {
|
|
|
9282
9274
|
return literal(value);
|
|
9283
9275
|
}
|
|
9284
9276
|
|
|
9285
|
-
// bazel-out/
|
|
9277
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
9286
9278
|
function collectElementConsts(job) {
|
|
9287
9279
|
const allElementAttributes = /* @__PURE__ */ new Map();
|
|
9288
9280
|
for (const unit of job.units) {
|
|
@@ -9444,7 +9436,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
|
|
|
9444
9436
|
return literalArr(attrArray);
|
|
9445
9437
|
}
|
|
9446
9438
|
|
|
9447
|
-
// bazel-out/
|
|
9439
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
|
|
9448
9440
|
function convertI18nBindings(job) {
|
|
9449
9441
|
const i18nAttributesByElem = /* @__PURE__ */ new Map();
|
|
9450
9442
|
for (const unit of job.units) {
|
|
@@ -9485,7 +9477,7 @@ function convertI18nBindings(job) {
|
|
|
9485
9477
|
}
|
|
9486
9478
|
}
|
|
9487
9479
|
|
|
9488
|
-
// bazel-out/
|
|
9480
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
|
|
9489
9481
|
function createDeferDepsFns(job) {
|
|
9490
9482
|
for (const unit of job.units) {
|
|
9491
9483
|
for (const op of unit.create) {
|
|
@@ -9517,7 +9509,7 @@ function createDeferDepsFns(job) {
|
|
|
9517
9509
|
}
|
|
9518
9510
|
}
|
|
9519
9511
|
|
|
9520
|
-
// bazel-out/
|
|
9512
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
|
|
9521
9513
|
function createI18nContexts(job) {
|
|
9522
9514
|
const attrContextByMessage = /* @__PURE__ */ new Map();
|
|
9523
9515
|
for (const unit of job.units) {
|
|
@@ -9582,7 +9574,7 @@ function createI18nContexts(job) {
|
|
|
9582
9574
|
throw Error("AssertionError: Unexpected ICU outside of an i18n block.");
|
|
9583
9575
|
}
|
|
9584
9576
|
if (op.message.id !== currentI18nOp.message.id) {
|
|
9585
|
-
const contextOp = createI18nContextOp(I18nContextKind.Icu, job.allocateXrefId(), currentI18nOp.
|
|
9577
|
+
const contextOp = createI18nContextOp(I18nContextKind.Icu, job.allocateXrefId(), currentI18nOp.root, op.message, null);
|
|
9586
9578
|
unit.create.push(contextOp);
|
|
9587
9579
|
op.context = contextOp.xref;
|
|
9588
9580
|
} else {
|
|
@@ -9595,7 +9587,7 @@ function createI18nContexts(job) {
|
|
|
9595
9587
|
}
|
|
9596
9588
|
}
|
|
9597
9589
|
|
|
9598
|
-
// bazel-out/
|
|
9590
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
|
|
9599
9591
|
function deduplicateTextBindings(job) {
|
|
9600
9592
|
const seen = /* @__PURE__ */ new Map();
|
|
9601
9593
|
for (const unit of job.units) {
|
|
@@ -9617,7 +9609,7 @@ function deduplicateTextBindings(job) {
|
|
|
9617
9609
|
}
|
|
9618
9610
|
}
|
|
9619
9611
|
|
|
9620
|
-
// bazel-out/
|
|
9612
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
|
|
9621
9613
|
function configureDeferInstructions(job) {
|
|
9622
9614
|
for (const unit of job.units) {
|
|
9623
9615
|
for (const op of unit.create) {
|
|
@@ -9634,7 +9626,7 @@ function configureDeferInstructions(job) {
|
|
|
9634
9626
|
}
|
|
9635
9627
|
}
|
|
9636
9628
|
|
|
9637
|
-
// bazel-out/
|
|
9629
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
|
|
9638
9630
|
function resolveDeferTargetNames(job) {
|
|
9639
9631
|
const scopes = /* @__PURE__ */ new Map();
|
|
9640
9632
|
function getScopeForView2(view) {
|
|
@@ -9728,7 +9720,7 @@ var Scope = class {
|
|
|
9728
9720
|
}
|
|
9729
9721
|
};
|
|
9730
9722
|
|
|
9731
|
-
// bazel-out/
|
|
9723
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
9732
9724
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
9733
9725
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
9734
9726
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
|
|
@@ -9755,7 +9747,7 @@ function collapseEmptyInstructions(job) {
|
|
|
9755
9747
|
}
|
|
9756
9748
|
}
|
|
9757
9749
|
|
|
9758
|
-
// bazel-out/
|
|
9750
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
9759
9751
|
function expandSafeReads(job) {
|
|
9760
9752
|
for (const unit of job.units) {
|
|
9761
9753
|
for (const op of unit.ops()) {
|
|
@@ -9891,7 +9883,7 @@ function ternaryTransform(e) {
|
|
|
9891
9883
|
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
9892
9884
|
}
|
|
9893
9885
|
|
|
9894
|
-
// bazel-out/
|
|
9886
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
|
|
9895
9887
|
var ESCAPE = "\uFFFD";
|
|
9896
9888
|
var ELEMENT_MARKER = "#";
|
|
9897
9889
|
var TEMPLATE_MARKER = "*";
|
|
@@ -10027,7 +10019,7 @@ function formatValue(value) {
|
|
|
10027
10019
|
return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
|
|
10028
10020
|
}
|
|
10029
10021
|
|
|
10030
|
-
// bazel-out/
|
|
10022
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
10031
10023
|
function generateAdvance(job) {
|
|
10032
10024
|
for (const unit of job.units) {
|
|
10033
10025
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -10059,7 +10051,7 @@ function generateAdvance(job) {
|
|
|
10059
10051
|
}
|
|
10060
10052
|
}
|
|
10061
10053
|
|
|
10062
|
-
// bazel-out/
|
|
10054
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
|
|
10063
10055
|
function generateProjectionDefs(job) {
|
|
10064
10056
|
const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
|
|
10065
10057
|
const selectors = [];
|
|
@@ -10083,7 +10075,7 @@ function generateProjectionDefs(job) {
|
|
|
10083
10075
|
}
|
|
10084
10076
|
}
|
|
10085
10077
|
|
|
10086
|
-
// bazel-out/
|
|
10078
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
10087
10079
|
function generateVariables(job) {
|
|
10088
10080
|
recursivelyProcessView(job.root, null);
|
|
10089
10081
|
}
|
|
@@ -10176,7 +10168,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
10176
10168
|
return newOps;
|
|
10177
10169
|
}
|
|
10178
10170
|
|
|
10179
|
-
// bazel-out/
|
|
10171
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
|
|
10180
10172
|
function collectConstExpressions(job) {
|
|
10181
10173
|
for (const unit of job.units) {
|
|
10182
10174
|
for (const op of unit.ops()) {
|
|
@@ -10190,7 +10182,7 @@ function collectConstExpressions(job) {
|
|
|
10190
10182
|
}
|
|
10191
10183
|
}
|
|
10192
10184
|
|
|
10193
|
-
// bazel-out/
|
|
10185
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
|
|
10194
10186
|
var STYLE_DOT = "style.";
|
|
10195
10187
|
var CLASS_DOT = "class.";
|
|
10196
10188
|
var STYLE_BANG = "style!";
|
|
@@ -10248,7 +10240,7 @@ function parseProperty(name) {
|
|
|
10248
10240
|
return { property: property2, suffix };
|
|
10249
10241
|
}
|
|
10250
10242
|
|
|
10251
|
-
// bazel-out/
|
|
10243
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
10252
10244
|
function mapLiteral(obj, quoted = false) {
|
|
10253
10245
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
10254
10246
|
key,
|
|
@@ -10257,7 +10249,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
10257
10249
|
})));
|
|
10258
10250
|
}
|
|
10259
10251
|
|
|
10260
|
-
// bazel-out/
|
|
10252
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
10261
10253
|
var IcuSerializerVisitor = class {
|
|
10262
10254
|
visitText(text2) {
|
|
10263
10255
|
return text2.value;
|
|
@@ -10291,7 +10283,7 @@ function serializeIcuNode(icu) {
|
|
|
10291
10283
|
return icu.visit(serializer);
|
|
10292
10284
|
}
|
|
10293
10285
|
|
|
10294
|
-
// bazel-out/
|
|
10286
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
10295
10287
|
var TokenType;
|
|
10296
10288
|
(function(TokenType2) {
|
|
10297
10289
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -10652,7 +10644,7 @@ function parseIntAutoRadix(text2) {
|
|
|
10652
10644
|
return result;
|
|
10653
10645
|
}
|
|
10654
10646
|
|
|
10655
|
-
// bazel-out/
|
|
10647
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
10656
10648
|
var SplitInterpolation = class {
|
|
10657
10649
|
constructor(strings, expressions, offsets) {
|
|
10658
10650
|
this.strings = strings;
|
|
@@ -11546,7 +11538,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
11546
11538
|
return offsetMap;
|
|
11547
11539
|
}
|
|
11548
11540
|
|
|
11549
|
-
// bazel-out/
|
|
11541
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
11550
11542
|
var NodeWithI18n = class {
|
|
11551
11543
|
constructor(sourceSpan, i18n2) {
|
|
11552
11544
|
this.sourceSpan = sourceSpan;
|
|
@@ -11698,11 +11690,11 @@ var RecursiveVisitor = class {
|
|
|
11698
11690
|
}
|
|
11699
11691
|
};
|
|
11700
11692
|
|
|
11701
|
-
// bazel-out/
|
|
11693
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
11702
11694
|
var ElementSchemaRegistry = class {
|
|
11703
11695
|
};
|
|
11704
11696
|
|
|
11705
|
-
// bazel-out/
|
|
11697
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
11706
11698
|
var BOOLEAN = "boolean";
|
|
11707
11699
|
var NUMBER = "number";
|
|
11708
11700
|
var STRING = "string";
|
|
@@ -12055,7 +12047,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
12055
12047
|
}
|
|
12056
12048
|
}
|
|
12057
12049
|
|
|
12058
|
-
// bazel-out/
|
|
12050
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
12059
12051
|
var HtmlTagDefinition = class {
|
|
12060
12052
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
12061
12053
|
this.closedByChildren = {};
|
|
@@ -12173,7 +12165,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
12173
12165
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
12174
12166
|
}
|
|
12175
12167
|
|
|
12176
|
-
// bazel-out/
|
|
12168
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
12177
12169
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
12178
12170
|
"A": "LINK",
|
|
12179
12171
|
"B": "BOLD_TEXT",
|
|
@@ -12295,7 +12287,7 @@ var PlaceholderRegistry = class {
|
|
|
12295
12287
|
}
|
|
12296
12288
|
};
|
|
12297
12289
|
|
|
12298
|
-
// bazel-out/
|
|
12290
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
12299
12291
|
var _expParser = new Parser(new Lexer());
|
|
12300
12292
|
function createI18nMessageFactory(interpolationConfig, containerBlocks) {
|
|
12301
12293
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);
|
|
@@ -12474,14 +12466,14 @@ function extractPlaceholderName(input) {
|
|
|
12474
12466
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
12475
12467
|
}
|
|
12476
12468
|
|
|
12477
|
-
// bazel-out/
|
|
12469
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
12478
12470
|
var I18nError = class extends ParseError {
|
|
12479
12471
|
constructor(span, msg) {
|
|
12480
12472
|
super(span, msg);
|
|
12481
12473
|
}
|
|
12482
12474
|
};
|
|
12483
12475
|
|
|
12484
|
-
// bazel-out/
|
|
12476
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
12485
12477
|
var NAMED_ENTITIES = {
|
|
12486
12478
|
"AElig": "\xC6",
|
|
12487
12479
|
"AMP": "&",
|
|
@@ -14612,7 +14604,7 @@ var NAMED_ENTITIES = {
|
|
|
14612
14604
|
var NGSP_UNICODE = "\uE500";
|
|
14613
14605
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
14614
14606
|
|
|
14615
|
-
// bazel-out/
|
|
14607
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
14616
14608
|
var TokenError = class extends ParseError {
|
|
14617
14609
|
constructor(errorMsg, tokenType, span) {
|
|
14618
14610
|
super(span, errorMsg);
|
|
@@ -15533,7 +15525,7 @@ var CursorError = class {
|
|
|
15533
15525
|
}
|
|
15534
15526
|
};
|
|
15535
15527
|
|
|
15536
|
-
// bazel-out/
|
|
15528
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
15537
15529
|
var TreeError = class extends ParseError {
|
|
15538
15530
|
static create(elementName, span, msg) {
|
|
15539
15531
|
return new TreeError(elementName, span, msg);
|
|
@@ -15917,7 +15909,7 @@ function decodeEntity(match, entity) {
|
|
|
15917
15909
|
return match;
|
|
15918
15910
|
}
|
|
15919
15911
|
|
|
15920
|
-
// bazel-out/
|
|
15912
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
15921
15913
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
15922
15914
|
"iframe|srcdoc",
|
|
15923
15915
|
"*|innerhtml",
|
|
@@ -15932,7 +15924,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
15932
15924
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
15933
15925
|
}
|
|
15934
15926
|
|
|
15935
|
-
// bazel-out/
|
|
15927
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
15936
15928
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
15937
15929
|
if (htmlNode instanceof NodeWithI18n) {
|
|
15938
15930
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -16089,7 +16081,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
16089
16081
|
return jsDocComment(tags);
|
|
16090
16082
|
}
|
|
16091
16083
|
|
|
16092
|
-
// bazel-out/
|
|
16084
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
16093
16085
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
16094
16086
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
16095
16087
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -16140,7 +16132,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
16140
16132
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
16141
16133
|
}
|
|
16142
16134
|
|
|
16143
|
-
// bazel-out/
|
|
16135
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
16144
16136
|
function createLocalizeStatements(variable2, message, params) {
|
|
16145
16137
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
16146
16138
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -16229,7 +16221,7 @@ function createEmptyMessagePart(location) {
|
|
|
16229
16221
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
16230
16222
|
}
|
|
16231
16223
|
|
|
16232
|
-
// bazel-out/
|
|
16224
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
|
|
16233
16225
|
var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
|
|
16234
16226
|
var TRANSLATION_VAR_PREFIX2 = "i18n_";
|
|
16235
16227
|
var I18N_ICU_MAPPING_PREFIX2 = "I18N_EXP_";
|
|
@@ -16390,7 +16382,7 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
|
|
|
16390
16382
|
return variable(name);
|
|
16391
16383
|
}
|
|
16392
16384
|
|
|
16393
|
-
// bazel-out/
|
|
16385
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
|
|
16394
16386
|
function convertI18nText(job) {
|
|
16395
16387
|
var _a2, _b2, _c2;
|
|
16396
16388
|
for (const unit of job.units) {
|
|
@@ -16460,7 +16452,7 @@ function convertI18nText(job) {
|
|
|
16460
16452
|
}
|
|
16461
16453
|
}
|
|
16462
16454
|
|
|
16463
|
-
// bazel-out/
|
|
16455
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
16464
16456
|
function liftLocalRefs(job) {
|
|
16465
16457
|
for (const unit of job.units) {
|
|
16466
16458
|
for (const op of unit.create) {
|
|
@@ -16490,7 +16482,7 @@ function serializeLocalRefs(refs) {
|
|
|
16490
16482
|
return literalArr(constRefs);
|
|
16491
16483
|
}
|
|
16492
16484
|
|
|
16493
|
-
// bazel-out/
|
|
16485
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
|
|
16494
16486
|
function emitNamespaceChanges(job) {
|
|
16495
16487
|
for (const unit of job.units) {
|
|
16496
16488
|
let activeNamespace = Namespace.HTML;
|
|
@@ -16506,7 +16498,7 @@ function emitNamespaceChanges(job) {
|
|
|
16506
16498
|
}
|
|
16507
16499
|
}
|
|
16508
16500
|
|
|
16509
|
-
// bazel-out/
|
|
16501
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
16510
16502
|
function parse(value) {
|
|
16511
16503
|
const styles = [];
|
|
16512
16504
|
let i = 0;
|
|
@@ -16567,7 +16559,7 @@ function hyphenate2(value) {
|
|
|
16567
16559
|
}).toLowerCase();
|
|
16568
16560
|
}
|
|
16569
16561
|
|
|
16570
|
-
// bazel-out/
|
|
16562
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
16571
16563
|
function nameFunctionsAndVariables(job) {
|
|
16572
16564
|
addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
|
|
16573
16565
|
}
|
|
@@ -16687,7 +16679,7 @@ function stripImportant(name) {
|
|
|
16687
16679
|
return name;
|
|
16688
16680
|
}
|
|
16689
16681
|
|
|
16690
|
-
// bazel-out/
|
|
16682
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
16691
16683
|
function mergeNextContextExpressions(job) {
|
|
16692
16684
|
for (const unit of job.units) {
|
|
16693
16685
|
for (const op of unit.create) {
|
|
@@ -16733,7 +16725,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
16733
16725
|
}
|
|
16734
16726
|
}
|
|
16735
16727
|
|
|
16736
|
-
// bazel-out/
|
|
16728
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
16737
16729
|
var CONTAINER_TAG = "ng-container";
|
|
16738
16730
|
function generateNgContainerOps(job) {
|
|
16739
16731
|
for (const unit of job.units) {
|
|
@@ -16750,7 +16742,7 @@ function generateNgContainerOps(job) {
|
|
|
16750
16742
|
}
|
|
16751
16743
|
}
|
|
16752
16744
|
|
|
16753
|
-
// bazel-out/
|
|
16745
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
|
|
16754
16746
|
function lookupElement3(elements, xref) {
|
|
16755
16747
|
const el = elements.get(xref);
|
|
16756
16748
|
if (el === void 0) {
|
|
@@ -16780,7 +16772,7 @@ function disableBindings(job) {
|
|
|
16780
16772
|
}
|
|
16781
16773
|
}
|
|
16782
16774
|
|
|
16783
|
-
// bazel-out/
|
|
16775
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
16784
16776
|
function generateNullishCoalesceExpressions(job) {
|
|
16785
16777
|
for (const unit of job.units) {
|
|
16786
16778
|
for (const op of unit.ops()) {
|
|
@@ -16796,7 +16788,7 @@ function generateNullishCoalesceExpressions(job) {
|
|
|
16796
16788
|
}
|
|
16797
16789
|
}
|
|
16798
16790
|
|
|
16799
|
-
// bazel-out/
|
|
16791
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
|
|
16800
16792
|
function kindTest(kind) {
|
|
16801
16793
|
return (op) => op.kind === kind;
|
|
16802
16794
|
}
|
|
@@ -16878,7 +16870,7 @@ function keepLast(ops) {
|
|
|
16878
16870
|
return ops.slice(ops.length - 1);
|
|
16879
16871
|
}
|
|
16880
16872
|
|
|
16881
|
-
// bazel-out/
|
|
16873
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
|
|
16882
16874
|
function parseExtractedStyles(job) {
|
|
16883
16875
|
const elements = /* @__PURE__ */ new Map();
|
|
16884
16876
|
for (const unit of job.units) {
|
|
@@ -16913,7 +16905,7 @@ function parseExtractedStyles(job) {
|
|
|
16913
16905
|
}
|
|
16914
16906
|
}
|
|
16915
16907
|
|
|
16916
|
-
// bazel-out/
|
|
16908
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
|
|
16917
16909
|
function removeContentSelectors(job) {
|
|
16918
16910
|
for (const unit of job.units) {
|
|
16919
16911
|
const elements = createOpXrefMap(unit);
|
|
@@ -16940,7 +16932,7 @@ function lookupInXrefMap(map, xref) {
|
|
|
16940
16932
|
return el;
|
|
16941
16933
|
}
|
|
16942
16934
|
|
|
16943
|
-
// bazel-out/
|
|
16935
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
16944
16936
|
function createPipes(job) {
|
|
16945
16937
|
for (const unit of job.units) {
|
|
16946
16938
|
processPipeBindingsInView(unit);
|
|
@@ -16988,7 +16980,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
|
|
|
16988
16980
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
16989
16981
|
}
|
|
16990
16982
|
|
|
16991
|
-
// bazel-out/
|
|
16983
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
16992
16984
|
function createVariadicPipes(job) {
|
|
16993
16985
|
for (const unit of job.units) {
|
|
16994
16986
|
for (const op of unit.update) {
|
|
@@ -17005,7 +16997,7 @@ function createVariadicPipes(job) {
|
|
|
17005
16997
|
}
|
|
17006
16998
|
}
|
|
17007
16999
|
|
|
17008
|
-
// bazel-out/
|
|
17000
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
|
|
17009
17001
|
function propagateI18nBlocks(job) {
|
|
17010
17002
|
propagateI18nBlocksToTemplates(job.root, 0);
|
|
17011
17003
|
}
|
|
@@ -17059,7 +17051,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
|
|
|
17059
17051
|
}
|
|
17060
17052
|
}
|
|
17061
17053
|
|
|
17062
|
-
// bazel-out/
|
|
17054
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
17063
17055
|
function extractPureFunctions(job) {
|
|
17064
17056
|
for (const view of job.units) {
|
|
17065
17057
|
for (const op of view.ops()) {
|
|
@@ -17101,7 +17093,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
17101
17093
|
}
|
|
17102
17094
|
};
|
|
17103
17095
|
|
|
17104
|
-
// bazel-out/
|
|
17096
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
17105
17097
|
function generatePureLiteralStructures(job) {
|
|
17106
17098
|
for (const unit of job.units) {
|
|
17107
17099
|
for (const op of unit.update) {
|
|
@@ -17148,7 +17140,7 @@ function transformLiteralMap(expr) {
|
|
|
17148
17140
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
17149
17141
|
}
|
|
17150
17142
|
|
|
17151
|
-
// bazel-out/
|
|
17143
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
17152
17144
|
function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
|
|
17153
17145
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
|
|
17154
17146
|
}
|
|
@@ -17670,7 +17662,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
|
|
|
17670
17662
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
|
|
17671
17663
|
}
|
|
17672
17664
|
|
|
17673
|
-
// bazel-out/
|
|
17665
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
17674
17666
|
var GLOBAL_TARGET_RESOLVERS = /* @__PURE__ */ new Map([
|
|
17675
17667
|
["window", Identifiers.resolveWindow],
|
|
17676
17668
|
["document", Identifiers.resolveDocument],
|
|
@@ -18003,7 +17995,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
|
|
|
18003
17995
|
return fn(params, handlerStmts, void 0, void 0, name);
|
|
18004
17996
|
}
|
|
18005
17997
|
|
|
18006
|
-
// bazel-out/
|
|
17998
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
|
|
18007
17999
|
function removeEmptyBindings(job) {
|
|
18008
18000
|
for (const unit of job.units) {
|
|
18009
18001
|
for (const op of unit.update) {
|
|
@@ -18024,7 +18016,7 @@ function removeEmptyBindings(job) {
|
|
|
18024
18016
|
}
|
|
18025
18017
|
}
|
|
18026
18018
|
|
|
18027
|
-
// bazel-out/
|
|
18019
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
|
|
18028
18020
|
function removeI18nContexts(job) {
|
|
18029
18021
|
for (const unit of job.units) {
|
|
18030
18022
|
for (const op of unit.create) {
|
|
@@ -18040,7 +18032,7 @@ function removeI18nContexts(job) {
|
|
|
18040
18032
|
}
|
|
18041
18033
|
}
|
|
18042
18034
|
|
|
18043
|
-
// bazel-out/
|
|
18035
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
|
|
18044
18036
|
function removeUnusedI18nAttributesOps(job) {
|
|
18045
18037
|
for (const unit of job.units) {
|
|
18046
18038
|
const ownersWithI18nExpressions = /* @__PURE__ */ new Set();
|
|
@@ -18062,7 +18054,7 @@ function removeUnusedI18nAttributesOps(job) {
|
|
|
18062
18054
|
}
|
|
18063
18055
|
}
|
|
18064
18056
|
|
|
18065
|
-
// bazel-out/
|
|
18057
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
18066
18058
|
function resolveContexts(job) {
|
|
18067
18059
|
for (const unit of job.units) {
|
|
18068
18060
|
processLexicalScope(unit, unit.create);
|
|
@@ -18103,7 +18095,7 @@ function processLexicalScope(view, ops) {
|
|
|
18103
18095
|
}
|
|
18104
18096
|
}
|
|
18105
18097
|
|
|
18106
|
-
// bazel-out/
|
|
18098
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
|
|
18107
18099
|
function resolveDollarEvent(job) {
|
|
18108
18100
|
for (const unit of job.units) {
|
|
18109
18101
|
transformDollarEvent(unit, unit.create);
|
|
@@ -18124,7 +18116,7 @@ function transformDollarEvent(unit, ops) {
|
|
|
18124
18116
|
}
|
|
18125
18117
|
}
|
|
18126
18118
|
|
|
18127
|
-
// bazel-out/
|
|
18119
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
|
|
18128
18120
|
function resolveI18nElementPlaceholders(job) {
|
|
18129
18121
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
18130
18122
|
const elements = /* @__PURE__ */ new Map();
|
|
@@ -18303,7 +18295,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags) {
|
|
|
18303
18295
|
params.set(placeholder, values);
|
|
18304
18296
|
}
|
|
18305
18297
|
|
|
18306
|
-
// bazel-out/
|
|
18298
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
|
|
18307
18299
|
function resolveI18nExpressionPlaceholders(job) {
|
|
18308
18300
|
var _a2;
|
|
18309
18301
|
const subTemplateIndicies = /* @__PURE__ */ new Map();
|
|
@@ -18356,7 +18348,7 @@ function updatePlaceholder(op, value, i18nContexts, icuPlaceholders) {
|
|
|
18356
18348
|
}
|
|
18357
18349
|
}
|
|
18358
18350
|
|
|
18359
|
-
// bazel-out/
|
|
18351
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
18360
18352
|
function resolveNames(job) {
|
|
18361
18353
|
for (const unit of job.units) {
|
|
18362
18354
|
processLexicalScope2(unit, unit.create, null);
|
|
@@ -18420,7 +18412,7 @@ function processLexicalScope2(unit, ops, savedView) {
|
|
|
18420
18412
|
}
|
|
18421
18413
|
}
|
|
18422
18414
|
|
|
18423
|
-
// bazel-out/
|
|
18415
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
|
|
18424
18416
|
var sanitizerFns = /* @__PURE__ */ new Map([
|
|
18425
18417
|
[SecurityContext.HTML, Identifiers.sanitizeHtml],
|
|
18426
18418
|
[SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],
|
|
@@ -18490,7 +18482,7 @@ function getOnlySecurityContext(securityContext) {
|
|
|
18490
18482
|
return securityContext;
|
|
18491
18483
|
}
|
|
18492
18484
|
|
|
18493
|
-
// bazel-out/
|
|
18485
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
18494
18486
|
function saveAndRestoreView(job) {
|
|
18495
18487
|
for (const unit of job.units) {
|
|
18496
18488
|
unit.create.prepend([
|
|
@@ -18535,7 +18527,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
|
|
|
18535
18527
|
}
|
|
18536
18528
|
}
|
|
18537
18529
|
|
|
18538
|
-
// bazel-out/
|
|
18530
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
18539
18531
|
function allocateSlots(job) {
|
|
18540
18532
|
const slotMap = /* @__PURE__ */ new Map();
|
|
18541
18533
|
for (const unit of job.units) {
|
|
@@ -18560,7 +18552,7 @@ function allocateSlots(job) {
|
|
|
18560
18552
|
}
|
|
18561
18553
|
}
|
|
18562
18554
|
|
|
18563
|
-
// bazel-out/
|
|
18555
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
|
|
18564
18556
|
function specializeStyleBindings(job) {
|
|
18565
18557
|
for (const unit of job.units) {
|
|
18566
18558
|
for (const op of unit.update) {
|
|
@@ -18590,7 +18582,7 @@ function specializeStyleBindings(job) {
|
|
|
18590
18582
|
}
|
|
18591
18583
|
}
|
|
18592
18584
|
|
|
18593
|
-
// bazel-out/
|
|
18585
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
18594
18586
|
function generateTemporaryVariables(job) {
|
|
18595
18587
|
for (const unit of job.units) {
|
|
18596
18588
|
unit.create.prepend(generateTemporaries(unit.create));
|
|
@@ -18648,7 +18640,7 @@ function assignName(names, expr) {
|
|
|
18648
18640
|
expr.name = name;
|
|
18649
18641
|
}
|
|
18650
18642
|
|
|
18651
|
-
// bazel-out/
|
|
18643
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
|
|
18652
18644
|
function generateTrackFns(job) {
|
|
18653
18645
|
for (const unit of job.units) {
|
|
18654
18646
|
for (const op of unit.create) {
|
|
@@ -18681,7 +18673,7 @@ function generateTrackFns(job) {
|
|
|
18681
18673
|
}
|
|
18682
18674
|
}
|
|
18683
18675
|
|
|
18684
|
-
// bazel-out/
|
|
18676
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
|
|
18685
18677
|
function optimizeTrackFns(job) {
|
|
18686
18678
|
for (const unit of job.units) {
|
|
18687
18679
|
for (const op of unit.create) {
|
|
@@ -18728,7 +18720,7 @@ function isTrackByFunctionCall(rootView, expr) {
|
|
|
18728
18720
|
return true;
|
|
18729
18721
|
}
|
|
18730
18722
|
|
|
18731
|
-
// bazel-out/
|
|
18723
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
|
|
18732
18724
|
function generateTrackVariables(job) {
|
|
18733
18725
|
for (const unit of job.units) {
|
|
18734
18726
|
for (const op of unit.create) {
|
|
@@ -18749,7 +18741,7 @@ function generateTrackVariables(job) {
|
|
|
18749
18741
|
}
|
|
18750
18742
|
}
|
|
18751
18743
|
|
|
18752
|
-
// bazel-out/
|
|
18744
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
18753
18745
|
function countVariables(job) {
|
|
18754
18746
|
for (const unit of job.units) {
|
|
18755
18747
|
let varCount = 0;
|
|
@@ -18857,7 +18849,7 @@ function isSingletonInterpolation(expr) {
|
|
|
18857
18849
|
return true;
|
|
18858
18850
|
}
|
|
18859
18851
|
|
|
18860
|
-
// bazel-out/
|
|
18852
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
18861
18853
|
function optimizeVariables(job) {
|
|
18862
18854
|
for (const unit of job.units) {
|
|
18863
18855
|
inlineAlwaysInlineVariables(unit.create);
|
|
@@ -19107,7 +19099,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
19107
19099
|
}
|
|
19108
19100
|
}
|
|
19109
19101
|
|
|
19110
|
-
// bazel-out/
|
|
19102
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
|
|
19111
19103
|
function wrapI18nIcus(job) {
|
|
19112
19104
|
for (const unit of job.units) {
|
|
19113
19105
|
let currentI18nOp = null;
|
|
@@ -19137,7 +19129,7 @@ function wrapI18nIcus(job) {
|
|
|
19137
19129
|
}
|
|
19138
19130
|
}
|
|
19139
19131
|
|
|
19140
|
-
// bazel-out/
|
|
19132
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
19141
19133
|
var phases = [
|
|
19142
19134
|
{ kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
|
|
19143
19135
|
{ kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
|
|
@@ -19302,7 +19294,7 @@ function emitHostBindingFunction(job) {
|
|
|
19302
19294
|
);
|
|
19303
19295
|
}
|
|
19304
19296
|
|
|
19305
|
-
// bazel-out/
|
|
19297
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
19306
19298
|
var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
|
|
19307
19299
|
var domSchema = new DomElementSchemaRegistry();
|
|
19308
19300
|
var NG_TEMPLATE_TAG_NAME = "ng-template";
|
|
@@ -19985,480 +19977,147 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
19985
19977
|
return null;
|
|
19986
19978
|
}
|
|
19987
19979
|
|
|
19988
|
-
// bazel-out/
|
|
19980
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
19989
19981
|
var USE_TEMPLATE_PIPELINE = false;
|
|
19990
19982
|
|
|
19991
|
-
// bazel-out/
|
|
19992
|
-
var
|
|
19993
|
-
|
|
19994
|
-
|
|
19995
|
-
constructor(_directiveExpr) {
|
|
19996
|
-
this._directiveExpr = _directiveExpr;
|
|
19997
|
-
this._hasInitialValues = false;
|
|
19998
|
-
this.hasBindings = false;
|
|
19999
|
-
this.hasBindingsWithPipes = false;
|
|
20000
|
-
this._classMapInput = null;
|
|
20001
|
-
this._styleMapInput = null;
|
|
20002
|
-
this._singleStyleInputs = null;
|
|
20003
|
-
this._singleClassInputs = null;
|
|
20004
|
-
this._lastStylingInput = null;
|
|
20005
|
-
this._firstStylingInput = null;
|
|
20006
|
-
this._stylesIndex = /* @__PURE__ */ new Map();
|
|
20007
|
-
this._classesIndex = /* @__PURE__ */ new Map();
|
|
20008
|
-
this._initialStyleValues = [];
|
|
20009
|
-
this._initialClassValues = [];
|
|
19983
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
19984
|
+
var HtmlParser = class extends Parser2 {
|
|
19985
|
+
constructor() {
|
|
19986
|
+
super(getHtmlTagDefinition);
|
|
20010
19987
|
}
|
|
20011
|
-
|
|
20012
|
-
|
|
20013
|
-
let name = input.name;
|
|
20014
|
-
switch (input.type) {
|
|
20015
|
-
case 0:
|
|
20016
|
-
binding = this.registerInputBasedOnName(name, input.value, input.sourceSpan);
|
|
20017
|
-
break;
|
|
20018
|
-
case 3:
|
|
20019
|
-
binding = this.registerStyleInput(name, false, input.value, input.sourceSpan, input.unit);
|
|
20020
|
-
break;
|
|
20021
|
-
case 2:
|
|
20022
|
-
binding = this.registerClassInput(name, false, input.value, input.sourceSpan);
|
|
20023
|
-
break;
|
|
20024
|
-
}
|
|
20025
|
-
return binding ? true : false;
|
|
19988
|
+
parse(source, url, options) {
|
|
19989
|
+
return super.parse(source, url, options);
|
|
20026
19990
|
}
|
|
20027
|
-
|
|
20028
|
-
|
|
20029
|
-
|
|
20030
|
-
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20034
|
-
|
|
20035
|
-
|
|
20036
|
-
|
|
20037
|
-
|
|
20038
|
-
|
|
20039
|
-
|
|
19991
|
+
};
|
|
19992
|
+
|
|
19993
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
19994
|
+
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
19995
|
+
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
19996
|
+
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
19997
|
+
var NO_WS_REGEXP = new RegExp(`[^${WS_CHARS}]`);
|
|
19998
|
+
var WS_REPLACE_REGEXP = new RegExp(`[${WS_CHARS}]{2,}`, "g");
|
|
19999
|
+
function hasPreserveWhitespacesAttr(attrs) {
|
|
20000
|
+
return attrs.some((attr) => attr.name === PRESERVE_WS_ATTR_NAME);
|
|
20001
|
+
}
|
|
20002
|
+
function replaceNgsp(value) {
|
|
20003
|
+
return value.replace(new RegExp(NGSP_UNICODE, "g"), " ");
|
|
20004
|
+
}
|
|
20005
|
+
var WhitespaceVisitor = class {
|
|
20006
|
+
visitElement(element2, context) {
|
|
20007
|
+
if (SKIP_WS_TRIM_TAGS.has(element2.name) || hasPreserveWhitespacesAttr(element2.attrs)) {
|
|
20008
|
+
return new Element2(element2.name, visitAll2(this, element2.attrs), element2.children, element2.sourceSpan, element2.startSourceSpan, element2.endSourceSpan, element2.i18n);
|
|
20040
20009
|
}
|
|
20041
|
-
return
|
|
20010
|
+
return new Element2(element2.name, element2.attrs, visitAllWithSiblings(this, element2.children), element2.sourceSpan, element2.startSourceSpan, element2.endSourceSpan, element2.i18n);
|
|
20042
20011
|
}
|
|
20043
|
-
|
|
20044
|
-
|
|
20045
|
-
return null;
|
|
20046
|
-
}
|
|
20047
|
-
if (!isCssCustomProperty2(name)) {
|
|
20048
|
-
name = hyphenate2(name);
|
|
20049
|
-
}
|
|
20050
|
-
const { property: property2, hasOverrideFlag, suffix: bindingSuffix } = parseProperty2(name);
|
|
20051
|
-
suffix = typeof suffix === "string" && suffix.length !== 0 ? suffix : bindingSuffix;
|
|
20052
|
-
const entry = { name: property2, suffix, value, sourceSpan, hasOverrideFlag };
|
|
20053
|
-
if (isMapBased) {
|
|
20054
|
-
this._styleMapInput = entry;
|
|
20055
|
-
} else {
|
|
20056
|
-
(this._singleStyleInputs = this._singleStyleInputs || []).push(entry);
|
|
20057
|
-
registerIntoMap(this._stylesIndex, property2);
|
|
20058
|
-
}
|
|
20059
|
-
this._lastStylingInput = entry;
|
|
20060
|
-
this._firstStylingInput = this._firstStylingInput || entry;
|
|
20061
|
-
this._checkForPipes(value);
|
|
20062
|
-
this.hasBindings = true;
|
|
20063
|
-
return entry;
|
|
20012
|
+
visitAttribute(attribute2, context) {
|
|
20013
|
+
return attribute2.name !== PRESERVE_WS_ATTR_NAME ? attribute2 : null;
|
|
20064
20014
|
}
|
|
20065
|
-
|
|
20066
|
-
|
|
20067
|
-
|
|
20068
|
-
|
|
20069
|
-
|
|
20070
|
-
|
|
20071
|
-
|
|
20072
|
-
this._classMapInput = entry;
|
|
20073
|
-
} else {
|
|
20074
|
-
(this._singleClassInputs = this._singleClassInputs || []).push(entry);
|
|
20075
|
-
registerIntoMap(this._classesIndex, property2);
|
|
20015
|
+
visitText(text2, context) {
|
|
20016
|
+
const isNotBlank = text2.value.match(NO_WS_REGEXP);
|
|
20017
|
+
const hasExpansionSibling = context && (context.prev instanceof Expansion || context.next instanceof Expansion);
|
|
20018
|
+
if (isNotBlank || hasExpansionSibling) {
|
|
20019
|
+
const tokens = text2.tokens.map((token) => token.type === 5 ? createWhitespaceProcessedTextToken(token) : token);
|
|
20020
|
+
const value = processWhitespace(text2.value);
|
|
20021
|
+
return new Text4(value, text2.sourceSpan, tokens, text2.i18n);
|
|
20076
20022
|
}
|
|
20077
|
-
|
|
20078
|
-
this._firstStylingInput = this._firstStylingInput || entry;
|
|
20079
|
-
this._checkForPipes(value);
|
|
20080
|
-
this.hasBindings = true;
|
|
20081
|
-
return entry;
|
|
20023
|
+
return null;
|
|
20082
20024
|
}
|
|
20083
|
-
|
|
20084
|
-
|
|
20085
|
-
this.hasBindingsWithPipes = true;
|
|
20086
|
-
}
|
|
20025
|
+
visitComment(comment, context) {
|
|
20026
|
+
return comment;
|
|
20087
20027
|
}
|
|
20088
|
-
|
|
20089
|
-
|
|
20090
|
-
this._hasInitialValues = true;
|
|
20028
|
+
visitExpansion(expansion, context) {
|
|
20029
|
+
return expansion;
|
|
20091
20030
|
}
|
|
20092
|
-
|
|
20093
|
-
|
|
20094
|
-
this._hasInitialValues = true;
|
|
20031
|
+
visitExpansionCase(expansionCase, context) {
|
|
20032
|
+
return expansionCase;
|
|
20095
20033
|
}
|
|
20096
|
-
|
|
20097
|
-
|
|
20098
|
-
|
|
20099
|
-
|
|
20100
|
-
|
|
20101
|
-
|
|
20034
|
+
visitBlock(block, context) {
|
|
20035
|
+
return new Block(block.name, block.parameters, visitAllWithSiblings(this, block.children), block.sourceSpan, block.nameSpan, block.startSourceSpan, block.endSourceSpan);
|
|
20036
|
+
}
|
|
20037
|
+
visitBlockParameter(parameter, context) {
|
|
20038
|
+
return parameter;
|
|
20039
|
+
}
|
|
20040
|
+
};
|
|
20041
|
+
function createWhitespaceProcessedTextToken({ type, parts, sourceSpan }) {
|
|
20042
|
+
return { type, parts: [processWhitespace(parts[0])], sourceSpan };
|
|
20043
|
+
}
|
|
20044
|
+
function processWhitespace(text2) {
|
|
20045
|
+
return replaceNgsp(text2).replace(WS_REPLACE_REGEXP, " ");
|
|
20046
|
+
}
|
|
20047
|
+
function visitAllWithSiblings(visitor, nodes) {
|
|
20048
|
+
const result = [];
|
|
20049
|
+
nodes.forEach((ast, i) => {
|
|
20050
|
+
const context = { prev: nodes[i - 1], next: nodes[i + 1] };
|
|
20051
|
+
const astResult = ast.visit(visitor, context);
|
|
20052
|
+
if (astResult) {
|
|
20053
|
+
result.push(astResult);
|
|
20102
20054
|
}
|
|
20103
|
-
|
|
20104
|
-
|
|
20105
|
-
|
|
20106
|
-
|
|
20055
|
+
});
|
|
20056
|
+
return result;
|
|
20057
|
+
}
|
|
20058
|
+
|
|
20059
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
20060
|
+
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
20061
|
+
var ATTRIBUTE_PREFIX = "attr";
|
|
20062
|
+
var CLASS_PREFIX = "class";
|
|
20063
|
+
var STYLE_PREFIX = "style";
|
|
20064
|
+
var TEMPLATE_ATTR_PREFIX = "*";
|
|
20065
|
+
var ANIMATE_PROP_PREFIX = "animate-";
|
|
20066
|
+
var BindingParser = class {
|
|
20067
|
+
constructor(_exprParser, _interpolationConfig, _schemaRegistry, errors) {
|
|
20068
|
+
this._exprParser = _exprParser;
|
|
20069
|
+
this._interpolationConfig = _interpolationConfig;
|
|
20070
|
+
this._schemaRegistry = _schemaRegistry;
|
|
20071
|
+
this.errors = errors;
|
|
20072
|
+
}
|
|
20073
|
+
get interpolationConfig() {
|
|
20074
|
+
return this._interpolationConfig;
|
|
20075
|
+
}
|
|
20076
|
+
createBoundHostProperties(properties, sourceSpan) {
|
|
20077
|
+
const boundProps = [];
|
|
20078
|
+
for (const propName of Object.keys(properties)) {
|
|
20079
|
+
const expression = properties[propName];
|
|
20080
|
+
if (typeof expression === "string") {
|
|
20081
|
+
this.parsePropertyBinding(
|
|
20082
|
+
propName,
|
|
20083
|
+
expression,
|
|
20084
|
+
true,
|
|
20085
|
+
sourceSpan,
|
|
20086
|
+
sourceSpan.start.offset,
|
|
20087
|
+
void 0,
|
|
20088
|
+
[],
|
|
20089
|
+
boundProps,
|
|
20090
|
+
sourceSpan
|
|
20091
|
+
);
|
|
20092
|
+
} else {
|
|
20093
|
+
this._reportError(`Value of the host property binding "${propName}" needs to be a string representing an expression but got "${expression}" (${typeof expression})`, sourceSpan);
|
|
20107
20094
|
}
|
|
20108
20095
|
}
|
|
20096
|
+
return boundProps;
|
|
20109
20097
|
}
|
|
20110
|
-
|
|
20111
|
-
|
|
20112
|
-
|
|
20113
|
-
|
|
20098
|
+
createDirectiveHostEventAsts(hostListeners, sourceSpan) {
|
|
20099
|
+
const targetEvents = [];
|
|
20100
|
+
for (const propName of Object.keys(hostListeners)) {
|
|
20101
|
+
const expression = hostListeners[propName];
|
|
20102
|
+
if (typeof expression === "string") {
|
|
20103
|
+
this.parseEvent(propName, expression, false, sourceSpan, sourceSpan, [], targetEvents, sourceSpan);
|
|
20104
|
+
} else {
|
|
20105
|
+
this._reportError(`Value of the host listener "${propName}" needs to be a string representing an expression but got "${expression}" (${typeof expression})`, sourceSpan);
|
|
20106
|
+
}
|
|
20114
20107
|
}
|
|
20108
|
+
return targetEvents;
|
|
20115
20109
|
}
|
|
20116
|
-
|
|
20117
|
-
|
|
20118
|
-
|
|
20119
|
-
|
|
20120
|
-
|
|
20121
|
-
|
|
20122
|
-
|
|
20123
|
-
|
|
20124
|
-
|
|
20125
|
-
|
|
20126
|
-
|
|
20127
|
-
}
|
|
20128
|
-
_buildMapBasedInstruction(valueConverter, isClassBased, stylingInput) {
|
|
20129
|
-
let totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED;
|
|
20130
|
-
const mapValue = stylingInput.value.visit(valueConverter);
|
|
20131
|
-
let reference2;
|
|
20132
|
-
if (mapValue instanceof Interpolation) {
|
|
20133
|
-
totalBindingSlotsRequired += mapValue.expressions.length;
|
|
20134
|
-
reference2 = isClassBased ? getClassMapInterpolationExpression(mapValue) : getStyleMapInterpolationExpression(mapValue);
|
|
20135
|
-
} else {
|
|
20136
|
-
reference2 = isClassBased ? Identifiers.classMap : Identifiers.styleMap;
|
|
20137
|
-
}
|
|
20138
|
-
return {
|
|
20139
|
-
reference: reference2,
|
|
20140
|
-
calls: [{
|
|
20141
|
-
supportsInterpolation: true,
|
|
20142
|
-
sourceSpan: stylingInput.sourceSpan,
|
|
20143
|
-
allocateBindingSlots: totalBindingSlotsRequired,
|
|
20144
|
-
params: (convertFn) => {
|
|
20145
|
-
const convertResult = convertFn(mapValue);
|
|
20146
|
-
const params = Array.isArray(convertResult) ? convertResult : [convertResult];
|
|
20147
|
-
return params;
|
|
20148
|
-
}
|
|
20149
|
-
}]
|
|
20150
|
-
};
|
|
20151
|
-
}
|
|
20152
|
-
_buildSingleInputs(reference2, inputs, valueConverter, getInterpolationExpressionFn, isClassBased) {
|
|
20153
|
-
const instructions = [];
|
|
20154
|
-
inputs.forEach((input) => {
|
|
20155
|
-
const previousInstruction = instructions[instructions.length - 1];
|
|
20156
|
-
const value = input.value.visit(valueConverter);
|
|
20157
|
-
let referenceForCall = reference2;
|
|
20158
|
-
let totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED;
|
|
20159
|
-
if (value instanceof Interpolation) {
|
|
20160
|
-
totalBindingSlotsRequired += value.expressions.length;
|
|
20161
|
-
if (getInterpolationExpressionFn) {
|
|
20162
|
-
referenceForCall = getInterpolationExpressionFn(value);
|
|
20163
|
-
}
|
|
20164
|
-
}
|
|
20165
|
-
const call2 = {
|
|
20166
|
-
sourceSpan: input.sourceSpan,
|
|
20167
|
-
allocateBindingSlots: totalBindingSlotsRequired,
|
|
20168
|
-
supportsInterpolation: !!getInterpolationExpressionFn,
|
|
20169
|
-
params: (convertFn) => {
|
|
20170
|
-
const params = [];
|
|
20171
|
-
params.push(literal(input.name));
|
|
20172
|
-
const convertResult = convertFn(value);
|
|
20173
|
-
if (Array.isArray(convertResult)) {
|
|
20174
|
-
params.push(...convertResult);
|
|
20175
|
-
} else {
|
|
20176
|
-
params.push(convertResult);
|
|
20177
|
-
}
|
|
20178
|
-
if (!isClassBased && input.suffix !== null) {
|
|
20179
|
-
params.push(literal(input.suffix));
|
|
20180
|
-
}
|
|
20181
|
-
return params;
|
|
20182
|
-
}
|
|
20183
|
-
};
|
|
20184
|
-
if (previousInstruction && previousInstruction.reference === referenceForCall) {
|
|
20185
|
-
previousInstruction.calls.push(call2);
|
|
20186
|
-
} else {
|
|
20187
|
-
instructions.push({ reference: referenceForCall, calls: [call2] });
|
|
20188
|
-
}
|
|
20189
|
-
});
|
|
20190
|
-
return instructions;
|
|
20191
|
-
}
|
|
20192
|
-
_buildClassInputs(valueConverter) {
|
|
20193
|
-
if (this._singleClassInputs) {
|
|
20194
|
-
return this._buildSingleInputs(Identifiers.classProp, this._singleClassInputs, valueConverter, null, true);
|
|
20195
|
-
}
|
|
20196
|
-
return [];
|
|
20197
|
-
}
|
|
20198
|
-
_buildStyleInputs(valueConverter) {
|
|
20199
|
-
if (this._singleStyleInputs) {
|
|
20200
|
-
return this._buildSingleInputs(Identifiers.styleProp, this._singleStyleInputs, valueConverter, getStylePropInterpolationExpression, false);
|
|
20201
|
-
}
|
|
20202
|
-
return [];
|
|
20203
|
-
}
|
|
20204
|
-
buildUpdateLevelInstructions(valueConverter) {
|
|
20205
|
-
const instructions = [];
|
|
20206
|
-
if (this.hasBindings) {
|
|
20207
|
-
const styleMapInstruction = this.buildStyleMapInstruction(valueConverter);
|
|
20208
|
-
if (styleMapInstruction) {
|
|
20209
|
-
instructions.push(styleMapInstruction);
|
|
20210
|
-
}
|
|
20211
|
-
const classMapInstruction = this.buildClassMapInstruction(valueConverter);
|
|
20212
|
-
if (classMapInstruction) {
|
|
20213
|
-
instructions.push(classMapInstruction);
|
|
20214
|
-
}
|
|
20215
|
-
instructions.push(...this._buildStyleInputs(valueConverter));
|
|
20216
|
-
instructions.push(...this._buildClassInputs(valueConverter));
|
|
20217
|
-
}
|
|
20218
|
-
return instructions;
|
|
20219
|
-
}
|
|
20220
|
-
};
|
|
20221
|
-
function registerIntoMap(map, key) {
|
|
20222
|
-
if (!map.has(key)) {
|
|
20223
|
-
map.set(key, map.size);
|
|
20224
|
-
}
|
|
20225
|
-
}
|
|
20226
|
-
function parseProperty2(name) {
|
|
20227
|
-
let hasOverrideFlag = false;
|
|
20228
|
-
const overrideIndex = name.indexOf(IMPORTANT_FLAG);
|
|
20229
|
-
if (overrideIndex !== -1) {
|
|
20230
|
-
name = overrideIndex > 0 ? name.substring(0, overrideIndex) : "";
|
|
20231
|
-
hasOverrideFlag = true;
|
|
20232
|
-
}
|
|
20233
|
-
let suffix = null;
|
|
20234
|
-
let property2 = name;
|
|
20235
|
-
const unitIndex = name.lastIndexOf(".");
|
|
20236
|
-
if (unitIndex > 0) {
|
|
20237
|
-
suffix = name.slice(unitIndex + 1);
|
|
20238
|
-
property2 = name.substring(0, unitIndex);
|
|
20239
|
-
}
|
|
20240
|
-
return { property: property2, suffix, hasOverrideFlag };
|
|
20241
|
-
}
|
|
20242
|
-
function getClassMapInterpolationExpression(interpolation) {
|
|
20243
|
-
switch (getInterpolationArgsLength(interpolation)) {
|
|
20244
|
-
case 1:
|
|
20245
|
-
return Identifiers.classMap;
|
|
20246
|
-
case 3:
|
|
20247
|
-
return Identifiers.classMapInterpolate1;
|
|
20248
|
-
case 5:
|
|
20249
|
-
return Identifiers.classMapInterpolate2;
|
|
20250
|
-
case 7:
|
|
20251
|
-
return Identifiers.classMapInterpolate3;
|
|
20252
|
-
case 9:
|
|
20253
|
-
return Identifiers.classMapInterpolate4;
|
|
20254
|
-
case 11:
|
|
20255
|
-
return Identifiers.classMapInterpolate5;
|
|
20256
|
-
case 13:
|
|
20257
|
-
return Identifiers.classMapInterpolate6;
|
|
20258
|
-
case 15:
|
|
20259
|
-
return Identifiers.classMapInterpolate7;
|
|
20260
|
-
case 17:
|
|
20261
|
-
return Identifiers.classMapInterpolate8;
|
|
20262
|
-
default:
|
|
20263
|
-
return Identifiers.classMapInterpolateV;
|
|
20264
|
-
}
|
|
20265
|
-
}
|
|
20266
|
-
function getStyleMapInterpolationExpression(interpolation) {
|
|
20267
|
-
switch (getInterpolationArgsLength(interpolation)) {
|
|
20268
|
-
case 1:
|
|
20269
|
-
return Identifiers.styleMap;
|
|
20270
|
-
case 3:
|
|
20271
|
-
return Identifiers.styleMapInterpolate1;
|
|
20272
|
-
case 5:
|
|
20273
|
-
return Identifiers.styleMapInterpolate2;
|
|
20274
|
-
case 7:
|
|
20275
|
-
return Identifiers.styleMapInterpolate3;
|
|
20276
|
-
case 9:
|
|
20277
|
-
return Identifiers.styleMapInterpolate4;
|
|
20278
|
-
case 11:
|
|
20279
|
-
return Identifiers.styleMapInterpolate5;
|
|
20280
|
-
case 13:
|
|
20281
|
-
return Identifiers.styleMapInterpolate6;
|
|
20282
|
-
case 15:
|
|
20283
|
-
return Identifiers.styleMapInterpolate7;
|
|
20284
|
-
case 17:
|
|
20285
|
-
return Identifiers.styleMapInterpolate8;
|
|
20286
|
-
default:
|
|
20287
|
-
return Identifiers.styleMapInterpolateV;
|
|
20288
|
-
}
|
|
20289
|
-
}
|
|
20290
|
-
function getStylePropInterpolationExpression(interpolation) {
|
|
20291
|
-
switch (getInterpolationArgsLength(interpolation)) {
|
|
20292
|
-
case 1:
|
|
20293
|
-
return Identifiers.styleProp;
|
|
20294
|
-
case 3:
|
|
20295
|
-
return Identifiers.stylePropInterpolate1;
|
|
20296
|
-
case 5:
|
|
20297
|
-
return Identifiers.stylePropInterpolate2;
|
|
20298
|
-
case 7:
|
|
20299
|
-
return Identifiers.stylePropInterpolate3;
|
|
20300
|
-
case 9:
|
|
20301
|
-
return Identifiers.stylePropInterpolate4;
|
|
20302
|
-
case 11:
|
|
20303
|
-
return Identifiers.stylePropInterpolate5;
|
|
20304
|
-
case 13:
|
|
20305
|
-
return Identifiers.stylePropInterpolate6;
|
|
20306
|
-
case 15:
|
|
20307
|
-
return Identifiers.stylePropInterpolate7;
|
|
20308
|
-
case 17:
|
|
20309
|
-
return Identifiers.stylePropInterpolate8;
|
|
20310
|
-
default:
|
|
20311
|
-
return Identifiers.stylePropInterpolateV;
|
|
20312
|
-
}
|
|
20313
|
-
}
|
|
20314
|
-
function isCssCustomProperty2(name) {
|
|
20315
|
-
return name.startsWith("--");
|
|
20316
|
-
}
|
|
20317
|
-
function isEmptyExpression(ast) {
|
|
20318
|
-
if (ast instanceof ASTWithSource) {
|
|
20319
|
-
ast = ast.ast;
|
|
20320
|
-
}
|
|
20321
|
-
return ast instanceof EmptyExpr;
|
|
20322
|
-
}
|
|
20323
|
-
|
|
20324
|
-
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
20325
|
-
var HtmlParser = class extends Parser2 {
|
|
20326
|
-
constructor() {
|
|
20327
|
-
super(getHtmlTagDefinition);
|
|
20328
|
-
}
|
|
20329
|
-
parse(source, url, options) {
|
|
20330
|
-
return super.parse(source, url, options);
|
|
20331
|
-
}
|
|
20332
|
-
};
|
|
20333
|
-
|
|
20334
|
-
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
20335
|
-
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
20336
|
-
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
20337
|
-
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
20338
|
-
var NO_WS_REGEXP = new RegExp(`[^${WS_CHARS}]`);
|
|
20339
|
-
var WS_REPLACE_REGEXP = new RegExp(`[${WS_CHARS}]{2,}`, "g");
|
|
20340
|
-
function hasPreserveWhitespacesAttr(attrs) {
|
|
20341
|
-
return attrs.some((attr) => attr.name === PRESERVE_WS_ATTR_NAME);
|
|
20342
|
-
}
|
|
20343
|
-
function replaceNgsp(value) {
|
|
20344
|
-
return value.replace(new RegExp(NGSP_UNICODE, "g"), " ");
|
|
20345
|
-
}
|
|
20346
|
-
var WhitespaceVisitor = class {
|
|
20347
|
-
visitElement(element2, context) {
|
|
20348
|
-
if (SKIP_WS_TRIM_TAGS.has(element2.name) || hasPreserveWhitespacesAttr(element2.attrs)) {
|
|
20349
|
-
return new Element2(element2.name, visitAll2(this, element2.attrs), element2.children, element2.sourceSpan, element2.startSourceSpan, element2.endSourceSpan, element2.i18n);
|
|
20350
|
-
}
|
|
20351
|
-
return new Element2(element2.name, element2.attrs, visitAllWithSiblings(this, element2.children), element2.sourceSpan, element2.startSourceSpan, element2.endSourceSpan, element2.i18n);
|
|
20352
|
-
}
|
|
20353
|
-
visitAttribute(attribute2, context) {
|
|
20354
|
-
return attribute2.name !== PRESERVE_WS_ATTR_NAME ? attribute2 : null;
|
|
20355
|
-
}
|
|
20356
|
-
visitText(text2, context) {
|
|
20357
|
-
const isNotBlank = text2.value.match(NO_WS_REGEXP);
|
|
20358
|
-
const hasExpansionSibling = context && (context.prev instanceof Expansion || context.next instanceof Expansion);
|
|
20359
|
-
if (isNotBlank || hasExpansionSibling) {
|
|
20360
|
-
const tokens = text2.tokens.map((token) => token.type === 5 ? createWhitespaceProcessedTextToken(token) : token);
|
|
20361
|
-
const value = processWhitespace(text2.value);
|
|
20362
|
-
return new Text4(value, text2.sourceSpan, tokens, text2.i18n);
|
|
20363
|
-
}
|
|
20364
|
-
return null;
|
|
20365
|
-
}
|
|
20366
|
-
visitComment(comment, context) {
|
|
20367
|
-
return comment;
|
|
20368
|
-
}
|
|
20369
|
-
visitExpansion(expansion, context) {
|
|
20370
|
-
return expansion;
|
|
20371
|
-
}
|
|
20372
|
-
visitExpansionCase(expansionCase, context) {
|
|
20373
|
-
return expansionCase;
|
|
20374
|
-
}
|
|
20375
|
-
visitBlock(block, context) {
|
|
20376
|
-
return new Block(block.name, block.parameters, visitAllWithSiblings(this, block.children), block.sourceSpan, block.nameSpan, block.startSourceSpan, block.endSourceSpan);
|
|
20377
|
-
}
|
|
20378
|
-
visitBlockParameter(parameter, context) {
|
|
20379
|
-
return parameter;
|
|
20380
|
-
}
|
|
20381
|
-
};
|
|
20382
|
-
function createWhitespaceProcessedTextToken({ type, parts, sourceSpan }) {
|
|
20383
|
-
return { type, parts: [processWhitespace(parts[0])], sourceSpan };
|
|
20384
|
-
}
|
|
20385
|
-
function processWhitespace(text2) {
|
|
20386
|
-
return replaceNgsp(text2).replace(WS_REPLACE_REGEXP, " ");
|
|
20387
|
-
}
|
|
20388
|
-
function visitAllWithSiblings(visitor, nodes) {
|
|
20389
|
-
const result = [];
|
|
20390
|
-
nodes.forEach((ast, i) => {
|
|
20391
|
-
const context = { prev: nodes[i - 1], next: nodes[i + 1] };
|
|
20392
|
-
const astResult = ast.visit(visitor, context);
|
|
20393
|
-
if (astResult) {
|
|
20394
|
-
result.push(astResult);
|
|
20395
|
-
}
|
|
20396
|
-
});
|
|
20397
|
-
return result;
|
|
20398
|
-
}
|
|
20399
|
-
|
|
20400
|
-
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
20401
|
-
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
20402
|
-
var ATTRIBUTE_PREFIX = "attr";
|
|
20403
|
-
var CLASS_PREFIX = "class";
|
|
20404
|
-
var STYLE_PREFIX = "style";
|
|
20405
|
-
var TEMPLATE_ATTR_PREFIX = "*";
|
|
20406
|
-
var ANIMATE_PROP_PREFIX = "animate-";
|
|
20407
|
-
var BindingParser = class {
|
|
20408
|
-
constructor(_exprParser, _interpolationConfig, _schemaRegistry, errors) {
|
|
20409
|
-
this._exprParser = _exprParser;
|
|
20410
|
-
this._interpolationConfig = _interpolationConfig;
|
|
20411
|
-
this._schemaRegistry = _schemaRegistry;
|
|
20412
|
-
this.errors = errors;
|
|
20413
|
-
}
|
|
20414
|
-
get interpolationConfig() {
|
|
20415
|
-
return this._interpolationConfig;
|
|
20416
|
-
}
|
|
20417
|
-
createBoundHostProperties(properties, sourceSpan) {
|
|
20418
|
-
const boundProps = [];
|
|
20419
|
-
for (const propName of Object.keys(properties)) {
|
|
20420
|
-
const expression = properties[propName];
|
|
20421
|
-
if (typeof expression === "string") {
|
|
20422
|
-
this.parsePropertyBinding(
|
|
20423
|
-
propName,
|
|
20424
|
-
expression,
|
|
20425
|
-
true,
|
|
20426
|
-
sourceSpan,
|
|
20427
|
-
sourceSpan.start.offset,
|
|
20428
|
-
void 0,
|
|
20429
|
-
[],
|
|
20430
|
-
boundProps,
|
|
20431
|
-
sourceSpan
|
|
20432
|
-
);
|
|
20433
|
-
} else {
|
|
20434
|
-
this._reportError(`Value of the host property binding "${propName}" needs to be a string representing an expression but got "${expression}" (${typeof expression})`, sourceSpan);
|
|
20435
|
-
}
|
|
20436
|
-
}
|
|
20437
|
-
return boundProps;
|
|
20438
|
-
}
|
|
20439
|
-
createDirectiveHostEventAsts(hostListeners, sourceSpan) {
|
|
20440
|
-
const targetEvents = [];
|
|
20441
|
-
for (const propName of Object.keys(hostListeners)) {
|
|
20442
|
-
const expression = hostListeners[propName];
|
|
20443
|
-
if (typeof expression === "string") {
|
|
20444
|
-
this.parseEvent(propName, expression, false, sourceSpan, sourceSpan, [], targetEvents, sourceSpan);
|
|
20445
|
-
} else {
|
|
20446
|
-
this._reportError(`Value of the host listener "${propName}" needs to be a string representing an expression but got "${expression}" (${typeof expression})`, sourceSpan);
|
|
20447
|
-
}
|
|
20448
|
-
}
|
|
20449
|
-
return targetEvents;
|
|
20450
|
-
}
|
|
20451
|
-
parseInterpolation(value, sourceSpan, interpolatedTokens) {
|
|
20452
|
-
const sourceInfo = sourceSpan.start.toString();
|
|
20453
|
-
const absoluteOffset = sourceSpan.fullStart.offset;
|
|
20454
|
-
try {
|
|
20455
|
-
const ast = this._exprParser.parseInterpolation(value, sourceInfo, absoluteOffset, interpolatedTokens, this._interpolationConfig);
|
|
20456
|
-
if (ast)
|
|
20457
|
-
this._reportExpressionParserErrors(ast.errors, sourceSpan);
|
|
20458
|
-
return ast;
|
|
20459
|
-
} catch (e) {
|
|
20460
|
-
this._reportError(`${e}`, sourceSpan);
|
|
20461
|
-
return this._exprParser.wrapLiteralPrimitive("ERROR", sourceInfo, absoluteOffset);
|
|
20110
|
+
parseInterpolation(value, sourceSpan, interpolatedTokens) {
|
|
20111
|
+
const sourceInfo = sourceSpan.start.toString();
|
|
20112
|
+
const absoluteOffset = sourceSpan.fullStart.offset;
|
|
20113
|
+
try {
|
|
20114
|
+
const ast = this._exprParser.parseInterpolation(value, sourceInfo, absoluteOffset, interpolatedTokens, this._interpolationConfig);
|
|
20115
|
+
if (ast)
|
|
20116
|
+
this._reportExpressionParserErrors(ast.errors, sourceSpan);
|
|
20117
|
+
return ast;
|
|
20118
|
+
} catch (e) {
|
|
20119
|
+
this._reportError(`${e}`, sourceSpan);
|
|
20120
|
+
return this._exprParser.wrapLiteralPrimitive("ERROR", sourceInfo, absoluteOffset);
|
|
20462
20121
|
}
|
|
20463
20122
|
}
|
|
20464
20123
|
parseInterpolationExpression(expression, sourceSpan) {
|
|
@@ -20717,7 +20376,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
20717
20376
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
20718
20377
|
}
|
|
20719
20378
|
|
|
20720
|
-
// bazel-out/
|
|
20379
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
20721
20380
|
function isStyleUrlResolvable(url) {
|
|
20722
20381
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
20723
20382
|
return false;
|
|
@@ -20726,7 +20385,7 @@ function isStyleUrlResolvable(url) {
|
|
|
20726
20385
|
}
|
|
20727
20386
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
20728
20387
|
|
|
20729
|
-
// bazel-out/
|
|
20388
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
20730
20389
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
20731
20390
|
var LINK_ELEMENT = "link";
|
|
20732
20391
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -20796,7 +20455,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
20796
20455
|
return selectAttr;
|
|
20797
20456
|
}
|
|
20798
20457
|
|
|
20799
|
-
// bazel-out/
|
|
20458
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
|
|
20800
20459
|
var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
|
|
20801
20460
|
var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
|
|
20802
20461
|
var CONDITIONAL_ALIAS_PATTERN = /^as\s+(.*)/;
|
|
@@ -21087,7 +20746,7 @@ function stripOptionalParentheses(param, errors) {
|
|
|
21087
20746
|
return expression.slice(start, end);
|
|
21088
20747
|
}
|
|
21089
20748
|
|
|
21090
|
-
// bazel-out/
|
|
20749
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
|
|
21091
20750
|
var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
|
|
21092
20751
|
var SEPARATOR_PATTERN = /^\s$/;
|
|
21093
20752
|
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
@@ -21351,7 +21010,7 @@ function parseDeferredTime(value) {
|
|
|
21351
21010
|
return parseFloat(time) * (units === "s" ? 1e3 : 1);
|
|
21352
21011
|
}
|
|
21353
21012
|
|
|
21354
|
-
// bazel-out/
|
|
21013
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
|
|
21355
21014
|
var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
|
|
21356
21015
|
var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
|
|
21357
21016
|
var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
|
|
@@ -21486,7 +21145,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
|
|
|
21486
21145
|
return { triggers, prefetchTriggers };
|
|
21487
21146
|
}
|
|
21488
21147
|
|
|
21489
|
-
// bazel-out/
|
|
21148
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
21490
21149
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
21491
21150
|
var KW_BIND_IDX = 1;
|
|
21492
21151
|
var KW_LET_IDX = 2;
|
|
@@ -21917,7 +21576,7 @@ function textContents(node) {
|
|
|
21917
21576
|
}
|
|
21918
21577
|
}
|
|
21919
21578
|
|
|
21920
|
-
// bazel-out/
|
|
21579
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
21921
21580
|
var TagType;
|
|
21922
21581
|
(function(TagType2) {
|
|
21923
21582
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -22028,41 +21687,374 @@ var I18nContext = class {
|
|
|
22028
21687
|
} else {
|
|
22029
21688
|
phs.push(...values);
|
|
22030
21689
|
}
|
|
22031
|
-
this.placeholders.set(key, phs);
|
|
22032
|
-
});
|
|
22033
|
-
this._unresolvedCtxCount--;
|
|
21690
|
+
this.placeholders.set(key, phs);
|
|
21691
|
+
});
|
|
21692
|
+
this._unresolvedCtxCount--;
|
|
21693
|
+
}
|
|
21694
|
+
};
|
|
21695
|
+
function wrap(symbol, index, contextId, closed) {
|
|
21696
|
+
const state = closed ? "/" : "";
|
|
21697
|
+
return wrapI18nPlaceholder(`${state}${symbol}${index}`, contextId);
|
|
21698
|
+
}
|
|
21699
|
+
function wrapTag(symbol, { index, ctx, isVoid }, closed) {
|
|
21700
|
+
return isVoid ? wrap(symbol, index, ctx) + wrap(symbol, index, ctx, true) : wrap(symbol, index, ctx, closed);
|
|
21701
|
+
}
|
|
21702
|
+
function findTemplateFn(ctx, templateIndex) {
|
|
21703
|
+
return (token) => typeof token === "object" && token.type === TagType.TEMPLATE && token.index === templateIndex && token.ctx === ctx;
|
|
21704
|
+
}
|
|
21705
|
+
function serializePlaceholderValue(value) {
|
|
21706
|
+
const element2 = (data, closed) => wrapTag("#", data, closed);
|
|
21707
|
+
const template2 = (data, closed) => wrapTag("*", data, closed);
|
|
21708
|
+
switch (value.type) {
|
|
21709
|
+
case TagType.ELEMENT:
|
|
21710
|
+
if (value.closed) {
|
|
21711
|
+
return element2(value, true) + (value.tmpl ? template2(value.tmpl, true) : "");
|
|
21712
|
+
}
|
|
21713
|
+
if (value.tmpl) {
|
|
21714
|
+
return template2(value.tmpl) + element2(value) + (value.isVoid ? template2(value.tmpl, true) : "");
|
|
21715
|
+
}
|
|
21716
|
+
return element2(value);
|
|
21717
|
+
case TagType.TEMPLATE:
|
|
21718
|
+
return template2(value, value.closed);
|
|
21719
|
+
default:
|
|
21720
|
+
return value;
|
|
21721
|
+
}
|
|
21722
|
+
}
|
|
21723
|
+
|
|
21724
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
21725
|
+
var IMPORTANT_FLAG = "!important";
|
|
21726
|
+
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
21727
|
+
var StylingBuilder = class {
|
|
21728
|
+
constructor(_directiveExpr) {
|
|
21729
|
+
this._directiveExpr = _directiveExpr;
|
|
21730
|
+
this._hasInitialValues = false;
|
|
21731
|
+
this.hasBindings = false;
|
|
21732
|
+
this.hasBindingsWithPipes = false;
|
|
21733
|
+
this._classMapInput = null;
|
|
21734
|
+
this._styleMapInput = null;
|
|
21735
|
+
this._singleStyleInputs = null;
|
|
21736
|
+
this._singleClassInputs = null;
|
|
21737
|
+
this._lastStylingInput = null;
|
|
21738
|
+
this._firstStylingInput = null;
|
|
21739
|
+
this._stylesIndex = /* @__PURE__ */ new Map();
|
|
21740
|
+
this._classesIndex = /* @__PURE__ */ new Map();
|
|
21741
|
+
this._initialStyleValues = [];
|
|
21742
|
+
this._initialClassValues = [];
|
|
21743
|
+
}
|
|
21744
|
+
registerBoundInput(input) {
|
|
21745
|
+
let binding = null;
|
|
21746
|
+
let name = input.name;
|
|
21747
|
+
switch (input.type) {
|
|
21748
|
+
case 0:
|
|
21749
|
+
binding = this.registerInputBasedOnName(name, input.value, input.sourceSpan);
|
|
21750
|
+
break;
|
|
21751
|
+
case 3:
|
|
21752
|
+
binding = this.registerStyleInput(name, false, input.value, input.sourceSpan, input.unit);
|
|
21753
|
+
break;
|
|
21754
|
+
case 2:
|
|
21755
|
+
binding = this.registerClassInput(name, false, input.value, input.sourceSpan);
|
|
21756
|
+
break;
|
|
21757
|
+
}
|
|
21758
|
+
return binding ? true : false;
|
|
21759
|
+
}
|
|
21760
|
+
registerInputBasedOnName(name, expression, sourceSpan) {
|
|
21761
|
+
let binding = null;
|
|
21762
|
+
const prefix = name.substring(0, 6);
|
|
21763
|
+
const isStyle = name === "style" || prefix === "style." || prefix === "style!";
|
|
21764
|
+
const isClass = !isStyle && (name === "class" || prefix === "class." || prefix === "class!");
|
|
21765
|
+
if (isStyle || isClass) {
|
|
21766
|
+
const isMapBased = name.charAt(5) !== ".";
|
|
21767
|
+
const property2 = name.slice(isMapBased ? 5 : 6);
|
|
21768
|
+
if (isStyle) {
|
|
21769
|
+
binding = this.registerStyleInput(property2, isMapBased, expression, sourceSpan);
|
|
21770
|
+
} else {
|
|
21771
|
+
binding = this.registerClassInput(property2, isMapBased, expression, sourceSpan);
|
|
21772
|
+
}
|
|
21773
|
+
}
|
|
21774
|
+
return binding;
|
|
21775
|
+
}
|
|
21776
|
+
registerStyleInput(name, isMapBased, value, sourceSpan, suffix) {
|
|
21777
|
+
if (isEmptyExpression(value)) {
|
|
21778
|
+
return null;
|
|
21779
|
+
}
|
|
21780
|
+
if (!isCssCustomProperty2(name)) {
|
|
21781
|
+
name = hyphenate2(name);
|
|
21782
|
+
}
|
|
21783
|
+
const { property: property2, hasOverrideFlag, suffix: bindingSuffix } = parseProperty2(name);
|
|
21784
|
+
suffix = typeof suffix === "string" && suffix.length !== 0 ? suffix : bindingSuffix;
|
|
21785
|
+
const entry = { name: property2, suffix, value, sourceSpan, hasOverrideFlag };
|
|
21786
|
+
if (isMapBased) {
|
|
21787
|
+
this._styleMapInput = entry;
|
|
21788
|
+
} else {
|
|
21789
|
+
(this._singleStyleInputs = this._singleStyleInputs || []).push(entry);
|
|
21790
|
+
registerIntoMap(this._stylesIndex, property2);
|
|
21791
|
+
}
|
|
21792
|
+
this._lastStylingInput = entry;
|
|
21793
|
+
this._firstStylingInput = this._firstStylingInput || entry;
|
|
21794
|
+
this._checkForPipes(value);
|
|
21795
|
+
this.hasBindings = true;
|
|
21796
|
+
return entry;
|
|
21797
|
+
}
|
|
21798
|
+
registerClassInput(name, isMapBased, value, sourceSpan) {
|
|
21799
|
+
if (isEmptyExpression(value)) {
|
|
21800
|
+
return null;
|
|
21801
|
+
}
|
|
21802
|
+
const { property: property2, hasOverrideFlag } = parseProperty2(name);
|
|
21803
|
+
const entry = { name: property2, value, sourceSpan, hasOverrideFlag, suffix: null };
|
|
21804
|
+
if (isMapBased) {
|
|
21805
|
+
this._classMapInput = entry;
|
|
21806
|
+
} else {
|
|
21807
|
+
(this._singleClassInputs = this._singleClassInputs || []).push(entry);
|
|
21808
|
+
registerIntoMap(this._classesIndex, property2);
|
|
21809
|
+
}
|
|
21810
|
+
this._lastStylingInput = entry;
|
|
21811
|
+
this._firstStylingInput = this._firstStylingInput || entry;
|
|
21812
|
+
this._checkForPipes(value);
|
|
21813
|
+
this.hasBindings = true;
|
|
21814
|
+
return entry;
|
|
21815
|
+
}
|
|
21816
|
+
_checkForPipes(value) {
|
|
21817
|
+
if (value instanceof ASTWithSource && value.ast instanceof BindingPipe) {
|
|
21818
|
+
this.hasBindingsWithPipes = true;
|
|
21819
|
+
}
|
|
21820
|
+
}
|
|
21821
|
+
registerStyleAttr(value) {
|
|
21822
|
+
this._initialStyleValues = parse(value);
|
|
21823
|
+
this._hasInitialValues = true;
|
|
21824
|
+
}
|
|
21825
|
+
registerClassAttr(value) {
|
|
21826
|
+
this._initialClassValues = value.trim().split(/\s+/g);
|
|
21827
|
+
this._hasInitialValues = true;
|
|
21828
|
+
}
|
|
21829
|
+
populateInitialStylingAttrs(attrs) {
|
|
21830
|
+
if (this._initialClassValues.length) {
|
|
21831
|
+
attrs.push(literal(1));
|
|
21832
|
+
for (let i = 0; i < this._initialClassValues.length; i++) {
|
|
21833
|
+
attrs.push(literal(this._initialClassValues[i]));
|
|
21834
|
+
}
|
|
21835
|
+
}
|
|
21836
|
+
if (this._initialStyleValues.length) {
|
|
21837
|
+
attrs.push(literal(2));
|
|
21838
|
+
for (let i = 0; i < this._initialStyleValues.length; i += 2) {
|
|
21839
|
+
attrs.push(literal(this._initialStyleValues[i]), literal(this._initialStyleValues[i + 1]));
|
|
21840
|
+
}
|
|
21841
|
+
}
|
|
21842
|
+
}
|
|
21843
|
+
assignHostAttrs(attrs, definitionMap) {
|
|
21844
|
+
if (this._directiveExpr && (attrs.length || this._hasInitialValues)) {
|
|
21845
|
+
this.populateInitialStylingAttrs(attrs);
|
|
21846
|
+
definitionMap.set("hostAttrs", literalArr(attrs));
|
|
21847
|
+
}
|
|
21848
|
+
}
|
|
21849
|
+
buildClassMapInstruction(valueConverter) {
|
|
21850
|
+
if (this._classMapInput) {
|
|
21851
|
+
return this._buildMapBasedInstruction(valueConverter, true, this._classMapInput);
|
|
21852
|
+
}
|
|
21853
|
+
return null;
|
|
21854
|
+
}
|
|
21855
|
+
buildStyleMapInstruction(valueConverter) {
|
|
21856
|
+
if (this._styleMapInput) {
|
|
21857
|
+
return this._buildMapBasedInstruction(valueConverter, false, this._styleMapInput);
|
|
21858
|
+
}
|
|
21859
|
+
return null;
|
|
21860
|
+
}
|
|
21861
|
+
_buildMapBasedInstruction(valueConverter, isClassBased, stylingInput) {
|
|
21862
|
+
let totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED;
|
|
21863
|
+
const mapValue = stylingInput.value.visit(valueConverter);
|
|
21864
|
+
let reference2;
|
|
21865
|
+
if (mapValue instanceof Interpolation) {
|
|
21866
|
+
totalBindingSlotsRequired += mapValue.expressions.length;
|
|
21867
|
+
reference2 = isClassBased ? getClassMapInterpolationExpression(mapValue) : getStyleMapInterpolationExpression(mapValue);
|
|
21868
|
+
} else {
|
|
21869
|
+
reference2 = isClassBased ? Identifiers.classMap : Identifiers.styleMap;
|
|
21870
|
+
}
|
|
21871
|
+
return {
|
|
21872
|
+
reference: reference2,
|
|
21873
|
+
calls: [{
|
|
21874
|
+
supportsInterpolation: true,
|
|
21875
|
+
sourceSpan: stylingInput.sourceSpan,
|
|
21876
|
+
allocateBindingSlots: totalBindingSlotsRequired,
|
|
21877
|
+
params: (convertFn) => {
|
|
21878
|
+
const convertResult = convertFn(mapValue);
|
|
21879
|
+
const params = Array.isArray(convertResult) ? convertResult : [convertResult];
|
|
21880
|
+
return params;
|
|
21881
|
+
}
|
|
21882
|
+
}]
|
|
21883
|
+
};
|
|
21884
|
+
}
|
|
21885
|
+
_buildSingleInputs(reference2, inputs, valueConverter, getInterpolationExpressionFn, isClassBased) {
|
|
21886
|
+
const instructions = [];
|
|
21887
|
+
inputs.forEach((input) => {
|
|
21888
|
+
const previousInstruction = instructions[instructions.length - 1];
|
|
21889
|
+
const value = input.value.visit(valueConverter);
|
|
21890
|
+
let referenceForCall = reference2;
|
|
21891
|
+
let totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED;
|
|
21892
|
+
if (value instanceof Interpolation) {
|
|
21893
|
+
totalBindingSlotsRequired += value.expressions.length;
|
|
21894
|
+
if (getInterpolationExpressionFn) {
|
|
21895
|
+
referenceForCall = getInterpolationExpressionFn(value);
|
|
21896
|
+
}
|
|
21897
|
+
}
|
|
21898
|
+
const call2 = {
|
|
21899
|
+
sourceSpan: input.sourceSpan,
|
|
21900
|
+
allocateBindingSlots: totalBindingSlotsRequired,
|
|
21901
|
+
supportsInterpolation: !!getInterpolationExpressionFn,
|
|
21902
|
+
params: (convertFn) => {
|
|
21903
|
+
const params = [];
|
|
21904
|
+
params.push(literal(input.name));
|
|
21905
|
+
const convertResult = convertFn(value);
|
|
21906
|
+
if (Array.isArray(convertResult)) {
|
|
21907
|
+
params.push(...convertResult);
|
|
21908
|
+
} else {
|
|
21909
|
+
params.push(convertResult);
|
|
21910
|
+
}
|
|
21911
|
+
if (!isClassBased && input.suffix !== null) {
|
|
21912
|
+
params.push(literal(input.suffix));
|
|
21913
|
+
}
|
|
21914
|
+
return params;
|
|
21915
|
+
}
|
|
21916
|
+
};
|
|
21917
|
+
if (previousInstruction && previousInstruction.reference === referenceForCall) {
|
|
21918
|
+
previousInstruction.calls.push(call2);
|
|
21919
|
+
} else {
|
|
21920
|
+
instructions.push({ reference: referenceForCall, calls: [call2] });
|
|
21921
|
+
}
|
|
21922
|
+
});
|
|
21923
|
+
return instructions;
|
|
21924
|
+
}
|
|
21925
|
+
_buildClassInputs(valueConverter) {
|
|
21926
|
+
if (this._singleClassInputs) {
|
|
21927
|
+
return this._buildSingleInputs(Identifiers.classProp, this._singleClassInputs, valueConverter, null, true);
|
|
21928
|
+
}
|
|
21929
|
+
return [];
|
|
21930
|
+
}
|
|
21931
|
+
_buildStyleInputs(valueConverter) {
|
|
21932
|
+
if (this._singleStyleInputs) {
|
|
21933
|
+
return this._buildSingleInputs(Identifiers.styleProp, this._singleStyleInputs, valueConverter, getStylePropInterpolationExpression, false);
|
|
21934
|
+
}
|
|
21935
|
+
return [];
|
|
21936
|
+
}
|
|
21937
|
+
buildUpdateLevelInstructions(valueConverter) {
|
|
21938
|
+
const instructions = [];
|
|
21939
|
+
if (this.hasBindings) {
|
|
21940
|
+
const styleMapInstruction = this.buildStyleMapInstruction(valueConverter);
|
|
21941
|
+
if (styleMapInstruction) {
|
|
21942
|
+
instructions.push(styleMapInstruction);
|
|
21943
|
+
}
|
|
21944
|
+
const classMapInstruction = this.buildClassMapInstruction(valueConverter);
|
|
21945
|
+
if (classMapInstruction) {
|
|
21946
|
+
instructions.push(classMapInstruction);
|
|
21947
|
+
}
|
|
21948
|
+
instructions.push(...this._buildStyleInputs(valueConverter));
|
|
21949
|
+
instructions.push(...this._buildClassInputs(valueConverter));
|
|
21950
|
+
}
|
|
21951
|
+
return instructions;
|
|
22034
21952
|
}
|
|
22035
21953
|
};
|
|
22036
|
-
function
|
|
22037
|
-
|
|
22038
|
-
|
|
21954
|
+
function registerIntoMap(map, key) {
|
|
21955
|
+
if (!map.has(key)) {
|
|
21956
|
+
map.set(key, map.size);
|
|
21957
|
+
}
|
|
22039
21958
|
}
|
|
22040
|
-
function
|
|
22041
|
-
|
|
21959
|
+
function parseProperty2(name) {
|
|
21960
|
+
let hasOverrideFlag = false;
|
|
21961
|
+
const overrideIndex = name.indexOf(IMPORTANT_FLAG);
|
|
21962
|
+
if (overrideIndex !== -1) {
|
|
21963
|
+
name = overrideIndex > 0 ? name.substring(0, overrideIndex) : "";
|
|
21964
|
+
hasOverrideFlag = true;
|
|
21965
|
+
}
|
|
21966
|
+
let suffix = null;
|
|
21967
|
+
let property2 = name;
|
|
21968
|
+
const unitIndex = name.lastIndexOf(".");
|
|
21969
|
+
if (unitIndex > 0) {
|
|
21970
|
+
suffix = name.slice(unitIndex + 1);
|
|
21971
|
+
property2 = name.substring(0, unitIndex);
|
|
21972
|
+
}
|
|
21973
|
+
return { property: property2, suffix, hasOverrideFlag };
|
|
22042
21974
|
}
|
|
22043
|
-
function
|
|
22044
|
-
|
|
21975
|
+
function getClassMapInterpolationExpression(interpolation) {
|
|
21976
|
+
switch (getInterpolationArgsLength(interpolation)) {
|
|
21977
|
+
case 1:
|
|
21978
|
+
return Identifiers.classMap;
|
|
21979
|
+
case 3:
|
|
21980
|
+
return Identifiers.classMapInterpolate1;
|
|
21981
|
+
case 5:
|
|
21982
|
+
return Identifiers.classMapInterpolate2;
|
|
21983
|
+
case 7:
|
|
21984
|
+
return Identifiers.classMapInterpolate3;
|
|
21985
|
+
case 9:
|
|
21986
|
+
return Identifiers.classMapInterpolate4;
|
|
21987
|
+
case 11:
|
|
21988
|
+
return Identifiers.classMapInterpolate5;
|
|
21989
|
+
case 13:
|
|
21990
|
+
return Identifiers.classMapInterpolate6;
|
|
21991
|
+
case 15:
|
|
21992
|
+
return Identifiers.classMapInterpolate7;
|
|
21993
|
+
case 17:
|
|
21994
|
+
return Identifiers.classMapInterpolate8;
|
|
21995
|
+
default:
|
|
21996
|
+
return Identifiers.classMapInterpolateV;
|
|
21997
|
+
}
|
|
22045
21998
|
}
|
|
22046
|
-
function
|
|
22047
|
-
|
|
22048
|
-
|
|
22049
|
-
|
|
22050
|
-
case
|
|
22051
|
-
|
|
22052
|
-
|
|
22053
|
-
|
|
22054
|
-
|
|
22055
|
-
|
|
22056
|
-
|
|
22057
|
-
return
|
|
22058
|
-
case
|
|
22059
|
-
return
|
|
21999
|
+
function getStyleMapInterpolationExpression(interpolation) {
|
|
22000
|
+
switch (getInterpolationArgsLength(interpolation)) {
|
|
22001
|
+
case 1:
|
|
22002
|
+
return Identifiers.styleMap;
|
|
22003
|
+
case 3:
|
|
22004
|
+
return Identifiers.styleMapInterpolate1;
|
|
22005
|
+
case 5:
|
|
22006
|
+
return Identifiers.styleMapInterpolate2;
|
|
22007
|
+
case 7:
|
|
22008
|
+
return Identifiers.styleMapInterpolate3;
|
|
22009
|
+
case 9:
|
|
22010
|
+
return Identifiers.styleMapInterpolate4;
|
|
22011
|
+
case 11:
|
|
22012
|
+
return Identifiers.styleMapInterpolate5;
|
|
22013
|
+
case 13:
|
|
22014
|
+
return Identifiers.styleMapInterpolate6;
|
|
22015
|
+
case 15:
|
|
22016
|
+
return Identifiers.styleMapInterpolate7;
|
|
22017
|
+
case 17:
|
|
22018
|
+
return Identifiers.styleMapInterpolate8;
|
|
22060
22019
|
default:
|
|
22061
|
-
return
|
|
22020
|
+
return Identifiers.styleMapInterpolateV;
|
|
22021
|
+
}
|
|
22022
|
+
}
|
|
22023
|
+
function getStylePropInterpolationExpression(interpolation) {
|
|
22024
|
+
switch (getInterpolationArgsLength(interpolation)) {
|
|
22025
|
+
case 1:
|
|
22026
|
+
return Identifiers.styleProp;
|
|
22027
|
+
case 3:
|
|
22028
|
+
return Identifiers.stylePropInterpolate1;
|
|
22029
|
+
case 5:
|
|
22030
|
+
return Identifiers.stylePropInterpolate2;
|
|
22031
|
+
case 7:
|
|
22032
|
+
return Identifiers.stylePropInterpolate3;
|
|
22033
|
+
case 9:
|
|
22034
|
+
return Identifiers.stylePropInterpolate4;
|
|
22035
|
+
case 11:
|
|
22036
|
+
return Identifiers.stylePropInterpolate5;
|
|
22037
|
+
case 13:
|
|
22038
|
+
return Identifiers.stylePropInterpolate6;
|
|
22039
|
+
case 15:
|
|
22040
|
+
return Identifiers.stylePropInterpolate7;
|
|
22041
|
+
case 17:
|
|
22042
|
+
return Identifiers.stylePropInterpolate8;
|
|
22043
|
+
default:
|
|
22044
|
+
return Identifiers.stylePropInterpolateV;
|
|
22045
|
+
}
|
|
22046
|
+
}
|
|
22047
|
+
function isCssCustomProperty2(name) {
|
|
22048
|
+
return name.startsWith("--");
|
|
22049
|
+
}
|
|
22050
|
+
function isEmptyExpression(ast) {
|
|
22051
|
+
if (ast instanceof ASTWithSource) {
|
|
22052
|
+
ast = ast.ast;
|
|
22062
22053
|
}
|
|
22054
|
+
return ast instanceof EmptyExpr;
|
|
22063
22055
|
}
|
|
22064
22056
|
|
|
22065
|
-
// bazel-out/
|
|
22057
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
22066
22058
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
22067
22059
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
22068
22060
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -23749,7 +23741,124 @@ function createClosureModeGuard2() {
|
|
|
23749
23741
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE2)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE2));
|
|
23750
23742
|
}
|
|
23751
23743
|
|
|
23752
|
-
// bazel-out/
|
|
23744
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/query_generation.mjs
|
|
23745
|
+
function toQueryFlags(query) {
|
|
23746
|
+
return (query.descendants ? 1 : 0) | (query.static ? 2 : 0) | (query.emitDistinctChangesOnly ? 4 : 0);
|
|
23747
|
+
}
|
|
23748
|
+
function getQueryPredicate(query, constantPool) {
|
|
23749
|
+
if (Array.isArray(query.predicate)) {
|
|
23750
|
+
let predicate = [];
|
|
23751
|
+
query.predicate.forEach((selector) => {
|
|
23752
|
+
const selectors = selector.split(",").map((token) => literal(token.trim()));
|
|
23753
|
+
predicate.push(...selectors);
|
|
23754
|
+
});
|
|
23755
|
+
return constantPool.getConstLiteral(literalArr(predicate), true);
|
|
23756
|
+
} else {
|
|
23757
|
+
switch (query.predicate.forwardRef) {
|
|
23758
|
+
case 0:
|
|
23759
|
+
case 2:
|
|
23760
|
+
return query.predicate.expression;
|
|
23761
|
+
case 1:
|
|
23762
|
+
return importExpr(Identifiers.resolveForwardRef).callFn([query.predicate.expression]);
|
|
23763
|
+
}
|
|
23764
|
+
}
|
|
23765
|
+
}
|
|
23766
|
+
function createQueryCreateCall(query, constantPool, queryTypeFns, prependParams) {
|
|
23767
|
+
const parameters = [];
|
|
23768
|
+
if (prependParams !== void 0) {
|
|
23769
|
+
parameters.push(...prependParams);
|
|
23770
|
+
}
|
|
23771
|
+
if (query.isSignal) {
|
|
23772
|
+
parameters.push(new ReadPropExpr(variable(CONTEXT_NAME), query.propertyName));
|
|
23773
|
+
}
|
|
23774
|
+
parameters.push(getQueryPredicate(query, constantPool), literal(toQueryFlags(query)));
|
|
23775
|
+
if (query.read) {
|
|
23776
|
+
parameters.push(query.read);
|
|
23777
|
+
}
|
|
23778
|
+
const queryCreateFn = query.isSignal ? queryTypeFns.signalBased : queryTypeFns.nonSignal;
|
|
23779
|
+
return importExpr(queryCreateFn).callFn(parameters);
|
|
23780
|
+
}
|
|
23781
|
+
var queryAdvancePlaceholder = Symbol("queryAdvancePlaceholder");
|
|
23782
|
+
function collapseAdvanceStatements(statements) {
|
|
23783
|
+
const result = [];
|
|
23784
|
+
let advanceCollapseCount = 0;
|
|
23785
|
+
const flushAdvanceCount = () => {
|
|
23786
|
+
if (advanceCollapseCount > 0) {
|
|
23787
|
+
result.unshift(importExpr(Identifiers.queryAdvance).callFn(advanceCollapseCount === 1 ? [] : [literal(advanceCollapseCount)]).toStmt());
|
|
23788
|
+
advanceCollapseCount = 0;
|
|
23789
|
+
}
|
|
23790
|
+
};
|
|
23791
|
+
for (let i = statements.length - 1; i >= 0; i--) {
|
|
23792
|
+
const st = statements[i];
|
|
23793
|
+
if (st === queryAdvancePlaceholder) {
|
|
23794
|
+
advanceCollapseCount++;
|
|
23795
|
+
} else {
|
|
23796
|
+
flushAdvanceCount();
|
|
23797
|
+
result.unshift(st);
|
|
23798
|
+
}
|
|
23799
|
+
}
|
|
23800
|
+
flushAdvanceCount();
|
|
23801
|
+
return result;
|
|
23802
|
+
}
|
|
23803
|
+
function createViewQueriesFunction(viewQueries, constantPool, name) {
|
|
23804
|
+
const createStatements = [];
|
|
23805
|
+
const updateStatements = [];
|
|
23806
|
+
const tempAllocator = temporaryAllocator((st) => updateStatements.push(st), TEMPORARY_NAME);
|
|
23807
|
+
viewQueries.forEach((query) => {
|
|
23808
|
+
const queryDefinitionCall = createQueryCreateCall(query, constantPool, {
|
|
23809
|
+
signalBased: Identifiers.viewQuerySignal,
|
|
23810
|
+
nonSignal: Identifiers.viewQuery
|
|
23811
|
+
});
|
|
23812
|
+
createStatements.push(queryDefinitionCall.toStmt());
|
|
23813
|
+
if (query.isSignal) {
|
|
23814
|
+
updateStatements.push(queryAdvancePlaceholder);
|
|
23815
|
+
return;
|
|
23816
|
+
}
|
|
23817
|
+
const temporary = tempAllocator();
|
|
23818
|
+
const getQueryList = importExpr(Identifiers.loadQuery).callFn([]);
|
|
23819
|
+
const refresh = importExpr(Identifiers.queryRefresh).callFn([temporary.set(getQueryList)]);
|
|
23820
|
+
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
23821
|
+
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
23822
|
+
});
|
|
23823
|
+
const viewQueryFnName = name ? `${name}_Query` : null;
|
|
23824
|
+
return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null)], [
|
|
23825
|
+
renderFlagCheckIfStmt(1, createStatements),
|
|
23826
|
+
renderFlagCheckIfStmt(2, collapseAdvanceStatements(updateStatements))
|
|
23827
|
+
], INFERRED_TYPE, null, viewQueryFnName);
|
|
23828
|
+
}
|
|
23829
|
+
function createContentQueriesFunction(queries, constantPool, name) {
|
|
23830
|
+
const createStatements = [];
|
|
23831
|
+
const updateStatements = [];
|
|
23832
|
+
const tempAllocator = temporaryAllocator((st) => updateStatements.push(st), TEMPORARY_NAME);
|
|
23833
|
+
for (const query of queries) {
|
|
23834
|
+
createStatements.push(createQueryCreateCall(
|
|
23835
|
+
query,
|
|
23836
|
+
constantPool,
|
|
23837
|
+
{ nonSignal: Identifiers.contentQuery, signalBased: Identifiers.contentQuerySignal },
|
|
23838
|
+
[variable("dirIndex")]
|
|
23839
|
+
).toStmt());
|
|
23840
|
+
if (query.isSignal) {
|
|
23841
|
+
updateStatements.push(queryAdvancePlaceholder);
|
|
23842
|
+
continue;
|
|
23843
|
+
}
|
|
23844
|
+
const temporary = tempAllocator();
|
|
23845
|
+
const getQueryList = importExpr(Identifiers.loadQuery).callFn([]);
|
|
23846
|
+
const refresh = importExpr(Identifiers.queryRefresh).callFn([temporary.set(getQueryList)]);
|
|
23847
|
+
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
23848
|
+
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
23849
|
+
}
|
|
23850
|
+
const contentQueriesFnName = name ? `${name}_ContentQueries` : null;
|
|
23851
|
+
return fn([
|
|
23852
|
+
new FnParam(RENDER_FLAGS, NUMBER_TYPE),
|
|
23853
|
+
new FnParam(CONTEXT_NAME, null),
|
|
23854
|
+
new FnParam("dirIndex", null)
|
|
23855
|
+
], [
|
|
23856
|
+
renderFlagCheckIfStmt(1, createStatements),
|
|
23857
|
+
renderFlagCheckIfStmt(2, collapseAdvanceStatements(updateStatements))
|
|
23858
|
+
], INFERRED_TYPE, null, contentQueriesFnName);
|
|
23859
|
+
}
|
|
23860
|
+
|
|
23861
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
23753
23862
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
23754
23863
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
23755
23864
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -23964,16 +24073,6 @@ function compileDeclarationList(list, mode) {
|
|
|
23964
24073
|
throw new Error(`Unsupported with an array of pre-resolved dependencies`);
|
|
23965
24074
|
}
|
|
23966
24075
|
}
|
|
23967
|
-
function prepareQueryParams(query, constantPool) {
|
|
23968
|
-
const parameters = [getQueryPredicate(query, constantPool), literal(toQueryFlags(query))];
|
|
23969
|
-
if (query.read) {
|
|
23970
|
-
parameters.push(query.read);
|
|
23971
|
-
}
|
|
23972
|
-
return parameters;
|
|
23973
|
-
}
|
|
23974
|
-
function toQueryFlags(query) {
|
|
23975
|
-
return (query.descendants ? 1 : 0) | (query.static ? 2 : 0) | (query.emitDistinctChangesOnly ? 4 : 0);
|
|
23976
|
-
}
|
|
23977
24076
|
function convertAttributesToExpressions(attributes) {
|
|
23978
24077
|
const values = [];
|
|
23979
24078
|
for (let key of Object.getOwnPropertyNames(attributes)) {
|
|
@@ -23982,28 +24081,6 @@ function convertAttributesToExpressions(attributes) {
|
|
|
23982
24081
|
}
|
|
23983
24082
|
return values;
|
|
23984
24083
|
}
|
|
23985
|
-
function createContentQueriesFunction(queries, constantPool, name) {
|
|
23986
|
-
const createStatements = [];
|
|
23987
|
-
const updateStatements = [];
|
|
23988
|
-
const tempAllocator = temporaryAllocator(updateStatements, TEMPORARY_NAME);
|
|
23989
|
-
for (const query of queries) {
|
|
23990
|
-
createStatements.push(importExpr(Identifiers.contentQuery).callFn([variable("dirIndex"), ...prepareQueryParams(query, constantPool)]).toStmt());
|
|
23991
|
-
const temporary = tempAllocator();
|
|
23992
|
-
const getQueryList = importExpr(Identifiers.loadQuery).callFn([]);
|
|
23993
|
-
const refresh = importExpr(Identifiers.queryRefresh).callFn([temporary.set(getQueryList)]);
|
|
23994
|
-
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
23995
|
-
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
23996
|
-
}
|
|
23997
|
-
const contentQueriesFnName = name ? `${name}_ContentQueries` : null;
|
|
23998
|
-
return fn([
|
|
23999
|
-
new FnParam(RENDER_FLAGS, NUMBER_TYPE),
|
|
24000
|
-
new FnParam(CONTEXT_NAME, null),
|
|
24001
|
-
new FnParam("dirIndex", null)
|
|
24002
|
-
], [
|
|
24003
|
-
renderFlagCheckIfStmt(1, createStatements),
|
|
24004
|
-
renderFlagCheckIfStmt(2, updateStatements)
|
|
24005
|
-
], INFERRED_TYPE, null, contentQueriesFnName);
|
|
24006
|
-
}
|
|
24007
24084
|
function stringAsType(str) {
|
|
24008
24085
|
return expressionType(literal(str));
|
|
24009
24086
|
}
|
|
@@ -24055,25 +24132,6 @@ function createDirectiveType(meta) {
|
|
|
24055
24132
|
}
|
|
24056
24133
|
return expressionType(importExpr(Identifiers.DirectiveDeclaration, typeParams));
|
|
24057
24134
|
}
|
|
24058
|
-
function createViewQueriesFunction(viewQueries, constantPool, name) {
|
|
24059
|
-
const createStatements = [];
|
|
24060
|
-
const updateStatements = [];
|
|
24061
|
-
const tempAllocator = temporaryAllocator(updateStatements, TEMPORARY_NAME);
|
|
24062
|
-
viewQueries.forEach((query) => {
|
|
24063
|
-
const queryDefinition = importExpr(Identifiers.viewQuery).callFn(prepareQueryParams(query, constantPool));
|
|
24064
|
-
createStatements.push(queryDefinition.toStmt());
|
|
24065
|
-
const temporary = tempAllocator();
|
|
24066
|
-
const getQueryList = importExpr(Identifiers.loadQuery).callFn([]);
|
|
24067
|
-
const refresh = importExpr(Identifiers.queryRefresh).callFn([temporary.set(getQueryList)]);
|
|
24068
|
-
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
24069
|
-
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
24070
|
-
});
|
|
24071
|
-
const viewQueryFnName = name ? `${name}_Query` : null;
|
|
24072
|
-
return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null)], [
|
|
24073
|
-
renderFlagCheckIfStmt(1, createStatements),
|
|
24074
|
-
renderFlagCheckIfStmt(2, updateStatements)
|
|
24075
|
-
], INFERRED_TYPE, null, viewQueryFnName);
|
|
24076
|
-
}
|
|
24077
24135
|
function createHostBindingsFunction(hostBindingsMetadata, typeSourceSpan, bindingParser, constantPool, selector, name, definitionMap) {
|
|
24078
24136
|
const bindings = bindingParser.createBoundHostProperties(hostBindingsMetadata.properties, typeSourceSpan);
|
|
24079
24137
|
const eventBindings = bindingParser.createDirectiveHostEventAsts(hostBindingsMetadata.listeners, typeSourceSpan);
|
|
@@ -24380,7 +24438,7 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
24380
24438
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
24381
24439
|
}
|
|
24382
24440
|
|
|
24383
|
-
// bazel-out/
|
|
24441
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
24384
24442
|
var R3TargetBinder = class {
|
|
24385
24443
|
constructor(directiveMatcher) {
|
|
24386
24444
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -24997,11 +25055,11 @@ function extractScopedNodeEntities(rootScope) {
|
|
|
24997
25055
|
return templateEntities;
|
|
24998
25056
|
}
|
|
24999
25057
|
|
|
25000
|
-
// bazel-out/
|
|
25058
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
25001
25059
|
var ResourceLoader = class {
|
|
25002
25060
|
};
|
|
25003
25061
|
|
|
25004
|
-
// bazel-out/
|
|
25062
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
25005
25063
|
var CompilerFacadeImpl = class {
|
|
25006
25064
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
25007
25065
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -25184,6 +25242,7 @@ var CompilerFacadeImpl = class {
|
|
|
25184
25242
|
};
|
|
25185
25243
|
function convertToR3QueryMetadata(facade) {
|
|
25186
25244
|
return __spreadProps(__spreadValues({}, facade), {
|
|
25245
|
+
isSignal: facade.isSignal,
|
|
25187
25246
|
predicate: convertQueryPredicate(facade.predicate),
|
|
25188
25247
|
read: facade.read ? new WrappedNodeExpr(facade.read) : null,
|
|
25189
25248
|
static: facade.static,
|
|
@@ -25199,7 +25258,8 @@ function convertQueryDeclarationToMetadata(declaration) {
|
|
|
25199
25258
|
descendants: (_b2 = declaration.descendants) != null ? _b2 : false,
|
|
25200
25259
|
read: declaration.read ? new WrappedNodeExpr(declaration.read) : null,
|
|
25201
25260
|
static: (_c2 = declaration.static) != null ? _c2 : false,
|
|
25202
|
-
emitDistinctChangesOnly: (_d2 = declaration.emitDistinctChangesOnly) != null ? _d2 : true
|
|
25261
|
+
emitDistinctChangesOnly: (_d2 = declaration.emitDistinctChangesOnly) != null ? _d2 : true,
|
|
25262
|
+
isSignal: !!declaration.isSignal
|
|
25203
25263
|
};
|
|
25204
25264
|
}
|
|
25205
25265
|
function convertQueryPredicate(predicate) {
|
|
@@ -25574,17 +25634,17 @@ function publishFacade(global) {
|
|
|
25574
25634
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
25575
25635
|
}
|
|
25576
25636
|
|
|
25577
|
-
// bazel-out/
|
|
25578
|
-
var VERSION2 = new Version("17.
|
|
25637
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
25638
|
+
var VERSION2 = new Version("17.2.0-next.0");
|
|
25579
25639
|
|
|
25580
|
-
// bazel-out/
|
|
25640
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
25581
25641
|
var _VisitorMode;
|
|
25582
25642
|
(function(_VisitorMode2) {
|
|
25583
25643
|
_VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
|
|
25584
25644
|
_VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
|
|
25585
25645
|
})(_VisitorMode || (_VisitorMode = {}));
|
|
25586
25646
|
|
|
25587
|
-
// bazel-out/
|
|
25647
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
25588
25648
|
var XmlTagDefinition = class {
|
|
25589
25649
|
constructor() {
|
|
25590
25650
|
this.closedByParent = false;
|
|
@@ -25606,7 +25666,7 @@ var XmlTagDefinition = class {
|
|
|
25606
25666
|
};
|
|
25607
25667
|
var _TAG_DEFINITION = new XmlTagDefinition();
|
|
25608
25668
|
|
|
25609
|
-
// bazel-out/
|
|
25669
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
25610
25670
|
var FactoryTarget2;
|
|
25611
25671
|
(function(FactoryTarget3) {
|
|
25612
25672
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -25616,10 +25676,10 @@ var FactoryTarget2;
|
|
|
25616
25676
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
25617
25677
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
25618
25678
|
|
|
25619
|
-
// bazel-out/
|
|
25679
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
25620
25680
|
publishFacade(_global);
|
|
25621
25681
|
|
|
25622
|
-
// bazel-out/
|
|
25682
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/identifier-lookup.mjs
|
|
25623
25683
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
25624
25684
|
function lookupIdentifiersInSourceFile(sourceFile, names) {
|
|
25625
25685
|
const results = /* @__PURE__ */ new Set();
|
|
@@ -25633,7 +25693,7 @@ function lookupIdentifiersInSourceFile(sourceFile, names) {
|
|
|
25633
25693
|
return results;
|
|
25634
25694
|
}
|
|
25635
25695
|
|
|
25636
|
-
// bazel-out/
|
|
25696
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/types.mjs
|
|
25637
25697
|
var ngtemplate = "ng-template";
|
|
25638
25698
|
var boundngifelse = "[ngIfElse]";
|
|
25639
25699
|
var boundngifthenelse = "[ngIfThenElse]";
|
|
@@ -25966,7 +26026,7 @@ var TemplateCollector = class extends RecursiveVisitor {
|
|
|
25966
26026
|
}
|
|
25967
26027
|
};
|
|
25968
26028
|
|
|
25969
|
-
// bazel-out/
|
|
26029
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/util.mjs
|
|
25970
26030
|
var import_path2 = require("path");
|
|
25971
26031
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
25972
26032
|
var startMarkerRegex = new RegExp(startMarker, "gm");
|
|
@@ -26466,7 +26526,7 @@ function forEachClass(sourceFile, callback) {
|
|
|
26466
26526
|
});
|
|
26467
26527
|
}
|
|
26468
26528
|
|
|
26469
|
-
// bazel-out/
|
|
26529
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/cases.mjs
|
|
26470
26530
|
var boundcase = "[ngSwitchCase]";
|
|
26471
26531
|
var switchcase = "*ngSwitchCase";
|
|
26472
26532
|
var nakedcase = "ngSwitchCase";
|
|
@@ -26544,7 +26604,7 @@ function migrateNgSwitchDefault(etm, tmpl, offset) {
|
|
|
26544
26604
|
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
26545
26605
|
}
|
|
26546
26606
|
|
|
26547
|
-
// bazel-out/
|
|
26607
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/fors.mjs
|
|
26548
26608
|
var ngfor = "*ngFor";
|
|
26549
26609
|
var nakedngfor2 = "ngFor";
|
|
26550
26610
|
var fors = [
|
|
@@ -26718,7 +26778,7 @@ function getNgForParts(expression) {
|
|
|
26718
26778
|
return parts;
|
|
26719
26779
|
}
|
|
26720
26780
|
|
|
26721
|
-
// bazel-out/
|
|
26781
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/ifs.mjs
|
|
26722
26782
|
var ngif = "*ngIf";
|
|
26723
26783
|
var boundngif = "[ngIf]";
|
|
26724
26784
|
var nakedngif = "ngIf";
|
|
@@ -26871,7 +26931,7 @@ function buildIfThenBlock(etm, tmpl, condition, thenPlaceholder, offset) {
|
|
|
26871
26931
|
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
26872
26932
|
}
|
|
26873
26933
|
|
|
26874
|
-
// bazel-out/
|
|
26934
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/switches.mjs
|
|
26875
26935
|
var ngswitch = "[ngSwitch]";
|
|
26876
26936
|
var switches = [
|
|
26877
26937
|
ngswitch
|
|
@@ -26939,7 +26999,7 @@ function migrateNgSwitch(etm, tmpl, offset) {
|
|
|
26939
26999
|
return { tmpl: updatedTmpl, offsets: { pre, post } };
|
|
26940
27000
|
}
|
|
26941
27001
|
|
|
26942
|
-
// bazel-out/
|
|
27002
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/migration.mjs
|
|
26943
27003
|
function migrateTemplate(template2, templateType, node, file, format = true, analyzedFiles) {
|
|
26944
27004
|
let errors = [];
|
|
26945
27005
|
let migrated = template2;
|
|
@@ -26990,7 +27050,7 @@ function migrateTemplate(template2, templateType, node, file, format = true, ana
|
|
|
26990
27050
|
return { migrated, errors };
|
|
26991
27051
|
}
|
|
26992
27052
|
|
|
26993
|
-
// bazel-out/
|
|
27053
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/control-flow-migration/index.mjs
|
|
26994
27054
|
function control_flow_migration_default(options) {
|
|
26995
27055
|
return (tree, context) => __async(this, null, function* () {
|
|
26996
27056
|
const basePath = process.cwd();
|