@angular/platform-browser 9.1.0 → 9.1.4

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 (87) hide show
  1. package/animations/animations.d.ts +1 -1
  2. package/animations/animations.metadata.json +1 -1
  3. package/animations.d.ts +1 -1
  4. package/bundles/platform-browser-animations.umd.js +88 -32
  5. package/bundles/platform-browser-animations.umd.js.map +1 -1
  6. package/bundles/platform-browser-animations.umd.min.js +1 -1
  7. package/bundles/platform-browser-animations.umd.min.js.map +1 -1
  8. package/bundles/platform-browser-testing.umd.js +42 -11
  9. package/bundles/platform-browser-testing.umd.js.map +1 -1
  10. package/bundles/platform-browser-testing.umd.min.js +1 -1
  11. package/bundles/platform-browser-testing.umd.min.js.map +1 -1
  12. package/bundles/platform-browser.umd.js +182 -71
  13. package/bundles/platform-browser.umd.js.map +1 -1
  14. package/bundles/platform-browser.umd.min.js +7 -7
  15. package/bundles/platform-browser.umd.min.js.map +1 -1
  16. package/esm2015/animations/src/animation_builder.js +38 -19
  17. package/esm2015/animations/src/animation_renderer.js +31 -11
  18. package/esm2015/animations/src/providers.js +2 -2
  19. package/esm2015/index.js +1 -1
  20. package/esm2015/public_api.js +1 -1
  21. package/esm2015/src/browser/browser_adapter.js +43 -15
  22. package/esm2015/src/browser/generic_browser_adapter.js +7 -3
  23. package/esm2015/src/browser/meta.js +4 -2
  24. package/esm2015/src/browser/testability.js +4 -2
  25. package/esm2015/src/browser/title.js +7 -3
  26. package/esm2015/src/browser/tools/common_tools.js +4 -2
  27. package/esm2015/src/browser/transfer_state.js +10 -4
  28. package/esm2015/src/browser.js +2 -2
  29. package/esm2015/src/dom/debug/by.js +7 -5
  30. package/esm2015/src/dom/dom_renderer.js +34 -12
  31. package/esm2015/src/dom/events/dom_events.js +7 -3
  32. package/esm2015/src/dom/events/event_manager.js +4 -2
  33. package/esm2015/src/dom/events/hammer_gestures.js +13 -5
  34. package/esm2015/src/dom/events/key_events.js +7 -3
  35. package/esm2015/src/dom/shared_styles_host.js +14 -8
  36. package/esm2015/src/dom/util.js +1 -1
  37. package/esm2015/src/platform-browser.js +3 -3
  38. package/esm2015/src/private_export.js +3 -3
  39. package/esm2015/src/security/dom_sanitization_service.js +11 -5
  40. package/esm2015/src/version.js +1 -1
  41. package/esm2015/testing/src/browser.js +2 -2
  42. package/esm2015/testing/src/browser_util.js +25 -9
  43. package/esm2015/testing/src/matchers.js +22 -9
  44. package/esm5/animations/src/animation_builder.js +38 -19
  45. package/esm5/animations/src/animation_renderer.js +31 -11
  46. package/esm5/animations/src/providers.js +2 -2
  47. package/esm5/src/browser/browser_adapter.js +43 -15
  48. package/esm5/src/browser/generic_browser_adapter.js +4 -2
  49. package/esm5/src/browser/meta.js +4 -2
  50. package/esm5/src/browser/testability.js +4 -2
  51. package/esm5/src/browser/title.js +7 -3
  52. package/esm5/src/browser/tools/common_tools.js +1 -1
  53. package/esm5/src/browser/transfer_state.js +10 -4
  54. package/esm5/src/browser.js +2 -2
  55. package/esm5/src/dom/debug/by.js +4 -2
  56. package/esm5/src/dom/dom_renderer.js +34 -12
  57. package/esm5/src/dom/events/dom_events.js +4 -2
  58. package/esm5/src/dom/events/event_manager.js +4 -2
  59. package/esm5/src/dom/events/hammer_gestures.js +28 -20
  60. package/esm5/src/dom/events/key_events.js +8 -6
  61. package/esm5/src/dom/shared_styles_host.js +10 -4
  62. package/esm5/src/dom/util.js +1 -1
  63. package/esm5/src/platform-browser.js +2 -2
  64. package/esm5/src/private_export.js +3 -3
  65. package/esm5/src/security/dom_sanitization_service.js +11 -5
  66. package/esm5/src/version.js +1 -1
  67. package/esm5/testing/src/browser.js +2 -2
  68. package/esm5/testing/src/browser_util.js +22 -8
  69. package/esm5/testing/src/matchers.js +21 -8
  70. package/fesm2015/animations.js +68 -29
  71. package/fesm2015/animations.js.map +1 -1
  72. package/fesm2015/platform-browser.js +162 -60
  73. package/fesm2015/platform-browser.js.map +1 -1
  74. package/fesm2015/testing.js +25 -9
  75. package/fesm2015/testing.js.map +1 -1
  76. package/fesm5/animations.js +68 -29
  77. package/fesm5/animations.js.map +1 -1
  78. package/fesm5/platform-browser.js +162 -68
  79. package/fesm5/platform-browser.js.map +1 -1
  80. package/fesm5/testing.js +22 -8
  81. package/fesm5/testing.js.map +1 -1
  82. package/package.json +4 -4
  83. package/platform-browser.d.ts +20 -20
  84. package/platform-browser.metadata.json +1 -1
  85. package/testing/testing.d.ts +1 -1
  86. package/testing/testing.metadata.json +1 -1
  87. package/testing.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v9.1.0
