webhook-action/node_modules/prettier/parser-angular.js

651 lines
568 KiB
JavaScript
Raw Normal View History

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.angular={}))}(this,(function(e){"use strict";function t(e,n){return!(n=n||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?t(e.declaration.decorators[0]):!n.ignoreDecorators&&e.decorators&&e.decorators.length>0?t(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null}function n(e){const t=e.nodes&&(r=e.nodes)[r.length-1];var r;if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;const i=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(i,n(e.typeAnnotation)):e.loc&&!i?e.loc.end:i}var r={locStart:t,locEnd:n,composeLoc:function(e,r=e){const i="number"==typeof r?r:-1,s=t(e),o=-1!==i?s+i:n(r),a=e.loc.start;return{start:s,end:o,range:[s,o],loc:{start:a,end:-1!==i?{line:a.line,column:a.column+i}:r.loc.end}}}};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e,t){return e(t={exports:{}},t.exports),t.exports}var o=s((function(e,t){var n=function(){function e(e){this.string=e;for(var t=[0],n=0;n<e.length;)switch(e[n]){case"\n":n+="\n".length,t.push(n);break;case"\r":"\n"===e[n+="\r".length]&&(n+="\n".length),t.push(n);break;default:n++}this.offsets=t}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length?null:n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=n}));i(o);var a=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.Context=class{constructor(e){this.text=e,this.locator=new n(this.text)}};class n{constructor(e){this._lineAndColumn=new o.default(e)}locationForIndex(e){const{line:t,column:n}=this._lineAndColumn.locationForIndex(e);return{line:t+1,column:n}}}}));i(a);a.Context;var u="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p=function(e,t){return(p=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,t)};function l(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c,h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function f(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 d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(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 m(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 y(e){return"ng-container"===m(e)[1]}function g(e){return"ng-content"===m(e)[1]}function _(e){return"ng-template"===m(e)[1]}function E(e){return null===e?null:m(e)[0]}function x(e,t){return e?":"+e+":"+t:t}!function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(c||(c={}));var S={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:""};S.ngsp="";
/**
* @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 w,C,b=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.closedByChildren,i=n.implicitNamespacePrefix,s=n.contentType,o=void 0===s?c.PARSABLE_DATA:s,a=n.closedByParent,u=void 0!==a&&a,p=n.isVoid,l=void 0!==p&&p,h=n.ignoreFirstLf,f=void 0!==h&&h;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach((function(e){return t.closedByChildren[e]=!0})),this.isVoid=l,this.closedByParent=u||l,this.implicitNamespacePrefix=i||null,this.contentType=o,this.ignoreFirstLf=f}return e.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},e}();function T(e){return C||(w=new b,C={base:new b({isVoid:!0}),meta:new b({isVoid:!0}),area:new b({isVoid:!0}),embed:new b({isVoid:!0}),link:new b({isVoid:!0}),img:new b({isVoid:!0}),input:new b({isVoid:!0}),param:new b({isVoid:!0}),hr:new b({isVoid:!0}),br:new b({isVoid:!0}),source:new b({isVoid:!0}),track:new b({isVoid:!0}),wbr:new b({isVoid:!0}),p:new b({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 b({closedByChildren:["tbody","tfoot"]}),tbody:new b({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new b({closedByChildren:["tbody"],closedByParent:!0}),tr:new b({closedByChildren:["tr"],closedByParent:!0}),td:new b({closedByChildren:["td","th"],closedByParent:!0}),th:new b({closedByChildren:["td","th"],closedByParent:!0}),col:new b({isVoid:!0}),svg:new b({implicitNamespacePrefix:"svg"}),math:new b({implicitNamespacePrefix:"math"}),li:new b({closedByChildren:["li"],closedByParent:!0}),dt:new b({closedByChildren:["dt","dd"]}),dd:new b({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new b({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new b({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new b({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new b({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new b({closedByChildren:["optgroup"],closedByParent:!0}),option:new b({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new b({ignoreFirstLf:!0}),listing:new b({ignoreFirstLf:!0}),style:new b({contentType:c.RAW_TEXT}),script:new b({contentType:c.RAW_TEXT}),title:new b({contentType:c.ESCAPABLE_RAW_TEXT}),textarea:new b({contentType:c.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),C[e.toLowerCase()]||w}
/**
* @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 P,N,A=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),M=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)},s=new e,o=s,a=!1;for(A.lastIndex=0;n=A.exec(t);){if(n[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new e,s.notSelectors.push(o)}var u=n[2];if(u){var p=n[3];"#"===p?o.addAttribute("id",u.substr(1)):"."===p?o.addClassName(u.substr(1)):o.setElement(u)}var l=n[4];if(l&&o.addAttribute(l,n[6]),n[7]&&(a=!1,o=s),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,s),s=o=new e}}return i(r,s),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 T(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],r=this.attrs[t+1];e+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach((function(t){return e+=":not("+t+")"})),e},e}(),I=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 k(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,s=e.classNames,o=e.attrs,a=new R(e,t,n);i&&((p=0===o.length&&0===s.length)?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i));if(s)for(var u=0;u<s.length;u++){var p=0===o.length&&u===s.length-1,l=s[u];p?this._addTerminal(r._classMap,l,a):r=this._addPartial(r._classPartialMap,l)}if(o)for(u=0;u<o.length;u+=2){p=u===o.length-2;var c=o[u],h=o[u+1];if(p){var f=r._attrValueMap,d=f.get(c);d||(d=new Map,f.set(c,d)),this._addTerminal(d,h,a)}else{var v=r._attrValuePartialMap,m=v.get(c);m||(m=new Map,v.set(c,m)),r=this._addPartial(m,h)}}},e.prototype._addTerminal=function(e,t,n){var r=e.get(t);r||(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,s=e.attrs,o=0;o<this._listContexts.length;o++)this._listContexts[o].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,e,t)||n,n=this._matchPartial(this._elementPartialMap,r,e,t)||n,i)for(o=0;o<i.length;o++){var a=i[o];n=this._matchTerminal(this._classMap,a,e,t)||n,n=this._matchPartial(this._classPartialMap,a,e,t)||n}if(s)for(o=0;o<s.length;o+=2){var u=s[o],p=s[o+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"!=
/**
* @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.Const=0]="Const"}(ue||(ue={}));var le,ce=function(){function e(e){void 0===e&&(e=null),this.modifiers=e,e||(this.modifiers=[])}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}();!function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None"}(le||(le={}));var he,fe=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.name=t,r}return l(t,e),t.prototype.visitType=function(e,t){return e.visitBuiltinType(this,t)},t}(ce),de=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=e.call(this,n)||this;return i.value=t,i.typeParams=r,i}return l(t,e),t.prototype.visitType=function(e,t){return e.visitExpressionType(this,t)},t}(ce),ve=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.of=t,r}return l(t,e),t.prototype.visitType=function(e,t){return e.visitArrayType(this,t)},t}(ce),me=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.valueType=t||null,r}return l(t,e),t.prototype.visitType=function(e,t){return e.visitMapType(this,t)},t}(ce),ye=new fe(le.Dynamic),ge=new fe(le.Inferred),_e=new fe(le.Bool),Ee=(new fe(le.Int),new fe(le.Number)),xe=new fe(le.String),Se=(new fe(le.Function),new fe(le.None));function we(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}function Ce(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(!e[r].isEquivalent(t[r]))return!1;return!0}!function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseAnd=11]="BitwiseAnd",e[e.Lower=12]="Lower",e[e.LowerEquals=13]="LowerEquals",e[e.Bigger=14]="Bigger",e[e.BiggerEquals=15]="BiggerEquals"}(he||(he={}));var be,Te=function(){function e(e,t){this.type=e||null,this.sourceSpan=t||null}return e.prototype.prop=function(e,t){return new Ze(this,e,null,t)},e.prototype.key=function(e,t,n){return new et(this,e,t,n)},e.prototype.callMethod=function(e,t,n){return new Oe(this,e,t,null,n)},e.prototype.callFn=function(e,t){return new Fe(this,e,null,t)},e.prototype.instantiate=function(e,t,n){return new Le(this,e,t,n)},e.prototype.conditional=function(e,t,n){return void 0===t&&(t=null),new Ke(this,e,t,null,n)},e.prototype.equals=function(e,t){return new Je(he.Equals,this,e,null,t)},e.prototype.notEquals=function(e,t){return new Je(he.NotEquals,this,e,null,t)},e.prototype.identical=function(e,t){return new Je(he.Identical,this,e,null,t)},e.prototype.notIdentical=function(e,t){return new Je(he.NotIdentical,this,e,null,t)},e.prototype.minus=function(e,t){return new Je(he.Minus,this,e,null,t)},e.prototype.plus=function(e,t){return new Je(he.Plus,this,e,null,t)},e.prototype.divide=function(e,t){return new Je(he.Divide,this,e,null,t)},e.prototype.multiply=function(e,t){return new Je(he.Multiply,this,e,null,t)},e.prototype.modulo=function(e,t){return new Je(he.Modulo,this,e,null,t)},e.prototype.and=function(e,t){return new Je(he.And,this,e,null,t)},e.prototype.bitwiseAnd=function(e,t,n){return void 0===n&&(n=!0),new Je(he.BitwiseAnd,this,e,null,t,n)},e.prototype.or=function(e,t){return new Je(he.Or,this,e,null,t)},e.prototype.lower=function(e,t){return new Je(he.Lower,this,e,null,t)},e.prototype.lowerEquals=function(e,t){return new Je(he.LowerEquals,this,e,null,t)},e.prototype.bigger=function(e,t){return new Je(he.Bigger,this,e,null,t)},e.prototype.biggerEquals=function(e,t){return new Je(he.BiggerEquals,this,e,null,t)},e.prototype.isBlank=function(e){return this.equals(ot,e)},e.prototype.cast=function(e,t){return new Xe(this,e,t)},e.prototype.toStmt=function(){return new lt(this,null)},e}();!function(e){e[e.This=0]="This",e[e.Super=1]="Super",e[e.CatchError=2]="CatchError",e[e.CatchStack=3]="CatchStack"}(be||(be={}));var Pe,Ne=function(e){func
/**
* @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
*/(this.tags)},t}(at),Et=function(e){function t(t,n,r){var i=e.call(this,null,r)||this;return i.bodyStmts=t,i.catchStmts=n,i}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&Ce(this.bodyStmts,e.bodyStmts)&&Ce(this.catchStmts,e.catchStmts)},t.prototype.visitStatement=function(e,t){return e.visitTryCatchStmt(this,t)},t}(at),xt=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.error=t,r}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof Et&&this.error.isEquivalent(e.error)},t.prototype.visitStatement=function(e,t){return e.visitThrowStmt(this,t)},t}(at),St=function(){function e(){}return e.prototype.transformExpr=function(e,t){return e},e.prototype.transformStmt=function(e,t){return e},e.prototype.visitReadVarExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitWrappedNodeExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitTypeofExpr=function(e,t){return this.transformExpr(new Ae(e.expr.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteVarExpr=function(e,t){return this.transformExpr(new Ie(e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteKeyExpr=function(e,t){return this.transformExpr(new ke(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWritePropExpr=function(e,t){return this.transformExpr(new Re(e.receiver.visitExpression(this,t),e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitInvokeMethodExpr=function(e,t){var n=e.builtin||e.name;return this.transformExpr(new Oe(e.receiver.visitExpression(this,t),n,this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitInvokeFunctionExpr=function(e,t){return this.transformExpr(new Fe(e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitInstantiateExpr=function(e,t){return this.transformExpr(new Le(e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitLocalizedString=function(e,t){return this.transformExpr(new Be(e.metaBlock,e.messageParts,e.placeHolderNames,this.visitAllExpressions(e.expressions,t),e.sourceSpan),t)},e.prototype.visitExternalExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitConditionalExpr=function(e,t){return this.transformExpr(new Ke(e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitNotExpr=function(e,t){return this.transformExpr(new Qe(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitAssertNotNullExpr=function(e,t){return this.transformExpr(new Ge(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCastExpr=function(e,t){return this.transformExpr(new Xe(e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitFunctionExpr=function(e,t){return this.transformExpr(new Ye(e.params,this.visitAllStatements(e.statements,t),e.type,e.sourceSpan),t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return this.transformExpr(new Je(e.operator,e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitReadPropExpr=function(e,t){return this.transformExpr(new Ze(e.receiver.visitExpression(this,t),e.name,e.type,e.sourceSpan),t)},e.prototype.visitReadKeyExpr=function(e,t){return this.transformExpr(new et(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralArrayExpr=function(e,t){return this.transformExpr(new tt(this.visitAllExpressions(e.entries,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this,r=e.entries.map((function(e){return new nt(e.key,e.value.visitExpression(n,t),e.quoted)})),i=new me(e.valueType,null);return this.transformExpr(new rt(r,i,e.sourceSpan),t)},e.prototype.visitCommaExp
/**
* @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 dn=Mt("<unknown>"),vn={},mn=function(e){function t(t){var n=e.call(this,t.type)||this;return n.resolved=t,n.original=t,n}return l(t,e),t.prototype.visitExpression=function(e,t){return t===vn?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)},t.prototype.isEquivalent=function(e){return e instanceof t&&this.resolved.isEquivalent(e.resolved)},t.prototype.isConstant=function(){return!0},t.prototype.fixup=function(e){this.resolved=e,this.shared=!0},t}(Te),yn=function(){function e(){this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.injectorDefinitions=new Map,this.directiveDefinitions=new Map,this.componentDefinitions=new Map,this.pipeDefinitions=new Map,this.nextNameIndex=0}return e.prototype.getConstLiteral=function(e,t){if(e instanceof De||e instanceof mn)return e;var n=this.keyOf(e),r=this.literals.get(n),i=!1;if(r||(r=new mn(e),this.literals.set(n,r),i=!0),!i&&!r.shared||i&&t){var s=this.freshName();this.statements.push(Mt(s).set(e).toDeclStmt(ge,[qe.Final])),r.fixup(Mt(s))}return r},e.prototype.getDefinition=function(e,t,n,r){void 0===r&&(r=!1);var i=this.definitionsOf(t),s=i.get(e),o=!1;if(!s){var a=this.propertyNameOf(t);s=new mn(n.importExpr(e).prop(a)),i.set(e,s),o=!0}if(!o&&!s.shared||o&&r){var u=this.freshName();this.statements.push(Mt(u).set(s.resolved).toDeclStmt(ge,[qe.Final])),s.fixup(Mt(u))}return s},e.prototype.getLiteralFactory=function(e){if(e instanceof tt){var t=e.entries.map((function(e){return e.isConstant()?e:dn})),n=this.keyOf(Ft(t));return this._getLiteralFactory(n,e.entries,(function(e){return Ft(e)}))}var r=Lt(e.entries.map((function(e){return{key:e.key,value:e.value.isConstant()?e.value:dn,quoted:e.quoted}})));n=this.keyOf(r);return this._getLiteralFactory(n,e.entries.map((function(e){return e.value})),(function(t){return Lt(t.map((function(t,n){return{key:e.entries[n].key,value:t,quoted:e.entries[n].quoted}})))}))},e.prototype._getLiteralFactory=function(e,t,n){var r=this,i=this.literalFactories.get(e),s=t.filter((function(e){return!e.isConstant()}));if(!i){var o=t.map((function(e,t){return e.isConstant()?r.getConstLiteral(e,!0):Mt("a"+t)})),a=Dt(o.filter(En).map((function(e){return new $e(e.name,ye)})),[new ct(n(o))],ge),u=this.freshName();this.statements.push(Mt(u).set(a).toDeclStmt(ge,[qe.Final])),i=Mt(u),this.literalFactories.set(e,i)}return{literalFactory:i,literalFactoryArguments:s}},e.prototype.uniqueName=function(e){return""+e+this.nextNameIndex++},e.prototype.definitionsOf=function(e){switch(e){case 2:return this.componentDefinitions;case 1:return this.directiveDefinitions;case 0:return this.injectorDefinitions;case 3:return this.pipeDefinitions}return Jt("Unknown definition kind "+e),this.componentDefinitions},e.prototype.propertyNameOf=function(e){switch(e){case 2:return"ɵcmp";case 1:return"ɵdir";case 0:return"ɵinj";case 3:return"ɵpipe"}return Jt("Unknown definition kind "+e),"<unknown>"},e.prototype.freshName=function(){return this.uniqueName("_c")},e.prototype.keyOf=function(e){return e.visitExpression(new gn,vn)},e}(),gn=function(){function e(){this.visitWrappedNodeExpr=_n,this.visitWriteVarExpr=_n,this.visitWriteKeyExpr=_n,this.visitWritePropExpr=_n,this.visitInvokeMethodExpr=_n,this.visitInvokeFunctionExpr=_n,this.visitInstantiateExpr=_n,this.visitConditionalExpr=_n,this.visitNotExpr=_n,this.visitAssertNotNullExpr=_n,this.visitCastExpr=_n,this.visitFunctionExpr=_n,this.visitBinaryOperatorExpr=_n,this.visitReadPropExpr=_n,this.visitReadKeyExpr=_n,this.visitCommaExpr=_n,this.visitLocalizedString=_n}return e.prototype.visitLiteralExpr=function(e){return""+("string"==typeof e.value?'"'+e.value+'"':e.value)},e.prototype.visitLiteralArrayExpr=function(e,t){var n=this;return"["+e.entries.map((function(e){return e.visitExpression(n,t)})).join(",")+"]"},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return"{"+e.entries.map((function(e){return function(e){var t=e.quoted?'"':"";return""+t+e.key+t}(e)+":"+e.value.visitExpression(n,t)})).join(",")},e.prototype.visitExternalExpr=function(e){return e.value.moduleName?"EX:"+e.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 xn="@angular/core",Sn=function(){function e(){}return e.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:xn},e.ElementRef={name:"ElementRef",moduleName:xn},e.NgModuleRef={name:"NgModuleRef",moduleName:xn},e.ViewContainerRef={name:"ViewContainerRef",moduleName:xn},e.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:xn},e.QueryList={name:"QueryList",moduleName:xn},e.TemplateRef={name:"TemplateRef",moduleName:xn},e.Renderer2={name:"Renderer2",moduleName:xn},e.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:xn},e.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:xn},e.ComponentFactory={name:"ComponentFactory",moduleName:xn},e.ComponentRef={name:"ComponentRef",moduleName:xn},e.NgModuleFactory={name:"NgModuleFactory",moduleName:xn},e.createModuleFactory={name:"ɵcmf",moduleName:xn},e.moduleDef={name:"ɵmod",moduleName:xn},e.moduleProviderDef={name:"ɵmpd",moduleName:xn},e.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:xn},e.inject={name:"ɵɵinject",moduleName:xn},e.directiveInject={name:"ɵɵdirectiveInject",moduleName:xn},e.INJECTOR={name:"INJECTOR",moduleName:xn},e.Injector={name:"Injector",moduleName:xn},e.ɵɵdefineInjectable={name:"ɵɵdefineInjectable",moduleName:xn},e.InjectableDef={name:"ɵɵInjectableDef",moduleName:xn},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:xn},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:xn},e.SecurityContext={name:"SecurityContext",moduleName:xn},e.LOCALE_ID={name:"LOCALE_ID",moduleName:xn},e.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:xn},e.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:xn},e.interpolate={name:"ɵinterpolate",moduleName:xn},e.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:xn},e.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:xn},e.Renderer={name:"Renderer",moduleName:xn},e.viewDef={name:"ɵvid",moduleName:xn},e.elementDef={name:"ɵeld",moduleName:xn},e.anchorDef={name:"ɵand",moduleName:xn},e.textDef={name:"ɵted",moduleName:xn},e.directiveDef={name:"ɵdid",moduleName:xn},e.providerDef={name:"ɵprd",moduleName:xn},e.queryDef={name:"ɵqud",moduleName:xn},e.pureArrayDef={name:"ɵpad",moduleName:xn},e.pureObjectDef={name:"ɵpod",moduleName:xn},e.purePipeDef={name:"ɵppd",moduleName:xn},e.pipeDef={name:"ɵpid",moduleName:xn},e.nodeValue={name:"ɵnov",moduleName:xn},e.ngContentDef={name:"ɵncd",moduleName:xn},e.unwrapValue={name:"ɵunv",moduleName:xn},e.createRendererType2={name:"ɵcrt",moduleName:xn},e.RendererType2={name:"RendererType2",moduleName:xn},e.ViewDefinition={name:"ɵViewDefinition",moduleName:xn},e.createComponentFactory={name:"ɵccf",moduleName:xn},e.setClassMetadata={name:"ɵsetClassMetadata",moduleName:xn},e}();function wn(e){return{identifier:{reference:e}}}function Cn(e,t){return wn(e.resolveExternalReference(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
*/var bn=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}(),Tn=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 bn(e,t,n),this.cache.set(r,i)),i},e}(),Pn=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function Nn(e){return e.replace(/\W/g,"_")}var An,Mn=0;function In(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof bn)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=on(t);return n.indexOf("(")>=0?(n="anonymous_"+Mn++,t.__anonymousType=n):n=Nn(n),n}function kn(e){var t=e.reference;return t instanceof bn?t.filePath:"./"+on(t)}function Rn(e,t){return"View_"+In({reference:e})+"_"+t}function On(e){return"RenderType_"+In({reference:e})}function Fn(e){return"HostView_"+In({reference:e})}function Ln(e){return In({reference:e})+"NgFactory"}function Dn(e){return null!=e.value?Nn(e.value):In(e.identifier)}function Bn(e){return null!=e.identifier?e.identifier.reference:e.value}!function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(An||(An={}));var Vn=function(e){var t=void 0===e?{}:e,n=t.moduleUrl,r=t.styles,i=t.styleUrls;this.moduleUrl=n||null,this.styles=Kn(r),this.styleUrls=Kn(i)},jn=function(){function e(e){var t=e.encapsulation,n=e.template,r=e.templateUrl,i=e.htmlAst,s=e.styles,o=e.styleUrls,a=e.externalStylesheets,u=e.animations,p=e.ngContentSelectors,l=e.interpolation,c=e.isInline,h=e.preserveWhitespaces;if(this.encapsulation=t,this.template=n,this.templateUrl=r,this.htmlAst=i,this.styles=Kn(s),this.styleUrls=Kn(o),this.externalStylesheets=Kn(a),this.animations=u?Gn(u):[],this.ngContentSelectors=p||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=c,this.preserveWhitespaces=h}return e.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}},e}(),Un=function(){function e(e){var t=e.isHost,n=e.type,r=e.isComponent,i=e.selector,s=e.exportAs,o=e.changeDetection,a=e.inputs,u=e.outputs,p=e.hostListeners,l=e.hostProperties,c=e.hostAttributes,h=e.providers,f=e.viewProviders,d=e.queries,v=e.guards,m=e.viewQueries,y=e.entryComponents,g=e.template,_=e.componentViewType,E=e.rendererType,x=e.componentFactory;this.isHost=!!t,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=s,this.changeDetection=o,this.inputs=a,this.outputs=u,this.hostListeners=p,this.hostProperties=l,this.hostAttributes=c,this.providers=Kn(h),this.viewProviders=Kn(f),this.queries=Kn(d),this.guards=v,this.viewQueries=Kn(m),this.entryComponents=Kn(y),this.template=g,this.componentViewType=_,this.rendererType=E,this.componentFactory=x}return e.create=function(t){var n=t.isHost,r=t.type,i=t.isComponent,s=t.selector,o=t.exportAs,a=t.changeDetection,u=t.inputs,p=t.outputs,l=t.host,c=t.providers,h=t.viewProviders,f=t.queries,d=t.guards,v=t.viewQueries,m=t.entryComponents,y=t.template,g=t.componentViewType,_=t.rendererType,E=t.componentFactory,x={},S={},w={};null!=l&&Object.keys(l).forEach((function(e){var t=l[e],n=e.match(Pn);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=qt(e,[e,e]);C[t[0]]=t[1]}));var b={};return null!=p&&p.forEach((function(e){var t=qt(e,[e,e]);b[t[0]]=t[1]})),new e({isHost:n,type:r,isComponent:!!i,selector:s,exportAs:o,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})},e.prototype.toSummary=function(){return{summaryKind:An.Directive,type:this.type,isComponent:this.isComponent,selector:this.selecto
/**
* @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 er="@angular/core",tr=function(){function e(){}return e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.namespaceHTML={name:"ɵɵnamespaceHTML",moduleName:er},e.namespaceMathML={name:"ɵɵnamespaceMathML",moduleName:er},e.namespaceSVG={name:"ɵɵnamespaceSVG",moduleName:er},e.element={name:"ɵɵelement",moduleName:er},e.elementStart={name:"ɵɵelementStart",moduleName:er},e.elementEnd={name:"ɵɵelementEnd",moduleName:er},e.select={name:"ɵɵselect",moduleName:er},e.advance={name:"ɵɵadvance",moduleName:er},e.updateSyntheticHostBinding={name:"ɵɵupdateSyntheticHostBinding",moduleName:er},e.componentHostSyntheticListener={name:"ɵɵcomponentHostSyntheticListener",moduleName:er},e.attribute={name:"ɵɵattribute",moduleName:er},e.attributeInterpolate1={name:"ɵɵattributeInterpolate1",moduleName:er},e.attributeInterpolate2={name:"ɵɵattributeInterpolate2",moduleName:er},e.attributeInterpolate3={name:"ɵɵattributeInterpolate3",moduleName:er},e.attributeInterpolate4={name:"ɵɵattributeInterpolate4",moduleName:er},e.attributeInterpolate5={name:"ɵɵattributeInterpolate5",moduleName:er},e.attributeInterpolate6={name:"ɵɵattributeInterpolate6",moduleName:er},e.attributeInterpolate7={name:"ɵɵattributeInterpolate7",moduleName:er},e.attributeInterpolate8={name:"ɵɵattributeInterpolate8",moduleName:er},e.attributeInterpolateV={name:"ɵɵattributeInterpolateV",moduleName:er},e.classProp={name:"ɵɵclassProp",moduleName:er},e.elementContainerStart={name:"ɵɵelementContainerStart",moduleName:er},e.elementContainerEnd={name:"ɵɵelementContainerEnd",moduleName:er},e.elementContainer={name:"ɵɵelementContainer",moduleName:er},e.styleMap={name:"ɵɵstyleMap",moduleName:er},e.styleMapInterpolate1={name:"ɵɵstyleMapInterpolate1",moduleName:er},e.styleMapInterpolate2={name:"ɵɵstyleMapInterpolate2",moduleName:er},e.styleMapInterpolate3={name:"ɵɵstyleMapInterpolate3",moduleName:er},e.styleMapInterpolate4={name:"ɵɵstyleMapInterpolate4",moduleName:er},e.styleMapInterpolate5={name:"ɵɵstyleMapInterpolate5",moduleName:er},e.styleMapInterpolate6={name:"ɵɵstyleMapInterpolate6",moduleName:er},e.styleMapInterpolate7={name:"ɵɵstyleMapInterpolate7",moduleName:er},e.styleMapInterpolate8={name:"ɵɵstyleMapInterpolate8",moduleName:er},e.styleMapInterpolateV={name:"ɵɵstyleMapInterpolateV",moduleName:er},e.classMap={name:"ɵɵclassMap",moduleName:er},e.classMapInterpolate1={name:"ɵɵclassMapInterpolate1",moduleName:er},e.classMapInterpolate2={name:"ɵɵclassMapInterpolate2",moduleName:er},e.classMapInterpolate3={name:"ɵɵclassMapInterpolate3",moduleName:er},e.classMapInterpolate4={name:"ɵɵclassMapInterpolate4",moduleName:er},e.classMapInterpolate5={name:"ɵɵclassMapInterpolate5",moduleName:er},e.classMapInterpolate6={name:"ɵɵclassMapInterpolate6",moduleName:er},e.classMapInterpolate7={name:"ɵɵclassMapInterpolate7",moduleName:er},e.classMapInterpolate8={name:"ɵɵclassMapInterpolate8",moduleName:er},e.classMapInterpolateV={name:"ɵɵclassMapInterpolateV",moduleName:er},e.styleProp={name:"ɵɵstyleProp",moduleName:er},e.stylePropInterpolate1={name:"ɵɵstylePropInterpolate1",moduleName:er},e.stylePropInterpolate2={name:"ɵɵstylePropInterpolate2",moduleName:er},e.stylePropInterpolate3={name:"ɵɵstylePropInterpolate3",moduleName:er},e.stylePropInterpolate4={name:"ɵɵstylePropInterpolate4",moduleName:er},e.stylePropInterpolate5={name:"ɵɵstylePropInterpolate5",moduleName:er},e.stylePropInterpolate6={name:"ɵɵstylePropInterpolate6",moduleName:er},e.stylePropInterpolate7={name:"ɵɵstylePropInterpolate7",moduleName:er},e.stylePropInterpolate8={name:"ɵɵstylePropInterpolate8",moduleName:er},e.stylePropInterpolateV={name:"ɵɵstylePropInterpolateV",moduleName:er},e.containerCreate={name:"ɵɵcontainer",moduleName:er},e.nextContext={name:"ɵɵnextContext",moduleName:er},e.templateCreate={name:"ɵɵtemplate",moduleName:er},e.text={name:"ɵɵtext",moduleName:er},e.enableBindings={name:"ɵɵenableBindings",moduleName:er},e.disableBindings={name:"ɵɵdisableBindings",moduleName:er},e.getCu
/**
* @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 nr(e){return Lt(Object.keys(e).map((function(t){return{key:t,value:e[t],quoted:!1}})))}function rr(e,t){if(Array.isArray(e))return Ft(e.map((function(e){return rr(e,t)})));if(e instanceof bn)return t.importExpr(e);if(null==e)return Vt(e);throw new Error("Internal error: Unsupported or unknown metadata: "+e)}function ir(e,t){var n=null;if(t>0){n=[];for(var r=0;r<t;r++)n.push(ye)}return Rt(e,null,n)}function sr(e){return"@"+e}function or(e,t){return"animation_"+e+"_"+t}function ar(e){return e>=9&&e<=32||160==e}function ur(e){return 48<=e&&e<=57}function pr(e){return e>=97&&e<=122||e>=65&&e<=90}function lr(e){return 10===e||13===e}function cr(e){return 48<=e&&e<=55}
/**
* @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 hr,fr=function(){function e(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}return e.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},e.prototype.moveBy=function(t){for(var n=this.file.content,r=n.length,i=this.offset,s=this.line,o=this.col;i>0&&t<0;){if(i--,t++,10==(u=n.charCodeAt(i))){s--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(10));o=a>0?i-a:i}else o--}for(;i<r&&t>0;){var u=n.charCodeAt(i);i++,t--,10==u?(s++,o=0):o++}return new e(this.file,i,s,o)},e.prototype.getContext=function(e,t){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,s=0,o=0;s<e&&r>0&&(s++,"\n"!=n[--r]||++o!=t););for(s=0,o=0;s<e&&i<n.length-1&&(s++,"\n"!=n[++i]||++o!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},e}(),dr=function(e,t){this.content=e,this.url=t},vr=function(){function e(e,t,n){void 0===n&&(n=null),this.start=e,this.end=t,this.details=n}return e.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},e}(),mr=new fr(new dr("",""),0,0,0),yr=new vr(mr,mr);!function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(hr||(hr={}));var gr=function(){function e(e,t,n){void 0===n&&(n=hr.ERROR),this.span=e,this.msg=t,this.level=n}return e.prototype.contextualMessage=function(){var e=this.span.start.getContext(100,3);return e?this.msg+' ("'+e.before+"["+hr[this.level]+" ->]"+e.after+'")':this.msg},e.prototype.toString=function(){var e=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+e},e}();function _r(e,t){var n=kn(t),r=null!=n?"in "+e+" "+In(t)+" in "+n:"in "+e+" "+In(t),i=new dr("",r);return new vr(new fr(i,-1,-1,-1),new fr(i,-1,-1,-1))}function Er(e,t,n){var r=new dr("","in "+e+" "+t+" in "+n);return new vr(new fr(r,-1,-1,-1),new fr(r,-1,-1,-1))}
/**
* @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 xr=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e){return e.visitText(this)},e}(),Sr=function(){function e(e,t,n){this.value=e,this.sourceSpan=t,this.i18n=n}return e.prototype.visit=function(e){return e.visitBoundText(this)},e}(),wr=function(){function e(e,t,n,r,i){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r,this.i18n=i}return e.prototype.visit=function(e){return e.visitTextAttribute(this)},e}(),Cr=function(){function e(e,t,n,r,i,s,o,a){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=s,this.valueSpan=o,this.i18n=a}return e.fromBoundElementProperty=function(t,n){return new e(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan,t.valueSpan,n)},e.prototype.visit=function(e){return e.visitBoundAttribute(this)},e}(),br=function(){function e(e,t,n,r,i,s,o){this.name=e,this.type=t,this.handler=n,this.target=r,this.phase=i,this.sourceSpan=s,this.handlerSpan=o}return e.fromParsedEvent=function(t){var n=0===t.type?t.targetOrPhase:null,r=1===t.type?t.targetOrPhase:null;return new e(t.name,t.type,t.handler,n,r,t.sourceSpan,t.handlerSpan)},e.prototype.visit=function(e){return e.visitBoundEvent(this)},e}(),Tr=function(){function e(e,t,n,r,i,s,o,a,u,p){this.name=e,this.attributes=t,this.inputs=n,this.outputs=r,this.children=i,this.references=s,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=u,this.i18n=p,0===i.length&&a&&u&&(this.sourceSpan=new vr(o.start,u.end))}return e.prototype.visit=function(e){return e.visitElement(this)},e}(),Pr=function(){function e(e,t,n,r,i,s,o,a,u,p,l,c){this.tagName=e,this.attributes=t,this.inputs=n,this.outputs=r,this.templateAttrs=i,this.children=s,this.references=o,this.variables=a,this.sourceSpan=u,this.startSourceSpan=p,this.endSourceSpan=l,this.i18n=c}return e.prototype.visit=function(e){return e.visitTemplate(this)},e}(),Nr=function(){function e(e,t,n,r){this.selector=e,this.attributes=t,this.sourceSpan=n,this.i18n=r}return e.prototype.visit=function(e){return e.visitContent(this)},e}(),Ar=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){return e.visitVariable(this)},e}(),Mr=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){return e.visitReference(this)},e}(),Ir=function(){function e(e,t,n,r){this.vars=e,this.placeholders=t,this.sourceSpan=n,this.i18n=r}return e.prototype.visit=function(e){return e.visitIcu(this)},e}(),kr=function(){function e(){}return e.prototype.visitElement=function(e){Rr(this,e.attributes),Rr(this,e.children),Rr(this,e.references)},e.prototype.visitTemplate=function(e){Rr(this,e.attributes),Rr(this,e.children),Rr(this,e.references),Rr(this,e.variables)},e.prototype.visitContent=function(e){},e.prototype.visitVariable=function(e){},e.prototype.visitReference=function(e){},e.prototype.visitTextAttribute=function(e){},e.prototype.visitBoundAttribute=function(e){},e.prototype.visitBoundEvent=function(e){},e.prototype.visitText=function(e){},e.prototype.visitBoundText=function(e){},e.prototype.visitIcu=function(e){},e}();function Rr(e,t){var n,r,i,s,o=[];if(e.visit)try{for(var a=f(t),u=a.next();!u.done;u=a.next())var p=u.value,l=e.visit(p)||p.visit(e)}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}else try{for(var c=f(t),h=c.next();!h.done;h=c.next()){(l=(p=h.value).visit(e))&&o.push(l)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}return o}
/**
* @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 Or=function(e,t,n,r,i,s){this.nodes=e,this.placeholders=t,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.customId=s,this.id=this.customId,this.legacyIds=[],e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]},Fr=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),Lr=function(){function e(e,t){this.children=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitContainer(this,t)},e}(),Dr=function(){function e(e,t,n,r){this.expression=e,this.type=t,this.cases=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitIcu(this,t)},e}(),Br=function(){function e(e,t,n,r,i,s,o){this.tag=e,this.attrs=t,this.startName=n,this.closeName=r,this.children=i,this.isVoid=s,this.sourceSpan=o}return e.prototype.visit=function(e,t){return e.visitTagPlaceholder(this,t)},e}(),Vr=function(){function e(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitPlaceholder(this,t)},e}(),jr=function(){function e(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitIcuPlaceholder(this,t)},e}(),Ur=function(){function e(){}return e.prototype.visitText=function(e,t){return new Fr(e.value,e.sourceSpan)},e.prototype.visitContainer=function(e,t){var n=this,r=e.children.map((function(e){return e.visit(n,t)}));return new Lr(r,e.sourceSpan)},e.prototype.visitIcu=function(e,t){var n=this,r={};Object.keys(e.cases).forEach((function(i){return r[i]=e.cases[i].visit(n,t)}));var i=new Dr(e.expression,e.type,r,e.sourceSpan);return i.expressionPlaceholder=e.expressionPlaceholder,i},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=e.children.map((function(e){return e.visit(n,t)}));return new Br(e.tag,e.attrs,e.startName,e.closeName,r,e.isVoid,e.sourceSpan)},e.prototype.visitPlaceholder=function(e,t){return new Vr(e.value,e.name,e.sourceSpan)},e.prototype.visitIcuPlaceholder=function(e,t){return new jr(e.value,e.name,e.sourceSpan)},e}(),Hr=function(){function e(){}return e.prototype.visitText=function(e,t){},e.prototype.visitContainer=function(e,t){var n=this;e.children.forEach((function(e){return e.visit(n)}))},e.prototype.visitIcu=function(e,t){var n=this;Object.keys(e.cases).forEach((function(t){e.cases[t].visit(n)}))},e.prototype.visitTagPlaceholder=function(e,t){var n=this;e.children.forEach((function(e){return e.visit(n)}))},e.prototype.visitPlaceholder=function(e,t){},e.prototype.visitIcuPlaceholder=function(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
*/
function qr(e){return e.id||Wr(e)}function Wr(e){return function(e){var t=sn(e),n=function(e,t){for(var n=e.length+3>>>2,r=[],i=0;i<n;i++)r[i]=ai(e,4*i,t);return r}(t,Xr.Big),r=8*t.length,i=fn(80),s=1732584193,o=4023233417,a=2562383102,u=271733878,p=3285377520;n[r>>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var l=0;l<n.length;l+=16){for(var c=s,h=o,f=a,d=u,v=p,m=0;m<80;m++){i[m]=m<16?n[l+m]:si(i[m-3]^i[m-8]^i[m-14]^i[m-16],1);var y=Yr(m,o,a,u),g=y[0],_=y[1],E=[si(s,5),g,p,_,i[m]].reduce(ni);p=u,u=a,a=si(o,30),o=s,s=E}s=ni(s,c),o=ni(o,h),a=ni(a,f),u=ni(u,d),p=ni(p,v)}return function(e){for(var t="",n=0;n<e.length;n++){var r=oi(e,n);t+=(r>>>4).toString(16)+(15&r).toString(16)}return t.toLowerCase()}(ui([s,o,a,u,p]))}((t=e.nodes,t.map((function(e){return e.visit(Gr,null)}))).join("")+"["+e.meaning+"]");var t}function zr(e){return e.id||Kr(e)}function Kr(e){var t=new $r;return Zr(e.nodes.map((function(e){return e.visit(t,null)})).join(""),e.meaning)}var Qr=function(){function e(){}return e.prototype.visitText=function(e,t){return e.value},e.prototype.visitContainer=function(e,t){var n=this;return"["+e.children.map((function(e){return e.visit(n)})).join(", ")+"]"},e.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map((function(t){return t+" {"+e.cases[t].visit(n)+"}"}));return"{"+e.expression+", "+e.type+", "+r.join(", ")+"}"},e.prototype.visitTagPlaceholder=function(e,t){var n=this;return e.isVoid?'<ph tag name="'+e.startName+'"/>':'<ph tag name="'+e.startName+'">'+e.children.map((function(e){return e.visit(n)})).join(", ")+'</ph name="'+e.closeName+'">'},e.prototype.visitPlaceholder=function(e,t){return e.value?'<ph name="'+e.name+'">'+e.value+"</ph>":'<ph name="'+e.name+'"/>'},e.prototype.visitIcuPlaceholder=function(e,t){return'<ph icu name="'+e.name+'">'+e.value.visit(this)+"</ph>"},e}(),Gr=new Qr;var Xr,$r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map((function(t){return t+" {"+e.cases[t].visit(n)+"}"}));return"{"+e.type+", "+r.join(", ")+"}"},t}(Qr);function Yr(e,t,n,r){return e<20?[t&n|~t&r,1518500249]:e<40?[t^n^r,1859775393]:e<60?[t&n|t&r|n&r,2400959708]:[t^n^r,3395469782]}function Jr(e){var t=sn(e),n=ei(t,0),r=ei(t,102072);return 0!=n||0!=r&&1!=r||(n^=319790063,r^=-1801410264),[n,r]}function Zr(e,t){void 0===t&&(t="");var n=Jr(e);if(t){var r=Jr(t);n=function(e,t){var n=e[0],r=e[1],i=t[0],s=t[1],o=ri(r,s),a=o[0],u=o[1];return[ni(ni(n,i),a),u]}(function(e,t){var n=e[0],r=e[1];return[n<<t|r>>>32-t,r<<t|n>>>32-t]}(n,1),r)}return function(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=pi(t,li(oi(e,r),n)),n=li(256,n);return t.split("").reverse().join("")}(ui([2147483647&n[0],n[1]]))}function ei(e,t){var n,r=2654435769,i=2654435769,s=e.length;for(n=0;n+12<=s;n+=12){var o=ti(r=ni(r,ai(e,n,Xr.Little)),i=ni(i,ai(e,n+4,Xr.Little)),t=ni(t,ai(e,n+8,Xr.Little)));r=o[0],i=o[1],t=o[2]}return r=ni(r,ai(e,n,Xr.Little)),i=ni(i,ai(e,n+4,Xr.Little)),t=ni(t,s),ti(r,i,t=ni(t,ai(e,n+8,Xr.Little)<<8))[2]}function ti(e,t,n){return e=ii(e,t),e=ii(e,n),e^=n>>>13,t=ii(t,n),t=ii(t,e),t^=e<<8,n=ii(n,e),n=ii(n,t),n^=t>>>13,e=ii(e,t),e=ii(e,n),e^=n>>>12,t=ii(t,n),t=ii(t,e),t^=e<<16,n=ii(n,e),n=ii(n,t),n^=t>>>5,e=ii(e,t),e=ii(e,n),e^=n>>>3,t=ii(t,n),t=ii(t,e),t^=e<<10,n=ii(n,e),n=ii(n,t),[e,t,n^=t>>>15]}function ni(e,t){return ri(e,t)[1]}function ri(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function ii(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function si(e,t){return e<<t|e>>>32-t}function oi(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function ai(e,t,n){var r=0;if(n===Xr.Big)for(var i=0;i<4;i++)r+=oi(e,t+i)<<24-8*i;else for(i=0;i<4;i++)r+=oi(e,t+i)<<8*i;return r}function ui(e){return e.reduce((function(e,t){return e+function(e){for(var t="",n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t)}),"")}function pi(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,s=0;i<r||s;i++){var o=s+ +(e[i]||0)+ +(t[i]||0);o>=10?(s=1,n+=o-10):(
/**
* @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.Little=0]="Little",e[e.Big=1]="Big"}(Xr||(Xr={}));var ci=function(){function e(){}return e.prototype.createNameMapper=function(e){return null},e}(),hi=function(e){function t(t,n){var r=e.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},t.nodes.forEach((function(e){return e.visit(r)})),r}return l(t,e),t.prototype.toPublicName=function(e){return this.internalToPublic.hasOwnProperty(e)?this.internalToPublic[e]:null},t.prototype.toInternalName=function(e){return this.publicToInternal.hasOwnProperty(e)?this.publicToInternal[e]:null},t.prototype.visitText=function(e,t){return null},t.prototype.visitTagPlaceholder=function(t,n){this.visitPlaceholderName(t.startName),e.prototype.visitTagPlaceholder.call(this,t,n),this.visitPlaceholderName(t.closeName)},t.prototype.visitPlaceholder=function(e,t){this.visitPlaceholderName(e.name)},t.prototype.visitIcuPlaceholder=function(e,t){this.visitPlaceholderName(e.name)},t.prototype.visitPlaceholderName=function(e){if(e&&!this.internalToPublic.hasOwnProperty(e)){var t=this.mapName(e);if(this.publicToInternal.hasOwnProperty(t)){var n=this.publicToNextId[t];this.publicToNextId[t]=n+1,t=t+"_"+n}else this.publicToNextId[t]=1;this.internalToPublic[e]=t,this.publicToInternal[t]=e}},t}(Hr),fi=new(function(){function e(){}return e.prototype.visitTag=function(e){var t=this,n=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<"+e.name+n+"/>";var r=e.children.map((function(e){return e.visit(t)}));return"<"+e.name+n+">"+r.join("")+"</"+e.name+">"},e.prototype.visitText=function(e){return e.value},e.prototype.visitDeclaration=function(e){return"<?xml"+this._serializeAttributes(e.attrs)+" ?>"},e.prototype._serializeAttributes=function(e){var t=Object.keys(e).map((function(t){return t+'="'+e[t]+'"'})).join(" ");return t.length>0?" "+t:""},e.prototype.visitDoctype=function(e){return"<!DOCTYPE "+e.rootTag+" [\n"+e.dtd+"\n]>"},e}());function di(e){return e.map((function(e){return e.visit(fi)})).join("")}var vi=function(){function e(e){var t=this;this.attrs={},Object.keys(e).forEach((function(n){t.attrs[n]=xi(e[n])}))}return e.prototype.visit=function(e){return e.visitDeclaration(this)},e}(),mi=function(){function e(e,t){this.rootTag=e,this.dtd=t}return e.prototype.visit=function(e){return e.visitDoctype(this)},e}(),yi=function(){function e(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=[]),this.name=e,this.children=n,this.attrs={},Object.keys(t).forEach((function(e){r.attrs[e]=xi(t[e])}))}return e.prototype.visit=function(e){return e.visitTag(this)},e}(),gi=function(){function e(e){this.value=xi(e)}return e.prototype.visit=function(e){return e.visitText(this)},e}(),_i=function(e){function t(t){return void 0===t&&(t=0),e.call(this,"\n"+new Array(t+1).join(" "))||this}return l(t,e),t}(gi),Ei=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function xi(e){return Ei.reduce((function(e,t){return e.replace(t[0],t[1])}),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 Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.write=function(e,t){var n=new bi,r=new wi,i=new yi("messagebundle");return e.forEach((function(e){var t={id:e.id};e.description&&(t.desc=e.description),e.meaning&&(t.meaning=e.meaning);var n=[];e.sources.forEach((function(e){n.push(new yi("source",{},[new gi(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))})),i.children.push(new _i(2),new yi("msg",t,v(n,r.serialize(e.nodes))))})),i.children.push(new _i),di([new vi({version:"1.0",encoding:"UTF-8"}),new _i,new mi("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new _i,n.addDefaultExamples(i),new _i])},t.prototype.load=function(e,t){throw new Error("Unsupported")},t.prototype.digest=function(e){return Ci(e)},t.prototype.createNameMapper=function(e){return new hi(e,Ti)},t}(ci),wi=function(){function e(){}return e.prototype.visitText=function(e,t){return[new gi(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach((function(e){return r.push.apply(r,v(e.visit(n)))})),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new gi("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach((function(t){r.push.apply(r,v([new gi(t+" {")],e.cases[t].visit(n),[new gi("} ")]))})),r.push(new gi("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=new gi("<"+e.tag+">"),r=new yi("ex",{},[n]),i=new yi("ph",{name:e.startName},[r,n]);if(e.isVoid)return[i];var s=new gi("</"+e.tag+">"),o=new yi("ex",{},[s]),a=new yi("ph",{name:e.closeName},[o,s]);return v([i],this.serialize(e.children),[a])},e.prototype.visitPlaceholder=function(e,t){var n=new gi("{{"+e.value+"}}"),r=new yi("ex",{},[n]);return[new yi("ph",{name:e.name},[r,n])]},e.prototype.visitIcuPlaceholder=function(e,t){var n=e.value.expression,r=e.value.type,i=Object.keys(e.value.cases).map((function(e){return e+" {...}"})).join(" "),s=new gi("{"+n+", "+r+", "+i+"}"),o=new yi("ex",{},[s]);return[new yi("ph",{name:e.name},[o,s])]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],v(e.map((function(e){return e.visit(t)}))))},e}();function Ci(e){return zr(e)}var bi=function(){function e(){}return e.prototype.addDefaultExamples=function(e){return e.visit(this),e},e.prototype.visitTag=function(e){var t=this;if("ph"===e.name){if(!e.children||0==e.children.length){var n=new gi(e.attrs.name||"...");e.children=[new yi("ex",{},[n])]}}else e.children&&e.children.forEach((function(e){return e.visit(t)}))},e.prototype.visitText=function(e){},e.prototype.visitDeclaration=function(e){},e.prototype.visitDoctype=function(e){},e}();function Ti(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function Pi(e){return"i18n"===e||e.startsWith("i18n-")}function Ni(e){return e instanceof Or}function Ai(e){return Ni(e)&&1===e.nodes.length&&e.nodes[0]instanceof Dr}function Mi(e){return e.nodes[0]}function Ii(e,t){return void 0===t&&(t=0),"<EFBFBD>"+e+(t>0?":"+t:"")+"<EFBFBD>"}function ki(e){void 0===e&&(e=0);var t=e;return function(){return t++}}function Ri(e){var t={};return e.forEach((function(e,n){t[n]=Vt(e.length>1?"["+e.join("|")+"]":e[0])})),t}function Oi(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=e.get(t)||[];i.push.apply(i,v(n)),e.set(t,i)}function Fi(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var r=t,i=new Map,s=e instanceof Or?e.nodes.find((function(e){return e instanceof Lr})):e;return s&&s.children.filter((function(e){return e instanceof Vr})).forEach((function(e,t){var s=Ii(r+t,n);Oi(i,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 ji=/[-.]/;function Ui(e,t){var n=null;return function(){return n||(e.push(new ut("_t",void 0,ye)),n=Mt(t)),n}}function Hi(e){if(this)throw new Error("Builder "+this.constructor.name+" doesn't support "+e+" yet");throw new Error("Feature "+e+" is not supported yet")}function qi(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function Wi(e){return Array.isArray(e)?Ft(e.map(Wi)):Vt(e,ge)}function zi(e,t){return Object.getOwnPropertyNames(e).length>0?function(e,t){return Lt(Object.getOwnPropertyNames(e).map((function(n){var r,i,s,o,a,u=e[n];return Array.isArray(u)?(o=(r=d(u,2))[0],s=r[1]):(s=(i=d(qt(n,[n,u]),2))[0],o=i[1]),{key:a=s,quoted:ji.test(a),value:t&&o!==s?Ft([Wi(o),Wi(s)]):Wi(o)}})))}(e,t):null}function Ki(e){for(;jt(e[e.length-1]);)e.pop();return e}function Qi(e,t){if(Array.isArray(e.predicate)){var n=[];return e.predicate.forEach((function(e){var t=e.split(",").map((function(e){return Vt(e.trim())}));n.push.apply(n,v(t))})),t.getConstLiteral(Ft(n),!0)}return e.predicate}var Gi,Xi,$i,Yi=function(){function e(){this.values=[]}return e.prototype.set=function(e,t){t&&this.values.push({key:e,value:t,quoted:!1})},e.prototype.toLiteralMap=function(){return Lt(this.values)},e}();function Ji(e){var t={};return e instanceof Pr&&"ng-template"!==e.tagName?e.templateAttrs.forEach((function(e){return t[e.name]=""})):(e.attributes.forEach((function(e){Pi(e.name)||(t[e.name]=e.value)})),e.inputs.forEach((function(e){t[e.name]=""})),e.outputs.forEach((function(e){t[e.name]=""}))),t}function Zi(e,t,n){var r=It(e,null,n);if(t.length>0)for(var i=0;i<t.length;i++)r=r.callFn(t[i],n);else r=r.callFn([],n);return r}function es(e){var t=e.expressions,n=e.strings;return 1===t.length&&2===n.length&&""===n[0]&&""===n[1]?1:t.length+n.length}
/**
* @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 ts(e){var t=Mt("t"),n=[],r=is(e)?t:new Je(he.Or,t,e.internalType),i=null;if(null!==e.deps)"invalid"!==e.deps&&(i=new Le(r,ns(e.deps,e.injectFn,e.target===Xi.Pipe)));else{var s=Mt("ɵ"+e.name+"_BaseFactory"),o=It(tr.getInheritedFactory),a=s.set(o.callFn([e.internalType])).toDeclStmt(ge,[qe.Exported,qe.Final]);n.push(a),i=s.callFn([r])}var u=i,p=[],l=null;function c(e){var n=Mt("r");p.push(n.set(st).toDeclStmt());var r=null;return r=null!==u?n.set(u).toStmt():It(tr.invalidFactory).callFn([]).toStmt(),p.push(Bt(t,[r],[n.set(e).toStmt()])),n}if(is(e)&&e.delegateType===Gi.Factory){var h=Mt("ɵ"+e.name+"_BaseFactory"),f=It(tr.getFactoryOf);if(e.delegate.isEquivalent(e.internalType))throw new Error("Illegal state: compiling factory that delegates to itself");var d=h.set(f.callFn([e.delegate])).toDeclStmt(ge,[qe.Exported,qe.Final]);n.push(d),l=c(h.callFn([]))}else if(is(e)){var v=ns(e.delegateDeps,e.injectFn,e.target===Xi.Pipe);l=c(new(e.delegateType===Gi.Class?Le:Fe)(e.delegate,v))}else l=function(e){return void 0!==e.expression}
/**
* @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
*/(e)?c(e.expression):i;return null!==l?p.push(new ct(l)):p.push(It(tr.invalidFactory).callFn([]).toStmt()),{factory:Dt([new $e("t",ye)],p,ge,void 0,e.name+"_Factory"),statements:n,type:Rt(It(tr.FactoryDef,[ir(e.type.type,e.typeArgumentCount)]))}}function ns(e,t,n){return e.map((function(e,r){return function(e,t,n,r){switch(e.resolved){case $i.Token:case $i.ChangeDetectorRef:var i=0|(e.self?2:0)|(e.skipSelf?4:0)|(e.host?1:0)|(e.optional?8:0),s=0!==i||e.optional?Vt(i):null;if(n&&e.resolved===$i.ChangeDetectorRef)return It(tr.injectPipeChangeDetectorRef).callFn(s?[s]:[]);var o=[e.token];return s&&o.push(s),It(t).callFn(o);case $i.Attribute:return It(tr.injectAttribute).callFn([e.token]);case $i.Invalid:return It(tr.invalidFactoryDep).callFn([Vt(r)]);default:return Hi("Unknown R3ResolvedDependencyType: "+$i[e.resolved])}}(e,t,n,r)}))}function rs(e,t,n){n.resolveExternalReference(Sn.Injector);var r,i,s=[];try{for(var o=f(e.diDeps),a=o.next();!a.done;a=o.next()){var u=a.value;if(u.token){var p=Bn(u.token),l=u.isAttribute?$i.Attribute:$i.Token,c=p instanceof bn?t.importExpr(p):Vt(p);s.push({token:c,resolved:l,host:!!u.isHost,optional:!!u.isOptional,self:!!u.isSelf,skipSelf:!!u.isSkipSelf})}else Hi("dependency without a token")}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function is(e){return void 0!==e.delegateType}function ss(e){var t=null,n={name:e.name,type:e.type,internalType:e.internalType,typeArgumentCount:e.typeArgumentCount,deps:[],injectFn:Sn.inject,target:Xi.Injectable};if(void 0!==e.useClass){var r=e.useClass.isEquivalent(e.internalType),i=void 0;void 0!==e.userDeps&&(i=e.userDeps),t=void 0!==i?ts(h(h({},n),{delegate:e.useClass,delegateDeps:i,delegateType:Gi.Class})):r?ts(n):os(e.type.value,e.useClass)}else t=void 0!==e.useFactory?void 0!==e.userDeps?ts(h(h({},n),{delegate:e.useFactory,delegateDeps:e.userDeps||[],delegateType:Gi.Function})):{statements:[],factory:Dt([],[new ct(e.useFactory.callFn([]))])}:void 0!==e.useValue?ts(h(h({},n),{expression:e.useValue})):void 0!==e.useExisting?ts(h(h({},n),{expression:It(Sn.inject).callFn([e.useExisting])})):os(e.type.value,e.internalType);var s={token:e.internalType,factory:t.factory};return null!==e.providedIn.value&&(s.providedIn=e.providedIn),{expression:It(Sn.ɵɵdefineInjectable).callFn([nr(s)]),type:new de(It(Sn.InjectableDef,[ir(e.type.type,e.typeArgumentCount)])),statements:t.statements}}function os(e,t){return{statements:[],factory:e.node===t.node?t.prop("ɵfac"):Dt([new $e("t",ye)],[new ct(t.callMethod("ɵfac",[Mt("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
*/function as(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.")}}!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function",e[e.Factory=2]="Factory"}(Gi||(Gi={})),function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(Xi||(Xi={})),function(e){e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.ChangeDetectorRef=2]="ChangeDetectorRef",e[e.Invalid=3]="Invalid"}($i||($i={}));var us=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function ps(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];us.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 ls=function(){function e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(ps("interpolation",t),new e(t[0],t[1])):cs},e}(),cs=new ls("{{","}}"),hs=function(){function e(e){void 0===e&&(e=null),this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return e.prototype.addSource=function(e,t){return void 0===t&&(t=null),this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this},e.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},e.prototype.addMapping=function(e,t,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=t&&!this.sourcesContent.has(t))throw new Error('Unknown source file "'+t+'"');if(null==e)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(t&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:t,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(e.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){var e=this;if(!this.hasMappings)return null;var t=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach((function(i,s){t.set(i,s),n.push(i),r.push(e.sourcesContent.get(i)||null)}));var i="",s=0,o=0,a=0,u=0;return this.lines.forEach((function(e){s=0,i+=e.map((function(e){var n=fs(e.col0-s);return s=e.col0,null!=e.sourceUrl&&(n+=fs(t.get(e.sourceUrl)-o),o=t.get(e.sourceUrl),n+=fs(e.sourceLine0-a),a=e.sourceLine0,n+=fs(e.sourceCol0-u),u=e.sourceCol0),n})).join(","),i+=";"})),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},e.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function(e){var t="";e=sn(e);for(var n=0;n<e.length;){var r=e.charCodeAt(n++),i=e.charCodeAt(n++),s=e.charCodeAt(n++);t+=ds(r>>2),t+=ds((3&r)<<4|(isNaN(i)?0:i>>4)),t+=isNaN(i)?"=":ds((15&i)<<2|s>>6),t+=isNaN(i)||isNaN(s)?"=":ds(63&s)}return t}(JSON.stringify(this,null,0)):""},e}();function fs(e){e=e<0?1+(-e<<1):e<<1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=ds(n)}while(e>0);return t}function ds(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[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 vs=/'|\\|\n|\r|\$/g,ms=/^[$A-Z_][0-9A-Z_$]*$/i,ys=Mt("error",null,null),gs=Mt("stack",null,null),_s=function(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]},Es=function(){function e(e){this._indent=e,this._classes=[],this._preambleLineCount=0,this._lines=[new _s(e)]}return e.createRoot=function(){return new e(0)},Object.defineProperty(e.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),e.prototype.println=function(e,t){void 0===t&&(t=""),this.print(e||null,t,!0)},e.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},e.prototype.lineLength=function(){return this._currentLine.indent*" ".length+this._currentLine.partsLength},e.prototype.print=function(e,t,n){void 0===n&&(n=!1),t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),n&&this._lines.push(new _s(this._indent))},e.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},e.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},e.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},e.prototype.pushClass=function(e){this._classes.push(e)},e.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(e.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),e.prototype.toSource=function(){return this.sourceLines.map((function(e){return e.parts.length>0?ws(e.indent)+e.parts.join(""):""})).join("\n")},e.prototype.toSourceMapGenerator=function(e,t){void 0===t&&(t=0);for(var n=new hs(e),r=!1,i=function(){r||(n.addSource(e," ").addMapping(0,e,0,0),r=!0)},s=0;s<t;s++)n.addLine(),i();return this.sourceLines.forEach((function(e,t){n.addLine();for(var s=e.srcSpans,o=e.parts,a=e.indent*" ".length,u=0;u<s.length&&!s[u];)a+=o[u].length,u++;for(u<s.length&&0===t&&0===a?r=!0:i();u<s.length;){var p=s[u],l=p.start.file,c=p.start.line,h=p.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,c,h),a+=o[u].length,u++;u<s.length&&(p===s[u]||!s[u]);)a+=o[u].length,u++}})),n},e.prototype.setPreambleLineCount=function(e){return this._preambleLineCount=e},e.prototype.spanOf=function(e,t){var n=this._lines[e-this._preambleLineCount];if(n)for(var r=t-ws(n.indent).length,i=0;i<n.parts.length;i++){var s=n.parts[i];if(s.length>r)return n.srcSpans[i];r-=s.length}return null},Object.defineProperty(e.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),e}(),xs=function(){function e(e){this._escapeDollarInStrings=e}return e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitReturnStmt=function(e,t){return t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitIfStmt=function(e,t){t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");var n=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!n?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),n&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null},e.prototype.visitThrowStmt=function(e,t){return t.print(e,"throw "),e.error.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitCommentStmt=function(e,t){return e.multiline?t.println(e,"/* "+e.comment+" */"):e.comment.split("\n").forEach((function(n){t.println(e,"// "+n)})),null},e.prototype.visitJSDocCommentStmt=function(e,t){return t.println(e,"/*"+e.toString()+"*/"),null},e.prototype.visitWriteVarExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),t.print(e,e.name+" = "),e.valu
/**
* @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 Cs=function(e){function t(){return e.call(this,!1)||this}return l(t,e),t.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),this._visitClassConstructor(e,t),null!=e.parent&&(t.print(e,e.name+".prototype = Object.create("),e.parent.visitExpression(this,t),t.println(e,".prototype);")),e.getters.forEach((function(r){return n._visitClassGetter(e,r,t)})),e.methods.forEach((function(r){return n._visitClassMethod(e,r,t)})),t.popClass(),null},t.prototype._visitClassConstructor=function(e,t){t.print(e,"function "+e.name+"("),null!=e.constructorMethod&&this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),null!=e.constructorMethod&&e.constructorMethod.body.length>0&&(t.println(e,"var self = this;"),this.visitAllStatements(e.constructorMethod.body,t)),t.decIndent(),t.println(e,"}")},t.prototype._visitClassGetter=function(e,t,n){n.println(e,"Object.defineProperty("+e.name+".prototype, '"+t.name+"', { get: function() {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"}});")},t.prototype._visitClassMethod=function(e,t,n){n.print(e,e.name+".prototype."+t.name+" = function("),this._visitParams(t.params,n),n.println(e,") {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"};")},t.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},t.prototype.visitReadVarExpr=function(t,n){if(t.builtin===be.This)n.print(t,"self");else{if(t.builtin===be.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");e.prototype.visitReadVarExpr.call(this,t,n)}return null},t.prototype.visitDeclareVarStmt=function(e,t){return t.print(e,"var "+e.name),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null},t.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),null},t.prototype.visitInvokeFunctionExpr=function(t,n){var r=t.fn;return r instanceof Ne&&r.builtin===be.Super?(n.currentClass.parent.visitExpression(this,n),n.print(t,".call(this"),t.args.length>0&&(n.print(t,", "),this.visitAllExpressions(t.args,n,",")),n.print(t,")")):e.prototype.visitInvokeFunctionExpr.call(this,t,n),null},t.prototype.visitFunctionExpr=function(e,t){return t.print(e,"function"+(e.name?" "+e.name:"")+"("),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null},t.prototype.visitDeclareFunctionStmt=function(e,t){return t.print(e,"function "+e.name+"("),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null},t.prototype.visitTryCatchStmt=function(e,t){t.println(e,"try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println(e,"} catch ("+ys.name+") {"),t.incIndent();var n=[gs.set(ys.prop("stack")).toDeclStmt(null,[qe.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println(e,"}"),null},t.prototype.visitLocalizedString=function(e,t){var n=this;t.print(e,'$localize((this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})(');for(var r=[e.serializeI18nHead()],i=1;i<e.messageParts.length;i++)r.push(e.serializeI18nTemplatePart(i));return t.print(e,"["+r.map((function(e){return Ss(e.cooked,!1)})).join(", ")+"], "),t.print(e,"["+r.map((function(e){return Ss(e.raw,!1)})).join(", ")+"])"),e.expressions.forEach((function(r){t.print(e,", "),r.visitExpression(n,t)})),t.print(e,")"),null},t.prototype._visitParams=function(e,t){this.visitAllObjects((function(e){return t.print(null,e.name)}),e,t,",")},t.prototype.getBuiltinMethodName=function(e){var t;switch(e){case Pe.ConcatArray:t="concat";break;case Pe.SubscribeObservable:t="subscribe";break;case Pe.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},t}(xs),bs=fun
/**
* @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
*/
/**
* @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 Ps=function(){function e(e){this.context=e}return e.prototype.resolveExternalReference=function(e){if("@angular/core"!==e.moduleName)throw new Error("Cannot resolve external reference to "+e.moduleName+", only references to @angular/core are supported.");if(!this.context.hasOwnProperty(e.name))throw new Error("No value provided for @angular/core symbol '"+e.name+"'.");return this.context[e.name]},e.prototype.parameters=function(e){throw new Error("Not implemented.")},e.prototype.annotations=function(e){throw new Error("Not implemented.")},e.prototype.shallowAnnotations=function(e){throw new Error("Not implemented.")},e.prototype.tryAnnotations=function(e){throw new Error("Not implemented.")},e.prototype.propMetadata=function(e){throw new Error("Not implemented.")},e.prototype.hasLifecycleHook=function(e,t){throw new Error("Not implemented.")},e.prototype.guards=function(e){throw new Error("Not implemented.")},e.prototype.componentModuleUrl=function(e,t){throw new Error("Not implemented.")},e}();function Ns(e,t){return void 0===t&&(t=!1),Lt(Object.keys(e).map((function(n){return{key:n,quoted:t,value:e[n]}})))}
/**
* @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 As(e){var t=e.internalType,n=e.type,r=e.bootstrap,i=e.declarations,s=e.imports,o=e.exports,a=e.schemas,u=e.containsForwardDecls,p=e.emitInline,l=e.id,c=[],h={type:t};if(r.length&&(h.bootstrap=ks(r,u)),p)i.length&&(h.declarations=ks(i,u)),s.length&&(h.imports=ks(s,u)),o.length&&(h.exports=ks(o,u));else{var f=function(e){var t=e.adjacentType,n=e.declarations,r=e.imports,i=e.exports,s=e.containsForwardDecls,o={};n.length&&(o.declarations=ks(n,s));r.length&&(o.imports=ks(r,s));i.length&&(o.exports=ks(i,s));if(0===Object.keys(o).length)return null;var a=(p=new Fe(It(tr.setNgModuleScope),[t,nr(o)]),l=new We({name:"ngJitMode",moduleName:null}),c=new Je(he.Identical,new Ae(l),Vt("undefined")),h=new Je(he.Or,c,l,void 0,void 0,!0),new Je(he.And,h,p)),u=new Ye([],[a.toStmt()]);var p,l,c,h;return new Fe(u,[]).toStmt()}(e);null!==f&&c.push(f)}return a&&a.length&&(h.schemas=Ft(a.map((function(e){return e.value})))),l&&(h.id=l),{expression:It(tr.defineNgModule).callFn([nr(h)]),type:new de(It(tr.NgModuleDefWithMeta,[new de(n.type),Is(i),Is(s),Is(o)])),additionalStatements:c}}function Ms(e){var t=ts({name:e.name,type:e.type,internalType:e.internalType,typeArgumentCount:0,deps:e.deps,injectFn:tr.inject,target:Xi.NgModule}),n={factory:t.factory};return null!==e.providers&&(n.providers=e.providers),e.imports.length>0&&(n.imports=Ft(e.imports)),{expression:It(tr.defineInjector).callFn([nr(n)]),type:new de(It(tr.InjectorDef,[new de(e.type.type)])),statements:t.statements}}function Is(e){var t=e.map((function(e){return Ot(e.type)}));return e.length>0?Rt(Ft(t)):Se}function ks(e,t){var n=Ft(e.map((function(e){return e.value})));return t?Dt([],[new ct(n)]):n}
/**
* @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 Rs(e){var t=[];return t.push({key:"name",value:Vt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type.value,quoted:!1}),t.push({key:"pure",value:Vt(e.pure),quoted:!1}),{expression:It(tr.definePipe).callFn([Lt(t)]),type:new de(It(tr.PipeDefWithMeta,[ir(e.type.type,e.typeArgumentCount),new de(new De(e.pipeName))]))}}
/**
* @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 Os,Fs=function(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+e+" "+n+" ["+t+"] in "+r},Ls=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.toAbsolute=function(e){return new so(e+this.start,e+this.end)},e}(),Ds=function(){function e(e,t){this.span=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return null},e.prototype.toString=function(){return"AST"},e}(),Bs=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.prefix=r,o.uninterpretedExpression=i,o.location=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitQuote(this,t)},t.prototype.toString=function(){return"Quote"},t}(Ds),Vs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.visit=function(e,t){},t}(Ds),js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitImplicitReceiver(this,t)},t}(Ds),Us=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expressions=r,i}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitChain(this,t)},t}(Ds),Hs=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.condition=r,o.trueExp=i,o.falseExp=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitConditional(this,t)},t}(Ds),qs=function(e){function t(t,n,r,i){var s=e.call(this,t,n)||this;return s.receiver=r,s.name=i,s}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyRead(this,t)},t}(Ds),Ws=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.receiver=r,o.name=i,o.value=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyWrite(this,t)},t}(Ds),zs=function(e){function t(t,n,r,i){var s=e.call(this,t,n)||this;return s.receiver=r,s.name=i,s}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafePropertyRead(this,t)},t}(Ds),Ks=function(e){function t(t,n,r,i){var s=e.call(this,t,n)||this;return s.obj=r,s.key=i,s}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedRead(this,t)},t}(Ds),Qs=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.obj=r,o.key=i,o.value=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedWrite(this,t)},t}(Ds),Gs=function(e){function t(t,n,r,i,s,o){var a=e.call(this,t,n)||this;return a.exp=r,a.name=i,a.args=s,a.nameSpan=o,a}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPipe(this,t)},t}(Ds),Xs=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.value=r,i}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralPrimitive(this,t)},t}(Ds),$s=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expressions=r,i}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralArray(this,t)},t}(Ds),Ys=function(e){function t(t,n,r,i){var s=e.call(this,t,n)||this;return s.keys=r,s.values=i,s}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralMap(this,t)},t}(Ds),Js=function(e){function t(t,n,r,i){var s=e.call(this,t,n)||this;return s.strings=r,s.expressions=i,s}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitInterpolation(this,t)},t}(Ds),Zs=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.operation=r,o.left=i,o.right=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitBinary(this,t)},t}(Ds),eo=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expression=r,i}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPrefixNot(this,t)},t}(Ds),to=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expression=r,i}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitNonNullAssert(th
/**
* @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
*/(e),s=0,i.escapedString.replace(Zo,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[2],o="",a=e[4],u="";a&&a.startsWith("{%BLOCK%")&&(o=i.blocks[s++],a=a.substring("%BLOCK%".length+1),u="{");var p=r(new ta(n,o));return""+e[1]+p.selector+e[3]+u+p.content+a}))},e.prototype._scopeSelector=function(e,t,n,r){var i=this;return e.split(",").map((function(e){return e.trim().split(Ko)})).map((function(e){var s=d(e),o=s[0],a=s.slice(1);return v([function(e){return i._selectorNeedsScoping(e,t)?r?i._applyStrictSelectorScope(e,t,n):i._applySelectorScope(e,t,n):e}(o)],a).join(" ")})).join(", ")},e.prototype._selectorNeedsScoping=function(e,t){return!this._makeScopeMatcher(t).test(e)},e.prototype._makeScopeMatcher=function(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+Qo,"m")},e.prototype._applySelectorScope=function(e,t,n){return this._applySimpleSelectorScope(e,t,n)},e.prototype._applySimpleSelectorScope=function(e,t,n){if(Go.lastIndex=0,Go.test(e)){var r=this.strictStyling?"["+n+"]":t;return e.replace(Wo,(function(e,t){return t.replace(/([^:]*)(:*)(.*)/,(function(e,t,n,i){return t+r+n+i}))})).replace(Go,r+" ")}return t+" "+e},e.prototype._applyStrictSelectorScope=function(e,t,n){for(var r,i=this,s="["+(t=t.replace(/\[is=([^\]]*)\]/g,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t[0]})))+"]",o=function(e){var r=e.trim();if(!r)return"";if(e.indexOf(qo)>-1)r=i._applySimpleSelectorScope(e,t,n);else{var o=e.replace(Go,"");if(o.length>0){var a=o.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+s+a[2]+a[3])}}return r},a=new Oo(e),u="",p=0,l=/( |>|\+|~(?!=))\s*/g,c=!((e=a.content()).indexOf(qo)>-1);null!==(r=l.exec(e));){var h=r[1],f=e.slice(p,r.index).trim();u+=((c=c||f.indexOf(qo)>-1)?o(f):f)+" "+h+" ",p=l.lastIndex}var d=e.substring(p);return u+=(c=c||d.indexOf(qo)>-1)?o(d):d,a.restore(u)},e.prototype._insertPolyfillHostInCssText=function(e){return e.replace($o,Vo).replace(Xo,Bo)},e}(),Oo=function(){function e(e){var t=this;this.placeholders=[],this.index=0,e=e.replace(/(\[[^\]]*\])/g,(function(e,n){var r="__ph-"+t.index+"__";return t.placeholders.push(n),t.index++,r})),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(function(e,n,r){var i="__ph-"+t.index+"__";return t.placeholders.push(r),t.index++,n+i}))}return e.prototype.restore=function(e){var t=this;return e.replace(/__ph-(\d+)__/g,(function(e,n){return t.placeholders[+n]}))},e.prototype.content=function(){return this._content},e}(),Fo=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Lo=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Do=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Bo="-shadowcsshost",Vo="-shadowcsscontext",jo=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Uo=new RegExp("("+Bo+jo,"gim"),Ho=new RegExp("("+Vo+jo,"gim"),qo=Bo+"-no-combinator",Wo=/-shadowcsshost-no-combinator([^\s]*)/,zo=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Ko=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Qo="([>\\s~+[.,{:][\\s\\S]*)?$",Go=/-shadowcsshost/gim,Xo=/:host/gim,$o=/:host-context/gim,Yo=/\/\*\s*[\s\S]*?\*\//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
*/var Jo=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;var Zo=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,ea=/([{}])/g,ta=function(e,t){this.selector=e,this.content=t};var na=function(e,t){this.escapedString=e,this.blocks=t};var ra=function(e,t,n){this.name=e,this.moduleUrl=t,this.setValue=n},ia=function(e,t,n,r,i){this.outputCtx=e,this.stylesVar=t,this.dependencies=n,this.isShimmed=r,this.meta=i},sa=function(){function e(e){this._urlResolver=e,this._shadowCss=new Ro}return e.prototype.compileComponent=function(e,t){var n=t.template;return this._compileStyles(e,t,new Vn({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:kn(t.type)}),this.needsStyleShim(t),!0)},e.prototype.compileStyles=function(e,t,n,r){return void 0===r&&(r=this.needsStyleShim(t)),this._compileStyles(e,t,n,r,!1)},e.prototype.needsStyleShim=function(e){return e.template.encapsulation===P.Emulated},e.prototype._compileStyles=function(e,t,n,r,i){var s=this,o=n.styles.map((function(e){return Vt(s._shimIfNeeded(e,r))})),a=[];n.styleUrls.forEach((function(t){var n=o.length;o.push(null),a.push(new ra(oa(null),t,(function(t){return o[n]=e.importExpr(t)})))}));var u=oa(i?t:null),p=Mt(u).set(Ft(o,new ve(ye,[ue.Const]))).toDeclStmt(null,i?[qe.Final]:[qe.Final,qe.Exported]);return e.statements.push(p),new ia(e,u,a,r,n)},e.prototype._shimIfNeeded=function(e,t){return t?this._shadowCss.shimCssText(e,"_ngcontent-%COMP%","_nghost-%COMP%"):e},e}();function oa(e){var t="styles";return e&&(t+="_"+In(e.type)),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
*/var aa=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}(),ua=function(e,t){this.sourceSpan=e,this.i18n=t},pa=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return l(t,e),t.prototype.visit=function(e,t){return e.visitText(this,t)},t}(ua),la=function(e){function t(t,n,r,i,s,o){var a=e.call(this,i,o)||this;return a.switchValue=t,a.type=n,a.cases=r,a.switchValueSourceSpan=s,a}return l(t,e),t.prototype.visit=function(e,t){return e.visitExpansion(this,t)},t}(ua),ca=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}(),ha=function(e){function t(t,n,r,i,s){var o=e.call(this,r,s)||this;return o.name=t,o.value=n,o.valueSpan=i,o}return l(t,e),t.prototype.visit=function(e,t){return e.visitAttribute(this,t)},t}(ua),fa=function(e){function t(t,n,r,i,s,o,a){void 0===s&&(s=null),void 0===o&&(o=null);var u=e.call(this,i,a)||this;return u.name=t,u.attrs=n,u.children=r,u.startSourceSpan=s,u.endSourceSpan=o,u}return l(t,e),t.prototype.visit=function(e,t){return e.visitElement(this,t)},t}(ua),da=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 va(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 ma,ya=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(t){t&&n.push(va(r,t,e))})),Array.prototype.concat.apply([],n)},e}();!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_QUOTE=12]="ATTR_QUOTE",e[e.ATTR_VALUE=13]="ATTR_VALUE",e[e.DOC_TYPE=14]="DOC_TYPE",e[e.EXPANSION_FORM_START=15]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=16]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=17]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=18]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=19]="EXPANSION_FORM_END",e[e.EOF=20]="EOF"}(ma||(ma={}));var ga=function(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n},_a=function(e){function t(t,n,r){var i=e.call(this,r,t)||this;return i.tokenType=n,i}return l(t,e),t}(gr),Ea=function(e,t){this.tokens=e,this.errors=t};var xa=/\r\n?/g;function Sa(e){return'Unexpected character "'+(0===e?"EOF":String.fromCharCode(e))+'"'}function wa(e){return'Unknown entity "'+e+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}var Ca=function(e){this.error=e},ba=function(){function e(e,t,n){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||cs,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map((function(e){return e.codePointAt(0)||0}));var r=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new ka(e,r):new Ia(e,r),this._preserveLineEndings=n.preserveLineEndings||!1;try{this._cursor.init()}catch(e){this.handleError(e)}}return e.prototype._processCarriageReturns=function(e){return this._preserveLineEndings?e:e.replace(xa,"\n")},e.prototype.tokenize=function(){for(;0!==this._cursor.peek();){var e=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(45)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(47)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}return this._beginToken(ma.EOF),this._endToken([]),new Ea(function(e){for(var t=[],n=void 0,r=0;r<e.length;r++){var i=e[r];n&&n.type==ma.TEXT&&i.type==ma.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,t.push(n))}return t}(this.tokens),this.errors)},e.prototype._tokenizeExpansionForm=function(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if((61===(e=this._cursor.peek())||pr(e)||ur(e))&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;var e;if(125===this._cursor.peek()){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},e.prototype._beginToken=function(e,t){void 0===t&&(t=this._cursor.clone()),this._currentTokenStart=t,this._currentTokenType=e},e.prototype._endToken=function(e,t){if(null===this._
/**
* @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 Va=function(e){function t(){return e.call(this,T)||this}return l(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(La),ja=new Set(["pre","template","textarea","script","style"]),Ua=" \f\n\r\t\v -\u2028\u2029 \ufeff",Ha=new RegExp("[^"+Ua+"]"),qa=new RegExp("["+Ua+"]{2,}","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 Wa(e){return e.replace(new RegExp("","g")," ")}var za=function(){function e(){}return e.prototype.visitElement=function(e,t){return ja.has(e.name)||e.attrs.some((function(e){return"ngPreserveWhitespaces"===e.name}))?new fa(e.name,va(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new fa(e.name,e.attrs,(n=this,r=e.children,i=[],r.forEach((function(e,t){var s={prev:r[t-1],next:r[t+1]},o=e.visit(n,s);o&&i.push(o)})),i),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);var n,r,i},e.prototype.visitAttribute=function(e,t){return"ngPreserveWhitespaces"!==e.name?e:null},e.prototype.visitText=function(e,t){var n=e.value.match(Ha),r=t&&(t.prev instanceof la||t.next instanceof la);return n||r?new pa(Wa(e.value).replace(qa," "),e.sourceSpan,e.i18n):null},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}();function Ka(e){return new Fa(va(new za,e.rootNodes),e.errors)}
/**
* @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 Qa=["zero","one","two","few","many","other"];function Ga(e){var t=new Ja;return new $a(va(t,e),t.isExpanded,t.errors)}var Xa,$a=function(e,t,n){this.nodes=e,this.expanded=t,this.errors=n},Ya=function(e){function t(t,n){return e.call(this,t,n)||this}return l(t,e),t}(gr),Ja=function(){function e(){this.isExpanded=!1,this.errors=[]}return e.prototype.visitElement=function(e,t){return new fa(e.name,e.attrs,va(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitAttribute=function(e,t){return e},e.prototype.visitText=function(e,t){return e},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansion=function(e,t){return this.isExpanded=!0,"plural"==e.type?function(e,t){var n=e.cases.map((function(e){-1!=Qa.indexOf(e.value)||e.value.match(/^=\d+$/)||t.push(new Ya(e.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Qa.join(", ")));var n=Ga(e.expression);return t.push.apply(t,v(n.errors)),new fa("ng-template",[new ha("ngPluralCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)})),r=new ha("[ngPlural]",e.switchValue,e.switchValueSourceSpan);return new fa("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}(e,this.errors):function(e,t){var n=e.cases.map((function(e){var n=Ga(e.expression);return t.push.apply(t,v(n.errors)),"other"===e.value?new fa("ng-template",[new ha("ngSwitchDefault","",e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan):new fa("ng-template",[new ha("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)})),r=new ha("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new fa("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}
/**
* @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
*/(e,this.errors)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Should not be reached")},e}();var Za,eu=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}(),tu=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}(),nu=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}(),ru=((Xa={})[4]=4,Xa[1]=1,Xa[2]=2,Xa[0]=0,Xa[3]=3,Xa),iu=function(){function e(e,t,n,r,i,s){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=s,this.isAnimation=4===this.type}return e.fromBoundProperty=function(t){var n=ru[t.type];return new e(t.name,n,t.securityContext,t.value,t.unit,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},e}(),su=function(){function e(t,n,r,i,s,o){this.name=t,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=s,this.handlerSpan=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){var n=0===t.type?t.targetOrPhase:null,r=1===t.type?t.targetOrPhase:null;return new e(t.name,n,r,t.handler,t.sourceSpan,t.handlerSpan)},e.prototype.visit=function(e,t){return e.visitEvent(this,t)},e}(),ou=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}(),au=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}(),uu=function(){function e(e,t,n,r,i,s,o,a,u,p,l,c,h){this.name=e,this.attrs=t,this.inputs=n,this.outputs=r,this.references=i,this.directives=s,this.providers=o,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}(),pu=function(){function e(e,t,n,r,i,s,o,a,u,p,l){this.attrs=e,this.outputs=t,this.references=n,this.variables=r,this.directives=i,this.providers=s,this.hasViewContainer=o,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}(),lu=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}(),cu=function(){function e(e,t,n,r,i,s){this.directive=e,this.inputs=t,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=s}return e.prototype.visit=function(e,t){return e.visitDirective(this,t)},e}(),hu=function(){function e(e,t,n,r,i,s,o,a){this.token=e,this.multiProvider=t,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=s,this.sourceSpan=o,this.isModule=a}return e.prototype.visit=function(e,t){return null},e}();!function(e){e[e.PublicService=0]="PublicService",e[e.PrivateService=1]="PrivateService",e[e.Component=2]="Component",e[e.Directive=3]="Directive",e[e.Builtin=4]="Builtin"}(Za||(Za={}));var fu=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}(),du=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.protot
/**
* @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 yu=function(e){function t(t,n){return e.call(this,n,t)||this}return l(t,e),t}(gr),gu=function(e,t){var n=this;this.reflector=e,this.component=t,this.errors=[],this.viewQueries=function(e){var t=1,n=new Map;return e.viewQueries&&e.viewQueries.forEach((function(e){return Cu(n,{meta:e,queryId:t++})})),n}(t),this.viewProviders=new Map,t.viewProviders.forEach((function(e){null==n.viewProviders.get(Bn(e.token))&&n.viewProviders.set(Bn(e.token),!0)}))},_u=function(){function e(e,t,n,r,i,s,o,a,u){var p=this;this.viewContext=e,this._parent=t,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach((function(e){return p._attrs[e.name]=e.value}));var l,c,h,f,d=r.map((function(e){return e.directive}));if(this._allProviders=(l=d,c=u,h=e.errors,f=new Map,l.forEach((function(e){wu([{token:{identifier:e.type},useClass:e.type}],e.isComponent?Za.Component:Za.Directive,!0,c,h,f,!1)})),l.filter((function(e){return e.isComponent})).concat(l.filter((function(e){return!e.isComponent}))).forEach((function(e){wu(e.providers,Za.PublicService,!1,c,h,f,!1),wu(e.viewProviders,Za.PrivateService,!1,c,h,f,!1)})),f),this._contentQueries=function(e,t){var n=e,r=new Map;return t.forEach((function(e,t){e.queries&&e.queries.forEach((function(e){return Cu(r,{meta:e,queryId:n++})}))})),r}(a,d),Array.from(this._allProviders.values()).forEach((function(e){p._addQueryReadsTo(e.token,e.token,p._queriedTokens)})),o){var v=Cn(this.viewContext.reflector,Sn.TemplateRef);this._addQueryReadsTo(v,v,this._queriedTokens)}s.forEach((function(e){var t=e.value||Cn(p.viewContext.reflector,Sn.ElementRef);p._addQueryReadsTo({value:e.name},t,p._queriedTokens)})),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(Sn.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach((function(e){(e.eager||p._queriedTokens.get(Bn(e.token)))&&p._getOrCreateLocalProvider(e.providerType,e.token,!0)}))}return e.prototype.afterElement=function(){var e=this;Array.from(this._allProviders.values()).forEach((function(t){e._getOrCreateLocalProvider(t.providerType,t.token,!1)}))},Object.defineProperty(e.prototype,"transformProviders",{get:function(){var e=[],t=[];return this._transformedProviders.forEach((function(n){n.eager?t.push(n):e.push(n)})),e.concat(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transformedDirectiveAsts",{get:function(){var e=this.transformProviders.map((function(e){return e.token.identifier})),t=this._directiveAsts.slice();return t.sort((function(t,n){return e.indexOf(t.directive.type)-e.indexOf(n.directive.type)})),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryMatches",{get:function(){var e=[];return this._queriedTokens.forEach((function(t){e.push.apply(e,v(t))})),e},enumerable:!0,configurable:!0}),e.prototype._addQueryReadsTo=function(e,t,n){this._getQueriesFor(e).forEach((function(e){var r=e.meta.read||t,i=Bn(r),s=n.get(i);s||(s=[],n.set(i,s)),s.push({queryId:e.queryId,value:r})}))},e.prototype._getQueriesFor=function(e){for(var t,n=[],r=this,i=0;null!==r;)(t=r._contentQueries.get(Bn(e)))&&n.push.apply(n,v(t.filter((function(e){return e.meta.descendants||i<=1})))),r._directiveAsts.length>0&&i++,r=r._parent;return(t=this.viewContext.viewQueries.get(Bn(e)))&&n.push.apply(n,v(t)),n},e.prototype._getOrCreateLocalProvider=function(e,t,n){var r=this,i=this._allProviders.get(Bn(t));if(!i||(e===Za.Directive||e===Za.PublicService)&&i.providerType===Za.PrivateService||(e===Za.PrivateService||e===Za.PublicService)&&i.providerType===Za.Builtin)return null;var s=this._transformedProviders.get(Bn(t));if(s)return s;if(null!=this._seenProviders.get(Bn(t)))return this.viewContext.errors.push(new yu("Cannot instantiate cyclic dependency! "+Dn(t),this._sourceSpan)),null;this._seenProviders.set(Bn(t),!0);var o=i.providers.map((function(e){var t=e.useValue,s=e.useExisting,o=void 0;if(null!=e.useExisting){var
/**
* @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 bu=function(e,t){this.style=e,this.styleUrls=t};function Tu(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(Au);return null===t||"package"==t[1]||"asset"==t[1]}var Pu=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Nu=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,Au=/^([^:/?#]+):/,Mu=function(){function e(e,t,n,r,i){if(this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=n,this.errors=i,this.pipesByName=null,this._usedPipes=new Map,r){var s=new Map;r.forEach((function(e){return s.set(e.name,e)})),this.pipesByName=s}}return Object.defineProperty(e.prototype,"interpolationConfig",{get:function(){return this._interpolationConfig},enumerable:!0,configurable:!0}),e.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},e.prototype.createBoundHostProperties=function(e,t){var n=this;if(e.hostProperties){var r=[];return Object.keys(e.hostProperties).forEach((function(i){var s=e.hostProperties[i];"string"==typeof s?n.parsePropertyBinding(i,s,!0,t,t.start.offset,void 0,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+s+'" ('+typeof s+")",t)})),r}return null},e.prototype.createDirectiveHostPropertyAsts=function(e,t,n){var r=this,i=this.createBoundHostProperties(e,n);return i&&i.map((function(e){return r.createBoundElementProperty(t,e)}))},e.prototype.createDirectiveHostEventAsts=function(e,t){var n=this;if(e.hostListeners){var r=[];return Object.keys(e.hostListeners).forEach((function(i){var s=e.hostListeners[i];"string"==typeof s?n.parseEvent(i,s,t,t,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+s+'" ('+typeof s+")",t)})),r}return null},e.prototype.parseInterpolation=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseInterpolation(e,n,t.start.offset,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),this._checkPipes(r,t),r}catch(e){return this._reportError(""+e,t),this._exprParser.wrapLiteralPrimitive("ERROR",n,t.start.offset)}},e.prototype.parseInlineTemplateBinding=function(e,t,n,r,i,s,o){for(var a=this._parseTemplateBindings(e,t,n,r),u=0;u<a.length;u++){var p=a[u];p.keyIsVar?o.push(new fo(p.key,p.name,n)):p.expression?this._parsePropertyAst(p.key,p.expression,n,void 0,i,s):(i.push([p.key,""]),this.parseLiteralAttr(p.key,null,n,r,void 0,i,s))}},e.prototype._parseTemplateBindings=function(e,t,n,r){var i=this,s=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(e,t,s,r);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach((function(e){e.expression&&i._checkPipes(e.expression,n)})),o.warnings.forEach((function(e){i._reportError(e,n,hr.WARNING)})),o.templateBindings}catch(e){return this._reportError(""+e,n),[]}},e.prototype.parseLiteralAttr=function(e,t,n,r,i,s,o){ku(e)?(e=e.substring(1),t&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,hr.ERROR),this._parseAnimation(e,t,n,r,i,s,o)):o.push(new co(e,this._exprParser.wrapLiteralPrimitive(t,"",r),Os.LITERAL_ATTR,n,i))},e.prototype.parsePropertyBinding=function(e,t,n,r,i,s,o,a){0===e.length&&this._reportError("Property name is missing in binding",r);var u=!1;e.startsWith("animate-")?(u=!0,e=e.substring("animate-".length)):ku(e)&&(u=!0,e=e.substring(1)),u?this._parseAnimation(e,t,r,i,s,o,a):this._parsePropertyAst(e,this._parseBinding(t,n,s||r,i),r,s,o,a)},e.prototype.parsePropertyInterpolation=function(e,t,n,r,i,s){var o=this.parseInterpolation(t,r||n);return!!o&&(this._parsePropertyAst(e,o,n,r,i,s),!0)},e.prototype._parsePropertyAst=function(e,t,n,r,i,s){i.push([e,t.source]),s.push(new co(e,t,Os.DEFAULT,n,r))},e.prototype._parseAnimation=function(e,t,n,r,i,s,o){0===e.length&&this._reportError("Animation trigger is missing",n);var a=this._parseBinding(t||"undefined",!1,i||n,r);s.push([e,a.source])
/**
* @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 Ou;function Fu(e){var t=null,n=null,r=null,i=!1,s="";e.attrs.forEach((function(e){var o=e.name.toLowerCase();"select"==o?t=e.value:"href"==o?n=e.value:"rel"==o?r=e.value:"ngNonBindable"==e.name?i=!0:"ngProjectAs"==e.name&&e.value.length>0&&(s=e.value)})),t=function(e){if(null===e||0===e.length)return"*";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
*/(t);var o=e.name.toLowerCase(),a=Ou.OTHER;return g(o)?a=Ou.NG_CONTENT:"style"==o?a=Ou.STYLE:"script"==o?a=Ou.SCRIPT:"link"==o&&"stylesheet"==r&&(a=Ou.STYLESHEET),new Lu(a,t,n,i,s)}!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"}(Ou||(Ou={}));var Lu=function(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i};var Du,Bu=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;function Vu(){return Du||(Du=M.parse("*")[0]),Du}var ju=function(e){function t(t,n,r){return e.call(this,n,t,r)||this}return l(t,e),t}(gr),Uu=function(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n},Hu=function(){function e(e,t,n,r,i,s,o){this._config=e,this._reflector=t,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=s,this.transforms=o}return Object.defineProperty(e.prototype,"expressionParser",{get:function(){return this._exprParser},enumerable:!0,configurable:!0}),e.prototype.parse=function(e,t,n,r,i,s,o){var a=this.tryParse(e,t,n,r,i,s,o),u=a.errors.filter((function(e){return e.level===hr.WARNING})),p=a.errors.filter((function(e){return e.level===hr.ERROR}));if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),p.length>0)throw Zt("Template parse errors:\n"+p.join("\n"),p);return{template:a.templateAst,pipes:a.usedPipes}},e.prototype.tryParse=function(e,t,n,r,i,s,o){var a="string"==typeof t?this._htmlParser.parse(t,s,{tokenizeExpansionForms:!0,interpolationConfig:this.getInterpolationConfig(e)}):t;return o||(a=Ka(a)),this.tryParseHtml(this.expandHtml(a),e,n,r,i)},e.prototype.tryParseHtml=function(e,t,n,r,i){var s,o=e.errors,a=[];if(e.rootNodes.length>0){var u=Ju(n),p=Ju(r),l=new gu(this._reflector,t),c=void 0;t.template&&t.template.interpolation&&(c={start:t.template.interpolation[0],end:t.template.interpolation[1]});var h=new Mu(this._exprParser,c,this._schemaRegistry,p,o),f=new qu(this._reflector,this._config,l,u,h,this._schemaRegistry,i,o);s=va(f,e.rootNodes,Xu),o.push.apply(o,v(l.errors)),a.push.apply(a,v(h.getUsedPipes()))}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,o),o.length>0?new Uu(s,a,o):(this.transforms&&this.transforms.forEach((function(e){s=mu(e,s)})),new Uu(s,a,o))},e.prototype.expandHtml=function(e,t){void 0===t&&(t=!1);var n=e.errors;if(0==n.length||t){var r=Ga(e.rootNodes);n.push.apply(n,v(r.errors)),e=new Fa(r.nodes,n)}return e},e.prototype.getInterpolationConfig=function(e){if(e.template)return ls.fromArray(e.template.interpolation)},e.prototype._assertNoReferenceDuplicationOnTemplate=function(e,t){var n=[];e.filter((function(e){return!!e.references})).forEach((function(e){return e.references.forEach((function(e){var r=e.name;if(n.indexOf(r)<0)n.push(r);else{var i=new ju('Reference "#'+r+'" is defined several times',e.sourceSpan,hr.ERROR);t.push(i)}}))}))},e}(),qu=function(){function e(e,t,n,r,i,s,o,a){var u=this;this.reflector=e,this.config=t,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=s,this._schemas=o,this._targetErrors=a,this.selectorMatcher=new I,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach((function(e,t){var n=M.parse(e.selector);u.selectorMatcher.addSelectables(n,e),u.directivesIndex.set(e,t)}))}return e.prototype.visitExpansion=function(e,t){return null},e.prototype.visitExpansionCase=function(e,t){return null},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(Vu()),r=Wa(e.value),i=this._bindingParser.parseInterpolation(r,e.sourceSpan);return i?new tu(i,n,e.sourceSpan):new eu(r,n,e.sourceSpan)},e.prototype.visitAttribute=function(e,t){return new nu(e.name,e.value,e.sourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitElement=function(e,t){var n=this,r=this.contentQueryStartId,i=e.name,s=Fu(e);if(s.type===Ou.SCRIPT||s.type===Ou.STYLE)return null;if(s.type===Ou.STYLESHEET&&Tu(s.hrefAttr))return null;var o=[],a=[],u=[
/**
* @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 ep(e){var t=e.charCodeAt(0);if(t==e.charCodeAt(e.length-1)&&(39==t||34==t)){var n=e.substring(1,e.length-1);-1==n.indexOf("'")&&-1==n.indexOf('"')&&(e=n)}return e}function tp(e){return e.replace(/[a-z][A-Z]/g,(function(e){return e.charAt(0)+"-"+e.charAt(1)})).toLowerCase()}var np,rp=function(){function e(e){this._directiveExpr=e,this._hasInitialValues=!1,this.hasBindings=!1,this.hasBindingsWithPipes=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[]}return e.prototype.registerBoundInput=function(e){var t=null,n=e.name;switch(e.type){case 0:t=this.registerInputBasedOnName(n,e.value,e.sourceSpan);break;case 3:t=this.registerStyleInput(n,!1,e.value,e.sourceSpan,e.unit);break;case 2:t=this.registerClassInput(n,!1,e.value,e.sourceSpan)}return!!t},e.prototype.registerInputBasedOnName=function(e,t,n){var r=null,i=e.substring(0,6),s="style"===e||"style."===i||"style!"===i;if(s||!s&&("class"===e||"class."===i||"class!"===i)){var o="."!==e.charAt(5),a=e.substr(o?5:6);r=s?this.registerStyleInput(a,o,t,n):this.registerClassInput(a,o,t,n)}return r},e.prototype.registerStyleInput=function(e,t,n,r,i){if(Zu(n))return null;var s=op(e=tp(e)),o=s.property,a=s.hasOverrideFlag,u=s.unit,p={name:o,sanitize:!o||sp(o),unit:i||u,value:n,sourceSpan:r,hasOverrideFlag:a};
/**
* @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
*/return t?this._styleMapInput=p:((this._singleStyleInputs=this._singleStyleInputs||[]).push(p),ip(this._stylesIndex,o)),this._lastStylingInput=p,this._firstStylingInput=this._firstStylingInput||p,this._checkForPipes(n),this.hasBindings=!0,p},e.prototype.registerClassInput=function(e,t,n,r){if(Zu(n))return null;var i=op(e),s=i.property,o={name:s,value:n,sourceSpan:r,sanitize:!1,hasOverrideFlag:i.hasOverrideFlag,unit:null};if(t){if(this._classMapInput)throw new Error("[class] and [className] bindings cannot be used on the same element simultaneously");this._classMapInput=o}else(this._singleClassInputs=this._singleClassInputs||[]).push(o),ip(this._classesIndex,s);return this._lastStylingInput=o,this._firstStylingInput=this._firstStylingInput||o,this._checkForPipes(n),this.hasBindings=!0,o},e.prototype._checkForPipes=function(e){e instanceof oo&&e.ast instanceof Gs&&(this.hasBindingsWithPipes=!0)},e.prototype.registerStyleAttr=function(e){this._initialStyleValues=function(e){for(var t=[],n=0,r=0,i=0,s=0,o=0,a=null,u=!1;n<e.length;){switch(e.charCodeAt(n++)){case 40:r++;break;case 41:r--;break;case 39:u=u||s>0,0===i?i=39:39===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 34:u=u||s>0,0===i?i=34:34===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 58:a||0!==r||0!==i||(a=tp(e.substring(o,n-1).trim()),s=n);break;case 59:if(a&&s>0&&0===r&&0===i){var p=e.substring(s,n-1).trim();t.push(a,u?ep(p):p),o=n,s=0,a=null,u=!1}}}if(a&&s){p=e.substr(s).trim();t.push(a,u?ep(p):p)}return t}(e),this._hasInitialValues=!0},e.prototype.registerClassAttr=function(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0},e.prototype.populateInitialStylingAttrs=function(e){if(this._initialClassValues.length){e.push(Vt(1));for(var t=0;t<this._initialClassValues.length;t++)e.push(Vt(this._initialClassValues[t]))}if(this._initialStyleValues.length){e.push(Vt(2));for(t=0;t<this._initialStyleValues.length;t+=2)e.push(Vt(this._initialStyleValues[t]),Vt(this._initialStyleValues[t+1]))}},e.prototype.assignHostAttrs=function(e,t){this._directiveExpr&&(e.length||this._hasInitialValues)&&(this.populateInitialStylingAttrs(e),t.set("hostAttrs",Ft(e)))},e.prototype.buildClassMapInstruction=function(e){return this._classMapInput?this._buildMapBasedInstruction(e,!0,this._classMapInput):null},e.prototype.buildStyleMapInstruction=function(e){return this._styleMapInput?this._buildMapBasedInstruction(e,!1,this._styleMapInput):null},e.prototype._buildMapBasedInstruction=function(e,t,n){var r,i=2,s=n.value.visit(e);return s instanceof Js?(i+=s.expressions.length,r=t?function(e){switch(es(e)){case 1:return tr.classMap;case 3:return tr.classMapInterpolate1;case 5:return tr.classMapInterpolate2;case 7:return tr.classMapInterpolate3;case 9:return tr.classMapInterpolate4;case 11:return tr.classMapInterpolate5;case 13:return tr.classMapInterpolate6;case 15:return tr.classMapInterpolate7;case 17:return tr.classMapInterpolate8;default:return tr.classMapInterpolateV}}(s):function(e){switch(es(e)){case 1:return tr.styleMap;case 3:return tr.styleMapInterpolate1;case 5:return tr.styleMapInterpolate2;case 7:return tr.styleMapInterpolate3;case 9:return tr.styleMapInterpolate4;case 11:return tr.styleMapInterpolate5;case 13:return tr.styleMapInterpolate6;case 15:return tr.styleMapInterpolate7;case 17:return tr.styleMapInterpolate8;default:return tr.styleMapInterpolateV}}(s)):r=t?tr.classMap:tr.styleMap,{reference:r,calls:[{supportsInterpolation:!0,sourceSpan:n.sourceSpan,allocateBindingSlots:i,params:function(e){var t=e(s),n=Array.isArray(t)?t:[t];return n}}]}},e.prototype._buildSingleInputs=function(e,t,n,r,i){var s=[];return t.forEach((function(t){var o=s[s.length-1],a=t.value.visit(n),u=e,p=2;a instanceof Js&&(p+=a.expressions.length,r&&(u=r(a)));var l={sourceSpan:t.sourceSpan,allocateBindingSlots:p,supportsInterpolation:!!r,params:function(e){var n=[];n.push(Vt(t.name));var r=e(a);return Array.isArray(r)?n.push.apply(n,v(r)):n.push(r),i||(t.unit?n.push(Vt(t.unit)):t.sanitize&&n.push(It(tr.defaultStyleSanitizer))),n}};o&&o.reference===u?o.calls.push(l):s.push({refere
/**
* @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
*/(o):parseFloat(o);return r=e,i=this.index,s=a,new lp(r,i,np.Number,s,"")},e.prototype.scanString=function(){var e=this.index,t=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=t;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var s=void 0;if(this.peek=this.peek,117==this.peek){var o=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(o))return this.error("Invalid unicode escape [\\u"+o+"]",0);s=parseInt(o,16);for(var a=0;a<5;a++)this.advance()}else s=Ep(this.peek),this.advance();n+=String.fromCharCode(s),r=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}var u,p,l,c=i.substring(r,this.index);return this.advance(),u=e,p=this.index,l=n+c,new lp(u,p,np.String,0,l)},e.prototype.error=function(e,t){var n=this.index+t;return function(e,t,n){return new lp(e,t,np.Error,0,n)}(n,this.index,"Lexer Error: "+e+" at column "+n+" in expression ["+this.input+"]")},e}();function vp(e){return 97<=e&&e<=122||65<=e&&e<=90||95==e||36==e}function mp(e){if(0==e.length)return!1;var t=new dp(e);if(!vp(t.peek))return!1;for(t.advance();0!==t.peek;){if(!yp(t.peek))return!1;t.advance()}return!0}function yp(e){return pr(e)||ur(e)||95==e||36==e}function gp(e){return 45==e||43==e}function _p(e){return 39===e||34===e||96===e}function Ep(e){switch(e){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return e}}var xp=function(e,t,n){this.strings=e,this.expressions=t,this.offsets=n},Sp=function(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n},wp=bp(cs);function Cp(e){return e===cs?wp:bp(e)}function bp(e){var t=nn(e.start)+"([\\s\\S]*?)"+nn(e.end);return new RegExp(t,"g")}var Tp,Pp=function(){function e(e){this._lexer=e,this.errors=[],this.simpleExpressionChecker=Mp}return e.prototype.parseAction=function(e,t,n,r){void 0===r&&(r=cs),this._checkNoInterpolation(e,t,r);var i=this._stripComments(e),s=this._lexer.tokenize(this._stripComments(e)),o=new Ap(e,t,n,s,i.length,!0,this.errors,e.length-i.length).parseChain();return new oo(o,e,t,n,this.errors)},e.prototype.parseBinding=function(e,t,n,r){void 0===r&&(r=cs);var i=this._parseBindingAst(e,t,n,r);return new oo(i,e,t,n,this.errors)},e.prototype.checkSimpleExpression=function(e){var t=new this.simpleExpressionChecker;return e.visit(t),t.errors},e.prototype.parseSimpleBinding=function(e,t,n,r){void 0===r&&(r=cs);var i=this._parseBindingAst(e,t,n,r),s=this.checkSimpleExpression(i);return s.length>0&&this._reportError("Host binding expression cannot contain "+s.join(" "),e,t),new oo(i,e,t,n,this.errors)},e.prototype._reportError=function(e,t,n,r){this.errors.push(new Fs(e,t,n,r))},e.prototype._parseBindingAst=function(e,t,n,r){var i=this._parseQuote(e,t,n);if(null!=i)return i;this._checkNoInterpolation(e,t,r);var s=this._stripComments(e),o=this._lexer.tokenize(s);return new Ap(e,t,n,o,s.length,!1,this.errors,e.length-s.length).parseChain()},e.prototype._parseQuote=function(e,t,n){if(null==e)return null;var r=e.indexOf(":");if(-1==r)return null;var i=e.substring(0,r).trim();if(!mp(i))return null;var s=e.substring(r+1),o=new Ls(0,e.length);return new Bs(o,o.toAbsolute(n),i,s,t)},e.prototype.parseTemplateBindings=function(e,t,n,r){var i=this._lexer.tokenize(t);return new Ap(t,n,r,i,t.length,!1,this.errors,0).parseTemplateBindings(e)},e.prototype.parseInterpolation=function(e,t,n,r){void 0===r&&(r=cs);var i=this.splitInterpolation(e,t,r);if(null==i)return null;for(var s=[],o=0;o<i.expressions.length;++o){var a=i.expressions[o],u=this._stripComments(a),p=this._lexer.tokenize(u),l=new Ap(e,t,n,p,u.length,!1,this.errors,i.offsets[o]+(a.length-u.length)).parseChain();s.push(l)}var c=new Ls(0,null==e?0:e.length);return new oo(new Js(c,c.toAbsolute(n),i.strings,s),e,t,n,this.errors)},e.prototype.splitInterpolation=function(e,t,n){void 0===n&&(n=cs);var r=Cp(n),i=e.split(r);if(i.length<=1)return null;for(var s=[],o=[],a=[],u=0,p=0;p<i.length;p++){var l=i[p];p%2==0?(s.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,o.push(l),a.push(u),u+=l.length+n.end.len
/**
* @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 Op=function(){},Fp=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandle
/**
* @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
*/(e)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&(s="Please provide a CSS unit value for "+t+":"+n)}return{error:s,value:i+r}},t}(Op);
/**
* @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 Bp=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;function Vp(e,t){var n=new Up(t),r=va(n,e),i=t.errors.concat(n.errors),s=i.filter((function(e){return e.level===hr.ERROR}));if(s.length>0)throw Zt("Template parse errors:\n"+s.join("\n"),s);return{nodes:r,errors:i,styleUrls:n.styleUrls,styles:n.styles}}var jp,Up=function(){function e(e){this.bindingParser=e,this.errors=[],this.styles=[],this.styleUrls=[],this.inI18nBlock=!1}return e.prototype.visitElement=function(e){var t,n,r=this,i=Ni(e.i18n);i&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);var s,o=Fu(e);if(o.type===Ou.SCRIPT)return null;if(o.type===Ou.STYLE){var a=1===(s=e).children.length&&s.children[0]instanceof pa?s.children[0].value:null;return null!==a&&this.styles.push(a),null}if(o.type===Ou.STYLESHEET&&Tu(o.hrefAttr))return this.styleUrls.push(o.hrefAttr),null;var u=_(e.name),p=[],l=[],c=[],h=[],d=[],m={},y=[],g=[],E=!1;try{for(var x=f(e.attrs),S=x.next();!S.done;S=x.next()){var w=S.value,C=!1,b=qp(w.name),T=!1;if(w.i18n&&(m[w.name]=w.i18n),b.startsWith("*")){E&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",w.sourceSpan),T=!0,E=!0;var P=w.value,N=b.substring("*".length),A=[],M=w.valueSpan?w.valueSpan.start.offset:w.sourceSpan.start.offset+w.name.length;this.bindingParser.parseInlineTemplateBinding(N,P,w.sourceSpan,M,[],y,A),g.push.apply(g,v(A.map((function(e){return new Ar(e.name,e.value,e.sourceSpan)}))))}else C=this.parseAttribute(u,w,[],p,l,c,h);C||T||d.push(this.visitAttribute(w))}}catch(e){t={error:e}}finally{try{S&&!S.done&&(n=x.return)&&n.call(x)}finally{if(t)throw t.error}}var I,k=va(o.nonBindable?Hp:this,e.children);if(o.type===Ou.NG_CONTENT){e.children&&!e.children.every((function(e){return function(e){return e instanceof pa&&0==e.value.trim().length}(e)||function(e){return e instanceof da}(e)}))&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);var R=o.selectAttr,O=e.attrs.map((function(e){return r.visitAttribute(e)}));I=new Nr(R,O,e.sourceSpan,e.i18n)}else if(u){O=this.extractAttributes(e.name,p,m);I=new Pr(e.name,d,O.bound,l,[],k,h,c,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{O=this.extractAttributes(e.name,p,m);I=new Tr(e.name,d,O.bound,l,k,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(E){O=this.extractAttributes("ng-template",y,m);var F=[];O.literal.forEach((function(e){return F.push(e)})),O.bound.forEach((function(e){return F.push(e)}));var L=I instanceof Tr?{attributes:I.attributes,inputs:I.inputs,outputs:I.outputs}:{attributes:[],inputs:[],outputs:[]},D=u&&i?void 0:e.i18n;I=new Pr(I.name,L.attributes,L.inputs,L.outputs,F,[I],[],g,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,D)}return i&&(this.inI18nBlock=!1),I},e.prototype.visitAttribute=function(e){return new wr(e.name,e.value,e.sourceSpan,e.valueSpan,e.i18n)},e.prototype.visitText=function(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.i18n)},e.prototype.visitExpansion=function(e){var t=this;if(!e.i18n)return null;if(!Ni(e.i18n))throw new Error('Invalid type "'+e.i18n.constructor+'" for "i18n" property of '+e.sourceSpan.toString()+'. Expected a "Message"');var n=e.i18n,r={},i={};return Object.keys(n.placeholders).forEach((function(s){var o=n.placeholders[s];if(s.startsWith("VAR_")){var a=t.bindingParser.interpolationConfig,u=""+a.start+o+a.end;r[s]=t._visitTextWithInterpolation(u,e.sourceSpan)}else i[s]=t._visitTextWithInterpolation(o,e.sourceSpan)})),new Ir(r,i,e.sourceSpan,n)},e.prototype.visitExpansionCase=function(e){return null},e.prototype.visitComment=function(e){return null},e.prototype.extractAttributes=function(e,t,n){var r=this,i=[],s=[];return t.forEach((function(t){var o=n[t.name];if(t.isLiteral)s.push(new wr(t.name,t.expression.source||"",t.sourceSpan,void 0,o));else{var a=r.bindingParser.createBoundElementProperty(e,t,!0,!1);i.push(
/**
* @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 $p=new(function(){function e(){}return e.prototype.visitText=function(e){return e.value},e.prototype.visitContainer=function(e){var t=this;return e.children.map((function(e){return e.visit(t)})).join("")},e.prototype.visitIcu=function(e){var t=this,n=Object.keys(e.cases).map((function(n){return n+" {"+e.cases[n].visit(t)+"}"}));return"{"+e.expressionPlaceholder+", "+e.type+", "+n.join(" ")+"}"},e.prototype.visitTagPlaceholder=function(e){var t=this;return e.isVoid?this.formatPh(e.startName):""+this.formatPh(e.startName)+e.children.map((function(e){return e.visit(t)})).join("")+this.formatPh(e.closeName)},e.prototype.visitPlaceholder=function(e){return this.formatPh(e.name)},e.prototype.visitIcuPlaceholder=function(e,t){return this.formatPh(e.name)},e.prototype.formatPh=function(e){return"{"+Di(e,!1)+"}"},e}());function Yp(e){return e.visit($p)}
/**
* @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 Jp={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},Zp=function(){function e(){this._placeHolderNameCounts={},this._signatureToName={}}return e.prototype.getStartTagPlaceholderName=function(e,t,n){var r=this._hashTag(e,t,n);if(this._signatureToName[r])return this._signatureToName[r];var i=e.toUpperCase(),s=Jp[i]||"TAG_"+i,o=this._generateUniqueName(n?s:"START_"+s);return this._signatureToName[r]=o,o},e.prototype.getCloseTagPlaceholderName=function(e){var t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];var n=e.toUpperCase(),r=Jp[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[t]=i,i},e.prototype.getPlaceholderName=function(e,t){var n=e.toUpperCase(),r="PH: "+n+"="+t;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},e.prototype.getUniquePlaceholder=function(e){return this._generateUniqueName(e.toUpperCase())},e.prototype._hashTag=function(e,t,n){return"<"+e+Object.keys(t).sort().map((function(e){return" "+e+"="+t[e]})).join("")+(n?"/>":"></"+e+">")},e.prototype._hashClosingTag=function(e){return this._hashTag("/"+e,{},!1)},e.prototype._generateUniqueName=function(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;var t=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=t+1,e+"_"+t},e}(),el=new Pp(new pp);function tl(e){var t=new rl(el,e);return function(e,n,r,i,s){return t.toI18nMessage(e,n,r,i,s)}}function nl(e,t){return t}var rl=function(){function e(e,t){this._expressionParser=e,this._interpolationConfig=t}return e.prototype.toI18nMessage=function(e,t,n,r,i){void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r="");var s={isIcu:1==e.length&&e[0]instanceof la,icuDepth:0,placeholderRegistry:new Zp,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||nl},o=va(this,e,s);return new Or(o,s.placeholderToContent,s.placeholderToMessage,t,n,r)},e.prototype.visitElement=function(e,t){var n=va(this,e.children,t),r={};e.attrs.forEach((function(e){r[e.name]=e.value}));var i=T(e.name).isVoid,s=t.placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);t.placeholderToContent[s]=e.sourceSpan.toString();var o="";i||(o=t.placeholderRegistry.getCloseTagPlaceholderName(e.name),t.placeholderToContent[o]="</"+e.name+">");var a=new Br(e.name,r,s,o,n,i,e.sourceSpan);return t.visitNodeFn(e,a)},e.prototype.visitAttribute=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan,t);return t.visitNodeFn(e,n)},e.prototype.visitText=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan,t);return t.visitNodeFn(e,n)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitExpansion=function(e,t){var n=this;t.icuDepth++;var r={},i=new Dr(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach((function(e){r[e.value]=new Lr(e.expression.map((function(e){return e.visit(n,t)})),e.expSourceSpan)})),t.icuDepth--,t.isIcu||t.icuDepth>0){var s=t.placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=s,t.placeholderToContent[s]=e.switchValue,t.visitNodeFn(e,i)}var o=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[o]=this.toI18nMessage([e],"","","",void 0);var a=new jr(i,o,e.sourceSpan);return t.visitNodeFn(e,a)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Unreachable code")},e.prototype._visitTextWithInterpolation=function(e,t,n){var r=this._expressionParser.splitInterpolation(e,t.start.toString()
/**
* @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 sl=function(e,t){return e instanceof ua&&(t instanceof jr&&e.i18n instanceof Or&&(t.previousMessage=e.i18n),e.i18n=t),t},ol=function(){function e(e,t,n){void 0===e&&(e=cs),void 0===t&&(t=!1),void 0===n&&(n=!1),this.interpolationConfig=e,this.keepI18nAttrs=t,this.enableI18nLegacyMessageIdFormat=n,this.hasI18nMeta=!1,this._createI18nMessage=tl(this.interpolationConfig)}return e.prototype._generateI18nMessage=function(e,t,n){void 0===t&&(t="");var r=this._parseMetadata(t),i=r.meaning,s=r.description,o=r.customId,a=this._createI18nMessage(e,i,s,o,n);return this._setMessageId(a,t),this._setLegacyIds(a,t),a},e.prototype.visitElement=function(e){var t,n,r,i;if(function(e){return e.attrs.some((function(e){return Pi(e.name)}))}(e)){this.hasI18nMeta=!0;var s=[],o={};try{for(var a=f(e.attrs),u=a.next();!u.done;u=a.next()){if("i18n"===(d=u.value).name){var p=e.i18n||d.value,l=this._generateI18nMessage(e.children,p,sl);l.nodes.length&&(e.i18n=l)}else if(d.name.startsWith("i18n-")){o[d.name.slice("i18n-".length)]=d.value}else s.push(d)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}if(Object.keys(o).length)try{for(var c=f(s),h=c.next();!h.done;h=c.next()){var d,v=o[(d=h.value).name];void 0!==v&&d.value&&(d.i18n=this._generateI18nMessage([d],d.i18n||v))}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}this.keepI18nAttrs||(e.attrs=s)}return va(this,e.children,e.i18n),e},e.prototype.visitExpansion=function(e,t){var n,r=e.i18n;if(this.hasI18nMeta=!0,r instanceof jr){var i=r.name;Mi(n=this._generateI18nMessage([e],r)).name=i}else n=this._generateI18nMessage([e],t||r);return e.i18n=n,e},e.prototype.visitText=function(e){return e},e.prototype.visitAttribute=function(e){return e},e.prototype.visitComment=function(e){return e},e.prototype.visitExpansionCase=function(e){return e},e.prototype._parseMetadata=function(e){return"string"==typeof e?function(e){var t,n,r,i,s;void 0===e&&(e="");if(e=e.trim()){var o=e.indexOf("@@"),a=e.indexOf("|"),u=void 0;t=d(o>-1?[e.slice(0,o),e.slice(o+2)]:[e,""],2),u=t[0],r=t[1],n=d(a>-1?[u.slice(0,a),u.slice(a+1)]:["",u],2),i=n[0],s=n[1]}return{customId:r,meaning:i,description:s}}(e):e instanceof Or?e:{}},e.prototype._setMessageId=function(e,t){e.id||(e.id=t instanceof Or&&t.id||zr(e))},e.prototype._setLegacyIds=function(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[Wr(e),Kr(e)];else if("string"!=typeof t){var n=t instanceof Or?t:t instanceof jr?t.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}},e}();function al(e,t,n,r){var i=[Vt(function(e){return e.nodes.map((function(e){return e.visit(ul,null)})).join("")}(t))];Object.keys(r).length&&i.push(Ns(r,!0));var s,o,a=[],u=(o=[],(s=t).description&&o.push({tagName:"desc",text:s.description}),s.meaning&&o.push({tagName:"meaning",text:s.meaning}),0==o.length?null:new _t(o));return null!==u&&a.push(u),a.push(n.set(Mt("goog.getMsg").callFn(i)).toConstDecl()),a.push(new lt(e.set(n))),a}var ul=new(function(){function e(){}return e.prototype.formatPh=function(e){return"{$"+Di(e)+"}"},e.prototype.visitText=function(e){return e.value},e.prototype.visitContainer=function(e){var t=this;return e.children.map((function(e){return e.visit(t)})).join("")},e.prototype.visitIcu=function(e){return Yp(e)},e.prototype.visitTagPlaceholder=function(e){var t=this;return e.isVoid?this.formatPh(e.startName):""+this.formatPh(e.startName)+e.children.map((function(e){return e.visit(t)})).join("")+this.formatPh(e.closeName)},e.prototype.visitPlaceholder=function(e){return this.formatPh(e.name)},e.prototype.visitIcuPlaceholder=function(e,t){return this.formatPh(e.name)},e}());function pl(e,t,n){var r=[],i=function(e){var t=[];return e.nodes.forEach((function(e){return e.visit(fl,t)})),function(e){var t=[],n=[];e[0]instanceof hl&&t.push("");for(var r=0;r<e.length;r++){var i=e[r];i instanceof cl?t.push(i.text):(n.push(i.text),e[r-1]instanceof hl&&t.push(""))}e[e.length-1]instanceof hl&&t.push("");return{messageParts:t,placeHolders:n}}
/**
* @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)}(t),s=i.messageParts,o=i.placeHolders;return r.push(new lt(e.set(function(e,t,n,r,i){return new Be(e,t,n,r,i)}(t,s,o,o.map((function(e){return n[e]})))))),r}var ll=function(e){this.text=e},cl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(ll),hl=function(e){function t(t){return e.call(this,Di(t,!1))||this}return l(t,e),t}(ll),fl=new(function(){function e(){}return e.prototype.visitText=function(e,t){t[t.length-1]instanceof cl?t[t.length-1].text+=e.value:t.push(new cl(e.value))},e.prototype.visitContainer=function(e,t){var n=this;e.children.forEach((function(e){return e.visit(n,t)}))},e.prototype.visitIcu=function(e,t){t.push(new cl(Yp(e)))},e.prototype.visitTagPlaceholder=function(e,t){var n=this;t.push(new hl(e.startName)),e.isVoid||(e.children.forEach((function(e){return e.visit(n,t)})),t.push(new hl(e.closeName)))},e.prototype.visitPlaceholder=function(e,t){t.push(new hl(e.name))},e.prototype.visitIcuPlaceholder=function(e,t){t.push(new hl(e.name))},e}());var dl=new Map([["window",tr.resolveWindow],["document",tr.resolveDocument],["body",tr.resolveBody]]),vl=[" ","\n","\r","\t"];function ml(e,t){return Bt(Mt("rf").bitwiseAnd(Vt(e),null,!1),t)}function yl(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.type,i=e.name,s=e.target,o=e.phase,a=e.handler;if(s&&!dl.has(s))throw new Error("Unexpected global target '"+s+"' defined for '"+i+"' event.\n Supported list of global targets: "+Array.from(dl.keys())+".");var u=new Set,p=null===n||0===n.bindingLevel?Mt("ctx"):n.getOrCreateSharedContextVar(0),l=go(n,p,a,"b",(function(){return Jt("Unexpected interpolation")}),e.handlerSpan,u),c=[];n&&(c.push.apply(c,v(n.restoreViewStatement())),c.push.apply(c,v(n.variableDeclarations()))),c.push.apply(c,v(l.render3Stmts));var h=1===r?function(e,t){return"@"+e+"."+t}(i,o):i,f=t&&Nn(t),d=[];u.has("$event")&&d.push(new $e("$event",ye));var m=Dt(d,c,ge,null,f),y=[Vt(h),m];return s&&y.push(Vt(!1),It(dl.get(s))),y}var gl=function(){function e(e,t,n,r,i,s,o,a,u,p,l,c,h,f,d){var v=this;void 0===n&&(n=0),void 0===d&&(d=[]),this.constantPool=e,this.level=n,this.contextName=r,this.i18nContext=i,this.templateIndex=s,this.templateName=o,this.directiveMatcher=a,this.directives=u,this.pipeTypeByName=p,this.pipes=l,this._namespace=c,this.i18nUseExternalIds=f,this._constants=d,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this._unsupported=Hi,this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=qi,this.visitVariable=qi,this.visitTextAttribute=qi,this.visitBoundAttribute=qi,this.visitBoundEvent=qi,this._bindingScope=t.nestedScope(n),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new _l(e,(function(){return v.allocateDataSlot()}),(function(e){return v.allocatePureFunctionSlots(e)}),(function(e,t,n,r){var i=p.get(e);i&&v.pipes.add(i),v._bindingScope.set(v.level,t,r),v.creationInstruction(null,tr.pipe,[Vt(n),Vt(e)])}))}return e.prototype.buildTemplateFunction=function(e,t,n,r){var i=this;void 0===n&&(n=0),this._ngContentSelectorsOffset=n,this._namespace!==tr.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach((function(e){return i.registerContextVariables(e)}));var s,o=this.i18nContext||Ni(r)&&!Ai(r)&&!(1===(s=e).length&&s[0]instanceof Tr&&e[0].i18n===r),a=Rl(e);if(o&&this.i18nStart(null,r,a),Rr(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach((function(e){return e()})),0===this.level&&this._ngContentReservedSlots.length){var u=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){var p=this._ngContentReservedSlots.map((function(e){return"*"!==e?ae(e):e}));u.push(this.constantPool.getConstLiteral(Wi(p),!0))}this.creationInstruction(null,tr.projectionDef,u,!0)
/**
* @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 Fl=[],Ll=/attr\.([^\]]+)/;function Dl(e,t,n){var r=new Yi,i=ae(e.selector);return r.set("type",e.internalType),i.length>0&&r.set("selectors",Wi(i)),e.queries.length>0&&r.set("contentQueries",function(e,t,n){var r,i,s=[],o=[],a=Ui(o,"_t");try{for(var u=f(e),p=u.next();!p.done;p=u.next()){var l=p.value,c=l.static?tr.staticContentQuery:tr.contentQuery;s.push(It(c).callFn(v([Mt("dirIndex")],Wl(l,t))).toStmt());var h=a(),d=It(tr.loadQuery).callFn([]),m=It(tr.queryRefresh).callFn([h.set(d)]),y=Mt("ctx").prop(l.propertyName).set(l.first?h.prop("first"):h);o.push(m.and(y).toStmt())}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}var g=n?n+"_ContentQueries":null;return Dt([new $e("rf",Ee),new $e("ctx",null),new $e("dirIndex",null)],[ml(1,s),ml(2,o)],ge,null,g)}(e.queries,t,e.name)),e.viewQueries.length&&r.set("viewQuery",function(e,t,n){var r=[],i=[],s=Ui(i,"_t");e.forEach((function(e){var n=It(e.static?tr.staticViewQuery:tr.viewQuery).callFn(Wl(e,t));r.push(n.toStmt());var o=s(),a=It(tr.loadQuery).callFn([]),u=It(tr.queryRefresh).callFn([o.set(a)]),p=Mt("ctx").prop(e.propertyName).set(e.first?o.prop("first"):o);i.push(u.and(p).toStmt())}));var o=n?n+"_Query":null;return Dt([new $e("rf",Ee),new $e("ctx",null)],[ml(1,r),ml(2,i)],ge,null,o)}(e.viewQueries,t,e.name)),r.set("hostBindings",function(e,t,n,r,i,s,o){var a=Mt("ctx"),u=new rp(a),p=e.specialAttributes,l=p.styleAttr,c=p.classAttr;void 0!==l&&u.registerStyleAttr(l);void 0!==c&&u.registerClassAttr(c);var h=[],d=[],m=t,y=Xl(e),g=n.createDirectiveHostEventAsts(y,m);if(g&&g.length){var _=function(e,t){var n=[],r=[],i=[];e.forEach((function(e){var i=e.name&&Nn(e.name),s=1===e.type?or(i,e.targetOrPhase):i,o=t&&i?t+"_"+s+"_HostBindingHandler":null,a=yl(br.fromParsedEvent(e),o);1==e.type?r.push(a):n.push(a)})),r.length>0&&i.push(Zi(tr.componentHostSyntheticListener,r).toStmt());n.length>0&&i.push(Zi(tr.listener,n).toStmt());return i}(g,s);h.push.apply(h,v(_))}var E,x=n.createBoundHostProperties(y,m),S=[],w=0;x&&x.forEach((function(e){var t=e.name;u.registerInputBasedOnName(t,e.expression,e.sourceSpan)?w+=2:(S.push(e),w++)}));var C=function(){if(!E){E=new _l(r,(function(){return Jt("Unexpected node")}),(function(e){var t=w;return w+=e,t}),(function(){return Jt("Unexpected pipe")}))}return E},b=[],T=[],P=[];S.forEach((function(e){var t=e.expression.visit(C()),r=Gl(a,t),s=function(e){var t,n=e.name,r=n.match(Ll);r?(n=r[1],t=tr.attribute):e.isAnimation?(n=sr(n),t=tr.updateSyntheticHostBinding):t=tr.hostProperty;return{bindingName:n,instruction:t,isAttribute:!!r}}(e),o=s.bindingName,u=s.instruction,p=s.isAttribute,l=n.calcPossibleSecurityContexts(i,o,p).filter((function(e){return e!==H.NONE})),c=null;l.length&&(c=2===l.length&&l.indexOf(H.URL)>-1&&l.indexOf(H.RESOURCE_URL)>-1?It(tr.sanitizeUrlOrResourceUrl):Il(l[0],p));var h=[Vt(o),r.currValExpr];c&&h.push(c),d.push.apply(d,v(r.stmts)),u===tr.hostProperty?b.push(h):u===tr.attribute?T.push(h):u===tr.updateSyntheticHostBinding?P.push(h):d.push(It(u).callFn(h).toStmt())})),b.length>0&&d.push(Zi(tr.hostProperty,b).toStmt());T.length>0&&d.push(Zi(tr.attribute,T).toStmt());P.length>0&&d.push(Zi(tr.updateSyntheticHostBinding,P).toStmt());var N=function(e){var t,n,r=[];try{for(var i=f(Object.getOwnPropertyNames(e)),s=i.next();!s.done;s=i.next()){var o=s.value,a=e[o];r.push(Vt(o),a)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e.attributes);u.assignHostAttrs(N,o),u.hasBindings&&u.buildUpdateLevelInstructions(C()).forEach((function(e){if(e.calls.length>0){var t=[];e.calls.forEach((function(e){w+=Math.max(e.allocateBindingSlots-2,0),t.push(function(e,t,n){return e.params((function(e){return n(t,e).currValExpr}))}(e,a,Gl))})),d.push(Zi(e.reference,t).toStmt())}}));w&&o.set("hostVars",Vt(w));if(h.length>0||d.length>0){var A=s?s+"_HostBindings":null,M=[];return h.length>0&&M.push(ml(1,h)),d.length>0&&M.push(ml(2,d)),Dt([new $e("rf",Ee),new $e("ctx",null)],M,ge,null,A)}return null}(e.host,e.typeSourceSpan,n,t,e.selector||"",e.name,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
*/(e.styles,"_ngcontent-%COMP%","_nghost-%COMP%"):e.styles).map((function(e){return Vt(e)}));s.set("styles",Ft(R))}else e.encapsulation===P.Emulated&&(e.encapsulation=P.None);return e.encapsulation!==P.Emulated&&s.set("encapsulation",Vt(e.encapsulation)),null!==e.animations&&s.set("data",Lt([{key:"animation",value:e.animations,quoted:!1}])),null!=x&&x!==N.Default&&s.set("changeDetection",Vt(x)),{expression:It(tr.defineComponent).callFn([s.toLiteralMap()]),type:Ql(e,tr.ComponentDefWithMeta)}}function Ul(e,t,n){throw new Error("unsupported")}function Hl(e,t){return e.map((function(e){var n=null;return e.read&&e.read.identifier&&(n=t.importExpr(e.read.identifier.reference)),{propertyName:e.propertyName,first:e.first,predicate:ql(e.selectors,t),descendants:e.descendants,read:n,static:!!e.static}}))}function ql(e,t){if(e.length>1||1==e.length&&e[0].value){var n=e.map((function(e){return e.value}));return n.some((function(e){return!e}))&&Jt("Found a type among the string selectors expected"),t.constantPool.getConstLiteral(Ft(n.map((function(e){return Vt(e)}))))}if(1==e.length){var r=e[0];if(r.identifier)return t.importExpr(r.identifier.reference)}return Jt("Unexpected query form"),st}function Wl(e,t){var n=[Qi(e,t),Vt(e.descendants)];return e.read&&n.push(e.read),n}function zl(e){return Rt(Lt(Object.keys(e).map((function(t){return{key:t,value:Vt(Array.isArray(e[t])?e[t][0]:e[t]),quoted:!0}}))))}function Kl(e){return e.length>0?Rt(Ft(e.map((function(e){return Vt(e)})))):Se}function Ql(e,t){var n,r=null!==e.selector?e.selector.replace(/\n/g,""):null;return Rt(It(t,[ir(e.type.type,e.typeArgumentCount),null!==r?(n=r,Rt(Vt(n))):Se,null!==e.exportAs?Kl(e.exportAs):Se,zl(e.inputs),zl(e.outputs),Kl(e.queries.map((function(e){return e.propertyName})))]))}function Gl(e,t){return wo(null,e,t,"b",Eo.TrySimple,(function(){return Jt("Unexpected interpolation")}))}function Xl(e){return{hostAttributes:{},hostListeners:e.listeners,hostProperties:e.properties}}function $l(e,t){var n=Array.from(e).map((function(e){var n=d(e,2),r=n[0],i=n[1];return[r,t.importExpr(i)]}));return new Map(n)}var Yl=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Jl(e){var t,n,r={},i={},s={},o={};try{for(var a=f(Object.keys(e)),u=a.next();!u.done;u=a.next()){var p=u.value,l=e[p],c=p.match(Yl);if(null===c)switch(p){case"class":if("string"!=typeof l)throw new Error("Class binding must be string");o.classAttr=l;break;case"style":if("string"!=typeof l)throw new Error("Style binding must be string");o.styleAttr=l;break;default:r[p]="string"==typeof l?Vt(l):l}else if(null!=c[1]){if("string"!=typeof l)throw new Error("Property binding must be string");s[c[1]]=l}else if(null!=c[2]){if("string"!=typeof l)throw new Error("Event binding must be string");i[c[2]]=l}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{attributes:r,listeners:i,properties:s,specialAttributes:o}}function Zl(e,t){var n=Xl(e),r=Ml();return r.createDirectiveHostEventAsts(n,t),r.createBoundHostProperties(n,t),r.errors}var ec=function(){function e(){}return e.prototype.get=function(e){return""},e}(),tc=function(){function e(e){void 0===e&&(e=new bs),this.jitEvaluator=e,this.R3ResolvedDependencyType=$i,this.R3FactoryTarget=Xi,this.ResourceLoader=ec,this.elementSchemaRegistry=new Dp}return e.prototype.compilePipe=function(e,t,n){var r=Rs({name:n.name,type:oc(n.type),internalType:new Me(n.type),typeArgumentCount:n.typeArgumentCount,deps:hc(n.deps),pipeName:n.pipeName,pure:n.pure});return this.jitExpression(r.expression,e,t,[])},e.prototype.compileInjectable=function(e,t,n){var r=ss({name:n.name,type:oc(n.type),internalType:new Me(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:lc(n.providedIn),useClass:pc(n,nc),useFactory:pc(n,rc),useValue:pc(n,ic),useExisting:pc(n,sc),userDeps:hc(n.userDeps)||void 0}),i=r.expression,s=r.statements;return this.jitExpression(i,e,t,s)},e.prototype.compileInjector=function(e,t,n){var r=Ms({name:n.name,type:oc(n.type),internalType:new Me(n.type),deps:hc(n.deps),providers:new Me(n.providers),imports:n.imports.map((fu
/**
* @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 ac(e){return h(h({},e),{predicate:Array.isArray(e.predicate)?e.predicate:new Me(e.predicate),read:e.read?new Me(e.read):null,static:e.static})}function uc(e){var t=dc(e.inputs||[]),n=dc(e.outputs||[]),r=e.propMetadata,i={},s={},o=function(e){r.hasOwnProperty(e)&&r[e].forEach((function(t){"Input"===t.ngMetadataName?i[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e:function(e){return"Output"===e.ngMetadataName}(t)&&(s[e]=t.bindingPropertyName||e)}))};for(var a in r)o(a);return h(h({},e),{typeSourceSpan:e.typeSourceSpan,type:oc(e.type),internalType:new Me(e.type),deps:hc(e.deps),host:fc(e.propMetadata,e.typeSourceSpan,e.host),inputs:h(h({},t),i),outputs:h(h({},n),s),queries:e.queries.map(ac),providers:null!=e.providers?new Me(e.providers):null,viewQueries:e.viewQueries.map(ac),fullInheritance:!1})}function pc(e,t){return e.hasOwnProperty(t)?new Me(e[t]):void 0}function lc(e){return null==e||"string"==typeof e?new De(e):new Me(e)}function cc(e){return{token:null===e.token?new De(null):e.resolved===$i.Attribute?new De(e.token):new Me(e.token),resolved:e.resolved,host:e.host,optional:e.optional,self:e.self,skipSelf:e.skipSelf}}function hc(e){return null==e?null:e.map(cc)}function fc(e,t,n){var r=Jl(n||{}),i=Zl(r,t);if(i.length)throw new Error(i.map((function(e){return e.msg})).join("\n"));var s=function(t){e.hasOwnProperty(t)&&e[t].forEach((function(e){"HostBinding"===e.ngMetadataName?r.properties[e.hostPropertyName||t]=t:function(e){return"HostListener"===e.ngMetadataName}(e)&&(r.listeners[e.eventName||t]=t+"("+(e.args||[]).join(",")+")")}))};for(var o in e)s(o);return r}function dc(e){return e.reduce((function(e,t){var n=d(t.split(",").map((function(e){return e.trim()})),2),r=n[0],i=n[1];return e[r]=i||r,e}),{})}function vc(e){(e.ng||(e.ng={})).ɵcompilerFacade=new tc}
/**
* @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 mc=new pn("9.0.5"),yc=function(e){var t=void 0===e?{}:e,n=t.defaultEncapsulation,r=void 0===n?P.Emulated:n,i=t.useJit,s=void 0===i||i,o=t.jitDevMode,a=void 0!==o&&o,u=t.missingTranslation,p=void 0===u?null:u,l=t.preserveWhitespaces,c=t.strictInjectionParameters;this.defaultEncapsulation=r,this.useJit=!!s,this.jitDevMode=!!a,this.missingTranslation=p,this.preserveWhitespaces=gc(Qt(l)),this.strictInjectionParameters=!0===c};
/**
* @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 gc(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 _c=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(Kt(e.template)){if(Kt(e.templateUrl))throw Zt("'"+on(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw Zt("The template specified for component "+on(e.componentType)+" is not a string")}else{if(!Kt(e.templateUrl))throw Zt("No template specified for component "+on(e.componentType));if("string"!=typeof e.templateUrl)throw Zt("The templateUrl specified for component "+on(e.componentType)+" is not a string")}if(Kt(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw Zt("The preserveWhitespaces option for component "+on(e.componentType)+" must be a boolean");return $t(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)),$t(t,(function(t){return r._preparseLoadedTemplate(e,t,n)}))},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=ls.fromArray(e.interpolation),s=$n({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),o=this._htmlParser.parse(t,s,{tokenizeExpansionForms:!0,interpolationConfig:i});if(o.errors.length>0)throw Zt("Template parse errors:\n"+o.errors.join("\n"));var a=this._normalizeStylesheet(new Vn({styles:e.styles,moduleUrl:e.moduleUrl})),u=new Ec;va(u,o.rootNodes);var p=this._normalizeStylesheet(new Vn({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:o,styles:a.styles.concat(p.styles),inlineStyleUrls:a.styleUrls.concat(p.styleUrls),styleUrls:this._normalizeStylesheet(new Vn({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:u.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return $t(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=v(t.styles);this._inlineStyles(t.inlineStyleUrls,n,i);var s=t.styleUrls,o=s.map((function(e){var t=n.get(e),i=v(t.styles);return r._inlineStyles(t.styleUrls,n,i),new Vn({moduleUrl:e,styles:i})})),a=e.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===P.Emulated&&0===i.length&&0===s.length&&(a=P.None),new jn({encapsulation:a,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:i,styleUrls:s,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:o,preserveWhitespaces:gc(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),$t(Yt(e.filter((function(e){return!t.has(e)})).map((function(e){return $t(n._fetch(e),(function(r){var i=n._normalizeStylesheet(new Vn({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(Tu).map((function(e){return t._urlResolver.resolve(
/**
* @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 bc=function(e){function t(t,n){return e.call(this,t,n)||this}return l(t,e),t}(gr),Tc=/^i18n:?/,Pc=!1;
/**
* @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 Nc,Ac=function(e,t){this.messages=e,this.errors=t};!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(Nc||(Nc={}));var Mc=function(){function e(e,t){this._implicitTags=e,this._implicitAttrs=t}return e.prototype.extract=function(e,t){var n=this;return this._init(Nc.Extract,t),e.forEach((function(e){return e.visit(n,null)})),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Ac(this._messages,this._errors)},e.prototype.merge=function(e,t,n){this._init(Nc.Merge,n),this._translations=t;var r=new fa("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Fa(r.children,this._errors)},e.prototype.visitExpansionCase=function(e,t){var n=va(this,e.expression,t);if(this._mode===Nc.Merge)return new ca(e.value,n,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)},e.prototype.visitExpansion=function(e,t){this._mayBeAddBlockChildren(e);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);var r=va(this,e.cases,t);return this._mode===Nc.Merge&&(e=new la(e.switchValue,e.type,r,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=n,e},e.prototype.visitComment=function(e,t){var n,r=!!((n=e)instanceof da&&n.value&&n.value.startsWith("i18n"));if(r&&this._isInTranslatableSection)this._reportError(e,"Could not start a block inside a translatable section");else{var i=function(e){return!!(e instanceof da&&e.value&&"/i18n"===e.value)}(e);if(!i||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(i){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;var s=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return va(this,this._translateMessage(e,s))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else if(r){if(!Pc&&console&&console.warn){Pc=!0;var o=e.sourceSpan.details?", "+e.sourceSpan.details:"";console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+e.sourceSpan.start+o+")")}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(Tc,"").trim(),this._openTranslatableSection(e)}}else this._reportError(e,"Trying to close an unopened block")}},e.prototype.visitText=function(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e},e.prototype.visitElement=function(e,t){var n=this;this._mayBeAddBlockChildren(e),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,s=[],o=void 0,a=e.attrs.find((function(e){return"i18n"===e.name}))||null,u=a?a.value:"",p=this._implicitTags.some((function(t){return e.name===t}))&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&p;if(this._inImplicitNode=i||p,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==Nc.Extract&&va(this,e.children);else{if(a||l){this._inI18nNode=!0;var c=this._addMessage(e.children,u);o=this._translateMessage(e,c)}if(this._mode==Nc.Extract){var h=a||l;h&&this._openTranslatableSection(e),va(this,e.children),h&&this._closeTranslatableSection(e,e.children)}}this._mode===Nc.Merge&&(o||e.children).forEach((function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(s=s.concat(r))}));if(this._visitAttributesOf(e),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===Nc.Merge){var f=this._translateAttributes(e);return new fa(e.name,f,s,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}return null},e.prototype.visitAttribute=function(e,t){throw new Error("unreachable code")},e.prototype._init=function(e,t){this._mode=e,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=tl(t)},e.prototype._visitAttributesOf=function(e){var t=this,n={},r=this._implicitAttrs[e.name]||[];e.attrs.filter((function(e){return e.name.startsWith("i18n-")})).for
/**
* @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 kc=new(function(){function e(){this.closedByParent=!1,this.contentType=c.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return e.prototype.requireExtraParent=function(e){return!1},e.prototype.isClosedByChild=function(e){return!1},e}());function Rc(e){return kc}
/**
* @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 Oc=function(e){function t(){return e.call(this,Rc)||this}return l(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(La),Fc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.write=function(e,t){var n=new Lc,r=[];e.forEach((function(e){var t,i=[];e.sources.forEach((function(e){var t=new yi("context-group",{purpose:"location"});t.children.push(new _i(10),new yi("context",{"context-type":"sourcefile"},[new gi(e.filePath)]),new _i(10),new yi("context",{"context-type":"linenumber"},[new gi(""+e.startLine)]),new _i(8)),i.push(new _i(8),t)}));var s=new yi("trans-unit",{id:e.id,datatype:"html"});(t=s.children).push.apply(t,v([new _i(8),new yi("source",{},n.serialize(e.nodes))],i)),e.description&&s.children.push(new _i(8),new yi("note",{priority:"1",from:"description"},[new gi(e.description)])),e.meaning&&s.children.push(new _i(8),new yi("note",{priority:"1",from:"meaning"},[new gi(e.meaning)])),s.children.push(new _i(6)),r.push(new _i(6),s)}));var i=new yi("body",{},v(r,[new _i(4)])),s=new yi("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new _i(4),i,new _i(2)]),o=new yi("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new _i(2),s,new _i]);return di([new vi({version:"1.0",encoding:"UTF-8"}),new _i,o,new _i])},t.prototype.load=function(e,t){var n=(new Dc).parse(e,t),r=n.locale,i=n.msgIdToHtml,s=n.errors,o={},a=new Bc;if(Object.keys(i).forEach((function(e){var n=a.convert(i[e],t),r=n.i18nNodes,u=n.errors;s.push.apply(s,v(u)),o[e]=r})),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:r,i18nNodesByMsgId:o}},t.prototype.digest=function(e){return qr(e)},t}(ci),Lc=function(){function e(){}return e.prototype.visitText=function(e,t){return[new gi(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach((function(e){return r.push.apply(r,v(e.visit(n)))})),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new gi("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach((function(t){r.push.apply(r,v([new gi(t+" {")],e.cases[t].visit(n),[new gi("} ")]))})),r.push(new gi("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=function(e){switch(e.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+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
*/(e.tag);if(e.isVoid)return[new yi("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+"/>"})];var r=new yi("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+">"}),i=new yi("x",{id:e.closeName,ctype:n,"equiv-text":"</"+e.tag+">"});return v([r],this.serialize(e.children),[i])},e.prototype.visitPlaceholder=function(e,t){return[new yi("x",{id:e.name,"equiv-text":"{{"+e.value+"}}"})]},e.prototype.visitIcuPlaceholder=function(e,t){var n="{"+e.value.expression+", "+e.value.type+", "+Object.keys(e.value.cases).map((function(e){return e+" {...}"})).join(" ")+"}";return[new yi("x",{id:e.name,"equiv-text":n})]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],v(e.map((function(e){return e.visit(t)}))))},e}(),Dc=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new Oc).parse(e,t);return this._errors=n.errors,va(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"trans-unit":this._unitMlString=null;var n=e.attrs.find((function(e){return"id"===e.name}));if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(e,"Duplicated translations for msg "+r):(va(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(e,"Message "+r+" misses a translation"))}else this._addError(e,'<trans-unit> misses the "id" attribute');break;case"source":case"seg-source":case"alt-trans":break;case"target":var i=e.startSourceSpan.end.offset,s=e.endSourceSpan.start.offset,o=e.startSourceSpan.start.file.content.slice(i,s);this._unitMlString=o;break;case"file":var a=e.attrs.find((function(e){return"target-language"===e.name}));a&&(this._locale=a.value),va(this,e.children,null);break;default:va(this,e.children,null)}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new bc(e.sourceSpan,t))},e}(),Bc=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Oc).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],v(va(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new Fr(e.value,e.sourceSpan)},e.prototype.visitElement=function(e,t){if("x"===e.name){var n=e.attrs.find((function(e){return"id"===e.name}));return n?new Vr("",n.value,e.sourceSpan):(this._addError(e,'<x> misses the "id" attribute'),null)}return"mrk"===e.name?[].concat.apply([],v(va(this,e.children))):(this._addError(e,"Unexpected tag"),null)},e.prototype.visitExpansion=function(e,t){var n={};return va(this,e.cases).forEach((function(t){n[t.value]=new Lr(t.nodes,e.sourceSpan)})),new Dr(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:va(this,e.expression)}},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new bc(e.sourceSpan,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 Vc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.write=function(e,t){var n=new jc,r=[];e.forEach((function(e){var t=new yi("unit",{id:e.id}),i=new yi("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new _i(8),new yi("note",{category:"description"},[new gi(e.description)])),e.meaning&&i.children.push(new _i(8),new yi("note",{category:"meaning"},[new gi(e.meaning)]))),e.sources.forEach((function(e){i.children.push(new _i(8),new yi("note",{category:"location"},[new gi(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))})),i.children.push(new _i(6)),t.children.push(new _i(6),i);var s=new yi("segment");s.children.push(new _i(8),new yi("source",{},n.serialize(e.nodes)),new _i(6)),t.children.push(new _i(6),s,new _i(4)),r.push(new _i(4),t)}));var i=new yi("file",{original:"ng.template",id:"ngi18n"},v(r,[new _i(2)])),s=new yi("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new _i(2),i,new _i]);return di([new vi({version:"1.0",encoding:"UTF-8"}),new _i,s,new _i])},t.prototype.load=function(e,t){var n=(new Uc).parse(e,t),r=n.locale,i=n.msgIdToHtml,s=n.errors,o={},a=new Hc;if(Object.keys(i).forEach((function(e){var n=a.convert(i[e],t),r=n.i18nNodes,u=n.errors;s.push.apply(s,v(u)),o[e]=r})),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:r,i18nNodesByMsgId:o}},t.prototype.digest=function(e){return zr(e)},t}(ci),jc=function(){function e(){}return e.prototype.visitText=function(e,t){return[new gi(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach((function(e){return r.push.apply(r,v(e.visit(n)))})),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new gi("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach((function(t){r.push.apply(r,v([new gi(t+" {")],e.cases[t].visit(n),[new gi("} ")]))})),r.push(new gi("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=function(e){switch(e.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}
/**
* @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
*/(e.tag);if(e.isVoid)return[new yi("ph",{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:r,disp:"<"+e.tag+"/>"})];var i=new yi("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:r,dispStart:"<"+e.tag+">",dispEnd:"</"+e.tag+">"}),s=[].concat.apply([],v(e.children.map((function(e){return e.visit(n)}))));return s.length?s.forEach((function(e){return i.children.push(e)})):i.children.push(new gi("")),[i]},e.prototype.visitPlaceholder=function(e,t){var n=(this._nextPlaceholderId++).toString();return[new yi("ph",{id:n,equiv:e.name,disp:"{{"+e.value+"}}"})]},e.prototype.visitIcuPlaceholder=function(e,t){var n=Object.keys(e.value.cases).map((function(e){return e+" {...}"})).join(" "),r=(this._nextPlaceholderId++).toString();return[new yi("ph",{id:r,equiv:e.name,disp:"{"+e.value.expression+", "+e.value.type+", "+n+"}"})]},e.prototype.serialize=function(e){var t=this;return this._nextPlaceholderId=0,[].concat.apply([],v(e.map((function(e){return e.visit(t)}))))},e}(),Uc=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new Oc).parse(e,t);return this._errors=n.errors,va(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"unit":this._unitMlString=null;var n=e.attrs.find((function(e){return"id"===e.name}));if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(e,"Duplicated translations for msg "+r):(va(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(e,"Message "+r+" misses a translation"))}else this._addError(e,'<unit> misses the "id" attribute');break;case"source":break;case"target":var i=e.startSourceSpan.end.offset,s=e.endSourceSpan.start.offset,o=e.startSourceSpan.start.file.content.slice(i,s);this._unitMlString=o;break;case"xliff":var a=e.attrs.find((function(e){return"trgLang"===e.name}));a&&(this._locale=a.value);var u=e.attrs.find((function(e){return"version"===e.name}));if(u){var p=u.value;"2.0"!==p?this._addError(e,"The XLIFF file version "+p+" is not compatible with XLIFF 2.0 serializer"):va(this,e.children,null)}break;default:va(this,e.children,null)}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new bc(e.sourceSpan,t))},e}(),Hc=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Oc).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],v(va(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new Fr(e.value,e.sourceSpan)},e.prototype.visitElement=function(e,t){var n=this;switch(e.name){case"ph":var r=e.attrs.find((function(e){return"equiv"===e.name}));if(r)return[new Vr("",r.value,e.sourceSpan)];this._addError(e,'<ph> misses the "equiv" attribute');break;case"pc":var i=e.attrs.find((function(e){return"equivStart"===e.name})),s=e.attrs.find((function(e){return"equivEnd"===e.name}));if(i){if(s){var o=i.value,a=s.value,u=[];return u.concat.apply(u,v([new Vr("",o,e.sourceSpan)],e.children.map((function(e){return e.visit(n,null)})),[new Vr("",a,e.sourceSpan)]))}this._addError(e,'<ph> misses the "equivEnd" attribute')}else this._addError(e,'<ph> misses the "equivStart" attribute');break;case"mrk":return[].concat.apply([],v(va(this,e.children)));default:this._addError(e,"Unexpected tag")}return null},e.prototype.visitExpansion=function(e,t){var n={};return va(this,e.cases).forEach((function(t){n[t.value]=new Lr(t.nodes,e.sourceSpan)})),new Dr(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:[].concat.apply([],v(va(this,e.expression)))}},e.prototype.visitComment=function(e,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
*/(n);this._translationBundle=Kc.load(t,"i18n",s,r,i)}else this._translationBundle=new Kc({},null,qr,void 0,r,i)}return e.prototype.parse=function(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig||cs,i=this._htmlParser.parse(e,t,h({interpolationConfig:r},n));return i.errors.length?new Fa(i.rootNodes,i.errors):function(e,t,n,r,i){return new Mc(r,i).merge(e,t,n)}(i.rootNodes,this._translationBundle,r,[],{})},e}();function Xc(e,t,n){return void 0===n&&(n=null),zt(t,new $c(e),n)}var $c=function(){function e(e){this.ctx=e}return e.prototype.visitArray=function(e,t){var n=this;return Ft(e.map((function(e){return zt(e,n,null)})),t)},e.prototype.visitStringMap=function(e,t){var n=this,r=[],i=new Set(e&&e.$quoted$);return Object.keys(e).forEach((function(t){r.push(new nt(t,zt(e[t],n,null),i.has(t)))})),new rt(r,t)},e.prototype.visitPrimitive=function(e,t){return Vt(e,t)},e.prototype.visitOther=function(e,t){return e instanceof Te?e:this.ctx.importExpr(e)},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 Yc(e,t){return{key:e,value:t,quoted:!1}}var Jc=function(){function e(e,t){this.reflector=e,this.alwaysGenerateDef=t,this.tokenInjector=e.resolveExternalReference(Sn.Injector)}return e.prototype.depsArray=function(e,t){var n=this;return e.map((function(e){var r,i=e,s=[i],o=0;if(Array.isArray(e))for(var a=0;a<e.length;a++){var u=e[a];u&&("Optional"===u.ngMetadataName?o|=8:"SkipSelf"===u.ngMetadataName?o|=4:"Self"===u.ngMetadataName?o|=2:i="Inject"===u.ngMetadataName?u.token:u)}return r="string"==typeof i?Vt(i):i===n.tokenInjector?It(Sn.INJECTOR):t.importExpr(i),s=0!==o?[r,Vt(o)]:[r],It(Sn.inject).callFn(s)}))},e.prototype.factoryFor=function(e,t){var n;if(e.useExisting)n=It(Sn.inject).callFn([t.importExpr(e.useExisting)]);else if(e.useFactory){var r=e.deps||[];if(!(r.length>0))return t.importExpr(e.useFactory);n=t.importExpr(e.useFactory).callFn(this.depsArray(r,t))}else if(e.useValue)n=Xc(t,e.useValue);else{var i=e.useClass||e.symbol,s=this.depsArray(this.reflector.parameters(i),t);n=new Le(t.importExpr(i),s)}return Dt([],[new ct(n)],void 0,void 0,e.symbol.name+"_Factory")},e.prototype.injectableDef=function(e,t){var n=st;void 0!==e.providedIn&&(n=null===e.providedIn?st:"string"==typeof e.providedIn?Vt(e.providedIn):t.importExpr(e.providedIn));var r=[Yc("factory",this.factoryFor(e,t)),Yc("token",t.importExpr(e.type.reference)),Yc("providedIn",n)];return It(Sn.ɵɵdefineInjectable).callFn([Lt(r)])},e.prototype.compile=function(e,t){if(this.alwaysGenerateDef||void 0!==e.providedIn){var n=In(e.type),r=new mt(n,null,[new ft("ɵprov",ge,[qe.Static],this.injectableDef(e,t))],[],new dt(null,[],[]),[]);t.statements.push(r)}},e}(),Zc=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,eh=/\.ngfactory\.|\.ngsummary\./,th=/\.ngsummary\./,nh=/NgSummary$/;
/**
* @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 rh(e,t){void 0===t&&(t=!1);var n=sh(e,t);return n[0]+".ngfactory"+oh(n[1])}function ih(e){return e.replace(eh,".")}function sh(e,t){if(void 0===t&&(t=!1),e.endsWith(".d.ts"))return[e.slice(0,-5),t?".ts":".d.ts"];var n=e.lastIndexOf(".");return-1!==n?[e.substring(0,n),e.substring(n)]:[e,""]}function oh(e){return".tsx"===e?".ts":e}function ah(e){return e.replace(Zc,"")+".ngsummary.json"}function uh(e,t){void 0===t&&(t=!1);var n=sh(ih(e),t);return n[0]+".ngsummary"+n[1]}function ph(e){return e+"NgSummary"}var lh,ch=/\u0275\d+/;function hh(e){return ch.test(e)}!function(e){e[e.OnInit=0]="OnInit",e[e.OnDestroy=1]="OnDestroy",e[e.DoCheck=2]="DoCheck",e[e.OnChanges=3]="OnChanges",e[e.AfterContentInit=4]="AfterContentInit",e[e.AfterContentChecked=5]="AfterContentChecked",e[e.AfterViewInit=6]="AfterViewInit",e[e.AfterViewChecked=7]="AfterViewChecked"}(lh||(lh={}));var fh=[lh.OnInit,lh.OnDestroy,lh.DoCheck,lh.OnChanges,lh.AfterContentInit,lh.AfterContentChecked,lh.AfterViewInit,lh.AfterViewChecked];function dh(e,t,n){return e.hasLifecycleHook(n,function(e){switch(e){case lh.OnInit:return"ngOnInit";case lh.OnDestroy:return"ngOnDestroy";case lh.DoCheck:return"ngDoCheck";case lh.OnChanges:return"ngOnChanges";case lh.AfterContentInit:return"ngAfterContentInit";case lh.AfterContentChecked:return"ngAfterContentChecked";case lh.AfterViewInit:return"ngAfterViewInit";case lh.AfterViewChecked:return"ngAfterViewChecked";default:throw new Error("unexpected "+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 vh=function(){function e(e,t,n,r,i,s,o,a,u,p,l,c){this._config=e,this._htmlParser=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=s,this._schemaRegistry=o,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=p,this._reflector=l,this._errorCollector=c,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map,this._shallowModuleCache=new Map}return e.prototype.getReflector=function(){return this._reflector},e.prototype.clearCacheFor=function(e){var t=this._directiveCache.get(e);this._directiveCache.delete(e),this._nonNormalizedDirectiveCache.delete(e),this._summaryCache.delete(e),this._pipeCache.delete(e),this._ngModuleOfTypes.delete(e),this._ngModuleCache.clear(),t&&this._directiveNormalizer.clearCacheFor(t)},e.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},e.prototype._createProxyClass=function(e,t){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+t+" for type "+on(e)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(e){n=e,r.prototype=e.prototype},r.overriddenName=t,r},e.prototype.getGeneratedClass=function(e,t){return e instanceof bn?this._staticSymbolCache.get(rh(e.filePath),t):this._createProxyClass(e,t)},e.prototype.getComponentViewClass=function(e){return this.getGeneratedClass(e,Rn(e,0))},e.prototype.getHostComponentViewClass=function(e){return this.getGeneratedClass(e,Fn(e))},e.prototype.getHostComponentType=function(e){var t=In({reference:e})+"_Host";return e instanceof bn?this._staticSymbolCache.get(e.filePath,t):this._createProxyClass(e,t)},e.prototype.getRendererType=function(e){return e instanceof bn?this._staticSymbolCache.get(rh(e.filePath),On(e)):{}},e.prototype.getComponentFactory=function(e,t,n,r){if(t instanceof bn)return this._staticSymbolCache.get(rh(t.filePath),Ln(t));var i=this.getHostComponentViewClass(t);return this._reflector.resolveExternalReference(Sn.createComponentFactory)(e,t,i,n,r,[])},e.prototype.initComponentFactory=function(e,t){var n;e instanceof bn||(n=e.ngContentSelectors).push.apply(n,v(t))},e.prototype._loadSummary=function(e,t){var n=this._summaryCache.get(e);if(!n){var r=this._summaryResolver.resolveSummary(e);n=r?r.type:null,this._summaryCache.set(e,n||null)}return n&&n.summaryKind===t?n:null},e.prototype.getHostComponentMetadata=function(e,t){var n=this.getHostComponentType(e.type.reference);t||(t=this.getHostComponentViewClass(n));var r=M.parse(e.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Un.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new jn({encapsulation:P.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:N.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:t,rendererType:{id:"__Host__",encapsulation:P.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},e.prototype.loadDirectiveMetadata=function(e,t,n){var r=this;if(this._directiveCache.has(t))return null;t=an(t);var i=this.getNonNormalizedDirectiveMetadata(t),s=i.annotation,o=i.metadata,a=function(e){var n=new Un({isHost:!1,type:o.type,isComponent:o.isComponent,selector:o.selector,exportAs:o.exportAs,changeDetection:o.changeDetection,inputs:o.inputs,outputs:o.outputs,hostListeners:o.hostListeners,hostProperties:o.hostProperties,hostAttributes:o.hostAttributes,providers:o.providers,viewProviders:o.viewProviders,queries:o.queries,guards:o.guards,viewQueries:o.viewQueries,entryComponents:o.entryComponents,componentViewType:o.componentViewT
/**
* @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),t),null):$t(p,a)}return a(null),null},e.prototype.getNonNormalizedDirectiveMetadata=function(e){var t=this;if(!(e=an(e)))return null;var n=this._nonNormalizedDirectiveCache.get(e);if(n)return n;var r=this._directiveResolver.resolve(e,!1);if(!r)return null;var i=void 0;if(W.isTypeOf(r)){as("styles",(o=r).styles),as("styleUrls",o.styleUrls),ps("interpolation",o.interpolation);var s=o.animations;i=new jn({encapsulation:Qt(o.encapsulation),template:Qt(o.template),templateUrl:Qt(o.templateUrl),htmlAst:null,styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:Qt(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:Qt(r.preserveWhitespaces)})}var o,a=null,u=[],p=[],l=r.selector;W.isTypeOf(r)?(a=(o=r).changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,p,'viewProviders for "'+_h(e)+'"',[],e)),o.entryComponents&&(p=mh(o.entryComponents).map((function(e){return t._getEntryComponentMetadata(e)})).concat(p)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(l=null);var c=[];null!=r.providers&&(c=this._getProvidersMetadata(r.providers,p,'providers for "'+_h(e)+'"',[],e));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,e),f=this._getQueriesMetadata(r.queries,!0,e));var d=Un.create({isHost:!1,selector:l,exportAs:Qt(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(e),template:i,changeDetection:a,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:c||[],viewProviders:u||[],queries:h||[],guards:r.guards||{},viewQueries:f||[],entryComponents:p,componentViewType:i?this.getComponentViewClass(e):null,rendererType:i?this.getRendererType(e):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,e,d.inputs,d.outputs)),n={metadata:d,annotation:r},this._nonNormalizedDirectiveCache.set(e,n),n},e.prototype.getDirectiveMetadata=function(e){var t=this._directiveCache.get(e);return t||this._reportError(Zt("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+_h(e)+"."),e),t},e.prototype.getDirectiveSummary=function(e){var t=this._loadSummary(e,An.Directive);return t||this._reportError(Zt("Illegal state: Could not load the summary for directive "+_h(e)+"."),e),t},e.prototype.isDirective=function(e){return!!this._loadSummary(e,An.Directive)||this._directiveResolver.isDirective(e)},e.prototype.isAbstractDirective=function(e){var t=this._loadSummary(e,An.Directive);if(t&&!t.isComponent)return!t.selector;var n=this._directiveResolver.resolve(e,!1);return!(!n||W.isTypeOf(n))&&!n.selector},e.prototype.isPipe=function(e){return!!this._loadSummary(e,An.Pipe)||this._pipeResolver.isPipe(e)},e.prototype.isNgModule=function(e){return!!this._loadSummary(e,An.NgModule)||this._ngModuleResolver.isNgModule(e)},e.prototype.getNgModuleSummary=function(e,t){void 0===t&&(t=null);var n=this._loadSummary(e,An.NgModule);if(!n){var r=this.getNgModuleMetadata(e,!1,t);(n=r?r.toSummary():null)&&this._summaryCache.set(e,n)}return n},e.prototype.loadNgModuleDirectiveAndPipeMetadata=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(e,n),s=[];return i&&(i.declaredDirectives.forEach((function(n){var i=r.loadDirectiveMetadata(e,n.reference,t);i&&s.push(i)})),i.declaredPipes.forEach((function(e){return r._loadPipeMetadata(e.reference)}))),Promise.all(s)},e.prototype.getShallowModuleMetadata=function(e){var t=this._shallowModuleCache.get(e);if(t)return t;var n=Cc(this._reflector.shallowAnnotations(e),$.isTypeOf);return t={type:this._getTypeMetadata(e),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(e,t),t},e.prototype.getNgModuleMetadata=function(e,t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null),e=an(e);var i=this._ngModuleCache.get(e);if(i)return i;var s=this._ngModuleResolver.resolve(e,t);if(!s)return null;var o=[],a=[],u=[],p=[],l=[],c=[],h=[],f=[],d=[];s.imports&&mh(s.imports).forEach((function(t){var i=void 0;if(y
/**
* @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 Th=function(e){this.ngModuleFactoryVar=e},Ph=Mt("_l"),Nh=function(){function e(e){this.reflector=e}return e.prototype.compile=function(e,t,n){var r=_r("NgModule",t.type),i=t.transitiveModule.entryComponents,s=t.bootstrapComponents,o=new Eu(this.reflector,t,n,r),a=[bh(this.reflector,e,0,i)].concat(o.parse().map((function(t){return Eh(e,t)}))).map((function(e){var t=e.providerExpr,n=e.depsExpr,r=e.flags,i=e.tokenExpr;return It(Sn.moduleProviderDef).callFn([Vt(r),i,t,n])})),u=It(Sn.moduleDef).callFn([Ft(a)]),p=Dt([new $e(Ph.name)],[new ct(u)],ge),l=In(t.type)+"NgFactory";if(this._createNgModuleFactory(e,t.type.reference,It(Sn.createModuleFactory).callFn([e.importExpr(t.type.reference),Ft(s.map((function(t){return e.importExpr(t.reference)}))),p])),t.id){var c="string"==typeof t.id?Vt(t.id):e.importExpr(t.id),h=It(Sn.RegisterModuleFactoryFn).callFn([c,Mt(l)]).toStmt();e.statements.push(h)}return new Th(l)},e.prototype.createStub=function(e,t){this._createNgModuleFactory(e,t,st)},e.prototype._createNgModuleFactory=function(e,t,n){var r=Mt(In({reference:t})+"NgFactory").set(n).toDeclStmt(kt(Sn.NgModuleFactory,[Rt(e.importExpr(t))],[ue.Const]),[qe.Final,qe.Exported]);e.statements.push(r)},e}(),Ah=function(){function e(e){this._reflector=e}return e.prototype.isNgModule=function(e){return this._reflector.annotations(e).some($.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=Cc(this._reflector.annotations(e),$.isTypeOf);if(n)return n;if(t)throw new Error("No NgModule metadata found for '"+on(e)+"'.");return null},e}();function Mh(e){var t=new kh,n=Es.createRoot();return(Array.isArray(e)?e:[e]).forEach((function(e){if(e instanceof at)e.visitStatement(t,n);else if(e instanceof Te)e.visitExpression(t,n);else{if(!(e instanceof ce))throw new Error("Don't know how to print debug info for "+e);e.visitType(t,n)}})),n.toSource()}var Ih=function(){function e(){}return e.prototype.emitStatementsAndContext=function(e,t,n,r,i,s){void 0===n&&(n=""),void 0===r&&(r=!0);var o=new kh(i,s),a=Es.createRoot();o.visitAllStatements(t,a);var u=n?n.split("\n"):[];o.reexports.forEach((function(e,t){var n=e.map((function(e){return e.name+" as "+e.as})).join(",");u.push("export {"+n+"} from '"+t+"';")})),o.importsWithPrefixes.forEach((function(e,t){u.push("import * as "+e+" from '"+t+"';")}));var p=r?a.toSourceMapGenerator(e,u.length).toJsComment():"",l=v(u,[a.toSource(),p]);return p&&l.push(""),a.setPreambleLineCount(u.length),{sourceText:l.join("\n"),context:a}},e.prototype.emitStatements=function(e,t,n){return void 0===n&&(n=""),this.emitStatementsAndContext(e,t,n).sourceText},e}(),kh=function(e){function t(t,n){var r=e.call(this,!1)||this;return r.referenceFilter=t,r.importFilter=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return l(t,e),t.prototype.visitType=function(e,t,n){void 0===n&&(n="any"),e?(this.typeExpression++,e.visitType(this,t),this.typeExpression--):t.print(null,n)},t.prototype.visitLiteralExpr=function(t,n){var r=t.value;return null==r&&t.type!=ge?(n.print(t,"("+r+" as any)"),null):e.prototype.visitLiteralExpr.call(this,t,n)},t.prototype.visitLiteralArrayExpr=function(t,n){0===t.entries.length&&n.print(t,"(");var r=e.prototype.visitLiteralArrayExpr.call(this,t,n);return 0===t.entries.length&&n.print(t," as any[])"),r},t.prototype.visitExternalExpr=function(e,t){return this._visitIdentifier(e.value,e.typeParams,t),null},t.prototype.visitAssertNotNullExpr=function(t,n){var r=e.prototype.visitAssertNotNullExpr.call(this,t,n);return n.print(t,"!"),r},t.prototype.visitDeclareVarStmt=function(e,t){if(e.hasModifier(qe.Exported)&&e.value instanceof We&&!e.type){var n=e.value.value,r=n.name,i=n.moduleName;if(i){var s=this.reexports.get(i);return s||(s=[],this.reexports.set(i,s)),s.push({name:r,as:e.name}),null}}return e.hasModifier(qe.Exported)&&t.print(e,"export "),e.hasModifier(qe.Final)?t.print(e,"const"):t.print(e,"var"),t.print(e," "+e.name),this._printColonType(e.type,t),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null},t.prototype.visitWrappedNodeExpr
/**
* @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 Jh=function(){function e(e,t,n,r){void 0===r&&(r=null),this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=n,this._locale=r,this._messages=[]}return e.prototype.updateFromTemplate=function(e,t,n){var r,i=this._htmlParser.parse(e,t,{tokenizeExpansionForms:!0,interpolationConfig:n});if(i.errors.length)return i.errors;var s=function(e,t,n,r){return new Mc(n,r).extract(e,t)}(i.rootNodes,n,this._implicitTags,this._implicitAttrs);return s.errors.length?s.errors:((r=this._messages).push.apply(r,v(s.messages)),[])},e.prototype.getMessages=function(){return this._messages},e.prototype.write=function(e,t){var n={},r=new Zh;this._messages.forEach((function(t){var r,i=e.digest(t);n.hasOwnProperty(i)?(r=n[i].sources).push.apply(r,v(t.sources)):n[i]=t}));var i=Object.keys(n).map((function(i){var s=e.createNameMapper(n[i]),o=n[i],a=s?r.convert(o.nodes,s):o.nodes,u=new Or(a,{},{},o.meaning,o.description,i);return u.sources=o.sources,t&&u.sources.forEach((function(e){return e.filePath=t(e.filePath)})),u}));return e.write(i,this._locale)},e}(),Zh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.convert=function(e,t){var n=this;return t?e.map((function(e){return e.visit(n,t)})):e},t.prototype.visitTagPlaceholder=function(e,t){var n=this,r=t.toPublicName(e.startName),i=e.closeName?t.toPublicName(e.closeName):e.closeName,s=e.children.map((function(e){return e.visit(n,t)}));return new Br(e.tag,e.attrs,r,i,s,e.isVoid,e.sourceSpan)},t.prototype.visitPlaceholder=function(e,t){return new Vr(e.value,t.toPublicName(e.name),e.sourceSpan)},t.prototype.visitIcuPlaceholder=function(e,t){return new jr(e.value,t.toPublicName(e.name),e.sourceSpan)},t}(Ur),ef=function(){function e(e,t,n){this.srcFileUrl=e,this.genFileUrl=t,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return e.prototype.isEquivalent=function(e){return this.genFileUrl===e.genFileUrl&&(this.source?this.source===e.source:null!=e.stmts&&Ce(this.stmts,e.stmts))},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 tf(e,t){var n,r,i,s,o=[];try{for(var a=f(e.transitiveModule.providers),u=a.next();!u.done;u=a.next()){var p=u.value,l=p.provider,c=p.module;if(Bn(l.token)===t.ROUTES){var h=nf(l.useValue);try{for(var d=(i=void 0,f(h)),v=d.next();!v.done;v=d.next()){var m=v.value;o.push(rf(m,t,c.reference))}}catch(e){i={error:e}}finally{try{v&&!v.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}function nf(e,t){var n,r;if(void 0===t&&(t=[]),"string"==typeof e)t.push(e);else if(Array.isArray(e))try{for(var i=f(e),s=i.next();!s.done;s=i.next()){nf(s.value,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}else e.loadChildren?nf(e.loadChildren,t):e.children&&nf(e.children,t);return t}function rf(e,t,n){var r=d(e.split("#"),2),i=r[0],s=r[1],o=t.resolveExternalReference({moduleName:i,name:s},n?n.filePath:void 0);return{route:e,module:n||o,referencedModule:o}}
/**
* @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 sf=/^(?!.*\.d\.ts$).*\.ts$/,of=function(e,t){this.symbol=e,this.metadata=t},af=function(){function e(e,t,n,r){this.host=e,this.staticSymbolCache=t,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return e.prototype.resolveSymbol=function(e){if(e.members.length>0)return this._resolveSymbolMembers(e);var t=this._resolveSymbolFromSummary(e);if(t)return t;var n=this.resolvedSymbols.get(e);return n||(this._createSymbolsOf(e.filePath),this.resolvedSymbols.get(e))},e.prototype.getImportAs=function(e,t){if(void 0===t&&(t=!0),e.members.length){var n=this.getStaticSymbol(e.filePath,e.name);return(i=this.getImportAs(n,t))?this.getStaticSymbol(i.filePath,i.name,e.members):null}var r=e.filePath.replace(th,".");if(r!==e.filePath){var i,s=e.name.replace(nh,"");n=this.getStaticSymbol(r,s,e.members);return(i=this.getImportAs(n,t))?this.getStaticSymbol(uh(i.filePath),ph(i.name),n.members):null}var o=t&&this.summaryResolver.getImportAs(e)||null;return o||(o=this.importAs.get(e)),o},e.prototype.getResourcePath=function(e){return this.symbolResourcePaths.get(e)||e.filePath},e.prototype.getTypeArity=function(e){if(t=e.filePath,eh.test(t))return null;for(var t,n=pf(this.resolveSymbol(e));n&&n.metadata instanceof bn;)n=pf(this.resolveSymbol(n.metadata));return n&&n.metadata&&n.metadata.arity||null},e.prototype.getKnownModuleName=function(e){return this.knownFileNameToModuleNames.get(e)||null},e.prototype.recordImportAs=function(e,t){e.assertNoMembers(),t.assertNoMembers(),this.importAs.set(e,t)},e.prototype.recordModuleNameForFileName=function(e,t){this.knownFileNameToModuleNames.set(e,t)},e.prototype.invalidateFile=function(e){var t,n;this.metadataCache.delete(e);var r=this.symbolFromFile.get(e);if(!r)return[];this.symbolFromFile.delete(e);try{for(var i=f(r),s=i.next();!s.done;s=i.next()){var o=s.value;this.resolvedSymbols.delete(o),this.importAs.delete(o),this.symbolResourcePaths.delete(o)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.prototype.ignoreErrorsFor=function(e){var t=this.errorRecorder;this.errorRecorder=function(){};try{return e()}finally{this.errorRecorder=t}},e.prototype._resolveSymbolMembers=function(e){var t=e.members,n=this.resolveSymbol(this.getStaticSymbol(e.filePath,e.name));if(!n)return null;var r=pf(n.metadata);if(r instanceof bn)return new of(e,this.getStaticSymbol(r.filePath,r.name,t));if(!r||"class"!==r.__symbolic){for(var i=r,s=0;s<t.length&&i;s++)i=i[t[s]];return new of(e,i)}return r.statics&&1===t.length?new of(e,r.statics[t[0]]):null},e.prototype._resolveSymbolFromSummary=function(e){var t=this.summaryResolver.resolveSummary(e);return t?new of(e,t.metadata):null},e.prototype.getStaticSymbol=function(e,t,n){return this.staticSymbolCache.get(e,t,n)},e.prototype.hasDecorators=function(e){var t=this.getModuleMetadata(e);return!!t.metadata&&Object.keys(t.metadata).some((function(e){var n=t.metadata[e];return n&&"class"===n.__symbolic&&n.decorators}))},e.prototype.getSymbolsOf=function(e){var t=this.summaryResolver.getSymbolsOf(e);return t||(this._createSymbolsOf(e),this.symbolFromFile.get(e)||[])},e.prototype._createSymbolsOf=function(e){var t,n,r,i,s=this;if(!this.symbolFromFile.has(e)){var o=[],a=this.getModuleMetadata(e);if(a.importAs&&this.knownFileNameToModuleNames.set(e,a.importAs),a.exports){var u=function(t){if(t.export)t.export.forEach((function(n){var r,i=r=uf(r="string"==typeof n?n:n.as);"string"!=typeof n&&(i=uf(n.name));var a=s.resolveModule(t.from,e);if(a){var u=s.getStaticSymbol(a,i),p=s.getStaticSymbol(e,r);o.push(s.createExport(p,u))}}));else{var n=p.resolveModule(t.from,e);if(n)p.getSymbolsOf(n).forEach((function(t){var n=s.getStaticSymbol(e,t.name);o.push(s.createExport(n,t))}))}},p=this;try{for(var l=f(a.exports),c=l.next();!c.done;c=l.next()){u(c.value)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}}if(a
/**
* @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
*/(s)||(s={__symbolic:"error",message:"Complex function calls are not supported."}));if(r.metadata=s,i.metadata=this.processValue(s,1),s instanceof bn&&this.summaryResolver.isLibraryFile(s.filePath)){var a=this.symbols[this.indexBySymbol.get(s)];hh(a.name)||this.reexportedBy.set(a,e.symbol)}}if(!r.type&&e.type&&(r.type=e.type,i.type=this.processValue(e.type,0),e.type.summaryKind===An.NgModule)){var u=e.type;u.exportedDirectives.concat(u.exportedPipes).forEach((function(e){var t=e.reference;if(n.summaryResolver.isLibraryFile(t.filePath)&&!n.unprocessedSymbolSummariesBySymbol.has(t)){var r=n.summaryResolver.resolveSummary(t);r&&n.addSummary(r)}}))}},t.prototype.serialize=function(e){var t=this,n=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map((function(r,i){r.assertNoMembers();var s=void 0;if(t.summaryResolver.isLibraryFile(r.filePath)){var o=t.reexportedBy.get(r);if(o)s=t.indexBySymbol.get(o);else if(e){var a=t.unprocessedSymbolSummariesBySymbol.get(r);a&&a.metadata&&"interface"===a.metadata.__symbolic||(s=r.name+"_"+i,n.push({symbol:r,exportAs:s}))}}return{__symbol:i,name:r.name,filePath:t.summaryResolver.toSummaryFileName(r.filePath,t.srcFileName),importAs:s}}))}),exportAs:n}},t.prototype.processValue=function(e,t){return zt(e,this,t)},t.prototype.visitOther=function(e,t){if(e instanceof bn){var n=this.symbolResolver.getStaticSymbol(e.filePath,e.name);return{__symbol:this.visitStaticSymbol(n,t),members:e.members}}},t.prototype.visitStringMap=function(t,n){return"resolved"===t.__symbolic?zt(t.symbol,this,n):("error"===t.__symbolic&&(delete t.line,delete t.character),e.prototype.visitStringMap.call(this,t,n))},t.prototype.visitStaticSymbol=function(e,t){var n=this.indexBySymbol.get(e),r=null;if(1&t&&this.summaryResolver.isLibraryFile(e.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(e))return n;(r=this.loadSummary(e))&&r.metadata instanceof bn&&(n=this.visitStaticSymbol(r.metadata,t),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(e)),this.indexBySymbol.set(e,n),r&&this.addSummary(r),n},t.prototype.loadSummary=function(e){var t=this.summaryResolver.resolveSummary(e);if(!t){var n=this.symbolResolver.resolveSymbol(e);n&&(t={symbol:n.symbol,metadata:n.metadata})}return t},t}(Gt),hf=function(){function e(e,t,n){this.outputCtx=e,this.symbolResolver=t,this.summaryResolver=n,this.data=[]}return e.prototype.addSourceType=function(e,t){this.data.push({summary:e,metadata:t,isLibrary:!1})},e.prototype.addLibType=function(e){this.data.push({summary:e,metadata:null,isLibrary:!0})},e.prototype.serialize=function(e){var t,n,r,i,s,o,a=this,u=new Map;try{for(var p=f(e),l=p.next();!l.done;l=p.next()){var c=l.value,h=c.symbol,d=c.exportAs;u.set(h,d)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}var v=new Set;try{for(var m=f(this.data),y=m.next();!y.done;y=m.next()){var g=y.value,_=g.summary,E=g.metadata,x=g.isLibrary;if(_.summaryKind===An.NgModule){v.add(_.type.reference);var S=_;try{for(var w=(s=void 0,f(S.modules)),C=w.next();!C.done;C=w.next()){var b=C.value;v.add(b.reference)}}catch(e){s={error:e}}finally{try{C&&!C.done&&(o=w.return)&&o.call(w)}finally{if(s)throw s.error}}}if(!x){ph(_.type.reference.name);lf(this.outputCtx,_.type.reference,this.serializeSummaryWithDeps(_,E))}}}catch(e){r={error:e}}finally{try{y&&!y.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}v.forEach((function(e){if(a.summaryResolver.isLibraryFile(e.filePath)){var t=ph(u.get(e)||e.name);a.outputCtx.statements.push(Mt(t).set(a.serializeSummaryRef(e)).toDeclStmt(null,[qe.Exported]))}}))},e.prototype.serializeSummaryWithDeps=function(e,t){var n=this,r=[this.serializeSummary(e)],i=[];if(t instanceof Wn)r.push.apply(r,v(t.declaredDirectives.concat(t.declaredPipes).map((function(e){return e.reference})).concat(t.transitiveModule.modules.map((function(e){return e.reference})).filter((function(e){return e!==t.type.reference}))).map((function(e){return n.serializeSummaryRef(e)})))),i=t.prov
/**
* @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 Tf(e,t){var n,r;if(void 0===t&&(t=0),!e)return"";var i=e.position?e.position.fileName+"("+(e.position.line+1)+","+(e.position.column+1)+")":"",s=i&&0!==t?" at "+i:"",o=""+(i&&0===t?i+": ":"")+e.message+s;if(e.next)try{for(var a=f(e.next),u=a.next();!u.done;u=a.next()){o+="\n"+Tf(u.value,t+2)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return""+function e(t){if(t<=0)return"";if(t<6)return[""," "," "," "," "," "][t];var n=e(Math.floor(t/2));return n+n+(t%2==1?" ":"")}(t)+o}function Pf(e){var t=Zt(Tf(e)+".");return t.ngFormattedMessage=!0,t.chain=e,t.position=e.position,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
*/
var Nf="@angular/core",Af=/^\$.*\$$/,Mf={__symbolic:"ignore"},If=new Set(["useValue","useFactory","data","id","loadChildren"]);function kf(e){return e&&"ignore"==e.__symbolic}var Rf=function(){function e(e,t,n,r,i){var s=this;void 0===n&&(n=[]),void 0===r&&(r=[]),this.summaryResolver=e,this.symbolResolver=t,this.errorRecorder=i,this.annotationCache=new Map,this.shallowAnnotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.staticCache=new Map,this.conversionMap=new Map,this.resolvedExternalReferences=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.initializeConversionMap(),n.forEach((function(e){return s._registerDecoratorOrConstructor(s.getStaticSymbol(e.filePath,e.name),e.ctor)})),r.forEach((function(e){return s._registerFunction(s.getStaticSymbol(e.filePath,e.name),e.fn)})),this.annotationForParentClassWithSummaryKind.set(An.Directive,[U,W]),this.annotationForParentClassWithSummaryKind.set(An.Pipe,[z]),this.annotationForParentClassWithSummaryKind.set(An.NgModule,[$]),this.annotationForParentClassWithSummaryKind.set(An.Injectable,[Y,z,U,W,$])}return e.prototype.componentModuleUrl=function(e){var t=this.findSymbolDeclaration(e);return this.symbolResolver.getResourcePath(t)},e.prototype.invalidateSymbols=function(e){var t,n;try{for(var r=f(e),i=r.next();!i.done;i=r.next()){var s=i.value;this.annotationCache.delete(s),this.shallowAnnotationCache.delete(s),this.propertyCache.delete(s),this.parameterCache.delete(s),this.methodCache.delete(s),this.staticCache.delete(s),this.conversionMap.delete(s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.resolveExternalReference=function(e,t){var n=void 0;if(!t){n=e.moduleName+":"+e.name;var r=this.resolvedExternalReferences.get(n);if(r)return r}var i=this.symbolResolver.getSymbolByModule(e.moduleName,e.name,t),s=this.findSymbolDeclaration(i);return t||(this.symbolResolver.recordModuleNameForFileName(i.filePath,e.moduleName),this.symbolResolver.recordImportAs(s,i)),n&&this.resolvedExternalReferences.set(n,s),s},e.prototype.findDeclaration=function(e,t,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(e,t,n))},e.prototype.tryFindDeclaration=function(e,t,n){var r=this;return this.symbolResolver.ignoreErrorsFor((function(){return r.findDeclaration(e,t,n)}))},e.prototype.findSymbolDeclaration=function(e){var t=this.symbolResolver.resolveSymbol(e);if(t){var n=t.metadata;if(n&&"resolved"===n.__symbolic&&(n=n.symbol),n instanceof bn)return this.findSymbolDeclaration(t.metadata)}return e},e.prototype.tryAnnotations=function(e){var t=this.errorRecorder;this.errorRecorder=function(e,t){};try{return this.annotations(e)}finally{this.errorRecorder=t}},e.prototype.annotations=function(e){var t=this;return this._annotations(e,(function(e,n){return t.simplify(e,n)}),this.annotationCache)},e.prototype.shallowAnnotations=function(e){var t=this;return this._annotations(e,(function(e,n){return t.simplify(e,n,!0)}),this.shallowAnnotationCache)},e.prototype._annotations=function(e,t,n){var r=n.get(e);if(!r){r=[];var i=this.getTypeMetadata(e),s=this.findParentType(e,i);if(s){var o=this.annotations(s);r.push.apply(r,v(o))}var a=[];if(i.decorators&&(a=t(e,i.decorators))&&r.push.apply(r,v(a)),s&&!this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(s.filePath)){var u=this.summaryResolver.resolveSummary(s);if(u&&u.type){var p=this.annotationForParentClassWithSummaryKind.get(u.type.summaryKind);p.some((function(e){return a.some((function(t){return e.isTypeOf(t)}))}))||this.reportError(Uf(Of("Class "+e.name+" in "+e.filePath+" extends from a "+An[u.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+p.map((function(e){return e.ngMetadataName})).join(" or ")+" decorator to the class"),e),e)}}n.set(e,r.filter((function(e){return!!e})))}return r},e.prototype.propMetadata=function(e){var t=this,n=this.propertyCache.get(e);if(!n){var r=this.getTypeMetadata(e);n={};var i=this.fi
/**
* @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 Hf=function(){function e(e,t){this.host=e,this.staticSymbolCache=t,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return e.prototype.isLibraryFile=function(e){return!this.host.isSourceFile(ih(e))},e.prototype.toSummaryFileName=function(e,t){return this.host.toSummaryFileName(e,t)},e.prototype.fromSummaryFileName=function(e,t){return this.host.fromSummaryFileName(e,t)},e.prototype.resolveSummary=function(e){var t=e.members.length?this.staticSymbolCache.get(e.filePath,e.name):e,n=this.summaryCache.get(t);return n||(this._loadSummaryFile(e.filePath),n=this.summaryCache.get(e)),t===e&&n||null},e.prototype.getSymbolsOf=function(e){return this._loadSummaryFile(e)?Array.from(this.summaryCache.keys()).filter((function(t){return t.filePath===e})):null},e.prototype.getImportAs=function(e){return e.assertNoMembers(),this.importAs.get(e)},e.prototype.getKnownModuleName=function(e){return this.knownFileNameToModuleNames.get(e)||null},e.prototype.addSummary=function(e){this.summaryCache.set(e.symbol,e)},e.prototype._loadSummaryFile=function(e){var t=this,n=this.loadedFilePaths.get(e);if(null!=n)return n;var r=null;if(this.isLibraryFile(e)){var i=ah(e);try{r=this.host.loadSummary(i)}catch(e){throw console.error("Error loading summary file "+i),e}}if(n=null!=r,this.loadedFilePaths.set(e,n),r){var s=function(e,t,n,r){return new ff(e,t).deserialize(n,r)}(this.staticSymbolCache,this,e,r),o=s.moduleName,a=s.summaries,u=s.importAs;a.forEach((function(e){return t.summaryCache.set(e.symbol,e)})),o&&this.knownFileNameToModuleNames.set(e,o),u.forEach((function(e){t.importAs.set(e.symbol,e.importAs)}))}return 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 qf(e){return{resolve:function(t,n){var r=e.resourceNameToFileName(n,t);if(!r)throw Zt("Couldn't resolve resource "+n+" from "+t);return r}}}var Wf=function(){},zf=function(){function e(){this._summaries=new Map}return e.prototype.isLibraryFile=function(){return!1},e.prototype.toSummaryFileName=function(e){return e},e.prototype.fromSummaryFileName=function(e){return e},e.prototype.resolveSummary=function(e){return this._summaries.get(e)||null},e.prototype.getSymbolsOf=function(){return[]},e.prototype.getImportAs=function(e){return e},e.prototype.getKnownModuleName=function(e){return null},e.prototype.addSummary=function(e){this._summaries.set(e.symbol,e)},e}();function Kf(e,t,n,r,i){for(var s=r.createChildWihtLocalVars(),o=0;o<e.length;o++)s.vars.set(e[o],t[o]);var a=i.visitAllStatements(n,s);return a?a.value:null}var Qf=function(){function e(e,t,n,r){this.parent=e,this.instance=t,this.className=n,this.vars=r,this.exports=[]}return e.prototype.createChildWihtLocalVars=function(){return new e(this,this.instance,this.className,new Map)},e}(),Gf=function(e){this.value=e};var Xf=function(){function e(e){this.reflector=e}return e.prototype.debugAst=function(e){return Mh(e)},e.prototype.visitDeclareVarStmt=function(e,t){var n=e.value?e.value.visitExpression(this,t):void 0;return t.vars.set(e.name,n),e.hasModifier(qe.Exported)&&t.exports.push(e.name),null},e.prototype.visitWriteVarExpr=function(e,t){for(var n=e.value.visitExpression(this,t),r=t;null!=r;){if(r.vars.has(e.name))return r.vars.set(e.name,n),n;r=r.parent}throw new Error("Not declared variable "+e.name)},e.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot interpret a WrappedNodeExpr.")},e.prototype.visitTypeofExpr=function(e,t){throw new Error("Cannot interpret a TypeofExpr")},e.prototype.visitReadVarExpr=function(e,t){var n=e.name;if(null!=e.builtin)switch(e.builtin){case be.Super:return Object.getPrototypeOf(t.instance);case be.This:return t.instance;case be.CatchError:n=Yf;break;case be.CatchStack:n=Jf;break;default:throw new Error("Unknown builtin variable "+e.builtin)}for(var r=t;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},e.prototype.visitWriteKeyExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.index.visitExpression(this,t),i=e.value.visitExpression(this,t);return n[r]=i,i},e.prototype.visitWritePropExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.value.visitExpression(this,t);return n[e.name]=r,r},e.prototype.visitInvokeMethodExpr=function(e,t){var n,r=e.receiver.visitExpression(this,t),i=this.visitAllExpressions(e.args,t);if(null!=e.builtin)switch(e.builtin){case Pe.ConcatArray:n=r.concat.apply(r,v(i));break;case Pe.SubscribeObservable:n=r.subscribe({next:i[0]});break;case Pe.Bind:n=r.bind.apply(r,v(i));break;default:throw new Error("Unknown builtin method "+e.builtin)}else n=r[e.name].apply(r,i);return n},e.prototype.visitInvokeFunctionExpr=function(e,t){var n=this.visitAllExpressions(e.args,t),r=e.fn;return r instanceof Ne&&r.builtin===be.Super?(t.instance.constructor.prototype.constructor.apply(t.instance,n),null):e.fn.visitExpression(this,t).apply(null,n)},e.prototype.visitReturnStmt=function(e,t){return new Gf(e.value.visitExpression(this,t))},e.prototype.visitDeclareClassStmt=function(e,t){var n=function(e,t,n){var r={};e.getters.forEach((function(i){r[i.name]={configurable:!1,get:function(){var r=new Qf(t,this,e.name,t.vars);return Kf([],[],i.body,r,n)}}})),e.methods.forEach((function(i){var s=i.params.map((function(e){return e.name}));r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=new Qf(t,this,e.name,t.vars);return Kf(s,r,i.body,a,n)}}}));var i=e.constructorMethod.params.map((function(e){return e.name})),s=function(){for(var r=this,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var a=new Qf(t,this,e.name,t.vars);e.fields.forEach((function(e){r[e.name]=void 0})),Kf(i,s,e.constructorMethod.body,a,n)},o=e.parent?e.parent.visitExpression(n,t):Object;return s.
/**
* @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 rd=function(){};
/**
* @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 id=function(){function e(e){void 0===e&&(e=null),this._packagePrefix=e}return e.prototype.resolve=function(e,t){var n=t;null!=e&&e.length>0&&(n=function(e,t){var n=ad(encodeURI(t)),r=ad(e);if(null!=n[sd.Scheme])return ud(n);n[sd.Scheme]=r[sd.Scheme];for(var i=sd.Scheme;i<=sd.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[sd.Path][0])return ud(n);var s=r[sd.Path];null==s&&(s="/");var o=s.lastIndexOf("/");return s=s.substring(0,o+1)+n[sd.Path],n[sd.Path]=s,ud(n)}
/**
* @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
*/(e,n));var r=ad(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[sd.Scheme]){var s=r[sd.Path];return(i=i.replace(/\/+$/,""))+"/"+(s=s.replace(/^\/+/,""))}return n},e}();var sd,od=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function ad(e){return e.match(od)}function ud(e){var t,n,r,i,s,o,a,u,p=e[sd.Path];return p=null==p?"":function(e){if("/"==e)return"/";for(var t="/"==e[0]?"/":"",n="/"===e[e.length-1]?"/":"",r=e.split("/"),i=[],s=0,o=0;o<r.length;o++){var a=r[o];switch(a){case"":case".":break;case"..":i.length>0?i.pop():s++;break;default:i.push(a)}}if(""==t){for(;s-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+n}(p),e[sd.Path]=p,t=e[sd.Scheme],n=e[sd.UserInfo],r=e[sd.Domain],i=e[sd.Port],s=p,o=e[sd.QueryData],a=e[sd.Fragment],u=[],null!=t&&u.push(t+":"),null!=r&&(u.push("//"),null!=n&&u.push(n+"@"),u.push(r),null!=i&&u.push(":"+i)),null!=s&&u.push(s),null!=o&&u.push("?"+o),null!=a&&u.push("#"+a),u.join("")}!function(e){e[e.Scheme=1]="Scheme",e[e.UserInfo=2]="UserInfo",e[e.Domain=3]="Domain",e[e.Port=4]="Port",e[e.Path=5]="Path",e[e.QueryData=6]="QueryData",e[e.Fragment=7]="Fragment"}(sd||(sd={}));var pd=function(){function e(e,t,n,r){this.host=e,this.staticSymbolResolver=t,this.messageBundle=n,this.metadataResolver=r}return e.prototype.extract=function(e){var t=this,n=Ef(e,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.map((function(e){return t.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1)}))).then((function(){var e=[];if(r.forEach((function(n){var r=[];n.directives.forEach((function(e){var n=t.metadataResolver.getDirectiveMetadata(e);n&&n.isComponent&&r.push(n)})),r.forEach((function(n){var r=n.template.template,i=n.template.templateUrl,s=ls.fromArray(n.template.interpolation);e.push.apply(e,v(t.messageBundle.updateFromTemplate(r,i,s)))}))})),e.length)throw new Error(e.map((function(e){return e.toString()})).join("\n"));return t.messageBundle}))},e.create=function(t,n){var r=new Va,i=qf(t),s=new Tn,o=new Hf(t,s),a=new af(t,s,o),u=new Rf(o,a),p=new yc({defaultEncapsulation:P.Emulated,useJit:!1}),l=new _c({get:function(e){return t.loadResource(e)}},i,r,p),c=new Dp,h=new vh(p,r,new Ah(u),new Sc(u),new Rh(u),o,c,l,console,s,u),f=new Jh(r,[],{},n);return{extractor:new e(t,a,f,h),staticReflector:u}},e}(),ld=function(){function e(e){this.directiveMatcher=e}return e.prototype.bind=function(e){if(!e.template)throw new Error("Binding without a template not yet supported");var t=cd.apply(e.template),n=hd.apply(e.template,this.directiveMatcher),r=n.directives,i=n.bindings,s=n.references,o=fd.apply(e.template,t),a=o.expressions,u=o.symbols,p=o.nestingLevel,l=o.usedPipes;return new dd(e,r,i,s,a,u,p,l)},e}(),cd=function(){function e(e){this.parentScope=e,this.namedEntities=new Map,this.childScopes=new Map}return e.apply=function(t){var n=new e;return n.ingest(t),n},e.prototype.ingest=function(e){var t=this;e instanceof Pr?(e.variables.forEach((function(e){return t.visitVariable(e)})),e.children.forEach((function(e){return e.visit(t)}))):e.forEach((function(e){return e.visit(t)}))},e.prototype.visitElement=function(e){var t=this;e.references.forEach((function(e){return t.visitReference(e)})),e.children.forEach((function(e){return e.visit(t)}))},e.prototype.visitTemplate=function(t){var n=this;t.references.forEach((function(e){return n.visitReference(e)}));var r=new e(this);r.ingest(t),this.childScopes.set(t,r)},e.prototype.visitVariable=function(e){this.maybeDeclare(e)},e.prototype.visitReference=function(e){this.maybeDeclare(e)},e.prototype.visitContent=function(e){},e.prototype.visitBoundAttribute=function(e){},e.prototype.visitBoundEvent=function(e){},e.prototype.visitBoundText=function(e){},e.prototype.visitText=function(e){},e.prototype.visitTextAttribute=function(e){},e.prototype.visitIcu=function(e){},e.prototype.maybeDeclare=function(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)},e.prototype.l
/**
* @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
*/
/**
* @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
*/
/**
* @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
*/
vc(hn);var vd,md=Object.freeze({__proto__:null,AST:Ds,ASTWithSource:oo,AbsoluteSourceSpan:so,AotCompiler:vf,AotSummaryResolver:Hf,ArrayType:ve,AssertNotNull:Ge,AstMemoryEfficientTransformer:lo,AstPath:aa,AstTransformer:po,AttrAst:nu,Attribute:ha,Binary:Zs,get BinaryOperator(){return he},BinaryOperatorExpr:Je,BindingPipe:Gs,BoundDirectivePropertyAst:lu,BoundElementProperty:vo,BoundElementPropertyAst:iu,BoundEventAst:su,BoundTextAst:tu,get BuiltinMethod(){return Pe},BuiltinType:fe,get BuiltinTypeName(){return le},get BuiltinVar(){return be},CONTENT_ATTR:"_ngcontent-%COMP%",CUSTOM_ELEMENTS_SCHEMA:J,CastExpr:Xe,Chain:Us,ClassField:ft,ClassMethod:dt,ClassStmt:mt,CommaExpr:it,Comment:da,CommentStmt:gt,CompileDirectiveMetadata:Un,CompileMetadataResolver:vh,CompileNgModuleMetadata:Wn,CompilePipeMetadata:Hn,CompileReflector:rd,CompileShallowModuleMetadata:qn,CompileStylesheetMetadata:Vn,get CompileSummaryKind(){return An},CompileTemplateMetadata:jn,CompiledStylesheet:ia,CompilerConfig:yc,Conditional:Hs,ConditionalExpr:Ke,ConstantPool:yn,CssSelector:M,DEFAULT_INTERPOLATION_CONFIG:cs,DYNAMIC_TYPE:ye,DeclareFunctionStmt:pt,DeclareVarStmt:ut,DirectiveAst:cu,DirectiveNormalizer:_c,DirectiveResolver:Sc,DomElementSchemaRegistry:Dp,EMPTY_PARSE_LOCATION:mr,EMPTY_SOURCE_SPAN:yr,EOF:fp,ERROR_COMPONENT_TYPE:"ngComponentType",Element:fa,ElementAst:uu,ElementSchemaRegistry:Op,EmbeddedTemplateAst:pu,EmitterVisitorContext:Es,EmptyExpr:Vs,Expansion:la,ExpansionCase:ca,Expression:Te,ExpressionStatement:lt,ExpressionType:de,ExternalExpr:We,ExternalReference:ze,Extractor:pd,FunctionCall:io,FunctionExpr:Ye,GeneratedFile:ef,HOST_ATTR:"_nghost-%COMP%",HtmlParser:Va,HtmlTagDefinition:b,I18NHtmlParser:Gc,Identifiers:Sn,IfStmt:yt,ImplicitReceiver:js,InstantiateExpr:Le,Interpolation:Js,InterpolationConfig:ls,InvokeFunctionExpr:Fe,InvokeMethodExpr:Oe,IvyParser:Np,JSDocCommentStmt:_t,JitCompiler:Zf,JitEvaluator:bs,JitSummaryResolver:zf,KeyedRead:Ks,KeyedWrite:Qs,Lexer:pp,LiteralArray:$s,LiteralArrayExpr:tt,LiteralExpr:De,LiteralMap:Ys,LiteralMapExpr:rt,LiteralPrimitive:Xs,MapType:me,MessageBundle:Jh,MethodCall:no,NAMED_ENTITIES:S,NGSP_UNICODE:"",NONE_TYPE:Se,NO_ERRORS_SCHEMA:Z,NgContentAst:fu,NgModuleCompiler:Nh,NgModuleResolver:Ah,NodeWithI18n:ua,NonNullAssert:to,NotExpr:Qe,NullTemplateVisitor:du,ParseError:gr,get ParseErrorLevel(){return hr},ParseLocation:fr,ParseSourceFile:dr,ParseSourceSpan:vr,ParseSpan:Ls,ParseTreeResult:Fa,ParsedEvent:ho,ParsedProperty:co,get ParsedPropertyType(){return Os},ParsedVariable:fo,Parser:Pp,ParserError:Fs,PipeResolver:Rh,PrefixNot:eo,PropertyRead:qs,PropertyWrite:Ws,ProviderAst:hu,get ProviderAstType(){return Za},ProviderMeta:Qn,Quote:Bs,R3BoundTarget:dd,get R3FactoryTarget(){return Xi},R3Identifiers:tr,get R3ResolvedDependencyType(){return $i},R3TargetBinder:ld,ReadKeyExpr:et,ReadPropExpr:Ze,ReadVarExpr:Ne,RecursiveAstVisitor:uo,RecursiveTemplateAstVisitor:vu,RecursiveVisitor:ya,ReferenceAst:ou,ResolvedStaticSymbol:of,ResourceLoader:ec,ReturnStatement:ct,STRING_TYPE:xe,SafeMethodCall:ro,SafePropertyRead:zs,SelectorContext:R,SelectorListContext:k,SelectorMatcher:I,Serializer:ci,SplitInterpolation:xp,Statement:at,StaticReflector:Rf,StaticSymbol:bn,StaticSymbolCache:Tn,StaticSymbolResolver:af,get StmtModifier(){return qe},StyleCompiler:sa,StylesCompileDependency:ra,SummaryResolver:Wf,get TagContentType(){return c},TemplateBinding:ao,TemplateBindingParseResult:Sp,TemplateParseError:ju,TemplateParseResult:Uu,TemplateParser:Hu,Text:pa,TextAst:eu,ThrowStmt:xt,TmplAstBoundAttribute:Cr,TmplAstBoundEvent:br,TmplAstBoundText:Sr,TmplAstContent:Nr,TmplAstElement:Tr,TmplAstRecursiveVisitor:kr,TmplAstReference:Mr,TmplAstTemplate:Pr,TmplAstText:xr,TmplAstTextAttribute:wr,TmplAstVariable:Ar,Token:lp,get TokenType(){return np},TransitiveCompileNgModuleMetadata:zn,TreeError:Oa,TryCatchStmt:Et,Type:ce,TypeScriptEmitter:Ih,TypeofExpr:Ae,UrlResolver:id,VERSION:mc,VariableAst:au,Version:pn,ViewCompiler:Bh,WrappedNodeExpr:Me,WriteKeyExpr:ke,WritePropExpr:Re,WriteVarExpr:Ie,Xliff:Fc,Xliff2:Vc,Xmb:Si,XmlParser:Oc,Xtb:qc,_ParseAST:Ap,analyzeAndVa
/**
* @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
*/,createOfflineCompileUrlResolver:function(){return new id(".")},createUrlResolverWithoutPackagePrefix:function(){return new id},debugOutputAstAsTypeScript:Mh,findNode:function(e,t){var n=[];return va(new(function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return l(r,e),r.prototype.visit=function(e,r){var i=function e(t){var n=t.sourceSpan.start.offset,r=t.sourceSpan.end.offset;return t instanceof fa&&(t.endSourceSpan?r=t.endSourceSpan.end.offset:t.children&&t.children.length&&(r=e(t.children[t.children.length-1]).end)),{start:n,end:r}}(e);if(!(i.start<=t&&t<i.end))return!0;n.push(e)},r}(ya)),e),new aa(n,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
*/,flatten:Gn,formattedError:Pf,getHtmlTagDefinition:T,getNsPrefix:E,getParseErrors:function(e){return e[tn]||[]},getUrlScheme:function(e){var t=ad(e);return t&&t[sd.Scheme]||""},hostViewClassName:Fn,identifierModuleUrl:kn,identifierName:In,isEmptyExpression:Zu,isFormattedError:function(e){return!!e.ngFormattedMessage},isIdentifier:mp,isLoweredSymbol:hh,isNgContainer:y,isNgContent:g,isNgTemplate:_,isQuote:_p,isSyntaxError:function(e){return e[en]},literalMap:Lt,makeBindingParser:Ml,mergeAnalyzedFiles:Cf,mergeNsAndName:x,ngModuleJitUrl:Jn,parseHostBindings:Jl,parseTemplate:Nl,preserveWhitespacesDefault:gc,publishFacade:vc,r3JitTypeSourceSpan:Er,removeSummaryDuplicates:Ju,rendererTypeName:On,sanitizeIdentifier:Nn,sharedStylesheetJitUrl:Yn,splitClasses:Ku,splitNsName:m,syntaxError:Zt,templateJitUrl:Zn,templateSourceUrl:$n,templateVisitAll:mu,toTypeScript:function(e,t){if(void 0===t&&(t=""),!e.stmts)throw new Error("Illegal state: No stmts present on GeneratedFile "+e.genFileUrl);return(new Ih).emitStatements(e.genFileUrl,e.stmts,t)},tokenName:Dn,tokenReference:Bn,typeSourceSpan:_r,unescapeIdentifier:uf,unwrapResolvedMetadata:pf,verifyHostBindings:Zl,viewClassName:Rn,visitAll:va});
/**
* @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
*/class yd{constructor(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: ".concat(e," ").concat(n," [").concat(t,"] in ").concat(r)}}class gd{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new Ud(e+this.start,e+this.end)}}class _d{constructor(e,t){this.span=e,this.sourceSpan=t}visit(e,t=null){return null}toString(){return"AST"}}class Ed extends _d{constructor(e,t,n,r,i){super(e,t),this.prefix=n,this.uninterpretedExpression=r,this.location=i}visit(e,t=null){return e.visitQuote(this,t)}toString(){return"Quote"}}class xd extends _d{visit(e,t=null){}}class Sd extends _d{visit(e,t=null){return e.visitImplicitReceiver(this,t)}}class wd extends _d{constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitChain(this,t)}}class Cd extends _d{constructor(e,t,n,r,i){super(e,t),this.condition=n,this.trueExp=r,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}}class bd extends _d{constructor(e,t,n,r){super(e,t),this.receiver=n,this.name=r}visit(e,t=null){return e.visitPropertyRead(this,t)}}class Td extends _d{constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.name=r,this.value=i}visit(e,t=null){return e.visitPropertyWrite(this,t)}}class Pd extends _d{constructor(e,t,n,r){super(e,t),this.receiver=n,this.name=r}visit(e,t=null){return e.visitSafePropertyRead(this,t)}}class Nd extends _d{constructor(e,t,n,r){super(e,t),this.obj=n,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}}class Ad extends _d{constructor(e,t,n,r,i){super(e,t),this.obj=n,this.key=r,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}}class Md extends _d{constructor(e,t,n,r,i,s){super(e,t),this.exp=n,this.name=r,this.args=i,this.nameSpan=s}visit(e,t=null){return e.visitPipe(this,t)}}class Id extends _d{constructor(e,t,n){super(e,t),this.value=n}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}}class kd extends _d{constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitLiteralArray(this,t)}}class Rd extends _d{constructor(e,t,n,r){super(e,t),this.keys=n,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}}class Od extends _d{constructor(e,t,n,r){super(e,t),this.strings=n,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}}class Fd extends _d{constructor(e,t,n,r,i){super(e,t),this.operation=n,this.left=r,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}}class Ld extends _d{constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitPrefixNot(this,t)}}class Dd extends _d{constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitNonNullAssert(this,t)}}class Bd extends _d{constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.name=r,this.args=i}visit(e,t=null){return e.visitMethodCall(this,t)}}class Vd extends _d{constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.name=r,this.args=i}visit(e,t=null){return e.visitSafeMethodCall(this,t)}}class jd extends _d{constructor(e,t,n,r){super(e,t),this.target=n,this.args=r}visit(e,t=null){return e.visitFunctionCall(this,t)}}class Ud{constructor(e,t){this.start=e,this.end=t}}class Hd extends _d{constructor(e,t,n,r,i){super(new gd(0,null===t?0:t.length),new Ud(r,null===t?r:r+t.length)),this.ast=e,this.source=t,this.location=n,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return"".concat(this.source," in ").concat(this.location)}}class qd{constructor(e,t,n,r,i,s){this.span=e,this.key=n,this.keyIsVar=r,this.name=i,this.expression=s}}!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION"}(vd||(vd={}));var Wd=Object.freeze({__proto__:null,ParserError:yd,ParseSpan:gd,AST:_d,Quote:Ed,EmptyExpr:xd,ImplicitReceiver:Sd,Chain:wd,Conditional:Cd,PropertyRead:bd,PropertyWrite:Td,SafePropertyRead:Pd,KeyedRead:Nd,KeyedWrite:Ad,BindingPipe:Md,LiteralPrimitive:Id,LiteralArray:kd,LiteralMap:Rd,Interpolation:Od,Binary:Fd,PrefixNot:Ld,NonNullAssert:Dd,MethodCall:Bd,SafeMethodCall:Vd,FunctionCall:jd,AbsoluteSourceSp
/**
* @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 zd(e){return 48<=e&&e<=57}
/**
* @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 Kd;!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"}(Kd||(Kd={}));const Qd=["var","let","as","null","undefined","true","false","if","else","this"];class Gd{constructor(e,t,n,r,i){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=i}isCharacter(e){return this.type==Kd.Character&&this.numValue==e}isNumber(){return this.type==Kd.Number}isString(){return this.type==Kd.String}isOperator(e){return this.type==Kd.Operator&&this.strValue==e}isIdentifier(){return this.type==Kd.Identifier}isKeyword(){return this.type==Kd.Keyword}isKeywordLet(){return this.type==Kd.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==Kd.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==Kd.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==Kd.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==Kd.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==Kd.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==Kd.Keyword&&"this"==this.strValue}isError(){return this.type==Kd.Error}toNumber(){return this.type==Kd.Number?this.numValue:-1}toString(){switch(this.type){case Kd.Character:case Kd.Identifier:case Kd.Keyword:case Kd.Operator:case Kd.String:case Kd.Error:return this.strValue;case Kd.Number:return this.numValue.toString();default:return null}}}function Xd(e,t,n){return new Gd(e,t,Kd.Character,n,String.fromCharCode(n))}function $d(e,t,n){return new Gd(e,t,Kd.Operator,0,n)}const Yd=new Gd(-1,-1,Kd.Character,0,"");class Jd{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){const e=this.input,t=this.length;let n=this.peek,r=this.index;for(;n<=32;){if(++r>=t){n=0;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(Zd(n))return this.scanIdentifier();if(zd(n))return this.scanNumber(r);const i=r;switch(n){case 46:return this.advance(),zd(this.peek)?this.scanNumber(i):Xd(i,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(i,n);case 39:case 34:return this.scanString();case 35:case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case 62:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=");case 33:case 61:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=",61,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case 160:for(;(s=this.peek)>=9&&s<=32||160==s;)this.advance();return this.scanToken()}var s;return this.advance(),this.error("Unexpected character [".concat(String.fromCharCode(n),"]"),0)}scanCharacter(e,t){return this.advance(),Xd(e,this.index,t)}scanOperator(e,t){return this.advance(),$d(e,this.index,t)}scanComplexOperator(e,t,n,r,i,s){this.advance();let o=t;return this.peek==n&&(this.advance(),o+=r),null!=i&&this.peek==i&&(this.advance(),o+=s),$d(e,this.index,o)}scanIdentifier(){const e=this.index;for(this.advance();tv(this.peek);)this.advance();const t=this.input.substring(e,this.index);return Qd.indexOf(t)>-1?(n=e,r=this.index,i=t,new Gd(n,r,Kd.Keyword,0,i)):function(e,t,n){return new Gd(e,t,Kd.Identifier,0,n)}(e,this.index,t);var n,r,i}scanNumber(e){let t=this.index===e;for(this.advance();;){if(zd(this.peek));else if(46==this.peek)t=!1;else{if(101!=(n=this.peek)&&69!=n)break;if(this.advance(),nv(this.peek)&&this.advance(),!zd(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}var n;const r=this.input.substring(e,this.index),i=t?function(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}(r):parseFloat(r);return s=e,o=this.index,a=i,new Gd(s,o,Kd.Number,a,"");var s,o,a}scanString(){const e=this.index,t=this.peek;this.advance();let n=
/**
* @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
*/const ov=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];
/**
* @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
*/
class av{constructor(e,t){this.start=e,this.end=t}static fromArray(e){return e?(function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '".concat(e,"' to be an array, [start, end]."));if(null!=t){const e=t[0],n=t[1];ov.forEach(t=>{if(t.test(e)||t.test(n))throw new Error("['".concat(e,"', '").concat(n,"'] contains unusable interpolation symbol."))})}}("interpolation",e),new av(e[0],e[1])):uv}}const uv=new av("{{","}}");function pv(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;
/**
* @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
*/class lv{constructor(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}}class cv{constructor(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}}const hv=dv(uv);function fv(e){return e===uv?hv:dv(e)}function dv(e){const t=pv(e.start)+"([\\s\\S]*?)"+pv(e.end);return new RegExp(t,"g")}class vv{constructor(e){this._lexer=e,this.errors=[],this.simpleExpressionChecker=yv}parseAction(e,t,n,r=uv){this._checkNoInterpolation(e,t,r);const i=this._stripComments(e),s=this._lexer.tokenize(this._stripComments(e)),o=new mv(e,t,n,s,i.length,!0,this.errors,e.length-i.length).parseChain();return new Hd(o,e,t,n,this.errors)}parseBinding(e,t,n,r=uv){const i=this._parseBindingAst(e,t,n,r);return new Hd(i,e,t,n,this.errors)}checkSimpleExpression(e){const t=new this.simpleExpressionChecker;return e.visit(t),t.errors}parseSimpleBinding(e,t,n,r=uv){const i=this._parseBindingAst(e,t,n,r),s=this.checkSimpleExpression(i);return s.length>0&&this._reportError("Host binding expression cannot contain ".concat(s.join(" ")),e,t),new Hd(i,e,t,n,this.errors)}_reportError(e,t,n,r){this.errors.push(new yd(e,t,n,r))}_parseBindingAst(e,t,n,r){const i=this._parseQuote(e,t,n);if(null!=i)return i;this._checkNoInterpolation(e,t,r);const s=this._stripComments(e),o=this._lexer.tokenize(s);return new mv(e,t,n,o,s.length,!1,this.errors,e.length-s.length).parseChain()}_parseQuote(e,t,n){if(null==e)return null;const r=e.indexOf(":");if(-1==r)return null;const i=e.substring(0,r).trim();if(!ev(i))return null;const s=e.substring(r+1),o=new gd(0,e.length);return new Ed(o,o.toAbsolute(n),i,s,t)}parseTemplateBindings(e,t,n,r){const i=this._lexer.tokenize(t);return new mv(t,n,r,i,t.length,!1,this.errors,0).parseTemplateBindings(e)}parseInterpolation(e,t,n,r=uv){const i=this.splitInterpolation(e,t,r);if(null==i)return null;const s=[];for(let r=0;r<i.expressions.length;++r){const o=i.expressions[r],a=this._stripComments(o),u=this._lexer.tokenize(a),p=new mv(e,t,n,u,a.length,!1,this.errors,i.offsets[r]+(o.length-a.length)).parseChain();s.push(p)}const o=new gd(0,null==e?0:e.length);return new Hd(new Od(o,o.toAbsolute(n),i.strings,s),e,t,n,this.errors)}splitInterpolation(e,t,n=uv){const r=fv(n),i=e.split(r);if(i.length<=1)return null;const s=[],o=[],a=[];let u=0;for(let r=0;r<i.length;r++){const p=i[r];r%2==0?(s.push(p),u+=p.length):p.trim().length>0?(u+=n.start.length,o.push(p),a.push(u),u+=p.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(this._findInterpolationErrorColumn(i,r,n)," in"),t),o.push("$implicit"),a.push(u))}return new lv(s,o,a)}wrapLiteralPrimitive(e,t,n){const r=new gd(0,null==e?0:e.length);return new Hd(new Id(r,r.toAbsolute(n),e),e,t,n,this.errors)}_stripComments(e){const t=this._commentStart(e);return null!=t?e.substring(0,t).trim():e}_commentStart(e){let t=null;for(let n=0;n<e.length-1;n++){const r=e.charCodeAt(n),i=e.charCodeAt(n+1);if(47===r&&47==i&&null==t)return n;t===r?t=null:null==t&&rv(r)&&(t=r)}return null}_checkNoInterpolation(e,t,n){const r=fv(n),i=e.split(r);i.length>1&&this._reportError("Got interpolation (".concat(n.start).concat(n.end,") where expression was expected"),e,"at column ".concat(this._findInterpolationErrorColumn(i,1,n)," in"),t)}_findInterpolationErrorColumn(e,t,n){let r="";for(let i=0;i<t;i++)r+=i%2==0?e[i]:"".concat(n.start).concat(e[i]).concat(n.end);return r.length}}class mv{constructor(e,t,n,r,i,s,o,a){this.input=e,this.location=t,this.absoluteOffset=n,this.tokens=r,this.inputLength=i,this.parseAction=s,this.errors=o,this.offset=a,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.sourceSpanCache=new Map,this.index=0}peek(e){const t=this.index+e;return t<this.tokens.length?this.tokens[t]:Yd}get next(){return this.peek(0)}get inputIndex(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset}span(e){return new gd(e,this.inputIndex)}sourceSpan(e){const t="".concat(e,"@").concat(this.inputIndex);return this.sourceSpanCache.has(t)||this.sourceSpanCache.set(t,this.span(e).toAb