@angular/core 11.2.1 → 11.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/bundles/core-testing.umd.js +2 -2
  2. package/bundles/core-testing.umd.min.js +2 -2
  3. package/bundles/core-testing.umd.min.js.map +1 -1
  4. package/bundles/core.umd.js +457 -479
  5. package/bundles/core.umd.js.map +1 -1
  6. package/bundles/core.umd.min.js +118 -118
  7. package/bundles/core.umd.min.js.map +1 -1
  8. package/core.d.ts +36 -47
  9. package/core.metadata.json +1 -1
  10. package/esm2015/src/application_module.js +2 -3
  11. package/esm2015/src/application_ref.js +7 -6
  12. package/esm2015/src/change_detection/pipe_transform.js +1 -1
  13. package/esm2015/src/compiler/compiler_facade_interface.js +1 -1
  14. package/esm2015/src/core_render3_private_export.js +2 -2
  15. package/esm2015/src/di/inject_switch.js +3 -2
  16. package/esm2015/src/di/injection_token.js +1 -1
  17. package/esm2015/src/di/interface/defs.js +2 -9
  18. package/esm2015/src/di/jit/environment.js +2 -18
  19. package/esm2015/src/di/r3_injector.js +3 -8
  20. package/esm2015/src/metadata/ng_module.js +5 -6
  21. package/esm2015/src/render3/definition.js +1 -2
  22. package/esm2015/src/render3/definition_factory.js +1 -1
  23. package/esm2015/src/render3/di.js +12 -22
  24. package/esm2015/src/render3/errors.js +1 -1
  25. package/esm2015/src/render3/index.js +2 -2
  26. package/esm2015/src/render3/instructions/lview_debug.js +1 -2
  27. package/esm2015/src/render3/interfaces/definition.js +1 -1
  28. package/esm2015/src/render3/jit/environment.js +1 -2
  29. package/esm2015/src/render3/jit/module.js +22 -4
  30. package/esm2015/src/render3/util/discovery_utils.js +1 -1
  31. package/esm2015/src/version.js +1 -1
  32. package/fesm2015/core.js +154 -175
  33. package/fesm2015/core.js.map +1 -1
  34. package/fesm2015/testing.js +2 -2
  35. package/package.json +1 -1
  36. package/schematics/migrations/renderer-to-renderer2/helpers.js +1 -2
  37. package/src/r3_symbols.d.ts +12 -16
  38. package/testing/testing.d.ts +2 -2
  39. package/testing.d.ts +2 -2
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v11.2.1
3
- * (c) 2010-2020 Google LLC. https://angular.io/
2
+ * @license Angular v11.2.5
3
+ * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -132,6 +132,414 @@
132
132
  fn.__forward_ref__ === forwardRef;
133
133
  }
134
134
 
