@angular/platform-browser 6.0.0-rc.3 → 6.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/animations/animations.d.ts +2 -2
- package/animations/animations.metadata.json +1 -1
- package/animations/src/animations.d.ts +1 -0
- package/animations/src/providers.d.ts +5 -1
- package/animations.d.ts +1 -1
- package/bundles/platform-browser-animations.umd.js +97 -21
- package/bundles/platform-browser-animations.umd.js.map +1 -1
- package/bundles/platform-browser-animations.umd.min.js +4 -4
- package/bundles/platform-browser-animations.umd.min.js.map +1 -1
- package/bundles/platform-browser-testing.umd.js +5 -5
- package/bundles/platform-browser-testing.umd.js.map +1 -1
- package/bundles/platform-browser-testing.umd.min.js +4 -4
- package/bundles/platform-browser-testing.umd.min.js.map +1 -1
- package/bundles/platform-browser.umd.js +102 -29
- package/bundles/platform-browser.umd.js.map +1 -1
- package/bundles/platform-browser.umd.min.js +15 -14
- package/bundles/platform-browser.umd.min.js.map +1 -1
- package/esm2015/animations/animations.js +3 -3
- package/esm2015/animations/index.js +2 -2
- package/esm2015/animations/public_api.js +2 -2
- package/esm2015/animations/src/animations.js +2 -1
- package/esm2015/animations/src/providers.js +11 -4
- package/esm2015/src/browser.js +3 -3
- package/esm2015/src/dom/events/event_manager.js +3 -3
- package/esm2015/src/security/dom_sanitization_service.js +8 -8
- package/esm2015/src/version.js +3 -3
- package/esm2015/testing/src/browser.js +3 -3
- package/esm5/animations/animations.js +3 -3
- package/esm5/animations/src/animations.js +2 -1
- package/esm5/animations/src/providers.js +12 -4
- package/esm5/src/browser.js +3 -3
- package/esm5/src/dom/events/event_manager.js +3 -3
- package/esm5/src/security/dom_sanitization_service.js +4 -4
- package/esm5/src/version.js +3 -3
- package/esm5/testing/src/browser.js +3 -3
- package/fesm2015/animations.js +12 -5
- package/fesm2015/animations.js.map +1 -1
- package/fesm2015/platform-browser.js +14 -14
- package/fesm2015/platform-browser.js.map +1 -1
- package/fesm2015/testing.js +3 -3
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/animations.js +13 -5
- package/fesm5/animations.js.map +1 -1
- package/fesm5/platform-browser.js +8 -8
- package/fesm5/platform-browser.js.map +1 -1
- package/fesm5/testing.js +3 -3
- package/fesm5/testing.js.map +1 -1
- package/package.json +5 -4
- package/platform-browser.metadata.json +1 -1
- package/src/browser.d.ts +2 -2
- package/src/dom/events/event_manager.d.ts +2 -2
- package/src/security/dom_sanitization_service.d.ts +7 -7
- package/src/version.d.ts +1 -1
- package/testing/src/browser.d.ts +2 -2
- package/testing.d.ts +1 -1
@@ -1,30 +1,31 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v6.0.0
|
2
|
+
* @license Angular v6.0.0
|
3
3
|
* (c) 2010-2018 Google, Inc. 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")
|
6
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core")):"function"==typeof define&&define.amd?define("@angular/platform-browser",["exports","@angular/common","@angular/core"],e):e((t.ng=t.ng||{},t.ng.platformBrowser={}),t.ng.common,t.ng.core)}(this,function(t,e,n){"use strict";var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=Object.assign||function t(e){for(var n,r=1,o=arguments.length;r<o;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e};function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}
|
7
7
|
/**
|
8
8
|
* @license
|
9
9
|
* Copyright Google Inc. All Rights Reserved.
|
10
10
|
*
|
11
11
|
* Use of this source code is governed by an MIT-style license that can be
|
12
12
|
* found in the LICENSE file at https://angular.io/license
|
13
|
-
*/
|
13
|
+
*/
|
14
|
+
var u=null;function s(){return u}function c(t){u||(u=t)}var p,l=function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}(),f=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=e.getStyle(n,r[o]+"AnimationName")){e._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=i[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return o(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(l),d={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},y={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},h={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"};
|
14
15
|
/**
|
15
16
|
* @license
|
16
17
|
* Copyright Google Inc. All Rights Reserved.
|
17
18
|
*
|
18
19
|
* Use of this source code is governed by an MIT-style license that can be
|
19
20
|
* found in the LICENSE file at https://angular.io/license
|
20
|
-
*/n.ɵglobal.Node&&(
|
21
|
+
*/n.ɵglobal.Node&&(p=n.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var m,g=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.parse=function(t){throw new Error("parse not implemented")},n.makeCurrent=function(){c(new n)},n.prototype.hasProperty=function(t,e){return e in t},n.prototype.setProperty=function(t,e,n){t[e]=n},n.prototype.getProperty=function(t,e){return t[e]},n.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,function o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t}(n))},n.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},n.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},n.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},n.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(n.prototype,"attrToPropMap",{get:function(){return d},enumerable:!0,configurable:!0}),n.prototype.contains=function(t,e){return p.call(t,e)},n.prototype.querySelector=function(t,e){return t.querySelector(e)},n.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},n.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},n.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},n.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},n.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},n.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},n.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},n.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},n.prototype.getInnerHTML=function(t){return t.innerHTML},n.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},n.prototype.getOuterHTML=function(t){return t.outerHTML},n.prototype.nodeName=function(t){return t.nodeName},n.prototype.nodeValue=function(t){return t.nodeValue},n.prototype.type=function(t){return t.type},n.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},n.prototype.firstChild=function(t){return t.firstChild},n.prototype.nextSibling=function(t){return t.nextSibling},n.prototype.parentElement=function(t){return t.parentNode},n.prototype.childNodes=function(t){return t.childNodes},n.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},n.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.prototype.appendChild=function(t,e){t.appendChild(e)},n.prototype.removeChild=function(t,e){t.removeChild(e)},n.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},n.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},n.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},n.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},n.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},n.prototype.setInnerHTML=function(t,e){t.innerHTML=e},n.prototype.getText=function(t){return t.textContent},n.prototype.setText=function(t,e){t.textContent=e},n.prototype.getValue=function(t){return t.value},n.prototype.setValue=function(t,e){t.value=e},n.prototype.getChecked=function(t){return t.checked},n.prototype.setChecked=function(t,e){t.checked=e},n.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},n.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},n.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},n.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},n.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},n.prototype.createScriptTag=function(t,e,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r},n.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},n.prototype.createShadowRoot=function(t){return t.createShadowRoot()},n.prototype.getShadowRoot=function(t){return t.shadowRoot},n.prototype.getHost=function(t){return t.host},n.prototype.clone=function(t){return t.cloneNode(!0)},n.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},n.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},n.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},n.prototype.addClass=function(t,e){t.classList.add(e)},n.prototype.removeClass=function(t,e){t.classList.remove(e)},n.prototype.hasClass=function(t,e){return t.classList.contains(e)},n.prototype.setStyle=function(t,e,n){t.style[e]=n},n.prototype.removeStyle=function(t,e){t.style[e]=""},n.prototype.getStyle=function(t,e){return t.style[e]},n.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},n.prototype.tagName=function(t){return t.tagName},n.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var o=n.item(r);e.set(o.name,o.value)}return e},n.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},n.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},n.prototype.getAttribute=function(t,e){return t.getAttribute(e)},n.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},n.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},n.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},n.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},n.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},n.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},n.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},n.prototype.getDefaultDocument=function(){return document},n.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},n.prototype.getTitle=function(t){return t.title},n.prototype.setTitle=function(t,e){t.title=e||""},n.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},n.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},n.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},n.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},n.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},n.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},n.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},n.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},n.prototype.adoptNode=function(t){return document.adoptNode(t)},n.prototype.getHref=function(t){return t.getAttribute("href")},n.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&h.hasOwnProperty(e)&&(e=h[e]))}return y[e]||e},n.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},n.prototype.getHistory=function(){return window.history},n.prototype.getLocation=function(){return window.location},n.prototype.getBaseHref=function(t){var e=function n(){return v||(v=document.querySelector("base"))?v.getAttribute("href"):null}();return null==e?null:function r(t){return m||(m=document.createElement("a")),m.setAttribute("href",t),"/"===m.pathname.charAt(0)?m.pathname:"/"+m.pathname}
|
21
22
|
/**
|
22
23
|
* @license
|
23
24
|
* Copyright Google Inc. All Rights Reserved.
|
24
25
|
*
|
25
26
|
* Use of this source code is governed by an MIT-style license that can be
|
26
27
|
* found in the LICENSE file at https://angular.io/license
|
27
|
-
*/(e)},n.prototype.resetBaseElement=function(){
|
28
|
+
*/(e)},n.prototype.resetBaseElement=function(){v=null},n.prototype.getUserAgent=function(){return window.navigator.userAgent},n.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},n.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},n.prototype.getComputedStyle=function(t){return getComputedStyle(t)},n.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},n.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},n.prototype.supportsCookies=function(){return!0},n.prototype.getCookie=function(t){return e.ɵparseCookieValue(document.cookie,t)},n.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},n}(f),v=null,w=e.DOCUMENT;
|
28
29
|
/**
|
29
30
|
* @license
|
30
31
|
* Copyright Google Inc. All Rights Reserved.
|
@@ -32,21 +33,21 @@
|
|
32
33
|
* Use of this source code is governed by an MIT-style license that can be
|
33
34
|
* found in the LICENSE file at https://angular.io/license
|
34
35
|
*/
|
35
|
-
function
|
36
|
+
function _(){return!!window.history.pushState}
|
36
37
|
/**
|
37
38
|
* @license
|
38
39
|
* Copyright Google Inc. All Rights Reserved.
|
39
40
|
*
|
40
41
|
* Use of this source code is governed by an MIT-style license that can be
|
41
42
|
* found in the LICENSE file at https://angular.io/license
|
42
|
-
*/var
|
43
|
+
*/var E=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return o(e,t),e.prototype._init=function(){this.location=s().getLocation(),this._history=s().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return s().getBaseHref(this._doc)},e.prototype.onPopState=function(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){_()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){_()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]}]},e}(e.PlatformLocation),b=function(){function t(t){this._doc=t,this._dom=s()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t&&this._dom.querySelector(this._doc,"meta["+t+"]")||null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]}]},t}(),S=new n.InjectionToken("TRANSITION_ID");
|
43
44
|
/**
|
44
45
|
* @license
|
45
46
|
* Copyright Google Inc. All Rights Reserved.
|
46
47
|
*
|
47
48
|
* Use of this source code is governed by an MIT-style license that can be
|
48
49
|
* found in the LICENSE file at https://angular.io/license
|
49
|
-
*/function
|
50
|
+
*/function T(t,e,r){return function(){r.get(n.ApplicationInitStatus).donePromise.then(function(){var n=s();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}}var A=[{provide:n.APP_INITIALIZER,useFactory:T,deps:[S,w,n.Injector],multi:!0}],N=function(){function t(){}return t.init=function(){n.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){n.ɵglobal.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},n.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},n.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()},n.ɵglobal.frameworkStabilizers||(n.ɵglobal.frameworkStabilizers=[]),n.ɵglobal.frameworkStabilizers.push(function(t){var e=n.ɵglobal.getAllAngularTestabilities(),r=e.length,o=!1,i=function(e){o=o||e,0==--r&&t(o)};e.forEach(function(t){t.whenStable(i)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?s().isShadowRoot(e)?this.findTestabilityInTree(t,s().getHost(e),!0):this.findTestabilityInTree(t,s().parentElement(e),!0):null},t}(),C=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return s().getTitle(this._doc)},t.prototype.setTitle=function(t){s().setTitle(this._doc,t)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]}]},t}();
|
50
51
|
/**
|
51
52
|
* @license
|
52
53
|
* Copyright Google Inc. All Rights Reserved.
|
@@ -61,28 +62,28 @@ function g(){return!!window.history.pushState}
|
|
61
62
|
* Use of this source code is governed by an MIT-style license that can be
|
62
63
|
* found in the LICENSE file at https://angular.io/license
|
63
64
|
*/
|
64
|
-
function
|
65
|
+
function P(t,e){"undefined"!=typeof COMPILED&&COMPILED||((n.ɵglobal.ng=n.ɵglobal.ng||{})[t]=e)}
|
65
66
|
/**
|
66
67
|
* @license
|
67
68
|
* Copyright Google Inc. All Rights Reserved.
|
68
69
|
*
|
69
70
|
* Use of this source code is governed by an MIT-style license that can be
|
70
71
|
* found in the LICENSE file at https://angular.io/license
|
71
|
-
*/var
|
72
|
+
*/var I={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},R="probe",L="coreTokens";function O(t){return n.getDebugNode(t)}function M(t){return P(R,O),P(L,i({},I,function e(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}(t||[]))),function(){return O}}var k=[{provide:n.APP_INITIALIZER,useFactory:M,deps:[[n.NgProbeToken,new n.Optional]],multi:!0}],D=new n.InjectionToken("EventManagerPlugins"),x=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[D]}]},{type:n.NgZone}]},t}(),H=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=s().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),B=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),j=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return o(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return s().remove(t)})},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]}]},e}(B),z={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},V=/%COMP%/g,F="_nghost-%COMP%",U="_ngcontent-%COMP%";
|
72
73
|
/**
|
73
74
|
* @license
|
74
75
|
* Copyright Google Inc. All Rights Reserved.
|
75
76
|
*
|
76
77
|
* Use of this source code is governed by an MIT-style license that can be
|
77
78
|
* found in the LICENSE file at https://angular.io/license
|
78
|
-
*/function F(t){return V.replace(B,t)}function U(t){return z.replace(B,t)}function G(t,e,n){for(var o=0;o<e.length;o++){var r=e[o];Array.isArray(r)?G(t,r,n):(r=r.replace(B,t),n.push(r))}return n}function Z(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var K=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new q(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var o=this.rendererByCompId.get(e.id);return o||(o=new Y(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,o)),o.applyToHost(t),o;case n.ViewEncapsulation.Native:return new Q(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=G(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:M},{type:O}]},t}(),q=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(H[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,o){if(o){e=o+":"+e;var r=H[o];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var o=H[n];o?t.removeAttributeNS(o,e):t.removeAttribute(n+":"+e)}else 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,o,r){r&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,o,r&n.RendererStyleFlags2.Important?"important":""):t.style[e]=o},t.prototype.removeStyle=function(t,e,o){o&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){J(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return J(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Z(n)):this.eventManager.addEventListener(t,e,Z(n))},t}(),W="@".charCodeAt(0);function J(t,e){if(t.charCodeAt(0)===W)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var X,Y=function(t){function e(e,n,o){var r=t.call(this,e)||this;r.component=o;var i=G(o.id,o.styles,[]);return n.addStyles(i),r.contentAttr=F(o.id),r.hostAttr=U(o.id),r}return o.__extends(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var o=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,o,this.contentAttr,""),o},e}(q),Q=function(t){function e(e,n,o,r){var i=t.call(this,e)||this;i.sharedStylesHost=n,i.hostEl=o,i.component=r,i.shadowRoot=o.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var a=G(r.id,r.styles,[]),u=0;u<a.length;u++){var s=document.createElement("style");s.textContent=a[u],i.shadowRoot.appendChild(s)}return i}return o.__extends(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,o){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,o)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(q),$="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},tt=$("addEventListener"),et=$("removeEventListener"),nt={},ot="removeEventListener",rt="__zone_symbol__propagationStopped",it="__zone_symbol__stopImmediatePropagation",at="undefined"!=typeof Zone&&Zone[$("BLACK_LISTED_EVENTS")];at&&(X={},at.forEach(function(t){X[t]=t}));var ut=function(t){return!!X&&X.hasOwnProperty(t)},st=function(t){var e=nt[t.type];if(e){var n=this[e];if(n){var o=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,o):a.handler.apply(this,o);for(var r=n.slice(),i=0;i<r.length&&!0!==t[rt];i++){var a;(a=r[i]).zone!==Zone.current?a.zone.run(a.handler,this,o):a.handler.apply(this,o)}}}},ct=function(t){function e(e,n){var o=t.call(this,e)||this;return o.ngZone=n,o.patchEvent(),o}return o.__extends(e,t),e.prototype.patchEvent=function(){if(Event&&Event.prototype&&!Event.prototype[it]){var t=Event.prototype[it]=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[rt]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,o){var r=this,i=o;if(!t[tt]||n.NgZone.isInAngularZone()&&!ut(e))t.addEventListener(e,i,!1);else{var a=nt[e];a||(a=nt[e]=$("ANGULAR"+e+"FALSE"));var u=t[a],s=u&&u.length>0;u||(u=t[a]=[]);var c=ut(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:c,handler:i});else{for(var p=!1,l=0;l<u.length;l++)if(u[l].handler===i){p=!0;break}p||u.push({zone:c,handler:i})}s||t[tt](e,st,!1)}return function(){return r.removeEventListener(t,e,i)}},e.prototype.removeEventListener=function(t,e,n){var o=t[et];if(!o)return t[ot].apply(t,[e,n,!1]);var r=nt[e],i=r&&t[r];if(!i)return t[ot].apply(t,[e,n,!1]);for(var a=!1,u=0;u<i.length;u++)if(i[u].handler===n){a=!0,i.splice(u,1);break}a?0===i.length&&o.apply(t,[e,st,!1]):t[ot].apply(t,[e,n,!1])},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[m]}]},{type:n.NgZone}]},e}(x),pt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},lt=new n.InjectionToken("HammerGestureConfig"),ft=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),dt=function(t){function e(e,n,o){var r=t.call(this,e)||this;return r._config=n,r.console=o,r}return o.__extends(e,t),e.prototype.supports=function(t){return!(!pt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&(this.console.warn("Hammer.js is not loaded, can not bind '"+t+"' event."),1))},e.prototype.addEventListener=function(t,e,n){var o=this,r=this.manager.getZone();return e=e.toLowerCase(),r.runOutsideAngular(function(){var i=o._config.buildHammer(t),a=function(t){r.runGuarded(function(){n(t)})};return i.on(e,a),function(){return i.off(e,a)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[m]}]},{type:ft,decorators:[{type:n.Inject,args:[lt]}]},{type:n.ɵConsole}]},e}(x),yt=["alt","control","meta","shift"],ht={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},mt=function(t){function e(e){return t.call(this,e)||this}return o.__extends(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,o){var r=e.parseEventName(n),a=e.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return i().onAndCancel(t,r.domEventName,a)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;var r=e._normalizeKey(n.pop()),i="";if(yt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=r,0!=n.length||0===r.length)return null;var a={};return a.domEventName=o,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=i().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),yt.forEach(function(o){o!=n&&(0,ht[o])(t)&&(e+=o+".")}),e+=n},e.eventCallback=function(t,n,o){return function(r){e.getEventFullKey(r)===t&&o.runGuarded(function(){return n(r)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[m]}]}]},e}(x),gt=function vt(){},_t=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o.__extends(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof Et?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),n.ɵ_sanitizeHtml(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof bt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),n.ɵ_sanitizeStyle(e));case n.SecurityContext.SCRIPT:if(e instanceof St)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof At||e instanceof Tt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),n.ɵ_sanitizeUrl(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof At)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof wt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Et(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new bt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new St(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Tt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new At(t)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[m]}]}]},e}(gt),wt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(wt),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.getTypeName=function(){return"Style"},e}(wt),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.getTypeName=function(){return"Script"},e}(wt),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.getTypeName=function(){return"URL"},e}(wt),At=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(wt),Nt=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:It,multi:!0},{provide:e.PlatformLocation,useClass:v,deps:[m]},{provide:m,useFactory:Lt,deps:[]}],Ct=[{provide:n.Sanitizer,useExisting:gt},{provide:gt,useClass:_t,deps:[m]}],Pt=n.createPlatformFactory(n.platformCore,"browser",Nt);function It(){y.makeCurrent(),S.init()}function Rt(){return new n.ErrorHandler}function Lt(){return document}var kt=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:w,useExisting:n.APP_ID},b]}},t.decorators=[{type:n.NgModule,args:[{providers:[Ct,{provide:n.ɵAPP_ROOT,useValue:!0},{provide:n.ErrorHandler,useFactory:Rt,deps:[]},{provide:k,useClass:ct,multi:!0},{provide:k,useClass:mt,multi:!0},{provide:k,useClass:dt,multi:!0},{provide:lt,useClass:ft},K,{provide:n.RendererFactory2,useExisting:K},{provide:D,useExisting:O},O,n.Testability,M,L,_,T],exports:[e.CommonModule,n.ApplicationModule]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},t}(),Mt="undefined"!=typeof window&&window||{},xt=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n="Change Detection",o=null!=Mt.console.profile;e&&o&&Mt.console.profile(n);for(var r=i().performanceNow(),a=0;a<5||i().performanceNow()-r<500;)this.appRef.tick(),a++;var u=i().performanceNow();e&&o&&Mt.console.profileEnd(n);var s=(u-r)/a;return Mt.console.log("ran "+a+" change detection cycles"),Mt.console.log(s.toFixed(2)+" ms per check"),new function c(t,e){this.msPerTick=t,this.numTicks=e}(s,a)},t}(),Dt="profiler",Ot=function(){function t(){this.store={},this.onSerializeCallbacks={}}return t.init=function(e){var n=new t;return n.store=e,n},t.prototype.get=function(t,e){return void 0!==this.store[t]?this.store[t]:e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}();
|
79
|
+
*/function G(t){return U.replace(V,t)}function Z(t){return F.replace(V,t)}function K(t,e,n){for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?K(t,o,n):(o=o.replace(V,t),n.push(o))}return n}function q(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var W=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new J(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(e.id);return r||(r=new $(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r;case n.ViewEncapsulation.Native:return new tt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var o=K(e.id,e.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:x},{type:j}]},t}(),J=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(z[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var o=z[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=z[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else 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,o){o&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,r,o&n.RendererStyleFlags2.Important?"important":""):t.style[e]=r},t.prototype.removeStyle=function(t,e,r){r&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){Y(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return Y(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,q(n)):this.eventManager.addEventListener(t,e,q(n))},t}(),X="@".charCodeAt(0);function Y(t,e){if(t.charCodeAt(0)===X)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var Q,$=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.component=r;var i=K(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=G(r.id),o.hostAttr=Z(r.id),o}return o(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(J),tt=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var a=K(o.id,o.styles,[]),u=0;u<a.length;u++){var s=document.createElement("style");s.textContent=a[u],i.shadowRoot.appendChild(s)}return i}return o(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(J),et="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},nt=et("addEventListener"),rt=et("removeEventListener"),ot={},it="__zone_symbol__propagationStopped",at="undefined"!=typeof Zone&&Zone[et("BLACK_LISTED_EVENTS")];at&&(Q={},at.forEach(function(t){Q[t]=t}));var ut,st=function(t){return!!Q&&Q.hasOwnProperty(t)},ct=function(t){var e=ot[t.type];if(e){var n=this[e];if(n){var r=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r);for(var o=n.slice(),i=0;i<o.length&&!0!==t[it];i++){var a;(a=o[i]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r)}}}},pt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.ngZone=n,r.patchEvent(),r}return o(e,t),e.prototype.patchEvent=function(){if(Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[it]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,r){var o=this,i=r;if(!t[nt]||n.NgZone.isInAngularZone()&&!st(e))t.addEventListener(e,i,!1);else{var a=ot[e];a||(a=ot[e]=et("ANGULAR"+e+"FALSE"));var u=t[a],s=u&&u.length>0;u||(u=t[a]=[]);var c=st(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:c,handler:i});else{for(var p=!1,l=0;l<u.length;l++)if(u[l].handler===i){p=!0;break}p||u.push({zone:c,handler:i})}s||t[nt](e,ct,!1)}return function(){return o.removeEventListener(t,e,i)}},e.prototype.removeEventListener=function(t,e,n){var r=t[rt];if(!r)return t.removeEventListener.apply(t,[e,n,!1]);var o=ot[e],i=o&&t[o];if(!i)return t.removeEventListener.apply(t,[e,n,!1]);for(var a=!1,u=0;u<i.length;u++)if(i[u].handler===n){a=!0,i.splice(u,1);break}a?0===i.length&&r.apply(t,[e,ct,!1]):t.removeEventListener.apply(t,[e,n,!1])},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]},{type:n.NgZone}]},e}(H),lt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},ft=new n.InjectionToken("HammerGestureConfig"),dt=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),yt=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o._config=n,o.console=r,o}return o(e,t),e.prototype.supports=function(t){return!(!lt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&(this.console.warn("Hammer.js is not loaded, can not bind '"+t+"' event."),1))},e.prototype.addEventListener=function(t,e,n){var r=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular(function(){var i=r._config.buildHammer(t),a=function(t){o.runGuarded(function(){n(t)})};return i.on(e,a),function(){return i.off(e,a)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]},{type:dt,decorators:[{type:n.Inject,args:[ft]}]},{type:n.ɵConsole}]},e}(H),ht=["alt","control","meta","shift"],mt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},gt=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),i=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(ht.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=s().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ht.forEach(function(r){r!=n&&(0,mt[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]}]},e}(H),vt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof _t?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),n.ɵ_sanitizeHtml(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof Et?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),n.ɵ_sanitizeStyle(e));case n.SecurityContext.SCRIPT:if(e instanceof bt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof Tt||e instanceof St?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),n.ɵ_sanitizeUrl(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof Tt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof wt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new _t(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Et(t)},e.prototype.bypassSecurityTrustScript=function(t){return new bt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new St(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Tt(t)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]}]},e}(ut=function ut(){}),wt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(wt),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"Style"},e}(wt),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"Script"},e}(wt),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"URL"},e}(wt),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(wt),At=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:Pt,multi:!0},{provide:e.PlatformLocation,useClass:E,deps:[w]},{provide:w,useFactory:Rt,deps:[]}],Nt=[{provide:n.Sanitizer,useExisting:ut},{provide:ut,useClass:vt,deps:[w]}],Ct=n.createPlatformFactory(n.platformCore,"browser",At);function Pt(){g.makeCurrent(),N.init()}function It(){return new n.ErrorHandler}function Rt(){return document}var Lt=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:S,useExisting:n.APP_ID},A]}},t.decorators=[{type:n.NgModule,args:[{providers:[Nt,{provide:n.ɵAPP_ROOT,useValue:!0},{provide:n.ErrorHandler,useFactory:It,deps:[]},{provide:D,useClass:pt,multi:!0},{provide:D,useClass:gt,multi:!0},{provide:D,useClass:yt,multi:!0},{provide:ft,useClass:dt},W,{provide:n.RendererFactory2,useExisting:W},{provide:B,useExisting:j},j,n.Testability,x,k,b,C],exports:[e.CommonModule,n.ApplicationModule]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},t}(),Ot="undefined"!=typeof window&&window||{},Mt=function Mt(t,e){this.msPerTick=t,this.numTicks=e},kt=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=Ot.console.profile;e&&n&&Ot.console.profile("Change Detection");for(var r=s().performanceNow(),o=0;o<5||s().performanceNow()-r<500;)this.appRef.tick(),o++;var i=s().performanceNow();e&&n&&Ot.console.profileEnd("Change Detection");var a=(i-r)/o;return Ot.console.log("ran "+o+" change detection cycles"),Ot.console.log(a.toFixed(2)+" ms per check"),new Mt(a,o)},t}(),Dt=function(){function t(){this.store={},this.onSerializeCallbacks={}}return t.init=function(e){var n=new t;return n.store=e,n},t.prototype.get=function(t,e){return void 0!==this.store[t]?this.store[t]:e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}();
|
79
80
|
/**
|
80
81
|
* @license
|
81
82
|
* Copyright Google Inc. All Rights Reserved.
|
82
83
|
*
|
83
84
|
* Use of this source code is governed by an MIT-style license that can be
|
84
85
|
* found in the LICENSE file at https://angular.io/license
|
85
|
-
*/function
|
86
|
+
*/function xt(t,e){var n=t.getElementById(e+"-state"),r={};if(n&&n.textContent)try{r=JSON.parse(function o(t){var e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,function(t){return e[t]})}(n.textContent))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return Dt.init(r)}var Ht=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{providers:[{provide:Dt,useFactory:xt,deps:[w,n.APP_ID]}]}]}],t.ctorParameters=function(){return[]},t}(),Bt=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&s().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),jt=new n.Version("6.0.0");
|
86
87
|
/**
|
87
88
|
* @license
|
88
89
|
* Copyright Google Inc. All Rights Reserved.
|
@@ -111,11 +112,11 @@ function A(t,e){"undefined"!=typeof COMPILED&&COMPILED||((n.ɵglobal.ng=n.ɵglob
|
|
111
112
|
* Use of this source code is governed by an MIT-style license that can be
|
112
113
|
* found in the LICENSE file at https://angular.io/license
|
113
114
|
*/
|
114
|
-
t.ɵangular_packages_platform_browser_platform_browser_b=
|
115
|
+
t.ɵangular_packages_platform_browser_platform_browser_b=Rt,t.ɵangular_packages_platform_browser_platform_browser_a=It,t.ɵangular_packages_platform_browser_platform_browser_i=f,t.ɵangular_packages_platform_browser_platform_browser_g=A,t.ɵangular_packages_platform_browser_platform_browser_f=T,t.ɵangular_packages_platform_browser_platform_browser_c=xt,t.ɵangular_packages_platform_browser_platform_browser_h=M,t.ɵangular_packages_platform_browser_platform_browser_d=H,t.ɵangular_packages_platform_browser_platform_browser_e=vt,t.BrowserModule=Lt,t.platformBrowser=Ct,t.Meta=b,t.Title=C,t.disableDebugTools=function zt(){P("profiler",null)}
|
115
116
|
/**
|
116
117
|
* @license
|
117
118
|
* Copyright Google Inc. All Rights Reserved.
|
118
119
|
*
|
119
120
|
* Use of this source code is governed by an MIT-style license that can be
|
120
121
|
* found in the LICENSE file at https://angular.io/license
|
121
|
-
*/,t.enableDebugTools=function
|
122
|
+
*/,t.enableDebugTools=function Vt(t){return P("profiler",new kt(t)),t},t.BrowserTransferStateModule=Ht,t.TransferState=Dt,t.makeStateKey=function Ft(t){return t},t.By=Bt,t.DOCUMENT=w,t.EVENT_MANAGER_PLUGINS=D,t.EventManager=x,t.HAMMER_GESTURE_CONFIG=ft,t.HammerGestureConfig=dt,t.DomSanitizer=ut,t.VERSION=jt,t.ɵBROWSER_SANITIZATION_PROVIDERS=Nt,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=At,t.ɵinitDomAdapter=Pt,t.ɵBrowserDomAdapter=g,t.ɵBrowserPlatformLocation=E,t.ɵTRANSITION_ID=S,t.ɵBrowserGetTestability=N,t.ɵescapeHtml=function Ut(t){var e={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return t.replace(/[&"'<>]/g,function(t){return e[t]})},t.ɵELEMENT_PROBE_PROVIDERS=k,t.ɵDomAdapter=l,t.ɵgetDOM=s,t.ɵsetRootDomAdapter=c,t.ɵDomRendererFactory2=W,t.ɵNAMESPACE_URIS=z,t.ɵflattenStyles=K,t.ɵshimContentAttribute=G,t.ɵshimHostAttribute=Z,t.ɵDomEventsPlugin=pt,t.ɵHammerGesturesPlugin=yt,t.ɵKeyEventsPlugin=gt,t.ɵDomSharedStylesHost=j,t.ɵSharedStylesHost=B,Object.defineProperty(t,"__esModule",{value:!0})});
|