1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, DOCUMENT, ɵPLATFORM_BROWSER_ID, CommonModule } from '@angular/common';
|
8 | export { ɵgetDOM } from '@angular/common';
|
9 | import { ɵglobal, InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, setTestabilityGetter, ApplicationRef, NgZone, ɵgetDebugNodeR2, NgProbeToken, Optional, Injectable, Inject, ViewEncapsulation, APP_ID, RendererStyleFlags2, ɵConsole, NgModule, ɵɵdefineInjectable, ɵɵinject, forwardRef, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵgetSanitizationBypassType, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, INJECTOR, ErrorHandler, ɵsetDocument, PLATFORM_ID, PLATFORM_INITIALIZER, Sanitizer, createPlatformFactory, platformCore, ɵINJECTOR_SCOPE, RendererFactory2, Testability, ApplicationModule, SkipSelf, Version } from '@angular/core';
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | class GenericBrowserDomAdapter extends ɵDomAdapter {
|
25 | constructor() {
|
26 | super();
|
27 | }
|
28 | supportsDOMEvents() {
|
29 | return true;
|
30 | }
|
31 | }
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | const ɵ0 = () => {
|
41 | if (ɵglobal['Node']) {
|
42 | return ɵglobal['Node'].prototype.contains || function (node) {
|
43 | return !!(this.compareDocumentPosition(node) & 16);
|
44 | };
|
45 | }
|
46 | return undefined;
|
47 | };
|
48 | const nodeContains = (ɵ0)();
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
57 | static makeCurrent() {
|
58 | ɵsetRootDomAdapter(new BrowserDomAdapter());
|
59 | }
|
60 | getProperty(el, name) {
|
61 | return el[name];
|
62 | }
|
63 | log(error) {
|
64 | if (window.console) {
|
65 | window.console.log && window.console.log(error);
|
66 | }
|
67 | }
|
68 | logGroup(error) {
|
69 | if (window.console) {
|
70 | window.console.group && window.console.group(error);
|
71 | }
|
72 | }
|
73 | logGroupEnd() {
|
74 | if (window.console) {
|
75 | window.console.groupEnd && window.console.groupEnd();
|
76 | }
|
77 | }
|
78 | onAndCancel(el, evt, listener) {
|
79 | el.addEventListener(evt, listener, false);
|
80 |
|
81 |
|
82 | return () => {
|
83 | el.removeEventListener(evt, listener, false);
|
84 | };
|
85 | }
|
86 | dispatchEvent(el, evt) {
|
87 | el.dispatchEvent(evt);
|
88 | }
|
89 | remove(node) {
|
90 | if (node.parentNode) {
|
91 | node.parentNode.removeChild(node);
|
92 | }
|
93 | return node;
|
94 | }
|
95 | getValue(el) {
|
96 | return el.value;
|
97 | }
|
98 | createElement(tagName, doc) {
|
99 | doc = doc || this.getDefaultDocument();
|
100 | return doc.createElement(tagName);
|
101 | }
|
102 | createHtmlDocument() {
|
103 | return document.implementation.createHTMLDocument('fakeTitle');
|
104 | }
|
105 | getDefaultDocument() {
|
106 | return document;
|
107 | }
|
108 | isElementNode(node) {
|
109 | return node.nodeType === Node.ELEMENT_NODE;
|
110 | }
|
111 | isShadowRoot(node) {
|
112 | return node instanceof DocumentFragment;
|
113 | }
|
114 | getGlobalEventTarget(doc, target) {
|
115 | if (target === 'window') {
|
116 | return window;
|
117 | }
|
118 | if (target === 'document') {
|
119 | return doc;
|
120 | }
|
121 | if (target === 'body') {
|
122 | return doc.body;
|
123 | }
|
124 | return null;
|
125 | }
|
126 | getHistory() {
|
127 | return window.history;
|
128 | }
|
129 | getLocation() {
|
130 | return window.location;
|
131 | }
|
132 | getBaseHref(doc) {
|
133 | const href = getBaseElementHref();
|
134 | return href == null ? null : relativePath(href);
|
135 | }
|
136 | resetBaseElement() {
|
137 | baseElement = null;
|
138 | }
|
139 | getUserAgent() {
|
140 | return window.navigator.userAgent;
|
141 | }
|
142 | performanceNow() {
|
143 |
|
144 |
|
145 | return window.performance && window.performance.now ? window.performance.now() :
|
146 | new Date().getTime();
|
147 | }
|
148 | supportsCookies() {
|
149 | return true;
|
150 | }
|
151 | getCookie(name) {
|
152 | return ɵparseCookieValue(document.cookie, name);
|
153 | }
|
154 | }
|
155 | let baseElement = null;
|
156 | function getBaseElementHref() {
|
157 | if (!baseElement) {
|
158 | baseElement = document.querySelector('base');
|
159 | if (!baseElement) {
|
160 | return null;
|
161 | }
|
162 | }
|
163 | return baseElement.getAttribute('href');
|
164 | }
|
165 |
|
166 | let urlParsingNode;
|
167 | function relativePath(url) {
|
168 | if (!urlParsingNode) {
|
169 | urlParsingNode = document.createElement('a');
|
170 | }
|
171 | urlParsingNode.setAttribute('href', url);
|
172 | return (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname :
|
173 | '/' + urlParsingNode.pathname;
|
174 | }
|
175 |
|
176 |
|
177 |
|
178 |
|
179 |
|
180 |
|
181 |
|
182 |
|
183 |
|
184 |
|
185 |
|
186 |
|
187 | const TRANSITION_ID = new InjectionToken('TRANSITION_ID');
|
188 | function appInitializerFactory(transitionId, document, injector) {
|
189 | return () => {
|
190 |
|
191 |
|
192 | injector.get(ApplicationInitStatus).donePromise.then(() => {
|
193 | const dom = ɵgetDOM();
|
194 | const styles = Array.prototype.slice.apply(document.querySelectorAll(`style[ng-transition]`));
|
195 | styles.filter(el => el.getAttribute('ng-transition') === transitionId)
|
196 | .forEach(el => dom.remove(el));
|
197 | });
|
198 | };
|
199 | }
|
200 | const SERVER_TRANSITION_PROVIDERS = [
|
201 | {
|
202 | provide: APP_INITIALIZER,
|
203 | useFactory: appInitializerFactory,
|
204 | deps: [TRANSITION_ID, DOCUMENT, Injector],
|
205 | multi: true
|
206 | },
|
207 | ];
|
208 |
|
209 |
|
210 |
|
211 |
|
212 |
|
213 |
|
214 |
|
215 |
|
216 | class BrowserGetTestability {
|
217 | static init() {
|
218 | setTestabilityGetter(new BrowserGetTestability());
|
219 | }
|
220 | addToWindow(registry) {
|
221 | ɵglobal['getAngularTestability'] = (elem, findInAncestors = true) => {
|
222 | const testability = registry.findTestabilityInTree(elem, findInAncestors);
|
223 | if (testability == null) {
|
224 | throw new Error('Could not find testability for element.');
|
225 | }
|
226 | return testability;
|
227 | };
|
228 | ɵglobal['getAllAngularTestabilities'] = () => registry.getAllTestabilities();
|
229 | ɵglobal['getAllAngularRootElements'] = () => registry.getAllRootElements();
|
230 | const whenAllStable = (callback /** TODO #9100 */) => {
|
231 | const testabilities = ɵglobal['getAllAngularTestabilities']();
|
232 | let count = testabilities.length;
|
233 | let didWork = false;
|
234 | const decrement = function (didWork_ /** TODO #9100 */) {
|
235 | didWork = didWork || didWork_;
|
236 | count--;
|
237 | if (count == 0) {
|
238 | callback(didWork);
|
239 | }
|
240 | };
|
241 | testabilities.forEach(function (testability /** TODO #9100 */) {
|
242 | testability.whenStable(decrement);
|
243 | });
|
244 | };
|
245 | if (!ɵglobal['frameworkStabilizers']) {
|
246 | ɵglobal['frameworkStabilizers'] = [];
|
247 | }
|
248 | ɵglobal['frameworkStabilizers'].push(whenAllStable);
|
249 | }
|
250 | findTestabilityInTree(registry, elem, findInAncestors) {
|
251 | if (elem == null) {
|
252 | return null;
|
253 | }
|
254 | const t = registry.getTestability(elem);
|
255 | if (t != null) {
|
256 | return t;
|
257 | }
|
258 | else if (!findInAncestors) {
|
259 | return null;
|
260 | }
|
261 | if (ɵgetDOM().isShadowRoot(elem)) {
|
262 | return this.findTestabilityInTree(registry, elem.host, true);
|
263 | }
|
264 | return this.findTestabilityInTree(registry, elem.parentElement, true);
|
265 | }
|
266 | }
|
267 |
|
268 |
|
269 |
|
270 |
|
271 |
|
272 |
|
273 |
|
274 |
|
275 | const CAMEL_CASE_REGEXP = /([A-Z])/g;
|
276 | const DASH_CASE_REGEXP = /-([a-z])/g;
|
277 | function camelCaseToDashCase(input) {
|
278 | return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());
|
279 | }
|
280 | function dashCaseToCamelCase(input) {
|
281 | return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
282 | }
|
283 |
|
284 |
|
285 |
|
286 |
|
287 |
|
288 |
|
289 |
|
290 | function exportNgVar(name, value) {
|
291 | if (typeof COMPILED === 'undefined' || !COMPILED) {
|
292 |
|
293 |
|
294 |
|
295 |
|
296 | const ng = ɵglobal['ng'] = ɵglobal['ng'] || {};
|
297 | ng[name] = value;
|
298 | }
|
299 | }
|
300 |
|
301 |
|
302 |
|
303 |
|
304 |
|
305 |
|
306 |
|
307 |
|
308 | const ɵ0$1 = () => ({
|
309 | 'ApplicationRef': ApplicationRef,
|
310 | 'NgZone': NgZone,
|
311 | });
|
312 | const CORE_TOKENS = (ɵ0$1)();
|
313 | const INSPECT_GLOBAL_NAME = 'probe';
|
314 | const CORE_TOKENS_GLOBAL_NAME = 'coreTokens';
|
315 |
|
316 |
|
317 |
|
318 |
|
319 |
|
320 | function inspectNativeElementR2(element) {
|
321 | return ɵgetDebugNodeR2(element);
|
322 | }
|
323 | function _createNgProbeR2(coreTokens) {
|
324 | exportNgVar(INSPECT_GLOBAL_NAME, inspectNativeElementR2);
|
325 | exportNgVar(CORE_TOKENS_GLOBAL_NAME, Object.assign(Object.assign({}, CORE_TOKENS), _ngProbeTokensToMap(coreTokens || [])));
|
326 | return () => inspectNativeElementR2;
|
327 | }
|
328 | function _ngProbeTokensToMap(tokens) {
|
329 | return tokens.reduce((prev, t) => (prev[t.name] = t.token, prev), {});
|
330 | }
|
331 |
|
332 |
|
333 |
|
334 |
|
335 |
|
336 |
|
337 |
|
338 | const ELEMENT_PROBE_PROVIDERS__POST_R3__ = [];
|
339 |
|
340 |
|
341 |
|
342 | const ELEMENT_PROBE_PROVIDERS__PRE_R3__ = [
|
343 | {
|
344 | provide: APP_INITIALIZER,
|
345 | useFactory: _createNgProbeR2,
|
346 | deps: [
|
347 | [NgProbeToken, new Optional()],
|
348 | ],
|
349 | multi: true,
|
350 | },
|
351 | ];
|
352 | const ELEMENT_PROBE_PROVIDERS = ELEMENT_PROBE_PROVIDERS__PRE_R3__;
|
353 |
|
354 |
|
355 |
|
356 |
|
357 |
|
358 |
|
359 |
|
360 |
|
361 |
|
362 |
|
363 |
|
364 |
|
365 |
|
366 | const EVENT_MANAGER_PLUGINS = new InjectionToken('EventManagerPlugins');
|
367 |
|
368 |
|
369 |
|
370 |
|
371 |
|
372 |
|
373 | class EventManager {
|
374 | |
375 |
|
376 |
|
377 | constructor(plugins, _zone) {
|
378 | this._zone = _zone;
|
379 | this._eventNameToPlugin = new Map();
|
380 | plugins.forEach(p => p.manager = this);
|
381 | this._plugins = plugins.slice().reverse();
|
382 | }
|
383 | |
384 |
|
385 |
|
386 |
|
387 |
|
388 |
|
389 |
|
390 |
|
391 |
|
392 | addEventListener(element, eventName, handler) {
|
393 | const plugin = this._findPluginFor(eventName);
|
394 | return plugin.addEventListener(element, eventName, handler);
|
395 | }
|
396 | |
397 |
|
398 |
|
399 |
|
400 |
|
401 |
|
402 |
|
403 |
|
404 |
|
405 | addGlobalEventListener(target, eventName, handler) {
|
406 | const plugin = this._findPluginFor(eventName);
|
407 | return plugin.addGlobalEventListener(target, eventName, handler);
|
408 | }
|
409 | |
410 |
|
411 |
|
412 | getZone() {
|
413 | return this._zone;
|
414 | }
|
415 |
|
416 | _findPluginFor(eventName) {
|
417 | const plugin = this._eventNameToPlugin.get(eventName);
|
418 | if (plugin) {
|
419 | return plugin;
|
420 | }
|
421 | const plugins = this._plugins;
|
422 | for (let i = 0; i < plugins.length; i++) {
|
423 | const plugin = plugins[i];
|
424 | if (plugin.supports(eventName)) {
|
425 | this._eventNameToPlugin.set(eventName, plugin);
|
426 | return plugin;
|
427 | }
|
428 | }
|
429 | throw new Error(`No event manager plugin found for event ${eventName}`);
|
430 | }
|
431 | }
|
432 | EventManager.decorators = [
|
433 | { type: Injectable }
|
434 | ];
|
435 | EventManager.ctorParameters = () => [
|
436 | { type: Array, decorators: [{ type: Inject, args: [EVENT_MANAGER_PLUGINS,] }] },
|
437 | { type: NgZone }
|
438 | ];
|
439 | class EventManagerPlugin {
|
440 | constructor(_doc) {
|
441 | this._doc = _doc;
|
442 | }
|
443 | addGlobalEventListener(element, eventName, handler) {
|
444 | const target = ɵgetDOM().getGlobalEventTarget(this._doc, element);
|
445 | if (!target) {
|
446 | throw new Error(`Unsupported event target ${target} for event ${eventName}`);
|
447 | }
|
448 | return this.addEventListener(target, eventName, handler);
|
449 | }
|
450 | }
|
451 |
|
452 |
|
453 |
|
454 |
|
455 |
|
456 |
|
457 |
|
458 |
|
459 | class SharedStylesHost {
|
460 | constructor() {
|
461 |
|
462 | this._stylesSet = new Set();
|
463 | }
|
464 | addStyles(styles) {
|
465 | const additions = new Set();
|
466 | styles.forEach(style => {
|
467 | if (!this._stylesSet.has(style)) {
|
468 | this._stylesSet.add(style);
|
469 | additions.add(style);
|
470 | }
|
471 | });
|
472 | this.onStylesAdded(additions);
|
473 | }
|
474 | onStylesAdded(additions) { }
|
475 | getAllStyles() {
|
476 | return Array.from(this._stylesSet);
|
477 | }
|
478 | }
|
479 | SharedStylesHost.decorators = [
|
480 | { type: Injectable }
|
481 | ];
|
482 | class DomSharedStylesHost extends SharedStylesHost {
|
483 | constructor(_doc) {
|
484 | super();
|
485 | this._doc = _doc;
|
486 | this._hostNodes = new Set();
|
487 | this._styleNodes = new Set();
|
488 | this._hostNodes.add(_doc.head);
|
489 | }
|
490 | _addStylesToHost(styles, host) {
|
491 | styles.forEach((style) => {
|
492 | const styleEl = this._doc.createElement('style');
|
493 | styleEl.textContent = style;
|
494 | this._styleNodes.add(host.appendChild(styleEl));
|
495 | });
|
496 | }
|
497 | addHost(hostNode) {
|
498 | this._addStylesToHost(this._stylesSet, hostNode);
|
499 | this._hostNodes.add(hostNode);
|
500 | }
|
501 | removeHost(hostNode) {
|
502 | this._hostNodes.delete(hostNode);
|
503 | }
|
504 | onStylesAdded(additions) {
|
505 | this._hostNodes.forEach(hostNode => this._addStylesToHost(additions, hostNode));
|
506 | }
|
507 | ngOnDestroy() {
|
508 | this._styleNodes.forEach(styleNode => ɵgetDOM().remove(styleNode));
|
509 | }
|
510 | }
|
511 | DomSharedStylesHost.decorators = [
|
512 | { type: Injectable }
|
513 | ];
|
514 | DomSharedStylesHost.ctorParameters = () => [
|
515 | { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
516 | ];
|
517 |
|
518 |
|
519 |
|
520 |
|
521 |
|
522 |
|
523 |
|
524 |
|
525 | const NAMESPACE_URIS = {
|
526 | 'svg': 'http://www.w3.org/2000/svg',
|
527 | 'xhtml': 'http://www.w3.org/1999/xhtml',
|
528 | 'xlink': 'http://www.w3.org/1999/xlink',
|
529 | 'xml': 'http://www.w3.org/XML/1998/namespace',
|
530 | 'xmlns': 'http://www.w3.org/2000/xmlns/',
|
531 | };
|
532 | const COMPONENT_REGEX = /%COMP%/g;
|
533 | const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
534 | const COMPONENT_VARIABLE = '%COMP%';
|
535 | const HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
536 | const CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;
|
537 | function shimContentAttribute(componentShortId) {
|
538 | return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId);
|
539 | }
|
540 | function shimHostAttribute(componentShortId) {
|
541 | return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);
|
542 | }
|
543 | function flattenStyles(compId, styles, target) {
|
544 | for (let i = 0; i < styles.length; i++) {
|
545 | let style = styles[i];
|
546 | if (Array.isArray(style)) {
|
547 | flattenStyles(compId, style, target);
|
548 | }
|
549 | else {
|
550 | style = style.replace(COMPONENT_REGEX, compId);
|
551 | target.push(style);
|
552 | }
|
553 | }
|
554 | return target;
|
555 | }
|
556 | function decoratePreventDefault(eventHandler) {
|
557 |
|
558 |
|
559 |
|
560 |
|
561 | return (event) => {
|
562 |
|
563 |
|
564 |
|
565 |
|
566 | if (event === '__ngUnwrap__') {
|
567 | return eventHandler;
|
568 | }
|
569 | const allowDefaultBehavior = eventHandler(event);
|
570 | if (allowDefaultBehavior === false) {
|
571 |
|
572 | event.preventDefault();
|
573 | event.returnValue = false;
|
574 | }
|
575 | return undefined;
|
576 | };
|
577 | }
|
578 | class DomRendererFactory2 {
|
579 | constructor(eventManager, sharedStylesHost, appId) {
|
580 | this.eventManager = eventManager;
|
581 | this.sharedStylesHost = sharedStylesHost;
|
582 | this.appId = appId;
|
583 | this.rendererByCompId = new Map();
|
584 | this.defaultRenderer = new DefaultDomRenderer2(eventManager);
|
585 | }
|
586 | createRenderer(element, type) {
|
587 | if (!element || !type) {
|
588 | return this.defaultRenderer;
|
589 | }
|
590 | switch (type.encapsulation) {
|
591 | case ViewEncapsulation.Emulated: {
|
592 | let renderer = this.rendererByCompId.get(type.id);
|
593 | if (!renderer) {
|
594 | renderer = new EmulatedEncapsulationDomRenderer2(this.eventManager, this.sharedStylesHost, type, this.appId);
|
595 | this.rendererByCompId.set(type.id, renderer);
|
596 | }
|
597 | renderer.applyToHost(element);
|
598 | return renderer;
|
599 | }
|
600 | case ViewEncapsulation.Native:
|
601 | case ViewEncapsulation.ShadowDom:
|
602 | return new ShadowDomRenderer(this.eventManager, this.sharedStylesHost, element, type);
|
603 | default: {
|
604 | if (!this.rendererByCompId.has(type.id)) {
|
605 | const styles = flattenStyles(type.id, type.styles, []);
|
606 | this.sharedStylesHost.addStyles(styles);
|
607 | this.rendererByCompId.set(type.id, this.defaultRenderer);
|
608 | }
|
609 | return this.defaultRenderer;
|
610 | }
|
611 | }
|
612 | }
|
613 | begin() { }
|
614 | end() { }
|
615 | }
|
616 | DomRendererFactory2.decorators = [
|
617 | { type: Injectable }
|
618 | ];
|
619 | DomRendererFactory2.ctorParameters = () => [
|
620 | { type: EventManager },
|
621 | { type: DomSharedStylesHost },
|
622 | { type: String, decorators: [{ type: Inject, args: [APP_ID,] }] }
|
623 | ];
|
624 | class DefaultDomRenderer2 {
|
625 | constructor(eventManager) {
|
626 | this.eventManager = eventManager;
|
627 | this.data = Object.create(null);
|
628 | }
|
629 | destroy() { }
|
630 | createElement(name, namespace) {
|
631 | if (namespace) {
|
632 |
|
633 |
|
634 | return document.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);
|
635 | }
|
636 | return document.createElement(name);
|
637 | }
|
638 | createComment(value) {
|
639 | return document.createComment(value);
|
640 | }
|
641 | createText(value) {
|
642 | return document.createTextNode(value);
|
643 | }
|
644 | appendChild(parent, newChild) {
|
645 | parent.appendChild(newChild);
|
646 | }
|
647 | insertBefore(parent, newChild, refChild) {
|
648 | if (parent) {
|
649 | parent.insertBefore(newChild, refChild);
|
650 | }
|
651 | }
|
652 | removeChild(parent, oldChild) {
|
653 | if (parent) {
|
654 | parent.removeChild(oldChild);
|
655 | }
|
656 | }
|
657 | selectRootElement(selectorOrNode, preserveContent) {
|
658 | let el = typeof selectorOrNode === 'string' ? document.querySelector(selectorOrNode) :
|
659 | selectorOrNode;
|
660 | if (!el) {
|
661 | throw new Error(`The selector "${selectorOrNode}" did not match any elements`);
|
662 | }
|
663 | if (!preserveContent) {
|
664 | el.textContent = '';
|
665 | }
|
666 | return el;
|
667 | }
|
668 | parentNode(node) {
|
669 | return node.parentNode;
|
670 | }
|
671 | nextSibling(node) {
|
672 | return node.nextSibling;
|
673 | }
|
674 | setAttribute(el, name, value, namespace) {
|
675 | if (namespace) {
|
676 | name = namespace + ':' + name;
|
677 |
|
678 |
|
679 | const namespaceUri = NAMESPACE_URIS[namespace];
|
680 | if (namespaceUri) {
|
681 | el.setAttributeNS(namespaceUri, name, value);
|
682 | }
|
683 | else {
|
684 | el.setAttribute(name, value);
|
685 | }
|
686 | }
|
687 | else {
|
688 | el.setAttribute(name, value);
|
689 | }
|
690 | }
|
691 | removeAttribute(el, name, namespace) {
|
692 | if (namespace) {
|
693 |
|
694 |
|
695 | const namespaceUri = NAMESPACE_URIS[namespace];
|
696 | if (namespaceUri) {
|
697 | el.removeAttributeNS(namespaceUri, name);
|
698 | }
|
699 | else {
|
700 |
|
701 |
|
702 |
|
703 | el.removeAttribute(`${namespace}:${name}`);
|
704 | }
|
705 | }
|
706 | else {
|
707 | el.removeAttribute(name);
|
708 | }
|
709 | }
|
710 | addClass(el, name) {
|
711 | el.classList.add(name);
|
712 | }
|
713 | removeClass(el, name) {
|
714 | el.classList.remove(name);
|
715 | }
|
716 | setStyle(el, style, value, flags) {
|
717 | if (flags & RendererStyleFlags2.DashCase) {
|
718 | el.style.setProperty(style, value, !!(flags & RendererStyleFlags2.Important) ? 'important' : '');
|
719 | }
|
720 | else {
|
721 | el.style[style] = value;
|
722 | }
|
723 | }
|
724 | removeStyle(el, style, flags) {
|
725 | if (flags & RendererStyleFlags2.DashCase) {
|
726 | el.style.removeProperty(style);
|
727 | }
|
728 | else {
|
729 |
|
730 |
|
731 | el.style[style] = '';
|
732 | }
|
733 | }
|
734 | setProperty(el, name, value) {
|
735 | NG_DEV_MODE && checkNoSyntheticProp(name, 'property');
|
736 | el[name] = value;
|
737 | }
|
738 | setValue(node, value) {
|
739 | node.nodeValue = value;
|
740 | }
|
741 | listen(target, event, callback) {
|
742 | NG_DEV_MODE && checkNoSyntheticProp(event, 'listener');
|
743 | if (typeof target === 'string') {
|
744 | return this.eventManager.addGlobalEventListener(target, event, decoratePreventDefault(callback));
|
745 | }
|
746 | return this.eventManager.addEventListener(target, event, decoratePreventDefault(callback));
|
747 | }
|
748 | }
|
749 | const ɵ0$2 = () => '@'.charCodeAt(0);
|
750 | const AT_CHARCODE = (ɵ0$2)();
|
751 | function checkNoSyntheticProp(name, nameKind) {
|
752 | if (name.charCodeAt(0) === AT_CHARCODE) {
|
753 | throw new Error(`Found the synthetic ${nameKind} ${name}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`);
|
754 | }
|
755 | }
|
756 | class EmulatedEncapsulationDomRenderer2 extends DefaultDomRenderer2 {
|
757 | constructor(eventManager, sharedStylesHost, component, appId) {
|
758 | super(eventManager);
|
759 | this.component = component;
|
760 | const styles = flattenStyles(appId + '-' + component.id, component.styles, []);
|
761 | sharedStylesHost.addStyles(styles);
|
762 | this.contentAttr = shimContentAttribute(appId + '-' + component.id);
|
763 | this.hostAttr = shimHostAttribute(appId + '-' + component.id);
|
764 | }
|
765 | applyToHost(element) {
|
766 | super.setAttribute(element, this.hostAttr, '');
|
767 | }
|
768 | createElement(parent, name) {
|
769 | const el = super.createElement(parent, name);
|
770 | super.setAttribute(el, this.contentAttr, '');
|
771 | return el;
|
772 | }
|
773 | }
|
774 | class ShadowDomRenderer extends DefaultDomRenderer2 {
|
775 | constructor(eventManager, sharedStylesHost, hostEl, component) {
|
776 | super(eventManager);
|
777 | this.sharedStylesHost = sharedStylesHost;
|
778 | this.hostEl = hostEl;
|
779 | this.component = component;
|
780 | if (component.encapsulation === ViewEncapsulation.ShadowDom) {
|
781 | this.shadowRoot = hostEl.attachShadow({ mode: 'open' });
|
782 | }
|
783 | else {
|
784 | this.shadowRoot = hostEl.createShadowRoot();
|
785 | }
|
786 | this.sharedStylesHost.addHost(this.shadowRoot);
|
787 | const styles = flattenStyles(component.id, component.styles, []);
|
788 | for (let i = 0; i < styles.length; i++) {
|
789 | const styleEl = document.createElement('style');
|
790 | styleEl.textContent = styles[i];
|
791 | this.shadowRoot.appendChild(styleEl);
|
792 | }
|
793 | }
|
794 | nodeOrShadowRoot(node) {
|
795 | return node === this.hostEl ? this.shadowRoot : node;
|
796 | }
|
797 | destroy() {
|
798 | this.sharedStylesHost.removeHost(this.shadowRoot);
|
799 | }
|
800 | appendChild(parent, newChild) {
|
801 | return super.appendChild(this.nodeOrShadowRoot(parent), newChild);
|
802 | }
|
803 | insertBefore(parent, newChild, refChild) {
|
804 | return super.insertBefore(this.nodeOrShadowRoot(parent), newChild, refChild);
|
805 | }
|
806 | removeChild(parent, oldChild) {
|
807 | return super.removeChild(this.nodeOrShadowRoot(parent), oldChild);
|
808 | }
|
809 | parentNode(node) {
|
810 | return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node)));
|
811 | }
|
812 | }
|
813 |
|
814 |
|
815 |
|
816 |
|
817 |
|
818 |
|
819 |
|
820 |
|
821 | class DomEventsPlugin extends EventManagerPlugin {
|
822 | constructor(doc) {
|
823 | super(doc);
|
824 | }
|
825 |
|
826 |
|
827 | supports(eventName) {
|
828 | return true;
|
829 | }
|
830 | addEventListener(element, eventName, handler) {
|
831 | element.addEventListener(eventName, handler, false);
|
832 | return () => this.removeEventListener(element, eventName, handler);
|
833 | }
|
834 | removeEventListener(target, eventName, callback) {
|
835 | return target.removeEventListener(eventName, callback);
|
836 | }
|
837 | }
|
838 | DomEventsPlugin.decorators = [
|
839 | { type: Injectable }
|
840 | ];
|
841 | DomEventsPlugin.ctorParameters = () => [
|
842 | { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
843 | ];
|
844 |
|
845 |
|
846 |
|
847 |
|
848 |
|
849 |
|
850 |
|
851 |
|
852 |
|
853 |
|
854 |
|
855 | const EVENT_NAMES = {
|
856 |
|
857 | 'pan': true,
|
858 | 'panstart': true,
|
859 | 'panmove': true,
|
860 | 'panend': true,
|
861 | 'pancancel': true,
|
862 | 'panleft': true,
|
863 | 'panright': true,
|
864 | 'panup': true,
|
865 | 'pandown': true,
|
866 |
|
867 | 'pinch': true,
|
868 | 'pinchstart': true,
|
869 | 'pinchmove': true,
|
870 | 'pinchend': true,
|
871 | 'pinchcancel': true,
|
872 | 'pinchin': true,
|
873 | 'pinchout': true,
|
874 |
|
875 | 'press': true,
|
876 | 'pressup': true,
|
877 |
|
878 | 'rotate': true,
|
879 | 'rotatestart': true,
|
880 | 'rotatemove': true,
|
881 | 'rotateend': true,
|
882 | 'rotatecancel': true,
|
883 |
|
884 | 'swipe': true,
|
885 | 'swipeleft': true,
|
886 | 'swiperight': true,
|
887 | 'swipeup': true,
|
888 | 'swipedown': true,
|
889 |
|
890 | 'tap': true,
|
891 | };
|
892 |
|
893 |
|
894 |
|
895 |
|
896 |
|
897 |
|
898 |
|
899 | const HAMMER_GESTURE_CONFIG = new InjectionToken('HammerGestureConfig');
|
900 |
|
901 |
|
902 |
|
903 |
|
904 |
|
905 | const HAMMER_LOADER = new InjectionToken('HammerLoader');
|
906 |
|
907 |
|
908 |
|
909 |
|
910 |
|
911 | class HammerGestureConfig {
|
912 | constructor() {
|
913 | |
914 |
|
915 |
|
916 |
|
917 |
|
918 | this.events = [];
|
919 | |
920 |
|
921 |
|
922 |
|
923 |
|
924 |
|
925 |
|
926 |
|
927 |
|
928 |
|
929 |
|
930 |
|
931 |
|
932 |
|
933 |
|
934 |
|
935 | this.overrides = {};
|
936 | }
|
937 | |
938 |
|
939 |
|
940 |
|
941 |
|
942 |
|
943 | buildHammer(element) {
|
944 | const mc = new Hammer(element, this.options);
|
945 | mc.get('pinch').set({ enable: true });
|
946 | mc.get('rotate').set({ enable: true });
|
947 | for (const eventName in this.overrides) {
|
948 | mc.get(eventName).set(this.overrides[eventName]);
|
949 | }
|
950 | return mc;
|
951 | }
|
952 | }
|
953 | HammerGestureConfig.decorators = [
|
954 | { type: Injectable }
|
955 | ];
|
956 |
|
957 |
|
958 |
|
959 |
|
960 |
|
961 | class HammerGesturesPlugin extends EventManagerPlugin {
|
962 | constructor(doc, _config, console, loader) {
|
963 | super(doc);
|
964 | this._config = _config;
|
965 | this.console = console;
|
966 | this.loader = loader;
|
967 | }
|
968 | supports(eventName) {
|
969 | if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {
|
970 | return false;
|
971 | }
|
972 | if (!window.Hammer && !this.loader) {
|
973 | this.console.warn(`The "${eventName}" event cannot be bound because Hammer.JS is not ` +
|
974 | `loaded and no custom loader has been specified.`);
|
975 | return false;
|
976 | }
|
977 | return true;
|
978 | }
|
979 | addEventListener(element, eventName, handler) {
|
980 | const zone = this.manager.getZone();
|
981 | eventName = eventName.toLowerCase();
|
982 |
|
983 |
|
984 | if (!window.Hammer && this.loader) {
|
985 |
|
986 |
|
987 |
|
988 | let cancelRegistration = false;
|
989 | let deregister = () => {
|
990 | cancelRegistration = true;
|
991 | };
|
992 | this.loader()
|
993 | .then(() => {
|
994 |
|
995 | if (!window.Hammer) {
|
996 | this.console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);
|
997 | deregister = () => { };
|
998 | return;
|
999 | }
|
1000 | if (!cancelRegistration) {
|
1001 |
|
1002 |
|
1003 | deregister = this.addEventListener(element, eventName, handler);
|
1004 | }
|
1005 | })
|
1006 | .catch(() => {
|
1007 | this.console.warn(`The "${eventName}" event cannot be bound because the custom ` +
|
1008 | `Hammer.JS loader failed.`);
|
1009 | deregister = () => { };
|
1010 | });
|
1011 |
|
1012 |
|
1013 |
|
1014 | return () => {
|
1015 | deregister();
|
1016 | };
|
1017 | }
|
1018 | return zone.runOutsideAngular(() => {
|
1019 |
|
1020 | const mc = this._config.buildHammer(element);
|
1021 | const callback = function (eventObj) {
|
1022 | zone.runGuarded(function () {
|
1023 | handler(eventObj);
|
1024 | });
|
1025 | };
|
1026 | mc.on(eventName, callback);
|
1027 | return () => {
|
1028 | mc.off(eventName, callback);
|
1029 |
|
1030 | if (typeof mc.destroy === 'function') {
|
1031 | mc.destroy();
|
1032 | }
|
1033 | };
|
1034 | });
|
1035 | }
|
1036 | isCustomEvent(eventName) {
|
1037 | return this._config.events.indexOf(eventName) > -1;
|
1038 | }
|
1039 | }
|
1040 | HammerGesturesPlugin.decorators = [
|
1041 | { type: Injectable }
|
1042 | ];
|
1043 | HammerGesturesPlugin.ctorParameters = () => [
|
1044 | { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
1045 | { type: HammerGestureConfig, decorators: [{ type: Inject, args: [HAMMER_GESTURE_CONFIG,] }] },
|
1046 | { type: ɵConsole },
|
1047 | { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [HAMMER_LOADER,] }] }
|
1048 | ];
|
1049 |
|
1050 |
|
1051 |
|
1052 |
|
1053 |
|
1054 | const HAMMER_PROVIDERS__POST_R3__ = [];
|
1055 |
|
1056 |
|
1057 |
|
1058 | const HAMMER_PROVIDERS__PRE_R3__ = [
|
1059 | {
|
1060 | provide: EVENT_MANAGER_PLUGINS,
|
1061 | useClass: HammerGesturesPlugin,
|
1062 | multi: true,
|
1063 | deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]]
|
1064 | },
|
1065 | { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1066 | ];
|
1067 | const HAMMER_PROVIDERS = HAMMER_PROVIDERS__PRE_R3__;
|
1068 |
|
1069 |
|
1070 |
|
1071 |
|
1072 |
|
1073 |
|
1074 |
|
1075 |
|
1076 |
|
1077 |
|
1078 |
|
1079 | class HammerModule {
|
1080 | }
|
1081 | HammerModule.decorators = [
|
1082 | { type: NgModule, args: [{ providers: HAMMER_PROVIDERS__PRE_R3__ },] }
|
1083 | ];
|
1084 |
|
1085 |
|
1086 |
|
1087 |
|
1088 |
|
1089 |
|
1090 |
|
1091 |
|
1092 |
|
1093 |
|
1094 |
|
1095 | const MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];
|
1096 | const DOM_KEY_LOCATION_NUMPAD = 3;
|
1097 |
|
1098 | const _keyMap = {
|
1099 |
|
1100 |
|
1101 | '\b': 'Backspace',
|
1102 | '\t': 'Tab',
|
1103 | '\x7F': 'Delete',
|
1104 | '\x1B': 'Escape',
|
1105 | 'Del': 'Delete',
|
1106 | 'Esc': 'Escape',
|
1107 | 'Left': 'ArrowLeft',
|
1108 | 'Right': 'ArrowRight',
|
1109 | 'Up': 'ArrowUp',
|
1110 | 'Down': 'ArrowDown',
|
1111 | 'Menu': 'ContextMenu',
|
1112 | 'Scroll': 'ScrollLock',
|
1113 | 'Win': 'OS'
|
1114 | };
|
1115 |
|
1116 |
|
1117 |
|
1118 | const _chromeNumKeyPadMap = {
|
1119 | 'A': '1',
|
1120 | 'B': '2',
|
1121 | 'C': '3',
|
1122 | 'D': '4',
|
1123 | 'E': '5',
|
1124 | 'F': '6',
|
1125 | 'G': '7',
|
1126 | 'H': '8',
|
1127 | 'I': '9',
|
1128 | 'J': '*',
|
1129 | 'K': '+',
|
1130 | 'M': '-',
|
1131 | 'N': '.',
|
1132 | 'O': '/',
|
1133 | '\x60': '0',
|
1134 | '\x90': 'NumLock'
|
1135 | };
|
1136 | const ɵ0$3 = (event) => event.altKey, ɵ1 = (event) => event.ctrlKey, ɵ2 = (event) => event.metaKey, ɵ3 = (event) => event.shiftKey;
|
1137 |
|
1138 |
|
1139 |
|
1140 | const MODIFIER_KEY_GETTERS = {
|
1141 | 'alt': ɵ0$3,
|
1142 | 'control': ɵ1,
|
1143 | 'meta': ɵ2,
|
1144 | 'shift': ɵ3
|
1145 | };
|
1146 |
|
1147 |
|
1148 |
|
1149 |
|
1150 | class KeyEventsPlugin extends EventManagerPlugin {
|
1151 | |
1152 |
|
1153 |
|
1154 |
|
1155 | constructor(doc) {
|
1156 | super(doc);
|
1157 | }
|
1158 | |
1159 |
|
1160 |
|
1161 |
|
1162 |
|
1163 | supports(eventName) {
|
1164 | return KeyEventsPlugin.parseEventName(eventName) != null;
|
1165 | }
|
1166 | |
1167 |
|
1168 |
|
1169 |
|
1170 |
|
1171 |
|
1172 |
|
1173 |
|
1174 | addEventListener(element, eventName, handler) {
|
1175 | const parsedEvent = KeyEventsPlugin.parseEventName(eventName);
|
1176 | const outsideHandler = KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());
|
1177 | return this.manager.getZone().runOutsideAngular(() => {
|
1178 | return ɵgetDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);
|
1179 | });
|
1180 | }
|
1181 | static parseEventName(eventName) {
|
1182 | const parts = eventName.toLowerCase().split('.');
|
1183 | const domEventName = parts.shift();
|
1184 | if ((parts.length === 0) || !(domEventName === 'keydown' || domEventName === 'keyup')) {
|
1185 | return null;
|
1186 | }
|
1187 | const key = KeyEventsPlugin._normalizeKey(parts.pop());
|
1188 | let fullKey = '';
|
1189 | MODIFIER_KEYS.forEach(modifierName => {
|
1190 | const index = parts.indexOf(modifierName);
|
1191 | if (index > -1) {
|
1192 | parts.splice(index, 1);
|
1193 | fullKey += modifierName + '.';
|
1194 | }
|
1195 | });
|
1196 | fullKey += key;
|
1197 | if (parts.length != 0 || key.length === 0) {
|
1198 |
|
1199 | return null;
|
1200 | }
|
1201 | const result = {};
|
1202 | result['domEventName'] = domEventName;
|
1203 | result['fullKey'] = fullKey;
|
1204 | return result;
|
1205 | }
|
1206 | static getEventFullKey(event) {
|
1207 | let fullKey = '';
|
1208 | let key = getEventKey(event);
|
1209 | key = key.toLowerCase();
|
1210 | if (key === ' ') {
|
1211 | key = 'space';
|
1212 | }
|
1213 | else if (key === '.') {
|
1214 | key = 'dot';
|
1215 | }
|
1216 | MODIFIER_KEYS.forEach(modifierName => {
|
1217 | if (modifierName != key) {
|
1218 | const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];
|
1219 | if (modifierGetter(event)) {
|
1220 | fullKey += modifierName + '.';
|
1221 | }
|
1222 | }
|
1223 | });
|
1224 | fullKey += key;
|
1225 | return fullKey;
|
1226 | }
|
1227 | |
1228 |
|
1229 |
|
1230 |
|
1231 |
|
1232 |
|
1233 |
|
1234 | static eventCallback(fullKey, handler, zone) {
|
1235 | return (event /** TODO #9100 */) => {
|
1236 | if (KeyEventsPlugin.getEventFullKey(event) === fullKey) {
|
1237 | zone.runGuarded(() => handler(event));
|
1238 | }
|
1239 | };
|
1240 | }
|
1241 |
|
1242 | static _normalizeKey(keyName) {
|
1243 |
|
1244 | switch (keyName) {
|
1245 | case 'esc':
|
1246 | return 'escape';
|
1247 | default:
|
1248 | return keyName;
|
1249 | }
|
1250 | }
|
1251 | }
|
1252 | KeyEventsPlugin.decorators = [
|
1253 | { type: Injectable }
|
1254 | ];
|
1255 | KeyEventsPlugin.ctorParameters = () => [
|
1256 | { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
1257 | ];
|
1258 | function getEventKey(event) {
|
1259 | let key = event.key;
|
1260 | if (key == null) {
|
1261 | key = event.keyIdentifier;
|
1262 |
|
1263 |
|
1264 |
|
1265 | if (key == null) {
|
1266 | return 'Unidentified';
|
1267 | }
|
1268 | if (key.startsWith('U+')) {
|
1269 | key = String.fromCharCode(parseInt(key.substring(2), 16));
|
1270 | if (event.location === DOM_KEY_LOCATION_NUMPAD && _chromeNumKeyPadMap.hasOwnProperty(key)) {
|
1271 |
|
1272 |
|
1273 |
|
1274 | key = _chromeNumKeyPadMap[key];
|
1275 | }
|
1276 | }
|
1277 | }
|
1278 | return _keyMap[key] || key;
|
1279 | }
|
1280 |
|
1281 |
|
1282 |
|
1283 |
|
1284 |
|
1285 |
|
1286 |
|
1287 |
|
1288 |
|
1289 |
|
1290 |
|
1291 |
|
1292 |
|
1293 |
|
1294 |
|
1295 |
|
1296 |
|
1297 |
|
1298 |
|
1299 |
|
1300 |
|
1301 |
|
1302 |
|
1303 |
|
1304 |
|
1305 |
|
1306 |
|
1307 |
|
1308 |
|
1309 |
|
1310 |
|
1311 |
|
1312 |
|
1313 |
|
1314 |
|
1315 |
|
1316 |
|
1317 |
|
1318 |
|
1319 | class DomSanitizer {
|
1320 | }
|
1321 | DomSanitizer.ɵprov = ɵɵdefineInjectable({ factory: function DomSanitizer_Factory() { return ɵɵinject(DomSanitizerImpl); }, token: DomSanitizer, providedIn: "root" });
|
1322 | DomSanitizer.decorators = [
|
1323 | { type: Injectable, args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) },] }
|
1324 | ];
|
1325 | function domSanitizerImplFactory(injector) {
|
1326 | return new DomSanitizerImpl(injector.get(DOCUMENT));
|
1327 | }
|
1328 | class DomSanitizerImpl extends DomSanitizer {
|
1329 | constructor(_doc) {
|
1330 | super();
|
1331 | this._doc = _doc;
|
1332 | }
|
1333 | sanitize(ctx, value) {
|
1334 | if (value == null)
|
1335 | return null;
|
1336 | switch (ctx) {
|
1337 | case SecurityContext.NONE:
|
1338 | return value;
|
1339 | case SecurityContext.HTML:
|
1340 | if (ɵallowSanitizationBypassAndThrow(value, "HTML" )) {
|
1341 | return ɵunwrapSafeValue(value);
|
1342 | }
|
1343 | return ɵ_sanitizeHtml(this._doc, String(value));
|
1344 | case SecurityContext.STYLE:
|
1345 | if (ɵallowSanitizationBypassAndThrow(value, "Style" )) {
|
1346 | return ɵunwrapSafeValue(value);
|
1347 | }
|
1348 | return value;
|
1349 | case SecurityContext.SCRIPT:
|
1350 | if (ɵallowSanitizationBypassAndThrow(value, "Script" )) {
|
1351 | return ɵunwrapSafeValue(value);
|
1352 | }
|
1353 | throw new Error('unsafe value used in a script context');
|
1354 | case SecurityContext.URL:
|
1355 | const type = ɵgetSanitizationBypassType(value);
|
1356 | if (ɵallowSanitizationBypassAndThrow(value, "URL" )) {
|
1357 | return ɵunwrapSafeValue(value);
|
1358 | }
|
1359 | return ɵ_sanitizeUrl(String(value));
|
1360 | case SecurityContext.RESOURCE_URL:
|
1361 | if (ɵallowSanitizationBypassAndThrow(value, "ResourceURL" )) {
|
1362 | return ɵunwrapSafeValue(value);
|
1363 | }
|
1364 | throw new Error('unsafe value used in a resource URL context (see http://g.co/ng/security#xss)');
|
1365 | default:
|
1366 | throw new Error(`Unexpected SecurityContext ${ctx} (see http://g.co/ng/security#xss)`);
|
1367 | }
|
1368 | }
|
1369 | bypassSecurityTrustHtml(value) {
|
1370 | return ɵbypassSanitizationTrustHtml(value);
|
1371 | }
|
1372 | bypassSecurityTrustStyle(value) {
|
1373 | return ɵbypassSanitizationTrustStyle(value);
|
1374 | }
|
1375 | bypassSecurityTrustScript(value) {
|
1376 | return ɵbypassSanitizationTrustScript(value);
|
1377 | }
|
1378 | bypassSecurityTrustUrl(value) {
|
1379 | return ɵbypassSanitizationTrustUrl(value);
|
1380 | }
|
1381 | bypassSecurityTrustResourceUrl(value) {
|
1382 | return ɵbypassSanitizationTrustResourceUrl(value);
|
1383 | }
|
1384 | }
|
1385 | DomSanitizerImpl.ɵprov = ɵɵdefineInjectable({ factory: function DomSanitizerImpl_Factory() { return domSanitizerImplFactory(ɵɵinject(INJECTOR)); }, token: DomSanitizerImpl, providedIn: "root" });
|
1386 | DomSanitizerImpl.decorators = [
|
1387 | { type: Injectable, args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] },] }
|
1388 | ];
|
1389 | DomSanitizerImpl.ctorParameters = () => [
|
1390 | { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
1391 | ];
|
1392 |
|
1393 |
|
1394 |
|
1395 |
|
1396 |
|
1397 |
|
1398 |
|
1399 |
|
1400 | function initDomAdapter() {
|
1401 | BrowserDomAdapter.makeCurrent();
|
1402 | BrowserGetTestability.init();
|
1403 | }
|
1404 | function errorHandler() {
|
1405 | return new ErrorHandler();
|
1406 | }
|
1407 | function _document() {
|
1408 |
|
1409 | ɵsetDocument(document);
|
1410 | return document;
|
1411 | }
|
1412 | const ɵ0$4 = ɵPLATFORM_BROWSER_ID;
|
1413 | const INTERNAL_BROWSER_PLATFORM_PROVIDERS = [
|
1414 | { provide: PLATFORM_ID, useValue: ɵ0$4 },
|
1415 | { provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true },
|
1416 | { provide: DOCUMENT, useFactory: _document, deps: [] },
|
1417 | ];
|
1418 | const BROWSER_SANITIZATION_PROVIDERS__PRE_R3__ = [
|
1419 | { provide: Sanitizer, useExisting: DomSanitizer },
|
1420 | { provide: DomSanitizer, useClass: DomSanitizerImpl, deps: [DOCUMENT] },
|
1421 | ];
|
1422 | const BROWSER_SANITIZATION_PROVIDERS__POST_R3__ = [];
|
1423 |
|
1424 |
|
1425 |
|
1426 |
|
1427 |
|
1428 |
|
1429 | const BROWSER_SANITIZATION_PROVIDERS = BROWSER_SANITIZATION_PROVIDERS__PRE_R3__;
|
1430 |
|
1431 |
|
1432 |
|
1433 |
|
1434 |
|
1435 |
|
1436 | const platformBrowser = createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);
|
1437 | const BROWSER_MODULE_PROVIDERS = [
|
1438 | BROWSER_SANITIZATION_PROVIDERS,
|
1439 | { provide: ɵINJECTOR_SCOPE, useValue: 'root' },
|
1440 | { provide: ErrorHandler, useFactory: errorHandler, deps: [] },
|
1441 | {
|
1442 | provide: EVENT_MANAGER_PLUGINS,
|
1443 | useClass: DomEventsPlugin,
|
1444 | multi: true,
|
1445 | deps: [DOCUMENT, NgZone, PLATFORM_ID]
|
1446 | },
|
1447 | { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] },
|
1448 | HAMMER_PROVIDERS,
|
1449 | {
|
1450 | provide: DomRendererFactory2,
|
1451 | useClass: DomRendererFactory2,
|
1452 | deps: [EventManager, DomSharedStylesHost, APP_ID]
|
1453 | },
|
1454 | { provide: RendererFactory2, useExisting: DomRendererFactory2 },
|
1455 | { provide: SharedStylesHost, useExisting: DomSharedStylesHost },
|
1456 | { provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [DOCUMENT] },
|
1457 | { provide: Testability, useClass: Testability, deps: [NgZone] },
|
1458 | { provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone] },
|
1459 | ELEMENT_PROBE_PROVIDERS,
|
1460 | ];
|
1461 |
|
1462 |
|
1463 |
|
1464 |
|
1465 |
|
1466 |
|
1467 |
|
1468 |
|
1469 |
|
1470 | class BrowserModule {
|
1471 | constructor(parentModule) {
|
1472 | if (parentModule) {
|
1473 | throw new Error(`BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.`);
|
1474 | }
|
1475 | }
|
1476 | |
1477 |
|
1478 |
|
1479 |
|
1480 |
|
1481 |
|
1482 |
|
1483 |
|
1484 | static withServerTransition(params) {
|
1485 | return {
|
1486 | ngModule: BrowserModule,
|
1487 | providers: [
|
1488 | { provide: APP_ID, useValue: params.appId },
|
1489 | { provide: TRANSITION_ID, useExisting: APP_ID },
|
1490 | SERVER_TRANSITION_PROVIDERS,
|
1491 | ],
|
1492 | };
|
1493 | }
|
1494 | }
|
1495 | BrowserModule.decorators = [
|
1496 | { type: NgModule, args: [{ providers: BROWSER_MODULE_PROVIDERS, exports: [CommonModule, ApplicationModule] },] }
|
1497 | ];
|
1498 | BrowserModule.ctorParameters = () => [
|
1499 | { type: BrowserModule, decorators: [{ type: Optional }, { type: SkipSelf }, { type: Inject, args: [BrowserModule,] }] }
|
1500 | ];
|
1501 |
|
1502 |
|
1503 |
|
1504 |
|
1505 |
|
1506 |
|
1507 |
|
1508 |
|
1509 |
|
1510 |
|
1511 |
|
1512 | function createMeta() {
|
1513 | return new Meta(ɵɵinject(DOCUMENT));
|
1514 | }
|
1515 |
|
1516 |
|
1517 |
|
1518 |
|
1519 |
|
1520 |
|
1521 |
|
1522 |
|
1523 |
|
1524 |
|
1525 |
|
1526 |
|
1527 |
|
1528 |
|
1529 |
|
1530 |
|
1531 |
|
1532 |
|
1533 |
|
1534 |
|
1535 |
|
1536 |
|
1537 | class Meta {
|
1538 | constructor(_doc) {
|
1539 | this._doc = _doc;
|
1540 | this._dom = ɵgetDOM();
|
1541 | }
|
1542 | |
1543 |
|
1544 |
|
1545 |
|
1546 |
|
1547 |
|
1548 |
|
1549 |
|
1550 |
|
1551 |
|
1552 | addTag(tag, forceCreation = false) {
|
1553 | if (!tag)
|
1554 | return null;
|
1555 | return this._getOrCreateElement(tag, forceCreation);
|
1556 | }
|
1557 | |
1558 |
|
1559 |
|
1560 |
|
1561 |
|
1562 |
|
1563 |
|
1564 |
|
1565 | addTags(tags, forceCreation = false) {
|
1566 | if (!tags)
|
1567 | return [];
|
1568 | return tags.reduce((result, tag) => {
|
1569 | if (tag) {
|
1570 | result.push(this._getOrCreateElement(tag, forceCreation));
|
1571 | }
|
1572 | return result;
|
1573 | }, []);
|
1574 | }
|
1575 | |
1576 |
|
1577 |
|
1578 |
|
1579 |
|
1580 |
|
1581 | getTag(attrSelector) {
|
1582 | if (!attrSelector)
|
1583 | return null;
|
1584 | return this._doc.querySelector(`meta[${attrSelector}]`) || null;
|
1585 | }
|
1586 | |
1587 |
|
1588 |
|
1589 |
|
1590 |
|
1591 |
|
1592 | getTags(attrSelector) {
|
1593 | if (!attrSelector)
|
1594 | return [];
|
1595 | const list = this._doc.querySelectorAll(`meta[${attrSelector}]`);
|
1596 | return list ? [].slice.call(list) : [];
|
1597 | }
|
1598 | |
1599 |
|
1600 |
|
1601 |
|
1602 |
|
1603 |
|
1604 |
|
1605 |
|
1606 |
|
1607 | updateTag(tag, selector) {
|
1608 | if (!tag)
|
1609 | return null;
|
1610 | selector = selector || this._parseSelector(tag);
|
1611 | const meta = this.getTag(selector);
|
1612 | if (meta) {
|
1613 | return this._setMetaElementAttributes(tag, meta);
|
1614 | }
|
1615 | return this._getOrCreateElement(tag, true);
|
1616 | }
|
1617 | |
1618 |
|
1619 |
|
1620 |
|
1621 |
|
1622 | removeTag(attrSelector) {
|
1623 | this.removeTagElement(this.getTag(attrSelector));
|
1624 | }
|
1625 | |
1626 |
|
1627 |
|
1628 |
|
1629 | removeTagElement(meta) {
|
1630 | if (meta) {
|
1631 | this._dom.remove(meta);
|
1632 | }
|
1633 | }
|
1634 | _getOrCreateElement(meta, forceCreation = false) {
|
1635 | if (!forceCreation) {
|
1636 | const selector = this._parseSelector(meta);
|
1637 | const elem = this.getTag(selector);
|
1638 |
|
1639 |
|
1640 |
|
1641 | if (elem && this._containsAttributes(meta, elem))
|
1642 | return elem;
|
1643 | }
|
1644 | const element = this._dom.createElement('meta');
|
1645 | this._setMetaElementAttributes(meta, element);
|
1646 | const head = this._doc.getElementsByTagName('head')[0];
|
1647 | head.appendChild(element);
|
1648 | return element;
|
1649 | }
|
1650 | _setMetaElementAttributes(tag, el) {
|
1651 | Object.keys(tag).forEach((prop) => el.setAttribute(prop, tag[prop]));
|
1652 | return el;
|
1653 | }
|
1654 | _parseSelector(tag) {
|
1655 | const attr = tag.name ? 'name' : 'property';
|
1656 | return `${attr}="${tag[attr]}"`;
|
1657 | }
|
1658 | _containsAttributes(tag, elem) {
|
1659 | return Object.keys(tag).every((key) => elem.getAttribute(key) === tag[key]);
|
1660 | }
|
1661 | }
|
1662 | Meta.ɵprov = ɵɵdefineInjectable({ factory: createMeta, token: Meta, providedIn: "root" });
|
1663 | Meta.decorators = [
|
1664 | { type: Injectable, args: [{ providedIn: 'root', useFactory: createMeta, deps: [] },] }
|
1665 | ];
|
1666 | Meta.ctorParameters = () => [
|
1667 | { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
1668 | ];
|
1669 |
|
1670 |
|
1671 |
|
1672 |
|
1673 |
|
1674 |
|
1675 |
|
1676 |
|
1677 |
|
1678 |
|
1679 |
|
1680 | function createTitle() {
|
1681 | return new Title(ɵɵinject(DOCUMENT));
|
1682 | }
|
1683 |
|
1684 |
|
1685 |
|
1686 |
|
1687 |
|
1688 |
|
1689 |
|
1690 |
|
1691 |
|
1692 |
|
1693 | class Title {
|
1694 | constructor(_doc) {
|
1695 | this._doc = _doc;
|
1696 | }
|
1697 | |
1698 |
|
1699 |
|
1700 | getTitle() {
|
1701 | return this._doc.title;
|
1702 | }
|
1703 | |
1704 |
|
1705 |
|
1706 |
|
1707 | setTitle(newTitle) {
|
1708 | this._doc.title = newTitle || '';
|
1709 | }
|
1710 | }
|
1711 | Title.ɵprov = ɵɵdefineInjectable({ factory: createTitle, token: Title, providedIn: "root" });
|
1712 | Title.decorators = [
|
1713 | { type: Injectable, args: [{ providedIn: 'root', useFactory: createTitle, deps: [] },] }
|
1714 | ];
|
1715 | Title.ctorParameters = () => [
|
1716 | { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
1717 | ];
|
1718 |
|
1719 |
|
1720 |
|
1721 |
|
1722 |
|
1723 |
|
1724 |
|
1725 |
|
1726 | const win = typeof window !== 'undefined' && window || {};
|
1727 |
|
1728 |
|
1729 |
|
1730 |
|
1731 |
|
1732 |
|
1733 |
|
1734 |
|
1735 | class ChangeDetectionPerfRecord {
|
1736 | constructor(msPerTick, numTicks) {
|
1737 | this.msPerTick = msPerTick;
|
1738 | this.numTicks = numTicks;
|
1739 | }
|
1740 | }
|
1741 |
|
1742 |
|
1743 |
|
1744 |
|
1745 | class AngularProfiler {
|
1746 | constructor(ref) {
|
1747 | this.appRef = ref.injector.get(ApplicationRef);
|
1748 | }
|
1749 |
|
1750 | |
1751 |
|
1752 |
|
1753 |
|
1754 |
|
1755 |
|
1756 |
|
1757 |
|
1758 |
|
1759 |
|
1760 |
|
1761 |
|
1762 |
|
1763 |
|
1764 |
|
1765 |
|
1766 | timeChangeDetection(config) {
|
1767 | const record = config && config['record'];
|
1768 | const profileName = 'Change Detection';
|
1769 |
|
1770 | const isProfilerAvailable = win.console.profile != null;
|
1771 | if (record && isProfilerAvailable) {
|
1772 | win.console.profile(profileName);
|
1773 | }
|
1774 | const start = ɵgetDOM().performanceNow();
|
1775 | let numTicks = 0;
|
1776 | while (numTicks < 5 || (ɵgetDOM().performanceNow() - start) < 500) {
|
1777 | this.appRef.tick();
|
1778 | numTicks++;
|
1779 | }
|
1780 | const end = ɵgetDOM().performanceNow();
|
1781 | if (record && isProfilerAvailable) {
|
1782 | win.console.profileEnd(profileName);
|
1783 | }
|
1784 | const msPerTick = (end - start) / numTicks;
|
1785 | win.console.log(`ran ${numTicks} change detection cycles`);
|
1786 | win.console.log(`${msPerTick.toFixed(2)} ms per check`);
|
1787 | return new ChangeDetectionPerfRecord(msPerTick, numTicks);
|
1788 | }
|
1789 | }
|
1790 |
|
1791 |
|
1792 |
|
1793 |
|
1794 |
|
1795 |
|
1796 |
|
1797 |
|
1798 | const PROFILER_GLOBAL_NAME = 'profiler';
|
1799 |
|
1800 |
|
1801 |
|
1802 |
|
1803 |
|
1804 |
|
1805 |
|
1806 |
|
1807 |
|
1808 |
|
1809 |
|
1810 |
|
1811 |
|
1812 | function enableDebugTools(ref) {
|
1813 | exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));
|
1814 | return ref;
|
1815 | }
|
1816 |
|
1817 |
|
1818 |
|
1819 |
|
1820 |
|
1821 | function disableDebugTools() {
|
1822 | exportNgVar(PROFILER_GLOBAL_NAME, null);
|
1823 | }
|
1824 |
|
1825 |
|
1826 |
|
1827 |
|
1828 |
|
1829 |
|
1830 |
|
1831 |
|
1832 | function escapeHtml(text) {
|
1833 | const escapedText = {
|
1834 | '&': '&a;',
|
1835 | '"': '&q;',
|
1836 | '\'': '&s;',
|
1837 | '<': '&l;',
|
1838 | '>': '&g;',
|
1839 | };
|
1840 | return text.replace(/[&"'<>]/g, s => escapedText[s]);
|
1841 | }
|
1842 | function unescapeHtml(text) {
|
1843 | const unescapedText = {
|
1844 | '&a;': '&',
|
1845 | '&q;': '"',
|
1846 | '&s;': '\'',
|
1847 | '&l;': '<',
|
1848 | '&g;': '>',
|
1849 | };
|
1850 | return text.replace(/&[^;]+;/g, s => unescapedText[s]);
|
1851 | }
|
1852 |
|
1853 |
|
1854 |
|
1855 |
|
1856 |
|
1857 |
|
1858 |
|
1859 |
|
1860 |
|
1861 |
|
1862 |
|
1863 |
|
1864 |
|
1865 |
|
1866 | function makeStateKey(key) {
|
1867 | return key;
|
1868 | }
|
1869 |
|
1870 |
|
1871 |
|
1872 |
|
1873 |
|
1874 |
|
1875 |
|
1876 |
|
1877 |
|
1878 |
|
1879 |
|
1880 |
|
1881 |
|
1882 | class TransferState {
|
1883 | constructor() {
|
1884 | this.store = {};
|
1885 | this.onSerializeCallbacks = {};
|
1886 | }
|
1887 |
|
1888 | static init(initState) {
|
1889 | const transferState = new TransferState();
|
1890 | transferState.store = initState;
|
1891 | return transferState;
|
1892 | }
|
1893 | |
1894 |
|
1895 |
|
1896 | get(key, defaultValue) {
|
1897 | return this.store[key] !== undefined ? this.store[key] : defaultValue;
|
1898 | }
|
1899 | |
1900 |
|
1901 |
|
1902 | set(key, value) {
|
1903 | this.store[key] = value;
|
1904 | }
|
1905 | |
1906 |
|
1907 |
|
1908 | remove(key) {
|
1909 | delete this.store[key];
|
1910 | }
|
1911 | |
1912 |
|
1913 |
|
1914 | hasKey(key) {
|
1915 | return this.store.hasOwnProperty(key);
|
1916 | }
|
1917 | |
1918 |
|
1919 |
|
1920 | onSerialize(key, callback) {
|
1921 | this.onSerializeCallbacks[key] = callback;
|
1922 | }
|
1923 | |
1924 |
|
1925 |
|
1926 | toJson() {
|
1927 |
|
1928 | for (const key in this.onSerializeCallbacks) {
|
1929 | if (this.onSerializeCallbacks.hasOwnProperty(key)) {
|
1930 | try {
|
1931 | this.store[key] = this.onSerializeCallbacks[key]();
|
1932 | }
|
1933 | catch (e) {
|
1934 | console.warn('Exception in onSerialize callback: ', e);
|
1935 | }
|
1936 | }
|
1937 | }
|
1938 | return JSON.stringify(this.store);
|
1939 | }
|
1940 | }
|
1941 | TransferState.decorators = [
|
1942 | { type: Injectable }
|
1943 | ];
|
1944 | function initTransferState(doc, appId) {
|
1945 |
|
1946 |
|
1947 | const script = doc.getElementById(appId + '-state');
|
1948 | let initialState = {};
|
1949 | if (script && script.textContent) {
|
1950 | try {
|
1951 | initialState = JSON.parse(unescapeHtml(script.textContent));
|
1952 | }
|
1953 | catch (e) {
|
1954 | console.warn('Exception while restoring TransferState for app ' + appId, e);
|
1955 | }
|
1956 | }
|
1957 | return TransferState.init(initialState);
|
1958 | }
|
1959 |
|
1960 |
|
1961 |
|
1962 |
|
1963 |
|
1964 |
|
1965 | class BrowserTransferStateModule {
|
1966 | }
|
1967 | BrowserTransferStateModule.decorators = [
|
1968 | { type: NgModule, args: [{
|
1969 | providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }],
|
1970 | },] }
|
1971 | ];
|
1972 |
|
1973 |
|
1974 |
|
1975 |
|
1976 |
|
1977 |
|
1978 |
|
1979 |
|
1980 |
|
1981 |
|
1982 |
|
1983 |
|
1984 |
|
1985 | class By {
|
1986 | |
1987 |
|
1988 |
|
1989 |
|
1990 |
|
1991 |
|
1992 |
|
1993 |
|
1994 | static all() {
|
1995 | return () => true;
|
1996 | }
|
1997 | |
1998 |
|
1999 |
|
2000 |
|
2001 |
|
2002 |
|
2003 |
|
2004 |
|
2005 | static css(selector) {
|
2006 | return (debugElement) => {
|
2007 | return debugElement.nativeElement != null ?
|
2008 | elementMatches(debugElement.nativeElement, selector) :
|
2009 | false;
|
2010 | };
|
2011 | }
|
2012 | |
2013 |
|
2014 |
|
2015 |
|
2016 |
|
2017 |
|
2018 |
|
2019 |
|
2020 | static directive(type) {
|
2021 | return (debugNode) => debugNode.providerTokens.indexOf(type) !== -1;
|
2022 | }
|
2023 | }
|
2024 | function elementMatches(n, selector) {
|
2025 | if (ɵgetDOM().isElementNode(n)) {
|
2026 | return n.matches && n.matches(selector) ||
|
2027 | n.msMatchesSelector && n.msMatchesSelector(selector) ||
|
2028 | n.webkitMatchesSelector && n.webkitMatchesSelector(selector);
|
2029 | }
|
2030 | return false;
|
2031 | }
|
2032 |
|
2033 |
|
2034 |
|
2035 |
|
2036 |
|
2037 |
|
2038 |
|
2039 |
|
2040 |
|
2041 |
|
2042 |
|
2043 |
|
2044 |
|
2045 |
|
2046 |
|
2047 |
|
2048 |
|
2049 |
|
2050 |
|
2051 | const VERSION = new Version('10.0.5');
|
2052 |
|
2053 |
|
2054 |
|
2055 |
|
2056 |
|
2057 |
|
2058 |
|
2059 |
|
2060 |
|
2061 |
|
2062 |
|
2063 |
|
2064 |
|
2065 |
|
2066 |
|
2067 |
|
2068 |
|
2069 |
|
2070 |
|
2071 |
|
2072 |
|
2073 |
|
2074 |
|
2075 |
|
2076 |
|
2077 |
|
2078 |
|
2079 |
|
2080 |
|
2081 |
|
2082 | export { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, Title, TransferState, VERSION, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, BROWSER_SANITIZATION_PROVIDERS as ɵBROWSER_SANITIZATION_PROVIDERS, BROWSER_SANITIZATION_PROVIDERS__POST_R3__ as ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, DomSharedStylesHost as ɵDomSharedStylesHost, ELEMENT_PROBE_PROVIDERS as ɵELEMENT_PROBE_PROVIDERS, ELEMENT_PROBE_PROVIDERS__POST_R3__ as ɵELEMENT_PROBE_PROVIDERS__POST_R3__, HAMMER_PROVIDERS__POST_R3__ as ɵHAMMER_PROVIDERS__POST_R3__, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, NAMESPACE_URIS as ɵNAMESPACE_URIS, SharedStylesHost as ɵSharedStylesHost, TRANSITION_ID as ɵTRANSITION_ID, errorHandler as ɵangular_packages_platform_browser_platform_browser_a, _document as ɵangular_packages_platform_browser_platform_browser_b, BROWSER_MODULE_PROVIDERS as ɵangular_packages_platform_browser_platform_browser_c, createMeta as ɵangular_packages_platform_browser_platform_browser_d, createTitle as ɵangular_packages_platform_browser_platform_browser_e, initTransferState as ɵangular_packages_platform_browser_platform_browser_f, EventManagerPlugin as ɵangular_packages_platform_browser_platform_browser_g, HAMMER_PROVIDERS__PRE_R3__ as ɵangular_packages_platform_browser_platform_browser_h, HAMMER_PROVIDERS as ɵangular_packages_platform_browser_platform_browser_i, domSanitizerImplFactory as ɵangular_packages_platform_browser_platform_browser_j, appInitializerFactory as ɵangular_packages_platform_browser_platform_browser_k, SERVER_TRANSITION_PROVIDERS as ɵangular_packages_platform_browser_platform_browser_l, _createNgProbeR2 as ɵangular_packages_platform_browser_platform_browser_m, ELEMENT_PROBE_PROVIDERS__PRE_R3__ as ɵangular_packages_platform_browser_platform_browser_n, GenericBrowserDomAdapter as ɵangular_packages_platform_browser_platform_browser_o, escapeHtml as ɵescapeHtml, flattenStyles as ɵflattenStyles, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute };
|
2083 |
|