135
+ /*! *****************************************************************************
136
+ Copyright (c) Microsoft Corporation.
137
+
138
+ Permission to use, copy, modify, and/or distribute this software for any
139
+ purpose with or without fee is hereby granted.
140
+
141
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
142
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
143
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
144
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
145
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
146
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
147
+ PERFORMANCE OF THIS SOFTWARE.
148
+ ***************************************************************************** */
149
+ /* global Reflect, Promise */
150
+ var extendStatics = function (d, b) {
151
+ extendStatics = Object.setPrototypeOf ||
152
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
153
+ function (d, b) { for (var p in b)
154
+ if (b.hasOwnProperty(p))
155
+ d[p] = b[p]; };
156
+ return extendStatics(d, b);
157
+ };
158
+ function __extends(d, b) {
159
+ extendStatics(d, b);
160
+ function __() { this.constructor = d; }
161
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
162
+ }
163
+ var __assign = function () {
164
+ __assign = Object.assign || function __assign(t) {
165
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
166
+ s = arguments[i];
167
+ for (var p in s)
168
+ if (Object.prototype.hasOwnProperty.call(s, p))
169
+ t[p] = s[p];
170
+ }
171
+ return t;
172
+ };
173
+ return __assign.apply(this, arguments);
174
+ };
175
+ function __rest(s, e) {
176
+ var t = {};
177
+ for (var p in s)
178
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
179
+ t[p] = s[p];
180
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
181
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
182
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
183
+ t[p[i]] = s[p[i]];
184
+ }
185
+ return t;
186
+ }
187
+ function __decorate(decorators, target, key, desc) {
188
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
189
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
190
+ r = Reflect.decorate(decorators, target, key, desc);
191
+ else
192
+ for (var i = decorators.length - 1; i >= 0; i--)
193
+ if (d = decorators[i])
194
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
195
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
196
+ }
197
+ function __param(paramIndex, decorator) {
198
+ return function (target, key) { decorator(target, key, paramIndex); };
199
+ }
200
+ function __metadata(metadataKey, metadataValue) {
201
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
202
+ return Reflect.metadata(metadataKey, metadataValue);
203
+ }
204
+ function __awaiter(thisArg, _arguments, P, generator) {
205
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
206
+ return new (P || (P = Promise))(function (resolve, reject) {
207
+ function fulfilled(value) { try {
208
+ step(generator.next(value));
209
+ }
210
+ catch (e) {
211
+ reject(e);
212
+ } }
213
+ function rejected(value) { try {
214
+ step(generator["throw"](value));
215
+ }
216
+ catch (e) {
217
+ reject(e);
218
+ } }
219
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
220
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
221
+ });
222
+ }
223
+ function __generator(thisArg, body) {
224
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
225
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
226
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
227
+ function verb(n) { return function (v) { return step([n, v]); }; }
228
+ function step(op) {
229
+ if (f)
230
+ throw new TypeError("Generator is already executing.");
231
+ while (_)
232
+ try {
233
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
234
+ return t;
235
+ if (y = 0, t)
236
+ op = [op[0] & 2, t.value];
237
+ switch (op[0]) {
238
+ case 0:
239
+ case 1:
240
+ t = op;
241
+ break;
242
+ case 4:
243
+ _.label++;
244
+ return { value: op[1], done: false };
245
+ case 5:
246
+ _.label++;
247
+ y = op[1];
248
+ op = [0];
249
+ continue;
250
+ case 7:
251
+ op = _.ops.pop();
252
+ _.trys.pop();
253
+ continue;
254
+ default:
255
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
256
+ _ = 0;
257
+ continue;
258
+ }
259
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
260
+ _.label = op[1];
261
+ break;
262
+ }
263
+ if (op[0] === 6 && _.label < t[1]) {
264
+ _.label = t[1];
265
+ t = op;
266
+ break;
267
+ }
268
+ if (t && _.label < t[2]) {
269
+ _.label = t[2];
270
+ _.ops.push(op);
271
+ break;
272
+ }
273
+ if (t[2])
274
+ _.ops.pop();
275
+ _.trys.pop();
276
+ continue;
277
+ }
278
+ op = body.call(thisArg, _);
279
+ }
280
+ catch (e) {
281
+ op = [6, e];
282
+ y = 0;
283
+ }
284
+ finally {
285
+ f = t = 0;
286
+ }
287
+ if (op[0] & 5)
288
+ throw op[1];
289
+ return { value: op[0] ? op[1] : void 0, done: true };
290
+ }
291
+ }
292
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
293
+ if (k2 === undefined)
294
+ k2 = k;
295
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
296
+ }) : (function (o, m, k, k2) {
297
+ if (k2 === undefined)
298
+ k2 = k;
299
+ o[k2] = m[k];
300
+ });
301
+ function __exportStar(m, exports) {
302
+ for (var p in m)
303
+ if (p !== "default" && !exports.hasOwnProperty(p))
304
+ __createBinding(exports, m, p);
305
+ }
306
+ function __values(o) {
307
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
308
+ if (m)
309
+ return m.call(o);
310
+ if (o && typeof o.length === "number")
311
+ return {
312
+ next: function () {
313
+ if (o && i >= o.length)
314
+ o = void 0;
315
+ return { value: o && o[i++], done: !o };
316
+ }
317
+ };
318
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
319
+ }
320
+ function __read(o, n) {
321
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
322
+ if (!m)
323
+ return o;
324
+ var i = m.call(o), r, ar = [], e;
325
+ try {
326
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
327
+ ar.push(r.value);
328
+ }
329
+ catch (error) {
330
+ e = { error: error };
331
+ }
332
+ finally {
333
+ try {
334
+ if (r && !r.done && (m = i["return"]))
335
+ m.call(i);
336
+ }
337
+ finally {
338
+ if (e)
339
+ throw e.error;
340
+ }
341
+ }
342
+ return ar;
343
+ }
344
+ function __spread() {
345
+ for (var ar = [], i = 0; i < arguments.length; i++)
346
+ ar = ar.concat(__read(arguments[i]));
347
+ return ar;
348
+ }
349
+ function __spreadArrays() {
350
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
351
+ s += arguments[i].length;
352
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
353
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
354
+ r[k] = a[j];
355
+ return r;
356
+ }
357
+ ;
358
+ function __await(v) {
359
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
360
+ }
361
+ function __asyncGenerator(thisArg, _arguments, generator) {
362
+ if (!Symbol.asyncIterator)
363
+ throw new TypeError("Symbol.asyncIterator is not defined.");
364
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
365
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
366
+ function verb(n) { if (g[n])
367
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
368
+ function resume(n, v) { try {
369
+ step(g[n](v));
370
+ }
371
+ catch (e) {
372
+ settle(q[0][3], e);
373
+ } }
374
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
375
+ function fulfill(value) { resume("next", value); }
376
+ function reject(value) { resume("throw", value); }
377
+ function settle(f, v) { if (f(v), q.shift(), q.length)
378
+ resume(q[0][0], q[0][1]); }
379
+ }
380
+ function __asyncDelegator(o) {
381
+ var i, p;
382
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
383
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
384
+ }
385
+ function __asyncValues(o) {
386
+ if (!Symbol.asyncIterator)
387
+ throw new TypeError("Symbol.asyncIterator is not defined.");
388
+ var m = o[Symbol.asyncIterator], i;
389
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
390
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
391
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
392
+ }
393
+ function __makeTemplateObject(cooked, raw) {
394
+ if (Object.defineProperty) {
395
+ Object.defineProperty(cooked, "raw", { value: raw });
396
+ }
397
+ else {
398
+ cooked.raw = raw;
399
+ }
400
+ return cooked;
401
+ }
402
+ ;
403
+ var __setModuleDefault = Object.create ? (function (o, v) {
404
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
405
+ }) : function (o, v) {
406
+ o["default"] = v;
407
+ };
408
+ function __importStar(mod) {
409
+ if (mod && mod.__esModule)
410
+ return mod;
411
+ var result = {};
412
+ if (mod != null)
413
+ for (var k in mod)
414
+ if (Object.hasOwnProperty.call(mod, k))
415
+ __createBinding(result, mod, k);
416
+ __setModuleDefault(result, mod);
417
+ return result;
418
+ }
419
+ function __importDefault(mod) {
420
+ return (mod && mod.__esModule) ? mod : { default: mod };
421
+ }
422
+ function __classPrivateFieldGet(receiver, privateMap) {
423
+ if (!privateMap.has(receiver)) {
424
+ throw new TypeError("attempted to get private field on non-instance");
425
+ }
426
+ return privateMap.get(receiver);
427
+ }
428
+ function __classPrivateFieldSet(receiver, privateMap, value) {
429
+ if (!privateMap.has(receiver)) {
430
+ throw new TypeError("attempted to set private field on non-instance");
431
+ }
432
+ privateMap.set(receiver, value);
433
+ return value;
434
+ }
435
+
436
+ /**
437
+ * @license
438
+ * Copyright Google LLC All Rights Reserved.
439
+ *
440
+ * Use of this source code is governed by an MIT-style license that can be
441
+ * found in the LICENSE file at https://angular.io/license
442
+ */
443
+ // Base URL for the error details page.
444
+ // Keep this value in sync with a similar const in
445
+ // `packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.ts`.
446
+ var ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
447
+ var RuntimeError = /** @class */ (function (_super) {
448
+ __extends(RuntimeError, _super);
449
+ function RuntimeError(code, message) {
450
+ var _this = _super.call(this, formatRuntimeError(code, message)) || this;
451
+ _this.code = code;
452
+ return _this;
453
+ }
454
+ return RuntimeError;
455
+ }(Error));
456
+ // Contains a set of error messages that have details guides at angular.io.
457
+ // Full list of available error guides can be found at https://angular.io/errors
458
+ /* tslint:disable:no-toplevel-property-access */
459
+ var RUNTIME_ERRORS_WITH_GUIDES = new Set([
460
+ "100" /* EXPRESSION_CHANGED_AFTER_CHECKED */,
461
+ "200" /* CYCLIC_DI_DEPENDENCY */,
462
+ "201" /* PROVIDER_NOT_FOUND */,
463
+ "300" /* MULTIPLE_COMPONENTS_MATCH */,
464
+ "301" /* EXPORT_NOT_FOUND */,
465
+ "302" /* PIPE_NOT_FOUND */,
466
+ ]);
467
+ /* tslint:enable:no-toplevel-property-access */
468
+ /** Called to format a runtime error */
469
+ function formatRuntimeError(code, message) {
470
+ var fullCode = code ? "NG0" + code + ": " : '';
471
+ var errorMessage = "" + fullCode + message;
472
+ // Some runtime errors are still thrown without `ngDevMode` (for example
473
+ // `throwProviderNotFoundError`), so we add `ngDevMode` check here to avoid pulling
474
+ // `RUNTIME_ERRORS_WITH_GUIDES` symbol into prod bundles.
475
+ // TODO: revisit all instances where `RuntimeError` is thrown and see if `ngDevMode` can be added
476
+ // there instead to tree-shake more devmode-only code (and eventually remove `ngDevMode` check
477
+ // from this code).
478
+ if (ngDevMode && RUNTIME_ERRORS_WITH_GUIDES.has(code)) {
479
+ errorMessage = errorMessage + ". Find more at " + ERROR_DETAILS_PAGE_BASE_URL + "/NG0" + code;
480
+ }
481
+ return errorMessage;
482
+ }
483
+
484
+ /**
485
+ * @license
486
+ * Copyright Google LLC All Rights Reserved.
487
+ *
488
+ * Use of this source code is governed by an MIT-style license that can be
489
+ * found in the LICENSE file at https://angular.io/license
490
+ */
491
+ /**
492
+ * Used for stringify render output in Ivy.
493
+ * Important! This function is very performance-sensitive and we should
494
+ * be extra careful not to introduce megamorphic reads in it.
495
+ * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.
496
+ */
497
+ function renderStringify(value) {
498
+ if (typeof value === 'string')
499
+ return value;
500
+ if (value == null)
501
+ return '';
502
+ // Use `String` so that it invokes the `toString` method of the value. Note that this
503
+ // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).
504
+ return String(value);
505
+ }
506
+ /**
507
+ * Used to stringify a value so that it can be displayed in an error message.
508
+ * Important! This function contains a megamorphic read and should only be
509
+ * used for error messages.
510
+ */
511
+ function stringifyForError(value) {
512
+ if (typeof value === 'function')
513
+ return value.name || value.toString();
514
+ if (typeof value === 'object' && value != null && typeof value.type === 'function') {
515
+ return value.type.name || value.type.toString();
516
+ }
517
+ return renderStringify(value);
518
+ }
519
+
520
+ /** Called when directives inject each other (creating a circular dependency) */
521
+ function throwCyclicDependencyError(token, path) {
522
+ var depPath = path ? ". Dependency path: " + path.join(' > ') + " > " + token : '';
523
+ throw new RuntimeError("200" /* CYCLIC_DI_DEPENDENCY */, "Circular dependency in DI detected for " + token + depPath);
524
+ }
525
+ function throwMixedMultiProviderError() {
526
+ throw new Error("Cannot mix multi providers and regular providers");
527
+ }
528
+ function throwInvalidProviderError(ngModuleType, providers, provider) {
529
+ var ngModuleDetail = '';
530
+ if (ngModuleType && providers) {
531
+ var providerDetail = providers.map(function (v) { return v == provider ? '?' + provider + '?' : '...'; });
532
+ ngModuleDetail =
533
+ " - only instances of Provider and Type are allowed, got: [" + providerDetail.join(', ') + "]";
534
+ }
535
+ throw new Error("Invalid provider for the NgModule '" + stringify(ngModuleType) + "'" + ngModuleDetail);
536
+ }
537
+ /** Throws an error when a token is not found in DI. */
538
+ function throwProviderNotFoundError(token, injectorName) {
539
+ var injectorDetails = injectorName ? " in " + injectorName : '';
540
+ throw new RuntimeError("201" /* PROVIDER_NOT_FOUND */, "No provider for " + stringifyForError(token) + " found" + injectorDetails);
541
+ }
542
+
135
543
  /**
136
544
  * @license
137
545
  * Copyright Google LLC All Rights Reserved.
@@ -284,9 +692,6 @@
284
692
  *
285
693
  * Options:
286
694
  *
287
- * * `factory`: an `InjectorType` is an instantiable type, so a zero argument `factory` function to
288
- * create the type must be provided. If that factory function needs to inject arguments, it can
289
- * use the `inject` function.
290
695
  * * `providers`: an optional array of providers to add to the injector. Each provider must
291
696
  * either have a factory or point to a type which has a `ɵprov` static property (the
292
697
  * type must be an `InjectableType`).
@@ -297,11 +702,7 @@
297
702
  * @codeGenApi
298
703
  */
299
704
  function ɵɵdefineInjector(options) {
300
- return {
301
- factory: options.factory,
302
- providers: options.providers || [],
303
- imports: options.imports || [],
304
- };
705
+ return { providers: options.providers || [], imports: options.imports || [] };
305
706
  }
306
707
  /**
307
708
  * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading
@@ -441,7 +842,7 @@
441
842
  return null;
442
843
  if (notFoundValue !== undefined)
443
844
  return notFoundValue;
444
- throw new Error("Injector: NOT_FOUND [" + stringify(token) + "]");
845
+ throwProviderNotFoundError(stringify(token), 'Injector');
445
846
  }
446
847
  /**
447
848
  * Assert that `_injectImplementation` is not `fn`.
@@ -739,7 +1140,6 @@
739
1140
  // See the `initNgDevMode` docstring for more information.
740
1141
  (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();
741
1142
  var type = componentDefinition.type;
742
- var typePrototype = type.prototype;
743
1143
  var declaredInputs = {};
744
1144
  var def = {
745
1145
  type: type,
@@ -1269,414 +1669,6 @@
1269
1669
  return hasFactoryDef ? type[NG_FACTORY_DEF] : null;
1270
1670
  }
1271
1671
 
1272
- /*! *****************************************************************************
1273
- Copyright (c) Microsoft Corporation.
1274
-
1275
- Permission to use, copy, modify, and/or distribute this software for any
1276
- purpose with or without fee is hereby granted.
1277
-
1278
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1279
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1280
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1281
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1282
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1283
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1284
- PERFORMANCE OF THIS SOFTWARE.
1285
- ***************************************************************************** */
1286
- /* global Reflect, Promise */
1287
- var extendStatics = function (d, b) {
1288
- extendStatics = Object.setPrototypeOf ||
1289
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1290
- function (d, b) { for (var p in b)
1291
- if (b.hasOwnProperty(p))
1292
- d[p] = b[p]; };
1293
- return extendStatics(d, b);
1294
- };
1295
- function __extends(d, b) {
1296
- extendStatics(d, b);
1297
- function __() { this.constructor = d; }
1298
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1299
- }
1300
- var __assign = function () {
1301
- __assign = Object.assign || function __assign(t) {
1302
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1303
- s = arguments[i];
1304
- for (var p in s)
1305
- if (Object.prototype.hasOwnProperty.call(s, p))
1306
- t[p] = s[p];
1307
- }
1308
- return t;
1309
- };
1310
- return __assign.apply(this, arguments);
1311
- };
1312
- function __rest(s, e) {
1313
- var t = {};
1314
- for (var p in s)
1315
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1316
- t[p] = s[p];
1317
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1318
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1319
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1320
- t[p[i]] = s[p[i]];
1321
- }
1322
- return t;
1323
- }
1324
- function __decorate(decorators, target, key, desc) {
1325
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1326
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
1327
- r = Reflect.decorate(decorators, target, key, desc);
1328
- else
1329
- for (var i = decorators.length - 1; i >= 0; i--)
1330
- if (d = decorators[i])
1331
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1332
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1333
- }
1334
- function __param(paramIndex, decorator) {
1335
- return function (target, key) { decorator(target, key, paramIndex); };
1336
- }
1337
- function __metadata(metadataKey, metadataValue) {
1338
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
1339
- return Reflect.metadata(metadataKey, metadataValue);
1340
- }
1341
- function __awaiter(thisArg, _arguments, P, generator) {
1342
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1343
- return new (P || (P = Promise))(function (resolve, reject) {
1344
- function fulfilled(value) { try {
1345
- step(generator.next(value));
1346
- }
1347
- catch (e) {
1348
- reject(e);
1349
- } }
1350
- function rejected(value) { try {
1351
- step(generator["throw"](value));
1352
- }
1353
- catch (e) {
1354
- reject(e);
1355
- } }
1356
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1357
- step((generator = generator.apply(thisArg, _arguments || [])).next());
1358
- });
1359
- }
1360
- function __generator(thisArg, body) {
1361
- var _ = { label: 0, sent: function () { if (t[0] & 1)
1362
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1363
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
1364
- function verb(n) { return function (v) { return step([n, v]); }; }
1365
- function step(op) {
1366
- if (f)
1367
- throw new TypeError("Generator is already executing.");
1368
- while (_)
1369
- try {
1370
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
1371
- return t;
1372
- if (y = 0, t)
1373
- op = [op[0] & 2, t.value];
1374
- switch (op[0]) {
1375
- case 0:
1376
- case 1:
1377
- t = op;
1378
- break;
1379
- case 4:
1380
- _.label++;
1381
- return { value: op[1], done: false };
1382
- case 5:
1383
- _.label++;
1384
- y = op[1];
1385
- op = [0];
1386
- continue;
1387
- case 7:
1388
- op = _.ops.pop();
1389
- _.trys.pop();
1390
- continue;
1391
- default:
1392
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
1393
- _ = 0;
1394
- continue;
1395
- }
1396
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
1397
- _.label = op[1];
1398
- break;
1399
- }
1400
- if (op[0] === 6 && _.label < t[1]) {
1401
- _.label = t[1];
1402
- t = op;
1403
- break;
1404
- }
1405
- if (t && _.label < t[2]) {
1406
- _.label = t[2];
1407
- _.ops.push(op);
1408
- break;
1409
- }
1410
- if (t[2])
1411
- _.ops.pop();
1412
- _.trys.pop();
1413
- continue;
1414
- }
1415
- op = body.call(thisArg, _);
1416
- }
1417
- catch (e) {
1418
- op = [6, e];
1419
- y = 0;
1420
- }
1421
- finally {
1422
- f = t = 0;
1423
- }
1424
- if (op[0] & 5)
1425
- throw op[1];
1426
- return { value: op[0] ? op[1] : void 0, done: true };
1427
- }
1428
- }
1429
- var __createBinding = Object.create ? (function (o, m, k, k2) {
1430
- if (k2 === undefined)
1431
- k2 = k;
1432
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
1433
- }) : (function (o, m, k, k2) {
1434
- if (k2 === undefined)
1435
- k2 = k;
1436
- o[k2] = m[k];
1437
- });
1438
- function __exportStar(m, exports) {
1439
- for (var p in m)
1440
- if (p !== "default" && !exports.hasOwnProperty(p))
1441
- __createBinding(exports, m, p);
1442
- }
1443
- function __values(o) {
1444
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1445
- if (m)
1446
- return m.call(o);
1447
- if (o && typeof o.length === "number")
1448
- return {
1449
- next: function () {
1450
- if (o && i >= o.length)
1451
- o = void 0;
1452
- return { value: o && o[i++], done: !o };
1453
- }
1454
- };
1455
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1456
- }
1457
- function __read(o, n) {
1458
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1459
- if (!m)
1460
- return o;
1461
- var i = m.call(o), r, ar = [], e;
1462
- try {
1463
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
1464
- ar.push(r.value);
1465
- }
1466
- catch (error) {
1467
- e = { error: error };
1468
- }
1469
- finally {
1470
- try {
1471
- if (r && !r.done && (m = i["return"]))
1472
- m.call(i);
1473
- }
1474
- finally {
1475
- if (e)
1476
- throw e.error;
1477
- }
1478
- }
1479
- return ar;
1480
- }
1481
- function __spread() {
1482
- for (var ar = [], i = 0; i < arguments.length; i++)
1483
- ar = ar.concat(__read(arguments[i]));
1484
- return ar;
1485
- }
1486
- function __spreadArrays() {
1487
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
1488
- s += arguments[i].length;
1489
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
1490
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
1491
- r[k] = a[j];
1492
- return r;
1493
- }
1494
- ;
1495
- function __await(v) {
1496
- return this instanceof __await ? (this.v = v, this) : new __await(v);
1497
- }
1498
- function __asyncGenerator(thisArg, _arguments, generator) {
1499
- if (!Symbol.asyncIterator)
1500
- throw new TypeError("Symbol.asyncIterator is not defined.");
1501
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
1502
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
1503
- function verb(n) { if (g[n])
1504
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
1505
- function resume(n, v) { try {
1506
- step(g[n](v));
1507
- }
1508
- catch (e) {
1509
- settle(q[0][3], e);
1510
- } }
1511
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
1512
- function fulfill(value) { resume("next", value); }
1513
- function reject(value) { resume("throw", value); }
1514
- function settle(f, v) { if (f(v), q.shift(), q.length)
1515
- resume(q[0][0], q[0][1]); }
1516
- }
1517
- function __asyncDelegator(o) {
1518
- var i, p;
1519
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
1520
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
1521
- }
1522
- function __asyncValues(o) {
1523
- if (!Symbol.asyncIterator)
1524
- throw new TypeError("Symbol.asyncIterator is not defined.");
1525
- var m = o[Symbol.asyncIterator], i;
1526
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
1527
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
1528
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
1529
- }
1530
- function __makeTemplateObject(cooked, raw) {
1531
- if (Object.defineProperty) {
1532
- Object.defineProperty(cooked, "raw", { value: raw });
1533
- }
1534
- else {
1535
- cooked.raw = raw;
1536
- }
1537
- return cooked;
1538
- }
1539
- ;
1540
- var __setModuleDefault = Object.create ? (function (o, v) {
1541
- Object.defineProperty(o, "default", { enumerable: true, value: v });
1542
- }) : function (o, v) {
1543
- o["default"] = v;
1544
- };
1545
- function __importStar(mod) {
1546
- if (mod && mod.__esModule)
1547
- return mod;
1548
- var result = {};
1549
- if (mod != null)
1550
- for (var k in mod)
1551
- if (Object.hasOwnProperty.call(mod, k))
1552
- __createBinding(result, mod, k);
1553
- __setModuleDefault(result, mod);
1554
- return result;
1555
- }
1556
- function __importDefault(mod) {
1557
- return (mod && mod.__esModule) ? mod : { default: mod };
1558
- }
1559
- function __classPrivateFieldGet(receiver, privateMap) {
1560
- if (!privateMap.has(receiver)) {
1561
- throw new TypeError("attempted to get private field on non-instance");
1562
- }
1563
- return privateMap.get(receiver);
1564
- }
1565
- function __classPrivateFieldSet(receiver, privateMap, value) {
1566
- if (!privateMap.has(receiver)) {
1567
- throw new TypeError("attempted to set private field on non-instance");
1568
- }
1569
- privateMap.set(receiver, value);
1570
- return value;
1571
- }
1572
-
1573
- /**
1574
- * @license
1575
- * Copyright Google LLC All Rights Reserved.
1576
- *
1577
- * Use of this source code is governed by an MIT-style license that can be
1578
- * found in the LICENSE file at https://angular.io/license
1579
- */
1580
- // Base URL for the error details page.
1581
- // Keep this value in sync with a similar const in
1582
- // `packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.ts`.
1583
- var ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
1584
- var RuntimeError = /** @class */ (function (_super) {
1585
- __extends(RuntimeError, _super);
1586
- function RuntimeError(code, message) {
1587
- var _this = _super.call(this, formatRuntimeError(code, message)) || this;
1588
- _this.code = code;
1589
- return _this;
1590
- }
1591
- return RuntimeError;
1592
- }(Error));
1593
- // Contains a set of error messages that have details guides at angular.io.
1594
- // Full list of available error guides can be found at https://angular.io/errors
1595
- /* tslint:disable:no-toplevel-property-access */
1596
- var RUNTIME_ERRORS_WITH_GUIDES = new Set([
1597
- "100" /* EXPRESSION_CHANGED_AFTER_CHECKED */,
1598
- "200" /* CYCLIC_DI_DEPENDENCY */,
1599
- "201" /* PROVIDER_NOT_FOUND */,
1600
- "300" /* MULTIPLE_COMPONENTS_MATCH */,
1601
- "301" /* EXPORT_NOT_FOUND */,
1602
- "302" /* PIPE_NOT_FOUND */,
1603
- ]);
1604
- /* tslint:enable:no-toplevel-property-access */
1605
- /** Called to format a runtime error */
1606
- function formatRuntimeError(code, message) {
1607
- var fullCode = code ? "NG0" + code + ": " : '';
1608
- var errorMessage = "" + fullCode + message;
1609
- // Some runtime errors are still thrown without `ngDevMode` (for example
1610
- // `throwProviderNotFoundError`), so we add `ngDevMode` check here to avoid pulling
1611
- // `RUNTIME_ERRORS_WITH_GUIDES` symbol into prod bundles.
1612
- // TODO: revisit all instances where `RuntimeError` is thrown and see if `ngDevMode` can be added
1613
- // there instead to tree-shake more devmode-only code (and eventually remove `ngDevMode` check
1614
- // from this code).
1615
- if (ngDevMode && RUNTIME_ERRORS_WITH_GUIDES.has(code)) {
1616
- errorMessage = errorMessage + ". Find more at " + ERROR_DETAILS_PAGE_BASE_URL + "/NG0" + code;
1617
- }
1618
- return errorMessage;
1619
- }
1620
-
1621
- /**
1622
- * @license
1623
- * Copyright Google LLC All Rights Reserved.
1624
- *
1625
- * Use of this source code is governed by an MIT-style license that can be
1626
- * found in the LICENSE file at https://angular.io/license
1627
- */
1628
- /**
1629
- * Used for stringify render output in Ivy.
1630
- * Important! This function is very performance-sensitive and we should
1631
- * be extra careful not to introduce megamorphic reads in it.
1632
- * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.
1633
- */
1634
- function renderStringify(value) {
1635
- if (typeof value === 'string')
1636
- return value;
1637
- if (value == null)
1638
- return '';
1639
- // Use `String` so that it invokes the `toString` method of the value. Note that this
1640
- // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).
1641
- return String(value);
1642
- }
1643
- /**
1644
- * Used to stringify a value so that it can be displayed in an error message.
1645
- * Important! This function contains a megamorphic read and should only be
1646
- * used for error messages.
1647
- */
1648
- function stringifyForError(value) {
1649
- if (typeof value === 'function')
1650
- return value.name || value.toString();
1651
- if (typeof value === 'object' && value != null && typeof value.type === 'function') {
1652
- return value.type.name || value.type.toString();
1653
- }
1654
- return renderStringify(value);
1655
- }
1656
-
1657
- /** Called when directives inject each other (creating a circular dependency) */
1658
- function throwCyclicDependencyError(token, path) {
1659
- var depPath = path ? ". Dependency path: " + path.join(' > ') + " > " + token : '';
1660
- throw new RuntimeError("200" /* CYCLIC_DI_DEPENDENCY */, "Circular dependency in DI detected for " + token + depPath);
1661
- }
1662
- function throwMixedMultiProviderError() {
1663
- throw new Error("Cannot mix multi providers and regular providers");
1664
- }
1665
- function throwInvalidProviderError(ngModuleType, providers, provider) {
1666
- var ngModuleDetail = '';
1667
- if (ngModuleType && providers) {
1668
- var providerDetail = providers.map(function (v) { return v == provider ? '?' + provider + '?' : '...'; });
1669
- ngModuleDetail =
1670
- " - only instances of Provider and Type are allowed, got: [" + providerDetail.join(', ') + "]";
1671
- }
1672
- throw new Error("Invalid provider for the NgModule '" + stringify(ngModuleType) + "'" + ngModuleDetail);
1673
- }
1674
- /** Throws an error when a token is not found in DI. */
1675
- function throwProviderNotFoundError(token, injectorName) {
1676
- var injectorDetails = injectorName ? " in " + injectorName : '';
1677
- throw new RuntimeError("201" /* PROVIDER_NOT_FOUND */, "No provider for " + stringifyForError(token) + " found" + injectorDetails);
1678
- }
1679
-
1680
1672
  /**
1681
1673
  * @license
1682
1674
  * Copyright Google LLC All Rights Reserved.
@@ -3891,36 +3883,18 @@
3891
3883
  };
3892
3884
  return NodeInjector;
3893
3885
  }());
3894
- /**
3895
- * @codeGenApi
3896
- */
3897
- function ɵɵgetFactoryOf(type) {
3898
- var typeAny = type;
3899
- if (isForwardRef(type)) {
3900
- return (function () {
3901
- var factory = ɵɵgetFactoryOf(resolveForwardRef(typeAny));
3902
- return factory ? factory() : null;
3903
- });
3904
- }
3905
- var factory = getFactoryDef(typeAny);
3906
- if (factory === null) {
3907
- var injectorDef = getInjectorDef(typeAny);
3908
- factory = injectorDef && injectorDef.factory;
3909
- }
3910
- return factory || null;
3911
- }
3912
3886
  /**
3913
3887
  * @codeGenApi
3914
3888
  */
3915
3889
  function ɵɵgetInheritedFactory(type) {
3916
3890
  return noSideEffects(function () {
3917
3891
  var ownConstructor = type.prototype.constructor;
3918
- var ownFactory = ownConstructor[NG_FACTORY_DEF] || ɵɵgetFactoryOf(ownConstructor);
3892
+ var ownFactory = ownConstructor[NG_FACTORY_DEF] || getFactoryOf(ownConstructor);
3919
3893
  var objectPrototype = Object.prototype;
3920
3894
  var parent = Object.getPrototypeOf(type.prototype).constructor;
3921
3895
  // Go up the prototype until we hit `Object`.
3922
3896
  while (parent && parent !== objectPrototype) {
3923
- var factory = parent[NG_FACTORY_DEF] || ɵɵgetFactoryOf(parent);
3897
+ var factory = parent[NG_FACTORY_DEF] || getFactoryOf(parent);
3924
3898
  // If we hit something that has a factory and the factory isn't the same as the type,
3925
3899
  // we've found the inherited factory. Note the check that the factory isn't the type's
3926
3900
  // own factory is redundant in most cases, but if the user has custom decorators on the
@@ -3938,6 +3912,15 @@
3938
3912
  return function (t) { return new t(); };
3939
3913
  });
3940
3914
  }
3915
+ function getFactoryOf(type) {
3916
+ if (isForwardRef(type)) {
3917
+ return function () {
3918
+ var factory = getFactoryOf(resolveForwardRef(type));
3919
+ return factory && factory();
3920
+ };
3921
+ }
3922
+ return getFactoryDef(type);
3923
+ }
3941
3924
 
3942
3925
  /**
3943
3926
  * @license
@@ -8899,7 +8882,6 @@
8899
8882
  }
8900
8883
  return embeddedArray;
8901
8884
  }
8902
- throw new Error('unreachable code');
8903
8885
  }
8904
8886
  function nameSuffix(text) {
8905
8887
  if (text == null)
@@ -11831,7 +11813,8 @@
11831
11813
  // Track the InjectorType and add a provider for it. It's important that this is done after the
11832
11814
  // def's imports.
11833
11815
  this.injectorDefTypes.add(defType);
11834
- this.records.set(defType, makeRecord(def.factory, NOT_YET));
11816
+ var factory = getFactoryDef(defType) || (function () { return new defType(); });
11817
+ this.records.set(defType, makeRecord(factory, NOT_YET));
11835
11818
  // Next, include providers listed on the definition itself.
11836
11819
  var defProviders = def.providers;
11837
11820
  if (defProviders != null && !isDuplicate) {
@@ -11910,12 +11893,6 @@
11910
11893
  if (factory !== null) {
11911
11894
  return factory;
11912
11895
  }
11913
- // If the token is an NgModule, it's also injectable but the factory is on its injector def
11914
- // (`ɵinj`)
11915
- var injectorDef = getInjectorDef(token);
11916
- if (injectorDef !== null) {
11917
- return injectorDef.factory;
11918
- }
11919
11896
  // InjectionTokens should have an injectable def (ɵprov) and thus should be handled above.
11920
11897
  // If it's missing that, it's an error.
11921
11898
  if (token instanceof InjectionToken) {
@@ -14083,23 +14060,8 @@
14083
14060
  'ɵɵdefineInjectable': ɵɵdefineInjectable,
14084
14061
  'ɵɵdefineInjector': ɵɵdefineInjector,
14085
14062
  'ɵɵinject': ɵɵinject,
14086
- 'ɵɵgetFactoryOf': getFactoryOf,
14087
14063
  'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,
14088
14064
  };
14089
- function getFactoryOf(type) {
14090
- var typeAny = type;
14091
- if (isForwardRef(type)) {
14092
- return (function () {
14093
- var factory = getFactoryOf(resolveForwardRef(typeAny));
14094
- return factory ? factory() : null;
14095
- });
14096
- }
14097
- var def = getInjectableDef(typeAny) || getInjectorDef(typeAny);
14098
- if (!def || def.factory === undefined) {
14099
- return null;
14100
- }
14101
- return def.factory;
14102
- }
14103
14065
 
14104
14066
  /**
14105
14067
  * @license
@@ -21960,7 +21922,7 @@
21960
21922
  /**
21961
21923
  * @publicApi
21962
21924
  */
21963
- var VERSION = new Version('11.2.1');
21925
+ var VERSION = new Version('11.2.5');
21964
21926
 
21965
21927
  /**
21966
21928
  * @license
@@ -27365,7 +27327,6 @@
27365
27327
  'ɵɵdefineNgModule': ɵɵdefineNgModule,
27366
27328
  'ɵɵdefinePipe': ɵɵdefinePipe,
27367
27329
  'ɵɵdirectiveInject': ɵɵdirectiveInject,
27368
- 'ɵɵgetFactoryOf': ɵɵgetFactoryOf,
27369
27330
  'ɵɵgetInheritedFactory': ɵɵgetInheritedFactory,
27370
27331
  'ɵɵinject': ɵɵinject,
27371
27332
  'ɵɵinjectAttribute': ɵɵinjectAttribute,
@@ -27585,7 +27546,7 @@
27585
27546
  enqueueModuleForDelayedScoping(moduleType, ngModule);
27586
27547
  }
27587
27548
  /**
27588
- * Compiles and adds the `ɵmod` and `ɵinj` properties to the module class.
27549
+ * Compiles and adds the `ɵmod`, `ɵfac` and `ɵinj` properties to the module class.
27589
27550
  *
27590
27551
  * It's possible to compile a module via this API which will allow duplicate declarations in its
27591
27552
  * root.
@@ -27629,6 +27590,25 @@
27629
27590
  return ngModuleDef;
27630
27591
  }
27631
27592
  });
27593
+ var ngFactoryDef = null;
27594
+ Object.defineProperty(moduleType, NG_FACTORY_DEF, {
27595
+ get: function () {
27596
+ if (ngFactoryDef === null) {
27597
+ var compiler = getCompilerFacade();
27598
+ ngFactoryDef = compiler.compileFactory(angularCoreEnv, "ng:///" + moduleType.name + "/\u0275fac.js", {
27599
+ name: moduleType.name,
27600
+ type: moduleType,
27601
+ deps: reflectDependencies(moduleType),
27602
+ injectFn: 'inject',
27603
+ target: compiler.R3FactoryTarget.NgModule,
27604
+ typeArgumentCount: 0,
27605
+ });
27606
+ }
27607
+ return ngFactoryDef;
27608
+ },
27609
+ // Make the property configurable in dev mode to allow overriding in tests
27610
+ configurable: !!ngDevMode,
27611
+ });
27632
27612
  var ngInjectorDef = null;
27633
27613
  Object.defineProperty(moduleType, NG_INJ_DEF, {
27634
27614
  get: function () {
@@ -27638,7 +27618,6 @@
27638
27618
  var meta = {
27639
27619
  name: moduleType.name,
27640
27620
  type: moduleType,
27641
- deps: reflectDependencies(moduleType),
27642
27621
  providers: ngModule.providers || EMPTY_ARRAY$5,
27643
27622
  imports: [
27644
27623
  (ngModule.imports || EMPTY_ARRAY$5).map(resolveForwardRef),
@@ -28449,11 +28428,10 @@
28449
28428
  if (metadata && metadata.exports) {
28450
28429
  imports = __spread(imports, [metadata.exports]);
28451
28430
  }
28452
- moduleType.ɵinj = ɵɵdefineInjector({
28453
- factory: convertInjectableProviderToFactory(moduleType, { useClass: moduleType }),
28454
- providers: metadata && metadata.providers,
28455
- imports: imports,
28456
- });
28431
+ var moduleInjectorType = moduleType;
28432
+ moduleInjectorType.ɵfac = convertInjectableProviderToFactory(moduleType, { useClass: moduleType });
28433
+ moduleInjectorType.ɵinj =
28434
+ ɵɵdefineInjector({ providers: metadata && metadata.providers, imports: imports });
28457
28435
  }
28458
28436
  var SWITCH_COMPILE_NGMODULE__POST_R3__ = compileNgModule;
28459
28437
  var SWITCH_COMPILE_NGMODULE__PRE_R3__ = preR3NgModuleCompile;
@@ -30059,10 +30037,9 @@
30059
30037
  */
30060
30038
  var ApplicationRef = /** @class */ (function () {
30061
30039
  /** @internal */
30062
- function ApplicationRef(_zone, _console, _injector, _exceptionHandler, _componentFactoryResolver, _initStatus) {
30040
+ function ApplicationRef(_zone, _injector, _exceptionHandler, _componentFactoryResolver, _initStatus) {
30063
30041
  var _this = this;
30064
30042
  this._zone = _zone;
30065
- this._console = _console;
30066
30043
  this._injector = _injector;
30067
30044
  this._exceptionHandler = _exceptionHandler;
30068
30045
  this._componentFactoryResolver = _componentFactoryResolver;
@@ -30179,8 +30156,11 @@
30179
30156
  }
30180
30157
  });
30181
30158
  this._loadComponent(compRef);
30182
- if (isDevMode()) {
30183
- this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode.");
30159
+ // Note that we have still left the `isDevMode()` condition in order to avoid
30160
+ // creating a breaking change for projects that still use the View Engine.
30161
+ if ((typeof ngDevMode === 'undefined' || ngDevMode) && isDevMode()) {
30162
+ var _console = this._injector.get(Console);
30163
+ _console.log("Angular is running in development mode. Call enableProdMode() to enable production mode.");
30184
30164
  }
30185
30165
  return compRef;
30186
30166
  };
@@ -30289,7 +30269,6 @@
30289
30269
  ];
30290
30270
  ApplicationRef.ctorParameters = function () { return [
30291
30271
  { type: NgZone },
30292
- { type: Console },
30293
30272
  { type: Injector },
30294
30273
  { type: ErrorHandler },
30295
30274
  { type: ComponentFactoryResolver },
@@ -31336,7 +31315,7 @@
31336
31315
  {
31337
31316
  provide: ApplicationRef,
31338
31317
  useClass: ApplicationRef,
31339
- deps: [NgZone, Console, Injector, ErrorHandler, ComponentFactoryResolver, ApplicationInitStatus]
31318
+ deps: [NgZone, Injector, ErrorHandler, ComponentFactoryResolver, ApplicationInitStatus]
31340
31319
  },
31341
31320
  { provide: SCHEDULER, deps: [NgZone], useFactory: zoneSchedulerFactory },
31342
31321
  {
@@ -34131,7 +34110,6 @@
34131
34110
  exports.ɵɵelementStart = ɵɵelementStart;
34132
34111
  exports.ɵɵenableBindings = ɵɵenableBindings;
34133
34112
  exports.ɵɵgetCurrentView = ɵɵgetCurrentView;
34134
- exports.ɵɵgetFactoryOf = ɵɵgetFactoryOf;
34135
34113
  exports.ɵɵgetInheritedFactory = ɵɵgetInheritedFactory;
34136
34114
  exports.ɵɵhostProperty = ɵɵhostProperty;
34137
34115
  exports.ɵɵi18n = ɵɵi18n;