@angular/compiler
Version:
Angular - the compiler library
115 lines • 468 kB
JavaScript
/**
* @license Angular v6.1.10
* (c) 2010-2018 Google, Inc. https://angular.io/
* License: MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("@angular/compiler",["exports"],t):t((e.ng=e.ng||{},e.ng.compiler={}))}(this,function(e){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,n)};function n(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r,i=function(){return(i=Object.assign||function e(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function o(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function a(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function u(e){if(":"!=e[0])return[null,e];var t=e.indexOf(":",1);if(-1==t)throw new Error('Unsupported format "'+e+'" expecting ":namespace:name"');return[e.slice(1,t),e.slice(t+1)]}function p(e){return"ng-container"===u(e)[1]}function l(e){return"ng-content"===u(e)[1]}function c(e){return"ng-template"===u(e)[1]}function h(e){return null===e?null:u(e)[0]}function f(e,t){return e?":"+e+":"+t:t}(
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
r=e.TagContentType||(e.TagContentType={}))[r.RAW_TEXT=0]="RAW_TEXT",r[r.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",r[r.PARSABLE_DATA=2]="PARSABLE_DATA";var d={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"",zwnj:""},v="";d.ngsp=v;
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var m,y,g=function(){function t(t){var n=void 0===t?{}:t,r=n.closedByChildren,i=n.requiredParents,o=n.implicitNamespacePrefix,s=n.contentType,a=void 0===s?e.TagContentType.PARSABLE_DATA:s,u=n.closedByParent,p=void 0!==u&&u,l=n.isVoid,c=void 0!==l&&l,h=n.ignoreFirstLf,f=void 0!==h&&h,d=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(e){return d.closedByChildren[e]=!0}),this.isVoid=c,this.closedByParent=p||c,i&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(e){return d.requiredParents[e]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=a,this.ignoreFirstLf=f}return t.prototype.requireExtraParent=function(e){if(!this.requiredParents)return!1;if(!e)return!0;var t=e.toLowerCase();return!("template"===t||"ng-template"===e)&&1!=this.requiredParents[t]},t.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},t}();function _(t){return y||(m=new g,y={base:new g({isVoid:!0}),meta:new g({isVoid:!0}),area:new g({isVoid:!0}),embed:new g({isVoid:!0}),link:new g({isVoid:!0}),img:new g({isVoid:!0}),input:new g({isVoid:!0}),param:new g({isVoid:!0}),hr:new g({isVoid:!0}),br:new g({isVoid:!0}),source:new g({isVoid:!0}),track:new g({isVoid:!0}),wbr:new g({isVoid:!0}),p:new g({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new g({closedByChildren:["tbody","tfoot"]}),tbody:new g({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new g({closedByChildren:["tbody"],closedByParent:!0}),tr:new g({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new g({closedByChildren:["td","th"],closedByParent:!0}),th:new g({closedByChildren:["td","th"],closedByParent:!0}),col:new g({requiredParents:["colgroup"],isVoid:!0}),svg:new g({implicitNamespacePrefix:"svg"}),math:new g({implicitNamespacePrefix:"math"}),li:new g({closedByChildren:["li"],closedByParent:!0}),dt:new g({closedByChildren:["dt","dd"]}),dd:new g({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new g({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new g({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new g({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new g({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new g({closedByChildren:["optgroup"],closedByParent:!0}),option:new g({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new g({ignoreFirstLf:!0}),listing:new g({ignoreFirstLf:!0}),style:new g({contentType:e.TagContentType.RAW_TEXT}),script:new g({contentType:e.TagContentType.RAW_TEXT}),title:new g({contentType:e.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new g({contentType:e.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),y[t.toLowerCase()]||m}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var E,x,S=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),w=function(){function e(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return e.parse=function(t){var n,r=[],i=function(e,t){t.notSelectors.length>0&&!t.element&&0==t.classNames.length&&0==t.attrs.length&&(t.element="*"),e.push(t)},o=new e,s=o,a=!1;for(S.lastIndex=0;n=S.exec(t);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new e,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new e}}return i(r,o),r},e.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},e.prototype.hasElementSelector=function(){return!!this.element},e.prototype.setElement=function(e){void 0===e&&(e=null),this.element=e},e.prototype.getMatchingElementTemplate=function(){for(var e=this.element||"div",t=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2)n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"");return _(e).isVoid?"<"+e+t+n+"/>":"<"+e+t+n+"></"+e+">"},e.prototype.getAttrs=function(){var e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)},e.prototype.addAttribute=function(e,t){void 0===t&&(t=""),this.attrs.push(e,t&&t.toLowerCase()||"")},e.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},e.prototype.toString=function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach(function(t){return e+="."+t}),this.attrs)for(var t=0;t<this.attrs.length;t+=2){var n=this.attrs[t+1];e+="["+this.attrs[t]+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(t){return e+=":not("+t+")"}),e},e}(),C=function(){function e(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return e.createNotMatcher=function(t){var n=new e;return n.addSelectables(t,null),n},e.prototype.addSelectables=function(e,t){var n=null;e.length>1&&(n=new b(e),this._listContexts.push(n));for(var r=0;r<e.length;r++)this._addSelectable(e[r],t,n)},e.prototype._addSelectable=function(e,t,n){var r=this,i=e.element,o=e.classNames,s=e.attrs,a=new T(e,t,n);if(i&&(0===s.length&&0===o.length?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i)),o)for(var u=0;u<o.length;u++){var p=o[u];0===s.length&&u===o.length-1?this._addTerminal(r._classMap,p,a):r=this._addPartial(r._classPartialMap,p)}if(s)for(u=0;u<s.length;u+=2){var l=s[u],c=s[u+1];if(u===s.length-2){var h=r._attrValueMap,f=h.get(l);f||(f=new Map,h.set(l,f)),this._addTerminal(f,c,a)}else{var d=r._attrValuePartialMap,v=d.get(l);v||(v=new Map,d.set(l,v)),r=this._addPartial(v,c)}}},e.prototype._addTerminal=function(e,t,n){var r=e.get(t);r||e.set(t,r=[]),r.push(n)},e.prototype._addPartial=function(t,n){var r=t.get(n);return r||(r=new e,t.set(n,r)),r},e.prototype.match=function(e,t){for(var n=!1,r=e.element,i=e.classNames,o=e.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,e,t)||n,n=this._matchPartial(this._elementPartialMap,r,e,t)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,e,t)||n,n=this._matchPartial(this._classPartialMap,a,e,t)||n}if(o)for(s=0;s<o.length;s+=2){var u=o[s],p=o[s+1],l=this._attrValueMap.get(u);p&&(n=this._matchTerminal(l,"",e,t)||n),n=this._matchTerminal(l,p,e,t)||n;var c=this._attrValuePartialMap.get(u);p&&(n=this._matchPartial(c,"",e,t)||n),n=this._matchPartial(c,p,e,t)||n}return n},e.prototype._matchTerminal=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t)||[],o=e.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s=!1,a=0;a<i.length;a++)s=i[a].finalize(n,r)||s;return s},e.prototype._matchPartial=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t);return!!i&&i.match(n,r)},e}(),b=function b(e){this.selectors=e,this.alreadyMatched=!1},T=function(){function e(e,t,n){this.selector=e,this.cbContext=t,this.listContext=n,this.notSelectors=e.notSelectors}return e.prototype.finalize=function(e,t){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!C.createNotMatcher(this.notSelectors).match(e,null)),!n||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n},e}(),P=$("Inject",function(e){return{token:e}}),N=$("InjectionToken",function(e){return{_desc:e,ngInjectableDef:void 0}}),M=$("Attribute",function(e){return{attributeName:e}}),A=$("ContentChildren",function(e,t){return void 0===t&&(t={}),i({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)}),k=$("ContentChild",function(e,t){return void 0===t&&(t={}),i({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)}),I=$("ViewChildren",function(e,t){return void 0===t&&(t={}),i({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)}),R=$("ViewChild",function(e,t){return i({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)}),O=$("Directive",function(e){return void 0===e&&(e={}),e});!function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(E||(E={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(x||(x={}));var D,L,F=$("Component",function(e){return void 0===e&&(e={}),i({changeDetection:x.Default},e)}),B=$("Pipe",function(e){return i({pure:!0},e)}),V=$("Input",function(e){return{bindingPropertyName:e}}),j=$("Output",function(e){return{bindingPropertyName:e}}),U=$("HostBinding",function(e){return{hostPropertyName:e}}),q=$("HostListener",function(e,t){return{eventName:e,args:t}}),H=$("NgModule",function(e){return e}),W=$("Injectable",function(e){return void 0===e&&(e={}),e}),z={name:"custom-elements"},K={name:"no-errors-schema"},Q=$("Optional"),X=$("Self"),G=$("SkipSelf"),Y=$("Host"),J=Function;function $(e,t){var n=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t?t.apply(void 0,a(n)):{};return i({ngMetadataName:e},o)};return n.isTypeOf=function(t){return t&&t.ngMetadataName===e},n.ngMetadataName=e,n}function Z(e){var t=function n(e){var t=e.classNames&&e.classNames.length?a([8],e.classNames):[];return a([e.element&&"*"!==e.element?e.element:""],e.attrs,t)}(e),r=e.notSelectors&&e.notSelectors.length?e.notSelectors.map(function(e){return function t(e){var t=e.classNames&&e.classNames.length?a([8],e.classNames):[];return e.element?a([5,e.element],e.attrs,t):e.attrs.length?a([3],e.attrs,t):e.classNames&&e.classNames.length?a([9],e.classNames):[]}(e)}):[];return t.concat.apply(t,a(r))}function ee(e){return w.parse(e).map(Z)}!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(D||(D={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(L||(L={}));var te=Object.freeze({createInject:P,createInjectionToken:N,createAttribute:M,createContentChildren:A,createContentChild:k,createViewChildren:I,createViewChild:R,createDirective:O,get ViewEncapsulation(){return E},get ChangeDetectionStrategy(){return x},createComponent:F,createPipe:B,createInput:V,createOutput:j,createHostBinding:U,createHostListener:q,createNgModule:H,createInjectable:W,CUSTOM_ELEMENTS_SCHEMA:z,NO_ERRORS_SCHEMA:K,createOptional:Q,createSelf:X,createSkipSelf:G,createHost:Y,Type:J,get SecurityContext(){return D},get MissingTranslationStrategy(){return L},parseSelectorToR3Selector:ee}),ne=/-+([a-z0-9])/g;
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function re(e,t){return ie(e,":",t)}function ie(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function oe(e,t,n){return Array.isArray(e)?t.visitArray(e,n):function r(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===ye}(e)?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n)}function se(e){return null!==e&&void 0!==e}function ae(e){return void 0===e?null:e}var ue=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return e.map(function(e){return oe(e,n,t)})},e.prototype.visitStringMap=function(e,t){var n=this,r={};return Object.keys(e).forEach(function(i){r[i]=oe(e[i],n,t)}),r},e.prototype.visitPrimitive=function(e,t){return e},e.prototype.visitOther=function(e,t){return e},e}(),pe=function(e){if(xe(e))throw new Error("Illegal state: value cannot be a promise");return e},le=function(e,t){return xe(e)?e.then(t):t(e)},ce=function(e){return e.some(xe)?Promise.all(e):e};function he(e){throw new Error("Internal Error: "+e)}function fe(e,t){var n=Error(e);return n[de]=!0,t&&(n[ve]=t),n}var de="ngSyntaxError",ve="ngParseErrors";function me(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var ye=Object.getPrototypeOf({});function ge(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}function _e(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(_e).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ee(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function xe(e){return!!e&&"function"==typeof e.then}var Se,we,Ce,be=new(Ce=function Ce(e){this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")})("6.1.10"),Te=function(){function e(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),Pe=function(){function e(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitBoundText(this,t)},e}(),Ne=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitAttr(this,t)},e}(),Me=((Se={})[4]=4,Se[1]=1,Se[2]=2,Se[0]=0,Se[3]=3,Se),Ae=function(){function e(e,t,n,r,i,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=4===this.type}return e.fromBoundProperty=function(t){return new e(t.name,Me[t.type],t.securityContext,t.value,t.unit,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},e}(),ke=function(){function e(t,n,r,i,o){this.name=t,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=e.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return e.calcFullName=function(e,t,n){return t?t+":"+e:n?"@"+e+"."+n:e},e.fromParsedEvent=function(t){return new e(t.name,0===t.type?t.targetOrPhase:null,1===t.type?t.targetOrPhase:null,t.handler,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitEvent(this,t)},e}(),Ie=function(){function e(e,t,n,r){this.name=e,this.value=t,this.originalValue=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitReference(this,t)},e}(),Re=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.fromParsedVariable=function(t){return new e(t.name,t.value,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitVariable(this,t)},e}(),Oe=function(){function e(e,t,n,r,i,o,s,a,u,p,l,c,h){this.name=e,this.attrs=t,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=p,this.ngContentIndex=l,this.sourceSpan=c,this.endSourceSpan=h}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),De=function(){function e(e,t,n,r,i,o,s,a,u,p,l){this.attrs=e,this.outputs=t,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=p,this.sourceSpan=l}return e.prototype.visit=function(e,t){return e.visitEmbeddedTemplate(this,t)},e}(),Le=function(){function e(e,t,n,r){this.directiveName=e,this.templateName=t,this.value=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitDirectiveProperty(this,t)},e}(),Fe=function(){function e(e,t,n,r,i,o){this.directive=e,this.inputs=t,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return e.prototype.visit=function(e,t){return e.visitDirective(this,t)},e}(),Be=function(){function e(e,t,n,r,i,o,s,a){this.token=e,this.multiProvider=t,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s,this.isModule=a}return e.prototype.visit=function(e,t){return null},e}();
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/(we=e.ProviderAstType||(e.ProviderAstType={}))[we.PublicService=0]="PublicService",we[we.PrivateService=1]="PrivateService",we[we.Component=2]="Component",we[we.Directive=3]="Directive",we[we.Builtin=4]="Builtin";var Ve=function(){function e(e,t,n){this.index=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitNgContent(this,t)},e}(),je=function(){function e(){}return e.prototype.visitNgContent=function(e,t){},e.prototype.visitEmbeddedTemplate=function(e,t){},e.prototype.visitElement=function(e,t){},e.prototype.visitReference=function(e,t){},e.prototype.visitVariable=function(e,t){},e.prototype.visitEvent=function(e,t){},e.prototype.visitElementProperty=function(e,t){},e.prototype.visitAttr=function(e,t){},e.prototype.visitBoundText=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitDirective=function(e,t){},e.prototype.visitDirectiveProperty=function(e,t){},e}(),Ue=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.visitEmbeddedTemplate=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.references),t(e.variables),t(e.directives),t(e.providers),t(e.children)})},t.prototype.visitElement=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.inputs),t(e.outputs),t(e.references),t(e.directives),t(e.providers),t(e.children)})},t.prototype.visitDirective=function(e,t){return this.visitChildren(t,function(t){t(e.inputs),t(e.hostProperties),t(e.hostEvents)})},t.prototype.visitChildren=function(e,t){var n=[],r=this;return t(function i(t){t&&t.length&&n.push(qe(r,t,e))}),[].concat.apply([],n)},t}(je);function qe(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),r}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var He=function He(e){var t=void 0===e?{}:e,n=t.defaultEncapsulation,r=t.useJit,i=void 0===r||r,o=t.jitDevMode,s=void 0!==o&&o,a=t.missingTranslation,u=void 0===a?null:a,p=t.preserveWhitespaces,l=t.strictInjectionParameters;this.defaultEncapsulation=void 0===n?E.Emulated:n,this.useJit=!!i,this.jitDevMode=!!s,this.missingTranslation=u,this.preserveWhitespaces=We(ae(p)),this.strictInjectionParameters=!0===l};function We(e,t){return void 0===t&&(t=!1),null===e?t:e}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var ze=function(){function e(e,t,n){this.filePath=e,this.name=t,this.members=n}return e.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},e}(),Ke=function(){function e(){this.cache=new Map}return e.prototype.get=function(e,t,n){var r='"'+e+'".'+t+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new ze(e,t,n),this.cache.set(r,i)),i},e}(),Qe=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function Xe(e){return e.replace(/\W/g,"_")}var Ge,Ye=0;function Je(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof ze)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=_e(t);return n.indexOf("(")>=0?(n="anonymous_"+Ye++,t.__anonymousType=n):n=Xe(n),n}function $e(e){var t=e.reference;return t instanceof ze?t.filePath:"./"+_e(t)}function Ze(e,t){return"View_"+Je({reference:e})+"_"+t}function et(e){return"RenderType_"+Je({reference:e})}function tt(e){return"HostView_"+Je({reference:e})}function nt(e){return Je({reference:e})+"NgFactory"}function rt(e){return null!=e.value?Xe(e.value):Je(e.identifier)}function it(e){return null!=e.identifier?e.identifier.reference:e.value}(Ge=e.CompileSummaryKind||(e.CompileSummaryKind={}))[Ge.Pipe=0]="Pipe",Ge[Ge.Directive=1]="Directive",Ge[Ge.NgModule=2]="NgModule",Ge[Ge.Injectable=3]="Injectable";var ot=function ot(e){var t=void 0===e?{}:e,n=t.styles,r=t.styleUrls;this.moduleUrl=t.moduleUrl||null,this.styles=ht(n),this.styleUrls=ht(r)},st=function(){function e(e){var t=e.template,n=e.templateUrl,r=e.htmlAst,i=e.styles,o=e.styleUrls,s=e.externalStylesheets,a=e.animations,u=e.ngContentSelectors,p=e.interpolation,l=e.isInline,c=e.preserveWhitespaces;if(this.encapsulation=e.encapsulation,this.template=t,this.templateUrl=n,this.htmlAst=r,this.styles=ht(i),this.styleUrls=ht(o),this.externalStylesheets=ht(s),this.animations=a?dt(a):[],this.ngContentSelectors=u||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p,this.isInline=l,this.preserveWhitespaces=c}return e.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},e}(),at=function(){function t(e){var t=e.type,n=e.isComponent,r=e.selector,i=e.exportAs,o=e.changeDetection,s=e.inputs,a=e.outputs,u=e.hostListeners,p=e.hostProperties,l=e.hostAttributes,c=e.providers,h=e.viewProviders,f=e.queries,d=e.guards,v=e.viewQueries,m=e.entryComponents,y=e.template,g=e.componentViewType,_=e.rendererType,E=e.componentFactory;this.isHost=!!e.isHost,this.type=t,this.isComponent=n,this.selector=r,this.exportAs=i,this.changeDetection=o,this.inputs=s,this.outputs=a,this.hostListeners=u,this.hostProperties=p,this.hostAttributes=l,this.providers=ht(c),this.viewProviders=ht(h),this.queries=ht(f),this.guards=d,this.viewQueries=ht(v),this.entryComponents=ht(m),this.template=y,this.componentViewType=g,this.rendererType=_,this.componentFactory=E}return t.create=function(e){var n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,p=e.outputs,l=e.host,c=e.providers,h=e.viewProviders,f=e.queries,d=e.guards,v=e.viewQueries,m=e.entryComponents,y=e.template,g=e.componentViewType,_=e.rendererType,E=e.componentFactory,x={},S={},w={};null!=l&&Object.keys(l).forEach(function(e){var t=l[e],n=e.match(Qe);null===n?w[e]=t:null!=n[1]?S[n[1]]=t:null!=n[2]&&(x[n[2]]=t)});var C={};null!=u&&u.forEach(function(e){var t=re(e,[e,e]);C[t[0]]=t[1]});var b={};return null!=p&&p.forEach(function(e){var t=re(e,[e,e]);b[t[0]]=t[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:C,outputs:b,hostListeners:x,hostProperties:S,hostAttributes:w,providers:c,viewProviders:h,queries:f,guards:d,viewQueries:v,entryComponents:m,template:y,componentViewType:g,rendererType:_,componentFactory:E})},t.prototype.toSummary=function(){return{summaryKind:e.CompileSummaryKind.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),ut=function(){function t(e){var t=e.name,n=e.pure;this.type=e.type,this.name=t,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:e.CompileSummaryKind.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),pt=function pt(){},lt=function(){function t(e){var t=e.providers,n=e.declaredDirectives,r=e.exportedDirectives,i=e.declaredPipes,o=e.exportedPipes,s=e.entryComponents,a=e.bootstrapComponents,u=e.importedModules,p=e.exportedModules,l=e.schemas,c=e.transitiveModule,h=e.id;this.type=e.type||null,this.declaredDirectives=ht(n),this.exportedDirectives=ht(r),this.declaredPipes=ht(i),this.exportedPipes=ht(o),this.providers=ht(t),this.entryComponents=ht(s),this.bootstrapComponents=ht(a),this.importedModules=ht(u),this.exportedModules=ht(p),this.schemas=ht(l),this.id=h||null,this.transitiveModule=c||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:e.CompileSummaryKind.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),ct=function(){function e(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return e.prototype.addProvider=function(e,t){this.providers.push({provider:e,module:t})},e.prototype.addDirective=function(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))},e.prototype.addExportedDirective=function(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))},e.prototype.addPipe=function(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))},e.prototype.addExportedPipe=function(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))},e.prototype.addModule=function(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))},e.prototype.addEntryComponent=function(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))},e}();function ht(e){return e||[]}var ft=function ft(e,t){var n=t.useClass,r=t.useValue,i=t.useExisting,o=t.useFactory,s=t.deps,a=t.multi;this.token=e,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a};function dt(e){return e.reduce(function(e,t){var n=Array.isArray(t)?dt(t):t;return e.concat(n)},[])}function vt(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function mt(e,t,n){var r;return r=n.isInline?t.type.reference instanceof ze?t.type.reference.filePath+"."+t.type.reference.name+".html":Je(e)+"/"+Je(t.type)+".html":n.templateUrl,t.type.reference instanceof ze?r:vt(r)}function yt(e,t){var n=e.moduleUrl.split(/\/\\/g);return vt("css/"+t+n[n.length-1]+".ngstyle.js")}function gt(e){return vt(Je(e.type)+"/module.ngfactory.js")}function _t(e,t){return vt(Je(e)+"/"+Je(t.type)+".ngfactory.js")}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var Et=function(){function e(e,t){void 0===t&&(t=-1),this.path=e,this.position=t}return Object.defineProperty(e.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),e.prototype.parentOf=function(e){return e&&this.path[this.path.indexOf(e)-1]},e.prototype.childOf=function(e){return this.path[this.path.indexOf(e)+1]},e.prototype.first=function(e){for(var t=this.path.length-1;t>=0;t--){var n=this.path[t];if(n instanceof e)return n}},e.prototype.push=function(e){this.path.push(e)},e.prototype.pop=function(){return this.path.pop()},e}(),xt=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),St=function(){function e(e,t,n,r,i){this.switchValue=e,this.type=t,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return e.prototype.visit=function(e,t){return e.visitExpansion(this,t)},e}(),wt=function(){function e(e,t,n,r,i){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return e.prototype.visit=function(e,t){return e.visitExpansionCase(this,t)},e}(),Ct=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.prototype.visit=function(e,t){return e.visitAttribute(this,t)},e}(),bt=function(){function e(e,t,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=e,this.attrs=t,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),Tt=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitComment(this,t)},e}();
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function Pt(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),r}var Nt=function(){function e(){}return e.prototype.visitElement=function(e,t){this.visitChildren(t,function(t){t(e.attrs),t(e.children)})},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){return this.visitChildren(t,function(t){t(e.cases)})},e.prototype.visitExpansionCase=function(e,t){},e.prototype.visitChildren=function(e,t){var n=[],r=this;return t(function i(t){t&&n.push(Pt(r,t,e))}),[].concat.apply([],n)},e}();
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Mt(e,t){if(null!=t){if(!Array.isArray(t))throw new Error("Expected '"+e+"' to be an array of strings.");for(var n=0;n<t.length;n+=1)if("string"!=typeof t[n])throw new Error("Expected '"+e+"' to be an array of strings.")}}var At=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function kt(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '"+e+"' to be an array, [start, end].");if(null!=t){var n=t[0],r=t[1];At.forEach(function(e){if(e.test(n)||e.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var It=function(){function e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(kt("interpolation",t),new e(t[0],t[1])):Rt},e}(),Rt=new It("{{","}}"),Ot=function Ot(e,t){this.style=e,this.styleUrls=t};function Dt(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(Vt);return null===t||"package"==t[1]||"asset"==t[1]}var Lt,Ft=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Bt=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,Vt=/^([^:/?#]+):/,jt="select",Ut="link",qt="rel",Ht="href",Wt="stylesheet",zt="style",Kt="script",Qt="ngNonBindable",Xt="ngProjectAs";function Gt(e){var t=null,n=null,r=null,i=!1,o="";e.attrs.forEach(function(e){var s=e.name.toLowerCase();s==jt?t=e.value:s==Ht?n=e.value:s==qt?r=e.value:e.name==Qt?i=!0:e.name==Xt&&e.value.length>0&&(o=e.value)}),t=function s(e){return null===e||0===e.length?"*":e}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/(t);var a=e.name.toLowerCase(),u=Lt.OTHER;return l(a)?u=Lt.NG_CONTENT:a==zt?u=Lt.STYLE:a==Kt?u=Lt.SCRIPT:a==Ut&&r==Wt&&(u=Lt.STYLESHEET),new Yt(u,t,n,i,o)}!function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(Lt||(Lt={}));var Yt=function Yt(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i},Jt=function(){function e(e,t,n,r){this._resourceLoader=e,this._urlResolver=t,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return e.prototype.clearCache=function(){this._resourceLoaderCache.clear()},e.prototype.clearCacheFor=function(e){var t=this;if(e.isComponent){var n=e.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(e){t._resourceLoaderCache.delete(e.moduleUrl)})}},e.prototype._fetch=function(e){var t=this._resourceLoaderCache.get(e);return t||(t=this._resourceLoader.get(e),this._resourceLoaderCache.set(e,t)),t},e.prototype.normalizeTemplate=function(e){var t=this;if(se(e.template)){if(se(e.templateUrl))throw fe("'"+_e(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw fe("The template specified for component "+_e(e.componentType)+" is not a string")}else{if(!se(e.templateUrl))throw fe("No template specified for component "+_e(e.componentType));if("string"!=typeof e.templateUrl)throw fe("The templateUrl specified for component "+_e(e.componentType)+" is not a string")}if(se(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw fe("The preserveWhitespaces option for component "+_e(e.componentType)+" must be a boolean");return le(this._preParseTemplate(e),function(n){return t._normalizeTemplateMetadata(e,n)})},e.prototype._preParseTemplate=function(e){var t,n,r=this;return null!=e.template?(t=e.template,n=e.moduleUrl):(n=this._urlResolver.resolve(e.moduleUrl,e.templateUrl),t=this._fetch(n)),le(t,function(t){return r._preparseLoadedTemplate(e,t,n)})},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=It.fromArray(e.interpolation),o=this._htmlParser.parse(t,mt({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0)throw fe("Template parse errors:\n"+o.errors.join("\n"));var s=this._normalizeStylesheet(new ot({styles:e.styles,moduleUrl:e.moduleUrl})),a=new $t;Pt(a,o.rootNodes);var u=this._normalizeStylesheet(new ot({styles:a.styles,styleUrls:a.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:o,styles:s.styles.concat(u.styles),inlineStyleUrls:s.styleUrls.concat(u.styleUrls),styleUrls:this._normalizeStylesheet(new ot({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:a.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return le(this._loadMissingExternalStylesheets(t.styleUrls.concat(t.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(e,t,r)})},e.prototype._normalizeLoadedTemplateMetadata=function(e,t,n){var r=this,i=a(t.styles);this._inlineStyles(t.inlineStyleUrls,n,i);var o=t.styleUrls,s=o.map(function(e){var t=n.get(e),i=a(t.styles);return r._inlineStyles(t.styleUrls,n,i),new ot({moduleUrl:e,styles:i})}),u=e.encapsulation;return null==u&&(u=this._config.defaultEncapsulation),u===E.Emulated&&0===i.length&&0===o.length&&(u=E.None),new st({encapsulation:u,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:i,styleUrls:o,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:s,preserveWhitespaces:We(e.preserveWhitespaces,this._config.preserveWhitespaces)})},e.prototype._inlineStyles=function(e,t,n){var r=this;e.forEach(function(e){var i=t.get(e);i.styles.forEach(function(e){return n.push(e)}),r._inlineStyles(i.styleUrls,t,n)})},e.prototype._loadMissingExternalStylesheets=function(e,t){var n=this;return void 0===t&&(t=new Map),le(ce(e.filter(function(e){return!t.has(e)}).map(function(e){return le(n._fetch(e),function(r){var i=n._normalizeStylesheet(new ot({styles:[r],moduleUrl:e}));return t.set(e,i),n._loadMissingExternalStylesheets(i.styleUrls,t)})})),function(e){return t})},e.prototype._normalizeStylesheet=function(e){var t=this,n=e.moduleUrl,r=e.styleUrls.filter(Dt).map(function(e){return t._urlResolver.resolve(n,e)}),i=e.styles.map(function(e){var i=function o(e,t,n){var r=[],i=n.replace(Bt,"").replace(Ft,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return Dt(o)?(r.push(e.resolve(t,o)),""):n[0]});return new Ot(i,r)}(t._urlResolver,n,e);return r.push.apply(r,a(i.styleUrls)),i.style});return new ot({styles:i,styleUrls:r,moduleUrl:n})},e}(),$t=function(){function e(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return e.prototype.visitElement=function(e,t){var n=Gt(e);switch(n.type){case Lt.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case Lt.STYLE:var r="";e.children.forEach(function(e){e instanceof xt&&(r+=e.value)}),this.styles.push(r);break;case Lt.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,Pt(this,e.children),n.nonBindable&&this.ngNonBindableStackCount--,null},e.prototype.visitExpansion=function(e,t){Pt(this,e.cases)},e.prototype.visitExpansionCase=function(e,t){Pt(this,e.expression)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return null},e.prototype.visitText=function(e,t){return null},e}(),Zt=[R,I,k,A],en=function(){function e(e){this._reflector=e}return e.prototype.isDirective=function(e){var t=this._reflector.annotations(Ee(e));return t&&t.some(tn)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(Ee(e));if(n){var r=nn(n,tn);if(r){var i=this._reflector.propMetadata(e),o=this._reflector.guards(e);return this._mergeWithPropertyMetadata(r,i,o,e)}}if(t)throw new Error("No Directive annotation found on "+_e(e));return null},e.prototype._mergeWithPropertyMetadata=function(e,t,n,r){var i=[],o=[],s={},a={};return Object.keys(t).forEach(function(e){var n=nn(t[e],function(e){return V.isTypeOf(e)});n&&i.push(n.bindingPropertyName?e+": "+n.bindingPropertyName:e);var r=nn(t[e],function(e){return j.isTypeOf(e)});r&&o.push(r.bindingPropertyName?e+": "+r.bindingPropertyName:e),t[e].filter(function(e){return U.isTypeOf(e)}).forEach(function(t){if(t.hostPropertyName){var n=t.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+t.hostPropertyName+"]"]=e}else s["["+e+"]"]=e}),t[e].filter(function(e){return q.isTypeOf(e)}).forEach(function(t){s["("+t.eventName+")"]=e+"("+(t.args||[]).join(",")+")"});var u=nn(t[e],function(e){return Zt.some(function(t){return t.isTypeOf(e)})});u&&(a[e]=u)}),this._merge(e,i,o,s,a,n,r)},e.prototype._extractPublicName=function(e){return re(e,[null,e])[1].trim()},e.prototype._dedupeBindings=function(e){for(var t=new Set,n=new Set,r=[],i=e.length-1;i>=0;i--){var o=e[i],s=this._extractPublicName(o);n.add(s),t.has(s)||(t.add(s),r.push(o))}return r.reverse()},e.prototype._merge=function(e,t,n,r,o,s,a){var u=this._dedupeBindings(e.inputs?e.inputs.concat(t):t),p=this._dedupeBindings(e.outputs?e.outputs.concat(n):n),l=e.host?i({},e.host,r):r,c=e.queries?i({},e.queries,o):o;return F.isTypeOf(e)?F({selector:e.selector,inputs:u,outputs:p,host:l,exportAs:e.exportAs,moduleId:e.moduleId,queries:c,changeDetection:e.changeDetection,providers:e.providers,viewProviders:e.viewProviders,entryComponents:e.entryComponents,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,encapsulation:e.encapsulation,animations:e.animations,interpolation:e.interpolation,preserveWhitespaces:e.preserveWhitespaces}):O({selector:e.selector,inputs:u,outputs:p,host:l,exportAs:e.exportAs,queries:c,providers:e.providers,guards:s})},e}();function tn(e){return O.isTypeOf(e)||F.isTypeOf(e)}function nn(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var rn=0,on=9,sn=10,an=11,un=12,pn=13,ln=32,cn=34,hn=36,fn=39,dn=43,vn=45,mn=47,yn=59,gn=61,_n=62,En=48,xn=57,Sn=65,wn=70,Cn=90,bn=95,Tn=97,Pn=102,Nn=110,Mn=114,An=116,kn=118,In=122,Rn=123,On=160,Dn=96;function Ln(e){return e>=on&&e<=ln||e==On}function Fn(e){return En<=e&&e<=xn}function Bn(e){return e>=Tn&&e<=In||e>=Sn&&e<=Cn}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
!function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.Keyword=2]="Keyword",e[e.String=3]="String",e[e.Operator=4]="Operator",e[e.Number=5]="Number",e[e.Error=6]="Error"}(e.TokenType||(e.TokenType={}));var Vn,jn=["var","let","as","null","undefined","true","false","if","else","this"],Un=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new zn(e),n=[],r=t.scanToken();null!=r;)n.push(r),r=t.scanToken();return n},e}();function qn(t,n){return new Vn(t,e.TokenType.Character,n,String.fromCharCode(n))}function Hn(t,n){return new Vn(t,e.TokenType.Operator,0,n)}var Wn=new(Vn=function(){function t(e,t,n,r){this.index=e,this.type=t,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==e.TokenType.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==e.TokenType.Number},t.prototype.isString=function(){return this.type==e.TokenType.String},t.prototype.isOperator=function(t){return this.type==e.TokenType.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==e.TokenType.Identifier},t.prototype.isKeyword=function(){return this.type==e.TokenType.Keyword},t.prototype.isKeywordLet=function(){return this.type==e.TokenType.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==e.TokenType.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==e.TokenType.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==e.TokenType.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==e.TokenType.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==e.TokenType.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==e.TokenType.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==e.TokenType.Error},t.prototype.toNumber=function(){return this.type==e.TokenType.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case e.TokenType.Character:case e.TokenType.Identifier:case e.TokenType.Keyword:case e.TokenType.Operator:case e.TokenType.String:case e.TokenType.Error:return this.strValue;case e.TokenType.Number:return this.numValue.toString();default:return null}},t}())(-1,e.TokenType.Character,0,""),zn=function(){function t(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?rn:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var e=this.input,t=this.length,n=this.peek,r=this.index;n<=ln;){if(++r>=t){n=rn;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(Kn(n))return this.scanIdentifier();if(Fn(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),Fn(this.peek)?th