2
+ * @license Angular v9.1.4
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -53,21 +53,21 @@ var c,l=function(e){function t(){return e.call(this)||this}return o(t,e),t.proto
53
53
  *
54
54
  * Use of this source code is governed by an MIT-style license that can be
55
55
  * found in the LICENSE file at https://angular.io/license
56
- */var w={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},v="probe",_="coreTokens";function b(e){return n.ɵgetDebugNodeR2(e)}function E(e){return g(v,b),g(_,i(i({},w),function t(e){return e.reduce((function(e,t){return e[t.name]=t.token,e}),{})}(e||[]))),function(){return b}}var S=[{provide:n.APP_INITIALIZER,useFactory:E,deps:[[n.NgProbeToken,new n.Optional]],multi:!0}],T=S,O=new n.InjectionToken("EventManagerPlugins"),C=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach((function(e){return e.manager=n})),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},a([n.Injectable(),s(0,n.Inject(O)),u("design:paramtypes",[Array,n.NgZone])],e)}(),I=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,n,r){var o=t.ɵgetDOM().getGlobalEventTarget(this._doc,e);if(!o)throw new Error("Unsupported event target "+o+" for event "+n);return this.addEventListener(o,n,r)},e}(),A=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},a([n.Injectable()],e)}(),R=function(e){function r(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return o(r,e),r.prototype._addStylesToHost=function(e,t){var n=this;e.forEach((function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))}))},r.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},r.prototype.removeHost=function(e){this._hostNodes.delete(e)},r.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))},r.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(e){return t.ɵgetDOM().remove(e)}))},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(A),N={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},M=/%COMP%/g,D="_nghost-%COMP%",P="_ngcontent-%COMP%";function k(e){return P.replace(M,e)}function j(e){return D.replace(M,e)}function L(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?L(e,o,n):(o=o.replace(M,e),n.push(o))}return n}function H(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var x=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new U(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(t.id);return r||(r=new B(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r;case n.ViewEncapsulation.Native:case n.ViewEncapsulation.ShadowDom:return new z(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var o=L(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},a([n.Injectable(),s(2,n.Inject(n.APP_ID)),u("design:paramtypes",[C,R,String])],e)}(),U=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(N[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var o=N[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=N[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,r,o){o&n.RendererStyleFlags2.DashCase?e.style.setProperty(t,r,o&n.RendererStyleFlags2.Important?"important":""):e.style[t]=r},e.prototype.removeStyle=function(e,t,r){r&n.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,H(n)):this.eventManager.addEventListener(e,t,H(n))},e}();"@".charCodeAt(0);var B=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;i.component=r;var a=L(o+"-"+r.id,r.styles,[]);return n.addStyles(a),i.contentAttr=k(o+"-"+r.id),i.hostAttr=j(o+"-"+r.id),i}return o(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(U),z=function(e){function t(t,r,o,i){var a=e.call(this,t)||this;a.sharedStylesHost=r,a.hostEl=o,a.component=i,a.shadowRoot=i.encapsulation===n.ViewEncapsulation.ShadowDom?o.attachShadow({mode:"open"}):o.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=L(i.id,i.styles,[]),u=0;u<s.length;u++){var c=document.createElement("style");c.textContent=s[u],a.shadowRoot.appendChild(c)}return a}return o(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(U),F=function(e){function r(t){return e.call(this,t)||this}return o(r,e),r.prototype.supports=function(e){return!0},r.prototype.addEventListener=function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}},r.prototype.removeEventListener=function(e,t,n){return e.removeEventListener(t,n)},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(I),V={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},G=new n.InjectionToken("HammerGestureConfig"),Z=new n.InjectionToken("HammerLoader"),K=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},a([n.Injectable()],e)}(),q=function(e){function r(t,n,r,o){var i=e.call(this,t)||this;return i._config=n,i.console=r,i.loader=o,i}return o(r,e),r.prototype.supports=function(e){return!(!V.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},r.prototype.addEventListener=function(e,t,n){var r=this,o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var i=!1,a=function(){i=!0};return this.loader().then((function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});i||(a=r.addEventListener(e,t,n))})).catch((function(){r.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}})),function(){a()}}return o.runOutsideAngular((function(){var i=r._config.buildHammer(e),a=function(e){o.runGuarded((function(){n(e)}))};return i.on(t,a),function(){i.off(t,a),"function"==typeof i.destroy&&i.destroy()}}))},r.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),s(1,n.Inject(G)),s(3,n.Optional()),s(3,n.Inject(Z)),u("design:paramtypes",[Object,K,n.ɵConsole,Object])],r)}(I),J=[{provide:O,useClass:q,multi:!0,deps:[t.DOCUMENT,G,n.ɵConsole,[new n.Optional,Z]]},{provide:G,useClass:K,deps:[]}],W=J,X=a([n.NgModule({providers:J})],(function X(){})),Y=["alt","control","meta","shift"],Q={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},ee={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},te=function(e){function r(t){return e.call(this,t)||this}var i;return o(r,e),i=r,r.prototype.supports=function(e){return null!=i.parseEventName(e)},r.prototype.addEventListener=function(e,n,r){var o=i.parseEventName(n),a=i.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return t.ɵgetDOM().onAndCancel(e,o.domEventName,a)}))},r.parseEventName=function(e){var t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;var r=i._normalizeKey(t.pop()),o="";if(Y.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")})),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=n,a.fullKey=o,a},r.getEventFullKey=function(e){var t="",n=function r(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&$.hasOwnProperty(t)&&(t=$[t]))}return Q[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Y.forEach((function(r){r!=n&&(0,ee[r])(e)&&(t+=r+".")})),t+=n},r.eventCallback=function(e,t,n){return function(r){i.getEventFullKey(r)===e&&n.runGuarded((function(){return t(r)}))}},r._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},i=a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(I),ne=function(){function e(){}return e.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return n.ɵɵinject(oe)},token:e,providedIn:"root"}),a([n.Injectable({providedIn:"root",useExisting:n.forwardRef((function(){return oe}))})],e)}();function re(e){return new oe(e.get(t.DOCUMENT))}var oe=function(e){function r(t){var n=e.call(this)||this;return n._doc=t,n}return o(r,e),r.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case n.SecurityContext.NONE:return t;case n.SecurityContext.HTML:return n.ɵallowSanitizationBypassAndThrow(t,"HTML")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeHtml(this._doc,String(t));case n.SecurityContext.STYLE:return n.ɵallowSanitizationBypassAndThrow(t,"Style")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeStyle(t);case n.SecurityContext.SCRIPT:if(n.ɵallowSanitizationBypassAndThrow(t,"Script"))return n.ɵunwrapSafeValue(t);throw new Error("unsafe value used in a script context");case n.SecurityContext.URL:return n.ɵgetSanitizationBypassType(t),n.ɵallowSanitizationBypassAndThrow(t,"URL")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeUrl(String(t));case n.SecurityContext.RESOURCE_URL:if(n.ɵallowSanitizationBypassAndThrow(t,"ResourceURL"))return n.ɵunwrapSafeValue(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},r.prototype.bypassSecurityTrustHtml=function(e){return n.ɵbypassSanitizationTrustHtml(e)},r.prototype.bypassSecurityTrustStyle=function(e){return n.ɵbypassSanitizationTrustStyle(e)},r.prototype.bypassSecurityTrustScript=function(e){return n.ɵbypassSanitizationTrustScript(e)},r.prototype.bypassSecurityTrustUrl=function(e){return n.ɵbypassSanitizationTrustUrl(e)},r.prototype.bypassSecurityTrustResourceUrl=function(e){return n.ɵbypassSanitizationTrustResourceUrl(e)},r.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return re(n.ɵɵinject(n.INJECTOR))},token:r,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:re,deps:[n.Injector]}),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(ne);
56
+ */var w={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone};function v(e){return n.ɵgetDebugNodeR2(e)}function _(e){return g("probe",v),g("coreTokens",i(i({},w),function t(e){return e.reduce((function(e,t){return e[t.name]=t.token,e}),{})}(e||[]))),function(){return v}}var b=[{provide:n.APP_INITIALIZER,useFactory:_,deps:[[n.NgProbeToken,new n.Optional]],multi:!0}],E=b,S=new n.InjectionToken("EventManagerPlugins"),T=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach((function(e){return e.manager=n})),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},a([n.Injectable(),s(0,n.Inject(S)),u("design:paramtypes",[Array,n.NgZone])],e)}(),O=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,n,r){var o=t.ɵgetDOM().getGlobalEventTarget(this._doc,e);if(!o)throw new Error("Unsupported event target "+o+" for event "+n);return this.addEventListener(o,n,r)},e}(),C=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},a([n.Injectable()],e)}(),I=function(e){function r(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return o(r,e),r.prototype._addStylesToHost=function(e,t){var n=this;e.forEach((function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))}))},r.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},r.prototype.removeHost=function(e){this._hostNodes.delete(e)},r.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))},r.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(e){return t.ɵgetDOM().remove(e)}))},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(C),A={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},R=/%COMP%/g;function N(e){return"_ngcontent-%COMP%".replace(R,e)}function M(e){return"_nghost-%COMP%".replace(R,e)}function D(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?D(e,o,n):(o=o.replace(R,e),n.push(o))}return n}function P(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var k=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new j(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(t.id);return r||(r=new L(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r;case n.ViewEncapsulation.Native:case n.ViewEncapsulation.ShadowDom:return new H(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var o=D(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},a([n.Injectable(),s(2,n.Inject(n.APP_ID)),u("design:paramtypes",[T,I,String])],e)}(),j=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(A[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var o=A[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=A[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,r,o){o&n.RendererStyleFlags2.DashCase?e.style.setProperty(t,r,o&n.RendererStyleFlags2.Important?"important":""):e.style[t]=r},e.prototype.removeStyle=function(e,t,r){r&n.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,P(n)):this.eventManager.addEventListener(e,t,P(n))},e}();"@".charCodeAt(0);var L=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;i.component=r;var a=D(o+"-"+r.id,r.styles,[]);return n.addStyles(a),i.contentAttr=N(o+"-"+r.id),i.hostAttr=M(o+"-"+r.id),i}return o(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(j),H=function(e){function t(t,r,o,i){var a=e.call(this,t)||this;a.sharedStylesHost=r,a.hostEl=o,a.component=i,a.shadowRoot=i.encapsulation===n.ViewEncapsulation.ShadowDom?o.attachShadow({mode:"open"}):o.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=D(i.id,i.styles,[]),u=0;u<s.length;u++){var c=document.createElement("style");c.textContent=s[u],a.shadowRoot.appendChild(c)}return a}return o(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(j),x=function(e){function r(t){return e.call(this,t)||this}return o(r,e),r.prototype.supports=function(e){return!0},r.prototype.addEventListener=function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}},r.prototype.removeEventListener=function(e,t,n){return e.removeEventListener(t,n)},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(O),U={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},B=new n.InjectionToken("HammerGestureConfig"),z=new n.InjectionToken("HammerLoader"),F=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},a([n.Injectable()],e)}(),V=function(e){function r(t,n,r,o){var i=e.call(this,t)||this;return i._config=n,i.console=r,i.loader=o,i}return o(r,e),r.prototype.supports=function(e){return!(!U.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},r.prototype.addEventListener=function(e,t,n){var r=this,o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var i=!1,a=function(){i=!0};return this.loader().then((function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});i||(a=r.addEventListener(e,t,n))})).catch((function(){r.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}})),function(){a()}}return o.runOutsideAngular((function(){var i=r._config.buildHammer(e),a=function(e){o.runGuarded((function(){n(e)}))};return i.on(t,a),function(){i.off(t,a),"function"==typeof i.destroy&&i.destroy()}}))},r.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),s(1,n.Inject(B)),s(3,n.Optional()),s(3,n.Inject(z)),u("design:paramtypes",[Object,F,n.ɵConsole,Object])],r)}(O),G=[{provide:S,useClass:V,multi:!0,deps:[t.DOCUMENT,B,n.ɵConsole,[new n.Optional,z]]},{provide:B,useClass:F,deps:[]}],Z=G,K=a([n.NgModule({providers:G})],(function K(){})),q=["alt","control","meta","shift"],J={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},W={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},X={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Y=function(e){function r(t){return e.call(this,t)||this}var i;return o(r,e),i=r,r.prototype.supports=function(e){return null!=i.parseEventName(e)},r.prototype.addEventListener=function(e,n,r){var o=i.parseEventName(n),a=i.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return t.ɵgetDOM().onAndCancel(e,o.domEventName,a)}))},r.parseEventName=function(e){var t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;var r=i._normalizeKey(t.pop()),o="";if(q.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")})),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=n,a.fullKey=o,a},r.getEventFullKey=function(e){var t="",n=function r(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&W.hasOwnProperty(t)&&(t=W[t]))}return J[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),q.forEach((function(r){r!=n&&(0,X[r])(e)&&(t+=r+".")})),t+=n},r.eventCallback=function(e,t,n){return function(r){i.getEventFullKey(r)===e&&n.runGuarded((function(){return t(r)}))}},r._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},i=a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(O),Q=function(){function e(){}return e.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return n.ɵɵinject(ee)},token:e,providedIn:"root"}),a([n.Injectable({providedIn:"root",useExisting:n.forwardRef((function(){return ee}))})],e)}();function $(e){return new ee(e.get(t.DOCUMENT))}var ee=function(e){function r(t){var n=e.call(this)||this;return n._doc=t,n}return o(r,e),r.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case n.SecurityContext.NONE:return t;case n.SecurityContext.HTML:return n.ɵallowSanitizationBypassAndThrow(t,"HTML")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeHtml(this._doc,String(t));case n.SecurityContext.STYLE:return n.ɵallowSanitizationBypassAndThrow(t,"Style")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeStyle(t);case n.SecurityContext.SCRIPT:if(n.ɵallowSanitizationBypassAndThrow(t,"Script"))return n.ɵunwrapSafeValue(t);throw new Error("unsafe value used in a script context");case n.SecurityContext.URL:return n.ɵgetSanitizationBypassType(t),n.ɵallowSanitizationBypassAndThrow(t,"URL")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeUrl(String(t));case n.SecurityContext.RESOURCE_URL:if(n.ɵallowSanitizationBypassAndThrow(t,"ResourceURL"))return n.ɵunwrapSafeValue(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},r.prototype.bypassSecurityTrustHtml=function(e){return n.ɵbypassSanitizationTrustHtml(e)},r.prototype.bypassSecurityTrustStyle=function(e){return n.ɵbypassSanitizationTrustStyle(e)},r.prototype.bypassSecurityTrustScript=function(e){return n.ɵbypassSanitizationTrustScript(e)},r.prototype.bypassSecurityTrustUrl=function(e){return n.ɵbypassSanitizationTrustUrl(e)},r.prototype.bypassSecurityTrustResourceUrl=function(e){return n.ɵbypassSanitizationTrustResourceUrl(e)},r.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return $(n.ɵɵinject(n.INJECTOR))},token:r,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:$,deps:[n.Injector]}),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(Q);
57
57
  /**
58
58
  * @license
59
59
  * Copyright Google Inc. All Rights Reserved.
60
60
  *
61
61
  * Use of this source code is governed by an MIT-style license that can be
62
62
  * found in the LICENSE file at https://angular.io/license
63
- */function ie(){p.makeCurrent(),m.init()}function ae(){return new n.ErrorHandler}function se(){return n.ɵsetDocument(document),document}var ue=[{provide:n.PLATFORM_ID,useValue:t.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:ie,multi:!0},{provide:t.DOCUMENT,useFactory:se,deps:[]}],ce=[{provide:n.Sanitizer,useExisting:ne},{provide:ne,useClass:oe,deps:[t.DOCUMENT]}],le=n.createPlatformFactory(n.platformCore,"browser",ue),pe=[ce,{provide:n.ɵINJECTOR_SCOPE,useValue:"root"},{provide:n.ErrorHandler,useFactory:ae,deps:[]},{provide:O,useClass:F,multi:!0,deps:[t.DOCUMENT,n.NgZone,n.PLATFORM_ID]},{provide:O,useClass:te,multi:!0,deps:[t.DOCUMENT]},W,{provide:x,useClass:x,deps:[C,R,n.APP_ID]},{provide:n.RendererFactory2,useExisting:x},{provide:A,useExisting:R},{provide:R,useClass:R,deps:[t.DOCUMENT]},{provide:n.Testability,useClass:n.Testability,deps:[n.NgZone]},{provide:C,useClass:C,deps:[O,n.NgZone]},T],fe=function(){function e(e){if(e)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.")}var r;return r=e,e.withServerTransition=function(e){return{ngModule:r,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:d,useExisting:n.APP_ID},h]}},r=a([n.NgModule({providers:pe,exports:[t.CommonModule,n.ApplicationModule]}),s(0,n.Optional()),s(0,n.SkipSelf()),s(0,n.Inject(r)),u("design:paramtypes",[Object])],e)}();function de(){return new ye(n.ɵɵinject(t.DOCUMENT))}var ye=function(){function e(e){this._doc=e,this._dom=t.ɵgetDOM()}return e.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},e.prototype.addTags=function(e,t){var n=this;return void 0===t&&(t=!1),e?e.reduce((function(e,r){return r&&e.push(n._getOrCreateElement(r,t)),e}),[]):[]},e.prototype.getTag=function(e){return e&&this._doc.querySelector("meta["+e+"]")||null},e.prototype.getTags=function(e){if(!e)return[];var t=this._doc.querySelectorAll("meta["+e+"]");return t?[].slice.call(t):[]},e.prototype.updateTag=function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)},e.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},e.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},e.prototype._getOrCreateElement=function(e,t){if(void 0===t&&(t=!1),!t){var n=this._parseSelector(e),r=this.getTag(n);if(r&&this._containsAttributes(e,r))return r}var o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o},e.prototype._setMetaElementAttributes=function(e,t){return Object.keys(e).forEach((function(n){return t.setAttribute(n,e[n])})),t},e.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},e.prototype._containsAttributes=function(e,t){return Object.keys(e).every((function(n){return t.getAttribute(n)===e[n]}))},e.ɵprov=n.ɵɵdefineInjectable({factory:de,token:e,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:de,deps:[]}),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],e)}();function he(){return new me(n.ɵɵinject(t.DOCUMENT))}var me=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return this._doc.title},e.prototype.setTitle=function(e){this._doc.title=e||""},e.ɵprov=n.ɵɵdefineInjectable({factory:he,token:e,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:he,deps:[]}),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],e)}(),ge="undefined"!=typeof window&&window||{},we=function we(e,t){this.msPerTick=e,this.numTicks=t},ve=function(){function e(e){this.appRef=e.injector.get(n.ApplicationRef)}return e.prototype.timeChangeDetection=function(e){var n=e&&e.record,r=null!=ge.console.profile;n&&r&&ge.console.profile("Change Detection");for(var o=t.ɵgetDOM().performanceNow(),i=0;i<5||t.ɵgetDOM().performanceNow()-o<500;)this.appRef.tick(),i++;var a=t.ɵgetDOM().performanceNow();n&&r&&ge.console.profileEnd("Change Detection");var s=(a-o)/i;return ge.console.log("ran "+i+" change detection cycles"),ge.console.log(s.toFixed(2)+" ms per check"),new we(s,i)},e}(),_e=function(){function e(){this.store={},this.onSerializeCallbacks={}}var t;return t=e,e.init=function(e){var n=new t;return n.store=e,n},e.prototype.get=function(e,t){return void 0!==this.store[e]?this.store[e]:t},e.prototype.set=function(e,t){this.store[e]=t},e.prototype.remove=function(e){delete this.store[e]},e.prototype.hasKey=function(e){return this.store.hasOwnProperty(e)},e.prototype.onSerialize=function(e,t){this.onSerializeCallbacks[e]=t},e.prototype.toJson=function(){for(var e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store)},t=a([n.Injectable()],e)}();
63
+ */function te(){p.makeCurrent(),m.init()}function ne(){return new n.ErrorHandler}function re(){return n.ɵsetDocument(document),document}var oe=[{provide:n.PLATFORM_ID,useValue:t.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:te,multi:!0},{provide:t.DOCUMENT,useFactory:re,deps:[]}],ie=[{provide:n.Sanitizer,useExisting:Q},{provide:Q,useClass:ee,deps:[t.DOCUMENT]}],ae=n.createPlatformFactory(n.platformCore,"browser",oe),se=[ie,{provide:n.ɵINJECTOR_SCOPE,useValue:"root"},{provide:n.ErrorHandler,useFactory:ne,deps:[]},{provide:S,useClass:x,multi:!0,deps:[t.DOCUMENT,n.NgZone,n.PLATFORM_ID]},{provide:S,useClass:Y,multi:!0,deps:[t.DOCUMENT]},Z,{provide:k,useClass:k,deps:[T,I,n.APP_ID]},{provide:n.RendererFactory2,useExisting:k},{provide:C,useExisting:I},{provide:I,useClass:I,deps:[t.DOCUMENT]},{provide:n.Testability,useClass:n.Testability,deps:[n.NgZone]},{provide:T,useClass:T,deps:[S,n.NgZone]},E],ue=function(){function e(e){if(e)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.")}var r;return r=e,e.withServerTransition=function(e){return{ngModule:r,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:d,useExisting:n.APP_ID},h]}},r=a([n.NgModule({providers:se,exports:[t.CommonModule,n.ApplicationModule]}),s(0,n.Optional()),s(0,n.SkipSelf()),s(0,n.Inject(r)),u("design:paramtypes",[Object])],e)}();function ce(){return new le(n.ɵɵinject(t.DOCUMENT))}var le=function(){function e(e){this._doc=e,this._dom=t.ɵgetDOM()}return e.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},e.prototype.addTags=function(e,t){var n=this;return void 0===t&&(t=!1),e?e.reduce((function(e,r){return r&&e.push(n._getOrCreateElement(r,t)),e}),[]):[]},e.prototype.getTag=function(e){return e&&this._doc.querySelector("meta["+e+"]")||null},e.prototype.getTags=function(e){if(!e)return[];var t=this._doc.querySelectorAll("meta["+e+"]");return t?[].slice.call(t):[]},e.prototype.updateTag=function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)},e.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},e.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},e.prototype._getOrCreateElement=function(e,t){if(void 0===t&&(t=!1),!t){var n=this._parseSelector(e),r=this.getTag(n);if(r&&this._containsAttributes(e,r))return r}var o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o},e.prototype._setMetaElementAttributes=function(e,t){return Object.keys(e).forEach((function(n){return t.setAttribute(n,e[n])})),t},e.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},e.prototype._containsAttributes=function(e,t){return Object.keys(e).every((function(n){return t.getAttribute(n)===e[n]}))},e.ɵprov=n.ɵɵdefineInjectable({factory:ce,token:e,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:ce,deps:[]}),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],e)}();function pe(){return new fe(n.ɵɵinject(t.DOCUMENT))}var fe=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return this._doc.title},e.prototype.setTitle=function(e){this._doc.title=e||""},e.ɵprov=n.ɵɵdefineInjectable({factory:pe,token:e,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:pe,deps:[]}),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],e)}(),de="undefined"!=typeof window&&window||{},ye=function ye(e,t){this.msPerTick=e,this.numTicks=t},he=function(){function e(e){this.appRef=e.injector.get(n.ApplicationRef)}return e.prototype.timeChangeDetection=function(e){var n=e&&e.record,r=null!=de.console.profile;n&&r&&de.console.profile("Change Detection");for(var o=t.ɵgetDOM().performanceNow(),i=0;i<5||t.ɵgetDOM().performanceNow()-o<500;)this.appRef.tick(),i++;var a=t.ɵgetDOM().performanceNow();n&&r&&de.console.profileEnd("Change Detection");var s=(a-o)/i;return de.console.log("ran "+i+" change detection cycles"),de.console.log(s.toFixed(2)+" ms per check"),new ye(s,i)},e}(),me=function(){function e(){this.store={},this.onSerializeCallbacks={}}var t;return t=e,e.init=function(e){var n=new t;return n.store=e,n},e.prototype.get=function(e,t){return void 0!==this.store[e]?this.store[e]:t},e.prototype.set=function(e,t){this.store[e]=t},e.prototype.remove=function(e){delete this.store[e]},e.prototype.hasKey=function(e){return this.store.hasOwnProperty(e)},e.prototype.onSerialize=function(e,t){this.onSerializeCallbacks[e]=t},e.prototype.toJson=function(){for(var e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store)},t=a([n.Injectable()],e)}();
64
64
  /**
65
65
  * @license
66
66
  * Copyright Google Inc. All Rights Reserved.
67
67
  *
68
68
  * Use of this source code is governed by an MIT-style license that can be
69
69
  * found in the LICENSE file at https://angular.io/license
70
- */function be(e,t){var n=e.getElementById(t+"-state"),r={};if(n&&n.textContent)try{r=JSON.parse(function o(e){var t={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return e.replace(/&[^;]+;/g,(function(e){return t[e]}))}(n.textContent))}catch(e){console.warn("Exception while restoring TransferState for app "+t,e)}return _e.init(r)}var Ee=a([n.NgModule({providers:[{provide:_e,useFactory:be,deps:[t.DOCUMENT,n.APP_ID]}]})],(function Ee(){})),Se=function(){function e(){}return e.all=function(){return function(){return!0}},e.css=function(e){return function(n){return null!=n.nativeElement&&function r(e,n){return!!t.ɵgetDOM().isElementNode(e)&&(e.matches&&e.matches(n)||e.msMatchesSelector&&e.msMatchesSelector(n)||e.webkitMatchesSelector&&e.webkitMatchesSelector(n))}
70
+ */function ge(e,t){var n=e.getElementById(t+"-state"),r={};if(n&&n.textContent)try{r=JSON.parse(function o(e){var t={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return e.replace(/&[^;]+;/g,(function(e){return t[e]}))}(n.textContent))}catch(e){console.warn("Exception while restoring TransferState for app "+t,e)}return me.init(r)}var we=a([n.NgModule({providers:[{provide:me,useFactory:ge,deps:[t.DOCUMENT,n.APP_ID]}]})],(function we(){})),ve=function(){function e(){}return e.all=function(){return function(){return!0}},e.css=function(e){return function(n){return null!=n.nativeElement&&function r(e,n){return!!t.ɵgetDOM().isElementNode(e)&&(e.matches&&e.matches(n)||e.msMatchesSelector&&e.msMatchesSelector(n)||e.webkitMatchesSelector&&e.webkitMatchesSelector(n))}
71
71
  /**
72
72
  * @license
73
73
  * Copyright Google Inc. All Rights Reserved.
@@ -81,7 +81,7 @@ var c,l=function(e){function t(){return e.call(this)||this}return o(t,e),t.proto
81
81
  *
82
82
  * Use of this source code is governed by an MIT-style license that can be
83
83
  * found in the LICENSE file at https://angular.io/license
84
- */(n.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}},e}(),Te=new n.Version("9.1.0");
84
+ */(n.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}},e}(),_e=new n.Version("9.1.4");
85
85
  /**
86
86
  * @license
87
87
  * Copyright Google Inc. All Rights Reserved.
@@ -110,11 +110,11 @@ var c,l=function(e){function t(){return e.call(this)||this}return o(t,e),t.proto
110
110
  * Use of this source code is governed by an MIT-style license that can be
111
111
  * found in the LICENSE file at https://angular.io/license
112
112
  */
113
- Object.defineProperty(e,"ɵgetDOM",{enumerable:!0,get:function(){return t.ɵgetDOM}}),e.BrowserModule=fe,e.BrowserTransferStateModule=Ee,e.By=Se,e.DomSanitizer=ne,e.EVENT_MANAGER_PLUGINS=O,e.EventManager=C,e.HAMMER_GESTURE_CONFIG=G,e.HAMMER_LOADER=Z,e.HammerGestureConfig=K,e.HammerModule=X,e.Meta=ye,e.Title=me,e.TransferState=_e,e.VERSION=Te,e.disableDebugTools=function Oe(){g("profiler",null)}
113
+ Object.defineProperty(e,"ɵgetDOM",{enumerable:!0,get:function(){return t.ɵgetDOM}}),e.BrowserModule=ue,e.BrowserTransferStateModule=we,e.By=ve,e.DomSanitizer=Q,e.EVENT_MANAGER_PLUGINS=S,e.EventManager=T,e.HAMMER_GESTURE_CONFIG=B,e.HAMMER_LOADER=z,e.HammerGestureConfig=F,e.HammerModule=K,e.Meta=le,e.Title=fe,e.TransferState=me,e.VERSION=_e,e.disableDebugTools=function be(){g("profiler",null)}
114
114
  /**
115
115
  * @license
116
116
  * Copyright Google Inc. All Rights Reserved.
117
117
  *
118
118
  * Use of this source code is governed by an MIT-style license that can be
119
119
  * found in the LICENSE file at https://angular.io/license
120
- */,e.enableDebugTools=function Ce(e){return g("profiler",new ve(e)),e},e.makeStateKey=function Ie(e){return e},e.platformBrowser=le,e.ɵBROWSER_SANITIZATION_PROVIDERS=ce,e.ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__=[],e.ɵBrowserDomAdapter=p,e.ɵBrowserGetTestability=m,e.ɵDomEventsPlugin=F,e.ɵDomRendererFactory2=x,e.ɵDomSanitizerImpl=oe,e.ɵDomSharedStylesHost=R,e.ɵELEMENT_PROBE_PROVIDERS=T,e.ɵELEMENT_PROBE_PROVIDERS__POST_R3__=[],e.ɵHAMMER_PROVIDERS__POST_R3__=[],e.ɵHammerGesturesPlugin=q,e.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ue,e.ɵKeyEventsPlugin=te,e.ɵNAMESPACE_URIS=N,e.ɵSharedStylesHost=A,e.ɵTRANSITION_ID=d,e.ɵangular_packages_platform_browser_platform_browser_a=ae,e.ɵangular_packages_platform_browser_platform_browser_b=se,e.ɵangular_packages_platform_browser_platform_browser_c=pe,e.ɵangular_packages_platform_browser_platform_browser_d=de,e.ɵangular_packages_platform_browser_platform_browser_e=he,e.ɵangular_packages_platform_browser_platform_browser_f=be,e.ɵangular_packages_platform_browser_platform_browser_g=I,e.ɵangular_packages_platform_browser_platform_browser_h=J,e.ɵangular_packages_platform_browser_platform_browser_i=W,e.ɵangular_packages_platform_browser_platform_browser_j=re,e.ɵangular_packages_platform_browser_platform_browser_k=y,e.ɵangular_packages_platform_browser_platform_browser_l=h,e.ɵangular_packages_platform_browser_platform_browser_m=E,e.ɵangular_packages_platform_browser_platform_browser_n=S,e.ɵangular_packages_platform_browser_platform_browser_o=l,e.ɵescapeHtml=function Ae(e){var t={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return e.replace(/[&"'<>]/g,(function(e){return t[e]}))},e.ɵflattenStyles=L,e.ɵinitDomAdapter=ie,e.ɵshimContentAttribute=k,e.ɵshimHostAttribute=j,Object.defineProperty(e,"__esModule",{value:!0})}));
120
+ */,e.enableDebugTools=function Ee(e){return g("profiler",new he(e)),e},e.makeStateKey=function Se(e){return e},e.platformBrowser=ae,e.ɵBROWSER_SANITIZATION_PROVIDERS=ie,e.ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__=[],e.ɵBrowserDomAdapter=p,e.ɵBrowserGetTestability=m,e.ɵDomEventsPlugin=x,e.ɵDomRendererFactory2=k,e.ɵDomSanitizerImpl=ee,e.ɵDomSharedStylesHost=I,e.ɵELEMENT_PROBE_PROVIDERS=E,e.ɵELEMENT_PROBE_PROVIDERS__POST_R3__=[],e.ɵHAMMER_PROVIDERS__POST_R3__=[],e.ɵHammerGesturesPlugin=V,e.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=oe,e.ɵKeyEventsPlugin=Y,e.ɵNAMESPACE_URIS=A,e.ɵSharedStylesHost=C,e.ɵTRANSITION_ID=d,e.ɵangular_packages_platform_browser_platform_browser_a=ne,e.ɵangular_packages_platform_browser_platform_browser_b=re,e.ɵangular_packages_platform_browser_platform_browser_c=se,e.ɵangular_packages_platform_browser_platform_browser_d=ce,e.ɵangular_packages_platform_browser_platform_browser_e=pe,e.ɵangular_packages_platform_browser_platform_browser_f=ge,e.ɵangular_packages_platform_browser_platform_browser_g=O,e.ɵangular_packages_platform_browser_platform_browser_h=G,e.ɵangular_packages_platform_browser_platform_browser_i=Z,e.ɵangular_packages_platform_browser_platform_browser_j=$,e.ɵangular_packages_platform_browser_platform_browser_k=y,e.ɵangular_packages_platform_browser_platform_browser_l=h,e.ɵangular_packages_platform_browser_platform_browser_m=_,e.ɵangular_packages_platform_browser_platform_browser_n=b,e.ɵangular_packages_platform_browser_platform_browser_o=l,e.ɵescapeHtml=function Te(e){var t={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return e.replace(/[&"'<>]/g,(function(e){return t[e]}))},e.ɵflattenStyles=D,e.ɵinitDomAdapter=te,e.ɵshimContentAttribute=N,e.ɵshimHostAttribute=M,Object.defineProperty(e,"__esModule",{value:!0})}));