@angular/platform-browser 16.0.0 → 16.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Angular v16.0.0
2
+ * @license Angular v16.0.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import * as i0 from '@angular/core';
8
- import { ɵglobal, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, SkipSelf, ɵɵinject, ApplicationRef, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Injector, ENVIRONMENT_INITIALIZER, inject, ɵformatRuntimeError, makeEnvironmentProviders, ɵwithDomHydration, Version, makeStateKey as makeStateKey$1, TransferState as TransferState$1 } from '@angular/core';
8
+ import { ɵglobal, ɵRuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, SkipSelf, ɵɵinject, ApplicationRef, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Injector, ENVIRONMENT_INITIALIZER, inject, ɵformatRuntimeError, makeEnvironmentProviders, ɵwithDomHydration, Version, makeStateKey as makeStateKey$1, TransferState as TransferState$1 } from '@angular/core';
9
9
  import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';
10
10
  export { ɵgetDOM } from '@angular/common';
11
11
  import { ɵwithHttpTransferCache } from '@angular/common/http';
@@ -110,7 +110,8 @@ class BrowserGetTestability {
110
110
  ɵglobal['getAngularTestability'] = (elem, findInAncestors = true) => {
111
111
  const testability = registry.findTestabilityInTree(elem, findInAncestors);
112
112
  if (testability == null) {
113
- throw new Error('Could not find testability for element.');
113
+ throw new ɵRuntimeError(5103 /* RuntimeErrorCode.TESTABILITY_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
114
+ 'Could not find testability for element.');
114
115
  }
115
116
  return testability;
116
117
  };
@@ -161,10 +162,10 @@ class BrowserXhr {
161
162
  build() {
162
163
  return new XMLHttpRequest();
163
164
  }
164
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
165
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: BrowserXhr }); }
165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
166
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BrowserXhr }); }
166
167
  }
167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: BrowserXhr, decorators: [{
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BrowserXhr, decorators: [{
168
169
  type: Injectable
169
170
  }] });
170
171
 
@@ -213,24 +214,23 @@ class EventManager {
213
214
  }
214
215
  /** @internal */
215
216
  _findPluginFor(eventName) {
216
- const plugin = this._eventNameToPlugin.get(eventName);
217
+ let plugin = this._eventNameToPlugin.get(eventName);
217
218
  if (plugin) {
218
219
  return plugin;
219
220
  }
220
221
  const plugins = this._plugins;
221
- for (let i = 0; i < plugins.length; i++) {
222
- const plugin = plugins[i];
223
- if (plugin.supports(eventName)) {
224
- this._eventNameToPlugin.set(eventName, plugin);
225
- return plugin;
226
- }
222
+ plugin = plugins.find((plugin) => plugin.supports(eventName));
223
+ if (!plugin) {
224
+ throw new ɵRuntimeError(5101 /* RuntimeErrorCode.NO_PLUGIN_FOR_EVENT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
225
+ `No event manager plugin found for event ${eventName}`);
227
226
  }
228
- throw new Error(`No event manager plugin found for event ${eventName}`);
227
+ this._eventNameToPlugin.set(eventName, plugin);
228
+ return plugin;
229
229
  }
230
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
231
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: EventManager }); }
230
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
231
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EventManager }); }
232
232
  }
233
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: EventManager, decorators: [{
233
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: EventManager, decorators: [{
234
234
  type: Injectable
235
235
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
236
236
  type: Inject,
@@ -372,10 +372,10 @@ class SharedStylesHost {
372
372
  // Re-add the head element back since this is the default host.
373
373
  hostNodes.add(this.doc.head);
374
374
  }
375
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
376
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SharedStylesHost }); }
375
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
376
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SharedStylesHost }); }
377
377
  }
378
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SharedStylesHost, decorators: [{
378
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SharedStylesHost, decorators: [{
379
379
  type: Injectable
380
380
  }], ctorParameters: function () { return [{ type: Document, decorators: [{
381
381
  type: Inject,
@@ -491,10 +491,10 @@ class DomRendererFactory2 {
491
491
  ngOnDestroy() {
492
492
  this.rendererByCompId.clear();
493
493
  }
494
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: SharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }, { token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.NgZone }, { token: CSP_NONCE }], target: i0.ɵɵFactoryTarget.Injectable }); }
495
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomRendererFactory2 }); }
494
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: SharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }, { token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.NgZone }, { token: CSP_NONCE }], target: i0.ɵɵFactoryTarget.Injectable }); }
495
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomRendererFactory2 }); }
496
496
  }
497
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomRendererFactory2, decorators: [{
497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomRendererFactory2, decorators: [{
498
498
  type: Injectable
499
499
  }], ctorParameters: function () { return [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
500
500
  type: Inject,
@@ -562,7 +562,8 @@ class DefaultDomRenderer2 {
562
562
  let el = typeof selectorOrNode === 'string' ? this.doc.querySelector(selectorOrNode) :
563
563
  selectorOrNode;
564
564
  if (!el) {
565
- throw new Error(`The selector "${selectorOrNode}" did not match any elements`);
565
+ throw new ɵRuntimeError(5104 /* RuntimeErrorCode.ROOT_NODE_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
566
+ `The selector "${selectorOrNode}" did not match any elements`);
566
567
  }
567
568
  if (!preserveContent) {
568
569
  el.textContent = '';
@@ -665,7 +666,6 @@ class DefaultDomRenderer2 {
665
666
  eventHandler(event);
666
667
  if (allowDefaultBehavior === false) {
667
668
  event.preventDefault();
668
- event.returnValue = false;
669
669
  }
670
670
  return undefined;
671
671
  };
@@ -674,7 +674,7 @@ class DefaultDomRenderer2 {
674
674
  const AT_CHARCODE = (() => '@'.charCodeAt(0))();
675
675
  function checkNoSyntheticProp(name, nameKind) {
676
676
  if (name.charCodeAt(0) === AT_CHARCODE) {
677
- throw new Error(`Unexpected synthetic ${nameKind} ${name} found. Please make sure that:
677
+ throw new ɵRuntimeError(5105 /* RuntimeErrorCode.UNEXPECTED_SYNTHETIC_PROPERTY */, `Unexpected synthetic ${nameKind} ${name} found. Please make sure that:
678
678
  - Either \`BrowserAnimationsModule\` or \`NoopAnimationsModule\` are imported in your application.
679
679
  - There is corresponding configuration for the animation named \`${name}\` defined in the \`animations\` field of the \`@Component\` decorator (see https://angular.io/api/core/Component#animations).`);
680
680
  }
@@ -775,10 +775,10 @@ class DomEventsPlugin extends EventManagerPlugin {
775
775
  removeEventListener(target, eventName, callback) {
776
776
  return target.removeEventListener(eventName, callback);
777
777
  }
778
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
779
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomEventsPlugin }); }
778
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
779
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomEventsPlugin }); }
780
780
  }
