@angular/platform-server 9.0.0-rc.6 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/platform-server-testing.umd.js +2 -2
- package/bundles/platform-server-testing.umd.min.js +2 -2
- package/bundles/platform-server-testing.umd.min.js.map +1 -1
- package/bundles/platform-server.umd.js +6 -5
- package/bundles/platform-server.umd.js.map +1 -1
- package/bundles/platform-server.umd.min.js +10 -10
- package/bundles/platform-server.umd.min.js.map +1 -1
- package/esm2015/src/server_renderer.js +3 -3
- package/esm2015/src/tokens.js +1 -1
- package/esm2015/src/utils.js +3 -2
- package/esm2015/src/version.js +1 -1
- package/esm5/src/server_renderer.js +3 -3
- package/esm5/src/tokens.js +1 -1
- package/esm5/src/utils.js +2 -1
- package/esm5/src/version.js +1 -1
- package/fesm2015/platform-server.js +7 -6
- package/fesm2015/platform-server.js.map +1 -1
- package/fesm2015/testing.js +2 -2
- package/fesm5/platform-server.js +6 -5
- package/fesm5/platform-server.js.map +1 -1
- package/fesm5/testing.js +2 -2
- package/package.json +7 -7
- package/platform-server.d.ts +3 -3
- package/platform-server.metadata.json +1 -1
- package/testing/testing.d.ts +2 -2
- package/testing.d.ts +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v9.0.0
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v9.0.0
|
|
3
|
+
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("@angular/animations/browser"),require("@angular/common/http"),require("@angular/platform-browser-dynamic"),require("@angular/platform-browser/animations"),require("rxjs"),require("url"),require("@angular/compiler"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@angular/platform-server",["exports","@angular/common","@angular/core","@angular/platform-browser","@angular/animations/browser","@angular/common/http","@angular/platform-browser-dynamic","@angular/platform-browser/animations","rxjs","url","@angular/compiler","rxjs/operators"],e):e(((t=t||self).ng=t.ng||{},t.ng.platformServer={}),t.ng.common,t.ng.core,t.ng.platformBrowser,t.ng.animations.browser,t.ng.common.http,t.ng.platformBrowserDynamic,t.ng.platformBrowser.animations,t.rxjs,t.url,t.ng.compiler,t.rxjs.operators)}(this,(function(t,e,r,n,o,a,i,s,
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("@angular/animations/browser"),require("@angular/common/http"),require("@angular/platform-browser-dynamic"),require("@angular/platform-browser/animations"),require("rxjs"),require("url"),require("@angular/compiler"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@angular/platform-server",["exports","@angular/common","@angular/core","@angular/platform-browser","@angular/animations/browser","@angular/common/http","@angular/platform-browser-dynamic","@angular/platform-browser/animations","rxjs","url","@angular/compiler","rxjs/operators"],e):e(((t=t||self).ng=t.ng||{},t.ng.platformServer={}),t.ng.common,t.ng.core,t.ng.platformBrowser,t.ng.animations.browser,t.ng.common.http,t.ng.platformBrowserDynamic,t.ng.platformBrowser.animations,t.rxjs,t.url,t.ng.compiler,t.rxjs.operators)}(this,(function(t,e,r,n,o,a,i,u,s,c,p,l){"use strict";
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
19
19
|
and limitations under the License.
|
|
20
|
-
***************************************************************************** */var f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function h(t,e){function r(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function d(t,e,r,n){var o,a=arguments.length,i=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var
|
|
20
|
+
***************************************************************************** */var f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function h(t,e){function r(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function d(t,e,r,n){var o,a=arguments.length,i=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(i=(a<3?o(i):a>3?o(e,r,i):o(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i}function m(t,e){return function(r,n){e(r,n,t)}}function y(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* Use of this source code is governed by an MIT-style license that can be
|
|
26
26
|
* found in the LICENSE file at https://angular.io/license
|
|
27
27
|
*/
|
|
28
|
-
var g=require("domino");function v(t){return new Error("This method is not implemented in DominoAdapter: "+t)}function b(t,e){return void 0===e&&(e="/"),g.createWindow(t,e).document}var E=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return h(r,t),r.makeCurrent=function(){!function t(){Object.assign(global,g.impl),global.KeyboardEvent=g.impl.Event}(),e.ɵsetRootDomAdapter(new r)},r.prototype.log=function(t){console.log(t)},r.prototype.logGroup=function(t){console.error(t)},r.prototype.logGroupEnd=function(){},r.prototype.supportsDOMEvents=function(){return!1},r.prototype.createHtmlDocument=function(){return b("<html><head><title>fakeTitle</title></head><body></body></html>")},r.prototype.getDefaultDocument=function(){return r.defaultDoc||(r.defaultDoc=g.createDocument()),r.defaultDoc},r.prototype.isElementNode=function(t){return!!t&&t.nodeType===r.defaultDoc.ELEMENT_NODE},r.prototype.isShadowRoot=function(t){return t.shadowRoot==t},r.prototype.getProperty=function(t,e){return"href"===e?t.getAttribute("href"):"innerText"===e?t.textContent:t[e]},r.prototype.getGlobalEventTarget=function(t,e){return"window"===e?t.defaultView:"document"===e?t:"body"===e?t.body:null},r.prototype.getBaseHref=function(t){var e=t.documentElement.querySelector("base"),r="";return e&&(r=e.getAttribute("href")),r},r.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e);var r=(t.ownerDocument||t).defaultView;r&&r.dispatchEvent(e)},r.prototype.getHistory=function(){throw v("getHistory")},r.prototype.getLocation=function(){throw v("getLocation")},r.prototype.getUserAgent=function(){return"Fake user agent"},r.prototype.performanceNow=function(){return Date.now()},r.prototype.supportsCookies=function(){return!1},r.prototype.getCookie=function(t){throw v("getCookie")},r}(n.ɵBrowserDomAdapter),_=function(){function t(t){this._doc=t}return t.prototype.renderToString=function(){return function t(e){return e.serialize()}(this._doc)},t.prototype.getDocument=function(){return this._doc},d([r.Injectable(),m(0,r.Inject(e.DOCUMENT)),y("design:paramtypes",[Object])],t)}(),w=require("xhr2"),S=function(){function t(){}return t.prototype.build=function(){return new w.XMLHttpRequest},d([r.Injectable()],t)}(),A=function(t){function e(e){var r=t.call(this)||this;return r.backend=e,r}return h(e,t),e.prototype.handle=function(t){return this.wrap(t)},e.prototype.delegate=function(t){return this.backend.handle(t)},e}(function(){function t(){}return t.prototype.wrap=function(t){var e=this;return new
|
|
28
|
+
var g=require("domino");function v(t){return new Error("This method is not implemented in DominoAdapter: "+t)}function b(t,e){return void 0===e&&(e="/"),g.createWindow(t,e).document}var E=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return h(r,t),r.makeCurrent=function(){!function t(){Object.assign(global,g.impl),global.KeyboardEvent=g.impl.Event}(),e.ɵsetRootDomAdapter(new r)},r.prototype.log=function(t){console.log(t)},r.prototype.logGroup=function(t){console.error(t)},r.prototype.logGroupEnd=function(){},r.prototype.supportsDOMEvents=function(){return!1},r.prototype.createHtmlDocument=function(){return b("<html><head><title>fakeTitle</title></head><body></body></html>")},r.prototype.getDefaultDocument=function(){return r.defaultDoc||(r.defaultDoc=g.createDocument()),r.defaultDoc},r.prototype.isElementNode=function(t){return!!t&&t.nodeType===r.defaultDoc.ELEMENT_NODE},r.prototype.isShadowRoot=function(t){return t.shadowRoot==t},r.prototype.getProperty=function(t,e){return"href"===e?t.getAttribute("href"):"innerText"===e?t.textContent:t[e]},r.prototype.getGlobalEventTarget=function(t,e){return"window"===e?t.defaultView:"document"===e?t:"body"===e?t.body:null},r.prototype.getBaseHref=function(t){var e=t.documentElement.querySelector("base"),r="";return e&&(r=e.getAttribute("href")),r},r.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e);var r=(t.ownerDocument||t).defaultView;r&&r.dispatchEvent(e)},r.prototype.getHistory=function(){throw v("getHistory")},r.prototype.getLocation=function(){throw v("getLocation")},r.prototype.getUserAgent=function(){return"Fake user agent"},r.prototype.performanceNow=function(){return Date.now()},r.prototype.supportsCookies=function(){return!1},r.prototype.getCookie=function(t){throw v("getCookie")},r}(n.ɵBrowserDomAdapter),_=function(){function t(t){this._doc=t}return t.prototype.renderToString=function(){return function t(e){return e.serialize()}(this._doc)},t.prototype.getDocument=function(){return this._doc},d([r.Injectable(),m(0,r.Inject(e.DOCUMENT)),y("design:paramtypes",[Object])],t)}(),w=require("xhr2"),S=function(){function t(){}return t.prototype.build=function(){return new w.XMLHttpRequest},d([r.Injectable()],t)}(),A=function(t){function e(e){var r=t.call(this)||this;return r.backend=e,r}return h(e,t),e.prototype.handle=function(t){return this.wrap(t)},e.prototype.delegate=function(t){return this.backend.handle(t)},e}(function(){function t(){}return t.prototype.wrap=function(t){var e=this;return new s.Observable((function(r){var n=null,o=!1,a=null,i=null,u=null;return function(r){n=r,o=!0;var s=e.delegate(t);a=s.subscribe((function(t){return i=t}),(function(t){if(!o)throw new Error("An http observable was completed twice. This shouldn't happen, please file a bug.");u=t,o=!1,n.invoke()}),(function(){if(!o)throw new Error("An http observable was completed twice. This shouldn't happen, please file a bug.");o=!1,n.invoke()}))}(Zone.current.scheduleMacroTask("ZoneMacroTaskWrapper.subscribe",(function(){null!==u?r.error(u):(r.next(i),r.complete())}),{},(function(){return null}),(function(t){o&&(o=!1,a&&(a.unsubscribe(),a=null))}))),function(){o&&n&&(n.zone.cancelTask(n),o=!1),a&&(a.unsubscribe(),a=null)}}))},t}());
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -47,21 +47,21 @@ var g=require("domino");function v(t){return new Error("This method is not imple
|
|
|
47
47
|
* Use of this source code is governed by an MIT-style license that can be
|
|
48
48
|
* found in the LICENSE file at https://angular.io/license
|
|
49
49
|
*/
|
|
50
|
-
function M(t){var e=c.parse(t);return{hostname:e.hostname||"",protocol:e.protocol||"",port:e.port||"",pathname:e.pathname||"",search:e.search||"",hash:e.hash||""}}var R=function(){function t(t,e){if(this._doc=t,this.href="/",this.hostname="/",this.protocol="/",this.port="/",this.pathname="/",this.search="",this.hash="",this._hashUpdate=new
|
|
50
|
+
function M(t){var e=c.parse(t);return{hostname:e.hostname||"",protocol:e.protocol||"",port:e.port||"",pathname:e.pathname||"",search:e.search||"",hash:e.hash||""}}var R=function(){function t(t,e){if(this._doc=t,this.href="/",this.hostname="/",this.protocol="/",this.port="/",this.pathname="/",this.search="",this.hash="",this._hashUpdate=new s.Subject,e&&e.url){var r=M(e.url);this.hostname=r.hostname,this.protocol=r.protocol,this.port=r.port,this.pathname=r.pathname,this.search=r.search,this.hash=r.hash}}return t.prototype.getBaseHrefFromDOM=function(){return e.ɵgetDOM().getBaseHref(this._doc)},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){this._hashUpdate.subscribe(t)},Object.defineProperty(t.prototype,"url",{get:function(){return""+this.pathname+this.search+this.hash},enumerable:!0,configurable:!0}),t.prototype.setHash=function(t,e){var r=this;if(this.hash!==t){this.hash=t;var n=this.url;!function o(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright Google Inc. All Rights Reserved.
|
|
54
54
|
*
|
|
55
55
|
* Use of this source code is governed by an MIT-style license that can be
|
|
56
56
|
* found in the LICENSE file at https://angular.io/license
|
|
57
|
-
*/((function(){return r._hashUpdate.next({type:"hashchange",state:null,oldUrl:e,newUrl:n})}))}},t.prototype.replaceState=function(t,e,r){var n=this.url,o=M(r);this.pathname=o.pathname,this.search=o.search,this.setHash(o.hash,n)},t.prototype.pushState=function(t,e,r){this.replaceState(t,e,r)},t.prototype.forward=function(){throw new Error("Not implemented")},t.prototype.back=function(){throw new Error("Not implemented")},t.prototype.getState=function(){},d([r.Injectable(),m(0,r.Inject(e.DOCUMENT)),m(1,r.Optional()),m(1,r.Inject(O)),y("design:paramtypes",[Object,Object])],t)}(),T=function(){function t(t){this.doc=t}return t.prototype.supports=function(t){return!0},t.prototype.addEventListener=function(t,r,n){return e.ɵgetDOM().onAndCancel(t,r,n)},t.prototype.addGlobalEventListener=function(t,r,n){var o=e.ɵgetDOM().getGlobalEventTarget(this.doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+r);return this.addEventListener(o,r,n)},d([r.Injectable(),m(0,r.Inject(e.DOCUMENT)),y("design:paramtypes",[Object])],t)}(),N=[],j=new p.DomElementSchemaRegistry,P=function(){function t(t,e,r,n){this.eventManager=t,this.ngZone=e,this.document=r,this.sharedStylesHost=n,this.rendererByCompId=new Map,this.schema=j,this.defaultRenderer=new x(t,r,e,this.schema)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ViewEncapsulation.Native:case r.ViewEncapsulation.Emulated:var o=this.rendererByCompId.get(e.id);return o||(o=new F(this.eventManager,this.document,this.ngZone,this.sharedStylesHost,this.schema,e),this.rendererByCompId.set(e.id,o)),o.applyToHost(t),o;default:if(!this.rendererByCompId.has(e.id)){var a=n.ɵflattenStyles(e.id,e.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},d([r.Injectable(),m(2,r.Inject(e.DOCUMENT)),y("design:paramtypes",[n.EventManager,r.NgZone,Object,n.ɵSharedStylesHost])],t)}(),x=function(){function t(t,e,r,n){this.eventManager=t,this.document=e,this.ngZone=r,this.schema=n,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,r,o){return r?(this.document||e.ɵgetDOM().getDefaultDocument()).createElementNS(n.ɵNAMESPACE_URIS[r],t):e.ɵgetDOM().createElement(t,this.document)},t.prototype.createComment=function(t,r){return e.ɵgetDOM().getDefaultDocument().createComment(t)},t.prototype.createText=function(t,r){return e.ɵgetDOM().getDefaultDocument().createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,r){t&&t.insertBefore(e,r)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t,e){var r;if("string"==typeof t){if(!(r=this.document.querySelector(t)))throw new Error('The selector "'+t+'" did not match any elements')}else r=t;for(;r.firstChild;)r.removeChild(r.firstChild);return r},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,r,o){o?t.setAttributeNS(n.ɵNAMESPACE_URIS[o],o+":"+e,r):t.setAttribute(e,r)},t.prototype.removeAttribute=function(t,e,r){r?t.removeAttributeNS(n.ɵNAMESPACE_URIS[r],e):t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,r,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var o=function a(t){var e={},r=t.getAttribute("style");if(r)for(var n=r.split(/;+/g),o=0;o<n.length;o++){var a=n[o].trim();if(a.length>0){var i=a.indexOf(":");if(-1===i)throw new Error("Invalid CSS style: "+a);e[a.substr(0,i).trim()]=a.substr(i+1).trim()}}return e}(t);o[e]=r
|
|
57
|
+
*/((function(){return r._hashUpdate.next({type:"hashchange",state:null,oldUrl:e,newUrl:n})}))}},t.prototype.replaceState=function(t,e,r){var n=this.url,o=M(r);this.pathname=o.pathname,this.search=o.search,this.setHash(o.hash,n)},t.prototype.pushState=function(t,e,r){this.replaceState(t,e,r)},t.prototype.forward=function(){throw new Error("Not implemented")},t.prototype.back=function(){throw new Error("Not implemented")},t.prototype.getState=function(){},d([r.Injectable(),m(0,r.Inject(e.DOCUMENT)),m(1,r.Optional()),m(1,r.Inject(O)),y("design:paramtypes",[Object,Object])],t)}(),T=function(){function t(t){this.doc=t}return t.prototype.supports=function(t){return!0},t.prototype.addEventListener=function(t,r,n){return e.ɵgetDOM().onAndCancel(t,r,n)},t.prototype.addGlobalEventListener=function(t,r,n){var o=e.ɵgetDOM().getGlobalEventTarget(this.doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+r);return this.addEventListener(o,r,n)},d([r.Injectable(),m(0,r.Inject(e.DOCUMENT)),y("design:paramtypes",[Object])],t)}(),N=[],j=new p.DomElementSchemaRegistry,P=function(){function t(t,e,r,n){this.eventManager=t,this.ngZone=e,this.document=r,this.sharedStylesHost=n,this.rendererByCompId=new Map,this.schema=j,this.defaultRenderer=new x(t,r,e,this.schema)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ViewEncapsulation.Native:case r.ViewEncapsulation.Emulated:var o=this.rendererByCompId.get(e.id);return o||(o=new F(this.eventManager,this.document,this.ngZone,this.sharedStylesHost,this.schema,e),this.rendererByCompId.set(e.id,o)),o.applyToHost(t),o;default:if(!this.rendererByCompId.has(e.id)){var a=n.ɵflattenStyles(e.id,e.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},d([r.Injectable(),m(2,r.Inject(e.DOCUMENT)),y("design:paramtypes",[n.EventManager,r.NgZone,Object,n.ɵSharedStylesHost])],t)}(),x=function(){function t(t,e,r,n){this.eventManager=t,this.document=e,this.ngZone=r,this.schema=n,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,r,o){return r?(this.document||e.ɵgetDOM().getDefaultDocument()).createElementNS(n.ɵNAMESPACE_URIS[r],t):e.ɵgetDOM().createElement(t,this.document)},t.prototype.createComment=function(t,r){return e.ɵgetDOM().getDefaultDocument().createComment(t)},t.prototype.createText=function(t,r){return e.ɵgetDOM().getDefaultDocument().createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,r){t&&t.insertBefore(e,r)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t,e){var r;if("string"==typeof t){if(!(r=this.document.querySelector(t)))throw new Error('The selector "'+t+'" did not match any elements')}else r=t;for(;r.firstChild;)r.removeChild(r.firstChild);return r},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,r,o){o?t.setAttributeNS(n.ɵNAMESPACE_URIS[o],o+":"+e,r):t.setAttribute(e,r)},t.prototype.removeAttribute=function(t,e,r){r?t.removeAttributeNS(n.ɵNAMESPACE_URIS[r],e):t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,r,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var o=function a(t){var e={},r=t.getAttribute("style");if(r)for(var n=r.split(/;+/g),o=0;o<n.length;o++){var a=n[o].trim();if(a.length>0){var i=a.indexOf(":");if(-1===i)throw new Error("Invalid CSS style: "+a);e[a.substr(0,i).trim()]=a.substr(i+1).trim()}}return e}(t);o[e]=null==r?"":r,function i(t,e){var r="";for(var n in e)null!=e[n]&&(r+=n+":"+e[n]+";");t.setAttribute("style",r)}
|
|
58
58
|
/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright Google Inc. All Rights Reserved.
|
|
61
61
|
*
|
|
62
62
|
* Use of this source code is governed by an MIT-style license that can be
|
|
63
63
|
* found in the LICENSE file at https://angular.io/license
|
|
64
|
-
*/(t,o)},t.prototype.removeStyle=function(t,e,r){this.setStyle(t,e,"",r)},t.prototype._isSafeToReflectProperty=function(t,e){return this.schema.securityContext(t,e,!0)===this.schema.securityContext(t,e,!1)},t.prototype.setProperty=function(t,e,r){H(e,"property"),"innerText"===e&&(t.textContent=r),t[e]=r;var n=t.tagName.toLowerCase();null!=r&&("number"==typeof r||"string"==typeof r)&&"innerhtml"!==e.toLowerCase()&&this.schema.hasElement(n,N)&&this.schema.hasProperty(n,e,N)&&this._isSafeToReflectProperty(n,e)&&this.setAttribute(t,e,r.toString())},t.prototype.setValue=function(t,e){t.textContent=e},t.prototype.listen=function(t,e,r){return H(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,this.decoratePreventDefault(r)):this.eventManager.addEventListener(t,e,this.decoratePreventDefault(r))},t.prototype.decoratePreventDefault=function(t){var e=this;return function(r){if(r===Function)return t;!1===e.ngZone.runGuarded((function(){return t(r)}))&&(r.preventDefault(),r.returnValue=!1)}},t}(),L="@".charCodeAt(0);function H(t,e){if(t.charCodeAt(0)===L)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var F=function(t){function e(e,r,o,a,i,
|
|
64
|
+
*/(t,o)},t.prototype.removeStyle=function(t,e,r){this.setStyle(t,e,"",r)},t.prototype._isSafeToReflectProperty=function(t,e){return this.schema.securityContext(t,e,!0)===this.schema.securityContext(t,e,!1)},t.prototype.setProperty=function(t,e,r){H(e,"property"),"innerText"===e&&(t.textContent=r),t[e]=r;var n=t.tagName.toLowerCase();null!=r&&("number"==typeof r||"string"==typeof r)&&"innerhtml"!==e.toLowerCase()&&this.schema.hasElement(n,N)&&this.schema.hasProperty(n,e,N)&&this._isSafeToReflectProperty(n,e)&&this.setAttribute(t,e,r.toString())},t.prototype.setValue=function(t,e){t.textContent=e},t.prototype.listen=function(t,e,r){return H(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,this.decoratePreventDefault(r)):this.eventManager.addEventListener(t,e,this.decoratePreventDefault(r))},t.prototype.decoratePreventDefault=function(t){var e=this;return function(r){if(r===Function)return t;!1===e.ngZone.runGuarded((function(){return t(r)}))&&(r.preventDefault(),r.returnValue=!1)}},t}(),L="@".charCodeAt(0);function H(t,e){if(t.charCodeAt(0)===L)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var F=function(t){function e(e,r,o,a,i,u){var s=t.call(this,e,r,o,i)||this;s.component=u;var c="s"+u.id,p=n.ɵflattenStyles(c,u.styles,[]);return a.addStyles(p),s.contentAttr=n.ɵshimContentAttribute(c),s.hostAttr=n.ɵshimHostAttribute(c),s}return h(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,r){var n=t.prototype.createElement.call(this,e,r,this.document);return t.prototype.setAttribute.call(this,n,this.contentAttr,""),n},e}(x),k=function(t){function o(e,r){var n=t.call(this)||this;return n.doc=e,n.transitionId=r,n.head=null,n.head=e.getElementsByTagName("head")[0],n}return h(o,t),o.prototype._addStyle=function(t){var r=e.ɵgetDOM().createElement("style");r.textContent=t,this.transitionId&&r.setAttribute("ng-transition",this.transitionId),this.head.appendChild(r)},o.prototype.onStylesAdded=function(t){var e=this;t.forEach((function(t){return e._addStyle(t)}))},d([r.Injectable(),m(0,r.Inject(e.DOCUMENT)),m(1,r.Optional()),m(1,r.Inject(n.ɵTRANSITION_ID)),y("design:paramtypes",[Object,String])],o)}(n.ɵSharedStylesHost),B=[{provide:e.DOCUMENT,useFactory:function U(t){var n=t.get(O,null),o=n&&n.document?b(n.document,n.url):e.ɵgetDOM().createHtmlDocument();return r.ɵsetDocument(o),o},deps:[r.Injector]},{provide:r.PLATFORM_ID,useValue:e.ɵPLATFORM_SERVER_ID},{provide:r.PLATFORM_INITIALIZER,useFactory:function V(t){return function(){E.makeCurrent()}},multi:!0,deps:[r.Injector]},{provide:e.PlatformLocation,useClass:R,deps:[e.DOCUMENT,[r.Optional,O]]},{provide:_,deps:[e.DOCUMENT]},{provide:r.ɵALLOW_MULTIPLE_PLATFORMS,useValue:!0}];function q(t,e,r){return new u.ɵAnimationRendererFactory(t,e,r)}var Z=[P,{provide:r.RendererFactory2,useFactory:q,deps:[P,o.ɵAnimationEngine,r.NgZone]},k,{provide:n.ɵSharedStylesHost,useExisting:k},{provide:n.EVENT_MANAGER_PLUGINS,multi:!0,useClass:T}],G=d([r.NgModule({exports:[n.BrowserModule],imports:[a.HttpClientModule,u.NoopAnimationsModule],providers:[Z,I,{provide:r.Testability,useValue:null},{provide:e.ViewportScroller,useClass:e.ɵNullViewportScroller}]})],(function G(){})),z=r.createPlatformFactory(r.platformCore,"server",B),W=r.createPlatformFactory(i.ɵplatformCoreDynamic,"serverDynamic",B);
|
|
65
65
|
/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -76,7 +76,7 @@ function K(t,e,r){return function(){var o=t.createElement("script");o.id=e+"-sta
|
|
|
76
76
|
*
|
|
77
77
|
* Use of this source code is governed by an MIT-style license that can be
|
|
78
78
|
* found in the LICENSE file at https://angular.io/license
|
|
79
|
-
*/function $(t,e){return t([{provide:O,useValue:{document:e.document,url:e.url}},e.extraProviders?e.extraProviders:[]])}function J(t,e){return e.then((function(e){if(!e.injector.get(n.ɵTRANSITION_ID,null))throw new Error("renderModule[Factory]() requires the use of BrowserModule.withServerTransition() to ensure\nthe server-rendered app can be properly bootstrapped into a client app.");return e.injector.get(r.ApplicationRef).isStable.pipe(l.first((function(t){return t}))).toPromise().then((function(){var n,o,a=t.injector.get(_),i=[],
|
|
79
|
+
*/function $(t,e){return t([{provide:O,useValue:{document:e.document,url:e.url}},e.extraProviders?e.extraProviders:[]])}function J(t,e){return e.then((function(e){if(!e.injector.get(n.ɵTRANSITION_ID,null))throw new Error("renderModule[Factory]() requires the use of BrowserModule.withServerTransition() to ensure\nthe server-rendered app can be properly bootstrapped into a client app.");return e.injector.get(r.ApplicationRef).isStable.pipe(l.first((function(t){return t}))).toPromise().then((function(){var n,o,a=t.injector.get(_),i=[],u=e.injector.get(C,null);if(u)try{for(var s=function c(t){var e="function"==typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}(u),p=s.next();!p.done;p=s.next()){var l=p.value;try{var f=l();r.ɵisPromise(f)&&i.push(f)}catch(t){console.warn("Ignoring BEFORE_APP_SERIALIZED Exception: ",t)}}}catch(t){n={error:t}}finally{try{p&&!p.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}var h=function(){var e=a.renderToString();return t.destroy(),e};return 0===i.length?h():Promise.all(i.map((function(t){return t.catch((function(t){console.warn("Ignoring BEFORE_APP_SERIALIZED Exception: ",t)}))}))).then(h)}))}))}
|
|
80
80
|
/**
|
|
81
81
|
* @license
|
|
82
82
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -91,7 +91,7 @@ function K(t,e,r){return function(){var o=t.createElement("script");o.id=e+"-sta
|
|
|
91
91
|
* Use of this source code is governed by an MIT-style license that can be
|
|
92
92
|
* found in the LICENSE file at https://angular.io/license
|
|
93
93
|
*/
|
|
94
|
-
var Q=new r.Version("9.0.0
|
|
94
|
+
var Q=new r.Version("9.0.0");
|
|
95
95
|
/**
|
|
96
96
|
* @license
|
|
97
97
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["packages/platform-server/platform-server.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","platformServer","common","core","platformBrowser","animations","browser","http","platformBrowserDynamic","rxjs","url","compiler","operators","this","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","__metadata","metadataKey","metadataValue","metadata","domino","_notImplemented","methodName","Error","parseDocument","html","createWindow","document","DominoAdapter","_super","apply","makeCurrent","setDomTypes","assign","impl","Event","ɵsetRootDomAdapter","log","error","console","logGroup","logGroupEnd","supportsDOMEvents","createHtmlDocument","getDefaultDocument","defaultDoc","createDocument","isElementNode","node","nodeType","ELEMENT_NODE","isShadowRoot","shadowRoot","getProperty","el","name","getAttribute","textContent","getGlobalEventTarget","doc","defaultView","body","getBaseHref","base","documentElement","querySelector","href","dispatchEvent","evt","win","ownerDocument","getHistory","getLocation","getUserAgent","performanceNow","Date","now","supportsCookies","getCookie","ɵBrowserDomAdapter","PlatformState","_doc","renderToString","serializeDocument","serialize","getDocument","Injectable","Inject","DOCUMENT","xhr2","ServerXhr","build","XMLHttpRequest","ZoneClientBackend","backend","_this","call","handle","request","wrap","delegate","ZoneMacroTaskWrapper","Observable","observer","task","scheduled","sub","savedResult","savedError","_task","subscribe","res","err","invoke","scheduleTask","Zone","current","scheduleMacroTask","next","complete","unsubscribe","zone","cancelTask","zoneWrappedInterceptingHandler","injector","realBackend","ɵHttpInterceptingHandler","SERVER_HTTP_PROVIDERS","provide","XhrFactory","useClass","HttpHandler","useFactory","deps","HttpBackend","Injector","INITIAL_CONFIG","InjectionToken","BEFORE_APP_SERIALIZED","parseUrl","urlStr","parsedUrl","parse","hostname","protocol","port","pathname","search","hash","ServerPlatformLocation","_config","_hashUpdate","Subject","getBaseHrefFromDOM","ɵgetDOM","onPopState","fn","onHashChange","get","enumerable","configurable","setHash","value","oldUrl","newUrl","scheduleMicroTask","type","state","replaceState","title","pushState","forward","back","getState","Optional","ServerEventManagerPlugin","supports","eventName","addEventListener","element","handler","onAndCancel","addGlobalEventListener","EMPTY_ARRAY","DEFAULT_SCHEMA","DomElementSchemaRegistry","ServerRendererFactory2","eventManager","ngZone","sharedStylesHost","rendererByCompId","Map","schema","defaultRenderer","DefaultServerRenderer2","createRenderer","encapsulation","ViewEncapsulation","Native","Emulated","renderer","id","EmulatedEncapsulationServerRenderer2","set","applyToHost","has","styles","ɵflattenStyles","addStyles","begin","end","EventManager","NgZone","ɵSharedStylesHost","data","destroy","createElement","namespace","debugInfo","createElementNS","ɵNAMESPACE_URIS","createComment","createText","createTextNode","appendChild","parent","newChild","insertBefore","refChild","removeChild","oldChild","selectRootElement","selectorOrNode","firstChild","parentNode","nextSibling","setAttribute","setAttributeNS","removeAttribute","removeAttributeNS","addClass","classList","add","removeClass","remove","setStyle","style","flags","replace","toLowerCase","styleMap","_readStyleAttribute","styleAttribute","styleList","split","trim","colonIndex","indexOf","substr","_writeStyleAttribute","styleAttrValue","removeStyle","_isSafeToReflectProperty","tagName","propertyName","securityContext","setProperty","checkNoSyntheticProp","hasElement","hasProperty","toString","setValue","listen","callback","decoratePreventDefault","eventHandler","event","Function","runGuarded","preventDefault","returnValue","AT_CHARCODE","charCodeAt","nameKind","component","componentId","contentAttr","ɵshimContentAttribute","hostAttr","ɵshimHostAttribute","ServerStylesHost","transitionId","head","getElementsByTagName","_addStyle","onStylesAdded","additions","forEach","ɵTRANSITION_ID","String","INTERNAL_SERVER_PLATFORM_PROVIDERS","_document","config","ɵsetDocument","PLATFORM_ID","useValue","ɵPLATFORM_SERVER_ID","PLATFORM_INITIALIZER","initDominoAdapter","multi","PlatformLocation","ɵALLOW_MULTIPLE_PLATFORMS","instantiateServerRendererFactory","engine","ɵAnimationRendererFactory","SERVER_RENDER_PROVIDERS","RendererFactory2","ɵAnimationEngine","useExisting","EVENT_MANAGER_PLUGINS","ServerModule","NgModule","BrowserModule","imports","HttpClientModule","NoopAnimationsModule","providers","Testability","ViewportScroller","ɵNullViewportScroller","createPlatformFactory","platformCore","platformDynamicServer","ɵplatformCoreDynamic","serializeTransferStateFactory","appId","transferStore","script","ɵescapeHtml","toJson","ServerTransferStateModule","TransferState","APP_ID","_getPlatform","platformFactory","options","extraProviders","_render","platform","moduleRefPromise","then","moduleRef","ApplicationRef","isStable","pipe","first","toPromise","e_1","_a","platformState","asyncPromises","callbacks","callbacks_1","__values","o","m","Symbol","iterator","done","callbacks_1_1","callbackResult","ɵisPromise","push","e","warn","e_1_1","return","output","Promise","all","map","asyncPromise","catch","VERSION","Version","renderModule","bootstrapModule","renderModuleFactory","moduleFactory","bootstrapModuleFactory","ɵINTERNAL_SERVER_PLATFORM_PROVIDERS","ɵSERVER_RENDER_PROVIDERS","ɵServerRendererFactory2","ɵangular_packages_platform_server_platform_server_a","ɵangular_packages_platform_server_platform_server_b","ɵangular_packages_platform_server_platform_server_c","ɵangular_packages_platform_server_platform_server_d","ɵangular_packages_platform_server_platform_server_e","ɵangular_packages_platform_server_platform_server_f","ɵangular_packages_platform_server_platform_server_g"],"mappings":";;;;;CAMC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,mBAAoBA,QAAQ,iBAAkBA,QAAQ,6BAA8BA,QAAQ,+BAAgCA,QAAQ,wBAAyBA,QAAQ,qCAAsCA,QAAQ,wCAAyCA,QAAQ,QAASA,QAAQ,OAAQA,QAAQ,qBAAsBA,QAAQ,mBACzY,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,2BAA4B,CAAC,UAAW,kBAAmB,gBAAiB,4BAA6B,8BAA+B,uBAAwB,oCAAqC,uCAAwC,OAAQ,MAAO,oBAAqB,kBAAmB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IT\n */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/platform-browser'), require('@angular/animations/browser'), require('@angular/common/http'), require('@angular/platform-browser-dynamic'), require('@angular/platform-browser/animations'), require('rxjs'), require('url'), require('@angular/compiler'), require('rxjs/operators')) :\n typeof define === 'function' && define.amd ? define('@angular/platform-server', ['exports', '@angular/common', '@angular/core', '@angular/platform-browser', '@angular/animations/browser', '@angular/common/http', '@angular/platform-browser-dynamic', '@angular/platform-browser/animations', 'rxjs', 'url', '@angular/compiler', 'rxjs/operators'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.platformServer = {}), global.ng.common, global.ng.core, global.ng.platformBrowser, global.ng.animations.browser, global.ng.common.http, global.ng.platformBrowserDynamic, global.ng.platformBrowser.animations, global.rxjs, global.url, global.ng.compiler, global.rxjs.operators));\n}(this, (function (exports, common, core, platformBrowser, browser, http, platformBrowserDynamic, animations, rxjs, url, compiler, operators) { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation. All rights reserved.\r\n Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n this file except in compliance with the License. You may obtain a copy of the\r\n License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n See the Apache Version 2.0 License for specific language governing permissions\r\n and limitations under the License.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\r\n\r\n var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n };\r\n\r\n function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n }\r\n\r\n function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n }\r\n\r\n function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n }\r\n\r\n function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n }\r\n\r\n function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n }\r\n\r\n function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n }\r\n\r\n function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n }\r\n\r\n function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n }\r\n\r\n function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n }\r\n\r\n function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n }\r\n\r\n function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n };\r\n\r\n function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n }\r\n\r\n function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n }\r\n\r\n function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n }\r\n\r\n function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n }\r\n\r\n function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n };\r\n\r\n function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n }\r\n\r\n function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var domino = require('domino');\n function _notImplemented(methodName) {\n return new Error('This method is not implemented in DominoAdapter: ' + methodName);\n }\n function setDomTypes() {\n // Make all Domino types available as types in the global env.\n Object.assign(global, domino.impl);\n global['KeyboardEvent'] = domino.impl.Event;\n }\n /**\n * Parses a document string to a Document object.\n */\n function parseDocument(html, url) {\n if (url === void 0) { url = '/'; }\n var window = domino.createWindow(html, url);\n var doc = window.document;\n return doc;\n }\n /**\n * Serializes a document to string.\n */\n function serializeDocument(doc) {\n return doc.serialize();\n }\n /**\n * DOM Adapter for the server platform based on https://github.com/fgnass/domino.\n */\n var DominoAdapter = /** @class */ (function (_super) {\n __extends(DominoAdapter, _super);\n function DominoAdapter() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n DominoAdapter.makeCurrent = function () {\n setDomTypes();\n common.ɵsetRootDomAdapter(new DominoAdapter());\n };\n DominoAdapter.prototype.log = function (error) {\n // tslint:disable-next-line:no-console\n console.log(error);\n };\n DominoAdapter.prototype.logGroup = function (error) { console.error(error); };\n DominoAdapter.prototype.logGroupEnd = function () { };\n DominoAdapter.prototype.supportsDOMEvents = function () { return false; };\n DominoAdapter.prototype.createHtmlDocument = function () {\n return parseDocument('<html><head><title>fakeTitle</title></head><body></body></html>');\n };\n DominoAdapter.prototype.getDefaultDocument = function () {\n if (!DominoAdapter.defaultDoc) {\n DominoAdapter.defaultDoc = domino.createDocument();\n }\n return DominoAdapter.defaultDoc;\n };\n DominoAdapter.prototype.isElementNode = function (node) {\n return node ? node.nodeType === DominoAdapter.defaultDoc.ELEMENT_NODE : false;\n };\n DominoAdapter.prototype.isShadowRoot = function (node) { return node.shadowRoot == node; };\n DominoAdapter.prototype.getProperty = function (el, name) {\n if (name === 'href') {\n // Domino tries to resolve href-s which we do not want. Just return the\n // attribute value.\n return el.getAttribute('href');\n }\n else if (name === 'innerText') {\n // Domino does not support innerText. Just map it to textContent.\n return el.textContent;\n }\n return el[name];\n };\n DominoAdapter.prototype.getGlobalEventTarget = function (doc, target) {\n if (target === 'window') {\n return doc.defaultView;\n }\n if (target === 'document') {\n return doc;\n }\n if (target === 'body') {\n return doc.body;\n }\n return null;\n };\n DominoAdapter.prototype.getBaseHref = function (doc) {\n var base = doc.documentElement.querySelector('base');\n var href = '';\n if (base) {\n href = base.getAttribute('href');\n }\n // TODO(alxhub): Need relative path logic from BrowserDomAdapter here?\n return href;\n };\n DominoAdapter.prototype.dispatchEvent = function (el, evt) {\n el.dispatchEvent(evt);\n // Dispatch the event to the window also.\n var doc = el.ownerDocument || el;\n var win = doc.defaultView;\n if (win) {\n win.dispatchEvent(evt);\n }\n };\n DominoAdapter.prototype.getHistory = function () { throw _notImplemented('getHistory'); };\n DominoAdapter.prototype.getLocation = function () { throw _notImplemented('getLocation'); };\n DominoAdapter.prototype.getUserAgent = function () { return 'Fake user agent'; };\n DominoAdapter.prototype.performanceNow = function () { return Date.now(); };\n DominoAdapter.prototype.supportsCookies = function () { return false; };\n DominoAdapter.prototype.getCookie = function (name) { throw _notImplemented('getCookie'); };\n return DominoAdapter;\n }(platformBrowser.ɵBrowserDomAdapter));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Representation of the current platform state.\n *\n * @publicApi\n */\n var PlatformState = /** @class */ (function () {\n function PlatformState(_doc) {\n this._doc = _doc;\n }\n /**\n * Renders the current state of the platform to string.\n */\n PlatformState.prototype.renderToString = function () { return serializeDocument(this._doc); };\n /**\n * Returns the current DOM state.\n */\n PlatformState.prototype.getDocument = function () { return this._doc; };\n PlatformState = __decorate([\n core.Injectable(),\n __param(0, core.Inject(common.DOCUMENT)),\n __metadata(\"design:paramtypes\", [Object])\n ], PlatformState);\n return PlatformState;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var xhr2 = require('xhr2');\n var ServerXhr = /** @class */ (function () {\n function ServerXhr() {\n }\n ServerXhr.prototype.build = function () { return new xhr2.XMLHttpRequest(); };\n ServerXhr = __decorate([\n core.Injectable()\n ], ServerXhr);\n return ServerXhr;\n }());\n var ZoneMacroTaskWrapper = /** @class */ (function () {\n function ZoneMacroTaskWrapper() {\n }\n ZoneMacroTaskWrapper.prototype.wrap = function (request) {\n var _this = this;\n return new rxjs.Observable(function (observer) {\n var task = null;\n var scheduled = false;\n var sub = null;\n var savedResult = null;\n var savedError = null;\n var scheduleTask = function (_task) {\n task = _task;\n scheduled = true;\n var delegate = _this.delegate(request);\n sub = delegate.subscribe(function (res) { return savedResult = res; }, function (err) {\n if (!scheduled) {\n throw new Error('An http observable was completed twice. This shouldn\\'t happen, please file a bug.');\n }\n savedError = err;\n scheduled = false;\n task.invoke();\n }, function () {\n if (!scheduled) {\n throw new Error('An http observable was completed twice. This shouldn\\'t happen, please file a bug.');\n }\n scheduled = false;\n task.invoke();\n });\n };\n var cancelTask = function (_task) {\n if (!scheduled) {\n return;\n }\n scheduled = false;\n if (sub) {\n sub.unsubscribe();\n sub = null;\n }\n };\n var onComplete = function () {\n if (savedError !== null) {\n observer.error(savedError);\n }\n else {\n observer.next(savedResult);\n observer.complete();\n }\n };\n // MockBackend for Http is synchronous, which means that if scheduleTask is by\n // scheduleMacroTask, the request will hit MockBackend and the response will be\n // sent, causing task.invoke() to be called.\n var _task = Zone.current.scheduleMacroTask('ZoneMacroTaskWrapper.subscribe', onComplete, {}, function () { return null; }, cancelTask);\n scheduleTask(_task);\n return function () {\n if (scheduled && task) {\n task.zone.cancelTask(task);\n scheduled = false;\n }\n if (sub) {\n sub.unsubscribe();\n sub = null;\n }\n };\n });\n };\n return ZoneMacroTaskWrapper;\n }());\n var ZoneClientBackend = /** @class */ (function (_super) {\n __extends(ZoneClientBackend, _super);\n function ZoneClientBackend(backend) {\n var _this = _super.call(this) || this;\n _this.backend = backend;\n return _this;\n }\n ZoneClientBackend.prototype.handle = function (request) { return this.wrap(request); };\n ZoneClientBackend.prototype.delegate = function (request) {\n return this.backend.handle(request);\n };\n return ZoneClientBackend;\n }(ZoneMacroTaskWrapper));\n function zoneWrappedInterceptingHandler(backend, injector) {\n var realBackend = new http.ɵHttpInterceptingHandler(backend, injector);\n return new ZoneClientBackend(realBackend);\n }\n var SERVER_HTTP_PROVIDERS = [\n { provide: http.XhrFactory, useClass: ServerXhr }, {\n provide: http.HttpHandler,\n useFactory: zoneWrappedInterceptingHandler,\n deps: [http.HttpBackend, core.Injector]\n }\n ];\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * The DI token for setting the initial config for the platform.\n *\n * @publicApi\n */\n var INITIAL_CONFIG = new core.InjectionToken('Server.INITIAL_CONFIG');\n /**\n * A function that will be executed when calling `renderModuleFactory` or `renderModule` just\n * before current platform state is rendered to string.\n *\n * @publicApi\n */\n var BEFORE_APP_SERIALIZED = new core.InjectionToken('Server.RENDER_MODULE_HOOK');\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function parseUrl(urlStr) {\n var parsedUrl = url.parse(urlStr);\n return {\n hostname: parsedUrl.hostname || '',\n protocol: parsedUrl.protocol || '',\n port: parsedUrl.port || '',\n pathname: parsedUrl.pathname || '',\n search: parsedUrl.search || '',\n hash: parsedUrl.hash || '',\n };\n }\n /**\n * Server-side implementation of URL state. Implements `pathname`, `search`, and `hash`\n * but not the state stack.\n */\n var ServerPlatformLocation = /** @class */ (function () {\n function ServerPlatformLocation(_doc, _config) {\n this._doc = _doc;\n this.href = '/';\n this.hostname = '/';\n this.protocol = '/';\n this.port = '/';\n this.pathname = '/';\n this.search = '';\n this.hash = '';\n this._hashUpdate = new rxjs.Subject();\n var config = _config;\n if (!!config && !!config.url) {\n var parsedUrl = parseUrl(config.url);\n this.hostname = parsedUrl.hostname;\n this.protocol = parsedUrl.protocol;\n this.port = parsedUrl.port;\n this.pathname = parsedUrl.pathname;\n this.search = parsedUrl.search;\n this.hash = parsedUrl.hash;\n }\n }\n ServerPlatformLocation.prototype.getBaseHrefFromDOM = function () { return common.ɵgetDOM().getBaseHref(this._doc); };\n ServerPlatformLocation.prototype.onPopState = function (fn) {\n // No-op: a state stack is not implemented, so\n // no events will ever come.\n };\n ServerPlatformLocation.prototype.onHashChange = function (fn) { this._hashUpdate.subscribe(fn); };\n Object.defineProperty(ServerPlatformLocation.prototype, \"url\", {\n get: function () { return \"\" + this.pathname + this.search + this.hash; },\n enumerable: true,\n configurable: true\n });\n ServerPlatformLocation.prototype.setHash = function (value, oldUrl) {\n var _this = this;\n if (this.hash === value) {\n // Don't fire events if the hash has not changed.\n return;\n }\n this.hash = value;\n var newUrl = this.url;\n scheduleMicroTask(function () { return _this._hashUpdate.next({\n type: 'hashchange', state: null, oldUrl: oldUrl, newUrl: newUrl\n }); });\n };\n ServerPlatformLocation.prototype.replaceState = function (state, title, newUrl) {\n var oldUrl = this.url;\n var parsedUrl = parseUrl(newUrl);\n this.pathname = parsedUrl.pathname;\n this.search = parsedUrl.search;\n this.setHash(parsedUrl.hash, oldUrl);\n };\n ServerPlatformLocation.prototype.pushState = function (state, title, newUrl) {\n this.replaceState(state, title, newUrl);\n };\n ServerPlatformLocation.prototype.forward = function () { throw new Error('Not implemented'); };\n ServerPlatformLocation.prototype.back = function () { throw new Error('Not implemented'); };\n // History API isn't available on server, therefore return undefined\n ServerPlatformLocation.prototype.getState = function () { return undefined; };\n ServerPlatformLocation = __decorate([\n core.Injectable(),\n __param(0, core.Inject(common.DOCUMENT)), __param(1, core.Optional()), __param(1, core.Inject(INITIAL_CONFIG)),\n __metadata(\"design:paramtypes\", [Object, Object])\n ], ServerPlatformLocation);\n return ServerPlatformLocation;\n }());\n function scheduleMicroTask(fn) {\n Zone.current.scheduleMicroTask('scheduleMicrotask', fn);\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var ServerEventManagerPlugin = /** @class */ (function () {\n function ServerEventManagerPlugin(doc) {\n this.doc = doc;\n }\n // Handle all events on the server.\n ServerEventManagerPlugin.prototype.supports = function (eventName) { return true; };\n ServerEventManagerPlugin.prototype.addEventListener = function (element, eventName, handler) {\n return common.ɵgetDOM().onAndCancel(element, eventName, handler);\n };\n ServerEventManagerPlugin.prototype.addGlobalEventListener = function (element, eventName, handler) {\n var target = common.ɵgetDOM().getGlobalEventTarget(this.doc, element);\n if (!target) {\n throw new Error(\"Unsupported event target \" + target + \" for event \" + eventName);\n }\n return this.addEventListener(target, eventName, handler);\n };\n ServerEventManagerPlugin = __decorate([\n core.Injectable(),\n __param(0, core.Inject(common.DOCUMENT)),\n __metadata(\"design:paramtypes\", [Object])\n ], ServerEventManagerPlugin);\n return ServerEventManagerPlugin;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var EMPTY_ARRAY = [];\n var DEFAULT_SCHEMA = new compiler.DomElementSchemaRegistry();\n var ServerRendererFactory2 = /** @class */ (function () {\n function ServerRendererFactory2(eventManager, ngZone, document, sharedStylesHost) {\n this.eventManager = eventManager;\n this.ngZone = ngZone;\n this.document = document;\n this.sharedStylesHost = sharedStylesHost;\n this.rendererByCompId = new Map();\n this.schema = DEFAULT_SCHEMA;\n this.defaultRenderer = new DefaultServerRenderer2(eventManager, document, ngZone, this.schema);\n }\n ServerRendererFactory2.prototype.createRenderer = function (element, type) {\n if (!element || !type) {\n return this.defaultRenderer;\n }\n switch (type.encapsulation) {\n case core.ViewEncapsulation.Native:\n case core.ViewEncapsulation.Emulated: {\n var renderer = this.rendererByCompId.get(type.id);\n if (!renderer) {\n renderer = new EmulatedEncapsulationServerRenderer2(this.eventManager, this.document, this.ngZone, this.sharedStylesHost, this.schema, type);\n this.rendererByCompId.set(type.id, renderer);\n }\n renderer.applyToHost(element);\n return renderer;\n }\n default: {\n if (!this.rendererByCompId.has(type.id)) {\n var styles = platformBrowser.ɵflattenStyles(type.id, type.styles, []);\n this.sharedStylesHost.addStyles(styles);\n this.rendererByCompId.set(type.id, this.defaultRenderer);\n }\n return this.defaultRenderer;\n }\n }\n };\n ServerRendererFactory2.prototype.begin = function () { };\n ServerRendererFactory2.prototype.end = function () { };\n ServerRendererFactory2 = __decorate([\n core.Injectable(),\n __param(2, core.Inject(common.DOCUMENT)),\n __metadata(\"design:paramtypes\", [platformBrowser.EventManager, core.NgZone, Object, platformBrowser.ɵSharedStylesHost])\n ], ServerRendererFactory2);\n return ServerRendererFactory2;\n }());\n var DefaultServerRenderer2 = /** @class */ (function () {\n function DefaultServerRenderer2(eventManager, document, ngZone, schema) {\n this.eventManager = eventManager;\n this.document = document;\n this.ngZone = ngZone;\n this.schema = schema;\n this.data = Object.create(null);\n }\n DefaultServerRenderer2.prototype.destroy = function () { };\n DefaultServerRenderer2.prototype.createElement = function (name, namespace, debugInfo) {\n if (namespace) {\n var doc = this.document || common.ɵgetDOM().getDefaultDocument();\n return doc.createElementNS(platformBrowser.ɵNAMESPACE_URIS[namespace], name);\n }\n return common.ɵgetDOM().createElement(name, this.document);\n };\n DefaultServerRenderer2.prototype.createComment = function (value, debugInfo) {\n return common.ɵgetDOM().getDefaultDocument().createComment(value);\n };\n DefaultServerRenderer2.prototype.createText = function (value, debugInfo) {\n var doc = common.ɵgetDOM().getDefaultDocument();\n return doc.createTextNode(value);\n };\n DefaultServerRenderer2.prototype.appendChild = function (parent, newChild) { parent.appendChild(newChild); };\n DefaultServerRenderer2.prototype.insertBefore = function (parent, newChild, refChild) {\n if (parent) {\n parent.insertBefore(newChild, refChild);\n }\n };\n DefaultServerRenderer2.prototype.removeChild = function (parent, oldChild) {\n if (parent) {\n parent.removeChild(oldChild);\n }\n };\n DefaultServerRenderer2.prototype.selectRootElement = function (selectorOrNode, debugInfo) {\n var el;\n if (typeof selectorOrNode === 'string') {\n el = this.document.querySelector(selectorOrNode);\n if (!el) {\n throw new Error(\"The selector \\\"\" + selectorOrNode + \"\\\" did not match any elements\");\n }\n }\n else {\n el = selectorOrNode;\n }\n while (el.firstChild) {\n el.removeChild(el.firstChild);\n }\n return el;\n };\n DefaultServerRenderer2.prototype.parentNode = function (node) { return node.parentNode; };\n DefaultServerRenderer2.prototype.nextSibling = function (node) { return node.nextSibling; };\n DefaultServerRenderer2.prototype.setAttribute = function (el, name, value, namespace) {\n if (namespace) {\n el.setAttributeNS(platformBrowser.ɵNAMESPACE_URIS[namespace], namespace + ':' + name, value);\n }\n else {\n el.setAttribute(name, value);\n }\n };\n DefaultServerRenderer2.prototype.removeAttribute = function (el, name, namespace) {\n if (namespace) {\n el.removeAttributeNS(platformBrowser.ɵNAMESPACE_URIS[namespace], name);\n }\n else {\n el.removeAttribute(name);\n }\n };\n DefaultServerRenderer2.prototype.addClass = function (el, name) { el.classList.add(name); };\n DefaultServerRenderer2.prototype.removeClass = function (el, name) { el.classList.remove(name); };\n DefaultServerRenderer2.prototype.setStyle = function (el, style, value, flags) {\n style = style.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n var styleMap = _readStyleAttribute(el);\n styleMap[style] = value || '';\n _writeStyleAttribute(el, styleMap);\n };\n DefaultServerRenderer2.prototype.removeStyle = function (el, style, flags) {\n // IE requires '' instead of null\n // see https://github.com/angular/angular/issues/7916\n this.setStyle(el, style, '', flags);\n };\n // The value was validated already as a property binding, against the property name.\n // To know this value is safe to use as an attribute, the security context of the\n // attribute with the given name is checked against that security context of the\n // property.\n DefaultServerRenderer2.prototype._isSafeToReflectProperty = function (tagName, propertyName) {\n return this.schema.securityContext(tagName, propertyName, true) ===\n this.schema.securityContext(tagName, propertyName, false);\n };\n DefaultServerRenderer2.prototype.setProperty = function (el, name, value) {\n checkNoSyntheticProp(name, 'property');\n if (name === 'innerText') {\n // Domino does not support innerText. Just map it to textContent.\n el.textContent = value;\n }\n el[name] = value;\n // Mirror property values for known HTML element properties in the attributes.\n // Skip `innerhtml` which is conservatively marked as an attribute for security\n // purposes but is not actually an attribute.\n var tagName = el.tagName.toLowerCase();\n if (value != null && (typeof value === 'number' || typeof value == 'string') &&\n name.toLowerCase() !== 'innerhtml' && this.schema.hasElement(tagName, EMPTY_ARRAY) &&\n this.schema.hasProperty(tagName, name, EMPTY_ARRAY) &&\n this._isSafeToReflectProperty(tagName, name)) {\n this.setAttribute(el, name, value.toString());\n }\n };\n DefaultServerRenderer2.prototype.setValue = function (node, value) { node.textContent = value; };\n DefaultServerRenderer2.prototype.listen = function (target, eventName, callback) {\n checkNoSyntheticProp(eventName, 'listener');\n if (typeof target === 'string') {\n return this.eventManager.addGlobalEventListener(target, eventName, this.decoratePreventDefault(callback));\n }\n return this.eventManager.addEventListener(target, eventName, this.decoratePreventDefault(callback));\n };\n DefaultServerRenderer2.prototype.decoratePreventDefault = function (eventHandler) {\n var _this = this;\n return function (event) {\n // Ivy uses `Function` as a special token that allows us to unwrap the function\n // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`.\n if (event === Function) {\n return eventHandler;\n }\n // Run the event handler inside the ngZone because event handlers are not patched\n // by Zone on the server. This is required only for tests.\n var allowDefaultBehavior = _this.ngZone.runGuarded(function () { return eventHandler(event); });\n if (allowDefaultBehavior === false) {\n event.preventDefault();\n event.returnValue = false;\n }\n return undefined;\n };\n };\n return DefaultServerRenderer2;\n }());\n var AT_CHARCODE = '@'.charCodeAt(0);\n function checkNoSyntheticProp(name, nameKind) {\n if (name.charCodeAt(0) === AT_CHARCODE) {\n throw new Error(\"Found the synthetic \" + nameKind + \" \" + name + \". Please include either \\\"BrowserAnimationsModule\\\" or \\\"NoopAnimationsModule\\\" in your application.\");\n }\n }\n var EmulatedEncapsulationServerRenderer2 = /** @class */ (function (_super) {\n __extends(EmulatedEncapsulationServerRenderer2, _super);\n function EmulatedEncapsulationServerRenderer2(eventManager, document, ngZone, sharedStylesHost, schema, component) {\n var _this = _super.call(this, eventManager, document, ngZone, schema) || this;\n _this.component = component;\n // Add a 's' prefix to style attributes to indicate server.\n var componentId = 's' + component.id;\n var styles = platformBrowser.ɵflattenStyles(componentId, component.styles, []);\n sharedStylesHost.addStyles(styles);\n _this.contentAttr = platformBrowser.ɵshimContentAttribute(componentId);\n _this.hostAttr = platformBrowser.ɵshimHostAttribute(componentId);\n return _this;\n }\n EmulatedEncapsulationServerRenderer2.prototype.applyToHost = function (element) { _super.prototype.setAttribute.call(this, element, this.hostAttr, ''); };\n EmulatedEncapsulationServerRenderer2.prototype.createElement = function (parent, name) {\n var el = _super.prototype.createElement.call(this, parent, name, this.document);\n _super.prototype.setAttribute.call(this, el, this.contentAttr, '');\n return el;\n };\n return EmulatedEncapsulationServerRenderer2;\n }(DefaultServerRenderer2));\n function _readStyleAttribute(element) {\n var styleMap = {};\n var styleAttribute = element.getAttribute('style');\n if (styleAttribute) {\n var styleList = styleAttribute.split(/;+/g);\n for (var i = 0; i < styleList.length; i++) {\n var style = styleList[i].trim();\n if (style.length > 0) {\n var colonIndex = style.indexOf(':');\n if (colonIndex === -1) {\n throw new Error(\"Invalid CSS style: \" + style);\n }\n var name_1 = style.substr(0, colonIndex).trim();\n styleMap[name_1] = style.substr(colonIndex + 1).trim();\n }\n }\n }\n return styleMap;\n }\n function _writeStyleAttribute(element, styleMap) {\n var styleAttrValue = '';\n for (var key in styleMap) {\n var newValue = styleMap[key];\n if (newValue) {\n styleAttrValue += key + ':' + styleMap[key] + ';';\n }\n }\n element.setAttribute('style', styleAttrValue);\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var ServerStylesHost = /** @class */ (function (_super) {\n __extends(ServerStylesHost, _super);\n function ServerStylesHost(doc, transitionId) {\n var _this = _super.call(this) || this;\n _this.doc = doc;\n _this.transitionId = transitionId;\n _this.head = null;\n _this.head = doc.getElementsByTagName('head')[0];\n return _this;\n }\n ServerStylesHost.prototype._addStyle = function (style) {\n var adapter = common.ɵgetDOM();\n var el = adapter.createElement('style');\n el.textContent = style;\n if (!!this.transitionId) {\n el.setAttribute('ng-transition', this.transitionId);\n }\n this.head.appendChild(el);\n };\n ServerStylesHost.prototype.onStylesAdded = function (additions) {\n var _this = this;\n additions.forEach(function (style) { return _this._addStyle(style); });\n };\n ServerStylesHost = __decorate([\n core.Injectable(),\n __param(0, core.Inject(common.DOCUMENT)),\n __param(1, core.Optional()), __param(1, core.Inject(platformBrowser.ɵTRANSITION_ID)),\n __metadata(\"design:paramtypes\", [Object, String])\n ], ServerStylesHost);\n return ServerStylesHost;\n }(platformBrowser.ɵSharedStylesHost));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function notSupported(feature) {\n throw new Error(\"platform-server does not support '\" + feature + \"'.\");\n }\n var INTERNAL_SERVER_PLATFORM_PROVIDERS = [\n { provide: common.DOCUMENT, useFactory: _document, deps: [core.Injector] },\n { provide: core.PLATFORM_ID, useValue: common.ɵPLATFORM_SERVER_ID },\n { provide: core.PLATFORM_INITIALIZER, useFactory: initDominoAdapter, multi: true, deps: [core.Injector] }, {\n provide: common.PlatformLocation,\n useClass: ServerPlatformLocation,\n deps: [common.DOCUMENT, [core.Optional, INITIAL_CONFIG]]\n },\n { provide: PlatformState, deps: [common.DOCUMENT] },\n // Add special provider that allows multiple instances of platformServer* to be created.\n { provide: core.ɵALLOW_MULTIPLE_PLATFORMS, useValue: true }\n ];\n function initDominoAdapter(injector) {\n return function () { DominoAdapter.makeCurrent(); };\n }\n function instantiateServerRendererFactory(renderer, engine, zone) {\n return new animations.ɵAnimationRendererFactory(renderer, engine, zone);\n }\n var SERVER_RENDER_PROVIDERS = [\n ServerRendererFactory2,\n {\n provide: core.RendererFactory2,\n useFactory: instantiateServerRendererFactory,\n deps: [ServerRendererFactory2, browser.ɵAnimationEngine, core.NgZone]\n },\n ServerStylesHost,\n { provide: platformBrowser.ɵSharedStylesHost, useExisting: ServerStylesHost },\n { provide: platformBrowser.EVENT_MANAGER_PLUGINS, multi: true, useClass: ServerEventManagerPlugin },\n ];\n /**\n * The ng module for the server.\n *\n * @publicApi\n */\n var ServerModule = /** @class */ (function () {\n function ServerModule() {\n }\n ServerModule = __decorate([\n core.NgModule({\n exports: [platformBrowser.BrowserModule],\n imports: [http.HttpClientModule, animations.NoopAnimationsModule],\n providers: [\n SERVER_RENDER_PROVIDERS,\n SERVER_HTTP_PROVIDERS,\n { provide: core.Testability, useValue: null },\n { provide: common.ViewportScroller, useClass: common.ɵNullViewportScroller },\n ],\n })\n ], ServerModule);\n return ServerModule;\n }());\n function _document(injector) {\n var config = injector.get(INITIAL_CONFIG, null);\n var document = config && config.document ? parseDocument(config.document, config.url) :\n common.ɵgetDOM().createHtmlDocument();\n // Tell ivy about the global document\n core.ɵsetDocument(document);\n return document;\n }\n /**\n * @publicApi\n */\n var platformServer = core.createPlatformFactory(core.platformCore, 'server', INTERNAL_SERVER_PLATFORM_PROVIDERS);\n /**\n * The server platform that supports the runtime compiler.\n *\n * @publicApi\n */\n var platformDynamicServer = core.createPlatformFactory(platformBrowserDynamic.ɵplatformCoreDynamic, 'serverDynamic', INTERNAL_SERVER_PLATFORM_PROVIDERS);\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function serializeTransferStateFactory(doc, appId, transferStore) {\n return function () {\n var script = doc.createElement('script');\n script.id = appId + '-state';\n script.setAttribute('type', 'application/json');\n script.textContent = platformBrowser.ɵescapeHtml(transferStore.toJson());\n doc.body.appendChild(script);\n };\n }\n /**\n * NgModule to install on the server side while using the `TransferState` to transfer state from\n * server to client.\n *\n * @publicApi\n */\n var ServerTransferStateModule = /** @class */ (function () {\n function ServerTransferStateModule() {\n }\n ServerTransferStateModule = __decorate([\n core.NgModule({\n providers: [\n platformBrowser.TransferState, {\n provide: BEFORE_APP_SERIALIZED,\n useFactory: serializeTransferStateFactory,\n deps: [common.DOCUMENT, core.APP_ID, platformBrowser.TransferState],\n multi: true,\n }\n ]\n })\n ], ServerTransferStateModule);\n return ServerTransferStateModule;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function _getPlatform(platformFactory, options) {\n var extraProviders = options.extraProviders ? options.extraProviders : [];\n return platformFactory([\n { provide: INITIAL_CONFIG, useValue: { document: options.document, url: options.url } },\n extraProviders\n ]);\n }\n function _render(platform, moduleRefPromise) {\n return moduleRefPromise.then(function (moduleRef) {\n var transitionId = moduleRef.injector.get(platformBrowser.ɵTRANSITION_ID, null);\n if (!transitionId) {\n throw new Error(\"renderModule[Factory]() requires the use of BrowserModule.withServerTransition() to ensure\\nthe server-rendered app can be properly bootstrapped into a client app.\");\n }\n var applicationRef = moduleRef.injector.get(core.ApplicationRef);\n return applicationRef.isStable.pipe((operators.first(function (isStable) { return isStable; })))\n .toPromise()\n .then(function () {\n var e_1, _a;\n var platformState = platform.injector.get(PlatformState);\n var asyncPromises = [];\n // Run any BEFORE_APP_SERIALIZED callbacks just before rendering to string.\n var callbacks = moduleRef.injector.get(BEFORE_APP_SERIALIZED, null);\n if (callbacks) {\n try {\n for (var callbacks_1 = __values(callbacks), callbacks_1_1 = callbacks_1.next(); !callbacks_1_1.done; callbacks_1_1 = callbacks_1.next()) {\n var callback = callbacks_1_1.value;\n try {\n var callbackResult = callback();\n if (core.ɵisPromise(callbackResult)) {\n asyncPromises.push(callbackResult);\n }\n }\n catch (e) {\n // Ignore exceptions.\n console.warn('Ignoring BEFORE_APP_SERIALIZED Exception: ', e);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (callbacks_1_1 && !callbacks_1_1.done && (_a = callbacks_1.return)) _a.call(callbacks_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n var complete = function () {\n var output = platformState.renderToString();\n platform.destroy();\n return output;\n };\n if (asyncPromises.length === 0) {\n return complete();\n }\n return Promise\n .all(asyncPromises.map(function (asyncPromise) {\n return asyncPromise.catch(function (e) { console.warn('Ignoring BEFORE_APP_SERIALIZED Exception: ', e); });\n }))\n .then(complete);\n });\n });\n }\n /**\n * Renders a Module to string.\n *\n * `document` is the full document HTML of the page to render, as a string.\n * `url` is the URL for the current render request.\n * `extraProviders` are the platform level providers for the current render request.\n *\n * Do not use this in a production server environment. Use pre-compiled {@link NgModuleFactory} with\n * {@link renderModuleFactory} instead.\n *\n * @publicApi\n */\n function renderModule(module, options) {\n var platform = _getPlatform(platformDynamicServer, options);\n return _render(platform, platform.bootstrapModule(module));\n }\n /**\n * Renders a {@link NgModuleFactory} to string.\n *\n * `document` is the full document HTML of the page to render, as a string.\n * `url` is the URL for the current render request.\n * `extraProviders` are the platform level providers for the current render request.\n *\n * @publicApi\n */\n function renderModuleFactory(moduleFactory, options) {\n var platform = _getPlatform(platformServer, options);\n return _render(platform, platform.bootstrapModuleFactory(moduleFactory));\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * @publicApi\n */\n var VERSION = new core.Version('9.0.0-rc.6');\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n // This file only reexports content of the `src` folder. Keep it that way.\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.BEFORE_APP_SERIALIZED = BEFORE_APP_SERIALIZED;\n exports.INITIAL_CONFIG = INITIAL_CONFIG;\n exports.PlatformState = PlatformState;\n exports.ServerModule = ServerModule;\n exports.ServerTransferStateModule = ServerTransferStateModule;\n exports.VERSION = VERSION;\n exports.platformDynamicServer = platformDynamicServer;\n exports.platformServer = platformServer;\n exports.renderModule = renderModule;\n exports.renderModuleFactory = renderModuleFactory;\n exports.ɵINTERNAL_SERVER_PLATFORM_PROVIDERS = INTERNAL_SERVER_PLATFORM_PROVIDERS;\n exports.ɵSERVER_RENDER_PROVIDERS = SERVER_RENDER_PROVIDERS;\n exports.ɵServerRendererFactory2 = ServerRendererFactory2;\n exports.ɵangular_packages_platform_server_platform_server_a = instantiateServerRendererFactory;\n exports.ɵangular_packages_platform_server_platform_server_b = serializeTransferStateFactory;\n exports.ɵangular_packages_platform_server_platform_server_c = ServerStylesHost;\n exports.ɵangular_packages_platform_server_platform_server_d = ServerEventManagerPlugin;\n exports.ɵangular_packages_platform_server_platform_server_e = ServerXhr;\n exports.ɵangular_packages_platform_server_platform_server_f = zoneWrappedInterceptingHandler;\n exports.ɵangular_packages_platform_server_platform_server_g = SERVER_HTTP_PROVIDERS;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=platform-server.umd.js.map\n"]}
|
|
1
|
+
{"version":3,"sources":["packages/platform-server/platform-server.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","platformServer","common","core","platformBrowser","animations","browser","http","platformBrowserDynamic","rxjs","url","compiler","operators","this","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","__metadata","metadataKey","metadataValue","metadata","domino","_notImplemented","methodName","Error","parseDocument","html","createWindow","document","DominoAdapter","_super","apply","makeCurrent","setDomTypes","assign","impl","Event","ɵsetRootDomAdapter","log","error","console","logGroup","logGroupEnd","supportsDOMEvents","createHtmlDocument","getDefaultDocument","defaultDoc","createDocument","isElementNode","node","nodeType","ELEMENT_NODE","isShadowRoot","shadowRoot","getProperty","el","name","getAttribute","textContent","getGlobalEventTarget","doc","defaultView","body","getBaseHref","base","documentElement","querySelector","href","dispatchEvent","evt","win","ownerDocument","getHistory","getLocation","getUserAgent","performanceNow","Date","now","supportsCookies","getCookie","ɵBrowserDomAdapter","PlatformState","_doc","renderToString","serializeDocument","serialize","getDocument","Injectable","Inject","DOCUMENT","xhr2","ServerXhr","build","XMLHttpRequest","ZoneClientBackend","backend","_this","call","handle","request","wrap","delegate","ZoneMacroTaskWrapper","Observable","observer","task","scheduled","sub","savedResult","savedError","_task","subscribe","res","err","invoke","scheduleTask","Zone","current","scheduleMacroTask","next","complete","unsubscribe","zone","cancelTask","zoneWrappedInterceptingHandler","injector","realBackend","ɵHttpInterceptingHandler","SERVER_HTTP_PROVIDERS","provide","XhrFactory","useClass","HttpHandler","useFactory","deps","HttpBackend","Injector","INITIAL_CONFIG","InjectionToken","BEFORE_APP_SERIALIZED","parseUrl","urlStr","parsedUrl","parse","hostname","protocol","port","pathname","search","hash","ServerPlatformLocation","_config","_hashUpdate","Subject","getBaseHrefFromDOM","ɵgetDOM","onPopState","fn","onHashChange","get","enumerable","configurable","setHash","value","oldUrl","newUrl","scheduleMicroTask","type","state","replaceState","title","pushState","forward","back","getState","Optional","ServerEventManagerPlugin","supports","eventName","addEventListener","element","handler","onAndCancel","addGlobalEventListener","EMPTY_ARRAY","DEFAULT_SCHEMA","DomElementSchemaRegistry","ServerRendererFactory2","eventManager","ngZone","sharedStylesHost","rendererByCompId","Map","schema","defaultRenderer","DefaultServerRenderer2","createRenderer","encapsulation","ViewEncapsulation","Native","Emulated","renderer","id","EmulatedEncapsulationServerRenderer2","set","applyToHost","has","styles","ɵflattenStyles","addStyles","begin","end","EventManager","NgZone","ɵSharedStylesHost","data","destroy","createElement","namespace","debugInfo","createElementNS","ɵNAMESPACE_URIS","createComment","createText","createTextNode","appendChild","parent","newChild","insertBefore","refChild","removeChild","oldChild","selectRootElement","selectorOrNode","firstChild","parentNode","nextSibling","setAttribute","setAttributeNS","removeAttribute","removeAttributeNS","addClass","classList","add","removeClass","remove","setStyle","style","flags","replace","toLowerCase","styleMap","_readStyleAttribute","styleAttribute","styleList","split","trim","colonIndex","indexOf","substr","_writeStyleAttribute","styleAttrValue","removeStyle","_isSafeToReflectProperty","tagName","propertyName","securityContext","setProperty","checkNoSyntheticProp","hasElement","hasProperty","toString","setValue","listen","callback","decoratePreventDefault","eventHandler","event","Function","runGuarded","preventDefault","returnValue","AT_CHARCODE","charCodeAt","nameKind","component","componentId","contentAttr","ɵshimContentAttribute","hostAttr","ɵshimHostAttribute","ServerStylesHost","transitionId","head","getElementsByTagName","_addStyle","onStylesAdded","additions","forEach","ɵTRANSITION_ID","String","INTERNAL_SERVER_PLATFORM_PROVIDERS","_document","config","ɵsetDocument","PLATFORM_ID","useValue","ɵPLATFORM_SERVER_ID","PLATFORM_INITIALIZER","initDominoAdapter","multi","PlatformLocation","ɵALLOW_MULTIPLE_PLATFORMS","instantiateServerRendererFactory","engine","ɵAnimationRendererFactory","SERVER_RENDER_PROVIDERS","RendererFactory2","ɵAnimationEngine","useExisting","EVENT_MANAGER_PLUGINS","ServerModule","NgModule","BrowserModule","imports","HttpClientModule","NoopAnimationsModule","providers","Testability","ViewportScroller","ɵNullViewportScroller","createPlatformFactory","platformCore","platformDynamicServer","ɵplatformCoreDynamic","serializeTransferStateFactory","appId","transferStore","script","ɵescapeHtml","toJson","ServerTransferStateModule","TransferState","APP_ID","_getPlatform","platformFactory","options","extraProviders","_render","platform","moduleRefPromise","then","moduleRef","ApplicationRef","isStable","pipe","first","toPromise","e_1","_a","platformState","asyncPromises","callbacks","callbacks_1","__values","o","m","Symbol","iterator","done","callbacks_1_1","callbackResult","ɵisPromise","push","e","warn","e_1_1","return","output","Promise","all","map","asyncPromise","catch","VERSION","Version","renderModule","bootstrapModule","renderModuleFactory","moduleFactory","bootstrapModuleFactory","ɵINTERNAL_SERVER_PLATFORM_PROVIDERS","ɵSERVER_RENDER_PROVIDERS","ɵServerRendererFactory2","ɵangular_packages_platform_server_platform_server_a","ɵangular_packages_platform_server_platform_server_b","ɵangular_packages_platform_server_platform_server_c","ɵangular_packages_platform_server_platform_server_d","ɵangular_packages_platform_server_platform_server_e","ɵangular_packages_platform_server_platform_server_f","ɵangular_packages_platform_server_platform_server_g"],"mappings":";;;;;CAMC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,mBAAoBA,QAAQ,iBAAkBA,QAAQ,6BAA8BA,QAAQ,+BAAgCA,QAAQ,wBAAyBA,QAAQ,qCAAsCA,QAAQ,wCAAyCA,QAAQ,QAASA,QAAQ,OAAQA,QAAQ,qBAAsBA,QAAQ,mBACzY,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,2BAA4B,CAAC,UAAW,kBAAmB,gBAAiB,4BAA6B,8BAA+B,uBAAwB,oCAAqC,uCAAwC,OAAQ,MAAO,oBAAqB,kBAAmBJ,GAC9TA,IAAzBD,EAASA,GAAUO,MAAsBC,GAAKR,EAAOQ,IAAM,GAAIR,EAAOQ,GAAGC,eAAiB,IAAKT,EAAOQ,GAAGE,OAAQV,EAAOQ,GAAGG,KAAMX,EAAOQ,GAAGI,gBAAiBZ,EAAOQ,GAAGK,WAAWC,QAASd,EAAOQ,GAAGE,OAAOK,KAAMf,EAAOQ,GAAGQ,uBAAwBhB,EAAOQ,GAAGI,gBAAgBC,WAAYb,EAAOiB,KAAMjB,EAAOkB,IAAKlB,EAAOQ,GAAGW,SAAUnB,EAAOiB,KAAKG,WAHvV,CAI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Bna,EAAQ6K,sBAAwBA,EAChC7K,EAAQ2K,eAAiBA,EACzB3K,EAAQmH,cAAgBA,EACxBnH,EAAQmW,aAAeA,EACvBnW,EAAQuX,0BAA4BA,EACpCvX,EAAQka,QAAUA,EAClBla,EAAQ+W,sBAAwBA,EAChC/W,EAAQO,eAAiBA,EACzBP,EAAQoa,aA3ER,SAASA,EAAana,EAAQ2X,GAC1B,IAAIG,EAAWL,EAAaX,EAAuBa,GACnD,OAAOE,EAAQC,EAAUA,EAASsC,gBAAgBpa,KA0EtDD,EAAQsa,oBA/DR,SAASA,GAAoBC,EAAe3C,GACxC,IAAIG,EAAWL,EAAanX,EAAgBqX,GAC5C,OAAOE,EAAQC,EAAUA,EAASyC,uBAAuBD,KA8D7Dva,EAAQya,oCAAsC1F,EAC9C/U,EAAQ0a,yBAA2B5E,EACnC9V,EAAQ2a,wBAA0B9M,EAClC7N,EAAQ4a,oDAAsDjF,EAC9D3V,EAAQ6a,oDAAsD5D,EAC9DjX,EAAQ8a,oDAAsDzG,EAC9DrU,EAAQ+a,oDAAsD7N,EAC9DlN,EAAQgb,oDAAsDnT,EAC9D7H,EAAQib,oDAAsDnR,EAC9D9J,EAAQkb,oDAAsDhR,EAE9D3I,OAAOwB,eAAe/C,EAAS,aAAc,CAAEqM,OAAO","sourcesContent":["/**\n * @license Angular v9.0.0\n * (c) 2010-2020 Google LLC. https://angular.io/\n * License: MIT\n */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/platform-browser'), require('@angular/animations/browser'), require('@angular/common/http'), require('@angular/platform-browser-dynamic'), require('@angular/platform-browser/animations'), require('rxjs'), require('url'), require('@angular/compiler'), require('rxjs/operators')) :\n typeof define === 'function' && define.amd ? define('@angular/platform-server', ['exports', '@angular/common', '@angular/core', '@angular/platform-browser', '@angular/animations/browser', '@angular/common/http', '@angular/platform-browser-dynamic', '@angular/platform-browser/animations', 'rxjs', 'url', '@angular/compiler', 'rxjs/operators'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.platformServer = {}), global.ng.common, global.ng.core, global.ng.platformBrowser, global.ng.animations.browser, global.ng.common.http, global.ng.platformBrowserDynamic, global.ng.platformBrowser.animations, global.rxjs, global.url, global.ng.compiler, global.rxjs.operators));\n}(this, (function (exports, common, core, platformBrowser, browser, http, platformBrowserDynamic, animations, rxjs, url, compiler, operators) { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation. All rights reserved.\r\n Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n this file except in compliance with the License. You may obtain a copy of the\r\n License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n See the Apache Version 2.0 License for specific language governing permissions\r\n and limitations under the License.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\r\n\r\n var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n };\r\n\r\n function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n }\r\n\r\n function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n }\r\n\r\n function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n }\r\n\r\n function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n }\r\n\r\n function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n }\r\n\r\n function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n }\r\n\r\n function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n }\r\n\r\n function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n }\r\n\r\n function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n }\r\n\r\n function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n }\r\n\r\n function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n };\r\n\r\n function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n }\r\n\r\n function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n }\r\n\r\n function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n }\r\n\r\n function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n }\r\n\r\n function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n };\r\n\r\n function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n }\r\n\r\n function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var domino = require('domino');\n function _notImplemented(methodName) {\n return new Error('This method is not implemented in DominoAdapter: ' + methodName);\n }\n function setDomTypes() {\n // Make all Domino types available as types in the global env.\n Object.assign(global, domino.impl);\n global['KeyboardEvent'] = domino.impl.Event;\n }\n /**\n * Parses a document string to a Document object.\n */\n function parseDocument(html, url) {\n if (url === void 0) { url = '/'; }\n var window = domino.createWindow(html, url);\n var doc = window.document;\n return doc;\n }\n /**\n * Serializes a document to string.\n */\n function serializeDocument(doc) {\n return doc.serialize();\n }\n /**\n * DOM Adapter for the server platform based on https://github.com/fgnass/domino.\n */\n var DominoAdapter = /** @class */ (function (_super) {\n __extends(DominoAdapter, _super);\n function DominoAdapter() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n DominoAdapter.makeCurrent = function () {\n setDomTypes();\n common.ɵsetRootDomAdapter(new DominoAdapter());\n };\n DominoAdapter.prototype.log = function (error) {\n // tslint:disable-next-line:no-console\n console.log(error);\n };\n DominoAdapter.prototype.logGroup = function (error) { console.error(error); };\n DominoAdapter.prototype.logGroupEnd = function () { };\n DominoAdapter.prototype.supportsDOMEvents = function () { return false; };\n DominoAdapter.prototype.createHtmlDocument = function () {\n return parseDocument('<html><head><title>fakeTitle</title></head><body></body></html>');\n };\n DominoAdapter.prototype.getDefaultDocument = function () {\n if (!DominoAdapter.defaultDoc) {\n DominoAdapter.defaultDoc = domino.createDocument();\n }\n return DominoAdapter.defaultDoc;\n };\n DominoAdapter.prototype.isElementNode = function (node) {\n return node ? node.nodeType === DominoAdapter.defaultDoc.ELEMENT_NODE : false;\n };\n DominoAdapter.prototype.isShadowRoot = function (node) { return node.shadowRoot == node; };\n DominoAdapter.prototype.getProperty = function (el, name) {\n if (name === 'href') {\n // Domino tries to resolve href-s which we do not want. Just return the\n // attribute value.\n return el.getAttribute('href');\n }\n else if (name === 'innerText') {\n // Domino does not support innerText. Just map it to textContent.\n return el.textContent;\n }\n return el[name];\n };\n DominoAdapter.prototype.getGlobalEventTarget = function (doc, target) {\n if (target === 'window') {\n return doc.defaultView;\n }\n if (target === 'document') {\n return doc;\n }\n if (target === 'body') {\n return doc.body;\n }\n return null;\n };\n DominoAdapter.prototype.getBaseHref = function (doc) {\n var base = doc.documentElement.querySelector('base');\n var href = '';\n if (base) {\n href = base.getAttribute('href');\n }\n // TODO(alxhub): Need relative path logic from BrowserDomAdapter here?\n return href;\n };\n DominoAdapter.prototype.dispatchEvent = function (el, evt) {\n el.dispatchEvent(evt);\n // Dispatch the event to the window also.\n var doc = el.ownerDocument || el;\n var win = doc.defaultView;\n if (win) {\n win.dispatchEvent(evt);\n }\n };\n DominoAdapter.prototype.getHistory = function () { throw _notImplemented('getHistory'); };\n DominoAdapter.prototype.getLocation = function () { throw _notImplemented('getLocation'); };\n DominoAdapter.prototype.getUserAgent = function () { return 'Fake user agent'; };\n DominoAdapter.prototype.performanceNow = function () { return Date.now(); };\n DominoAdapter.prototype.supportsCookies = function () { return false; };\n DominoAdapter.prototype.getCookie = function (name) { throw _notImplemented('getCookie'); };\n return DominoAdapter;\n }(platformBrowser.ɵBrowserDomAdapter));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Representation of the current platform state.\n *\n * @publicApi\n */\n var PlatformState = /** @class */ (function () {\n function PlatformState(_doc) {\n this._doc = _doc;\n }\n /**\n * Renders the current state of the platform to string.\n */\n PlatformState.prototype.renderToString = function () { return serializeDocument(this._doc); };\n /**\n * Returns the current DOM state.\n */\n PlatformState.prototype.getDocument = function () { return this._doc; };\n PlatformState = __decorate([\n core.Injectable(),\n __param(0, core.Inject(common.DOCUMENT)),\n __metadata(\"design:paramtypes\", [Object])\n ], PlatformState);\n return PlatformState;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var xhr2 = require('xhr2');\n var ServerXhr = /** @class */ (function () {\n function ServerXhr() {\n }\n ServerXhr.prototype.build = function () { return new xhr2.XMLHttpRequest(); };\n ServerXhr = __decorate([\n core.Injectable()\n ], ServerXhr);\n return ServerXhr;\n }());\n var ZoneMacroTaskWrapper = /** @class */ (function () {\n function ZoneMacroTaskWrapper() {\n }\n ZoneMacroTaskWrapper.prototype.wrap = function (request) {\n var _this = this;\n return new rxjs.Observable(function (observer) {\n var task = null;\n var scheduled = false;\n var sub = null;\n var savedResult = null;\n var savedError = null;\n var scheduleTask = function (_task) {\n task = _task;\n scheduled = true;\n var delegate = _this.delegate(request);\n sub = delegate.subscribe(function (res) { return savedResult = res; }, function (err) {\n if (!scheduled) {\n throw new Error('An http observable was completed twice. This shouldn\\'t happen, please file a bug.');\n }\n savedError = err;\n scheduled = false;\n task.invoke();\n }, function () {\n if (!scheduled) {\n throw new Error('An http observable was completed twice. This shouldn\\'t happen, please file a bug.');\n }\n scheduled = false;\n task.invoke();\n });\n };\n var cancelTask = function (_task) {\n if (!scheduled) {\n return;\n }\n scheduled = false;\n if (sub) {\n sub.unsubscribe();\n sub = null;\n }\n };\n var onComplete = function () {\n if (savedError !== null) {\n observer.error(savedError);\n }\n else {\n observer.next(savedResult);\n observer.complete();\n }\n };\n // MockBackend for Http is synchronous, which means that if scheduleTask is by\n // scheduleMacroTask, the request will hit MockBackend and the response will be\n // sent, causing task.invoke() to be called.\n var _task = Zone.current.scheduleMacroTask('ZoneMacroTaskWrapper.subscribe', onComplete, {}, function () { return null; }, cancelTask);\n scheduleTask(_task);\n return function () {\n if (scheduled && task) {\n task.zone.cancelTask(task);\n scheduled = false;\n }\n if (sub) {\n sub.unsubscribe();\n sub = null;\n }\n };\n });\n };\n return ZoneMacroTaskWrapper;\n }());\n var ZoneClientBackend = /** @class */ (function (_super) {\n __extends(ZoneClientBackend, _super);\n function ZoneClientBackend(backend) {\n var _this = _super.call(this) || this;\n _this.backend = backend;\n return _this;\n }\n ZoneClientBackend.prototype.handle = function (request) { return this.wrap(request); };\n ZoneClientBackend.prototype.delegate = function (request) {\n return this.backend.handle(request);\n };\n return ZoneClientBackend;\n }(ZoneMacroTaskWrapper));\n function zoneWrappedInterceptingHandler(backend, injector) {\n var realBackend = new http.ɵHttpInterceptingHandler(backend, injector);\n return new ZoneClientBackend(realBackend);\n }\n var SERVER_HTTP_PROVIDERS = [\n { provide: http.XhrFactory, useClass: ServerXhr }, {\n provide: http.HttpHandler,\n useFactory: zoneWrappedInterceptingHandler,\n deps: [http.HttpBackend, core.Injector]\n }\n ];\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * The DI token for setting the initial config for the platform.\n *\n * @publicApi\n */\n var INITIAL_CONFIG = new core.InjectionToken('Server.INITIAL_CONFIG');\n /**\n * A function that will be executed when calling `renderModuleFactory` or `renderModule` just\n * before current platform state is rendered to string.\n *\n * @publicApi\n */\n var BEFORE_APP_SERIALIZED = new core.InjectionToken('Server.RENDER_MODULE_HOOK');\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function parseUrl(urlStr) {\n var parsedUrl = url.parse(urlStr);\n return {\n hostname: parsedUrl.hostname || '',\n protocol: parsedUrl.protocol || '',\n port: parsedUrl.port || '',\n pathname: parsedUrl.pathname || '',\n search: parsedUrl.search || '',\n hash: parsedUrl.hash || '',\n };\n }\n /**\n * Server-side implementation of URL state. Implements `pathname`, `search`, and `hash`\n * but not the state stack.\n */\n var ServerPlatformLocation = /** @class */ (function () {\n function ServerPlatformLocation(_doc, _config) {\n this._doc = _doc;\n this.href = '/';\n this.hostname = '/';\n this.protocol = '/';\n this.port = '/';\n this.pathname = '/';\n this.search = '';\n this.hash = '';\n this._hashUpdate = new rxjs.Subject();\n var config = _config;\n if (!!config && !!config.url) {\n var parsedUrl = parseUrl(config.url);\n this.hostname = parsedUrl.hostname;\n this.protocol = parsedUrl.protocol;\n this.port = parsedUrl.port;\n this.pathname = parsedUrl.pathname;\n this.search = parsedUrl.search;\n this.hash = parsedUrl.hash;\n }\n }\n ServerPlatformLocation.prototype.getBaseHrefFromDOM = function () { return common.ɵgetDOM().getBaseHref(this._doc); };\n ServerPlatformLocation.prototype.onPopState = function (fn) {\n // No-op: a state stack is not implemented, so\n // no events will ever come.\n };\n ServerPlatformLocation.prototype.onHashChange = function (fn) { this._hashUpdate.subscribe(fn); };\n Object.defineProperty(ServerPlatformLocation.prototype, \"url\", {\n get: function () { return \"\" + this.pathname + this.search + this.hash; },\n enumerable: true,\n configurable: true\n });\n ServerPlatformLocation.prototype.setHash = function (value, oldUrl) {\n var _this = this;\n if (this.hash === value) {\n // Don't fire events if the hash has not changed.\n return;\n }\n this.hash = value;\n var newUrl = this.url;\n scheduleMicroTask(function () { return _this._hashUpdate.next({\n type: 'hashchange', state: null, oldUrl: oldUrl, newUrl: newUrl\n }); });\n };\n ServerPlatformLocation.prototype.replaceState = function (state, title, newUrl) {\n var oldUrl = this.url;\n var parsedUrl = parseUrl(newUrl);\n this.pathname = parsedUrl.pathname;\n this.search = parsedUrl.search;\n this.setHash(parsedUrl.hash, oldUrl);\n };\n ServerPlatformLocation.prototype.pushState = function (state, title, newUrl) {\n this.replaceState(state, title, newUrl);\n };\n ServerPlatformLocation.prototype.forward = function () { throw new Error('Not implemented'); };\n ServerPlatformLocation.prototype.back = function () { throw new Error('Not implemented'); };\n // History API isn't available on server, therefore return undefined\n ServerPlatformLocation.prototype.getState = function () { return undefined; };\n ServerPlatformLocation = __decorate([\n core.Injectable(),\n __param(0, core.Inject(common.DOCUMENT)), __param(1, core.Optional()), __param(1, core.Inject(INITIAL_CONFIG)),\n __metadata(\"design:paramtypes\", [Object, Object])\n ], ServerPlatformLocation);\n return ServerPlatformLocation;\n }());\n function scheduleMicroTask(fn) {\n Zone.current.scheduleMicroTask('scheduleMicrotask', fn);\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var ServerEventManagerPlugin = /** @class */ (function () {\n function ServerEventManagerPlugin(doc) {\n this.doc = doc;\n }\n // Handle all events on the server.\n ServerEventManagerPlugin.prototype.supports = function (eventName) { return true; };\n ServerEventManagerPlugin.prototype.addEventListener = function (element, eventName, handler) {\n return common.ɵgetDOM().onAndCancel(element, eventName, handler);\n };\n ServerEventManagerPlugin.prototype.addGlobalEventListener = function (element, eventName, handler) {\n var target = common.ɵgetDOM().getGlobalEventTarget(this.doc, element);\n if (!target) {\n throw new Error(\"Unsupported event target \" + target + \" for event \" + eventName);\n }\n return this.addEventListener(target, eventName, handler);\n };\n ServerEventManagerPlugin = __decorate([\n core.Injectable(),\n __param(0, core.Inject(common.DOCUMENT)),\n __metadata(\"design:paramtypes\", [Object])\n ], ServerEventManagerPlugin);\n return ServerEventManagerPlugin;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var EMPTY_ARRAY = [];\n var DEFAULT_SCHEMA = new compiler.DomElementSchemaRegistry();\n var ServerRendererFactory2 = /** @class */ (function () {\n function ServerRendererFactory2(eventManager, ngZone, document, sharedStylesHost) {\n this.eventManager = eventManager;\n this.ngZone = ngZone;\n this.document = document;\n this.sharedStylesHost = sharedStylesHost;\n this.rendererByCompId = new Map();\n this.schema = DEFAULT_SCHEMA;\n this.defaultRenderer = new DefaultServerRenderer2(eventManager, document, ngZone, this.schema);\n }\n ServerRendererFactory2.prototype.createRenderer = function (element, type) {\n if (!element || !type) {\n return this.defaultRenderer;\n }\n switch (type.encapsulation) {\n case core.ViewEncapsulation.Native:\n case core.ViewEncapsulation.Emulated: {\n var renderer = this.rendererByCompId.get(type.id);\n if (!renderer) {\n renderer = new EmulatedEncapsulationServerRenderer2(this.eventManager, this.document, this.ngZone, this.sharedStylesHost, this.schema, type);\n this.rendererByCompId.set(type.id, renderer);\n }\n renderer.applyToHost(element);\n return renderer;\n }\n default: {\n if (!this.rendererByCompId.has(type.id)) {\n var styles = platformBrowser.ɵflattenStyles(type.id, type.styles, []);\n this.sharedStylesHost.addStyles(styles);\n this.rendererByCompId.set(type.id, this.defaultRenderer);\n }\n return this.defaultRenderer;\n }\n }\n };\n ServerRendererFactory2.prototype.begin = function () { };\n ServerRendererFactory2.prototype.end = function () { };\n ServerRendererFactory2 = __decorate([\n core.Injectable(),\n __param(2, core.Inject(common.DOCUMENT)),\n __metadata(\"design:paramtypes\", [platformBrowser.EventManager, core.NgZone, Object, platformBrowser.ɵSharedStylesHost])\n ], ServerRendererFactory2);\n return ServerRendererFactory2;\n }());\n var DefaultServerRenderer2 = /** @class */ (function () {\n function DefaultServerRenderer2(eventManager, document, ngZone, schema) {\n this.eventManager = eventManager;\n this.document = document;\n this.ngZone = ngZone;\n this.schema = schema;\n this.data = Object.create(null);\n }\n DefaultServerRenderer2.prototype.destroy = function () { };\n DefaultServerRenderer2.prototype.createElement = function (name, namespace, debugInfo) {\n if (namespace) {\n var doc = this.document || common.ɵgetDOM().getDefaultDocument();\n return doc.createElementNS(platformBrowser.ɵNAMESPACE_URIS[namespace], name);\n }\n return common.ɵgetDOM().createElement(name, this.document);\n };\n DefaultServerRenderer2.prototype.createComment = function (value, debugInfo) {\n return common.ɵgetDOM().getDefaultDocument().createComment(value);\n };\n DefaultServerRenderer2.prototype.createText = function (value, debugInfo) {\n var doc = common.ɵgetDOM().getDefaultDocument();\n return doc.createTextNode(value);\n };\n DefaultServerRenderer2.prototype.appendChild = function (parent, newChild) { parent.appendChild(newChild); };\n DefaultServerRenderer2.prototype.insertBefore = function (parent, newChild, refChild) {\n if (parent) {\n parent.insertBefore(newChild, refChild);\n }\n };\n DefaultServerRenderer2.prototype.removeChild = function (parent, oldChild) {\n if (parent) {\n parent.removeChild(oldChild);\n }\n };\n DefaultServerRenderer2.prototype.selectRootElement = function (selectorOrNode, debugInfo) {\n var el;\n if (typeof selectorOrNode === 'string') {\n el = this.document.querySelector(selectorOrNode);\n if (!el) {\n throw new Error(\"The selector \\\"\" + selectorOrNode + \"\\\" did not match any elements\");\n }\n }\n else {\n el = selectorOrNode;\n }\n while (el.firstChild) {\n el.removeChild(el.firstChild);\n }\n return el;\n };\n DefaultServerRenderer2.prototype.parentNode = function (node) { return node.parentNode; };\n DefaultServerRenderer2.prototype.nextSibling = function (node) { return node.nextSibling; };\n DefaultServerRenderer2.prototype.setAttribute = function (el, name, value, namespace) {\n if (namespace) {\n el.setAttributeNS(platformBrowser.ɵNAMESPACE_URIS[namespace], namespace + ':' + name, value);\n }\n else {\n el.setAttribute(name, value);\n }\n };\n DefaultServerRenderer2.prototype.removeAttribute = function (el, name, namespace) {\n if (namespace) {\n el.removeAttributeNS(platformBrowser.ɵNAMESPACE_URIS[namespace], name);\n }\n else {\n el.removeAttribute(name);\n }\n };\n DefaultServerRenderer2.prototype.addClass = function (el, name) { el.classList.add(name); };\n DefaultServerRenderer2.prototype.removeClass = function (el, name) { el.classList.remove(name); };\n DefaultServerRenderer2.prototype.setStyle = function (el, style, value, flags) {\n style = style.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n var styleMap = _readStyleAttribute(el);\n styleMap[style] = value == null ? '' : value;\n _writeStyleAttribute(el, styleMap);\n };\n DefaultServerRenderer2.prototype.removeStyle = function (el, style, flags) {\n // IE requires '' instead of null\n // see https://github.com/angular/angular/issues/7916\n this.setStyle(el, style, '', flags);\n };\n // The value was validated already as a property binding, against the property name.\n // To know this value is safe to use as an attribute, the security context of the\n // attribute with the given name is checked against that security context of the\n // property.\n DefaultServerRenderer2.prototype._isSafeToReflectProperty = function (tagName, propertyName) {\n return this.schema.securityContext(tagName, propertyName, true) ===\n this.schema.securityContext(tagName, propertyName, false);\n };\n DefaultServerRenderer2.prototype.setProperty = function (el, name, value) {\n checkNoSyntheticProp(name, 'property');\n if (name === 'innerText') {\n // Domino does not support innerText. Just map it to textContent.\n el.textContent = value;\n }\n el[name] = value;\n // Mirror property values for known HTML element properties in the attributes.\n // Skip `innerhtml` which is conservatively marked as an attribute for security\n // purposes but is not actually an attribute.\n var tagName = el.tagName.toLowerCase();\n if (value != null && (typeof value === 'number' || typeof value == 'string') &&\n name.toLowerCase() !== 'innerhtml' && this.schema.hasElement(tagName, EMPTY_ARRAY) &&\n this.schema.hasProperty(tagName, name, EMPTY_ARRAY) &&\n this._isSafeToReflectProperty(tagName, name)) {\n this.setAttribute(el, name, value.toString());\n }\n };\n DefaultServerRenderer2.prototype.setValue = function (node, value) { node.textContent = value; };\n DefaultServerRenderer2.prototype.listen = function (target, eventName, callback) {\n checkNoSyntheticProp(eventName, 'listener');\n if (typeof target === 'string') {\n return this.eventManager.addGlobalEventListener(target, eventName, this.decoratePreventDefault(callback));\n }\n return this.eventManager.addEventListener(target, eventName, this.decoratePreventDefault(callback));\n };\n DefaultServerRenderer2.prototype.decoratePreventDefault = function (eventHandler) {\n var _this = this;\n return function (event) {\n // Ivy uses `Function` as a special token that allows us to unwrap the function\n // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`.\n if (event === Function) {\n return eventHandler;\n }\n // Run the event handler inside the ngZone because event handlers are not patched\n // by Zone on the server. This is required only for tests.\n var allowDefaultBehavior = _this.ngZone.runGuarded(function () { return eventHandler(event); });\n if (allowDefaultBehavior === false) {\n event.preventDefault();\n event.returnValue = false;\n }\n return undefined;\n };\n };\n return DefaultServerRenderer2;\n }());\n var AT_CHARCODE = '@'.charCodeAt(0);\n function checkNoSyntheticProp(name, nameKind) {\n if (name.charCodeAt(0) === AT_CHARCODE) {\n throw new Error(\"Found the synthetic \" + nameKind + \" \" + name + \". Please include either \\\"BrowserAnimationsModule\\\" or \\\"NoopAnimationsModule\\\" in your application.\");\n }\n }\n var EmulatedEncapsulationServerRenderer2 = /** @class */ (function (_super) {\n __extends(EmulatedEncapsulationServerRenderer2, _super);\n function EmulatedEncapsulationServerRenderer2(eventManager, document, ngZone, sharedStylesHost, schema, component) {\n var _this = _super.call(this, eventManager, document, ngZone, schema) || this;\n _this.component = component;\n // Add a 's' prefix to style attributes to indicate server.\n var componentId = 's' + component.id;\n var styles = platformBrowser.ɵflattenStyles(componentId, component.styles, []);\n sharedStylesHost.addStyles(styles);\n _this.contentAttr = platformBrowser.ɵshimContentAttribute(componentId);\n _this.hostAttr = platformBrowser.ɵshimHostAttribute(componentId);\n return _this;\n }\n EmulatedEncapsulationServerRenderer2.prototype.applyToHost = function (element) { _super.prototype.setAttribute.call(this, element, this.hostAttr, ''); };\n EmulatedEncapsulationServerRenderer2.prototype.createElement = function (parent, name) {\n var el = _super.prototype.createElement.call(this, parent, name, this.document);\n _super.prototype.setAttribute.call(this, el, this.contentAttr, '');\n return el;\n };\n return EmulatedEncapsulationServerRenderer2;\n }(DefaultServerRenderer2));\n function _readStyleAttribute(element) {\n var styleMap = {};\n var styleAttribute = element.getAttribute('style');\n if (styleAttribute) {\n var styleList = styleAttribute.split(/;+/g);\n for (var i = 0; i < styleList.length; i++) {\n var style = styleList[i].trim();\n if (style.length > 0) {\n var colonIndex = style.indexOf(':');\n if (colonIndex === -1) {\n throw new Error(\"Invalid CSS style: \" + style);\n }\n var name_1 = style.substr(0, colonIndex).trim();\n styleMap[name_1] = style.substr(colonIndex + 1).trim();\n }\n }\n }\n return styleMap;\n }\n function _writeStyleAttribute(element, styleMap) {\n var styleAttrValue = '';\n for (var key in styleMap) {\n var newValue = styleMap[key];\n if (newValue != null) {\n styleAttrValue += key + ':' + styleMap[key] + ';';\n }\n }\n element.setAttribute('style', styleAttrValue);\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var ServerStylesHost = /** @class */ (function (_super) {\n __extends(ServerStylesHost, _super);\n function ServerStylesHost(doc, transitionId) {\n var _this = _super.call(this) || this;\n _this.doc = doc;\n _this.transitionId = transitionId;\n _this.head = null;\n _this.head = doc.getElementsByTagName('head')[0];\n return _this;\n }\n ServerStylesHost.prototype._addStyle = function (style) {\n var adapter = common.ɵgetDOM();\n var el = adapter.createElement('style');\n el.textContent = style;\n if (!!this.transitionId) {\n el.setAttribute('ng-transition', this.transitionId);\n }\n this.head.appendChild(el);\n };\n ServerStylesHost.prototype.onStylesAdded = function (additions) {\n var _this = this;\n additions.forEach(function (style) { return _this._addStyle(style); });\n };\n ServerStylesHost = __decorate([\n core.Injectable(),\n __param(0, core.Inject(common.DOCUMENT)),\n __param(1, core.Optional()), __param(1, core.Inject(platformBrowser.ɵTRANSITION_ID)),\n __metadata(\"design:paramtypes\", [Object, String])\n ], ServerStylesHost);\n return ServerStylesHost;\n }(platformBrowser.ɵSharedStylesHost));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function notSupported(feature) {\n throw new Error(\"platform-server does not support '\" + feature + \"'.\");\n }\n var INTERNAL_SERVER_PLATFORM_PROVIDERS = [\n { provide: common.DOCUMENT, useFactory: _document, deps: [core.Injector] },\n { provide: core.PLATFORM_ID, useValue: common.ɵPLATFORM_SERVER_ID },\n { provide: core.PLATFORM_INITIALIZER, useFactory: initDominoAdapter, multi: true, deps: [core.Injector] }, {\n provide: common.PlatformLocation,\n useClass: ServerPlatformLocation,\n deps: [common.DOCUMENT, [core.Optional, INITIAL_CONFIG]]\n },\n { provide: PlatformState, deps: [common.DOCUMENT] },\n // Add special provider that allows multiple instances of platformServer* to be created.\n { provide: core.ɵALLOW_MULTIPLE_PLATFORMS, useValue: true }\n ];\n function initDominoAdapter(injector) {\n return function () { DominoAdapter.makeCurrent(); };\n }\n function instantiateServerRendererFactory(renderer, engine, zone) {\n return new animations.ɵAnimationRendererFactory(renderer, engine, zone);\n }\n var SERVER_RENDER_PROVIDERS = [\n ServerRendererFactory2,\n {\n provide: core.RendererFactory2,\n useFactory: instantiateServerRendererFactory,\n deps: [ServerRendererFactory2, browser.ɵAnimationEngine, core.NgZone]\n },\n ServerStylesHost,\n { provide: platformBrowser.ɵSharedStylesHost, useExisting: ServerStylesHost },\n { provide: platformBrowser.EVENT_MANAGER_PLUGINS, multi: true, useClass: ServerEventManagerPlugin },\n ];\n /**\n * The ng module for the server.\n *\n * @publicApi\n */\n var ServerModule = /** @class */ (function () {\n function ServerModule() {\n }\n ServerModule = __decorate([\n core.NgModule({\n exports: [platformBrowser.BrowserModule],\n imports: [http.HttpClientModule, animations.NoopAnimationsModule],\n providers: [\n SERVER_RENDER_PROVIDERS,\n SERVER_HTTP_PROVIDERS,\n { provide: core.Testability, useValue: null },\n { provide: common.ViewportScroller, useClass: common.ɵNullViewportScroller },\n ],\n })\n ], ServerModule);\n return ServerModule;\n }());\n function _document(injector) {\n var config = injector.get(INITIAL_CONFIG, null);\n var document = config && config.document ? parseDocument(config.document, config.url) :\n common.ɵgetDOM().createHtmlDocument();\n // Tell ivy about the global document\n core.ɵsetDocument(document);\n return document;\n }\n /**\n * @publicApi\n */\n var platformServer = core.createPlatformFactory(core.platformCore, 'server', INTERNAL_SERVER_PLATFORM_PROVIDERS);\n /**\n * The server platform that supports the runtime compiler.\n *\n * @publicApi\n */\n var platformDynamicServer = core.createPlatformFactory(platformBrowserDynamic.ɵplatformCoreDynamic, 'serverDynamic', INTERNAL_SERVER_PLATFORM_PROVIDERS);\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function serializeTransferStateFactory(doc, appId, transferStore) {\n return function () {\n var script = doc.createElement('script');\n script.id = appId + '-state';\n script.setAttribute('type', 'application/json');\n script.textContent = platformBrowser.ɵescapeHtml(transferStore.toJson());\n doc.body.appendChild(script);\n };\n }\n /**\n * NgModule to install on the server side while using the `TransferState` to transfer state from\n * server to client.\n *\n * @publicApi\n */\n var ServerTransferStateModule = /** @class */ (function () {\n function ServerTransferStateModule() {\n }\n ServerTransferStateModule = __decorate([\n core.NgModule({\n providers: [\n platformBrowser.TransferState, {\n provide: BEFORE_APP_SERIALIZED,\n useFactory: serializeTransferStateFactory,\n deps: [common.DOCUMENT, core.APP_ID, platformBrowser.TransferState],\n multi: true,\n }\n ]\n })\n ], ServerTransferStateModule);\n return ServerTransferStateModule;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function _getPlatform(platformFactory, options) {\n var extraProviders = options.extraProviders ? options.extraProviders : [];\n return platformFactory([\n { provide: INITIAL_CONFIG, useValue: { document: options.document, url: options.url } },\n extraProviders\n ]);\n }\n function _render(platform, moduleRefPromise) {\n return moduleRefPromise.then(function (moduleRef) {\n var transitionId = moduleRef.injector.get(platformBrowser.ɵTRANSITION_ID, null);\n if (!transitionId) {\n throw new Error(\"renderModule[Factory]() requires the use of BrowserModule.withServerTransition() to ensure\\nthe server-rendered app can be properly bootstrapped into a client app.\");\n }\n var applicationRef = moduleRef.injector.get(core.ApplicationRef);\n return applicationRef.isStable.pipe((operators.first(function (isStable) { return isStable; })))\n .toPromise()\n .then(function () {\n var e_1, _a;\n var platformState = platform.injector.get(PlatformState);\n var asyncPromises = [];\n // Run any BEFORE_APP_SERIALIZED callbacks just before rendering to string.\n var callbacks = moduleRef.injector.get(BEFORE_APP_SERIALIZED, null);\n if (callbacks) {\n try {\n for (var callbacks_1 = __values(callbacks), callbacks_1_1 = callbacks_1.next(); !callbacks_1_1.done; callbacks_1_1 = callbacks_1.next()) {\n var callback = callbacks_1_1.value;\n try {\n var callbackResult = callback();\n if (core.ɵisPromise(callbackResult)) {\n // TODO: in TS3.7, callbackResult is void.\n asyncPromises.push(callbackResult);\n }\n }\n catch (e) {\n // Ignore exceptions.\n console.warn('Ignoring BEFORE_APP_SERIALIZED Exception: ', e);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (callbacks_1_1 && !callbacks_1_1.done && (_a = callbacks_1.return)) _a.call(callbacks_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n var complete = function () {\n var output = platformState.renderToString();\n platform.destroy();\n return output;\n };\n if (asyncPromises.length === 0) {\n return complete();\n }\n return Promise\n .all(asyncPromises.map(function (asyncPromise) {\n return asyncPromise.catch(function (e) { console.warn('Ignoring BEFORE_APP_SERIALIZED Exception: ', e); });\n }))\n .then(complete);\n });\n });\n }\n /**\n * Renders a Module to string.\n *\n * `document` is the full document HTML of the page to render, as a string.\n * `url` is the URL for the current render request.\n * `extraProviders` are the platform level providers for the current render request.\n *\n * Do not use this in a production server environment. Use pre-compiled {@link NgModuleFactory} with\n * {@link renderModuleFactory} instead.\n *\n * @publicApi\n */\n function renderModule(module, options) {\n var platform = _getPlatform(platformDynamicServer, options);\n return _render(platform, platform.bootstrapModule(module));\n }\n /**\n * Renders a {@link NgModuleFactory} to string.\n *\n * `document` is the full document HTML of the page to render, as a string.\n * `url` is the URL for the current render request.\n * `extraProviders` are the platform level providers for the current render request.\n *\n * @publicApi\n */\n function renderModuleFactory(moduleFactory, options) {\n var platform = _getPlatform(platformServer, options);\n return _render(platform, platform.bootstrapModuleFactory(moduleFactory));\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * @publicApi\n */\n var VERSION = new core.Version('9.0.0');\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n // This file only reexports content of the `src` folder. Keep it that way.\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.BEFORE_APP_SERIALIZED = BEFORE_APP_SERIALIZED;\n exports.INITIAL_CONFIG = INITIAL_CONFIG;\n exports.PlatformState = PlatformState;\n exports.ServerModule = ServerModule;\n exports.ServerTransferStateModule = ServerTransferStateModule;\n exports.VERSION = VERSION;\n exports.platformDynamicServer = platformDynamicServer;\n exports.platformServer = platformServer;\n exports.renderModule = renderModule;\n exports.renderModuleFactory = renderModuleFactory;\n exports.ɵINTERNAL_SERVER_PLATFORM_PROVIDERS = INTERNAL_SERVER_PLATFORM_PROVIDERS;\n exports.ɵSERVER_RENDER_PROVIDERS = SERVER_RENDER_PROVIDERS;\n exports.ɵServerRendererFactory2 = ServerRendererFactory2;\n exports.ɵangular_packages_platform_server_platform_server_a = instantiateServerRendererFactory;\n exports.ɵangular_packages_platform_server_platform_server_b = serializeTransferStateFactory;\n exports.ɵangular_packages_platform_server_platform_server_c = ServerStylesHost;\n exports.ɵangular_packages_platform_server_platform_server_d = ServerEventManagerPlugin;\n exports.ɵangular_packages_platform_server_platform_server_e = ServerXhr;\n exports.ɵangular_packages_platform_server_platform_server_f = zoneWrappedInterceptingHandler;\n exports.ɵangular_packages_platform_server_platform_server_g = SERVER_HTTP_PROVIDERS;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=platform-server.umd.js.map\n"]}
|