781
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomEventsPlugin, decorators: [{
781
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomEventsPlugin, decorators: [{
782
782
  type: Injectable
783
783
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
784
784
  type: Inject,
@@ -954,10 +954,10 @@ class KeyEventsPlugin extends EventManagerPlugin {
954
954
  return keyName;
955
955
  }
956
956
  }
957
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
958
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: KeyEventsPlugin }); }
957
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
958
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: KeyEventsPlugin }); }
959
959
  }
960
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: KeyEventsPlugin, decorators: [{
960
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: KeyEventsPlugin, decorators: [{
961
961
  type: Injectable
962
962
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
963
963
  type: Inject,
@@ -1142,7 +1142,7 @@ const BROWSER_MODULE_PROVIDERS = [
1142
1142
  class BrowserModule {
1143
1143
  constructor(providersAlreadyPresent) {
1144
1144
  if ((typeof ngDevMode === 'undefined' || ngDevMode) && providersAlreadyPresent) {
1145
- throw new Error(`Providers from the \`BrowserModule\` have already been loaded. If you need access ` +
1145
+ throw new ɵRuntimeError(5100 /* RuntimeErrorCode.BROWER_MODULE_ALREADY_LOADED */, `Providers from the \`BrowserModule\` have already been loaded. If you need access ` +
1146
1146
  `to common directives such as NgIf and NgFor, import the \`CommonModule\` instead.`);
1147
1147
  }
1148
1148
  }
@@ -1164,11 +1164,11 @@ class BrowserModule {
1164
1164
  ],
1165
1165
  };
1166
1166
  }
1167
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
1168
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] }); }
1169
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] }); }
1167
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
1168
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] }); }
1169
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] }); }
1170
1170
  }
1171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: BrowserModule, decorators: [{
1171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BrowserModule, decorators: [{
1172
1172
  type: NgModule,
1173
1173
  args: [{
1174
1174
  providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
@@ -1338,10 +1338,10 @@ class Meta {
1338
1338
  _getMetaKeyMap(prop) {
1339
1339
  return META_KEYS_MAP[prop] || prop;
1340
1340
  }
1341
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1342
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] }); }
1341
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1342
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] }); }
1343
1343
  }
1344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: Meta, decorators: [{
1344
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: Meta, decorators: [{
1345
1345
  type: Injectable,
1346
1346
  args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
1347
1347
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -1388,10 +1388,10 @@ class Title {
1388
1388
  setTitle(newTitle) {
1389
1389
  this._doc.title = newTitle || '';
1390
1390
  }
1391
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1392
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] }); }
1391
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1392
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] }); }
1393
1393
  }
1394
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: Title, decorators: [{
1394
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: Title, decorators: [{
1395
1395
  type: Injectable,
1396
1396
  args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
1397
1397
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -1660,10 +1660,10 @@ class HammerGestureConfig {
1660
1660
  }
1661
1661
  return mc;
1662
1662
  }
1663
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1664
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HammerGestureConfig }); }
1663
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1664
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: HammerGestureConfig }); }
1665
1665
  }
1666
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HammerGestureConfig, decorators: [{
1666
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: HammerGestureConfig, decorators: [{
1667
1667
  type: Injectable
1668
1668
  }] });
1669
1669
  /**
@@ -1758,10 +1758,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
1758
1758
  isCustomEvent(eventName) {
1759
1759
  return this._config.events.indexOf(eventName) > -1;
1760
1760
  }
1761
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1762
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HammerGesturesPlugin }); }
1761
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1762
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: HammerGesturesPlugin }); }
1763
1763
  }
1764
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1764
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
1765
1765
  type: Injectable
1766
1766
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1767
1767
  type: Inject,
@@ -1787,9 +1787,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
1787
1787
  * @publicApi
1788
1788
  */
1789
1789
  class HammerModule {
1790
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1791
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: HammerModule }); }
1792
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HammerModule, providers: [
1790
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1791
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: HammerModule }); }
1792
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: HammerModule, providers: [
1793
1793
  {
1794
1794
  provide: EVENT_MANAGER_PLUGINS,
1795
1795
  useClass: HammerGesturesPlugin,
@@ -1799,7 +1799,7 @@ class HammerModule {
1799
1799
  { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
1800
1800
  ] }); }
1801
1801
  }
1802
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HammerModule, decorators: [{
1802
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: HammerModule, decorators: [{
1803
1803
  type: NgModule,
1804
1804
  args: [{
1805
1805
  providers: [
@@ -1846,10 +1846,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
1846
1846
  * @publicApi
1847
1847
  */
1848
1848
  class DomSanitizer {
1849
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1850
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) }); }
1849
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1850
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) }); }
1851
1851
  }
1852
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomSanitizer, decorators: [{
1852
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomSanitizer, decorators: [{
1853
1853
  type: Injectable,
1854
1854
  args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
1855
1855
  }] });
@@ -1881,7 +1881,8 @@ class DomSanitizerImpl extends DomSanitizer {
1881
1881
  if (ɵallowSanitizationBypassAndThrow(value, "Script" /* BypassType.Script */)) {
1882
1882
  return ɵunwrapSafeValue(value);
1883
1883
  }
1884
- throw new Error('unsafe value used in a script context');
1884
+ throw new ɵRuntimeError(5200 /* RuntimeErrorCode.SANITIZATION_UNSAFE_SCRIPT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
1885
+ 'unsafe value used in a script context');
1885
1886
  case SecurityContext.URL:
1886
1887
  if (ɵallowSanitizationBypassAndThrow(value, "URL" /* BypassType.Url */)) {
1887
1888
  return ɵunwrapSafeValue(value);
@@ -1891,9 +1892,11 @@ class DomSanitizerImpl extends DomSanitizer {
1891
1892
  if (ɵallowSanitizationBypassAndThrow(value, "ResourceURL" /* BypassType.ResourceUrl */)) {
1892
1893
  return ɵunwrapSafeValue(value);
1893
1894
  }
1894
- throw new Error(`unsafe value used in a resource URL context (see ${ɵXSS_SECURITY_URL})`);
1895
+ throw new ɵRuntimeError(5201 /* RuntimeErrorCode.SANITIZATION_UNSAFE_RESOURCE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
1896
+ `unsafe value used in a resource URL context (see ${ɵXSS_SECURITY_URL})`);
1895
1897
  default:
1896
- throw new Error(`Unexpected SecurityContext ${ctx} (see ${ɵXSS_SECURITY_URL})`);
1898
+ throw new ɵRuntimeError(5202 /* RuntimeErrorCode.SANITIZATION_UNEXPECTED_CTX */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
1899
+ `Unexpected SecurityContext ${ctx} (see ${ɵXSS_SECURITY_URL})`);
1897
1900
  }
1898
1901
  }
1899
1902
  bypassSecurityTrustHtml(value) {
@@ -1911,10 +1914,10 @@ class DomSanitizerImpl extends DomSanitizer {
1911
1914
  bypassSecurityTrustResourceUrl(value) {
1912
1915
  return ɵbypassSanitizationTrustResourceUrl(value);
1913
1916
  }
1914
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1915
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] }); }
1917
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1918
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] }); }
1916
1919
  }
1917
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: DomSanitizerImpl, decorators: [{
1920
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DomSanitizerImpl, decorators: [{
1918
1921
  type: Injectable,
1919
1922
  args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
1920
1923
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -2062,7 +2065,7 @@ function provideClientHydration(...features) {
2062
2065
  /**
2063
2066
  * @publicApi
2064
2067
  */
2065
- const VERSION = new Version('16.0.0');
2068
+ const VERSION = new Version('16.0.2');
2066
2069
 
2067
2070
  // Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
2068
2071
  /**