text: /**
   * @license Angular v7.2.16
   * (c) 2010-2019 Google LLC. https://angular.io/
   * License: MIT
   */
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("@angular/compiler",["exports"],t):t(((e=e||self).ng=e.ng||{},e.ng.compiler={}))}(this,function(e){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,n)};function n(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r,i=function(){return(i=Object.assign||function e(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function o(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function a(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */function u(e){if(":"!=e[0])return[null,e];var t=e.indexOf(":",1);if(-1==t)throw new Error('Unsupported format "'+e+'" expecting ":namespace:name"');return[e.slice(1,t),e.slice(t+1)]}function p(e){return"ng-container"===u(e)[1]}function l(e){return"ng-content"===u(e)[1]}function c(e){return"ng-template"===u(e)[1]}function h(e){return null===e?null:u(e)[0]}function f(e,t){return e?":"+e+":"+t:t}(
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
  r=e.TagContentType||(e.TagContentType={}))[r.RAW_TEXT=0]="RAW_TEXT",r[r.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",r[r.PARSABLE_DATA=2]="PARSABLE_DATA";var d={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},v="";d.ngsp=v;
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
  var m,y,g=function(){function t(t){var n=void 0===t?{}:t,r=n.closedByChildren,i=n.requiredParents,o=n.implicitNamespacePrefix,s=n.contentType,a=void 0===s?e.TagContentType.PARSABLE_DATA:s,u=n.closedByParent,p=void 0!==u&&u,l=n.isVoid,c=void 0!==l&&l,h=n.ignoreFirstLf,f=void 0!==h&&h,d=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(e){return d.closedByChildren[e]=!0}),this.isVoid=c,this.closedByParent=p||c,i&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(e){return d.requiredParents[e]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=a,this.ignoreFirstLf=f}return t.prototype.requireExtraParent=function(e){if(!this.requiredParents)return!1;if(!e)return!0;var t=e.toLowerCase();return!("template"===t||"ng-template"===e)&&1!=this.requiredParents[t]},t.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},t}();function _(t){return y||(m=new g,y={base:new g({isVoid:!0}),meta:new g({isVoid:!0}),area:new g({isVoid:!0}),embed:new g({isVoid:!0}),link:new g({isVoid:!0}),img:new g({isVoid:!0}),input:new g({isVoid:!0}),param:new g({isVoid:!0}),hr:new g({isVoid:!0}),br:new g({isVoid:!0}),source:new g({isVoid:!0}),track:new g({isVoid:!0}),wbr:new g({isVoid:!0}),p:new g({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new g({closedByChildren:["tbody","tfoot"]}),tbody:new g({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new g({closedByChildren:["tbody"],closedByParent:!0}),tr:new g({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new g({closedByChildren:["td","th"],closedByParent:!0}),th:new g({closedByChildren:["td","th"],closedByParent:!0}),col:new g({requiredParents:["colgroup"],isVoid:!0}),svg:new g({implicitNamespacePrefix:"svg"}),math:new g({implicitNamespacePrefix:"math"}),li:new g({closedByChildren:["li"],closedByParent:!0}),dt:new g({closedByChildren:["dt","dd"]}),dd:new g({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new g({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new g({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new g({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new g({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new g({closedByChildren:["optgroup"],closedByParent:!0}),option:new g({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new g({ignoreFirstLf:!0}),listing:new g({ignoreFirstLf:!0}),style:new g({contentType:e.TagContentType.RAW_TEXT}),script:new g({contentType:e.TagContentType.RAW_TEXT}),title:new g({contentType:e.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new g({contentType:e.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),y[t.toLowerCase()]||m}
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */var E,x,S=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),w=function(){function e(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return e.parse=function(t){var n,r=[],i=function(e,t){t.notSelectors.length>0&&!t.element&&0==t.classNames.length&&0==t.attrs.length&&(t.element="*"),e.push(t)},o=new e,s=o,a=!1;for(S.lastIndex=0;n=S.exec(t);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new e,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new e}}return i(r,o),r},e.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},e.prototype.hasElementSelector=function(){return!!this.element},e.prototype.setElement=function(e){void 0===e&&(e=null),this.element=e},e.prototype.getMatchingElementTemplate=function(){for(var e=this.element||"div",t=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2)n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"");return _(e).isVoid?"<"+e+t+n+"/>":"<"+e+t+n+"></"+e+">"},e.prototype.getAttrs=function(){var e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)},e.prototype.addAttribute=function(e,t){void 0===t&&(t=""),this.attrs.push(e,t&&t.toLowerCase()||"")},e.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},e.prototype.toString=function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach(function(t){return e+="."+t}),this.attrs)for(var t=0;t<this.attrs.length;t+=2){var n=this.attrs[t+1];e+="["+this.attrs[t]+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(t){return e+=":not("+t+")"}),e},e}(),C=function(){function e(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return e.createNotMatcher=function(t){var n=new e;return n.addSelectables(t,null),n},e.prototype.addSelectables=function(e,t){var n=null;e.length>1&&(n=new b(e),this._listContexts.push(n));for(var r=0;r<e.length;r++)this._addSelectable(e[r],t,n)},e.prototype._addSelectable=function(e,t,n){var r=this,i=e.element,o=e.classNames,s=e.attrs,a=new T(e,t,n);if(i&&(0===s.length&&0===o.length?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i)),o)for(var u=0;u<o.length;u++){var p=o[u];0===s.length&&u===o.length-1?this._addTerminal(r._classMap,p,a):r=this._addPartial(r._classPartialMap,p)}if(s)for(u=0;u<s.length;u+=2){var l=s[u],c=s[u+1];if(u===s.length-2){var h=r._attrValueMap,f=h.get(l);f||(f=new Map,h.set(l,f)),this._addTerminal(f,c,a)}else{var d=r._attrValuePartialMap,v=d.get(l);v||(v=new Map,d.set(l,v)),r=this._addPartial(v,c)}}},e.prototype._addTerminal=function(e,t,n){var r=e.get(t);r||e.set(t,r=[]),r.push(n)},e.prototype._addPartial=function(t,n){var r=t.get(n);return r||(r=new e,t.set(n,r)),r},e.prototype.match=function(e,t){for(var n=!1,r=e.element,i=e.classNames,o=e.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,e,t)||n,n=this._matchPartial(this._elementPartialMap,r,e,t)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,e,t)||n,n=this._matchPartial(this._classPartialMap,a,e,t)||n}if(o)for(s=0;s<o.length;s+=2){var u=o[s],p=o[s+1],l=this._attrValueMap.get(u);p&&(n=this._matchTerminal(l,"",e,t)||n),n=this._matchTerminal(l,p,e,t)||n;var c=this._attrValuePartialMap.get(u);p&&(n=this._matchPartial(c,"",e,t)||n),n=this._matchPartial(c,p,e,t)||n}return n},e.prototype._matchTerminal=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t)||[],o=e.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s=!1,a=0;a<i.length;a++)s=i[a].finalize(n,r)||s;return s},e.prototype._matchPartial=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t);return!!i&&i.match(n,r)},e}(),b=function b(e){this.selectors=e,this.alreadyMatched=!1},T=function(){function e(e,t,n){this.selector=e,this.cbContext=t,this.listContext=n,this.notSelectors=e.notSelectors}return e.prototype.finalize=function(e,t){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!C.createNotMatcher(this.notSelectors).match(e,null)),!n||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n},e}(),P=J("Inject",function(e){return{token:e}}),M=J("InjectionToken",function(e){return{_desc:e,ngInjectableDef:void 0}}),N=J("Attribute",function(e){return{attributeName:e}}),A=J("ContentChildren",function(e,t){return void 0===t&&(t={}),i({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)}),I=J("ContentChild",function(e,t){return void 0===t&&(t={}),i({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)}),k=J("ViewChildren",function(e,t){return void 0===t&&(t={}),i({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)}),O=J("ViewChild",function(e,t){return i({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)}),R=J("Directive",function(e){return void 0===e&&(e={}),e});!function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(E||(E={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(x||(x={}));var D,L,F=J("Component",function(e){return void 0===e&&(e={}),i({changeDetection:x.Default},e)}),B=J("Pipe",function(e){return i({pure:!0},e)}),V=J("Input",function(e){return{bindingPropertyName:e}}),j=J("Output",function(e){return{bindingPropertyName:e}}),U=J("HostBinding",function(e){return{hostPropertyName:e}}),q=J("HostListener",function(e,t){return{eventName:e,args:t}}),H=J("NgModule",function(e){return e}),W=J("Injectable",function(e){return void 0===e&&(e={}),e}),z={name:"custom-elements"},K={name:"no-errors-schema"},Q=J("Optional"),X=J("Self"),G=J("SkipSelf"),$=J("Host"),Y=Function;function J(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t?t.apply(void 0,a(n)):{};return i({ngMetadataName:e},o)}return n.isTypeOf=function(t){return t&&t.ngMetadataName===e},n.ngMetadataName=e,n}function Z(e){var t=function n(e){var t=e.classNames&&e.classNames.length?a([8],e.classNames):[];return a([e.element&&"*"!==e.element?e.element:""],e.attrs,t)}(e),r=e.notSelectors&&e.notSelectors.length?e.notSelectors.map(function(e){return function t(e){var t=e.classNames&&e.classNames.length?a([8],e.classNames):[];return e.element?a([5,e.element],e.attrs,t):e.attrs.length?a([3],e.attrs,t):e.classNames&&e.classNames.length?a([9],e.classNames):[]}(e)}):[];return t.concat.apply(t,a(r))}function ee(e){return e?w.parse(e).map(Z):[]}!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(D||(D={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(L||(L={}));var te,ne=Object.freeze({createInject:P,createInjectionToken:M,createAttribute:N,createContentChildren:A,createContentChild:I,createViewChildren:k,createViewChild:O,createDirective:R,get ViewEncapsulation(){return E},get ChangeDetectionStrategy(){return x},createComponent:F,createPipe:B,createInput:V,createOutput:j,createHostBinding:U,createHostListener:q,createNgModule:H,createInjectable:W,CUSTOM_ELEMENTS_SCHEMA:z,NO_ERRORS_SCHEMA:K,createOptional:Q,createSelf:X,createSkipSelf:G,createHost:$,Type:Y,get SecurityContext(){return D},get MissingTranslationStrategy(){return L},parseSelectorToR3Selector:ee});
  /**
       * @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"}(te||(te={}));var re,ie=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}();(re=e.BuiltinTypeName||(e.BuiltinTypeName={}))[re.Dynamic=0]="Dynamic",re[re.Bool=1]="Bool",re[re.String=2]="String",re[re.Int=3]="Int",re[re.Number=4]="Number",re[re.Function=5]="Function",re[re.Inferred=6]="Inferred",re[re.None=7]="None";var oe,se=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.name=t,r}return n(t,e),t.prototype.visitType=function(e,t){return e.visitBuiltinType(this,t)},t}(ie),ae=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 n(t,e),t.prototype.visitType=function(e,t){return e.visitExpressionType(this,t)},t}(ie),ue=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.of=t,r}return n(t,e),t.prototype.visitType=function(e,t){return e.visitArrayType(this,t)},t}(ie),pe=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 n(t,e),t.prototype.visitType=function(e,t){return e.visitMapType(this,t)},t}(ie),le=new se(e.BuiltinTypeName.Dynamic),ce=new se(e.BuiltinTypeName.Inferred),he=new se(e.BuiltinTypeName.Bool),fe=(new se(e.BuiltinTypeName.Int),new se(e.BuiltinTypeName.Number)),de=(new se(e.BuiltinTypeName.String),new se(e.BuiltinTypeName.Function),new se(e.BuiltinTypeName.None));function ve(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}function me(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}(oe=e.BinaryOperator||(e.BinaryOperator={}))[oe.Equals=0]="Equals",oe[oe.NotEquals=1]="NotEquals",oe[oe.Identical=2]="Identical",oe[oe.NotIdentical=3]="NotIdentical",oe[oe.Minus=4]="Minus",oe[oe.Plus=5]="Plus",oe[oe.Divide=6]="Divide",oe[oe.Multiply=7]="Multiply",oe[oe.Modulo=8]="Modulo",oe[oe.And=9]="And",oe[oe.Or=10]="Or",oe[oe.BitwiseAnd=11]="BitwiseAnd",oe[oe.Lower=12]="Lower",oe[oe.LowerEquals=13]="LowerEquals",oe[oe.Bigger=14]="Bigger",oe[oe.BiggerEquals=15]="BiggerEquals";var ye,ge=function(){function t(e,t){this.type=e||null,this.sourceSpan=t||null}return t.prototype.prop=function(e,t){return new je(this,e,null,t)},t.prototype.key=function(e,t,n){return new Ue(this,e,t,n)},t.prototype.callMethod=function(e,t,n){return new Pe(this,e,t,null,n)},t.prototype.callFn=function(e,t){return new Me(this,e,null,t)},t.prototype.instantiate=function(e,t,n){return new Ne(this,e,t,n)},t.prototype.conditional=function(e,t,n){return void 0===t&&(t=null),new Oe(this,e,t,null,n)},t.prototype.equals=function(t,n){return new Ve(e.BinaryOperator.Equals,this,t,null,n)},t.prototype.notEquals=function(t,n){return new Ve(e.BinaryOperator.NotEquals,this,t,null,n)},t.prototype.identical=function(t,n){return new Ve(e.BinaryOperator.Identical,this,t,null,n)},t.prototype.notIdentical=function(t,n){return new Ve(e.BinaryOperator.NotIdentical,this,t,null,n)},t.prototype.minus=function(t,n){return new Ve(e.BinaryOperator.Minus,this,t,null,n)},t.prototype.plus=function(t,n){return new Ve(e.BinaryOperator.Plus,this,t,null,n)},t.prototype.divide=function(t,n){return new Ve(e.BinaryOperator.Divide,this,t,null,n)},t.prototype.multiply=function(t,n){return new Ve(e.BinaryOperator.Multiply,this,t,null,n)},t.prototype.modulo=function(t,n){return new Ve(e.BinaryOperator.Modulo,this,t,null,n)},t.prototype.and=function(t,n){return new Ve(e.BinaryOperator.And,this,t,null,n)},t.prototype.bitwiseAnd=function(t,n,r){return void 0===r&&(r=!0),new Ve(e.BinaryOperator.BitwiseAnd,this,t,null,n,r)},t.prototype.or=function(t,n){return new Ve(e.BinaryOperator.Or,this,t,null,n)},t.prototype.lower=function(t,n){return new Ve(e.BinaryOperator.Lower,this,t,null,n)},t.prototype.lowerEquals=function(t,n){return new Ve(e.BinaryOperator.LowerEquals,this,t,null,n)},t.prototype.bigger=function(t,n){return new Ve(e.BinaryOperator.Bigger,this,t,null,n)},t.prototype.biggerEquals=function(t,n){return new Ve(e.BinaryOperator.BiggerEquals,this,t,null,n)},t.prototype.isBlank=function(e){return this.equals(Qe,e)},t.prototype.cast=function(e,t){return new Le(this,e,t)},t.prototype.toStmt=function(){return new Ye(this,null)},t}();(ye=e.BuiltinVar||(e.BuiltinVar={}))[ye.This=0]="This",ye[ye.Super=1]="Super",ye[ye.CatchError=2]="CatchError",ye[ye.CatchStack=3]="CatchStack";var _e,Ee=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return"string"==typeof t?(i.name=t,i.builtin=null):(i.name=null,i.builtin=t),i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&this.builtin===e.builtin},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadVarExpr(this,t)},t.prototype.set=function(e){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new we(this.name,e,null,this.sourceSpan)},t}(ge),xe=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.expr=t,i}return n(t,e),t.prototype.visitExpression=function(e,t){return e.visitTypeofExpr(this,t)},t.prototype.isEquivalent=function(e){return e instanceof t&&e.expr.isEquivalent(this.expr)},t.prototype.isConstant=function(){return this.expr.isConstant()},t}(ge),Se=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.node=t,i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.node===e.node},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWrappedNodeExpr(this,t)},t}(ge),we=function(t){function r(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return n(r,t),r.prototype.isEquivalent=function(e){return e instanceof r&&this.name===e.name&&this.value.isEquivalent(e.value)},r.prototype.isConstant=function(){return!1},r.prototype.visitExpression=function(e,t){return e.visitWriteVarExpr(this,t)},r.prototype.toDeclStmt=function(e,t){return new Ge(this.name,this.value,e,t,this.sourceSpan)},r.prototype.toConstDecl=function(){return this.toDeclStmt(ce,[e.StmtModifier.Final])},r}(ge),Ce=function(e){function t(t,n,r,i,o){var s=e.call(this,i||r.type,o)||this;return s.receiver=t,s.index=n,s.value=r,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWriteKeyExpr(this,t)},t}(ge),be=function(e){function t(t,n,r,i,o){var s=e.call(this,i||r.type,o)||this;return s.receiver=t,s.name=n,s.value=r,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWritePropExpr(this,t)},t}(ge);(_e=e.BuiltinMethod||(e.BuiltinMethod={}))[_e.ConcatArray=0]="ConcatArray",_e[_e.SubscribeObservable=1]="SubscribeObservable",_e[_e.Bind=2]="Bind";var Te,Pe=function(e){function t(t,n,r,i,o){var s=e.call(this,i,o)||this;return s.receiver=t,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.builtin===e.builtin&&me(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeMethodExpr(this,t)},t}(ge),Me=function(e){function t(t,n,r,i,o){void 0===o&&(o=!1);var s=e.call(this,r,i)||this;return s.fn=t,s.args=n,s.pure=o,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.fn.isEquivalent(e.fn)&&me(this.args,e.args)&&this.pure===e.pure},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeFunctionExpr(this,t)},t}(ge),Ne=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.classExpr=t,o.args=n,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.classExpr.isEquivalent(e.classExpr)&&me(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInstantiateExpr(this,t)},t}(ge),Ae=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value===e.value},t.prototype.isConstant=function(){return!0},t.prototype.visitExpression=function(e,t){return e.visitLiteralExpr(this,t)},t}(ge),Ie=function(e){function t(t,n,r,i){void 0===r&&(r=null);var o=e.call(this,n,i)||this;return o.value=t,o.typeParams=r,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitExternalExpr(this,t)},t}(ge),ke=function ke(e,t,n){this.moduleName=e,this.name=t,this.runtime=n},Oe=function(e){function t(t,n,r,i,o){void 0===r&&(r=null);var s=e.call(this,i||n.type,o)||this;return s.condition=t,s.falseCase=r,s.trueCase=n,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&ve(this.falseCase,e.falseCase)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitConditionalExpr(this,t)},t}(ge),Re=function(e){function t(t,n){var r=e.call(this,he,n)||this;return r.condition=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitNotExpr(this,t)},t}(ge),De=function(e){function t(t,n){var r=e.call(this,t.type,n)||this;return r.condition=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitAssertNotNullExpr(this,t)},t}(ge),Le=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitCastExpr(this,t)},t}(ge),Fe=function(){function e(e,t){void 0===t&&(t=null),this.name=e,this.type=t}return e.prototype.isEquivalent=function(e){return this.name===e.name},e}(),Be=function(e){function t(t,n,r,i,o){var s=e.call(this,r,i)||this;return s.params=t,s.statements=n,s.name=o,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&me(this.params,e.params)&&me(this.statements,e.statements)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitFunctionExpr(this,t)},t.prototype.toDeclStmt=function(e,t){return void 0===t&&(t=null),new $e(e,this.params,this.statements,this.type,t,this.sourceSpan)},t}(ge),Ve=function(e){function t(t,n,r,i,o,s){void 0===s&&(s=!0);var a=e.call(this,i||n.type,o)||this;return a.operator=t,a.rhs=r,a.parens=s,a.lhs=n,a}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitBinaryOperatorExpr(this,t)},t}(ge),je=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.receiver=t,o.name=n,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadPropExpr(this,t)},t.prototype.set=function(e){return new be(this.receiver,this.name,e,null,this.sourceSpan)},t}(ge),Ue=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.receiver=t,o.index=n,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadKeyExpr(this,t)},t.prototype.set=function(e){return new Ce(this.receiver,this.index,e,null,this.sourceSpan)},t}(ge),qe=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.entries=t,i}return n(t,e),t.prototype.isConstant=function(){return this.entries.every(function(e){return e.isConstant()})},t.prototype.isEquivalent=function(e){return e instanceof t&&me(this.entries,e.entries)},t.prototype.visitExpression=function(e,t){return e.visitLiteralArrayExpr(this,t)},t}(ge),He=function(){function e(e,t,n){this.key=e,this.value=t,this.quoted=n}return e.prototype.isEquivalent=function(e){return this.key===e.key&&this.value.isEquivalent(e.value)},e}(),We=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.entries=t,i.valueType=null,n&&(i.valueType=n.valueType),i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&me(this.entries,e.entries)},t.prototype.isConstant=function(){return this.entries.every(function(e){return e.value.isConstant()})},t.prototype.visitExpression=function(e,t){return e.visitLiteralMapExpr(this,t)},t}(ge),ze=function(e){function t(t,n){var r=e.call(this,t[t.length-1].type,n)||this;return r.parts=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&me(this.parts,e.parts)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitCommaExpr(this,t)},t}(ge),Ke=(new Ee(e.BuiltinVar.This,null,null),new Ee(e.BuiltinVar.Super,null,null),new Ee(e.BuiltinVar.CatchError,null,null),new Ee(e.BuiltinVar.CatchStack,null,null),new Ae(null,null,null)),Qe=new Ae(null,ce,null);(Te=e.StmtModifier||(e.StmtModifier={}))[Te.Final=0]="Final",Te[Te.Private=1]="Private",Te[Te.Exported=2]="Exported",Te[Te.Static=3]="Static";var Xe=function(){function e(e,t){this.modifiers=e||[],this.sourceSpan=t||null}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),Ge=function(e){function t(t,n,r,i,o){void 0===i&&(i=null);var s=e.call(this,i,o)||this;return s.name=t,s.value=n,s.type=r||n&&n.type||null,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)},t.prototype.visitStatement=function(e,t){return e.visitDeclareVarStmt(this,t)},t}(Xe),$e=function(e){function t(t,n,r,i,o,s){void 0===o&&(o=null);var a=e.call(this,o,s)||this;return a.name=t,a.params=n,a.statements=r,a.type=i||null,a}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&me(this.params,e.params)&&me(this.statements,e.statements)},t.prototype.visitStatement=function(e,t){return e.visitDeclareFunctionStmt(this,t)},t}(Xe),Ye=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.expr=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.expr.isEquivalent(e.expr)},t.prototype.visitStatement=function(e,t){return e.visitExpressionStmt(this,t)},t}(Xe),Je=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.value=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.isEquivalent(e.value)},t.prototype.visitStatement=function(e,t){return e.visitReturnStmt(this,t)},t}(Xe),Ze=function(){function e(e,t){this.modifiers=t,t||(this.modifiers=[]),this.type=e||null}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),et=function(e){function t(t,n,r,i){void 0===r&&(r=null);var o=e.call(this,n,r)||this;return o.name=t,o.initializer=i,o}return n(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name},t}(Ze),tt=function(e){function t(t,n,r,i,o){void 0===o&&(o=null);var s=e.call(this,i,o)||this;return s.name=t,s.params=n,s.body=r,s}return n(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name&&me(this.body,e.body)},t}(Ze),nt=function(e){function t(t,n,r,i){void 0===i&&(i=null);var o=e.call(this,r,i)||this;return o.name=t,o.body=n,o}return n(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name&&me(this.body,e.body)},t}(Ze),rt=function(e){function t(t,n,r,i,o,s,a,u){void 0===a&&(a=null);var p=e.call(this,a,u)||this;return p.name=t,p.parent=n,p.fields=r,p.getters=i,p.constructorMethod=o,p.methods=s,p}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&ve(this.parent,e.parent)&&me(this.fields,e.fields)&&me(this.getters,e.getters)&&this.constructorMethod.isEquivalent(e.constructorMethod)&&me(this.methods,e.methods)},t.prototype.visitStatement=function(e,t){return e.visitDeclareClassStmt(this,t)},t}(Xe),it=function(e){function t(t,n,r,i){void 0===r&&(r=[]);var o=e.call(this,null,i)||this;return o.condition=t,o.trueCase=n,o.falseCase=r,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&me(this.trueCase,e.trueCase)&&me(this.falseCase,e.falseCase)},t.prototype.visitStatement=function(e,t){return e.visitIfStmt(this,t)},t}(Xe),ot=function(e){function t(t,n,r){void 0===n&&(n=!1);var i=e.call(this,null,r)||this;return i.comment=t,i.multiline=n,i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t},t.prototype.visitStatement=function(e,t){return e.visitCommentStmt(this,t)},t}(Xe),st=function(e){function t(t,n){void 0===t&&(t=[]);var r=e.call(this,null,n)||this;return r.tags=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.toString()===e.toString()},t.prototype.visitStatement=function(e,t){return e.visitJSDocCommentStmt(this,t)},t.prototype.toString=function(){return function e(t){var n,r;if(0===t.length)return"";var i="*\n";try{for(var s=o(t),a=s.next();!a.done;a=s.next())i+=" *",i+=Tt(a.value).replace(/\n/g,"\n * "),i+="\n"}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return 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
       */(this.tags)},t}(Xe),at=function(e){function t(t,n,r){var i=e.call(this,null,r)||this;return i.bodyStmts=t,i.catchStmts=n,i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&me(this.bodyStmts,e.bodyStmts)&&me(this.catchStmts,e.catchStmts)},t.prototype.visitStatement=function(e,t){return e.visitTryCatchStmt(this,t)},t}(Xe),ut=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.error=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof at&&this.error.isEquivalent(e.error)},t.prototype.visitStatement=function(e,t){return e.visitThrowStmt(this,t)},t}(Xe),pt=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 xe(e.expr.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteVarExpr=function(e,t){return this.transformExpr(new we(e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteKeyExpr=function(e,t){return this.transformExpr(new Ce(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 be(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 Pe(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 Me(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 Ne(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.visitExternalExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitConditionalExpr=function(e,t){return this.transformExpr(new Oe(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 Re(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitAssertNotNullExpr=function(e,t){return this.transformExpr(new De(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCastExpr=function(e,t){return this.transformExpr(new Le(e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitFunctionExpr=function(e,t){return this.transformExpr(new Be(e.params,this.visitAllStatements(e.statements,t),e.type,e.sourceSpan),t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return this.transformExpr(new Ve(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 je(e.receiver.visitExpression(this,t),e.name,e.type,e.sourceSpan),t)},e.prototype.visitReadKeyExpr=function(e,t){return this.transformExpr(new Ue(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 qe(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 He(e.key,e.value.visitExpression(n,t),e.quoted)}),i=new pe(e.valueType,null);return this.transformExpr(new We(r,i,e.sourceSpan),t)},e.prototype.visitCommaExpr=function(e,t){return this.transformExpr(new ze(this.visitAllExpressions(e.parts,t),e.sourceSpan),t)},e.prototype.visitAllExpressions=function(e,t){var n=this;return e.map(function(e){return e.visitExpression(n,t)})},e.prototype.visitDeclareVarStmt=function(e,t){var n=e.value&&e.value.visitExpression(this,t);return this.transformStmt(new Ge(e.name,n,e.type,e.modifiers,e.sourceSpan),t)},e.prototype.visitDeclareFunctionStmt=function(e,t){return this.transformStmt(new $e(e.name,e.params,this.visitAllStatements(e.statements,t),e.type,e.modifiers,e.sourceSpan),t)},e.prototype.visitExpressionStmt=function(e,t){return this.transformStmt(new Ye(e.expr.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitReturnStmt=function(e,t){return this.transformStmt(new Je(e.value.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitDeclareClassStmt=function(e,t){var n=this,r=e.parent.visitExpression(this,t),i=e.getters.map(function(e){return new nt(e.name,n.visitAllStatements(e.body,t),e.type,e.modifiers)}),o=e.constructorMethod&&new tt(e.constructorMethod.name,e.constructorMethod.params,this.visitAllStatements(e.constructorMethod.body,t),e.constructorMethod.type,e.constructorMethod.modifiers),s=e.methods.map(function(e){return new tt(e.name,e.params,n.visitAllStatements(e.body,t),e.type,e.modifiers)});return this.transformStmt(new rt(e.name,r,e.fields,i,o,s,e.modifiers,e.sourceSpan),t)},e.prototype.visitIfStmt=function(e,t){return this.transformStmt(new it(e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e.sourceSpan),t)},e.prototype.visitTryCatchStmt=function(e,t){return this.transformStmt(new at(this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e.sourceSpan),t)},e.prototype.visitThrowStmt=function(e,t){return this.transformStmt(new ut(e.error.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCommentStmt=function(e,t){return this.transformStmt(e,t)},e.prototype.visitJSDocCommentStmt=function(e,t){return this.transformStmt(e,t)},e.prototype.visitAllStatements=function(e,t){var n=this;return e.map(function(e){return e.visitStatement(n,t)})},e}(),lt=function(){function e(){}return e.prototype.visitType=function(e,t){return e},e.prototype.visitExpression=function(e,t){return e.type&&e.type.visitType(this,t),e},e.prototype.visitBuiltinType=function(e,t){return this.visitType(e,t)},e.prototype.visitExpressionType=function(e,t){var n=this;return e.value.visitExpression(this,t),null!==e.typeParams&&e.typeParams.forEach(function(e){return n.visitType(e,t)}),this.visitType(e,t)},e.prototype.visitArrayType=function(e,t){return this.visitType(e,t)},e.prototype.visitMapType=function(e,t){return this.visitType(e,t)},e.prototype.visitWrappedNodeExpr=function(e,t){return e},e.prototype.visitTypeofExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitReadVarExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitWriteVarExpr=function(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitWriteKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitWritePropExpr=function(e,t){return e.receiver.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitInvokeMethodExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitInstantiateExpr=function(e,t){return e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitLiteralExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitExternalExpr=function(e,t){var n=this;return e.typeParams&&e.typeParams.forEach(function(e){return e.visitType(n,t)}),this.visitExpression(e,t)},e.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitNotExpr=function(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitFunctionExpr=function(e,t){return this.visitAllStatements(e.statements,t),this.visitExpression(e,t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t),this.visitExpression(e,t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return e.entries.forEach(function(e){return e.value.visitExpression(n,t)}),this.visitExpression(e,t)},e.prototype.visitCommaExpr=function(e,t){return this.visitAllExpressions(e.parts,t),this.visitExpression(e,t)},e.prototype.visitAllExpressions=function(e,t){var n=this;e.forEach(function(e){return e.visitExpression(n,t)})},e.prototype.visitDeclareVarStmt=function(e,t){return e.value&&e.value.visitExpression(this,t),e.type&&e.type.visitType(this,t),e},e.prototype.visitDeclareFunctionStmt=function(e,t){return this.visitAllStatements(e.statements,t),e.type&&e.type.visitType(this,t),e},e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),e},e.prototype.visitReturnStmt=function(e,t){return e.value.visitExpression(this,t),e},e.prototype.visitDeclareClassStmt=function(e,t){var n=this;return e.parent.visitExpression(this,t),e.getters.forEach(function(e){return n.visitAllStatements(e.body,t)}),e.constructorMethod&&this.visitAllStatements(e.constructorMethod.body,t),e.methods.forEach(function(e){return n.visitAllStatements(e.body,t)}),e},e.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e},e.prototype.visitTryCatchStmt=function(e,t){return this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e},e.prototype.visitThrowStmt=function(e,t){return e.error.visitExpression(this,t),e},e.prototype.visitCommentStmt=function(e,t){return e},e.prototype.visitJSDocCommentStmt=function(e,t){return e},e.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},e}();function ct(e){var t=new ht;return t.visitAllStatements(e,null),t.varNames}var ht=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.varNames=new Set,t}return n(t,e),t.prototype.visitDeclareFunctionStmt=function(e,t){return e},t.prototype.visitDeclareClassStmt=function(e,t){return e},t.prototype.visitReadVarExpr=function(e,t){return e.name&&this.varNames.add(e.name),null},t}(lt),ft=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.externalReferences=[],t}return n(t,e),t.prototype.visitExternalExpr=function(t,n){return this.externalReferences.push(t.value),e.prototype.visitExternalExpr.call(this,t,n)},t}(lt);function dt(e,t){if(!t)return e;var n=new mt(t);return e.visitStatement(n,null)}function vt(e,t){if(!t)return e;var n=new mt(t);return e.visitExpression(n,null)}var mt=function(e){function t(t){var n=e.call(this)||this;return n.sourceSpan=t,n}return n(t,e),t.prototype._clone=function(e){var t=Object.create(e.constructor.prototype);for(var n in e)t[n]=e[n];return t},t.prototype.transformExpr=function(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e},t.prototype.transformStmt=function(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e},t}(pt);function yt(e,t,n){return new Ee(e,t,n)}function gt(e,t,n){return void 0===t&&(t=null),new Ie(e,null,t,n)}function _t(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),null!=e?Et(gt(e,t,null),n):null}function Et(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),new ae(e,t,n)}function xt(e,t,n){return new qe(e,t,n)}function St(e,t){return void 0===t&&(t=null),new We(e.map(function(e){return new He(e.key,e.value,e.quoted)}),t,null)}function wt(e,t,n,r,i){return new Be(e,t,n,r,i)}function Ct(e,t,n){return new it(e,t,n)}function bt(e,t,n){return new Ae(e,t,n)}function Tt(e){var t="";if(e.tagName&&(t+=" @"+e.tagName),e.text){if(e.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');t+=" "+e.text.replace(/@/g,"\\@")}return t}var Pt=/-+([a-z0-9])/g;function Mt(e,t){return Nt(e,":",t)}function Nt(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function At(e,t,n){return Array.isArray(e)?t.visitArray(e,n):function r(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===qt}(e)?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n)}function It(e){return null!==e&&void 0!==e}function kt(e){return void 0===e?null:e}var Ot=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return e.map(function(e){return At(e,n,t)})},e.prototype.visitStringMap=function(e,t){var n=this,r={};return Object.keys(e).forEach(function(i){r[i]=At(e[i],n,t)}),r},e.prototype.visitPrimitive=function(e,t){return e},e.prototype.visitOther=function(e,t){return e},e}(),Rt=function(e){if(Kt(e))throw new Error("Illegal state: value cannot be a promise");return e},Dt=function(e,t){return Kt(e)?e.then(t):t(e)},Lt=function(e){return e.some(Kt)?Promise.all(e):e};function Ft(e){throw new Error("Internal Error: "+e)}function Bt(e,t){var n=Error(e);return n[Vt]=!0,t&&(n[jt]=t),n}var Vt="ngSyntaxError",jt="ngParseErrors";function Ut(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var qt=Object.getPrototypeOf({});function Ht(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}function Wt(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(Wt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function zt(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function Kt(e){return!!e&&"function"==typeof e.then}var Qt=function Qt(e){this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")},Xt="undefined"!=typeof window&&window,Gt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,$t="undefined"!=typeof global&&global||Xt||Gt,Yt={},Jt=function(e){function t(t){var n=e.call(this,t.type)||this;return n.resolved=t,n.original=t,n}return n(t,e),t.prototype.visitExpression=function(e,t){return t===Yt?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}(ge),Zt=function(){function t(){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 t.prototype.getConstLiteral=function(t,n){if(t instanceof Ae||t instanceof Jt)return t;var r=this.keyOf(t),i=this.literals.get(r),o=!1;if(i||(i=new Jt(t),this.literals.set(r,i),o=!0),!o&&!i.shared||o&&n){var s=this.freshName();this.statements.push(yt(s).set(t).toDeclStmt(ce,[e.StmtModifier.Final])),i.fixup(yt(s))}return i},t.prototype.getDefinition=function(t,n,r,i){void 0===i&&(i=!1);var o=this.definitionsOf(n),s=o.get(t),a=!1;if(!s){var u=this.propertyNameOf(n);s=new Jt(r.importExpr(t).prop(u)),o.set(t,s),a=!0}if(!a&&!s.shared||a&&i){var p=this.freshName();this.statements.push(yt(p).set(s.resolved).toDeclStmt(ce,[e.StmtModifier.Final])),s.fixup(yt(p))}return s},t.prototype.getLiteralFactory=function(e){if(e instanceof qe){var t=e.entries.map(function(e){return e.isConstant()?e:bt(null)}),n=this.keyOf(xt(t));return this._getLiteralFactory(n,e.entries,function(e){return xt(e)})}var r=St(e.entries.map(function(e){return{key:e.key,value:e.value.isConstant()?e.value:bt(null),quoted:e.quoted}}));return n=this.keyOf(r),this._getLiteralFactory(n,e.entries.map(function(e){return e.value}),function(t){return St(t.map(function(t,n){return{key:e.entries[n].key,value:t,quoted:e.entries[n].quoted}}))})},t.prototype._getLiteralFactory=function(t,n,r){var i=this,o=this.literalFactories.get(t),s=n.filter(function(e){return!e.isConstant()});if(!o){var a=n.map(function(e,t){return e.isConstant()?i.getConstLiteral(e,!0):yt("a"+t)}),u=wt(a.filter(nn).map(function(e){return new Fe(e.name,le)}),[new Je(r(a))],ce),p=this.freshName();this.statements.push(yt(p).set(u).toDeclStmt(ce,[e.StmtModifier.Final])),o=yt(p),this.literalFactories.set(t,o)}return{literalFactory:o,literalFactoryArguments:s}},t.prototype.uniqueName=function(e){return""+e+this.nextNameIndex++},t.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 Ft("Unknown definition kind "+e),this.componentDefinitions},t.prototype.propertyNameOf=function(e){switch(e){case 2:return"ngComponentDef";case 1:return"ngDirectiveDef";case 0:return"ngInjectorDef";case 3:return"ngPipeDef"}return Ft("Unknown definition kind "+e),"<unknown>"},t.prototype.freshName=function(){return this.uniqueName("_c")},t.prototype.keyOf=function(e){return e.visitExpression(new en,Yt)},t}(),en=function(){function e(){this.visitWrappedNodeExpr=tn,this.visitWriteVarExpr=tn,this.visitWriteKeyExpr=tn,this.visitWritePropExpr=tn,this.visitInvokeMethodExpr=tn,this.visitInvokeFunctionExpr=tn,this.visitInstantiateExpr=tn,this.visitConditionalExpr=tn,this.visitNotExpr=tn,this.visitAssertNotNullExpr=tn,this.visitCastExpr=tn,this.visitFunctionExpr=tn,this.visitBinaryOperatorExpr=tn,this.visitReadPropExpr=tn,this.visitReadKeyExpr=tn,this.visitCommaExpr=tn}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.value.moduleName+":"+e.value.name:"EX:"+e.value.runtime.name},e.prototype.visitReadVarExpr=function(e){return"VAR:"+e.name},e.prototype.visitTypeofExpr=function(e,t){return"TYPEOF:"+e.expr.visitExpression(this,t)},e}();function tn(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function nn(e){return e instanceof Ee}
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */var rn="@angular/core",on=function(){function e(){}return e.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:rn},e.ElementRef={name:"ElementRef",moduleName:rn},e.NgModuleRef={name:"NgModuleRef",moduleName:rn},e.ViewContainerRef={name:"ViewContainerRef",moduleName:rn},e.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:rn},e.QueryList={name:"QueryList",moduleName:rn},e.TemplateRef={name:"TemplateRef",moduleName:rn},e.Renderer2={name:"Renderer2",moduleName:rn},e.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:rn},e.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:rn},e.ComponentFactory={name:"ComponentFactory",moduleName:rn},e.ComponentRef={name:"ComponentRef",moduleName:rn},e.NgModuleFactory={name:"NgModuleFactory",moduleName:rn},e.createModuleFactory={name:"ɵcmf",moduleName:rn},e.moduleDef={name:"ɵmod",moduleName:rn},e.moduleProviderDef={name:"ɵmpd",moduleName:rn},e.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:rn},e.inject={name:"inject",moduleName:rn},e.INJECTOR={name:"INJECTOR",moduleName:rn},e.Injector={name:"Injector",moduleName:rn},e.defineInjectable={name:"defineInjectable",moduleName:rn},e.InjectableDef={name:"ɵInjectableDef",moduleName:rn},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:rn},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:rn},e.SecurityContext={name:"SecurityContext",moduleName:rn},e.LOCALE_ID={name:"LOCALE_ID",moduleName:rn},e.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:rn},e.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:rn},e.interpolate={name:"ɵinterpolate",moduleName:rn},e.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:rn},e.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:rn},e.Renderer={name:"Renderer",moduleName:rn},e.viewDef={name:"ɵvid",moduleName:rn},e.elementDef={name:"ɵeld",moduleName:rn},e.anchorDef={name:"ɵand",moduleName:rn},e.textDef={name:"ɵted",moduleName:rn},e.directiveDef={name:"ɵdid",moduleName:rn},e.providerDef={name:"ɵprd",moduleName:rn},e.queryDef={name:"ɵqud",moduleName:rn},e.pureArrayDef={name:"ɵpad",moduleName:rn},e.pureObjectDef={name:"ɵpod",moduleName:rn},e.purePipeDef={name:"ɵppd",moduleName:rn},e.pipeDef={name:"ɵpid",moduleName:rn},e.nodeValue={name:"ɵnov",moduleName:rn},e.ngContentDef={name:"ɵncd",moduleName:rn},e.unwrapValue={name:"ɵunv",moduleName:rn},e.createRendererType2={name:"ɵcrt",moduleName:rn},e.RendererType2={name:"RendererType2",moduleName:rn},e.ViewDefinition={name:"ɵViewDefinition",moduleName:rn},e.createComponentFactory={name:"ɵccf",moduleName:rn},e.setClassMetadata={name:"ɵsetClassMetadata",moduleName:rn},e}();function sn(e){return{identifier:{reference:e}}}function an(e,t){return sn(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 un=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}(),pn=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 un(e,t,n),this.cache.set(r,i)),i},e}(),ln=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function cn(e){return e.replace(/\W/g,"_")}var hn,fn=0;function dn(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof un)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=Wt(t);return n.indexOf("(")>=0?(n="anonymous_"+fn++,t.__anonymousType=n):n=cn(n),n}function vn(e){var t=e.reference;return t instanceof un?t.filePath:"./"+Wt(t)}function mn(e,t){return"View_"+dn({reference:e})+"_"+t}function yn(e){return"RenderType_"+dn({reference:e})}function gn(e){return"HostView_"+dn({reference:e})}function _n(e){return dn({reference:e})+"NgFactory"}function En(e){return null!=e.value?cn(e.value):dn(e.identifier)}function xn(e){return null!=e.identifier?e.identifier.reference:e.value}(hn=e.CompileSummaryKind||(e.CompileSummaryKind={}))[hn.Pipe=0]="Pipe",hn[hn.Directive=1]="Directive",hn[hn.NgModule=2]="NgModule",hn[hn.Injectable=3]="Injectable";var Sn=function Sn(e){var t=void 0===e?{}:e,n=t.styles,r=t.styleUrls;this.moduleUrl=t.moduleUrl||null,this.styles=Nn(n),this.styleUrls=Nn(r)},wn=function(){function e(e){var t=e.template,n=e.templateUrl,r=e.htmlAst,i=e.styles,o=e.styleUrls,s=e.externalStylesheets,a=e.animations,u=e.ngContentSelectors,p=e.interpolation,l=e.isInline,c=e.preserveWhitespaces;if(this.encapsulation=e.encapsulation,this.template=t,this.templateUrl=n,this.htmlAst=r,this.styles=Nn(i),this.styleUrls=Nn(o),this.externalStylesheets=Nn(s),this.animations=a?In(a):[],this.ngContentSelectors=u||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p,this.isInline=l,this.preserveWhitespaces=c}return e.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}},e}(),Cn=function(){function t(e){var t=e.type,n=e.isComponent,r=e.selector,i=e.exportAs,o=e.changeDetection,s=e.inputs,a=e.outputs,u=e.hostListeners,p=e.hostProperties,l=e.hostAttributes,c=e.providers,h=e.viewProviders,f=e.queries,d=e.guards,v=e.viewQueries,m=e.entryComponents,y=e.template,g=e.componentViewType,_=e.rendererType,E=e.componentFactory;this.isHost=!!e.isHost,this.type=t,this.isComponent=n,this.selector=r,this.exportAs=i,this.changeDetection=o,this.inputs=s,this.outputs=a,this.hostListeners=u,this.hostProperties=p,this.hostAttributes=l,this.providers=Nn(c),this.viewProviders=Nn(h),this.queries=Nn(f),this.guards=d,this.viewQueries=Nn(v),this.entryComponents=Nn(m),this.template=y,this.componentViewType=g,this.rendererType=_,this.componentFactory=E}return t.create=function(e){var n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,p=e.outputs,l=e.host,c=e.providers,h=e.viewProviders,f=e.queries,d=e.guards,v=e.viewQueries,m=e.entryComponents,y=e.template,g=e.componentViewType,_=e.rendererType,E=e.componentFactory,x={},S={},w={};null!=l&&Object.keys(l).forEach(function(e){var t=l[e],n=e.match(ln);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=Mt(e,[e,e]);C[t[0]]=t[1]});var b={};return null!=p&&p.forEach(function(e){var t=Mt(e,[e,e]);b[t[0]]=t[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:C,outputs:b,hostListeners:x,hostProperties:S,hostAttributes:w,providers:c,viewProviders:h,queries:f,guards:d,viewQueries:v,entryComponents:m,template:y,componentViewType:g,rendererType:_,componentFactory:E})},t.prototype.toSummary=function(){return{summaryKind:e.CompileSummaryKind.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),bn=function(){function t(e){var t=e.name,n=e.pure;this.type=e.type,this.name=t,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:e.CompileSummaryKind.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Tn=function Tn(){},Pn=function(){function t(e){var t=e.providers,n=e.declaredDirectives,r=e.exportedDirectives,i=e.declaredPipes,o=e.exportedPipes,s=e.entryComponents,a=e.bootstrapComponents,u=e.importedModules,p=e.exportedModules,l=e.schemas,c=e.transitiveModule,h=e.id;this.type=e.type||null,this.declaredDirectives=Nn(n),this.exportedDirectives=Nn(r),this.declaredPipes=Nn(i),this.exportedPipes=Nn(o),this.providers=Nn(t),this.entryComponents=Nn(s),this.bootstrapComponents=Nn(a),this.importedModules=Nn(u),this.exportedModules=Nn(p),this.schemas=Nn(l),this.id=h||null,this.transitiveModule=c||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:e.CompileSummaryKind.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Mn=function(){function e(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return e.prototype.addProvider=function(e,t){this.providers.push({provider:e,module:t})},e.prototype.addDirective=function(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))},e.prototype.addExportedDirective=function(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))},e.prototype.addPipe=function(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))},e.prototype.addExportedPipe=function(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))},e.prototype.addModule=function(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))},e.prototype.addEntryComponent=function(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))},e}();function Nn(e){return e||[]}var An=function An(e,t){var n=t.useClass,r=t.useValue,i=t.useExisting,o=t.useFactory,s=t.deps,a=t.multi;this.token=e,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a};function In(e){return e.reduce(function(e,t){var n=Array.isArray(t)?In(t):t;return e.concat(n)},[])}function kn(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function On(e,t,n){var r;return r=n.isInline?t.type.reference instanceof un?t.type.reference.filePath+"."+t.type.reference.name+".html":dn(e)+"/"+dn(t.type)+".html":n.templateUrl,t.type.reference instanceof un?r:kn(r)}function Rn(e,t){var n=e.moduleUrl.split(/\/\\/g);return kn("css/"+t+n[n.length-1]+".ngstyle.js")}function Dn(e){return kn(dn(e.type)+"/module.ngfactory.js")}function Ln(e,t){return kn(dn(e)+"/"+dn(t.type)+".ngfactory.js")}
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */var Fn="@angular/core",Bn=function(){function e(){}return e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.namespaceHTML={name:"ɵnamespaceHTML",moduleName:Fn},e.namespaceMathML={name:"ɵnamespaceMathML",moduleName:Fn},e.namespaceSVG={name:"ɵnamespaceSVG",moduleName:Fn},e.element={name:"ɵelement",moduleName:Fn},e.elementStart={name:"ɵelementStart",moduleName:Fn},e.elementEnd={name:"ɵelementEnd",moduleName:Fn},e.elementProperty={name:"ɵelementProperty",moduleName:Fn},e.componentHostSyntheticProperty={name:"ɵcomponentHostSyntheticProperty",moduleName:Fn},e.elementAttribute={name:"ɵelementAttribute",moduleName:Fn},e.elementClassProp={name:"ɵelementClassProp",moduleName:Fn},e.elementContainerStart={name:"ɵelementContainerStart",moduleName:Fn},e.elementContainerEnd={name:"ɵelementContainerEnd",moduleName:Fn},e.elementStyling={name:"ɵelementStyling",moduleName:Fn},e.elementHostAttrs={name:"ɵelementHostAttrs",moduleName:Fn},e.elementStylingMap={name:"ɵelementStylingMap",moduleName:Fn},e.elementStyleProp={name:"ɵelementStyleProp",moduleName:Fn},e.elementStylingApply={name:"ɵelementStylingApply",moduleName:Fn},e.containerCreate={name:"ɵcontainer",moduleName:Fn},e.nextContext={name:"ɵnextContext",moduleName:Fn},e.templateCreate={name:"ɵtemplate",moduleName:Fn},e.text={name:"ɵtext",moduleName:Fn},e.textBinding={name:"ɵtextBinding",moduleName:Fn},e.bind={name:"ɵbind",moduleName:Fn},e.enableBindings={name:"ɵenableBindings",moduleName:Fn},e.disableBindings={name:"ɵdisableBindings",moduleName:Fn},e.allocHostVars={name:"ɵallocHostVars",moduleName:Fn},e.getCurrentView={name:"ɵgetCurrentView",moduleName:Fn},e.restoreView={name:"ɵrestoreView",moduleName:Fn},e.interpolation1={name:"ɵinterpolation1",moduleName:Fn},e.interpolation2={name:"ɵinterpolation2",moduleName:Fn},e.interpolation3={name:"ɵinterpolation3",moduleName:Fn},e.interpolation4={name:"ɵinterpolation4",moduleName:Fn},e.interpolation5={name:"ɵinterpolation5",moduleName:Fn},e.interpolation6={name:"ɵinterpolation6",moduleName:Fn},e.interpolation7={name:"ɵinterpolation7",moduleName:Fn},e.interpolation8={name:"ɵinterpolation8",moduleName:Fn},e.interpolationV={name:"ɵinterpolationV",moduleName:Fn},e.pureFunction0={name:"ɵpureFunction0",moduleName:Fn},e.pureFunction1={name:"ɵpureFunction1",moduleName:Fn},e.pureFunction2={name:"ɵpureFunction2",moduleName:Fn},e.pureFunction3={name:"ɵpureFunction3",moduleName:Fn},e.pureFunction4={name:"ɵpureFunction4",moduleName:Fn},e.pureFunction5={name:"ɵpureFunction5",moduleName:Fn},e.pureFunction6={name:"ɵpureFunction6",moduleName:Fn},e.pureFunction7={name:"ɵpureFunction7",moduleName:Fn},e.pureFunction8={name:"ɵpureFunction8",moduleName:Fn},e.pureFunctionV={name:"ɵpureFunctionV",moduleName:Fn},e.pipeBind1={name:"ɵpipeBind1",moduleName:Fn},e.pipeBind2={name:"ɵpipeBind2",moduleName:Fn},e.pipeBind3={name:"ɵpipeBind3",moduleName:Fn},e.pipeBind4={name:"ɵpipeBind4",moduleName:Fn},e.pipeBindV={name:"ɵpipeBindV",moduleName:Fn},e.i18n={name:"ɵi18n",moduleName:Fn},e.i18nAttributes={name:"ɵi18nAttributes",moduleName:Fn},e.i18nExp={name:"ɵi18nExp",moduleName:Fn},e.i18nStart={name:"ɵi18nStart",moduleName:Fn},e.i18nEnd={name:"ɵi18nEnd",moduleName:Fn},e.i18nApply={name:"ɵi18nApply",moduleName:Fn},e.i18nPostprocess={name:"ɵi18nPostprocess",moduleName:Fn},e.load={name:"ɵload",moduleName:Fn},e.loadQueryList={name:"ɵloadQueryList",moduleName:Fn},e.pipe={name:"ɵpipe",moduleName:Fn},e.projection={name:"ɵprojection",moduleName:Fn},e.projectionDef={name:"ɵprojectionDef",moduleName:Fn},e.reference={name:"ɵreference",moduleName:Fn},e.inject={name:"inject",moduleName:Fn},e.injectAttribute={name:"ɵinjectAttribute",moduleName:Fn},e.directiveInject={name:"ɵdirectiveInject",moduleName:Fn},e.templateRefExtractor={name:"ɵtemplateRefExtractor",moduleName:Fn},e.defineBase={name:"ɵdefineBase",moduleName:Fn},e.BaseDef={name:"ɵBaseDef",moduleName:Fn},e.defineComponent={name:"ɵdefineComponent",moduleName:Fn},e.ComponentDefWithMeta={name:"ɵComponentDefWithMeta",moduleName:Fn},e.defineDirective={name:"ɵdefineDirective",moduleName:Fn},e.DirectiveDefWithMeta={name:"ɵDirectiveDefWithMeta",moduleName:Fn},e.InjectorDef={name:"ɵInjectorDef",moduleName:Fn},e.defineInjector={name:"defineInjector",moduleName:Fn},e.NgModuleDefWithMeta={name:"ɵNgModuleDefWithMeta",moduleName:Fn},e.defineNgModule={name:"ɵdefineNgModule",moduleName:Fn},e.PipeDefWithMeta={name:"ɵPipeDefWithMeta",moduleName:Fn},e.definePipe={name:"ɵdefinePipe",moduleName:Fn},e.query={name:"ɵquery",moduleName:Fn},e.queryRefresh={name:"ɵqueryRefresh",moduleName:Fn},e.registerContentQuery={name:"ɵregisterContentQuery",moduleName:Fn},e.NgOnChangesFeature={name:"ɵNgOnChangesFeature",moduleName:Fn},e.InheritDefinitionFeature={name:"ɵInheritDefinitionFeature",moduleName:Fn},e.ProvidersFeature={name:"ɵProvidersFeature",moduleName:Fn},e.listener={name:"ɵlistener",moduleName:Fn},e.getFactoryOf={name:"ɵgetFactoryOf",moduleName:Fn},e.getInheritedFactory={name:"ɵgetInheritedFactory",moduleName:Fn},e.sanitizeHtml={name:"ɵsanitizeHtml",moduleName:Fn},e.sanitizeStyle={name:"ɵsanitizeStyle",moduleName:Fn},e.defaultStyleSanitizer={name:"ɵdefaultStyleSanitizer",moduleName:Fn},e.sanitizeResourceUrl={name:"ɵsanitizeResourceUrl",moduleName:Fn},e.sanitizeScript={name:"ɵsanitizeScript",moduleName:Fn},e.sanitizeUrl={name:"ɵsanitizeUrl",moduleName:Fn},e}(),Vn=function Vn(e,t,n,r,i,o){this.nodes=e,this.placeholders=t,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,this.sources=e.length?[{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}]:[]},jn=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),Un=function(){function e(e,t){this.children=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitContainer(this,t)},e}(),qn=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}(),Hn=function(){function e(e,t,n,r,i,o,s){this.tag=e,this.attrs=t,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return e.prototype.visit=function(e,t){return e.visitTagPlaceholder(this,t)},e}(),Wn=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}(),zn=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}(),Kn=function(){function e(){}return e.prototype.visitText=function(e,t){return new jn(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 Un(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 qn(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 Hn(e.tag,e.attrs,e.startName,e.closeName,r,e.isVoid,e.sourceSpan)},e.prototype.visitPlaceholder=function(e,t){return new Wn(e.value,e.name,e.sourceSpan)},e.prototype.visitIcuPlaceholder=function(e,t){return new zn(e.value,e.name,e.sourceSpan)},e}(),Qn=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 Xn(e){return e.id||function n(e){var t,n,r=Ht(e),i=function o(e,t){for(var n=Array(e.length+3>>>2),r=0;r<n.length;r++)n[r]=pr(e,4*r,t);return n}(r,$n.Big),a=8*r.length,u=new Array(80),p=s([1732584193,4023233417,2562383102,271733878,3285377520],5),l=p[0],c=p[1],h=p[2],f=p[3],d=p[4];i[a>>5]|=128<<24-a%32,i[15+(a+64>>9<<4)]=a;for(var v=0;v<i.length;v+=16){for(var m=s([l,c,h,f,d],5),y=m[0],g=m[1],_=m[2],E=m[3],x=m[4],S=0;S<80;S++){u[S]=S<16?i[v+S]:ar(u[S-3]^u[S-8]^u[S-14]^u[S-16],1);var w=s(er(S,c,h,f),2),C=w[0],b=w[1],T=[ar(l,5),C,d,b,u[S]].reduce(ir);d=(t=s([f,h,ar(c,30),l,T],5))[0],f=t[1],h=t[2],c=t[3],l=t[4]}l=(n=s([ir(l,y),ir(c,g),ir(h,_),ir(f,E),ir(d,x)],5))[0],c=n[1],h=n[2],f=n[3],d=n[4]}return function P(e){for(var t="",n=0;n<e.length;n++){var r=ur(e,n);t+=(r>>>4).toString(16)+(15&r).toString(16)}return t.toLowerCase()}(lr([l,c,h,f,d]))}(function t(e){return e.map(function(e){return e.visit(Jn,null)})}(e.nodes).join("")+"["+e.meaning+"]")}function Gn(e){if(e.id)return e.id;var t=new Zn;return function n(e,t){var n,r=s(tr(e),2),i=r[0],o=r[1];if(t){var a=s(tr(t),2),u=a[0],p=a[1];i=(n=s(function c(e,t){var n=s(e,2),r=n[0],i=n[1],o=s(t,2),a=o[0],u=s(or(i,o[1]),2),p=u[0],l=u[1];return[ir(ir(r,a),p),l]}(function l(e,t){var n=s(e,2),r=n[0],i=n[1];return[r<<t|i>>>32-t,i<<t|r>>>32-t]}([i,o],1),[u,p]),2))[0],o=n[1]}return function h(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=cr(t,hr(ur(e,r),n)),n=hr(256,n);return t.split("").reverse().join("")}(lr([2147483647&i,o]))}(e.nodes.map(function(e){return e.visit(t,null)}).join(""),e.meaning)}var $n,Yn=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}(),Jn=new Yn,Zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(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}(Yn);function er(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 tr(e){var t=Ht(e),n=s([nr(t,0),nr(t,102072)],2),r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function nr(e,t){var n,r,i=s([2654435769,2654435769],2),o=i[0],a=i[1],u=e.length;for(r=0;r+12<=u;r+=12)o=(n=s(rr([o=ir(o,pr(e,r,$n.Little)),a=ir(a,pr(e,r+4,$n.Little)),t=ir(t,pr(e,r+8,$n.Little))]),3))[0],a=n[1],t=n[2];return rr([o=ir(o,pr(e,r,$n.Little)),a=ir(a,pr(e,r+4,$n.Little)),t=ir(t=ir(t,u),pr(e,r+8,$n.Little)<<8)])[2]}function rr(e){var t=s(e,3),n=t[0],r=t[1],i=t[2];return n=sr(n=sr(n,r),i),n^=i>>>13,r=sr(r=sr(r,i),n),r^=n<<8,i=sr(i=sr(i,n),r),i^=r>>>13,n=sr(n=sr(n,r),i),n^=i>>>12,r=sr(r=sr(r,i),n),r^=n<<16,i=sr(i=sr(i,n),r),i^=r>>>5,n=sr(n=sr(n,r),i),n^=i>>>3,r=sr(r=sr(r,i),n),r^=n<<10,i=sr(i=sr(i,n),r),[n,r,i^=r>>>15]}function ir(e,t){return or(e,t)[1]}function or(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function sr(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function ar(e,t){return e<<t|e>>>32-t}function ur(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function pr(e,t,n){var r=0;if(n===$n.Big)for(var i=0;i<4;i++)r+=ur(e,t+i)<<24-8*i;else for(i=0;i<4;i++)r+=ur(e,t+i)<<8*i;return r}function lr(e){return e.reduce(function(e,t){return e+function n(e){for(var t="",n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t)},"")}function cr(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,o=0;i<r||o;i++){var s=o+ +(e[i]||0)+ +(t[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function hr(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=cr(n,r)),r=cr(r,r);return 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(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}($n||($n={}));var fr=function(){function e(){}return e.prototype.createNameMapper=function(e){return null},e}(),dr=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 n(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}(Qn),vr=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 mr(e){return e.map(function(e){return e.visit(vr)}).join("")}var yr=function(){function e(e){var t=this;this.attrs={},Object.keys(e).forEach(function(n){t.attrs[n]=wr(e[n])})}return e.prototype.visit=function(e){return e.visitDeclaration(this)},e}(),gr=function(){function e(e,t){this.rootTag=e,this.dtd=t}return e.prototype.visit=function(e){return e.visitDoctype(this)},e}(),_r=function(){function e(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]);var r=this;this.name=e,this.children=n,this.attrs={},Object.keys(t).forEach(function(e){r.attrs[e]=wr(t[e])})}return e.prototype.visit=function(e){return e.visitTag(this)},e}(),Er=function(){function e(e){this.value=wr(e)}return e.prototype.visit=function(e){return e.visitText(this)},e}(),xr=function(e){function t(t){return void 0===t&&(t=0),e.call(this,"\n"+new Array(t+1).join(" "))||this}return n(t,e),t}(Er),Sr=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function wr(e){return Sr.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 Cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){var n=new Pr,r=new br,i=new _r("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 _r("source",{},[new Er(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new xr(2),new _r("msg",t,a(n,r.serialize(e.nodes))))}),i.children.push(new xr),mr([new yr({version:"1.0",encoding:"UTF-8"}),new xr,new gr("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 xr,n.addDefaultExamples(i),new xr])},t.prototype.load=function(e,t){throw new Error("Unsupported")},t.prototype.digest=function(e){return Tr(e)},t.prototype.createNameMapper=function(e){return new dr(e,Mr)},t}(fr),br=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Er(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,a(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Er("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,a([new Er(t+" {")],e.cases[t].visit(n),[new Er("} ")]))}),r.push(new Er("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=new Er("<"+e.tag+">"),r=new _r("ex",{},[n]),i=new _r("ph",{name:e.startName},[r,n]);if(e.isVoid)return[i];var o=new Er("</"+e.tag+">"),s=new _r("ex",{},[o]),u=new _r("ph",{name:e.closeName},[s,o]);return a([i],this.serialize(e.children),[u])},e.prototype.visitPlaceholder=function(e,t){var n=new Er("{{"+e.value+"}}"),r=new _r("ex",{},[n]);return[new _r("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(" "),o=new Er("{"+n+", "+r+", "+i+"}"),s=new _r("ex",{},[o]);return[new _r("ph",{name:e.name},[s,o])]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],a(e.map(function(e){return e.visit(t)})))},e}();function Tr(e){return Gn(e)}var Pr=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 Er(e.attrs.name||"...");e.children=[new _r("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 Mr(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */function Nr(e,t){return void 0===t&&(t=!1),St(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
       */var Ar="MSG_",Ir=new RegExp("^"+Ar),kr="goog.getMsg",Or="i18n",Rr="i18n-",Dr="�";function Lr(t,n,r){var i=[bt(n)];r&&Object.keys(r).length&&i.push(Nr(r,!0));var o=yt(kr).callFn(i);return t.set(o).toDeclStmt(ce,[e.StmtModifier.Final])}function Fr(e){return e===Or||e.startsWith(Rr)}function Br(e){return e instanceof Vn}function Vr(e){return Br(e)&&1===e.nodes.length&&e.nodes[0]instanceof qn}function jr(e,t){return void 0===t&&(t=null),{id:"string"==typeof t?t:e.id||"",meaning:e.meaning||"",description:e.description||""}}function Ur(e){return e.nodes[0]}function qr(e,t){return void 0===t&&(t=0),""+Dr+e+(t>0?":"+t:"")+Dr}function Hr(e){var t={};return e.forEach(function(e,n){t[n]=bt(e.length>1?"["+e.join("|")+"]":e[0])}),t}function Wr(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,a(n)),e.set(t,i)}function zr(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var r=t,i=new Map,o=e instanceof Vn?e.nodes.find(function(e){return e instanceof Un}):e;return o&&o.children.filter(function(e){return e instanceof Wn}).forEach(function(e,t){var o=qr(r+t,n);Wr(i,e.name,o)}),i}function Kr(e){var t,n=Mr(e).split("_");if(1===n.length)return e.toLowerCase();/^\d+$/.test(n[n.length-1])&&(t=n.pop());var r=n.shift().toLowerCase();return n.length&&(r+=n.map(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join("")),t?r+"_"+t:r}function Qr(e){return(""+Ar+e).toUpperCase()}
  /**
       * @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="_t",Gr="ctx",$r="rf";function Yr(e,t){var n=null;return function(){return n||(e.push(new Ge(Xr,void 0,le)),n=yt(t)),n}}function Jr(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 Zr(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+void 0)}function ei(e){return Array.isArray(e)?xt(e.map(ei)):bt(e,ce)}function ti(e,t){return Object.getOwnPropertyNames(e).length>0?function n(e,t){return St(Object.getOwnPropertyNames(e).map(function(n){var r,i,o,a,u=e[n];return Array.isArray(u)?(a=(r=s(u,2))[0],o=r[1]):(o=(i=s(Mt(n,[n,u]),2))[0],a=i[1]),{key:o,quoted:!1,value:t&&a!==o?xt([ei(a),ei(o)]):ei(a)}}))}(e,t):null}function ni(e){for(;(t=e[e.length-1])instanceof Ae&&null===t.value;)e.pop();var t;return e}var ri,ii,oi=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 St(this.values)},e}();function si(e){var t={};return e.attributes.forEach(function(e){Fr(e.name)||(t[e.name]=e.value)}),e.inputs.forEach(function(e){t[e.name]=""}),e.outputs.forEach(function(e){t[e.name]=""}),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 ai(t){var n=yt("t"),r=[],i=li(t)?n:new Ve(e.BinaryOperator.Or,n,t.type),o=null;if(null!==t.deps)o=new Ne(i,ui(t.deps,t.injectFn));else{var s=yt("ɵ"+t.name+"_BaseFactory"),u=gt(Bn.getInheritedFactory),p=s.set(u.callFn([t.type])).toDeclStmt(ce,[e.StmtModifier.Exported,e.StmtModifier.Final]);r.push(p),o=s.callFn([i])}var l=o,c=[],h=null;function f(e){var t=yt("r");return c.push(t.set(Ke).toDeclStmt()),c.push(Ct(n,[t.set(l).toStmt()],[t.set(e).toStmt()])),t}if(li(t)&&t.delegateType===ri.Factory){var d=yt("ɵ"+t.name+"_BaseFactory"),v=gt(Bn.getFactoryOf);if(t.delegate.isEquivalent(t.type))throw new Error("Illegal state: compiling factory that delegates to itself");var m=d.set(v.callFn([t.delegate])).toDeclStmt(ce,[e.StmtModifier.Exported,e.StmtModifier.Final]);r.push(m),h=f(d.callFn([]))}else if(li(t)){var y=ui(t.delegateDeps,t.injectFn);h=f(new(t.delegateType===ri.Class?Ne:Me)(t.delegate,y))}else h=function g(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
       */(t)?f(t.expression):o;return{factory:wt([new Fe("t",le)],a(c,[new Je(h)]),ce,void 0,t.name+"_Factory"),statements:r}}function ui(t,n){return t.map(function(t){return function r(t,n){switch(t.resolved){case e.R3ResolvedDependencyType.Token:var r=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0),i=[t.token];return(0!==r||t.optional)&&i.push(bt(r)),gt(n).callFn(i);case e.R3ResolvedDependencyType.Attribute:return gt(Bn.injectAttribute).callFn([t.token]);default:return Jr("Unknown R3ResolvedDependencyType: "+e.R3ResolvedDependencyType[t.resolved])}}(t,n)})}function pi(t,n,r){r.resolveExternalReference(on.Injector);var i,s,a=[];try{for(var u=o(t.diDeps),p=u.next();!p.done;p=u.next()){var l=p.value;if(l.token){var c=xn(l.token),h=l.isAttribute?e.R3ResolvedDependencyType.Attribute:e.R3ResolvedDependencyType.Token,f=c instanceof un?n.importExpr(c):bt(c);a.push({token:f,resolved:h,host:!!l.isHost,optional:!!l.isOptional,self:!!l.isSelf,skipSelf:!!l.isSkipSelf})}else Jr("dependency without a token")}}catch(e){i={error:e}}finally{try{p&&!p.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return a}function li(e){return void 0!==e.delegateType}function ci(e){return St(Object.keys(e).map(function(t){return{key:t,value:e[t],quoted:!1}}))}function hi(e,t){if(Array.isArray(e))return xt(e.map(function(e){return hi(e,t)}));if(e instanceof un)return t.importExpr(e);if(null==e)return bt(e);throw new Error("Internal error: Unsupported or unknown metadata: "+e)}function fi(e,t){var n=null;if(t>0){n=[];for(var r=0;r<t;r++)n.push(le)}return Et(e,null,n)}!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function",e[e.Factory=2]="Factory"}(ri||(ri={})),(ii=e.R3ResolvedDependencyType||(e.R3ResolvedDependencyType={}))[ii.Token=0]="Token",ii[ii.Attribute=1]="Attribute";var di="@";function vi(e){return""+di+e}function mi(e,t){return""+di+e+"."+t}function yi(e,t){return"animation_"+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
       */function gi(e){var t=null,n={name:e.name,type:e.type,deps:e.ctorDeps,injectFn:on.inject};if(void 0!==e.useClass){var r=e.useClass.isEquivalent(e.type),o=e.userDeps||r&&e.ctorDeps||void 0;t=ai(i({},n,void 0!==o?{delegate:e.useClass,delegateDeps:o,delegateType:ri.Class}:{delegate:e.useClass,delegateType:ri.Factory}))}else t=ai(void 0!==e.useFactory?i({},n,{delegate:e.useFactory,delegateDeps:e.userDeps||[],delegateType:ri.Function}):void 0!==e.useValue?i({},n,{expression:e.useValue}):void 0!==e.useExisting?i({},n,{expression:gt(on.inject).callFn([e.useExisting])}):n);var s=e.type,a=e.providedIn;return{expression:gt(on.defineInjectable).callFn([ci({token:s,factory:t.factory,providedIn:a})]),type:new ae(gt(on.InjectableDef,[fi(e.type,e.typeArgumentCount)])),statements:t.statements}}
  /**
       * @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 _i(e,t){if(null!=t){if(!Array.isArray(t))throw new Error("Expected '"+e+"' to be an array of strings.");for(var n=0;n<t.length;n+=1)if("string"!=typeof t[n])throw new Error("Expected '"+e+"' to be an array of strings.")}}var Ei=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function xi(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];Ei.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 Si=function(){function e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(xi("interpolation",t),new e(t[0],t[1])):wi},e}(),wi=new Si("{{","}}"),Ci=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,o){t.set(i,o),n.push(i),r.push(e.sourcesContent.get(i)||null)});var i="",o=0,s=0,a=0,u=0;return this.lines.forEach(function(e){o=0,i+=e.map(function(e){var n=bi(e.col0-o);return o=e.col0,null!=e.sourceUrl&&(n+=bi(t.get(e.sourceUrl)-s),s=t.get(e.sourceUrl),n+=bi(e.sourceLine0-a),a=e.sourceLine0,n+=bi(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(t){var n="";t=Ht(t);for(var r=0;r<t.length;){var i=t.charCodeAt(r++),o=t.charCodeAt(r++),s=t.charCodeAt(r++);n+=Pi(i>>2),n+=Pi((3&i)<<4|(isNaN(o)?0:o>>4)),n+=isNaN(o)?"=":Pi((15&o)<<2|s>>6),n+=isNaN(o)||isNaN(s)?"=":Pi(63&s)}return n}(JSON.stringify(this,null,0)):""},e}();function bi(e){e=e<0?1+(-e<<1):e<<1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=Pi(n)}while(e>0);return t}var Ti="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Pi(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return Ti[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 Mi=/'|\\|\n|\r|\$/g,Ni=/^[$A-Z_][0-9A-Z_$]*$/i,Ai="  ",Ii=yt("error",null,null),ki=yt("stack",null,null),Oi=function Oi(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]},Ri=function(){function e(e){this._indent=e,this._classes=[],this._preambleLineCount=0,this._lines=[new Oi(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*Ai.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 Oi(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?Fi(e.indent)+e.parts.join(""):""}).join("\n")},e.prototype.toSourceMapGenerator=function(e,t){void 0===t&&(t=0);for(var n=new Ci(e),r=!1,i=function(){r||(n.addSource(e," ").addMapping(0,e,0,0),r=!0)},o=0;o<t;o++)n.addLine(),i();return this.sourceLines.forEach(function(e,t){n.addLine();for(var o=e.srcSpans,s=e.parts,a=e.indent*Ai.length,u=0;u<o.length&&!o[u];)a+=s[u].length,u++;for(u<o.length&&0===t&&0===a?r=!0:i();u<o.length;){var p=o[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+=s[u].length,u++;u<o.length&&(p===o[u]||!o[u]);)a+=s[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-Fi(n.indent).length,i=0;i<n.parts.length;i++){var o=n.parts[i];if(o.length>r)return n.srcSpans[i];r-=o.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}(),Di=function(){function t(e){this._escapeDollarInStrings=e}return t.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),t.println(e,";"),null},t.prototype.visitReturnStmt=function(e,t){return t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null},t.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},t.prototype.visitThrowStmt=function(e,t){return t.print(e,"throw "),e.error.visitExpression(this,t),t.println(e,";"),null},t.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},t.prototype.visitJSDocCommentStmt=function(e,t){return t.println(e,"/*"+e.toString()+"*/"),null},t.prototype.visitWriteVarExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),t.print(e,e.name+" = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},t.prototype.visitWriteKeyExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},t.prototype.visitWritePropExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"."+e.name+" = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},t.prototype.visitInvokeMethodExpr=function(e,t){e.receiver.visitExpression(this,t);var n=e.name;return null!=e.builtin&&null==(n=this.getBuiltinMethodName(e.builtin))?null:(t.print(e,"."+n+"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null)},t.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},t.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")},t.prototype.visitTypeofExpr=function(e,t){t.print(e,"typeof "),e.expr.visitExpression(this,t)},t.prototype.visitReadVarExpr=function(t,n){var r=t.name;if(null!=t.builtin)switch(t.builtin){case e.BuiltinVar.Super:r="super";break;case e.BuiltinVar.This:r="this";break;case e.BuiltinVar.CatchError:r=Ii.name;break;case e.BuiltinVar.CatchStack:r=ki.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return n.print(t,r),null},t.prototype.visitInstantiateExpr=function(e,t){return t.print(e,"new "),e.classExpr.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},t.prototype.visitLiteralExpr=function(e,t){var n=e.value;return t.print(e,"string"==typeof n?Li(n,this._escapeDollarInStrings):""+n),null},t.prototype.visitConditionalExpr=function(e,t){return t.print(e,"("),e.condition.visitExpression(this,t),t.print(e,"? "),e.trueCase.visitExpression(this,t),t.print(e,": "),e.falseCase.visitExpression(this,t),t.print(e,")"),null},t.prototype.visitNotExpr=function(e,t){return t.print(e,"!"),e.condition.visitExpression(this,t),null},t.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t),null},t.prototype.visitBinaryOperatorExpr=function(t,n){var r;switch(t.operator){case e.BinaryOperator.Equals:r="==";break;case e.BinaryOperator.Identical:r="===";break;case e.BinaryOperator.NotEquals:r="!=";break;case e.BinaryOperator.NotIdentical:r="!==";break;case e.BinaryOperator.And:r="&&";break;case e.BinaryOperator.BitwiseAnd:r="&";break;case e.BinaryOperator.Or:r="||";break;case e.BinaryOperator.Plus:r="+";break;case e.BinaryOperator.Minus:r="-";break;case e.BinaryOperator.Divide:r="/";break;case e.BinaryOperator.Multiply:r="*";break;case e.BinaryOperator.Modulo:r="%";break;case e.BinaryOperator.Lower:r="<";break;case e.BinaryOperator.LowerEquals:r="<=";break;case e.BinaryOperator.Bigger:r=">";break;case e.BinaryOperator.BiggerEquals:r=">=";break;default:throw new Error("Unknown operator "+t.operator)}return t.parens&&n.print(t,"("),t.lhs.visitExpression(this,n),n.print(t," "+r+" "),t.rhs.visitExpression(this,n),t.parens&&n.print(t,")"),null},t.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print(e,"."),t.print(e,e.name),null},t.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"]"),null},t.prototype.visitLiteralArrayExpr=function(e,t){return t.print(e,"["),this.visitAllExpressions(e.entries,t,","),t.print(e,"]"),null},t.prototype.visitLiteralMapExpr=function(e,t){var n=this;return t.print(e,"{"),this.visitAllObjects(function(r){t.print(e,Li(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,t)},e.entries,t,","),t.print(e,"}"),null},t.prototype.visitCommaExpr=function(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null},t.prototype.visitAllExpressions=function(e,t,n){var r=this;this.visitAllObjects(function(e){return e.visitExpression(r,t)},e,t,n)},t.prototype.visitAllObjects=function(e,t,n,r){for(var i=!1,o=0;o<t.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),e(t[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},t}();function Li(e,t,n){if(void 0===n&&(n=!0),null==e)return null;var r=e.replace(Mi,function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return"$"==e[0]?t?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":"\\"+e[0]});return n||!Ni.test(r)?"'"+r+"'":r}function Fi(e){for(var t="",n=0;n<e;n++)t+=Ai;return 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 Bi(e,t,n,r){var i=new Vi(n),o=Ri.createRoot();return i.visitAllStatements(t,o),i.createReturnStmt(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
       */
  function s(e,t,n,r){var i=t.toSource()+"\n//# sourceURL="+e,o=[],s=[];for(var u in n)o.push(u),s.push(n[u]);if(r){var p=(new(Function.bind.apply(Function,a([void 0],o.concat("return null;"))))).toString(),l=p.slice(0,p.indexOf("return null;")).split("\n").length-1;i+="\n"+t.toSourceMapGenerator(e,l).toJsComment()}return(new(Function.bind.apply(Function,a([void 0],o.concat(i))))).apply(void 0,a(s))}(e,o,i.getArgs(),r)}var Vi=function(t){function r(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return n(r,t),r.prototype.createReturnStmt=function(e){new Je(new We(this._evalExportedVars.map(function(e){return new He(e,yt(e),!1)}))).visitStatement(this,e)},r.prototype.getArgs=function(){for(var e={},t=0;t<this._evalArgNames.length;t++)e[this._evalArgNames[t]]=this._evalArgValues[t];return e},r.prototype.visitExternalExpr=function(e,t){return this._emitReferenceToExternal(e,this.reflector.resolveExternalReference(e.value),t),null},r.prototype.visitWrappedNodeExpr=function(e,t){return this._emitReferenceToExternal(e,e.node,t),null},r.prototype.visitDeclareVarStmt=function(n,r){return n.hasModifier(e.StmtModifier.Exported)&&this._evalExportedVars.push(n.name),t.prototype.visitDeclareVarStmt.call(this,n,r)},r.prototype.visitDeclareFunctionStmt=function(n,r){return n.hasModifier(e.StmtModifier.Exported)&&this._evalExportedVars.push(n.name),t.prototype.visitDeclareFunctionStmt.call(this,n,r)},r.prototype.visitDeclareClassStmt=function(n,r){return n.hasModifier(e.StmtModifier.Exported)&&this._evalExportedVars.push(n.name),t.prototype.visitDeclareClassStmt.call(this,n,r)},r.prototype._emitReferenceToExternal=function(e,t,n){var r=this._evalArgValues.indexOf(t);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(t);var i=dn({reference:t})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}n.print(e,this._evalArgNames[r])},r}(function(t){function r(){return t.call(this,!1)||this}return n(r,t),r.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},r.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,"}")},r.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,"}});")},r.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,"};")},r.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},r.prototype.visitReadVarExpr=function(n,r){if(n.builtin===e.BuiltinVar.This)r.print(n,"self");else{if(n.builtin===e.BuiltinVar.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,n,r)}return null},r.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},r.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),null},r.prototype.visitInvokeFunctionExpr=function(n,r){var i=n.fn;return i instanceof Ee&&i.builtin===e.BuiltinVar.Super?(r.currentClass.parent.visitExpression(this,r),r.print(n,".call(this"),n.args.length>0&&(r.print(n,", "),this.visitAllExpressions(n.args,r,",")),r.print(n,")")):t.prototype.visitInvokeFunctionExpr.call(this,n,r),null},r.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},r.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},r.prototype.visitTryCatchStmt=function(t,n){n.println(t,"try {"),n.incIndent(),this.visitAllStatements(t.bodyStmts,n),n.decIndent(),n.println(t,"} catch ("+Ii.name+") {"),n.incIndent();var r=[ki.set(Ii.prop("stack")).toDeclStmt(null,[e.StmtModifier.Final])].concat(t.catchStmts);return this.visitAllStatements(r,n),n.decIndent(),n.println(t,"}"),null},r.prototype._visitParams=function(e,t){this.visitAllObjects(function(e){return t.print(null,e.name)},e,t,",")},r.prototype.getBuiltinMethodName=function(t){var n;switch(t){case e.BuiltinMethod.ConcatArray:n="concat";break;case e.BuiltinMethod.SubscribeObservable:n="subscribe";break;case e.BuiltinMethod.Bind:n="bind";break;default:throw new Error("Unknown builtin method: "+t)}return n},r}(Di)),ji=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}();
  /**
       * @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 Ui(t,n,r,i){return Bi(r,a(i,[new Ge("$def",t,void 0,[e.StmtModifier.Exported])]),new ji(n),!1).$def}
  /**
       * @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 qi(e){var t=e.type,n=e.bootstrap,r=e.declarations,i=e.imports,o=e.exports;return{expression:gt(Bn.defineNgModule).callFn([ci({type:t,bootstrap:xt(n.map(function(e){return e.value})),declarations:xt(r.map(function(e){return e.value})),imports:xt(i.map(function(e){return e.value})),exports:xt(o.map(function(e){return e.value}))})]),type:new ae(gt(Bn.NgModuleDefWithMeta,[new ae(t),Wi(r),Wi(i),Wi(o)])),additionalStatements:[]}}function Hi(e){var t=ai({name:e.name,type:e.type,deps:e.deps,injectFn:Bn.inject});return{expression:gt(Bn.defineInjector).callFn([ci({factory:t.factory,providers:e.providers,imports:e.imports})]),type:new ae(gt(Bn.InjectorDef,[new ae(e.type)])),statements:t.statements}}function Wi(e){var t=e.map(function(e){return function t(e){return new xe(e)}(e.type)});return e.length>0?Et(xt(t)):de}
  /**
       * @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 zi(e){var t=[];t.push({key:"name",value:bt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type,quoted:!1});var n=ai({name:e.name,type:e.type,deps:e.deps,injectFn:Bn.directiveInject});return t.push({key:"factory",value:n.factory,quoted:!1}),t.push({key:"pure",value:bt(e.pure),quoted:!1}),{expression:gt(Bn.definePipe).callFn([St(t)]),type:new ae(gt(Bn.PipeDefWithMeta,[new ae(e.type),new ae(new Ae(e.pipeName))])),statements:n.statements}}
  /**
       * @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 Ki,Qi=function Qi(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+e+" "+n+" ["+t+"] in "+r},Xi=function Xi(e,t){this.start=e,this.end=t},Gi=function(){function e(e){this.span=e}return e.prototype.visit=function(e,t){return void 0===t&&(t=null),null},e.prototype.toString=function(){return"AST"},e}(),$i=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return n(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}(Gi),Yi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.visit=function(e,t){void 0===t&&(t=null)},t}(Gi),Ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitImplicitReceiver(this,t)},t}(Gi),Zi=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitChain(this,t)},t}(Gi),eo=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitConditional(this,t)},t}(Gi),to=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyRead(this,t)},t}(Gi),no=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.value=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyWrite(this,t)},t}(Gi),ro=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafePropertyRead(this,t)},t}(Gi),io=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.obj=n,i.key=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedRead(this,t)},t}(Gi),oo=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.obj=n,o.key=r,o.value=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedWrite(this,t)},t}(Gi),so=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.exp=n,o.name=r,o.args=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPipe(this,t)},t}(Gi),ao=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralPrimitive(this,t)},t}(Gi),uo=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralArray(this,t)},t}(Gi),po=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keys=n,i.values=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralMap(this,t)},t}(Gi),lo=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.strings=n,i.expressions=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitInterpolation(this,t)},t}(Gi),co=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.operation=n,o.left=r,o.right=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitBinary(this,t)},t}(Gi),ho=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPrefixNot(this,t)},t}(Gi),fo=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitNonNullAssert(this,t)},t}(Gi),vo=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitMethodCall(this,t)},t}(Gi),mo=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafeMethodCall(this,t)},t}(Gi),yo=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.target=n,i.args=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitFunctionCall(this,t)},t}(Gi),go=function(e){function t(t,n,r,i){var o=e.call(this,new Xi(0,null==n?0:n.length))||this;return o.ast=t,o.source=n,o.location=r,o.errors=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),this.ast.visit(e,t)},t.prototype.toString=function(){return this.source+" in "+this.location},t}(Gi),_o=function _o(e,t,n,r,i){this.span=e,this.key=t,this.keyIsVar=n,this.name=r,this.expression=i},Eo=function(){function e(){}return e.prototype.visitBinary=function(e,t){},e.prototype.visitChain=function(e,t){},e.prototype.visitConditional=function(e,t){},e.prototype.visitFunctionCall=function(e,t){},e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){},e.prototype.visitKeyedRead=function(e,t){},e.prototype.visitKeyedWrite=function(e,t){},e.prototype.visitLiteralArray=function(e,t){},e.prototype.visitLiteralMap=function(e,t){},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitMethodCall=function(e,t){},e.prototype.visitPipe=function(e,t){},e.prototype.visitPrefixNot=function(e,t){},e.prototype.visitNonNullAssert=function(e,t){},e.prototype.visitPropertyRead=function(e,t){},e.prototype.visitPropertyWrite=function(e,t){},e.prototype.visitQuote=function(e,t){},e.prototype.visitSafeMethodCall=function(e,t){},e.prototype.visitSafePropertyRead=function(e,t){},e}(),xo=function(){function e(){}return e.prototype.visitBinary=function(e,t){return e.left.visit(this),e.right.visit(this),null},e.prototype.visitChain=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this),null},e.prototype.visitPipe=function(e,t){return e.exp.visit(this),this.visitAll(e.args,t),null},e.prototype.visitFunctionCall=function(e,t){return e.target.visit(this),this.visitAll(e.args,t),null},e.prototype.visitImplicitReceiver=function(e,t){return null},e.prototype.visitInterpolation=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitKeyedRead=function(e,t){return e.obj.visit(this),e.key.visit(this),null},e.prototype.visitKeyedWrite=function(e,t){return e.obj.visit(this),e.key.visit(this),e.value.visit(this),null},e.prototype.visitLiteralArray=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitLiteralMap=function(e,t){return this.visitAll(e.values,t)},e.prototype.visitLiteralPrimitive=function(e,t){return null},e.prototype.visitMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},e.prototype.visitPrefixNot=function(e,t){return e.expression.visit(this),null},e.prototype.visitNonNullAssert=function(e,t){return e.expression.visit(this),null},e.prototype.visitPropertyRead=function(e,t){return e.receiver.visit(this),null},e.prototype.visitPropertyWrite=function(e,t){return e.receiver.visit(this),e.value.visit(this),null},e.prototype.visitSafePropertyRead=function(e,t){return e.receiver.visit(this),null},e.prototype.visitSafeMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},e.prototype.visitAll=function(e,t){var n=this;return e.forEach(function(e){return e.visit(n,t)}),null},e.prototype.visitQuote=function(e,t){return null},e}(),So=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){return new lo(e.span,e.strings,this.visitAll(e.expressions))},e.prototype.visitLiteralPrimitive=function(e,t){return new ao(e.span,e.value)},e.prototype.visitPropertyRead=function(e,t){return new to(e.span,e.receiver.visit(this),e.name)},e.prototype.visitPropertyWrite=function(e,t){return new no(e.span,e.receiver.visit(this),e.name,e.value.visit(this))},e.prototype.visitSafePropertyRead=function(e,t){return new ro(e.span,e.receiver.visit(this),e.name)},e.prototype.visitMethodCall=function(e,t){return new vo(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitSafeMethodCall=function(e,t){return new mo(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitFunctionCall=function(e,t){return new yo(e.span,e.target.visit(this),this.visitAll(e.args))},e.prototype.visitLiteralArray=function(e,t){return new uo(e.span,this.visitAll(e.expressions))},e.prototype.visitLiteralMap=function(e,t){return new po(e.span,e.keys,this.visitAll(e.values))},e.prototype.visitBinary=function(e,t){return new co(e.span,e.operation,e.left.visit(this),e.right.visit(this))},e.prototype.visitPrefixNot=function(e,t){return new ho(e.span,e.expression.visit(this))},e.prototype.visitNonNullAssert=function(e,t){return new fo(e.span,e.expression.visit(this))},e.prototype.visitConditional=function(e,t){return new eo(e.span,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))},e.prototype.visitPipe=function(e,t){return new so(e.span,e.exp.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitKeyedRead=function(e,t){return new io(e.span,e.obj.visit(this),e.key.visit(this))},e.prototype.visitKeyedWrite=function(e,t){return new oo(e.span,e.obj.visit(this),e.key.visit(this),e.value.visit(this))},e.prototype.visitAll=function(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=e[n].visit(this);return t},e.prototype.visitChain=function(e,t){return new Zi(e.span,this.visitAll(e.expressions))},e.prototype.visitQuote=function(e,t){return new $i(e.span,e.prefix,e.uninterpretedExpression,e.location)},e}(),wo=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new lo(e.span,e.strings,n):e},e.prototype.visitLiteralPrimitive=function(e,t){return e},e.prototype.visitPropertyRead=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new to(e.span,n,e.name):e},e.prototype.visitPropertyWrite=function(e,t){var n=e.receiver.visit(this),r=e.value.visit(this);return n!==e.receiver||r!==e.value?new no(e.span,n,e.name,r):e},e.prototype.visitSafePropertyRead=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new ro(e.span,n,e.name):e},e.prototype.visitMethodCall=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new vo(e.span,n,e.name,this.visitAll(e.args)):e},e.prototype.visitSafeMethodCall=function(e,t){var n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new mo(e.span,n,e.name,r):e},e.prototype.visitFunctionCall=function(e,t){var n=e.target&&e.target.visit(this),r=this.visitAll(e.args);return n!==e.target||r!==e.args?new yo(e.span,n,r):e},e.prototype.visitLiteralArray=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new uo(e.span,n):e},e.prototype.visitLiteralMap=function(e,t){var n=this.visitAll(e.values);return n!==e.values?new po(e.span,e.keys,n):e},e.prototype.visitBinary=function(e,t){var n=e.left.visit(this),r=e.right.visit(this);return n!==e.left||r!==e.right?new co(e.span,e.operation,n,r):e},e.prototype.visitPrefixNot=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new ho(e.span,n):e},e.prototype.visitNonNullAssert=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new fo(e.span,n):e},e.prototype.visitConditional=function(e,t){var n=e.condition.visit(this),r=e.trueExp.visit(this),i=e.falseExp.visit(this);return n!==e.condition||r!==e.trueExp||i!=i?new eo(e.span,n,r,i):e},e.prototype.visitPipe=function(e,t){var n=e.exp.visit(this),r=this.visitAll(e.args);return n!==e.exp||r!==e.args?new so(e.span,n,e.name,r):e},e.prototype.visitKeyedRead=function(e,t){var n=e.obj.visit(this),r=e.key.visit(this);return n!==e.obj||r!==e.key?new io(e.span,n,r):e},e.prototype.visitKeyedWrite=function(e,t){var n=e.obj.visit(this),r=e.key.visit(this),i=e.value.visit(this);return n!==e.obj||r!==e.key||i!==e.value?new oo(e.span,n,r,i):e},e.prototype.visitAll=function(e){for(var t=new Array(e.length),n=!1,r=0;r<e.length;++r){var i=e[r],o=i.visit(this);t[r]=o,n=n||o!==i}return n?t:e},e.prototype.visitChain=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new Zi(e.span,n):e},e.prototype.visitQuote=function(e,t){return e},e}(),Co=function Co(t,n,r,i){this.name=t,this.expression=n,this.type=r,this.sourceSpan=i,this.isLiteral=this.type===e.ParsedPropertyType.LITERAL_ATTR,this.isAnimation=this.type===e.ParsedPropertyType.ANIMATION};(Ki=e.ParsedPropertyType||(e.ParsedPropertyType={}))[Ki.DEFAULT=0]="DEFAULT",Ki[Ki.LITERAL_ATTR=1]="LITERAL_ATTR",Ki[Ki.ANIMATION=2]="ANIMATION";var bo=function bo(e,t,n,r,i){this.name=e,this.targetOrPhase=t,this.type=n,this.handler=r,this.sourceSpan=i},To=function To(e,t,n){this.name=e,this.value=t,this.sourceSpan=n},Po=function Po(e,t,n,r,i,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o},Mo=function(){function e(){}return e.event=yt("$event"),e}(),No=function No(e,t){this.stmts=e,this.allowDefault=t,this.render3Stmts=e.map(function(e){return e instanceof Ge&&e.name==t.name&&e.value instanceof Ve?new Je(e.value.lhs.value):e})};function Ao(t,n,r,i,o){t||(t=new Ho);var s=Io({createLiteralArrayConverter:function(e){return function(e){return xt(e)}},createLiteralMapConverter:function(e){return function(t){return St(e.map(function(e,n){return{key:e.key,value:t[n],quoted:e.quoted}}))}},createPipeConverter:function(e){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+e)}},r),a=new qo(t,n,i,o),u=[];!function e(t,n){Array.isArray(t)?t.forEach(function(t){return e(t,n)}):n.push(t)}(s.visit(a,Oo.Statement),u),function p(e,t,n){for(var r=e-1;r>=0;r--)n.unshift(Fo(t,r))}(a.temporaryCount,i,u);var l=u.length-1,c=null;if(l>=0){var h=function f(e){return e instanceof Ye?e.expr:e instanceof Je?e.value:null}(u[l]);h&&(c=function d(e){return yt("pd_"+e)}(i),u[l]=c.set(h.cast(le).notIdentical(bt(!1))).toDeclStmt(null,[e.StmtModifier.Final]))}return new No(u,c)}function Io(e,t){return function n(e,t){var n=new Uo(e);return t.visit(n)}(e,t)}var ko,Oo,Ro=function Ro(e,t){this.stmts=e,this.currValExpr=t};function Do(t,n,r,i,o,s){t||(t=new Ho);var a=function u(e){return yt("currVal_"+e)}(i),p=[],l=new qo(t,n,i,s),c=r.visit(l,Oo.Expression);if(l.temporaryCount)for(var h=0;h<l.temporaryCount;h++)p.push(Fo(i,h));else if(o==ko.TrySimple)return new Ro([],c);return p.push(a.set(c).toDeclStmt(le,[e.StmtModifier.Final])),new Ro(p,a)}function Lo(e,t){return"tmp_"+e+"_"+t}function Fo(e,t){return new Ge(Lo(e,t),Ke)}function Bo(e,t){if(e!==Oo.Expression)throw new Error("Expected an expression, but saw "+t)}function Vo(e,t){return e===Oo.Statement?t.toStmt():t}!function(e){e[e.General=0]="General",e[e.TrySimple=1]="TrySimple"}(ko||(ko={})),function(e){e[e.Statement=0]="Statement",e[e.Expression=1]="Expression"}(Oo||(Oo={}));var jo,Uo=function(e){function t(t){var n=e.call(this)||this;return n._converterFactory=t,n}return n(t,e),t.prototype.visitPipe=function(e,t){var n=this,r=a([e.exp],e.args).map(function(e){return e.visit(n,t)});return new Wo(e.span,r,this._converterFactory.createPipeConverter(e.name,r.length))},t.prototype.visitLiteralArray=function(e,t){var n=this,r=e.expressions.map(function(e){return e.visit(n,t)});return new Wo(e.span,r,this._converterFactory.createLiteralArrayConverter(e.expressions.length))},t.prototype.visitLiteralMap=function(e,t){var n=this,r=e.values.map(function(e){return e.visit(n,t)});return new Wo(e.span,r,this._converterFactory.createLiteralMapConverter(e.keys))},t}(So),qo=function(){function t(e,t,n,r){this._localResolver=e,this._implicitReceiver=t,this.bindingId=n,this.interpolationFunction=r,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,n){var r;switch(t.operation){case"+":r=e.BinaryOperator.Plus;break;case"-":r=e.BinaryOperator.Minus;break;case"*":r=e.BinaryOperator.Multiply;break;case"/":r=e.BinaryOperator.Divide;break;case"%":r=e.BinaryOperator.Modulo;break;case"&&":r=e.BinaryOperator.And;break;case"||":r=e.BinaryOperator.Or;break;case"==":r=e.BinaryOperator.Equals;break;case"!=":r=e.BinaryOperator.NotEquals;break;case"===":r=e.BinaryOperator.Identical;break;case"!==":r=e.BinaryOperator.NotIdentical;break;case"<":r=e.BinaryOperator.Lower;break;case">":r=e.BinaryOperator.Bigger;break;case"<=":r=e.BinaryOperator.LowerEquals;break;case">=":r=e.BinaryOperator.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Vo(n,new Ve(r,this._visit(t.left,Oo.Expression),this._visit(t.right,Oo.Expression)))},t.prototype.visitChain=function(e,t){return function n(e,t){if(e!==Oo.Statement)throw new Error("Expected a statement, but saw "+t)}(t,e),this.visitAll(e.expressions,t)},t.prototype.visitConditional=function(e,t){return Vo(t,this._visit(e.condition,Oo.Expression).conditional(this._visit(e.trueExp,Oo.Expression),this._visit(e.falseExp,Oo.Expression)))},t.prototype.visitPipe=function(e,t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+e.name)},t.prototype.visitFunctionCall=function(e,t){var n=this.visitAll(e.args,Oo.Expression);return Vo(t,e instanceof Wo?e.converter(n):this._visit(e.target,Oo.Expression).callFn(n))},t.prototype.visitImplicitReceiver=function(e,t){return Bo(t,e),this._implicitReceiver},t.prototype.visitInterpolation=function(e,t){Bo(t,e);for(var n=[bt(e.expressions.length)],r=0;r<e.strings.length-1;r++)n.push(bt(e.strings[r])),n.push(this._visit(e.expressions[r],Oo.Expression));return n.push(bt(e.strings[e.strings.length-1])),this.interpolationFunction?this.interpolationFunction(n):e.expressions.length<=9?gt(on.inlineInterpolate).callFn(n):gt(on.interpolate).callFn([n[0],xt(n.slice(1))])},t.prototype.visitKeyedRead=function(e,t){var n=this.leftMostSafeNode(e);return n?this.convertSafeAccess(e,n,t):Vo(t,this._visit(e.obj,Oo.Expression).key(this._visit(e.key,Oo.Expression)))},t.prototype.visitKeyedWrite=function(e,t){var n=this._visit(e.obj,Oo.Expression),r=this._visit(e.key,Oo.Expression),i=this._visit(e.value,Oo.Expression);return Vo(t,n.key(r).set(i))},t.prototype.visitLiteralArray=function(e,t){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(e,t){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(e,t){return Vo(t,bt(e.value,null===e.value||void 0===e.value||!0===e.value||!0===e.value?ce:void 0))},t.prototype._getLocal=function(e){return this._localResolver.getLocal(e)},t.prototype.visitMethodCall=function(e,t){if(e.receiver instanceof Ji&&"$any"==e.name){if(1!=(r=this.visitAll(e.args,Oo.Expression)).length)throw new Error("Invalid call to $any, expected 1 argument but received "+(r.length||"none"));return r[0].cast(le)}var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=this.visitAll(e.args,Oo.Expression),i=null,o=this._visit(e.receiver,Oo.Expression);if(o===this._implicitReceiver){var s=this._getLocal(e.name);s&&(i=s.callFn(r))}return null==i&&(i=o.callMethod(e.name,r)),Vo(t,i)},t.prototype.visitPrefixNot=function(e,t){return Vo(t,function n(e,t){return new Re(e,t)}(this._visit(e.expression,Oo.Expression)))},t.prototype.visitNonNullAssert=function(e,t){return Vo(t,function n(e,t){return new De(e,t)}(this._visit(e.expression,Oo.Expression)))},t.prototype.visitPropertyRead=function(e,t){var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=null,i=this._visit(e.receiver,Oo.Expression);return i===this._implicitReceiver&&(r=this._getLocal(e.name)),null==r&&(r=i.prop(e.name)),Vo(t,r)},t.prototype.visitPropertyWrite=function(e,t){var n=this._visit(e.receiver,Oo.Expression),r=null;if(n===this._implicitReceiver){var i=this._getLocal(e.name);if(i){if(!(i instanceof je))throw new Error("Cannot assign to a reference or variable!");r=i}}return null===r&&(r=n.prop(e.name)),Vo(t,r.set(this._visit(e.value,Oo.Expression)))},t.prototype.visitSafePropertyRead=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},t.prototype.visitSafeMethodCall=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},t.prototype.visitAll=function(e,t){var n=this;return e.map(function(e){return n._visit(e,t)})},t.prototype.visitQuote=function(e,t){throw new Error("Quotes are not supported for evaluation!\n        Statement: "+e.uninterpretedExpression+" located at "+e.location)},t.prototype._visit=function(e,t){return this._resultMap.get(e)||(this._nodeMap.get(e)||e).visit(this,t)},t.prototype.convertSafeAccess=function(e,t,n){var r=this._visit(t.receiver,Oo.Expression),i=void 0;this.needsTemporary(t.receiver)&&(r=(i=this.allocateTemporary()).set(r),this._resultMap.set(t.receiver,i));var o=r.isBlank();this._nodeMap.set(t,t instanceof mo?new vo(t.span,t.receiver,t.name,t.args):new to(t.span,t.receiver,t.name));var s=this._visit(e,Oo.Expression);return this._nodeMap.delete(t),i&&this.releaseTemporary(i),Vo(n,o.conditional(bt(null),s))},t.prototype.leftMostSafeNode=function(e){var t=this,n=function(e,n){return(t._nodeMap.get(n)||n).visit(e)};return e.visit({visitBinary:function(e){return null},visitChain:function(e){return null},visitConditional:function(e){return null},visitFunctionCall:function(e){return null},visitImplicitReceiver:function(e){return null},visitInterpolation:function(e){return null},visitKeyedRead:function(e){return n(this,e.obj)},visitKeyedWrite:function(e){return null},visitLiteralArray:function(e){return null},visitLiteralMap:function(e){return null},visitLiteralPrimitive:function(e){return null},visitMethodCall:function(e){return n(this,e.receiver)},visitPipe:function(e){return null},visitPrefixNot:function(e){return null},visitNonNullAssert:function(e){return null},visitPropertyRead:function(e){return n(this,e.receiver)},visitPropertyWrite:function(e){return null},visitQuote:function(e){return null},visitSafeMethodCall:function(e){return n(this,e.receiver)||e},visitSafePropertyRead:function(e){return n(this,e.receiver)||e}})},t.prototype.needsTemporary=function(e){var t=this,n=function(e,n){return n&&(t._nodeMap.get(n)||n).visit(e)};return e.visit({visitBinary:function(e){return n(this,e.left)||n(this,e.right)},visitChain:function(e){return!1},visitConditional:function(e){return n(this,e.condition)||n(this,e.trueExp)||n(this,e.falseExp)},visitFunctionCall:function(e){return!0},visitImplicitReceiver:function(e){return!1},visitInterpolation:function(e){return function(e,t){return t.some(function(t){return n(e,t)})}(this,e.expressions)},visitKeyedRead:function(e){return!1},visitKeyedWrite:function(e){return!1},visitLiteralArray:function(e){return!0},visitLiteralMap:function(e){return!0},visitLiteralPrimitive:function(e){return!1},visitMethodCall:function(e){return!0},visitPipe:function(e){return!0},visitPrefixNot:function(e){return n(this,e.expression)},visitNonNullAssert:function(e){return n(this,e.expression)},visitPropertyRead:function(e){return!1},visitPropertyWrite:function(e){return!1},visitQuote:function(e){return!1},visitSafeMethodCall:function(e){return!0},visitSafePropertyRead:function(e){return!1}})},t.prototype.allocateTemporary=function(){var e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Ee(Lo(this.bindingId,e))},t.prototype.releaseTemporary=function(e){if(this._currentTemporary--,e.name!=Lo(this.bindingId,this._currentTemporary))throw new Error("Temporary "+e.name+" released out of order")},t}(),Ho=function(){function e(){}return e.prototype.getLocal=function(e){return e===Mo.event.name?Mo.event:null},e}(),Wo=function(e){function t(t,n,r){var i=e.call(this,t,null,n)||this;return i.args=n,i.converter=r,i}return n(t,e),t}(yo);!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"}(jo||(jo={}));var zo=[jo.OnInit,jo.OnDestroy,jo.DoCheck,jo.OnChanges,jo.AfterContentInit,jo.AfterContentChecked,jo.AfterViewInit,jo.AfterViewChecked],Ko=0,Qo=9,Xo=10,Go=11,$o=12,Yo=13,Jo=32,Zo=34,es=36,ts=39,ns=43,rs=45,is=47,os=59,ss=61,as=62,us=48,ps=57,ls=65,cs=70,hs=90,fs=95,ds=97,vs=102,ms=110,ys=114,gs=116,_s=118,Es=122,xs=123,Ss=160,ws=96;function Cs(e){return e>=Qo&&e<=Jo||e==Ss}function bs(e){return us<=e&&e<=ps}function Ts(e){return e>=ds&&e<=Es||e>=ls&&e<=hs}
  /**
       * @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,Ms=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,o=this.line,s=this.col;i>0&&t<0;)if(t++,(u=n.charCodeAt(--i))==Xo){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Xo));s=a>0?i-a:i}else s--;for(;i<r&&t>0;){var u=n.charCodeAt(i);i++,t--,u==Xo?(o++,s=0):s++}return new e(this.file,i,o,s)},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,o=0,s=0;o<e&&r>0&&(o++,"\n"!=n[--r]||++s!=t););for(o=0,s=0;o<e&&i<n.length-1&&(o++,"\n"!=n[++i]||++s!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},e}(),Ns=function Ns(e,t){this.content=e,this.url=t},As=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}();(Ps=e.ParseErrorLevel||(e.ParseErrorLevel={}))[Ps.WARNING=0]="WARNING",Ps[Ps.ERROR=1]="ERROR";var Is=function(){function t(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this.span=t,this.msg=n,this.level=r}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?this.msg+' ("'+t.before+"["+e.ParseErrorLevel[this.level]+" ->]"+t.after+'")':this.msg},t.prototype.toString=function(){var e=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+e},t}();function ks(e,t){var n=vn(t),r=null!=n?"in "+e+" "+dn(t)+" in "+n:"in "+e+" "+dn(t),i=new Ns("",r);return new As(new Ms(i,-1,-1,-1),new Ms(i,-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 Os=function(){function e(){this.strictStyling=!0}return e.prototype.shimCssText=function(e,t,n){void 0===n&&(n="");var r=function i(e){return e.match(Js)||[]}(e);return e=function o(e){return e.replace(Ys,"")}(e),e=this._insertDirectives(e),a([this._scopeCssText(e,t,n)],r).join("\n")},e.prototype._insertDirectives=function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)},e.prototype._insertPolyfillDirectivesInCssText=function(e){return e.replace(Ds,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[2]+"{"})},e.prototype._insertPolyfillRulesInCssText=function(e){return e.replace(Ls,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0].replace(e[1],"").replace(e[2],"");return e[4]+n})},e.prototype._scopeCssText=function(e,t,n){var r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeSelectors(e,t,n)),(e=e+"\n"+r).trim()},e.prototype._extractUnscopedRulesFromCssText=function(e){var t,n="";for(Fs.lastIndex=0;null!==(t=Fs.exec(e));)n+=t[0].replace(t[2],"").replace(t[1],t[4])+"\n\n";return n},e.prototype._convertColonHost=function(e){return this._convertColonRule(e,Us,this._colonHostPartReplacer)},e.prototype._convertColonHostContext=function(e){return this._convertColonRule(e,qs,this._colonHostContextPartReplacer)},e.prototype._convertColonRule=function(e,t,n){return e.replace(t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e[2]){for(var r=e[2].split(","),i=[],o=0;o<r.length;o++){var s=r[o].trim();if(!s)break;i.push(n(Hs,s,e[3]))}return i.join(",")}return Hs+e[3]})},e.prototype._colonHostContextPartReplacer=function(e,t,n){return t.indexOf(Bs)>-1?this._colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n},e.prototype._colonHostPartReplacer=function(e,t,n){return e+t.replace(Bs,"")+n},e.prototype._convertShadowDOMSelectors=function(e){return zs.reduce(function(e,t){return e.replace(t," ")},e)},e.prototype._scopeSelectors=function(e,t,n){var r=this;return function i(e,t){var n=function r(e){for(var t=e.split(ea),n=[],r=[],i=0,o=[],s=0;s<t.length;s++){var a=t[s];a==na&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(ra),o=[]),n.push(a)),a==ta&&i++}return o.length>0&&(r.push(o.join("")),n.push(ra)),new oa(n.join(""),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),i=0;return n.escapedString.replace(Zs,function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=e[2],s="",a=e[4],u="";a&&a.startsWith("{"+ra)&&(s=n.blocks[i++],a=a.substring(ra.length+1),u="{");var p=t(new ia(o,s));return""+e[1]+p.selector+e[3]+u+p.content+a})}(e,function(e){var i=e.selector,o=e.content;return"@"!=e.selector[0]?i=r._scopeSelector(e.selector,t,n,r.strictStyling):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(o=r._scopeSelectors(e.content,t,n)),new ia(i,o)})},e.prototype._scopeSelector=function(e,t,n,r){var i=this;return e.split(",").map(function(e){return e.trim().split(Ks)}).map(function(e){var o=s(e),u=o[0],p=o.slice(1);return a([function(e){return i._selectorNeedsScoping(e,t)?r?i._applyStrictSelectorScope(e,t,n):i._applySelectorScope(e,t,n):e}(u)],p).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+")"+Qs,"m")},e.prototype._applySelectorScope=function(e,t,n){return this._applySimpleSelectorScope(e,t,n)},e.prototype._applySimpleSelectorScope=function(e,t,n){if(Xs.lastIndex=0,Xs.test(e)){var r=this.strictStyling?"["+n+"]":t;return e.replace(Ws,function(e,t){return t.replace(/([^:]*)(:*)(.*)/,function(e,t,n,i){return t+r+n+i})}).replace(Xs,r+" ")}return t+" "+e},e.prototype._applyStrictSelectorScope=function(e,t,n){for(var r,i=this,o="["+(t=t.replace(/\[is=([^\]]*)\]/g,function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t[0]}))+"]",s=function(e){var r=e.trim();if(!r)return"";if(e.indexOf(Hs)>-1)r=i._applySimpleSelectorScope(e,t,n);else{var s=e.replace(Xs,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+o+a[2]+a[3])}}return r},a=new Rs(e),u="",p=0,l=/( |>|\+|~(?!=))\s*/g,c=!((e=a.content()).indexOf(Hs)>-1);null!==(r=l.exec(e));){var h=r[1],f=e.slice(p,r.index).trim();u+=((c=c||f.indexOf(Hs)>-1)?s(f):f)+" "+h+" ",p=l.lastIndex}var d=e.substring(p);return u+=(c=c||d.indexOf(Hs)>-1)?s(d):d,a.restore(u)},e.prototype._insertPolyfillHostInCssText=function(e){return e.replace($s,Vs).replace(Gs,Bs)},e}(),Rs=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}(),Ds=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Ls=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Fs=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Bs="-shadowcsshost",Vs="-shadowcsscontext",js=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Us=new RegExp("("+Bs+js,"gim"),qs=new RegExp("("+Vs+js,"gim"),Hs=Bs+"-no-combinator",Ws=/-shadowcsshost-no-combinator([^\s]*)/,zs=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Ks=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Qs="([>\\s~+[.,{:][\\s\\S]*)?$",Xs=/-shadowcsshost/gim,Gs=/:host/gim,$s=/:host-context/gim,Ys=/\/\*\s*[\s\S]*?\*\//g,Js=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,Zs=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,ea=/([{}])/g,ta="{",na="}",ra="%BLOCK%",ia=function ia(e,t){this.selector=e,this.content=t},oa=function oa(e,t){this.escapedString=e,this.blocks=t},sa="_nghost-%COMP%",aa="_ngcontent-%COMP%",ua=function ua(e,t,n){this.name=e,this.moduleUrl=t,this.setValue=n},pa=function pa(e,t,n,r,i){this.outputCtx=e,this.stylesVar=t,this.dependencies=n,this.isShimmed=r,this.meta=i},la=function(){function t(e){this._urlResolver=e,this._shadowCss=new Os}return t.prototype.compileComponent=function(e,t){var n=t.template;return this._compileStyles(e,t,new Sn({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:vn(t.type)}),this.needsStyleShim(t),!0)},t.prototype.compileStyles=function(e,t,n,r){return void 0===r&&(r=this.needsStyleShim(t)),this._compileStyles(e,t,n,r,!1)},t.prototype.needsStyleShim=function(e){return e.template.encapsulation===E.Emulated},t.prototype._compileStyles=function(t,n,r,i,o){var s=this,a=r.styles.map(function(e){return bt(s._shimIfNeeded(e,i))}),u=[];r.styleUrls.forEach(function(e){var n=a.length;a.push(null),u.push(new ua(ca(null),e,function(e){return a[n]=t.importExpr(e)}))});var p=ca(o?n:null),l=yt(p).set(xt(a,new ue(le,[te.Const]))).toDeclStmt(null,o?[e.StmtModifier.Final]:[e.StmtModifier.Final,e.StmtModifier.Exported]);return t.statements.push(l),new pa(t,p,u,i,r)},t.prototype._shimIfNeeded=function(e,t){return t?this._shadowCss.shimCssText(e,aa,sa):e},t}();function ca(e){var t="styles";return e&&(t+="_"+dn(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
       */function ha(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 fa(e){return e.replace(/[a-z][A-Z]/g,function(e){return e.charAt(0)+"-"+e.charAt(1)}).toLowerCase()}var da=function(){function e(e,t){this._elementIndexExpr=e,this._directiveExpr=t,this._hasInitialValues=!1,this._hasBindings=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[],this._useDefaultSanitizer=!1}return e.prototype.hasBindingsOrInitialValues=function(){return this._hasBindings||this._hasInitialValues},e.prototype.registerBoundInput=function(e){var t=e.name,n=null;switch(e.type){case 0:"style"==t?n=this.registerStyleInput(null,e.value,"",e.sourceSpan):function r(e){return"className"==e||"class"==e}(e.name)&&(n=this.registerClassInput(null,e.value,e.sourceSpan));break;case 3:n=this.registerStyleInput(e.name,e.value,e.unit,e.sourceSpan);break;case 2:n=this.registerClassInput(e.name,e.value,e.sourceSpan)}return!!n},e.prototype.registerStyleInput=function(e,t,n,r){var i={name:e,unit:n,value:t,sourceSpan:r};return e?((this._singleStyleInputs=this._singleStyleInputs||[]).push(i),this._useDefaultSanitizer=this._useDefaultSanitizer||function o(e){return"background-image"===e||"background"===e||"border-image"===e||"filter"===e||"list-style"===e||"list-style-image"===e}(e),va(this._stylesIndex,e)):(this._useDefaultSanitizer=!0,this._styleMapInput=i),this._lastStylingInput=i,this._hasBindings=!0,i},e.prototype.registerClassInput=function(e,t,n){var r={name:e,value:t,sourceSpan:n};return e?((this._singleClassInputs=this._singleClassInputs||[]).push(r),va(this._classesIndex,e)):this._classMapInput=r,this._lastStylingInput=r,this._hasBindings=!0,r},e.prototype.registerStyleAttr=function(e){this._initialStyleValues=function t(e){for(var t=[],n=0,r=0,i=0,o=0,s=0,a=null,u=!1;n<e.length;)switch(e.charCodeAt(n++)){case 40:r++;break;case 41:r--;break;case 39:u=u||o>0,0===i?i=39:39===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 34:u=u||o>0,0===i?i=34:34===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 58:a||0!==r||0!==i||(a=fa(e.substring(s,n-1).trim()),o=n);break;case 59:if(a&&o>0&&0===r&&0===i){var p=e.substring(o,n-1).trim();t.push(a,u?ha(p):p),s=n,o=0,a=null,u=!1}}return a&&o&&(p=e.substr(o).trim(),t.push(a,u?ha(p):p)),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(bt(1));for(var t=0;t<this._initialClassValues.length;t++)e.push(bt(this._initialClassValues[t]))}if(this._initialStyleValues.length)for(e.push(bt(2)),t=0;t<this._initialStyleValues.length;t+=2)e.push(bt(this._initialStyleValues[t]),bt(this._initialStyleValues[t+1]))},e.prototype.buildDirectiveHostAttrsInstruction=function(e,t){var n=this;return this._hasInitialValues&&this._directiveExpr?{sourceSpan:e,reference:Bn.elementHostAttrs,buildParams:function(){var e=[];return n.populateInitialStylingAttrs(e),[n._directiveExpr,ma(t,e)]}}:null},e.prototype.buildElementStylingInstruction=function(e,t){var n=this;return this._hasBindings?{sourceSpan:e,reference:Bn.elementStyling,buildParams:function(){var e=n._singleStyleInputs?n._singleStyleInputs.map(function(e){return bt(e.name)}):[],r=n._singleClassInputs?n._singleClassInputs.map(function(e){return bt(e.name)}):[],i=0;n._directiveExpr?i=4:n._useDefaultSanitizer?i=3:e.length?i=2:r.length&&(i=1);var o=[];return ya(o,r.length>0,ma(t,r),1,i),ya(o,e.length>0,ma(t,e),2,i),ya(o,n._useDefaultSanitizer,gt(Bn.defaultStyleSanitizer),3,i),n._directiveExpr&&o.push(n._directiveExpr),o}}:null},e.prototype.buildElementStylingMapInstruction=function(e){var t=this;if(this._classMapInput||this._styleMapInput){var n=this._classMapInput||this._styleMapInput,r=this._classMapInput?this._classMapInput.value.visit(e):null,i=this._styleMapInput?this._styleMapInput.value.visit(e):null;return{sourceSpan:n.sourceSpan,reference:Bn.elementStylingMap,buildParams:function(e){var n=[t._elementIndexExpr];return r?n.push(e(r)):t._styleMapInput&&n.push(Ke),i?n.push(e(i)):t._directiveExpr&&n.push(Ke),t._directiveExpr&&n.push(t._directiveExpr),n}}}return null},e.prototype._buildSingleInputs=function(e,t,n,r,i){var o=this;return t.map(function(t){var s=n.get(t.name),a=t.value.visit(i);return{sourceSpan:t.sourceSpan,reference:e,buildParams:function(e){var n=[o._elementIndexExpr,bt(s),e(a)];return r&&(t.unit?n.push(bt(t.unit)):o._directiveExpr&&n.push(Ke)),o._directiveExpr&&n.push(o._directiveExpr),n}}})},e.prototype._buildClassInputs=function(e){return this._singleClassInputs?this._buildSingleInputs(Bn.elementClassProp,this._singleClassInputs,this._classesIndex,!1,e):[]},e.prototype._buildStyleInputs=function(e){return this._singleStyleInputs?this._buildSingleInputs(Bn.elementStyleProp,this._singleStyleInputs,this._stylesIndex,!0,e):[]},e.prototype._buildApplyFn=function(){var e=this;return{sourceSpan:this._lastStylingInput?this._lastStylingInput.sourceSpan:null,reference:Bn.elementStylingApply,buildParams:function(){var t=[e._elementIndexExpr];return e._directiveExpr&&t.push(e._directiveExpr),t}}},e.prototype.buildUpdateLevelInstructions=function(e){var t=[];if(this._hasBindings){var n=this.buildElementStylingMapInstruction(e);n&&t.push(n),t.push.apply(t,a(this._buildStyleInputs(e))),t.push.apply(t,a(this._buildClassInputs(e))),t.push(this._buildApplyFn())}return t},e}();function va(e,t){e.has(t)||e.set(t,e.size)}function ma(e,t){return t.length?e.getConstLiteral(xt(t),!0):Ke}function ya(e,t,n,r,i){t?e.push(n):r<i&&e.push(Ke)}
  /**
       * @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
       */
  !function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.Keyword=2]="Keyword",e[e.String=3]="String",e[e.Operator=4]="Operator",e[e.Number=5]="Number",e[e.Error=6]="Error"}(e.TokenType||(e.TokenType={}));var ga,_a=["var","let","as","null","undefined","true","false","if","else","this"],Ea=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new Ca(e),n=[],r=t.scanToken();null!=r;)n.push(r),r=t.scanToken();return n},e}();function xa(t,n){return new ga(t,e.TokenType.Character,n,String.fromCharCode(n))}function Sa(t,n){return new ga(t,e.TokenType.Operator,0,n)}var wa=new(ga=function(){function t(e,t,n,r){this.index=e,this.type=t,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==e.TokenType.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==e.TokenType.Number},t.prototype.isString=function(){return this.type==e.TokenType.String},t.prototype.isOperator=function(t){return this.type==e.TokenType.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==e.TokenType.Identifier},t.prototype.isKeyword=function(){return this.type==e.TokenType.Keyword},t.prototype.isKeywordLet=function(){return this.type==e.TokenType.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==e.TokenType.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==e.TokenType.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==e.TokenType.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==e.TokenType.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==e.TokenType.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==e.TokenType.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==e.TokenType.Error},t.prototype.toNumber=function(){return this.type==e.TokenType.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case e.TokenType.Character:case e.TokenType.Identifier:case e.TokenType.Keyword:case e.TokenType.Operator:case e.TokenType.String:case e.TokenType.Error:return this.strValue;case e.TokenType.Number:return this.numValue.toString();default:return null}},t}())(-1,e.TokenType.Character,0,""),Ca=function(){function t(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?Ko:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var e=this.input,t=this.length,n=this.peek,r=this.index;n<=Jo;){if(++r>=t){n=Ko;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(ba(n))return this.scanIdentifier();if(bs(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),bs(this.peek)?this.scanNumber(i):xa(i,46);case 40:case 41:case xs:case 125:case 91:case 93:case 44:case 58:case os:return this.scanCharacter(i,n);case ts:case Zo:return this.scanString();case 35:case ns:case rs:case 42:case is:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case as:return this.scanComplexOperator(i,String.fromCharCode(n),ss,"=");case 33:case ss:return this.scanComplexOperator(i,String.fromCharCode(n),ss,"=",ss,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case Ss:for(;Cs(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(e,t){return this.advance(),xa(e,t)},t.prototype.scanOperator=function(e,t){return this.advance(),Sa(e,t)},t.prototype.scanComplexOperator=function(e,t,n,r,i,o){this.advance();var s=t;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),Sa(e,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();Pa(this.peek);)this.advance();var n=this.input.substring(t,this.index);return _a.indexOf(n)>-1?function r(t,n){return new ga(t,e.TokenType.Keyword,0,n)}(t,n):function i(t,n){return new ga(t,e.TokenType.Identifier,0,n)}(t,n)},t.prototype.scanNumber=function(t){var n,r=this.index===t;for(this.advance();;){if(bs(this.peek));else if(46==this.peek)r=!1;else{if(101!=(n=this.peek)&&69!=n)break;if(this.advance(),Ma(this.peek)&&this.advance(),!bs(this.peek))return this.error("Invalid exponent",-1);r=!1}this.advance()}var i=this.input.substring(t,this.index);return function s(t,n){return new ga(t,e.TokenType.Number,n,"")}(t,r?function o(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return 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
       */(i):parseFloat(i))},t.prototype.scanString=function(){var t=this.index,n=this.peek;this.advance();for(var r="",i=this.index,o=this.input;this.peek!=n;)if(92==this.peek){r+=o.substring(i,this.index),this.advance();var s=void 0;if(this.peek=this.peek,117==this.peek){var a=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(a))return this.error("Invalid unicode escape [\\u"+a+"]",0);s=parseInt(a,16);for(var u=0;u<5;u++)this.advance()}else s=Aa(this.peek),this.advance();r+=String.fromCharCode(s),i=this.index}else{if(this.peek==Ko)return this.error("Unterminated quote",0);this.advance()}var p=o.substring(i,this.index);return this.advance(),function l(t,n){return new ga(t,e.TokenType.String,0,n)}(t,r+p)},t.prototype.error=function(t,n){var r=this.index+n;return function i(t,n){return new ga(t,e.TokenType.Error,0,n)}(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}();function ba(e){return ds<=e&&e<=Es||ls<=e&&e<=hs||e==fs||e==es}function Ta(e){if(0==e.length)return!1;var t=new Ca(e);if(!ba(t.peek))return!1;for(t.advance();t.peek!==Ko;){if(!Pa(t.peek))return!1;t.advance()}return!0}function Pa(e){return Ts(e)||bs(e)||e==fs||e==es}function Ma(e){return e==rs||e==ns}function Na(e){return e===ts||e===Zo||e===ws}function Aa(e){switch(e){case ms:return Xo;case vs:return $o;case ys:return Yo;case gs:return Qo;case _s:return Go;default:return e}}var Ia=function Ia(e,t,n){this.strings=e,this.expressions=t,this.offsets=n},ka=function ka(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n};function Oa(e){var t=Ut(e.start)+"([\\s\\S]*?)"+Ut(e.end);return new RegExp(t,"g")}var Ra=function(){function e(e){this._lexer=e,this.errors=[]}return e.prototype.parseAction=function(e,t,n){void 0===n&&(n=wi),this._checkNoInterpolation(e,t,n);var r=this._stripComments(e),i=this._lexer.tokenize(this._stripComments(e)),o=new Da(e,t,i,r.length,!0,this.errors,e.length-r.length).parseChain();return new go(o,e,t,this.errors)},e.prototype.parseBinding=function(e,t,n){void 0===n&&(n=wi);var r=this._parseBindingAst(e,t,n);return new go(r,e,t,this.errors)},e.prototype.parseSimpleBinding=function(e,t,n){void 0===n&&(n=wi);var r=this._parseBindingAst(e,t,n),i=La.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),e,t),new go(r,e,t,this.errors)},e.prototype._reportError=function(e,t,n,r){this.errors.push(new Qi(e,t,n,r))},e.prototype._parseBindingAst=function(e,t,n){var r=this._parseQuote(e,t);if(null!=r)return r;this._checkNoInterpolation(e,t,n);var i=this._stripComments(e),o=this._lexer.tokenize(i);return new Da(e,t,o,i.length,!1,this.errors,e.length-i.length).parseChain()},e.prototype._parseQuote=function(e,t){if(null==e)return null;var n=e.indexOf(":");if(-1==n)return null;var r=e.substring(0,n).trim();if(!Ta(r))return null;var i=e.substring(n+1);return new $i(new Xi(0,e.length),r,i,t)},e.prototype.parseTemplateBindings=function(e,t,n){var r=this._lexer.tokenize(t);return new Da(t,n,r,t.length,!1,this.errors,0).parseTemplateBindings(e)},e.prototype.parseInterpolation=function(e,t,n){void 0===n&&(n=wi);var r=this.splitInterpolation(e,t,n);if(null==r)return null;for(var i=[],o=0;o<r.expressions.length;++o){var s=r.expressions[o],a=this._stripComments(s),u=this._lexer.tokenize(a),p=new Da(e,t,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(p)}return new go(new lo(new Xi(0,null==e?0:e.length),r.strings,i),e,t,this.errors)},e.prototype.splitInterpolation=function(e,t,n){void 0===n&&(n=wi);var r=Oa(n),i=e.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,p=0;p<i.length;p++){var l=i[p];p%2==0?(o.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column "+this._findInterpolationErrorColumn(i,p,n)+" in",t),s.push("$implict"),a.push(u))}return new Ia(o,s,a)},e.prototype.wrapLiteralPrimitive=function(e,t){return new go(new ao(new Xi(0,null==e?0:e.length),e),e,t,this.errors)},e.prototype._stripComments=function(e){var t=this._commentStart(e);return null!=t?e.substring(0,t).trim():e},e.prototype._commentStart=function(e){for(var t=null,n=0;n<e.length-1;n++){var r=e.charCodeAt(n),i=e.charCodeAt(n+1);if(r===is&&i==is&&null==t)return n;t===r?t=null:null==t&&Na(r)&&(t=r)}return null},e.prototype._checkNoInterpolation=function(e,t,n){var r=Oa(n),i=e.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",e,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",t)},e.prototype._findInterpolationErrorColumn=function(e,t,n){for(var r="",i=0;i<t;i++)r+=i%2==0?e[i]:""+n.start+e[i]+n.end;return r.length},e}(),Da=function(){function t(e,t,n,r,i,o,s){this.input=e,this.location=t,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(e){var t=this.index+e;return t<this.tokens.length?this.tokens[t]:wa},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(e){return new Xi(e,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(e){this.optionalCharacter(e)||this.error("Missing expected "+String.fromCharCode(e))},t.prototype.optionalOperator=function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)},t.prototype.expectOperator=function(e){this.optionalOperator(e)||this.error("Missing expected operator "+e)},t.prototype.expectIdentifierOrKeyword=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var e=[],t=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(e.push(n),this.optionalCharacter(os))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(os););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==e.length?new Yi(this.span(t)):1==e.length?e[0]:new Zi(this.span(t),e)},t.prototype.parsePipe=function(){var e=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var t=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());e=new so(this.span(e.span.start),e,t,n)}while(this.optionalOperator("|"))}return e},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var e=this.inputIndex,t=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.input.substring(e,this.inputIndex);this.error("Conditional expression "+i+" requires all 3 expressions"),r=new Yi(this.span(e))}return new eo(this.span(e),t,n,r)}return t},t.prototype.parseLogicalOr=function(){for(var e=this.parseLogicalAnd();this.optionalOperator("||");){var t=this.parseLogicalAnd();e=new co(this.span(e.span.start),"||",e,t)}return e},t.prototype.parseLogicalAnd=function(){for(var e=this.parseEquality();this.optionalOperator("&&");){var t=this.parseEquality();e=new co(this.span(e.span.start),"&&",e,t)}return e},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==e.TokenType.Operator;){var n=this.next.strValue;switch(n){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();t=new co(this.span(t.span.start),n,t,r);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==e.TokenType.Operator;){var n=this.next.strValue;switch(n){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new co(this.span(t.span.start),n,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==e.TokenType.Operator;){var n=this.next.strValue;switch(n){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new co(this.span(t.span.start),n,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==e.TokenType.Operator;){var n=this.next.strValue;switch(n){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new co(this.span(t.span.start),n,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==e.TokenType.Operator){var t=this.inputIndex,n=this.next.strValue,r=void 0;switch(n){case"+":return this.advance(),r=this.parsePrefix(),new co(this.span(t),"-",r,new ao(new Xi(t,t),0));case"-":return this.advance(),r=this.parsePrefix(),new co(this.span(t),n,new ao(new Xi(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new ho(this.span(t),r)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var e=this.parsePrimary();;)if(this.optionalCharacter(46))e=this.parseAccessMemberOrMethodCall(e,!1);else if(this.optionalOperator("?."))e=this.parseAccessMemberOrMethodCall(e,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var t=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();e=new oo(this.span(e.span.start),e,t,n)}else e=new io(this.span(e.span.start),e,t)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),e=new yo(this.span(e.span.start),e,r)}else{if(!this.optionalOperator("!"))return e;e=new fo(this.span(e.span.start),e)}},t.prototype.parsePrimary=function(){var e=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}if(this.next.isKeywordNull())return this.advance(),new ao(this.span(e),null);if(this.next.isKeywordUndefined())return this.advance(),new ao(this.span(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new ao(this.span(e),!0);if(this.next.isKeywordFalse())return this.advance(),new ao(this.span(e),!1);if(this.next.isKeywordThis())return this.advance(),new Ji(this.span(e));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new uo(this.span(e),n)}if(this.next.isCharacter(xs))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Ji(this.span(e)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new ao(this.span(e),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new ao(this.span(e),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Yi(this.span(e))):(this.error("Unexpected token "+this.next),new Yi(this.span(e)))},t.prototype.parseExpressionList=function(e){var t=[];if(!this.next.isCharacter(e))do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.parseLiteralMap=function(){var e=[],t=[],n=this.inputIndex;if(this.expectCharacter(xs),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();e.push({key:i,quoted:r}),this.expectCharacter(58),t.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new po(this.span(n),e,t)},t.prototype.parseAccessMemberOrMethodCall=function(e,t){void 0===t&&(t=!1);var n=e.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return t?new mo(o,e,r,i):new vo(o,e,r,i)}if(t)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Yi(this.span(n))):new ro(this.span(n),e,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Yi(this.span(n));var s=this.parseConditional();return new no(this.span(n),e,r,s)}return new to(this.span(n),e,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var e=[];do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.expectTemplateBindingKey=function(){var e="",t=!1;do{e+=this.expectIdentifierOrKeywordOrString(),(t=this.optionalOperator("-"))&&(e+="-")}while(t);return e.toString()},t.prototype.parseTemplateBindings=function(e){var t=!0,n=[];do{var r=this.inputIndex,i=void 0,o=void 0,s=!1;t?(i=o=e,t=!1):((s=this.peekKeywordLet())&&this.advance(),i=this.expectTemplateBindingKey(),o=s?i:e+i[0].toUpperCase()+i.substring(1),this.optionalCharacter(58));var a=null,u=null;if(s)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs())this.advance(),a=i,o=this.expectTemplateBindingKey(),s=!0;else if(this.next!==wa&&!this.peekKeywordLet()){var p=this.inputIndex,l=this.parsePipe(),c=this.input.substring(p-this.offset,this.inputIndex-this.offset);u=new go(l,c,this.location,this.errors)}if(n.push(new _o(this.span(r),o,s,a,u)),this.peekKeywordAs()&&!s){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();n.push(new _o(this.span(h),f,!0,o,null))}this.optionalCharacter(os)||this.optionalCharacter(44)}while(this.index<this.tokens.length);return new ka(n,[],this.errors)},t.prototype.error=function(e,t){void 0===t&&(t=null),this.errors.push(new Qi(e,this.input,this.locationText(t),this.location)),this.skip()},t.prototype.locationText=function(e){return void 0===e&&(e=null),null==e&&(e=this.index),e<this.tokens.length?"at column "+(this.tokens[e].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var e=this.next;this.index<this.tokens.length&&!e.isCharacter(os)&&(this.rparensExpected<=0||!e.isCharacter(41))&&(this.rbracesExpected<=0||!e.isCharacter(125))&&(this.rbracketsExpected<=0||!e.isCharacter(93));)this.next.isError()&&this.errors.push(new Qi(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next},t}(),La=function(){function e(){this.errors=[]}return e.check=function(t){var n=new e;return t.visit(n),n.errors},e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitPropertyRead=function(e,t){},e.prototype.visitPropertyWrite=function(e,t){},e.prototype.visitSafePropertyRead=function(e,t){},e.prototype.visitMethodCall=function(e,t){},e.prototype.visitSafeMethodCall=function(e,t){},e.prototype.visitFunctionCall=function(e,t){},e.prototype.visitLiteralArray=function(e,t){this.visitAll(e.expressions)},e.prototype.visitLiteralMap=function(e,t){this.visitAll(e.values)},e.prototype.visitBinary=function(e,t){},e.prototype.visitPrefixNot=function(e,t){},e.prototype.visitNonNullAssert=function(e,t){},e.prototype.visitConditional=function(e,t){},e.prototype.visitPipe=function(e,t){this.errors.push("pipes")},e.prototype.visitKeyedRead=function(e,t){},e.prototype.visitKeyedWrite=function(e,t){},e.prototype.visitAll=function(e){var t=this;return e.map(function(e){return e.visit(t)})},e.prototype.visitChain=function(e,t){},e.prototype.visitQuote=function(e,t){},e}(),Fa=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}(),Ba=function(){function e(e,t,n){this.value=e,this.sourceSpan=t,this.i18n=n}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),Va=function(){function e(e,t,n,r,i,o){this.switchValue=e,this.type=t,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i,this.i18n=o}return e.prototype.visit=function(e,t){return e.visitExpansion(this,t)},e}(),ja=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}(),Ua=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,t){return e.visitAttribute(this,t)},e}(),qa=function(){function e(e,t,n,r,i,o,s){void 0===i&&(i=null),void 0===o&&(o=null),this.name=e,this.attrs=t,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o,this.i18n=s}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),Ha=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitComment(this,t)},e}();function Wa(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 za,Ka=function(){function e(){}return e.prototype.visitElement=function(e,t){this.visitChildren(t,function(t){t(e.attrs),t(e.children)})},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){return this.visitChildren(t,function(t){t(e.cases)})},e.prototype.visitExpansionCase=function(e,t){},e.prototype.visitChildren=function(e,t){var n=[],r=this;return t(function i(t){t&&n.push(Wa(r,t,e))}),[].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_VALUE=12]="ATTR_VALUE",e[e.DOC_TYPE=13]="DOC_TYPE",e[e.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",e[e.EOF=19]="EOF"}(za||(za={}));var Qa=function ga(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n},Xa=function(e){function t(t,n,r){var i=e.call(this,r,t)||this;return i.tokenType=n,i}return n(t,e),t}(Is),Ga=function Ga(e,t){this.tokens=e,this.errors=t},$a=/\r\n?/g;function Ya(e){return'Unexpected character "'+(e===Ko?"EOF":String.fromCharCode(e))+'"'}function Ja(e){return'Unknown entity "'+e+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}var Za=function Za(e){this.error=e},eu=function(){function t(e,t,n){this._file=e,this._getTagDefinition=t,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||wi,this._input=e.content,this._length=e.content.length,this._advance()}return t.prototype._processCarriageReturns=function(e){return e.replace($a,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Ko;){var e=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(rs)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(is)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof Za))throw e;this.errors.push(e.error)}}return this._beginToken(za.EOF),this._endToken([]),new Ga(function t(e){for(var t=[],n=void 0,r=0;r<e.length;r++){var i=e[r];n&&n.type==za.TEXT&&i.type==za.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):t.push(n=i)}return 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
       */(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(ou(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(function e(t){return t===ss||Ts(t)||bs(t)}(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new Ms(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(e,t){return void 0===e&&(e=this._getLocation()),void 0===t&&(t=this._getLocation()),new As(e,t)},t.prototype._beginToken=function(e,t){void 0===t&&(t=this._getLocation()),this._currentTokenStart=t,this._currentTokenType=e},t.prototype._endToken=function(e,t){if(void 0===t&&(t=this._getLocation()),null===this._currentTokenStart)throw new Xa("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._getSpan(t,t));if(null===this._currentTokenType)throw new Xa("Programming error - attempted to end a token which has no token type",null,this._getSpan(this._currentTokenStart,t));var n=new Qa(this._currentTokenType,e,new As(this._currentTokenStart,t));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Xa(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new Za(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Ya(Ko),this._getSpan());this._peek===Xo?(this._line++,this._column=0):this._peek!==Xo&&this._peek!==Yo&&this._column++,this._index++,this._peek=this._index>=this._length?Ko:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ko:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(e){return this._peek===e&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(e){return!!function t(e,n){return su(e)==su(n)}(this._peek,e)&&(this._advance(),!0)},t.prototype._requireCharCode=function(e){var t=this._getLocation();if(!this._attemptCharCode(e))throw this._createError(Ya(this._peek),this._getSpan(t,t))},t.prototype._attemptStr=function(e){var t=e.length;if(this._index+t>this._length)return!1;for(var n=this._savePosition(),r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(e){for(var t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0},t.prototype._requireStr=function(e){var t=this._getLocation();if(!this._attemptStr(e))throw this._createError(Ya(this._peek),this._getSpan(t))},t.prototype._attemptCharCodeUntilFn=function(e){for(;!e(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(e,t){var n=this._getLocation();if(this._attemptCharCodeUntilFn(e),this._index-n.offset<t)throw this._createError(Ya(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(e){for(;this._peek!==e;)this._advance()},t.prototype._readChar=function(e){if(e&&38===this._peek)return this._decodeEntity();var t=this._index;return this._advance(),this._input[t]},t.prototype._decodeEntity=function(){var e=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var t=this._savePosition();if(this._attemptCharCodeUntilFn(iu),this._peek!=os)return this._restorePosition(t),"&";this._advance();var n=this._input.substring(e.offset+1,this._index-1),r=d[n];if(!r)throw this._createError(Ja(n),this._getSpan(e));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(ru),this._peek!=os)throw this._createError(Ya(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(t){var u=this._input.substring(e.offset+1,this._index-1);throw this._createError(Ja(u),this._getSpan(e))}},t.prototype._consumeRawText=function(e,t,n){var r,i=this._getLocation();this._beginToken(e?za.ESCAPABLE_RAW_TEXT:za.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(t)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==t;)o.push(this._readChar(e));return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(e){var t=this;this._beginToken(za.COMMENT_START,e),this._requireCharCode(rs),this._endToken([]);var n=this._consumeRawText(!1,rs,function(){return t._attemptStr("->")});this._beginToken(za.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(e){var t=this;this._beginToken(za.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return t._attemptStr("]>")});this._beginToken(za.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(e){this._beginToken(za.DOC_TYPE,e),this._attemptUntilChar(as),this._advance(),this._endToken([this._input.substring(e.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var e,t,n=this._index,r=null;58!==this._peek&&!(((e=this._peek)<ds||Es<e)&&(e<ls||hs<e)&&(e<us||e>ps));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),t=this._index):t=n,this._requireCharCodeUntilFn(nu,this._index===t?1:0),[r,this._input.substring(t,this._index)]},t.prototype._consumeTagOpen=function(t){var n,r,i=this._savePosition();try{if(!Ts(this._peek))throw this._createError(Ya(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),r=(n=this._input.substring(o,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(tu);this._peek!==is&&this._peek!==as;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(tu),this._attemptCharCode(ss)&&(this._attemptCharCodeUntilFn(tu),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(tu);this._consumeTagOpenEnd()}catch(e){if(e instanceof Za)return this._restorePosition(i),this._beginToken(za.TEXT,t),void this._endToken(["<"]);throw e}var s=this._getTagDefinition(n).contentType;s===e.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):s===e.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},t.prototype._consumeRawTextWithTagClose=function(e,t){var n=this,r=this._consumeRawText(t,60,function(){return!!n._attemptCharCode(is)&&(n._attemptCharCodeUntilFn(tu),!!n._attemptStrCaseInsensitive(e)&&(n._attemptCharCodeUntilFn(tu),n._attemptCharCode(as)))});this._beginToken(za.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,e])},t.prototype._consumeTagOpenStart=function(e){this._beginToken(za.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeName=function(){this._beginToken(za.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeValue=function(){var e;if(this._beginToken(za.ATTR_VALUE),this._peek===ts||this._peek===Zo){var t=this._peek;this._advance();for(var n=[];this._peek!==t;)n.push(this._readChar(!0));e=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(nu,1),e=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(e)])},t.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(is)?za.TAG_OPEN_END_VOID:za.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(as),this._endToken([])},t.prototype._consumeTagClose=function(e){this._beginToken(za.TAG_CLOSE,e),this._attemptCharCodeUntilFn(tu);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(tu),this._requireCharCode(as),this._endToken(t)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(za.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(xs),this._endToken([]),this._expansionCaseStack.push(za.EXPANSION_FORM_START),this._beginToken(za.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(tu),this._beginToken(za.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(tu)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(za.EXPANSION_CASE_VALUE,this._getLocation());var e=this._readUntil(xs).trim();this._endToken([e],this._getLocation()),this._attemptCharCodeUntilFn(tu),this._beginToken(za.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(xs),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(tu),this._expansionCaseStack.push(za.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(za.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(tu),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(za.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(za.TEXT,e);var t=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(t.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(t.push(this._interpolationConfig.end),this._inInterpolation=!1):t.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(t.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Ko)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(ou(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(e){var t=this._index;return this._attemptUntilChar(e),this._input.substring(t,this._index)},t.prototype._restorePosition=function(e){this._peek=e[0],this._index=e[1],this._column=e[2],this._line=e[3];var t=e[4];t<this.tokens.length&&(this.tokens=this.tokens.slice(0,t))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===za.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===za.EXPANSION_FORM_START},t}();function tu(e){return!Cs(e)||e===Ko}function nu(e){return Cs(e)||e===as||e===is||e===ts||e===Zo||e===ss}function ru(e){return e==os||e==Ko||!function t(e){return e>=ds&&e<=vs||e>=ls&&e<=cs||bs(e)}(e)}function iu(e){return e==os||e==Ko||!Ts(e)}function ou(e,t,n){var r=!!n&&e.indexOf(n.start,t)==t;return e.charCodeAt(t)==xs&&!r}function su(e){return e>=ds&&e<=Es?e-ds+ls:e}var au=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.elementName=t,i}return n(t,e),t.create=function(e,n,r){return new t(e,n,r)},t}(Is),uu=function uu(e,t){this.rootNodes=e,this.errors=t},pu=function(){function e(e){this.getTagDefinition=e}return e.prototype.parse=function(e,t,n){var r=function i(e,t,n,r){return void 0===r&&(r={}),new eu(new Ns(e,t),n,r).tokenize()}(e,t,this.getTagDefinition,n),o=new lu(r.tokens,this.getTagDefinition).build();return new uu(o.rootNodes,r.errors.concat(o.errors))},e}(),lu=function(){function e(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return e.prototype.build=function(){for(;this._peek.type!==za.EOF;)this._peek.type===za.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===za.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===za.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===za.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===za.TEXT||this._peek.type===za.RAW_TEXT||this._peek.type===za.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===za.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new uu(this._rootNodes,this._errors)},e.prototype._advance=function(){var e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e},e.prototype._advanceIf=function(e){return this._peek.type===e?this._advance():null},e.prototype._consumeCdata=function(e){this._consumeText(this._advance()),this._advanceIf(za.CDATA_END)},e.prototype._consumeComment=function(e){var t=this._advanceIf(za.RAW_TEXT);this._advanceIf(za.COMMENT_END);var n=null!=t?t.parts[0].trim():null;this._addToParent(new Ha(n,e.sourceSpan))},e.prototype._consumeExpansion=function(e){for(var t=this._advance(),n=this._advance(),r=[];this._peek.type===za.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===za.EXPANSION_FORM_END){var o=new As(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Va(t.parts[0],n.parts[0],r,o,t.sourceSpan)),this._advance()}else this._errors.push(au.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},e.prototype._parseExpansionCase=function(){var t=this._advance();if(this._peek.type!==za.EXPANSION_CASE_EXP_START)return this._errors.push(au.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Qa(za.EOF,[],i.sourceSpan));var o=new e(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new As(t.sourceSpan.start,i.sourceSpan.end),a=new As(n.sourceSpan.start,i.sourceSpan.end);return new ja(t.parts[0],o.rootNodes,s,t.sourceSpan,a)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[za.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==za.EXPANSION_FORM_START&&this._peek.type!==za.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===za.EXPANSION_CASE_EXP_END){if(!cu(n,za.EXPANSION_CASE_EXP_START))return this._errors.push(au.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===za.EXPANSION_FORM_END){if(!cu(n,za.EXPANSION_FORM_START))return this._errors.push(au.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===za.EOF)return this._errors.push(au.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}},e.prototype._consumeText=function(e){var t=e.parts[0];if(t.length>0&&"\n"==t[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(t=t.substring(1))}t.length>0&&this._addToParent(new Ba(t,e.sourceSpan))},e.prototype._closeVoidElement=function(){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()},e.prototype._consumeStartTag=function(e){for(var t=e.parts[0],n=e.parts[1],r=[];this._peek.type===za.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),o=!1;if(this._peek.type===za.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==h(i)||s.isVoid||this._errors.push(au.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===za.TAG_OPEN_END&&(this._advance(),o=!1);var a=new As(e.sourceSpan.start,this._peek.sourceSpan.start),u=new qa(i,r,[],a,a,void 0);this._pushElement(u),o&&(this._popElement(i),u.endSourceSpan=a)},e.prototype._pushElement=function(e){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop();var n=this.getTagDefinition(e.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new qa(n.parentToAdd,[],[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(e),this._elementStack.push(e)},e.prototype._consumeEndTag=function(e){var t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),this.getTagDefinition(t).isVoid?this._errors.push(au.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"')):this._popElement(t)||this._errors.push(au.create(t,e.sourceSpan,'Unexpected closing tag "'+t+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags'))},e.prototype._popElement=function(e){for(var t=this._elementStack.length-1;t>=0;t--){var n=this._elementStack[t];if(n.name==e)return this._elementStack.splice(t,this._elementStack.length-t),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},e.prototype._consumeAttr=function(e){var t=f(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===za.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new Ua(t,r,new As(e.sourceSpan.start,n),i)},e.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},e.prototype._getParentElementSkippingContainers=function(){for(var e=null,t=this._elementStack.length-1;t>=0;t--){if(!p(this._elementStack[t].name))return{parent:this._elementStack[t],container:e};e=this._elementStack[t]}return{parent:null,container:e}},e.prototype._addToParent=function(e){var t=this._getParentElement();null!=t?t.children.push(e):this._rootNodes.push(e)},e.prototype._insertBeforeContainer=function(e,t,n){if(t){if(e){var r=e.children.indexOf(t);e.children[r]=n}else this._rootNodes.push(n);n.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,n)}else this._addToParent(n),this._elementStack.push(n)},e.prototype._getElementFullName=function(e,t,n){return null==e&&null==(e=this.getTagDefinition(t).implicitNamespacePrefix)&&null!=n&&(e=h(n.name)),f(e,t)},e}();function cu(e,t){return e.length>0&&e[e.length-1]===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 hu=function(e){function t(){return e.call(this,_)||this}return n(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(pu),fu=new Set(["pre","template","textarea","script","style"]),du=" \f\n\r\t\v ᠎ - \u2028\u2029  　\ufeff",vu=new RegExp("[^"+du+"]"),mu=new RegExp("["+du+"]{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 yu(e){return e.replace(new RegExp(v,"g")," ")}var gu,_u=function(){function e(){}return e.prototype.visitElement=function(e,t){return fu.has(e.name)||function n(e){return e.some(function(e){return"ngPreserveWhitespaces"===e.name})}(e.attrs)?new qa(e.name,Wa(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new qa(e.name,e.attrs,Wa(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)},e.prototype.visitAttribute=function(e,t){return"ngPreserveWhitespaces"!==e.name?e:null},e.prototype.visitText=function(e,t){return e.value.match(vu)?new Ba(yu(e.value).replace(mu," "),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 Eu(e){return new uu(Wa(new _u,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
       */function xu(){return gu||(gu={},Su(D.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Su(D.STYLE,["*|style"]),Su(D.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Su(D.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),gu}function Su(e,t){var n,r;try{for(var i=o(t),s=i.next();!s.done;s=i.next())gu[s.value.toLowerCase()]=e}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}
  /**
       * @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 wu,Cu="boolean",bu="number",Tu="string",Pu="object",Mu=["[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,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],Nu={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Au=function(e){function t(){var t=e.call(this)||this;return t._schema={},Mu.forEach(function(e){var n={},r=s(e.split("|"),2),i=r[0],o=r[1].split(","),a=s(i.split("^"),2),u=a[1];a[0].split(",").forEach(function(e){return t._schema[e.toLowerCase()]=n});var p=u&&t._schema[u.toLowerCase()];p&&Object.keys(p).forEach(function(e){n[e]=p[e]}),o.forEach(function(e){if(e.length>0)switch(e[0]){case"*":break;case"!":n[e.substring(1)]=Cu;break;case"#":n[e.substring(1)]=bu;break;case"%":n[e.substring(1)]=Pu;break;default:n[e]=Tu}})}),t}return n(t,e),t.prototype.hasProperty=function(e,t,n){if(n.some(function(e){return e.name===K.name}))return!0;if(e.indexOf("-")>-1){if(p(e)||l(e))return!1;if(n.some(function(e){return e.name===z.name}))return!0}return!!(this._schema[e.toLowerCase()]||this._schema.unknown)[t]},t.prototype.hasElement=function(e,t){if(t.some(function(e){return e.name===K.name}))return!0;if(e.indexOf("-")>-1){if(p(e)||l(e))return!0;if(t.some(function(e){return e.name===z.name}))return!0}return!!this._schema[e.toLowerCase()]},t.prototype.securityContext=function(e,t,n){n&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();var r=xu()[e+"|"+t];return r||(r=xu()["*|"+t])||D.NONE},t.prototype.getMappedPropName=function(e){return Nu[e]||e},t.prototype.getDefaultComponentElementName=function(){return"ng-component"},t.prototype.validateProperty=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=...\nIf '"+e+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},t.prototype.validateAttribute=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=..."}:{error:!1}},t.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},t.prototype.normalizeAnimationStyleProperty=function(e){return function t(e){return e.replace(Pt,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()})}(e)},t.prototype.normalizeAnimationStyleValue=function(e,t,n){var r="",i=n.toString().trim(),o=null;if(function s(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!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
       */(e)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&(o="Please provide a CSS unit value for "+t+":"+n)}return{error:o,value:i+r}},t}(wu=function wu(){}),Iu=function(){function t(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 o=new Map;r.forEach(function(e){return o.set(e.name,e)}),this.pipesByName=o}}return Object.defineProperty(t.prototype,"interpolationConfig",{get:function(){return this._interpolationConfig},enumerable:!0,configurable:!0}),t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createBoundHostProperties=function(e,t){var n=this;if(e.hostProperties){var r=[];return Object.keys(e.hostProperties).forEach(function(i){var o=e.hostProperties[i];"string"==typeof o?n.parsePropertyBinding(i,o,!0,t,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},t.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)})},t.prototype.createDirectiveHostEventAsts=function(e,t){var n=this;if(e.hostListeners){var r=[];return Object.keys(e.hostListeners).forEach(function(i){var o=e.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,t,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},t.prototype.parseInterpolation=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseInterpolation(e,n,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.prototype.parseInlineTemplateBinding=function(e,t,n,r,i,o){for(var s=this._parseTemplateBindings(e,t,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new To(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,n,r){var i=this,o=r.start.toString();try{var s=this._exprParser.parseTemplateBindings(t,n,o);return this._reportExpressionParserErrors(s.errors,r),s.templateBindings.forEach(function(e){e.expression&&i._checkPipes(e.expression,r)}),s.warnings.forEach(function(t){i._reportError(t,r,e.ParseErrorLevel.WARNING)}),s.templateBindings}catch(e){return this._reportError(""+e,r),[]}},t.prototype.parseLiteralAttr=function(t,n,r,i,o){Ou(t)?(t=t.substring(1),n&&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.',r,e.ParseErrorLevel.ERROR),this._parseAnimation(t,n,r,i,o)):o.push(new Co(t,this._exprParser.wrapLiteralPrimitive(n,""),e.ParsedPropertyType.LITERAL_ATTR,r))},t.prototype.parsePropertyBinding=function(e,t,n,r,i,o){var s=!1;e.startsWith("animate-")?(s=!0,e=e.substring("animate-".length)):Ou(e)&&(s=!0,e=e.substring(1)),s?this._parseAnimation(e,t,r,i,o):this._parsePropertyAst(e,this._parseBinding(t,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(e,t,n,r,i){var o=this.parseInterpolation(t,n);return!!o&&(this._parsePropertyAst(e,o,n,r,i),!0)},t.prototype._parsePropertyAst=function(t,n,r,i,o){i.push([t,n.source]),o.push(new Co(t,n,e.ParsedPropertyType.DEFAULT,r))},t.prototype._parseAnimation=function(t,n,r,i,o){var s=this._parseBinding(n||"undefined",!1,r);i.push([t,s.source]),o.push(new Co(t,s,e.ParsedPropertyType.ANIMATION,r))},t.prototype._parseBinding=function(e,t,n){var r=(n&&n.start||"(unknown)").toString();try{var i=t?this._exprParser.parseSimpleBinding(e,r,this._interpolationConfig):this._exprParser.parseBinding(e,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(e){return this._reportError(""+e,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createBoundElementProperty=function(e,t){if(t.isAnimation)return new Po(t.name,4,D.NONE,t.expression,null,t.sourceSpan);var n=null,r=void 0,i=null,o=t.name.split("."),s=void 0;if(o.length>1)if("attr"==o[0]){this._validatePropertyOrAttributeName(i=o[1],t.sourceSpan,!0),s=Ru(this._schemaRegistry,e,i,!0);var a=i.indexOf(":");a>-1&&(i=f(i.substring(0,a),i.substring(a+1))),r=1}else"class"==o[0]?(i=o[1],r=2,s=[D.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=3,s=[D.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(t.name),s=Ru(this._schemaRegistry,e,i,!1),r=0,this._validatePropertyOrAttributeName(i,t.sourceSpan,!1)),new Po(i,r,s[0],t.expression,n,t.sourceSpan)},t.prototype.parseEvent=function(e,t,n,r,i){Ou(e)?(e=e.substr(1),this._parseAnimationEvent(e,t,n,i)):this._parseRegularEvent(e,t,n,r,i)},t.prototype._parseAnimationEvent=function(e,t,n,r){var i=function o(e,t){return Nt(e,".",t)}(e,[e,""]),s=i[0],a=i[1].toLowerCase();if(a)switch(a){case"start":case"done":var u=this._parseAction(t,n);r.push(new bo(s,a,1,u,n));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+s+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+s+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseRegularEvent=function(e,t,n,r,i){var o=s(Mt(e,[null,e]),2),a=o[0],u=o[1],p=this._parseAction(t,n);r.push([e,p.source]),i.push(new bo(u,a,0,p,n))},t.prototype._parseAction=function(e,t){var n=(t&&t.start||"(unknown").toString();try{var r=this._exprParser.parseAction(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),!r||r.ast instanceof Yi?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,t),r)}catch(e){return this._reportError(""+e,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this.errors.push(new Is(n,t,r))},t.prototype._reportExpressionParserErrors=function(e,t){var n,r;try{for(var i=o(e),s=i.next();!s.done;s=i.next())this._reportError(s.value.message,t)}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._checkPipes=function(e,t){var n=this;if(e&&this.pipesByName){var r=new ku;e.visit(r),r.pipes.forEach(function(e,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new As(t.start.moveBy(e.span.start),t.start.moveBy(e.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,n,r){var i=r?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);i.error&&this._reportError(i.msg,n,e.ParseErrorLevel.ERROR)},t}(),ku=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pipes=new Map,t}return n(t,e),t.prototype.visitPipe=function(e,t){return this.pipes.set(e.name,e),e.exp.visit(this),this.visitAll(e.args,t),null},t}(xo);
  /**
       * @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 Ou(e){return"@"==e[0]}function Ru(e,t,n,r){var i=[];return w.parse(t).forEach(function(t){var o=t.element?[t.element]:e.allKnownElementNames(),s=new Set(t.notSelectors.filter(function(e){return e.isElementSelector()}).map(function(e){return e.element})),u=o.filter(function(e){return!s.has(e)});i.push.apply(i,a(u.map(function(t){return e.securityContext(t,n,r)})))}),0===i.length?[D.NONE]:Array.from(new Set(i)).sort()}
  /**
       * @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 Du=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e){return e.visitText(this)},e}(),Lu=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}(),Fu=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}(),Bu=function(){function e(e,t,n,r,i,o,s){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.i18n=s}return e.fromBoundElementProperty=function(t,n){return new e(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan,n)},e.prototype.visit=function(e){return e.visitBoundAttribute(this)},e}(),Vu=function(){function e(e,t,n,r,i,o){this.name=e,this.type=t,this.handler=n,this.target=r,this.phase=i,this.sourceSpan=o}return e.fromParsedEvent=function(t){return new e(t.name,t.type,t.handler,0===t.type?t.targetOrPhase:null,1===t.type?t.targetOrPhase:null,t.sourceSpan)},e.prototype.visit=function(e){return e.visitBoundEvent(this)},e}(),ju=function(){function e(e,t,n,r,i,o,s,a,u,p){this.name=e,this.attributes=t,this.inputs=n,this.outputs=r,this.children=i,this.references=o,this.sourceSpan=s,this.startSourceSpan=a,this.endSourceSpan=u,this.i18n=p}return e.prototype.visit=function(e){return e.visitElement(this)},e}(),Uu=function(){function e(e,t,n,r,i,o,s,a,u,p,l){this.tagName=e,this.attributes=t,this.inputs=n,this.outputs=r,this.children=i,this.references=o,this.variables=s,this.sourceSpan=a,this.startSourceSpan=u,this.endSourceSpan=p,this.i18n=l}return e.prototype.visit=function(e){return e.visitTemplate(this)},e}(),qu=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}(),Hu=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitVariable(this)},e}(),Wu=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitReference(this)},e}(),zu=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}();function Ku(e,t){var n,r,i,s,a=[];if(e.visit)try{for(var u=o(t),p=u.next();!p.done;p=u.next())var l=e.visit(f=p.value)||f.visit(e)}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}else try{for(var c=o(t),h=c.next();!h.done;h=c.next()){var f;(l=(f=h.value).visit(e))&&a.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 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
       */var Qu=function Qu(e,t){this.style=e,this.styleUrls=t};function Xu(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(Ju);return null===t||"package"==t[1]||"asset"==t[1]}var Gu,$u=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Yu=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,Ju=/^([^:/?#]+):/,Zu="select",ep="link",tp="rel",np="href",rp="stylesheet",ip="style",op="script",sp="ngNonBindable",ap="ngProjectAs";function up(e){var t=null,n=null,r=null,i=!1,o="";e.attrs.forEach(function(e){var s=e.name.toLowerCase();s==Zu?t=e.value:s==np?n=e.value:s==tp?r=e.value:e.name==sp?i=!0:e.name==ap&&e.value.length>0&&(o=e.value)}),t=function s(e){return null===e||0===e.length?"*":e}
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */(t);var a=e.name.toLowerCase(),u=Gu.OTHER;return l(a)?u=Gu.NG_CONTENT:a==ip?u=Gu.STYLE:a==op?u=Gu.SCRIPT:a==ep&&r==rp&&(u=Gu.STYLESHEET),new pp(u,t,n,i,o)}!function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(Gu||(Gu={}));var pp=function pp(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i},lp=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;function cp(t,n){var r=new fp(n),i=Wa(r,t),o=n.errors.concat(r.errors),s=o.filter(function(t){return t.level===e.ParseErrorLevel.ERROR});if(s.length>0)throw Bt("Template parse errors:\n"+s.join("\n"),s);return{nodes:i,errors:o}}var hp,fp=function(){function t(e){this.bindingParser=e,this.errors=[]}return t.prototype.visitElement=function(e){var t,n,r=this,i=up(e);if(i.type===Gu.SCRIPT||i.type===Gu.STYLE)return null;if(i.type===Gu.STYLESHEET&&Xu(i.hrefAttr))return null;var s=c(e.name),u=[],p=[],l=[],h=[],f=[],d={},v=[],m=[],y=!1;try{for(var g=o(e.attrs),_=g.next();!_.done;_=g.next()){var E=_.value,x=!1,S=vp(E.name),w=!1;if(E.i18n&&(d[E.name]=E.i18n),S.startsWith("*")){y&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",E.sourceSpan),w=!0,y=!0;var C=E.value,b=S.substring("*".length),T=[];this.bindingParser.parseInlineTemplateBinding(b,C,E.sourceSpan,[],v,T),m.push.apply(m,a(T.map(function(e){return new Hu(e.name,e.value,e.sourceSpan)})))}else x=this.parseAttribute(s,E,[],u,p,l,h);x||w||f.push(this.visitAttribute(E))}}catch(e){t={error:e}}finally{try{_&&!_.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}var P,M=Wa(i.nonBindable?dp:this,e.children);if(i.type===Gu.NG_CONTENT){e.children&&!e.children.every(yp)&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);var N=i.selectAttr,A=e.attrs.map(function(e){return r.visitAttribute(e)});P=new qu(N,A,e.sourceSpan,e.i18n)}else s?(A=this.extractAttributes(e.name,u,d),P=new Uu(e.name,f,A.bound,p,M,h,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)):(A=this.extractAttributes(e.name,u,d),P=new ju(e.name,f,A.bound,p,M,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n));return y&&(A=this.extractAttributes("ng-template",v,d),P=new Uu(P.name,A.literal,A.bound,[],[P],[],m,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)),P},t.prototype.visitAttribute=function(e){return new Fu(e.name,e.value,e.sourceSpan,e.valueSpan,e.i18n)},t.prototype.visitText=function(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.i18n)},t.prototype.visitExpansion=function(e){var t=this,n=e.i18n;if(!n)return null;var r={},i={};return Object.keys(n.placeholders).forEach(function(o){var s=n.placeholders[o];if(o.startsWith("VAR_")){var a=t.bindingParser.interpolationConfig;r[o]=t._visitTextWithInterpolation(""+a.start+s+a.end,e.sourceSpan)}else i[o]=t._visitTextWithInterpolation(s,e.sourceSpan)}),new zu(r,i,e.sourceSpan,n)},t.prototype.visitExpansionCase=function(e){return null},t.prototype.visitComment=function(e){return null},t.prototype.extractAttributes=function(e,t,n){var r=this,i=[],o=[];return t.forEach(function(t){var s=n[t.name];if(t.isLiteral)o.push(new Fu(t.name,t.expression.source||"",t.sourceSpan,void 0,s));else{var a=r.bindingParser.createBoundElementProperty(e,t);i.push(Bu.fromBoundElementProperty(a,s))}}),{bound:i,literal:o}},t.prototype.parseAttribute=function(e,t,n,r,i,o,s){var a=vp(t.name),u=t.value,p=t.sourceSpan,l=a.match(lp),c=!1;if(l){if(c=!0,null!=l[1])this.bindingParser.parsePropertyBinding(l[7],u,!1,p,n,r);else if(l[2])e?this.parseVariable(l[7],u,p,o):this.reportError('"let-" is only supported on ng-template elements.',p);else if(l[3])this.parseReference(l[7],u,p,s);else if(l[4])this.bindingParser.parseEvent(l[7],u,p,n,h=[]),mp(h,i);else if(l[5])this.bindingParser.parsePropertyBinding(l[7],u,!1,p,n,r),this.parseAssignmentEvent(l[7],u,p,n,i);else if(l[6])this.bindingParser.parseLiteralAttr(a,u,p,n,r);else if(l[8])this.bindingParser.parsePropertyBinding(l[8],u,!1,p,n,r),this.parseAssignmentEvent(l[8],u,p,n,i);else if(l[9])this.bindingParser.parsePropertyBinding(l[9],u,!1,p,n,r);else if(l[10]){var h;this.bindingParser.parseEvent(l[10],u,p,n,h=[]),mp(h,i)}}else c=this.bindingParser.parsePropertyInterpolation(a,u,p,n,r);return c},t.prototype._visitTextWithInterpolation=function(e,t,n){var r=yu(e),i=this.bindingParser.parseInterpolation(r,t);return i?new Lu(i,t,n):new Du(r,t)},t.prototype.parseVariable=function(e,t,n,r){e.indexOf("-")>-1&&this.reportError('"-" is not allowed in variable names',n),r.push(new Hu(e,t,n))},t.prototype.parseReference=function(e,t,n,r){e.indexOf("-")>-1&&this.reportError('"-" is not allowed in reference names',n),r.push(new Wu(e,t,n))},t.prototype.parseAssignmentEvent=function(e,t,n,r,i){var o=[];this.bindingParser.parseEvent(e+"Change",t+"=$event",n,r,o),mp(o,i)},t.prototype.reportError=function(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this.errors.push(new Is(n,t,r))},t}(),dp=new(function(){function e(){}return e.prototype.visitElement=function(e){var t=up(e);if(t.type===Gu.SCRIPT||t.type===Gu.STYLE||t.type===Gu.STYLESHEET)return null;var n=Wa(this,e.children,null);return new ju(e.name,Wa(this,e.attrs),[],[],n,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e){return null},e.prototype.visitAttribute=function(e){return new Fu(e.name,e.value,e.sourceSpan,void 0,e.i18n)},e.prototype.visitText=function(e){return new Du(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e){return null},e.prototype.visitExpansionCase=function(e){return null},e}());function vp(e){return/^data-/i.test(e)?e.substring(5):e}function mp(e,t){t.push.apply(t,a(e.map(function(e){return Vu.fromParsedEvent(e)})))}function yp(e){return e instanceof Ba&&0==e.value.trim().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(e){e[e.ELEMENT=0]="ELEMENT",e[e.TEMPLATE=1]="TEMPLATE"}(hp||(hp={}));var gp=function(){function e(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=null),this.index=e,this.ref=t,this.level=n,this.templateIndex=r,this.meta=i,this.registry=o,this.bindings=new Set,this.placeholders=new Map,this._unresolvedCtxCount=0,this._registry=o||function s(){return{getUniqueId:function e(t){void 0===t&&(t=0);var n=t;return function(){return n++}}(),icus:new Map}}(),this.id=this._registry.getUniqueId()}return e.prototype.appendTag=function(e,t,n,r){t.isVoid&&r||Wr(this.placeholders,t.isVoid||!r?t.startName:t.closeName,{type:e,index:n,ctx:this.id,isVoid:t.isVoid,closed:r})},Object.defineProperty(e.prototype,"icus",{get:function(){return this._registry.icus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return 0===this.level},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isResolved",{get:function(){return 0===this._unresolvedCtxCount},enumerable:!0,configurable:!0}),e.prototype.getSerializedPlaceholders=function(){var e=new Map;return this.placeholders.forEach(function(t,n){return e.set(n,t.map(Sp))}),e},e.prototype.appendBinding=function(e){this.bindings.add(e)},e.prototype.appendIcu=function(e,t){Wr(this._registry.icus,e,t)},e.prototype.appendBoundText=function(e){var t=this;zr(e,this.bindings.size,this.id).forEach(function(e,n){return Wr.apply(void 0,a([t.placeholders,n],e))})},e.prototype.appendTemplate=function(e,t){this.appendTag(hp.TEMPLATE,e,t,!1),this.appendTag(hp.TEMPLATE,e,t,!0),this._unresolvedCtxCount++},e.prototype.appendElement=function(e,t,n){this.appendTag(hp.ELEMENT,e,t,n)},e.prototype.forkChildContext=function(t,n,r){return new e(t,this.ref,this.level+1,n,r,this._registry)},e.prototype.reconcileChildContext=function(e){var t=this;["start","close"].forEach(function(n){var r=(t.placeholders.get(e.meta[n+"Name"])||[]).find(xp(t.id,e.templateIndex));r&&(r.ctx=e.id)}),e.placeholders.forEach(function(n,r){var i=t.placeholders.get(r);if(i){var o=function s(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}(i,xp(e.id,e.templateIndex));if(o>=0){var u=r.startsWith("CLOSE");r.endsWith("NG-TEMPLATE")?i.splice.apply(i,a([o+(u?0:1),0],n)):(n[u?n.length-1:0].tmpl=i[o],i.splice.apply(i,a([o,1],n)))}else i.push.apply(i,a(n));t.placeholders.set(r,i)}else t.placeholders.set(r,n)}),this._unresolvedCtxCount--},e}();function _p(e,t,n,r){return qr((r?"/":"")+e+t,n)}function Ep(e,t,n){var r=t.index,i=t.ctx;return t.isVoid?_p(e,r,i)+_p(e,r,i,!0):_p(e,r,i,n)}function xp(e,t){return function(n){return"object"==typeof n&&n.type===hp.TEMPLATE&&n.index===t&&n.ctx===e}}function Sp(e){var t=function(e,t){return Ep("#",e,t)},n=function(e,t){return Ep("*",e,t)};switch(e.type){case hp.ELEMENT:return e.closed?t(e,!0)+(e.tmpl?n(e.tmpl,!0):""):e.tmpl?n(e.tmpl)+t(e)+(e.isVoid?n(e.tmpl,!0):""):t(e);case hp.TEMPLATE:return n(e,e.closed);default: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
       */var wp={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"},Cp=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(),o=wp[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},e.prototype.getCloseTagPlaceholderName=function(e){var t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];var n=e.toUpperCase(),r=this._generateUniqueName("CLOSE_"+(wp[n]||"TAG_"+n));return this._signatureToName[t]=r,r},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}(),bp=new Ra(new Ea);function Tp(e){var t=new Pp(bp,e);return function(e,n,r,i,o){return t.toI18nMessage(e,n,r,i,o)}}var Pp=function(){function e(e,t){this._expressionParser=e,this._interpolationConfig=t}return e.prototype.toI18nMessage=function(e,t,n,r,i){this._isIcu=1==e.length&&e[0]instanceof Va,this._icuDepth=0,this._placeholderRegistry=new Cp,this._placeholderToContent={},this._placeholderToMessage={},this._visitNodeFn=i;var o=Wa(this,e,{});return new Vn(o,this._placeholderToContent,this._placeholderToMessage,t,n,r)},e.prototype._visitNode=function(e,t){return this._visitNodeFn&&this._visitNodeFn(e,t),t},e.prototype.visitElement=function(e,t){var n=Wa(this,e.children),r={};e.attrs.forEach(function(e){r[e.name]=e.value});var i=_(e.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);this._placeholderToContent[o]=e.sourceSpan.toString();var s="";i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(e.name),this._placeholderToContent[s]="</"+e.name+">");var a=new Hn(e.name,r,o,s,n,i,e.sourceSpan);return this._visitNode(e,a)},e.prototype.visitAttribute=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan);return this._visitNode(e,n)},e.prototype.visitText=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan);return this._visitNode(e,n)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitExpansion=function(t,n){var r=this;this._icuDepth++;var i={},o=new qn(t.switchValue,t.type,i,t.sourceSpan);if(t.cases.forEach(function(e){i[e.value]=new Un(e.expression.map(function(e){return e.visit(r,{})}),e.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+t.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=t.switchValue,this._visitNode(t,o)}var a=this._placeholderRegistry.getPlaceholderName("ICU",t.sourceSpan.toString()),u=new e(this._expressionParser,this._interpolationConfig);this._placeholderToMessage[a]=u.toI18nMessage([t],"","","");var p=new zn(o,a,t.sourceSpan);return this._visitNode(t,p)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Unreachable code")},e.prototype._visitTextWithInterpolation=function(e,t){var n=this._expressionParser.splitInterpolation(e,t.start.toString(),this._interpolationConfig);if(!n)return new jn(e,t);for(var r=[],i=new Un(r,t),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var p=n.expressions[u],l=p.split(Mp)[2]||"INTERPOLATION",c=this._placeholderRegistry.getPlaceholderName(l,p);n.strings[u].length&&r.push(new jn(n.strings[u],t)),r.push(new Wn(p,c,t)),this._placeholderToContent[c]=s+p+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new jn(n.strings[h],t)),i},e}(),Mp=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\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
       */
  function Np(e,t){e.i18n=t}var Ap=function(){function e(e,t){void 0===e&&(e=wi),void 0===t&&(t=!1),this.interpolationConfig=e,this.keepI18nAttrs=t,this._createI18nMessage=Tp(e)}return e.prototype._generateI18nMessage=function(e,t,n){void 0===t&&(t="");var r="string"==typeof t?function i(e){var t,n,r,i,o;if(e){var a=e.indexOf("@@"),u=e.indexOf("|"),p=void 0;p=(t=s(a>-1?[e.slice(0,a),e.slice(a+2)]:[e,""],2))[0],r=t[1],i=(n=s(u>-1?[p.slice(0,u),p.slice(u+1)]:["",p],2))[0],o=n[1]}return{id:r,meaning:i,description:o}}(t):jr(t),o=this._createI18nMessage(e,r.meaning||"",r.description||"",r.id||"",n);return o.id||(o.id="string"!=typeof t&&t.id||Gn(o)),o},e.prototype.visitElement=function(e,t){var n,r,i,s;if(function a(e){return e.attrs.some(function(e){return Fr(e.name)})}(e)){var u=[],p={};try{for(var l=o(e.attrs),c=l.next();!c.done;c=l.next())if((v=c.value).name===Or){var h=this._generateI18nMessage(e.children,e.i18n||v.value,Np);h.nodes.length&&(e.i18n=h)}else v.name.startsWith(Rr)?p[v.name.slice(Rr.length)]=v.value:u.push(v)}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(Object.keys(p).length)try{for(var f=o(u),d=f.next();!d.done;d=f.next()){var v,m=p[(v=d.value).name];void 0!==m&&v.value&&(v.i18n=this._generateI18nMessage([v],v.i18n||m))}}catch(e){i={error:e}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}this.keepI18nAttrs||(e.attrs=u)}return Wa(this,e.children),e},e.prototype.visitExpansion=function(e,t){var n,r=e.i18n;if(r instanceof zn){var i=r.name;Ur(n=this._generateI18nMessage([e],r)).name=i}else n=this._generateI18nMessage([e],r);return e.i18n=n,e},e.prototype.visitText=function(e,t){return e},e.prototype.visitAttribute=function(e,t){return e},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),Ip=function(e){return"{$"+Kr(e)+"}"},kp=new(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.expressionPlaceholder+", "+e.type+", "+r.join(" ")+"}"},e.prototype.visitTagPlaceholder=function(e,t){var n=this;return e.isVoid?Ip(e.startName):""+Ip(e.startName)+e.children.map(function(e){return e.visit(n)}).join("")+Ip(e.closeName)},e.prototype.visitPlaceholder=function(e,t){return Ip(e.name)},e.prototype.visitIcuPlaceholder=function(e,t){return Ip(e.name)},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 Op(e,t){return Ct(yt($r).bitwiseAnd(bt(e),null,!1),t)}var Rp=function(){function t(e,t,n,r,i,o,s,a,u,p,l,c,h,f,d){void 0===n&&(n=0);var v=this;this.constantPool=e,this.level=n,this.contextName=r,this.i18nContext=i,this.templateIndex=o,this.templateName=s,this.viewQueries=a,this.directiveMatcher=u,this.directives=p,this.pipeTypeByName=l,this.pipes=c,this._namespace=h,this.relativeContextFilePath=f,this.i18nUseExternalIds=d,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._tempVariables=[],this._nestedTemplateFns=[],this._unsupported=Jr,this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._hasNgContent=!1,this._ngContentSelectors=[],this._ngContentSelectorsOffset=0,this.visitReference=Zr,this.visitVariable=Zr,this.visitTextAttribute=Zr,this.visitBoundAttribute=Zr,this.visitBoundEvent=Zr,this._dataIndex=a.length,this._bindingScope=t.nestedScope(n),this.fileBasedI18nSuffix=f.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Dp(e,function(){return v.allocateDataSlot()},function(e){return v.allocatePureFunctionSlots(e)},function(e,t,n,r){var i=l.get(e);i&&v.pipes.add(i),v._bindingScope.set(v.level,t,r),v.creationInstruction(null,Bn.pipe,[bt(n),bt(e)])})}return t.prototype.registerContextVariables=function(e){var t=this._bindingScope.freshReferenceName(),n=this.level,r=yt(e.name+t);this._bindingScope.set(n,e.name,r,1,function(t,i){var o;return o=t.bindingLevel===n?yt(Gr):t.getSharedContextName(n)||Vp(i),[r.set(o.prop(e.value||"$implicit")).toConstDecl()]})},t.prototype.buildTemplateFunction=function(e,t,n,r){var i=this;void 0===n&&(n=0),this._ngContentSelectorsOffset=n,this._namespace!==Bn.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach(function(e){return i.registerContextVariables(e)});var o=this.i18nContext||Br(r)&&!Vr(r)&&!(function s(e){return 1===e.length&&e[0]instanceof ju}(e)&&e[0].i18n===r),u=Kp(e);if(o&&this.i18nStart(null,r,u),Ku(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(e){return e()}),0===this.level&&this._hasNgContent){var p=[];if(this._ngContentSelectors.length){var l=this._ngContentSelectors.map(function(e){return ee(e)}),c=this.constantPool.getConstLiteral(ei(l),!0),h=this.constantPool.getConstLiteral(ei(this._ngContentSelectors),!0);p.push(c,h)}this.creationInstruction(null,Bn.projectionDef,p,!0)}o&&this.i18nEnd(null,u);var f=this._creationCodeFns.map(function(e){return e()}),d=this._updateCodeFns.map(function(e){return e()}),v=this._bindingScope.viewSnapshotStatements(),m=this._bindingScope.variableDeclarations().concat(this._tempVariables),y=f.length>0?[Op(1,v.concat(f))]:[],g=d.length>0?[Op(2,m.concat(d))]:[];return wt([new Fe($r,fe),new Fe(Gr,null)],a(this._prefixCode,y,g),ce,null,this.templateName)},t.prototype.getLocal=function(e){return this._bindingScope.get(e)},t.prototype.i18nTranslate=function(t,n,r,i){var o;void 0===n&&(n={});var s=r||this.i18nAllocateRef(t.id),u={};n&&Object.keys(n).length&&Object.keys(n).forEach(function(e){return u[Kr(e)]=n[e]});var p=jr(t),l=function h(t,n,r,i,o){void 0===i&&(i={});var s=[],a=function u(e){var t=[];return e.description&&t.push({tagName:"desc",text:e.description}),e.meaning&&t.push({tagName:"meaning",text:e.meaning}),0==t.length?null:new st(t)}(r);if(a&&s.push(a),o){s.push(Lr(t,n,i));var p=yt(t.name);t.name=t.name.replace(Ir,"I18N_"),s.push(t.set(o(p)).toDeclStmt(ce,[e.StmtModifier.Final]))}else s.push(Lr(t,n,i));return s}(s,function c(e){return e.nodes.map(function(e){return e.visit(kp,null)}).join("")}
  /**
       * @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),p,u,i);return(o=this.constantPool.statements).push.apply(o,a(l)),s},t.prototype.i18nAppendBindings=function(e){var t=this;if(this.i18n&&e.length){var n=yt(Gr);e.forEach(function(e){var r=t.convertExpressionBinding(n,e);t.i18n.appendBinding(r)})}},t.prototype.i18nBindProps=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){var i=e[r];if(i instanceof Du)n[r]=bt(i.value);else{var o=i.value.visit(t._valueConverter);if(t.allocateBindingSlots(o),o instanceof lo){var s=o.expressions,a=t.i18n,u=function p(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),!e.length)return"";for(var r="",i=e.length-1,o=0;o<i;o++)r+=""+e[o]+qr(t+o,n);return r+e[i]}(o.strings,a.bindings.size,a.id);t.i18nAppendBindings(s),n[r]=bt(u)}}}),n},t.prototype.i18nAllocateRef=function(e){var t,n=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds)t=""+(r=Qr("EXTERNAL_"))+e+"$$"+this.constantPool.uniqueName(n);else{var r=Qr(n);t=this.constantPool.uniqueName(r)}return yt(t)},t.prototype.i18nUpdateRef=function(e){var t=e.icus,n=e.meta;if(e.isRoot&&e.isResolved&&!Vr(n)){var r=e.getSerializedPlaceholders(),i={},o=r.size?Hr(r):{};t.size&&t.forEach(function(e,t){if(1===e.length)o[t]=e[0];else{var n=qr("I18N_EXP_"+t);o[t]=bt(n),i[t]=xt(e)}});var s=void 0;(Array.from(r.values()).some(function(e){return e.length>1})||Object.keys(i).length)&&(s=function(e){var t=[e];return Object.keys(i).length&&t.push(Nr(i,!0)),Bp(null,Bn.i18nPostprocess,t)}),this.i18nTranslate(n,o,e.ref,s)}},t.prototype.i18nStart=function(e,t,n){void 0===e&&(e=null);var r=this.allocateDataSlot();if(this.i18nContext)this.i18n=this.i18nContext.forkChildContext(r,this.templateIndex,t);else{var i=this.i18nAllocateRef(t.id);this.i18n=new gp(r,i,0,this.templateIndex,t)}var o=this.i18n,s=o.id,a=o.ref,u=[bt(r),a];s>0&&u.push(bt(s)),this.creationInstruction(e,n?Bn.i18n:Bn.i18nStart,u)},t.prototype.i18nEnd=function(e,t){var n=this;if(void 0===e&&(e=null),!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);var r=this.i18n,i=r.index,o=r.bindings;o.size&&(o.forEach(function(t){return n.updateInstruction(e,Bn.i18nExp,[t])}),this.updateInstruction(e,Bn.i18nApply,[bt(i)])),t||this.creationInstruction(e,Bn.i18nEnd),this.i18n=null},t.prototype.visitContent=function(e){this._hasNgContent=!0;var t=this.allocateDataSlot(),n="*"===e.selector?0:this._ngContentSelectors.push(e.selector)+this._ngContentSelectorsOffset,r=[bt(t)],i=[];e.attributes.forEach(function(e){var t=e.name,n=e.value;"select"!==t.toLowerCase()&&i.push(t,n)}),i.length>0?r.push(bt(n),ei(i)):0!==n&&r.push(bt(n)),this.creationInstruction(e.sourceSpan,Bn.projection,r)},t.prototype.getNamespaceInstruction=function(e){switch(e){case"math":return Bn.namespaceMathML;case"svg":return Bn.namespaceSVG;default:return Bn.namespaceHTML}},t.prototype.addNamespaceInstruction=function(e,t){this._namespace=e,this.creationInstruction(t.sourceSpan,e)},t.prototype.visitElement=function(e){var t,n,r=this,i=this.allocateDataSlot(),l=new da(bt(i),null),c=!1,h=Br(e.i18n)&&!Vr(e.i18n);if(h&&this.i18n)throw new Error("Could not mark an element as translatable inside of a translatable section");var f=[],d=[],v=s(u(e.name),2),m=v[0],y=v[1],g=p(e.name);try{for(var _=o(e.attributes),E=_.next();!E.done;E=_.next()){var x=E.value,S=x.name,w=x.value;"ngNonBindable"===S?c=!0:"style"===S?l.registerStyleAttr(w):"class"===S?l.registerClassAttr(w):x.i18n?f.push(x):d.push(x)}}catch(e){t={error:e}}finally{try{E&&!E.done&&(n=_.return)&&n.call(_)}finally{if(t)throw t.error}}this.matchDirectives(e.name,e);var C=[bt(i)];g||C.push(bt(y));var b=[],T=[];e.inputs.forEach(function(e){l.registerBoundInput(e)||(0===e.type&&e.i18n?f.push(e):T.push(e))}),d.forEach(function(e){return b.push(bt(e.name),bt(e.value))}),b.push.apply(b,a(this.prepareSyntheticAndSelectOnlyAttrs(T,e.outputs,l))),C.push(this.toAttrsParam(b)),C.push(this.prepareRefsParameter(e.references));var P=this._namespace,M=this.getNamespaceInstruction(m);M!==P&&this.addNamespaceInstruction(M,e);var N=yt(Gr);this.i18n&&this.i18n.appendElement(e.i18n,i);var A=!l.hasBindingsOrInitialValues()&&!g&&0===e.outputs.length&&0===f.length&&!(!h&&r.i18n?!Kp(e.children):e.children.length>0),I=!A&&!l.hasBindingsOrInitialValues()&&Kp(e.children);if(A)this.creationInstruction(e.sourceSpan,Bn.element,ni(C));else{if(this.creationInstruction(e.sourceSpan,g?Bn.elementContainerStart:Bn.elementStart,ni(C)),c&&this.creationInstruction(e.sourceSpan,Bn.disableBindings),h&&this.i18nStart(e.sourceSpan,e.i18n,I),f.length){var k=!1,O=[];if(f.forEach(function(t){var n=t.i18n;if(t instanceof Fu)O.push(bt(t.name),r.i18nTranslate(n));else{var i=t.value.visit(r._valueConverter);if(r.allocateBindingSlots(i),i instanceof lo){var o=Hr(zr(n));O.push(bt(t.name),r.i18nTranslate(n,o)),i.expressions.forEach(function(t){k=!0;var n=r.convertExpressionBinding(N,t);r.updateInstruction(e.sourceSpan,Bn.i18nExp,[n])})}}}),O.length){var R=bt(this.allocateDataSlot()),L=this.constantPool.getConstLiteral(xt(O),!0);this.creationInstruction(e.sourceSpan,Bn.i18nAttributes,[R,L]),k&&this.updateInstruction(e.sourceSpan,Bn.i18nApply,[R])}}this.processStylingInstruction(N,l.buildElementStylingInstruction(e.sourceSpan,this.constantPool),!0),e.outputs.forEach(function(t){r.creationInstruction(t.sourceSpan,Bn.listener,r.prepareListenerParameter(e.name,t,i))})}if(l.buildUpdateLevelInstructions(this._valueConverter).forEach(function(e){r.processStylingInstruction(N,e,!1)}),T.forEach(function(e){var t=function n(e){switch(e){case 0:case 4:return Bn.elementProperty;case 2:return Bn.elementClassProp;case 1:return Bn.elementAttribute;default:return}}(e.type);if(4===e.type){var o=e.value.visit(r._valueConverter);if(o.name||o.value){var s=vi(e.name);r.allocateBindingSlots(o),r.updateInstruction(e.sourceSpan,Bn.elementProperty,function(){return[bt(i),bt(s),r.convertPropertyBinding(N,o)]})}}else if(t){var u=[],p=function l(e,t){switch(t){case D.HTML:return gt(Bn.sanitizeHtml);case D.SCRIPT:return gt(Bn.sanitizeScript);case D.STYLE:return 1===e.type?gt(Bn.sanitizeStyle):null;case D.URL:return gt(Bn.sanitizeUrl);case D.RESOURCE_URL:return gt(Bn.sanitizeResourceUrl);default:return null}}(e,e.securityContext);p&&u.push(p);var c=e.value.visit(r._valueConverter);r.allocateBindingSlots(c),r.updateInstruction(e.sourceSpan,t,function(){return a([bt(i),bt(e.name),r.convertPropertyBinding(N,c)],u)})}else r._unsupported("binding type "+e.type)}),Ku(this,e.children),!h&&this.i18n&&this.i18n.appendElement(e.i18n,i,!0),!A){var F=e.endSourceSpan||e.sourceSpan;h&&this.i18nEnd(F,I),c&&this.creationInstruction(F,Bn.enableBindings),this.creationInstruction(F,g?Bn.elementContainerEnd:Bn.elementEnd)}},t.prototype.visitTemplate=function(e){var n=this,r=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(e.i18n,r);var i=cn(e.tagName||""),o=(i?this.contextName+"_"+i:"")+"_"+r,s=o+"_Template",u=[bt(r),yt(s),bt(e.tagName)];this.matchDirectives("ng-template",e);var p=[];e.attributes.forEach(function(e){p.push(ei(e.name),ei(e.value))}),p.push.apply(p,a(this.prepareSyntheticAndSelectOnlyAttrs(e.inputs,e.outputs))),u.push(this.toAttrsParam(p)),e.references&&e.references.length&&(u.push(this.prepareRefsParameter(e.references)),u.push(gt(Bn.templateRefExtractor)));var l=yt(Gr);e.inputs.forEach(function(t){var i=t.value.visit(n._valueConverter);n.allocateBindingSlots(i),n.updateInstruction(e.sourceSpan,Bn.elementProperty,function(){return[bt(r),bt(t.name),n.convertPropertyBinding(l,i)]})});var c=new t(this.constantPool,this._bindingScope,this.level+1,o,this.i18n,r,s,[],this.directiveMatcher,this.directives,this.pipeTypeByName,this.pipes,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds);this._nestedTemplateFns.push(function(){var t,r=c.buildTemplateFunction(e.children,e.variables,n._ngContentSelectors.length+n._ngContentSelectorsOffset,e.i18n);n.constantPool.statements.push(r.toDeclStmt(s,null)),c._hasNgContent&&(n._hasNgContent=!0,(t=n._ngContentSelectors).push.apply(t,a(c._ngContentSelectors)))}),this.creationInstruction(e.sourceSpan,Bn.templateCreate,function(){return u.splice(2,0,bt(c.getConstCount()),bt(c.getVarCount())),ni(u)}),e.outputs.forEach(function(e){n.creationInstruction(e.sourceSpan,Bn.listener,n.prepareListenerParameter("ng_template",e,r))})},t.prototype.visitBoundText=function(e){var t=this;if(this.i18n){var n=e.value.visit(this._valueConverter);return this.allocateBindingSlots(n),void(n instanceof lo&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(n.expressions)))}var r=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,Bn.text,[bt(r)]);var i=e.value.visit(this._valueConverter);this.allocateBindingSlots(i),this.updateInstruction(e.sourceSpan,Bn.textBinding,function(){return[bt(r),t.convertPropertyBinding(yt(Gr),i)]})},t.prototype.visitText=function(e){this.i18n||this.creationInstruction(e.sourceSpan,Bn.text,[bt(this.allocateDataSlot()),bt(e.value)])},t.prototype.visitIcu=function(e){var t=!1;this.i18n||(t=!0,this.i18nStart(null,e.i18n,!0));var n=this.i18n,r=this.i18nBindProps(e.vars),i=this.i18nBindProps(e.placeholders),o=e.i18n,s=function(e){return Bp(null,Bn.i18nPostprocess,[e,Nr(r,!0)])};if(Vr(n.meta))this.i18nTranslate(o,i,n.ref,s);else{var a=this.i18nTranslate(o,i,void 0,s);n.appendIcu(Ur(o).name,a)}return t&&this.i18nEnd(null,!0),null},t.prototype.allocateDataSlot=function(){return this._dataIndex++},t.prototype.getConstCount=function(){return this._dataIndex},t.prototype.getVarCount=function(){return this._pureFunctionSlots},t.prototype.bindingContext=function(){return""+this._bindingContext++},t.prototype.instructionFn=function(e,t,n,r,i){void 0===i&&(i=!1),e[i?"unshift":"push"](function(){var e=Array.isArray(r)?r:r();return Bp(t,n,e).toStmt()})},t.prototype.processStylingInstruction=function(e,t,n){var r=this;if(t){var i=function(){return t.buildParams(function(t){return r.convertPropertyBinding(e,t,!0)})};n?this.creationInstruction(t.sourceSpan,t.reference,i):this.updateInstruction(t.sourceSpan,t.reference,i)}},t.prototype.creationInstruction=function(e,t,n,r){this.instructionFn(this._creationCodeFns,e,t,n||[],r)},t.prototype.updateInstruction=function(e,t,n){this.instructionFn(this._updateCodeFns,e,t,n||[])},t.prototype.allocatePureFunctionSlots=function(e){var t=this._pureFunctionSlots;return this._pureFunctionSlots+=e,t},t.prototype.allocateBindingSlots=function(e){this._bindingSlots+=e instanceof lo?e.expressions.length:1},t.prototype.convertExpressionBinding=function(e,t){var n=Do(this,e,t,this.bindingContext(),ko.TrySimple).currValExpr;return gt(Bn.bind).callFn([n])},t.prototype.convertPropertyBinding=function(e,t,n){var r,i=t instanceof lo?qp:function(){return Ft("Unexpected interpolation")},o=Do(this,e,t,this.bindingContext(),ko.TrySimple,i);(r=this._tempVariables).push.apply(r,a(o.stmts));var s=o.currValExpr;return t instanceof lo||n?s:gt(Bn.bind).callFn([s])},t.prototype.matchDirectives=function(e,t){var n=this;if(this.directiveMatcher){var r=function i(e,t){var n=new w;return n.setElement(e),Object.getOwnPropertyNames(t).forEach(function(e){var r=t[e];n.addAttribute(e,r),"class"===e.toLowerCase()&&r.trim().split(/\s+/).forEach(function(e){return n.addClassName(e)})}),n}(e,si(t));this.directiveMatcher.match(r,function(e,t){n.directives.add(t)})}},t.prototype.prepareSyntheticAndSelectOnlyAttrs=function(e,t,n){var r=[],i=[],o=new Set;function s(e,t){"string"==typeof e?o.has(e)||(r.push(bt(e)),void 0!==t&&r.push(t),o.add(e)):r.push(bt(e))}if(e.length){var a=ei("");e.forEach(function(e){if(4===e.type){var t=e.value;if(function n(e){return e instanceof go}(t)){var r=t.ast;(function o(e){return e instanceof ao})(r)&&void 0===r.value&&s(vi(e.name),a)}}else i.push(e)})}return n&&n.populateInitialStylingAttrs(r),(i.length||t.length)&&(s(3),i.forEach(function(e){return s(e.name)}),t.forEach(function(e){s(1===e.type?function t(e){var t=e.indexOf(".");return(e=t>0?e.substring(0,t):e).charAt(0)!==di&&(e=di+e),e}(e.name):e.name)})),r},t.prototype.toAttrsParam=function(e){return e.length>0?this.constantPool.getConstLiteral(xt(e),!0):Qe},t.prototype.prepareRefsParameter=function(e){var t=this;if(!e||0===e.length)return Qe;var n=In(e.map(function(e){var n=t.allocateDataSlot(),r=t._bindingScope.freshReferenceName(),i=t.level,o=yt(r);return t._bindingScope.set(i,e.name,o,0,function(e,t){var r=t>0?[Vp(t).toStmt()]:[],i=o.set(gt(Bn.reference).callFn([bt(n)]));return r.concat(i.toConstDecl())},!0),[e.name,e.value]}));return this.constantPool.getConstLiteral(ei(n),!0)},t.prototype.prepareListenerParameter=function(e,t,n){var r,i=this,o=t.name;1===t.type?(r=yi(o,t.phase),o=mi(o,t.phase)):r=cn(o);var s=cn(e),u=this.templateName+"_"+s+"_"+r+"_"+n+"_listener";return function(){var e=i._bindingScope.nestedScope(i._bindingScope.bindingLevel),n=Ao(e,yt(Gr),t.handler,"b",function(){return Ft("Unexpected interpolation")}),r=a(e.restoreViewStatement(),e.variableDeclarations(),n.render3Stmts),s=wt([new Fe("$event",le)],r,ce,null,u);return[bt(o),s]}},t}(),Dp=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.constantPool=t,o.allocateSlot=n,o.allocatePureFunctionSlots=r,o.definePipe=i,o._pipeBindExprs=[],o}return n(t,e),t.prototype.visitPipe=function(e,t){var n=this.allocateSlot(),r="PIPE:"+n,i=this.allocatePureFunctionSlots(2+e.args.length),o=new to(e.span,new Ji(e.span),r),s=function u(e){var t=Lp[e.length];return{identifier:t||Bn.pipeBindV,isVarLength:!t}}(e.args),p=s.isVarLength;this.definePipe(e.name,r,n,gt(s.identifier));var l=a([e.exp],e.args),c=this.visitAll(p?[new uo(e.span,l)]:l),h=new yo(e.span,o,a([new ao(e.span,n),new ao(e.span,i)],c));return this._pipeBindExprs.push(h),h},t.prototype.updatePipeSlotOffsets=function(e){this._pipeBindExprs.forEach(function(t){t.args[1].value+=e})},t.prototype.visitLiteralArray=function(e,t){var n=this;return new Wo(e.span,this.visitAll(e.expressions),function(e){var t=xt(e);return e.every(function(e){return e.isConstant()})?n.constantPool.getConstLiteral(t,!0):jp(n.constantPool,t,n.allocatePureFunctionSlots)})},t.prototype.visitLiteralMap=function(e,t){var n=this;return new Wo(e.span,this.visitAll(e.values),function(t){var r=St(t.map(function(t,n){return{key:e.keys[n].key,value:t,quoted:e.keys[n].quoted}}));return t.every(function(e){return e.isConstant()})?n.constantPool.getConstLiteral(r,!0):jp(n.constantPool,r,n.allocatePureFunctionSlots)})},t}(wo),Lp=[Bn.pipeBind1,Bn.pipeBind2,Bn.pipeBind3,Bn.pipeBind4],Fp=[Bn.pureFunction0,Bn.pureFunction1,Bn.pureFunction2,Bn.pureFunction3,Bn.pureFunction4,Bn.pureFunction5,Bn.pureFunction6,Bn.pureFunction7,Bn.pureFunction8];function Bp(e,t,n){return gt(t,null,e).callFn(n,e)}function Vp(e){return gt(Bn.nextContext).callFn(e>1?[bt(e)]:[])}function jp(e,t,n){var r=e.getLiteralFactory(t),i=r.literalFactory,o=r.literalFactoryArguments,s=n(1+o.length);o.length>0||Ft("Expected arguments to a literal factory function");var u=function p(e){var t=Fp[e.length];return{identifier:t||Bn.pureFunctionV,isVarLength:!t}}(o),l=u.identifier,c=u.isVarLength,h=[bt(s),i];return c?h.push(xt(o)):h.push.apply(h,a(o)),gt(l).callFn(h)}var Up=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=null),this.bindingLevel=e,this.parent=t,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null}return Object.defineProperty(e,"ROOT_SCOPE",{get:function(){return e._ROOT_SCOPE||(e._ROOT_SCOPE=(new e).set(0,"$event",yt("$event"))),e._ROOT_SCOPE},enumerable:!0,configurable:!0}),e.prototype.get=function(e){for(var t=this;t;){var n=t.map.get(e);if(null!=n)return t!==this&&(this.map.set(e,n={retrievalLevel:n.retrievalLevel,lhs:n.lhs,declareLocalCallback:n.declareLocalCallback,declare:!1,priority:n.priority,localRef:n.localRef}),this.maybeGenerateSharedContextVar(n),this.maybeRestoreView(n.retrievalLevel,n.localRef)),n.declareLocalCallback&&!n.declare&&(n.declare=!0),n.lhs;t=t.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)},e.prototype.set=function(e,t,n,r,i,o){return void 0===r&&(r=0),!this.map.has(t)||Ft("The name "+t+" is already defined in scope to be "+this.map.get(t)),this.map.set(t,{retrievalLevel:e,lhs:n,declare:!1,declareLocalCallback:i,priority:r,localRef:o||!1}),this},e.prototype.getLocal=function(e){return this.get(e)},e.prototype.nestedScope=function(t){var n=new e(t,this);return t>0&&n.generateSharedContextVar(0),n},e.prototype.getSharedContextName=function(e){var t=this.map.get("$$shared_ctx$$"+e);return t&&t.declare?t.lhs:null},e.prototype.maybeGenerateSharedContextVar=function(e){if(1===e.priority){var t=this.map.get("$$shared_ctx$$"+e.retrievalLevel);t?t.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}},e.prototype.generateSharedContextVar=function(e){var t=yt(Gr+this.freshReferenceName());this.map.set("$$shared_ctx$$"+e,{retrievalLevel:e,lhs:t,declareLocalCallback:function(e,n){return[t.set(Vp(n)).toConstDecl()]},declare:!1,priority:2,localRef:!1})},e.prototype.getComponentProperty=function(e){var t=this.map.get("$$shared_ctx$$0");return t.declare=!0,this.maybeRestoreView(0,!1),t.lhs.prop(e)},e.prototype.maybeRestoreView=function(e,t){this.isListenerScope()&&(e<this.bindingLevel||t)&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=yt(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)},e.prototype.restoreViewStatement=function(){return this.restoreViewVariable?[Bp(null,Bn.restoreView,[this.restoreViewVariable]).toStmt()]:[]},e.prototype.viewSnapshotStatements=function(){var e=Bp(null,Bn.getCurrentView,[]);return this.restoreViewVariable?[this.restoreViewVariable.set(e).toConstDecl()]:[]},e.prototype.isListenerScope=function(){return this.parent&&this.parent.bindingLevel===this.bindingLevel},e.prototype.variableDeclarations=function(){var e=this,t=0;return Array.from(this.map.values()).filter(function(e){return e.declare}).sort(function(e,t){return t.retrievalLevel-e.retrievalLevel||t.priority-e.priority}).reduce(function(n,r){var i=e.bindingLevel-r.retrievalLevel,o=r.declareLocalCallback(e,i-t);return t=i,n.concat(o)},[])},e.prototype.freshReferenceName=function(){for(var e=this;e.parent;)e=e.parent;return"_r"+e.referenceNameIndex++},e}();function qp(e){switch((e=e.slice(1)).length){case 3:return gt(Bn.interpolation1).callFn(e);case 5:return gt(Bn.interpolation2).callFn(e);case 7:return gt(Bn.interpolation3).callFn(e);case 9:return gt(Bn.interpolation4).callFn(e);case 11:return gt(Bn.interpolation5).callFn(e);case 13:return gt(Bn.interpolation6).callFn(e);case 15:return gt(Bn.interpolation7).callFn(e);case 17:return gt(Bn.interpolation8).callFn(e)}return e.length>=19&&e.length%2==1||Ft("Invalid interpolation argument length "+e.length),gt(Bn.interpolationV).callFn([xt(e)])}function Hp(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig,o=n.preserveWhitespaces,s=Wp(r),a=(new hu).parse(e,t,i({},n,{tokenizeExpansionForms:!0}));if(a.errors&&a.errors.length>0)return{errors:a.errors,nodes:[]};var u=a.rootNodes;u=Wa(new Ap(r,!o),u),o||(u=Wa(new _u,u),u=Wa(new Ap(r,!1),u));var p=cp(u,s),l=p.errors;return l&&l.length>0?{errors:l,nodes:[]}:{nodes:p.nodes}}function Wp(e){return void 0===e&&(e=wi),new Iu(new Ra(new Ea),e,new Au,null,[])}function zp(e){return e instanceof Du||e instanceof Lu||e instanceof zu}function Kp(e){return e.every(zp)}
  /**
       * @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 Qp=[],Xp=/attr\.([^\]]+)/;function Gp(e){return e.substring(0,5).toLowerCase()}function $p(t,n,r){var i=new oi;i.set("type",t.type),i.set("selectors",function s(e){return ei(ee(e))}(t.selector));var u=ai({name:t.name,type:t.type,deps:t.deps,injectFn:Bn.directiveInject});i.set("factory",u.factory),i.set("contentQueries",function p(e,t){if(e.queries.length){var n=e.queries.map(function(e){var n=nl(e,t,null);return gt(Bn.registerContentQuery).callFn([n,yt("dirIndex")]).toStmt()}),r=e.name;return wt([new Fe("dirIndex",fe)],n,ce,null,r?r+"_ContentQueries":null)}return null}(t,n)),i.set("contentQueriesRefresh",function l(t){if(t.queries.length>0){var n=[],r=t.name,i=[new Fe("dirIndex",fe),new Fe("queryStartIndex",fe)],o=yt("instance"),s=Yr(n,Xr);return n.push(o.set(gt(Bn.load).callFn([yt("dirIndex")])).toDeclStmt(ce,[e.StmtModifier.Final])),t.queries.forEach(function(e,t){var r=yt("queryStartIndex"),i=gt(Bn.loadQueryList).callFn([t>0?r.plus(bt(t)):r]),a=s().set(i),u=gt(Bn.queryRefresh).callFn([a]),p=o.prop(e.propertyName).set(e.first?s().prop("first"):s()),l=u.and(p);n.push(l.toStmt())}),wt(i,n,ce,null,r?r+"_ContentQueriesRefresh":null)}return null}(t));for(var c=Object.keys(t.host.properties).filter(function(e){var t=Gp(e);return"style"!==t&&"class"!==t}).length,h=yt("elIndex"),f=yt(Gr),d=new da(h,f),v={},m=Object.getOwnPropertyNames(t.host.attributes),y=0;y<m.length;y++){var g=m[y],_=t.host.attributes[g];switch(g){case"style":d.registerStyleAttr(_);break;case"class":d.registerClassAttr(_);break;default:v[g]=_}}return i.set("attributes",function E(e){var t,n,r=[];try{for(var i=o(Object.getOwnPropertyNames(e)),s=i.next();!s.done;s=i.next()){var a=s.value,u=e[a];r.push(bt(a),bt(u))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r.length>0?xt(r):null}(v)),i.set("hostBindings",function x(e,t,n,r,i,s,u){var p,l,c=[],h=[],f=u,d=e.typeSourceSpan,v=function m(e){return{hostAttributes:e.host.attributes,hostListeners:e.host.listeners,hostProperties:e.host.properties}}(e),y=i.createDirectiveHostEventAsts(v,d);if(y&&y.length){var g=function _(e,t,n){return t.map(function(t){var r=Ao(null,e,t.handler,"b",function(){return Ft("Unexpected interpolation")}),i=t.name&&cn(t.name),o=i;1===t.type&&(o=yi(i,t.targetOrPhase),i=mi(i,t.targetOrPhase));var s=n.name,u=s&&i?s+"_"+o+"_HostBindingHandler":null,p=wt([new Fe("$event",le)],a(r.render3Stmts),ce,null,u);return gt(Bn.listener).callFn([bt(i),p]).toStmt()})}(n,y,e);c.push.apply(c,a(g))}var E=i.createBoundHostProperties(v,d),x=function(e,t){return Do(null,e,t,"b",ko.TrySimple,function(){return Ft("Unexpected interpolation")})};if(E){var S=new Dp(s,function(){return Ft("Unexpected node")},function(e){var t=f;return f+=e,t},function(){return Ft("Unexpected pipe")});try{for(var w=o(E),C=w.next();!C.done;C=w.next()){var b=C.value,T=b.name,P=Gp(T);if("style"===P){var M=ll(T);r.registerStyleInput(M.propertyName,b.expression,M.unit,b.sourceSpan)}else if("class"===P)r.registerClassInput(ll(T).propertyName,b.expression,b.sourceSpan);else{var N=b.expression.visit(S),A=x(n,N),I=al(b),k=I.instruction,O=I.extraParams,R=[t,bt(I.bindingName),gt(Bn.bind).callFn([A.currValExpr])];h.push.apply(h,a(A.stmts)),h.push(gt(k).callFn(R.concat(O)).toStmt())}}}catch(e){p={error:e}}finally{try{C&&!C.done&&(l=w.return)&&l.call(w)}finally{if(p)throw p.error}}if(r.hasBindingsOrInitialValues()){var D=r.buildDirectiveHostAttrsInstruction(null,s);D&&c.push(sl(D,n,x));var L=r.buildElementStylingInstruction(null,s);L&&c.push(sl(L,n,x)),r.buildUpdateLevelInstructions(S).forEach(function(e){h.push(sl(e,n,x))})}}if(f&&c.unshift(gt(Bn.allocHostVars).callFn([bt(f)]).toStmt()),c.length>0||h.length>0){var F=e.name?e.name+"_HostBindings":null,B=[];return c.length>0&&B.push(Op(1,c)),h.length>0&&B.push(Op(2,h)),wt([new Fe($r,fe),new Fe(Gr,null),new Fe(t.name,fe)],B,ce,null,F)}return null}(t,h,f,d,r,n,c)),i.set("inputs",ti(t.inputs,!0)),i.set("outputs",ti(t.outputs)),null!==t.exportAs&&i.set("exportAs",bt(t.exportAs)),{definitionMap:i,statements:u.statements}}function Yp(e,t){var n=[],r=t.providers,i=t.viewProviders;if(r||i){var o=[r||new qe([])];i&&o.push(i),n.push(gt(Bn.ProvidersFeature).callFn(o))}t.usesInheritance&&n.push(gt(Bn.InheritDefinitionFeature)),t.lifecycle.usesOnChanges&&n.push(gt(Bn.NgOnChangesFeature)),n.length&&e.set("features",xt(n))}function Jp(e,t,n){var r=$p(e,t,n),i=r.definitionMap,o=r.statements;Yp(i,e);var s=gt(Bn.defineDirective).callFn([i.toLiteralMap()]);return(e.selector||"").replace(/\n/g,""),{expression:s,type:ol(e,Bn.DirectiveDefWithMeta),statements:o}}function Zp(e,t,n){var r,i,s=$p(e,t,n),a=s.definitionMap,u=s.statements;Yp(a,e);var p=e.selector&&w.parse(e.selector),l=p&&p[0];if(l){var c=l.getAttrs();c.length&&a.set("attrs",t.getConstLiteral(xt(c.map(function(e){return bt(null!=e?e:void 0)})),!0))}var h=null;if(e.directives.length>0){var f=new C;try{for(var d=o(e.directives),v=d.next();!v.done;v=d.next()){var m=v.value,y=m.expression;f.addSelectables(w.parse(m.selector),y)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}h=f}e.viewQueries.length&&a.set("viewQuery",function g(e,t){for(var n=[],r=[],i=Yr(r,Xr),o=0;o<e.viewQueries.length;o++){var s=e.viewQueries[o],a=nl(s,t,o);n.push(a.toStmt());var u=i(),p=gt(Bn.load).callFn([bt(o)]),l=gt(Bn.queryRefresh).callFn([u.set(p)]),c=yt(Gr).prop(s.propertyName).set(s.first?u.prop("first"):u);r.push(l.and(c).toStmt())}var h=e.name?e.name+"_Query":null;return wt([new Fe($r,fe),new Fe(Gr,null)],[Op(1,n),Op(2,r)],ce,null,h)}(e,t));var _=e.name,S=_?_+"_Template":null,b=new Set,T=new Set,P=e.changeDetection,M=e.template,N=new Rp(t,Up.ROOT_SCOPE,0,_,null,null,S,e.viewQueries,h,b,e.pipes,T,Bn.namespaceHTML,e.relativeContextFilePath,e.i18nUseExternalIds),A=N.buildTemplateFunction(M.nodes,[]);if(a.set("consts",bt(N.getConstCount())),a.set("vars",bt(N.getVarCount())),a.set("template",A),b.size){var I=xt(Array.from(b));e.wrapDirectivesAndPipesInClosure&&(I=wt([],[new Je(I)])),a.set("directives",I)}if(T.size){var k=xt(Array.from(T));e.wrapDirectivesAndPipesInClosure&&(k=wt([],[new Je(k)])),a.set("pipes",k)}if(null===e.encapsulation&&(e.encapsulation=E.Emulated),e.styles&&e.styles.length){var O=(e.encapsulation==E.Emulated?function R(e,t,n){var r=new Os;return e.map(function(e){return r.shimCssText(e,t,n)})}(e.styles,aa,sa):e.styles).map(function(e){return bt(e)});a.set("styles",xt(O))}else e.encapsulation===E.Emulated&&(e.encapsulation=E.None);return e.encapsulation!==E.Emulated&&a.set("encapsulation",bt(e.encapsulation)),null!==e.animations&&a.set("data",St([{key:"animation",value:e.animations,quoted:!1}])),null!=P&&P!==x.Default&&a.set("changeDetection",bt(P)),(e.selector||"").replace(/\n/g,""),{expression:gt(Bn.defineComponent).callFn([a.toLiteralMap()]),type:ol(e,Bn.ComponentDefWithMeta),statements:u}}function el(e,t,n){var r=e.toSummary(),i=dn(e.type);return i||Ft("Cannot resolver the name of "+e.type),{name:i,type:t.importExpr(e.type.reference),typeArgumentCount:0,typeSourceSpan:ks(e.isComponent?"Component":"Directive",e.type),selector:e.selector,deps:pi(e.type,t,n),queries:tl(e.queries,t),lifecycle:{usesOnChanges:e.type.lifecycleHooks.some(function(e){return e==jo.OnChanges})},host:{attributes:e.hostAttributes,listeners:r.hostListeners,properties:r.hostProperties},inputs:e.inputs,outputs:e.outputs,usesInheritance:!1,exportAs:null,providers:e.providers.length>0?new Se(e.providers):null}}function tl(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:function r(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})&&Ft("Found a type among the string selectors expected"),t.constantPool.getConstLiteral(xt(n.map(function(e){return bt(e)})))}if(1==e.length){var r=e[0];if(r.identifier)return t.importExpr(r.identifier.reference)}return Ft("Unexpected query form"),Ke}(e.selectors,t),descendants:e.descendants,read:n}})}function nl(e,t,n){var r=function i(e,t){if(Array.isArray(e.predicate)){var n=[];return e.predicate.forEach(function(e){var t=e.split(",").map(function(e){return bt(e.trim())});n.push.apply(n,a(t))}),t.getConstLiteral(xt(n),!0)}return e.predicate}(e,t),o=[bt(n,ce),r,bt(e.descendants)];return e.read&&o.push(e.read),gt(Bn.query).callFn(o)}function rl(e){return Et(bt(e))}function il(e){return Et(St(Object.keys(e).map(function(t){return{key:t,value:bt(Array.isArray(e[t])?e[t][0]:e[t]),quoted:!0}})))}function ol(e,t){var n=(e.selector||"").replace(/\n/g,"");return Et(gt(t,[fi(e.type,e.typeArgumentCount),rl(n),null!==e.exportAs?rl(e.exportAs):de,il(e.inputs),il(e.outputs),function r(e){return e.length>0?Et(xt(e.map(function(e){return bt(e)}))):de}(e.queries.map(function(e){return e.propertyName}))]))}function sl(e,t,n){var r=e.buildParams(function(e){return n(t,e).currValExpr});return gt(e.reference,null,e.sourceSpan).callFn(r,e.sourceSpan).toStmt()}function al(e){var t,n=e.name,r=[],i=n.match(Xp);return i?(n=i[1],t=Bn.elementAttribute):(e.isAnimation?(n=vi(n),t=Bn.componentHostSyntheticProperty):t=Bn.elementProperty,r.push(bt(null),bt(!0))),{bindingName:n,instruction:t,extraParams:r}}var ul=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function pl(e){var t={},n={},r={};return Object.keys(e).forEach(function(i){var o=e[i],s=i.match(ul);null===s?t[i]=o:null!=s[1]?r[s[1]]=o:null!=s[2]&&(n[s[2]]=o)}),{attributes:t,listeners:n,properties:r}}function ll(e){var t="",n="",r=e.indexOf(".");if(r>0){var i=e.lastIndexOf(".");i!==r?(t=e.substring(i+1,e.length),n=e.substring(r+1,i)):n=e.substring(r+1,e.length)}return{propertyName:n,unit: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 cl=function(){function t(){this.R3ResolvedDependencyType=e.R3ResolvedDependencyType,this.elementSchemaRegistry=new Au}return t.prototype.compilePipe=function(e,t,n){var r=zi({name:n.name,type:new Se(n.type),deps:xl(n.deps),pipeName:n.pipeName,pure:n.pure});return Ui(r.expression,e,t,r.statements)},t.prototype.compileInjectable=function(e,t,n){var r=gi({name:n.name,type:new Se(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:function i(e){return null==e||"string"==typeof e?new Ae(e):new Se(e)}(n.providedIn),useClass:_l(n,hl),useFactory:_l(n,fl),useValue:_l(n,dl),useExisting:_l(n,vl),ctorDeps:xl(n.ctorDeps),userDeps:xl(n.userDeps)||void 0});return Ui(r.expression,e,t,r.statements)},t.prototype.compileInjector=function(e,t,n){var r=Hi({name:n.name,type:new Se(n.type),deps:xl(n.deps),providers:new Se(n.providers),imports:new Se(n.imports)});return Ui(r.expression,e,t,r.statements)},t.prototype.compileNgModule=function(e,t,n){return Ui(qi({type:new Se(n.type),bootstrap:n.bootstrap.map(ml),declarations:n.declarations.map(ml),imports:n.imports.map(ml),exports:n.exports.map(ml),emitInline:!0}).expression,e,t,[])},t.prototype.compileDirective=function(e,t,n){var r=new Zt,i=Wp(),o=Jp(gl(n),r,i),s=a(r.statements,o.statements);return Ui(o.expression,e,t,s)},t.prototype.compileComponent=function(e,t,n){var r=new Zt,o=n.interpolation?Si.fromArray(n.interpolation):wi,s=Hp(n.template,t,{preserveWhitespaces:n.preserveWhitespaces,interpolationConfig:o});if(void 0!==s.errors){var u=s.errors.map(function(e){return e.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for "+n.name+": "+u)}var p=Zp(i({},n,gl(n),{selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,viewQueries:n.viewQueries.map(yl),wrapDirectivesAndPipesInClosure:!1,styles:n.styles||[],encapsulation:n.encapsulation,interpolation:o,changeDetection:n.changeDetection,animations:null!=n.animations?new Se(n.animations):null,viewProviders:null!=n.viewProviders?new Se(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),r,Wp(o)),l=a(r.statements,p.statements);return Ui(p.expression,e,t,l)},t}(),hl=Object.keys({useClass:null})[0],fl=Object.keys({useFactory:null})[0],dl=Object.keys({useValue:null})[0],vl=Object.keys({useExisting:null})[0],ml=function(e){var t=new Se(e);return{value:t,type:t}};function yl(e){return i({},e,{predicate:Array.isArray(e.predicate)?e.predicate:new Se(e.predicate),read:e.read?new Se(e.read):null})}function gl(e){var t=Sl(e.inputs||[]),n=Sl(e.outputs||[]),r=e.propMetadata,o={},s={},a=function(e){r.hasOwnProperty(e)&&r[e].forEach(function(t){!function n(e){return"Input"===e.ngMetadataName}(t)?function r(e){return"Output"===e.ngMetadataName}(t)&&(s[e]=t.bindingPropertyName||e):o[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e})};for(var u in r)a(u);return i({},e,{typeSourceSpan:null,type:new Se(e.type),deps:xl(e.deps),host:function p(e,t){var n=pl(e||{}),r=n.attributes,i=n.listeners,o=n.properties,s=function(e){t.hasOwnProperty(e)&&t[e].forEach(function(t){!function n(e){return"HostBinding"===e.ngMetadataName}(t)?function r(e){return"HostListener"===e.ngMetadataName}(t)&&(i[t.eventName||e]=e+"("+(t.args||[]).join(",")+")"):o[t.hostPropertyName||e]=e})};for(var a in t)s(a);return{attributes:r,listeners:i,properties:o}}(e.host,e.propMetadata),inputs:i({},t,o),outputs:i({},n,s),queries:e.queries.map(yl),providers:null!=e.providers?new Se(e.providers):null})}function _l(e,t){return e.hasOwnProperty(t)?new Se(e[t]):void 0}function El(t){return{token:null===t.token?new Ae(null):t.resolved===e.R3ResolvedDependencyType.Attribute?new Ae(t.token):new Se(t.token),resolved:t.resolved,host:t.host,optional:t.optional,self:t.self,skipSelf:t.skipSelf}}function xl(e){return null==e?null:e.map(El)}function Sl(e){return e.reduce(function(e,t){var n=s(t.split(",").map(function(e){return e.trim()}),2),r=n[0];return e[r]=n[1]||r,e},{})}function wl(e){(e.ng||(e.ng={})).ɵcompilerFacade=new cl}
  /**
       * @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 Cl,bl,Tl=new Qt("7.2.16"),Pl=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}(),Ml=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}(),Nl=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}(),Al=((Cl={})[4]=4,Cl[1]=1,Cl[2]=2,Cl[0]=0,Cl[3]=3,Cl),Il=function(){function e(e,t,n,r,i,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=4===this.type}return e.fromBoundProperty=function(t){return new e(t.name,Al[t.type],t.securityContext,t.value,t.unit,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},e}(),kl=function(){function e(t,n,r,i,o){this.name=t,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=e.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return e.calcFullName=function(e,t,n){return t?t+":"+e:n?"@"+e+"."+n:e},e.fromParsedEvent=function(t){return new e(t.name,0===t.type?t.targetOrPhase:null,1===t.type?t.targetOrPhase:null,t.handler,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitEvent(this,t)},e}(),Ol=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}(),Rl=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}(),Dl=function(){function e(e,t,n,r,i,o,s,a,u,p,l,c,h){this.name=e,this.attrs=t,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=p,this.ngContentIndex=l,this.sourceSpan=c,this.endSourceSpan=h}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),Ll=function(){function e(e,t,n,r,i,o,s,a,u,p,l){this.attrs=e,this.outputs=t,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=p,this.sourceSpan=l}return e.prototype.visit=function(e,t){return e.visitEmbeddedTemplate(this,t)},e}(),Fl=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}(),Bl=function(){function e(e,t,n,r,i,o){this.directive=e,this.inputs=t,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return e.prototype.visit=function(e,t){return e.visitDirective(this,t)},e}(),Vl=function(){function e(e,t,n,r,i,o,s,a){this.token=e,this.multiProvider=t,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s,this.isModule=a}return e.prototype.visit=function(e,t){return null},e}();
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */(bl=e.ProviderAstType||(e.ProviderAstType={}))[bl.PublicService=0]="PublicService",bl[bl.PrivateService=1]="PrivateService",bl[bl.Component=2]="Component",bl[bl.Directive=3]="Directive",bl[bl.Builtin=4]="Builtin";var jl=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}(),Ul=function(){function e(){}return e.prototype.visitNgContent=function(e,t){},e.prototype.visitEmbeddedTemplate=function(e,t){},e.prototype.visitElement=function(e,t){},e.prototype.visitReference=function(e,t){},e.prototype.visitVariable=function(e,t){},e.prototype.visitEvent=function(e,t){},e.prototype.visitElementProperty=function(e,t){},e.prototype.visitAttr=function(e,t){},e.prototype.visitBoundText=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitDirective=function(e,t){},e.prototype.visitDirectiveProperty=function(e,t){},e}(),ql=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.visitEmbeddedTemplate=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.references),t(e.variables),t(e.directives),t(e.providers),t(e.children)})},t.prototype.visitElement=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.inputs),t(e.outputs),t(e.references),t(e.directives),t(e.providers),t(e.children)})},t.prototype.visitDirective=function(e,t){return this.visitChildren(t,function(t){t(e.inputs),t(e.hostProperties),t(e.hostEvents)})},t.prototype.visitChildren=function(e,t){var n=[],r=this;return t(function i(t){t&&t.length&&n.push(Hl(r,t,e))}),[].concat.apply([],n)},t}(Ul);function Hl(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),r}
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */var Wl=function Wl(e){var t=void 0===e?{}:e,n=t.defaultEncapsulation,r=t.useJit,i=void 0===r||r,o=t.jitDevMode,s=void 0!==o&&o,a=t.missingTranslation,u=void 0===a?null:a,p=t.preserveWhitespaces,l=t.strictInjectionParameters;this.defaultEncapsulation=void 0===n?E.Emulated:n,this.useJit=!!i,this.jitDevMode=!!s,this.missingTranslation=u,this.preserveWhitespaces=zl(kt(p)),this.strictInjectionParameters=!0===l};function zl(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 Kl=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(It(e.template)){if(It(e.templateUrl))throw Bt("'"+Wt(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw Bt("The template specified for component "+Wt(e.componentType)+" is not a string")}else{if(!It(e.templateUrl))throw Bt("No template specified for component "+Wt(e.componentType));if("string"!=typeof e.templateUrl)throw Bt("The templateUrl specified for component "+Wt(e.componentType)+" is not a string")}if(It(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw Bt("The preserveWhitespaces option for component "+Wt(e.componentType)+" must be a boolean");return Dt(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)),Dt(t,function(t){return r._preparseLoadedTemplate(e,t,n)})},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=Si.fromArray(e.interpolation),o=On({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),s=this._htmlParser.parse(t,o,{tokenizeExpansionForms:!0,interpolationConfig:i});if(s.errors.length>0)throw Bt("Template parse errors:\n"+s.errors.join("\n"));var a=this._normalizeStylesheet(new Sn({styles:e.styles,moduleUrl:e.moduleUrl})),u=new Ql;Wa(u,s.rootNodes);var p=this._normalizeStylesheet(new Sn({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:s,styles:a.styles.concat(p.styles),inlineStyleUrls:a.styleUrls.concat(p.styleUrls),styleUrls:this._normalizeStylesheet(new Sn({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:u.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return Dt(this._loadMissingExternalStylesheets(t.styleUrls.concat(t.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(e,t,r)})},e.prototype._normalizeLoadedTemplateMetadata=function(e,t,n){var r=this,i=a(t.styles);this._inlineStyles(t.inlineStyleUrls,n,i);var o=t.styleUrls,s=o.map(function(e){var t=n.get(e),i=a(t.styles);return r._inlineStyles(t.styleUrls,n,i),new Sn({moduleUrl:e,styles:i})}),u=e.encapsulation;return null==u&&(u=this._config.defaultEncapsulation),u===E.Emulated&&0===i.length&&0===o.length&&(u=E.None),new wn({encapsulation:u,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:i,styleUrls:o,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:s,preserveWhitespaces:zl(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),Dt(Lt(e.filter(function(e){return!t.has(e)}).map(function(e){return Dt(n._fetch(e),function(r){var i=n._normalizeStylesheet(new Sn({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(Xu).map(function(e){return t._urlResolver.resolve(n,e)}),i=e.styles.map(function(e){var i=function o(e,t,n){var r=[],i=n.replace(Yu,"").replace($u,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return Xu(o)?(r.push(e.resolve(t,o)),""):n[0]});return new Qu(i,r)}(t._urlResolver,n,e);return r.push.apply(r,a(i.styleUrls)),i.style});return new Sn({styles:i,styleUrls:r,moduleUrl:n})},e}(),Ql=function(){function e(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return e.prototype.visitElement=function(e,t){var n=up(e);switch(n.type){case Gu.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case Gu.STYLE:var r="";e.children.forEach(function(e){e instanceof Ba&&(r+=e.value)}),this.styles.push(r);break;case Gu.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,Wa(this,e.children),n.nonBindable&&this.ngNonBindableStackCount--,null},e.prototype.visitExpansion=function(e,t){Wa(this,e.cases)},e.prototype.visitExpansionCase=function(e,t){Wa(this,e.expression)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return null},e.prototype.visitText=function(e,t){return null},e}(),Xl=[O,k,I,A],Gl=function(){function e(e){this._reflector=e}return e.prototype.isDirective=function(e){var t=this._reflector.annotations(zt(e));return t&&t.some($l)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(zt(e));if(n){var r=Yl(n,$l);if(r){var i=this._reflector.propMetadata(e),o=this._reflector.guards(e);return this._mergeWithPropertyMetadata(r,i,o,e)}}if(t)throw new Error("No Directive annotation found on "+Wt(e));return null},e.prototype._mergeWithPropertyMetadata=function(e,t,n,r){var i=[],o=[],s={},a={};return Object.keys(t).forEach(function(e){var n=Yl(t[e],function(e){return V.isTypeOf(e)});n&&i.push(n.bindingPropertyName?e+": "+n.bindingPropertyName:e);var r=Yl(t[e],function(e){return j.isTypeOf(e)});r&&o.push(r.bindingPropertyName?e+": "+r.bindingPropertyName:e),t[e].filter(function(e){return U.isTypeOf(e)}).forEach(function(t){if(t.hostPropertyName){var n=t.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+t.hostPropertyName+"]"]=e}else s["["+e+"]"]=e}),t[e].filter(function(e){return q.isTypeOf(e)}).forEach(function(t){s["("+t.eventName+")"]=e+"("+(t.args||[]).join(",")+")"});var u=Yl(t[e],function(e){return Xl.some(function(t){return t.isTypeOf(e)})});u&&(a[e]=u)}),this._merge(e,i,o,s,a,n,r)},e.prototype._extractPublicName=function(e){return Mt(e,[null,e])[1].trim()},e.prototype._dedupeBindings=function(e){for(var t=new Set,n=new Set,r=[],i=e.length-1;i>=0;i--){var o=e[i],s=this._extractPublicName(o);n.add(s),t.has(s)||(t.add(s),r.push(o))}return r.reverse()},e.prototype._merge=function(e,t,n,r,o,s,a){var u=this._dedupeBindings(e.inputs?e.inputs.concat(t):t),p=this._dedupeBindings(e.outputs?e.outputs.concat(n):n),l=e.host?i({},e.host,r):r,c=e.queries?i({},e.queries,o):o;return F.isTypeOf(e)?F({selector:e.selector,inputs:u,outputs:p,host:l,exportAs:e.exportAs,moduleId:e.moduleId,queries:c,changeDetection:e.changeDetection,providers:e.providers,viewProviders:e.viewProviders,entryComponents:e.entryComponents,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,encapsulation:e.encapsulation,animations:e.animations,interpolation:e.interpolation,preserveWhitespaces:e.preserveWhitespaces}):R({selector:e.selector,inputs:u,outputs:p,host:l,exportAs:e.exportAs,queries:c,providers:e.providers,guards:s})},e}();function $l(e){return R.isTypeOf(e)||F.isTypeOf(e)}function Yl(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */var Jl,Zl=function(e){function t(t,n){return e.call(this,t,n)||this}return n(t,e),t}(Is),ec=/^i18n:?/,tc="|",nc="@@",rc=!1,ic=function ic(e,t){this.messages=e,this.errors=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(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(Jl||(Jl={}));var oc=function(){function e(e,t){this._implicitTags=e,this._implicitAttrs=t}return e.prototype.extract=function(e,t){var n=this;return this._init(Jl.Extract,t),e.forEach(function(e){return e.visit(n,null)}),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new ic(this._messages,this._errors)},e.prototype.merge=function(e,t,n){this._init(Jl.Merge,n),this._translations=t;var r=new qa("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new uu(r.children,this._errors)},e.prototype.visitExpansionCase=function(e,t){var n=Wa(this,e.expression,t);if(this._mode===Jl.Merge)return new ja(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=Wa(this,e.cases,t);return this._mode===Jl.Merge&&(e=new Va(e.switchValue,e.type,r,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=n,e},e.prototype.visitComment=function(e,t){var n=function r(e){return!!(e instanceof Ha&&e.value&&e.value.startsWith("i18n"))}(e);if(n&&this._isInTranslatableSection)this._reportError(e,"Could not start a block inside a translatable section");else{var i=function o(e){return!!(e instanceof Ha&&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 Wa(this,this._translateMessage(e,s))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else n&&(!rc&&console&&console.warn&&(rc=!0,console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+e.sourceSpan.start+(e.sourceSpan.details?", "+e.sourceSpan.details:"")+")")),this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(ec,"").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,o=[],s=void 0,a=function u(e){return e.attrs.find(function(e){return"i18n"===e.name})||null}(e),p=a?a.value:"",l=this._implicitTags.some(function(t){return e.name===t})&&!this._inIcu&&!this._isInTranslatableSection,c=!i&&l;if(this._inImplicitNode=i||l,this._isInTranslatableSection||this._inIcu)(a||c)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==Jl.Extract&&Wa(this,e.children);else{if(a||c){this._inI18nNode=!0;var h=this._addMessage(e.children,p);s=this._translateMessage(e,h)}if(this._mode==Jl.Extract){var f=a||c;f&&this._openTranslatableSection(e),Wa(this,e.children),f&&this._closeTranslatableSection(e,e.children)}}if(this._mode===Jl.Merge&&(s||e.children).forEach(function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(o=o.concat(r))}),this._visitAttributesOf(e),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===Jl.Merge){var d=this._translateAttributes(e);return new qa(e.name,d,o,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=Tp(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-")}).forEach(function(e){return n[e.name.slice("i18n-".length)]=e.value}),e.attrs.forEach(function(e){e.name in n?t._addMessage([e],n[e.name]):r.some(function(t){return e.name===t})&&t._addMessage([e])})},e.prototype._addMessage=function(e,t){if(0==e.length||1==e.length&&e[0]instanceof Ua&&!e[0].value)return null;var n=sc(t),r=this._createI18nMessage(e,n.meaning,n.description,n.id);return this._messages.push(r),r},e.prototype._translateMessage=function(e,t){if(t&&this._mode===Jl.Merge){var n=this._translations.get(t);if(n)return n;this._reportError(e,'Translation unavailable for message id="'+this._translations.digest(t)+'"')}return[]},e.prototype._translateAttributes=function(e){var t=this,n=e.attrs,r={};n.forEach(function(e){e.name.startsWith("i18n-")&&(r[e.name.slice("i18n-".length)]=sc(e.value))});var i=[];return n.forEach(function(n){if("i18n"!==n.name&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.id,a=t._createI18nMessage([n],o.meaning,o.description,s),u=t._translations.get(a);u?0==u.length?i.push(new Ua(n.name,"",n.sourceSpan)):u[0]instanceof Ba?i.push(new Ua(n.name,u[0].value,n.sourceSpan)):t._reportError(e,'Unexpected translation for attribute "'+n.name+'" (id="'+(s||t._translations.digest(a))+'")'):t._reportError(e,'Translation unavailable for attribute "'+n.name+'" (id="'+(s||t._translations.digest(a))+'")')}else i.push(n)}),i},e.prototype._mayBeAddBlockChildren=function(e){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(e)},e.prototype._openTranslatableSection=function(e){this._isInTranslatableSection?this._reportError(e,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(e.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),e.prototype._closeTranslatableSection=function(e,t){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==t.reduce(function(e,t){return e+(t instanceof Ha?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof jn)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(e,"Unexpected section end")},e.prototype._reportError=function(e,t){this._errors.push(new Zl(e.sourceSpan,t))},e}();function sc(e){if(!e)return{meaning:"",description:"",id:""};var t=e.indexOf(nc),n=e.indexOf(tc),r=s(t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],2),i=r[0],o=r[1],a=s(n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],2);return{meaning:a[0],description:a[1],id: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 ac=new(function(){function t(){this.closedByParent=!1,this.contentType=e.TagContentType.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(e){return!1},t.prototype.isClosedByChild=function(e){return!1},t}());function uc(e){return ac}
  /**
       * @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 pc=function(e){function t(){return e.call(this,uc)||this}return n(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(pu),lc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){var n=new cc,r=[];e.forEach(function(e){var t,i=[];e.sources.forEach(function(e){var t=new _r("context-group",{purpose:"location"});t.children.push(new xr(10),new _r("context",{"context-type":"sourcefile"},[new Er(e.filePath)]),new xr(10),new _r("context",{"context-type":"linenumber"},[new Er(""+e.startLine)]),new xr(8)),i.push(new xr(8),t)});var o=new _r("trans-unit",{id:e.id,datatype:"html"});(t=o.children).push.apply(t,a([new xr(8),new _r("source",{},n.serialize(e.nodes))],i)),e.description&&o.children.push(new xr(8),new _r("note",{priority:"1",from:"description"},[new Er(e.description)])),e.meaning&&o.children.push(new xr(8),new _r("note",{priority:"1",from:"meaning"},[new Er(e.meaning)])),o.children.push(new xr(6)),r.push(new xr(6),o)});var i=new _r("body",{},a(r,[new xr(4)])),o=new _r("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new xr(4),i,new xr(2)]),s=new _r("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new xr(2),o,new xr]);return mr([new yr({version:"1.0",encoding:"UTF-8"}),new xr,s,new xr])},t.prototype.load=function(e,t){var n=(new hc).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},u=new fc;if(Object.keys(i).forEach(function(e){var n=u.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,a(n.errors)),s[e]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return Xn(e)},t}(fr),cc=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Er(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,a(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Er("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,a([new Er(t+" {")],e.cases[t].visit(n),[new Er("} ")]))}),r.push(new Er("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=function r(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 _r("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+"/>"})];var i=new _r("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+">"}),o=new _r("x",{id:e.closeName,ctype:n,"equiv-text":"</"+e.tag+">"});return a([i],this.serialize(e.children),[o])},e.prototype.visitPlaceholder=function(e,t){return[new _r("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 _r("x",{id:e.name,"equiv-text":n})]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],a(e.map(function(e){return e.visit(t)})))},e}(),hc=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new pc).parse(e,t);return this._errors=n.errors,Wa(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):(Wa(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":break;case"target":var i=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"file":var o=e.attrs.find(function(e){return"target-language"===e.name});o&&(this._locale=o.value),Wa(this,e.children,null);break;default:Wa(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 Zl(e.sourceSpan,t))},e}(),fc=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new pc).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],a(Wa(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new jn(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 Wn("",n.value,e.sourceSpan):(this._addError(e,'<x> misses the "id" attribute'),null)}return"mrk"===e.name?[].concat.apply([],a(Wa(this,e.children))):(this._addError(e,"Unexpected tag"),null)},e.prototype.visitExpansion=function(e,t){var n={};return Wa(this,e.cases).forEach(function(t){n[t.value]=new Un(t.nodes,e.sourceSpan)}),new qn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:Wa(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 Zl(e.sourceSpan,t))},e}(),dc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){var n=new vc,r=[];e.forEach(function(e){var t=new _r("unit",{id:e.id}),i=new _r("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new xr(8),new _r("note",{category:"description"},[new Er(e.description)])),e.meaning&&i.children.push(new xr(8),new _r("note",{category:"meaning"},[new Er(e.meaning)]))),e.sources.forEach(function(e){i.children.push(new xr(8),new _r("note",{category:"location"},[new Er(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new xr(6)),t.children.push(new xr(6),i);var o=new _r("segment");o.children.push(new xr(8),new _r("source",{},n.serialize(e.nodes)),new xr(6)),t.children.push(new xr(6),o,new xr(4)),r.push(new xr(4),t)});var i=new _r("file",{original:"ng.template",id:"ngi18n"},a(r,[new xr(2)])),o=new _r("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new xr(2),i,new xr]);return mr([new yr({version:"1.0",encoding:"UTF-8"}),new xr,o,new xr])},t.prototype.load=function(e,t){var n=(new mc).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},u=new yc;if(Object.keys(i).forEach(function(e){var n=u.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,a(n.errors)),s[e]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return Gn(e)},t}(fr),vc=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Er(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,a(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Er("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,a([new Er(t+" {")],e.cases[t].visit(n),[new Er("} ")]))}),r.push(new Er("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=function i(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 _r("ph",{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:r,disp:"<"+e.tag+"/>"})];var o=new _r("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:r,dispStart:"<"+e.tag+">",dispEnd:"</"+e.tag+">"}),s=[].concat.apply([],a(e.children.map(function(e){return e.visit(n)})));return s.length?s.forEach(function(e){return o.children.push(e)}):o.children.push(new Er("")),[o]},e.prototype.visitPlaceholder=function(e,t){var n=(this._nextPlaceholderId++).toString();return[new _r("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 _r("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([],a(e.map(function(e){return e.visit(t)})))},e}(),mc=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new pc).parse(e,t);return this._errors=n.errors,Wa(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):(Wa(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.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"xliff":var o=e.attrs.find(function(e){return"trgLang"===e.name});o&&(this._locale=o.value);var s=e.attrs.find(function(e){return"version"===e.name});if(s){var a=s.value;"2.0"!==a?this._addError(e,"The XLIFF file version "+a+" is not compatible with XLIFF 2.0 serializer"):Wa(this,e.children,null)}break;default:Wa(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 Zl(e.sourceSpan,t))},e}(),yc=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new pc).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],a(Wa(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new jn(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 Wn("",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}),o=e.attrs.find(function(e){return"equivEnd"===e.name});if(i){if(o){var s=o.value,u=[];return u.concat.apply(u,a([new Wn("",i.value,e.sourceSpan)],e.children.map(function(e){return e.visit(n,null)}),[new Wn("",s,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([],a(Wa(this,e.children)));default:this._addError(e,"Unexpected tag")}return null},e.prototype.visitExpansion=function(e,t){var n={};return Wa(this,e.cases).forEach(function(t){n[t.value]=new Un(t.nodes,e.sourceSpan)}),new qn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:[].concat.apply([],a(Wa(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 Zl(e.sourceSpan,t))},e}(),gc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){throw new Error("Unsupported")},t.prototype.load=function(e,t){var n=(new _c).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Ec;if(Object.keys(i).forEach(function(e){!function n(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(e,t,{enumerable:!0,value:n}),n},set:function(e){throw new Error("Could not overwrite an XTB translation")}})}(s,e,function(){var n=a.convert(i[e],t),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return Tr(e)},t.prototype.createNameMapper=function(e){return new dr(e,Mr)},t}(fr),_c=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._bundleDepth=0,this._msgIdToHtml={};var n=(new pc).parse(e,t);return this._errors=n.errors,Wa(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(e,"<translationbundle> elements can not be nested");var n=e.attrs.find(function(e){return"lang"===e.name});n&&(this._locale=n.value),Wa(this,e.children,null),this._bundleDepth--;break;case"translation":var r=e.attrs.find(function(e){return"id"===e.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(e,"Duplicated translations for msg "+i);else{var o=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._msgIdToHtml[i]=o}}else this._addError(e,'<translation> misses the "id" attribute');break;default:this._addError(e,"Unexpected tag")}},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 Zl(e.sourceSpan,t))},e}(),Ec=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new pc).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:Wa(this,n.rootNodes),errors:this._errors}},e.prototype.visitText=function(e,t){return new jn(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){var n={};return Wa(this,e.cases).forEach(function(t){n[t.value]=new Un(t.nodes,e.sourceSpan)}),new qn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:Wa(this,e.expression)}},e.prototype.visitElement=function(e,t){if("ph"===e.name){var n=e.attrs.find(function(e){return"name"===e.name});if(n)return new Wn("",n.value,e.sourceSpan);this._addError(e,'<ph> misses the "name" attribute')}else this._addError(e,"Unexpected tag");return null},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new Zl(e.sourceSpan,t))},e}(),xc=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),void 0===i&&(i=L.Warning),this._i18nNodesByMsgId=e,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new Sc(e,t,n,r,i,o)}return e.load=function(t,n,r,i,o){var s=r.load(t,n);return new e(s.i18nNodesByMsgId,s.locale,function(e){return r.digest(e)},function(e){return r.createNameMapper(e)},i,o)},e.prototype.get=function(e){var t=this._i18nToHtml.convert(e);if(t.errors.length)throw new Error(t.errors.join("\n"));return t.nodes},e.prototype.has=function(e){return this.digest(e)in this._i18nNodesByMsgId},e}(),Sc=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),this._i18nNodesByMsgId=e,this._locale=t,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return e.prototype.convert=function(e){this._contextStack.length=0,this._errors.length=0;var t=this._convertToText(e),n=e.nodes[0].sourceSpan.start.file.url,r=(new hu).parse(t,n,{tokenizeExpansionForms:!0});return{nodes:r.rootNodes,errors:a(this._errors,r.errors)}},e.prototype.visitText=function(e,t){return wr(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"{"+(this._srcMsg.placeholders.hasOwnProperty(e.expression)?this._srcMsg.placeholders[e.expression]:e.expression)+", "+e.type+", "+r.join(" ")+"}"},e.prototype.visitPlaceholder=function(e,t){var n=this._mapper(e.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(e,'Unknown placeholder "'+e.name+'"'),"")},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=""+e.tag,i=Object.keys(e.attrs).map(function(t){return t+'="'+e.attrs[t]+'"'}).join(" ");return e.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+e.children.map(function(e){return e.visit(n)}).join("")+"</"+r+">"},e.prototype.visitIcuPlaceholder=function(e,t){return this._convertToText(this._srcMsg.placeholderToMessage[e.name])},e.prototype._convertToText=function(e){var t,n=this,r=this._digest(e),i=this._mapperFactory?this._mapperFactory(e):null;this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._i18nNodesByMsgId.hasOwnProperty(r)?(t=this._i18nNodesByMsgId[r],this._mapper=function(e){return i?i.toInternalName(e):e}):(this._missingTranslationStrategy===L.Error?this._addError(e.nodes[0],'Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")):this._console&&this._missingTranslationStrategy===L.Warning&&this._console.warn('Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")),t=e.nodes,this._mapper=function(e){return e});var o=t.map(function(e){return e.visit(n)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o},e.prototype._addError=function(e,t){this._errors.push(new Zl(e.sourceSpan,t))},e}(),wc=function(){function e(e,t,n,r,i){if(void 0===r&&(r=L.Warning),this._htmlParser=e,t){var o=function s(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new Cr;case"xtb":return new gc;case"xliff2":case"xlf2":return new dc;case"xliff":case"xlf":default:return new lc}}
  /**
       * @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=xc.load(t,"i18n",o,r,i)}else this._translationBundle=new xc({},null,Xn,void 0,r,i)}return e.prototype.parse=function(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig||wi,o=this._htmlParser.parse(e,t,i({interpolationConfig:r},n));return o.errors.length?new uu(o.rootNodes,o.errors):function s(e,t,n,r,i){return new oc(r,i).merge(e,t,n)}(o.rootNodes,this._translationBundle,r,[],{})},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 Cc(e,t,n){return void 0===n&&(n=null),At(t,new bc(e),n)}var bc=function(){function e(e){this.ctx=e}return e.prototype.visitArray=function(e,t){var n=this;return xt(e.map(function(e){return At(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 He(t,At(e[t],n,null),i.has(t)))}),new We(r,t)},e.prototype.visitPrimitive=function(e,t){return bt(e,t)},e.prototype.visitOther=function(e,t){return e instanceof ge?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 Tc(e,t){return{key:e,value:t,quoted:!1}}var Pc=function(){function t(e,t){this.reflector=e,this.alwaysGenerateDef=t,this.tokenInjector=e.resolveExternalReference(on.Injector)}return t.prototype.depsArray=function(e,t){var n=this;return e.map(function(e){var r,i,o=e,s=0;if(Array.isArray(e))for(var a=0;a<e.length;a++){var u=e[a];u&&("Optional"===u.ngMetadataName?s|=8:"SkipSelf"===u.ngMetadataName?s|=4:"Self"===u.ngMetadataName?s|=2:o="Inject"===u.ngMetadataName?u.token:u)}return r="string"==typeof o?bt(o):o===n.tokenInjector?gt(on.INJECTOR):t.importExpr(o),i=0!==s?[r,bt(s)]:[r],gt(on.inject).callFn(i)})},t.prototype.factoryFor=function(e,t){var n;if(e.useExisting)n=gt(on.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=Cc(t,e.useValue);else{var i=e.useClass||e.symbol,o=this.depsArray(this.reflector.parameters(i),t);n=new Ne(t.importExpr(i),o)}return wt([],[new Je(n)],void 0,void 0,e.symbol.name+"_Factory")},t.prototype.injectableDef=function(e,t){var n=Ke;void 0!==e.providedIn&&(n=null===e.providedIn?Ke:"string"==typeof e.providedIn?bt(e.providedIn):t.importExpr(e.providedIn));var r=[Tc("factory",this.factoryFor(e,t)),Tc("token",t.importExpr(e.type.reference)),Tc("providedIn",n)];return gt(on.defineInjectable).callFn([St(r)])},t.prototype.compile=function(t,n){if(this.alwaysGenerateDef||void 0!==t.providedIn){var r=dn(t.type),i=new rt(r,null,[new et("ngInjectableDef",ce,[e.StmtModifier.Static],this.injectableDef(t,n))],[],new tt(null,[],[]),[]);n.statements.push(i)}},t}(),Mc=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Nc=/\.ngfactory\.|\.ngsummary\./,Ac=/\.ngsummary\./,Ic=/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 kc(e,t){void 0===t&&(t=!1);var n=Rc(e,t);return n[0]+".ngfactory"+Dc(n[1])}function Oc(e){return e.replace(Nc,".")}function Rc(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 Dc(e){return".tsx"===e?".ts":e}function Lc(e){return e.replace(Mc,"")+".ngsummary.json"}function Fc(e,t){void 0===t&&(t=!1);var n=Rc(Oc(e),t);return n[0]+".ngsummary"+n[1]}function Bc(e){return e+"NgSummary"}var Vc=/\u0275\d+/;function jc(e){return Vc.test(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 Uc=function(){function t(e,t,n,r,i,o,s,a,u,p,l,c){this._config=e,this._htmlParser=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,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 t.prototype.getReflector=function(){return this._reflector},t.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)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(e,t){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+t+" for type "+Wt(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},t.prototype.getGeneratedClass=function(e,t){return e instanceof un?this._staticSymbolCache.get(kc(e.filePath),t):this._createProxyClass(e,t)},t.prototype.getComponentViewClass=function(e){return this.getGeneratedClass(e,mn(e,0))},t.prototype.getHostComponentViewClass=function(e){return this.getGeneratedClass(e,gn(e))},t.prototype.getHostComponentType=function(e){var t=dn({reference:e})+"_Host";return e instanceof un?this._staticSymbolCache.get(e.filePath,t):this._createProxyClass(e,t)},t.prototype.getRendererType=function(e){return e instanceof un?this._staticSymbolCache.get(kc(e.filePath),yn(e)):{}},t.prototype.getComponentFactory=function(e,t,n,r){if(t instanceof un)return this._staticSymbolCache.get(kc(t.filePath),_n(t));var i=this.getHostComponentViewClass(t);return this._reflector.resolveExternalReference(on.createComponentFactory)(e,t,i,n,r,[])},t.prototype.initComponentFactory=function(e,t){var n;e instanceof un||(n=e.ngContentSelectors).push.apply(n,a(t))},t.prototype._loadSummary=function(e,t){var n=this._summaryCache.get(e);if(!n){var r=this._summaryResolver.resolveSummary(e);this._summaryCache.set(e,(n=r?r.type:null)||null)}return n&&n.summaryKind===t?n:null},t.prototype.getHostComponentMetadata=function(e,t){var n=this.getHostComponentType(e.type.reference);t||(t=this.getHostComponentViewClass(n));var r=w.parse(e.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Cn.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new wn({encapsulation:E.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:x.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:t,rendererType:{id:"__Host__",encapsulation:E.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(e,t,n){var r=this;if(this._directiveCache.has(t))return null;t=zt(t);var i=this.getNonNormalizedDirectiveMetadata(t),o=i.metadata,s=function(e){var n=new Cn({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.componentViewType,rendererType:o.rendererType,componentFactory:o.componentFactory,template:e});return e&&r.initComponentFactory(o.componentFactory,e.ngContentSelectors),r._directiveCache.set(t,n),r._summaryCache.set(t,n.toSummary()),null};if(o.isComponent){var a=o.template,u=this._directiveNormalizer.normalizeTemplate({ngModuleType:e,componentType:t,moduleUrl:this._reflector.componentModuleUrl(t,i.annotation),encapsulation:a.encapsulation,template:a.template,templateUrl:a.templateUrl,styles:a.styles,styleUrls:a.styleUrls,animations:a.animations,interpolation:a.interpolation,preserveWhitespaces:a.preserveWhitespaces});return Kt(u)&&n?(this._reportError(function p(e){var t=Error("Can't compile synchronously as "+Wt(e)+" is still being loaded!");return t.ngComponentType=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
       */(t),t),null):Dt(u,s)}return s(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(e){var t=this;if(!(e=zt(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(F.isTypeOf(r)){_i("styles",(s=r).styles),_i("styleUrls",s.styleUrls),xi("interpolation",s.interpolation);var o=s.animations;i=new wn({encapsulation:kt(s.encapsulation),template:kt(s.template),templateUrl:kt(s.templateUrl),htmlAst:null,styles:s.styles||[],styleUrls:s.styleUrls||[],animations:o||[],interpolation:kt(s.interpolation),isInline:!!s.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:kt(r.preserveWhitespaces)})}var s,a=null,u=[],p=[],l=r.selector;F.isTypeOf(r)?(a=(s=r).changeDetection,s.viewProviders&&(u=this._getProvidersMetadata(s.viewProviders,p,'viewProviders for "'+zc(e)+'"',[],e)),s.entryComponents&&(p=qc(s.entryComponents).map(function(e){return t._getEntryComponentMetadata(e)}).concat(p)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(Bt("Directive "+zc(e)+" has no selector, please add it!"),e),l="error");var c=[];null!=r.providers&&(c=this._getProvidersMetadata(r.providers,p,'providers for "'+zc(e)+'"',[],e));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,e),f=this._getQueriesMetadata(r.queries,!0,e));var d=Cn.create({isHost:!1,selector:l,exportAs:kt(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)),this._nonNormalizedDirectiveCache.set(e,n={metadata:d,annotation:r}),n},t.prototype.getDirectiveMetadata=function(e){var t=this._directiveCache.get(e);return t||this._reportError(Bt("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+zc(e)+"."),e),t},t.prototype.getDirectiveSummary=function(t){var n=this._loadSummary(t,e.CompileSummaryKind.Directive);return n||this._reportError(Bt("Illegal state: Could not load the summary for directive "+zc(t)+"."),t),n},t.prototype.isDirective=function(t){return!!this._loadSummary(t,e.CompileSummaryKind.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,e.CompileSummaryKind.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,e.CompileSummaryKind.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t,n){void 0===n&&(n=null);var r=this._loadSummary(t,e.CompileSummaryKind.NgModule);if(!r){var i=this.getNgModuleMetadata(t,!1,n);(r=i?i.toSummary():null)&&this._summaryCache.set(t,r)}return r},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(e,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(e,n.reference,t);i&&o.push(i)}),i.declaredPipes.forEach(function(e){return r._loadPipeMetadata(e.reference)})),Promise.all(o)},t.prototype.getShallowModuleMetadata=function(e){var t=this._shallowModuleCache.get(e);if(t)return t;var n=Yl(this._reflector.shallowAnnotations(e),H.isTypeOf);return t={type:this._getTypeMetadata(e),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(e,t),t},t.prototype.getNgModuleMetadata=function(e,t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null),e=zt(e);var i=this._ngModuleCache.get(e);if(i)return i;var o=this._ngModuleResolver.resolve(e,t);if(!o)return null;var s=[],u=[],p=[],l=[],c=[],h=[],f=[],d=[],v=[];o.imports&&qc(o.imports).forEach(function(t){var i=void 0;if(Hc(t)?i=t:t&&t.ngModule&&(i=t.ngModule,t.providers&&h.push.apply(h,a(r._getProvidersMetadata(t.providers,f,"provider for the NgModule '"+zc(i)+"'",[],t)))),i){if(!r._checkSelfImport(e,i))if(n||(n=new Set),n.has(i))r._reportError(Bt(r._getTypeDescriptor(i)+" '"+zc(t)+"' is imported recursively by the module '"+zc(e)+"'."),e);else{n.add(i);var o=r.getNgModuleSummary(i,n);n.delete(i),o?l.push(o):r._reportError(Bt("Unexpected "+r._getTypeDescriptor(t)+" '"+zc(t)+"' imported by the module '"+zc(e)+"'. Please add a @NgModule annotation."),e)}}else r._reportError(Bt("Unexpected value '"+zc(t)+"' imported by the module '"+zc(e)+"'"),e)}),o.exports&&qc(o.exports).forEach(function(t){if(Hc(t))if(n||(n=new Set),n.has(t))r._reportError(Bt(r._getTypeDescriptor(t)+" '"+Wt(t)+"' is exported recursively by the module '"+zc(e)+"'"),e);else{n.add(t);var i=r.getNgModuleSummary(t,n);n.delete(t),i?c.push(i):u.push(r._getIdentifierMetadata(t))}else r._reportError(Bt("Unexpected value '"+zc(t)+"' exported by the module '"+zc(e)+"'"),e)});var m=this._getTransitiveNgModuleMetadata(l,c);o.declarations&&qc(o.declarations).forEach(function(t){if(Hc(t)){var n=r._getIdentifierMetadata(t);if(r.isDirective(t))m.addDirective(n),s.push(n),r._addTypeToModule(t,e);else{if(!r.isPipe(t))return void r._reportError(Bt("Unexpected "+r._getTypeDescriptor(t)+" '"+zc(t)+"' declared by the module '"+zc(e)+"'. Please add a @Pipe/@Directive/@Component annotation."),e);m.addPipe(n),m.pipes.push(n),p.push(n),r._addTypeToModule(t,e)}}else r._reportError(Bt("Unexpected value '"+zc(t)+"' declared by the module '"+zc(e)+"'"),e)});var y=[],g=[];return u.forEach(function(t){if(m.directivesSet.has(t.reference))y.push(t),m.addExportedDirective(t);else{if(!m.pipesSet.has(t.reference))return void r._reportError(Bt("Can't export "+r._getTypeDescriptor(t.reference)+" "+zc(t.reference)+" from "+zc(e)+" as it was neither declared nor imported!"),e);g.push(t),m.addExportedPipe(t)}}),o.providers&&h.push.apply(h,a(this._getProvidersMetadata(o.providers,f,"provider for the NgModule '"+zc(e)+"'",[],e))),o.entryComponents&&f.push.apply(f,a(qc(o.entryComponents).map(function(e){return r._getEntryComponentMetadata(e)}))),o.bootstrap&&qc(o.bootstrap).forEach(function(t){Hc(t)?d.push(r._getIdentifierMetadata(t)):r._reportError(Bt("Unexpected value '"+zc(t)+"' used in the bootstrap property of module '"+zc(e)+"'"),e)}),f.push.apply(f,a(d.map(function(e){return r._getEntryComponentMetadata(e.reference)}))),o.schemas&&v.push.apply(v,a(qc(o.schemas))),i=new Pn({type:this._getTypeMetadata(e),providers:h,entryComponents:f,bootstrapComponents:d,schemas:v,declaredDirectives:s,exportedDirectives:y,declaredPipes:p,exportedPipes:g,importedModules:l,exportedModules:c,transitiveModule:m,id:o.id||null}),f.forEach(function(e){return m.addEntryComponent(e)}),h.forEach(function(e){return m.addProvider(e,i.type)}),m.addModule(i.type),this._ngModuleCache.set(e,i),i},t.prototype._checkSelfImport=function(e,t){return e===t&&(this._reportError(Bt("'"+zc(e)+"' module can't import itself"),e),!0)},t.prototype._getTypeDescriptor=function(e){if(Hc(e)){if(this.isDirective(e))return"directive";if(this.isPipe(e))return"pipe";if(this.isNgModule(e))return"module"}return e.provide?"provider":"value"},t.prototype._addTypeToModule=function(e,t){var n=this._ngModuleOfTypes.get(e);n&&n!==t?this._reportError(Bt("Type "+zc(e)+" is part of the declarations of 2 modules: "+zc(n)+" and "+zc(t)+"! Please consider moving "+zc(e)+" to a higher module that imports "+zc(n)+" and "+zc(t)+". You can also create a new NgModule that exports and includes "+zc(e)+" then import that NgModule in "+zc(n)+" and "+zc(t)+"."),t):this._ngModuleOfTypes.set(e,t)},t.prototype._getTransitiveNgModuleMetadata=function(e,t){var n=new Mn,r=new Map;return e.concat(t).forEach(function(e){e.modules.forEach(function(e){return n.addModule(e)}),e.entryComponents.forEach(function(e){return n.addEntryComponent(e)});var t=new Set;e.providers.forEach(function(e){var i=xn(e.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=e.module.reference;!t.has(i)&&o.has(s)||(o.add(s),t.add(i),n.addProvider(e.provider,e.module))})}),t.forEach(function(e){e.exportedDirectives.forEach(function(e){return n.addExportedDirective(e)}),e.exportedPipes.forEach(function(e){return n.addExportedPipe(e)})}),e.forEach(function(e){e.exportedDirectives.forEach(function(e){return n.addDirective(e)}),e.exportedPipes.forEach(function(e){return n.addPipe(e)})}),n},t.prototype._getIdentifierMetadata=function(e){return{reference:e=zt(e)}},t.prototype.isInjectable=function(e){return this._reflector.tryAnnotations(e).some(function(e){return W.isTypeOf(e)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:e.CompileSummaryKind.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype.getInjectableMetadata=function(t,n,r){void 0===n&&(n=null),void 0===r&&(r=!0);var i=this._loadSummary(t,e.CompileSummaryKind.Injectable),o=i?i.type:this._getTypeMetadata(t,n,r),s=this._reflector.annotations(t).filter(function(e){return W.isTypeOf(e)});if(0===s.length)return null;var a=s[s.length-1];return{symbol:t,type:o,providedIn:a.providedIn,useValue:a.useValue,useClass:a.useClass,useExisting:a.useExisting,useFactory:a.useFactory,deps:a.deps}},t.prototype._getTypeMetadata=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(e);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,t,n),lifecycleHooks:function i(e,t){return zo.filter(function(n){return function r(e,t,n){return e.hasLifecycleHook(n,function r(e){switch(e){case jo.OnInit:return"ngOnInit";case jo.OnDestroy:return"ngOnDestroy";case jo.DoCheck:return"ngDoCheck";case jo.OnChanges:return"ngOnChanges";case jo.AfterContentInit:return"ngAfterContentInit";case jo.AfterContentChecked:return"ngAfterContentChecked";case jo.AfterViewInit:return"ngAfterViewInit";case jo.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))}(e,n,t)})}(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(e,t){return void 0===t&&(t=null),{reference:e=zt(e),diDeps:this._getDependenciesMetadata(e,t)}},t.prototype.getPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||this._reportError(Bt("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+zc(e)+"."),e),t||null},t.prototype.getPipeSummary=function(t){var n=this._loadSummary(t,e.CompileSummaryKind.Pipe);return n||this._reportError(Bt("Illegal state: Could not load the summary for pipe "+zc(t)+"."),t),n},t.prototype.getOrLoadPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||(t=this._loadPipeMetadata(e)),t},t.prototype._loadPipeMetadata=function(e){e=zt(e);var t=this._pipeResolver.resolve(e),n=new bn({type:this._getTypeMetadata(e),name:t.name,pure:!!t.pure});return this._pipeCache.set(e,n),this._summaryCache.set(e,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=!1,o=(t||this._reflector.parameters(e)||[]).map(function(e){var t=!1,n=!1,o=!1,s=!1,a=!1,u=null;return Array.isArray(e)?e.forEach(function(e){$.isTypeOf(e)?n=!0:X.isTypeOf(e)?o=!0:G.isTypeOf(e)?s=!0:Q.isTypeOf(e)?a=!0:N.isTypeOf(e)?(t=!0,u=e.attributeName):P.isTypeOf(e)?u=e.token:M.isTypeOf(e)||e instanceof un?u=e:Hc(e)&&null==u&&(u=e)}):u=e,null==u?(i=!0,null):{isAttribute:t,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var s=o.map(function(e){return e?zc(e.token):"?"}).join(", "),a="Can't resolve all parameters for "+zc(e)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(Bt(a),e):this._console.warn("Warning: "+a+" This will become an error in Angular v6.x")}return o},t.prototype._getTokenMetadata=function(e){return"string"==typeof(e=zt(e))?{value:e}:{identifier:{reference:e}}},t.prototype._getProvidersMetadata=function(e,t,n,r,i){var o=this;return void 0===r&&(r=[]),e.forEach(function(s,u){if(Array.isArray(s))o._getProvidersMetadata(s,t,n,r);else{var p=void 0;if((s=zt(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),p=new An(s.provide,s);else{if(!Hc(s)){if(void 0===s)return void o._reportError(Bt("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));var l=e.reduce(function(e,t,n){return n<u?e.push(""+zc(t)):n==u?e.push("?"+zc(t)+"?"):n==u+1&&e.push("..."),e},[]).join(", ");return void o._reportError(Bt("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}p=new An(s,{useClass:s})}p.token===o._reflector.resolveExternalReference(on.ANALYZE_FOR_ENTRY_COMPONENTS)?t.push.apply(t,a(o._getEntryComponentsFromProvider(p,i))):r.push(o.getProviderMetadata(p))}}),r},t.prototype._validateProvider=function(e){e.hasOwnProperty("useClass")&&null==e.useClass&&this._reportError(Bt("Invalid provider for "+zc(e.provide)+". useClass cannot be "+e.useClass+".\n           Usually it happens when:\n           1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n           2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(e,t){var n=this,r=[],i=[];return e.useFactory||e.useExisting||e.useClass?(this._reportError(Bt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),t),[]):e.multi?(function o(e,t){At(e,new Wc,t)}(e.useValue,i),i.forEach(function(e){var t=n._getEntryComponentMetadata(e.reference,!1);t&&r.push(t)}),r):(this._reportError(Bt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),t),[])},t.prototype._getEntryComponentMetadata=function(t,n){void 0===n&&(n=!0);var r=this.getNonNormalizedDirectiveMetadata(t);if(r&&r.metadata.isComponent)return{componentType:t,componentFactory:r.metadata.componentFactory};var i=this._loadSummary(t,e.CompileSummaryKind.Directive);if(i&&i.isComponent)return{componentType:t,componentFactory:i.componentFactory};if(n)throw Bt(t.name+" cannot be used as an entry component.");return null},t.prototype._getInjectableTypeMetadata=function(t,n){void 0===n&&(n=null);var r=this._loadSummary(t,e.CompileSummaryKind.Injectable);return r?r.type:this._getTypeMetadata(t,n)},t.prototype.getProviderMetadata=function(e){var t=void 0,n=null,r=null,i=this._getTokenMetadata(e.token);return e.useClass?(t=(n=this._getInjectableTypeMetadata(e.useClass,e.dependencies)).diDeps,e.token===e.useClass&&(i={identifier:n})):e.useFactory&&(t=(r=this._getFactoryMetadata(e.useFactory,e.dependencies)).diDeps),{token:i,useClass:n,useValue:e.useValue,useFactory:r,useExisting:e.useExisting?this._getTokenMetadata(e.useExisting):void 0,deps:t,multi:e.multi}},t.prototype._getQueriesMetadata=function(e,t,n){var r=this,i=[];return Object.keys(e).forEach(function(o){var s=e[o];s.isViewQuery===t&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(e){return e.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(e,t,n){var r,i=this;return"string"==typeof e.selector?r=this._queryVarBindings(e.selector).map(function(e){return i._getTokenMetadata(e)}):e.selector?r=[this._getTokenMetadata(e.selector)]:(this._reportError(Bt("Can't construct a query for the property \""+t+'" of "'+zc(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:e.first,descendants:e.descendants,propertyName:t,read:e.read?this._getTokenMetadata(e.read):null}},t.prototype._reportError=function(e,t,n){if(!this._errorCollector)throw e;this._errorCollector(e,t),n&&this._errorCollector(e,n)},t}();function qc(e){return function t(e){return e?Array.from(new Set(e)):[]}(function e(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var i=zt(t[r]);Array.isArray(i)?e(i,n):n.push(i)}return n}(e))}function Hc(e){return e instanceof un||e instanceof Y}var Wc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.visitOther=function(e,t){t.push({reference:e})},t}(Ot);function zc(e){return e instanceof un?e.name+" in "+e.filePath:Wt(e)}var Kc=function(e){function t(t,n){return e.call(this,n,t)||this}return n(t,e),t}(Is),Qc=function Qc(e,t){var n=this;this.reflector=e,this.component=t,this.errors=[],this.viewQueries=function r(e){var t=1,n=new Map;return e.viewQueries&&e.viewQueries.forEach(function(e){return Zc(n,{meta:e,queryId:t++})}),n}(t),this.viewProviders=new Map,t.viewProviders.forEach(function(e){null==n.viewProviders.get(xn(e.token))&&n.viewProviders.set(xn(e.token),!0)})},Xc=function(){function t(t,n,r,i,o,s,a,u,p){var l=this;this.viewContext=t,this._parent=n,this._isViewRoot=r,this._directiveAsts=i,this._sourceSpan=p,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},o.forEach(function(e){return l._attrs[e.name]=e.value});var c=i.map(function(e){return e.directive});if(this._allProviders=function h(t,n,r){var i=new Map;return t.forEach(function(t){Jc([{token:{identifier:t.type},useClass:t.type}],t.isComponent?e.ProviderAstType.Component:e.ProviderAstType.Directive,!0,n,r,i,!1)}),t.filter(function(e){return e.isComponent}).concat(t.filter(function(e){return!e.isComponent})).forEach(function(t){Jc(t.providers,e.ProviderAstType.PublicService,!1,n,r,i,!1),Jc(t.viewProviders,e.ProviderAstType.PrivateService,!1,n,r,i,!1)}),i}(c,p,t.errors),this._contentQueries=function f(e,t){var n=e,r=new Map;return t.forEach(function(e,t){e.queries&&e.queries.forEach(function(e){return Zc(r,{meta:e,queryId:n++})})}),r}(u,c),Array.from(this._allProviders.values()).forEach(function(e){l._addQueryReadsTo(e.token,e.token,l._queriedTokens)}),a){var d=an(this.viewContext.reflector,on.TemplateRef);this._addQueryReadsTo(d,d,this._queriedTokens)}s.forEach(function(e){var t=e.value||an(l.viewContext.reflector,on.ElementRef);l._addQueryReadsTo({value:e.name},t,l._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(on.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(e){(e.eager||l._queriedTokens.get(xn(e.token)))&&l._getOrCreateLocalProvider(e.providerType,e.token,!0)})}return t.prototype.afterElement=function(){var e=this;Array.from(this._allProviders.values()).forEach(function(t){e._getOrCreateLocalProvider(t.providerType,t.token,!1)})},Object.defineProperty(t.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(t.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(t.prototype,"queryMatches",{get:function(){var e=[];return this._queriedTokens.forEach(function(t){e.push.apply(e,a(t))}),e},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(e,t,n){this._getQueriesFor(e).forEach(function(e){var r=e.meta.read||t,i=xn(r),o=n.get(i);o||n.set(i,o=[]),o.push({queryId:e.queryId,value:r})})},t.prototype._getQueriesFor=function(e){for(var t,n=[],r=this,i=0;null!==r;)(t=r._contentQueries.get(xn(e)))&&n.push.apply(n,a(t.filter(function(e){return e.meta.descendants||i<=1}))),r._directiveAsts.length>0&&i++,r=r._parent;return(t=this.viewContext.viewQueries.get(xn(e)))&&n.push.apply(n,a(t)),n},t.prototype._getOrCreateLocalProvider=function(t,n,r){var i=this,o=this._allProviders.get(xn(n));if(!o||(t===e.ProviderAstType.Directive||t===e.ProviderAstType.PublicService)&&o.providerType===e.ProviderAstType.PrivateService||(t===e.ProviderAstType.PrivateService||t===e.ProviderAstType.PublicService)&&o.providerType===e.ProviderAstType.Builtin)return null;var s=this._transformedProviders.get(xn(n));if(s)return s;if(null!=this._seenProviders.get(xn(n)))return this.viewContext.errors.push(new Kc("Cannot instantiate cyclic dependency! "+En(n),this._sourceSpan)),null;this._seenProviders.set(xn(n),!0);var a=o.providers.map(function(e){var t=e.useValue,n=e.useExisting,s=void 0;if(null!=e.useExisting){var a=i._getDependency(o.providerType,{token:e.useExisting},r);null!=a.token?n=a.token:(n=null,t=a.value)}else e.useFactory?s=(e.deps||e.useFactory.diDeps).map(function(e){return i._getDependency(o.providerType,e,r)}):e.useClass&&(s=(e.deps||e.useClass.diDeps).map(function(e){return i._getDependency(o.providerType,e,r)}));return $c(e,{useExisting:n,useValue:t,deps:s})});return s=Yc(o,{eager:r,providers:a}),this._transformedProviders.set(xn(n),s),s},t.prototype._getLocalDependency=function(t,n,r){if(void 0===r&&(r=!1),n.isAttribute){var i=this._attrs[n.token.value];return{isValue:!0,value:null==i?null:i}}if(null!=n.token){if(t===e.ProviderAstType.Directive||t===e.ProviderAstType.Component){if(xn(n.token)===this.viewContext.reflector.resolveExternalReference(on.Renderer)||xn(n.token)===this.viewContext.reflector.resolveExternalReference(on.ElementRef)||xn(n.token)===this.viewContext.reflector.resolveExternalReference(on.ChangeDetectorRef)||xn(n.token)===this.viewContext.reflector.resolveExternalReference(on.TemplateRef))return n;xn(n.token)===this.viewContext.reflector.resolveExternalReference(on.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(xn(n.token)===this.viewContext.reflector.resolveExternalReference(on.Injector))return n;if(null!=this._getOrCreateLocalProvider(t,n.token,r))return n}return null},t.prototype._getDependency=function(t,n,r){void 0===r&&(r=!1);var i=this,o=r,s=null;if(n.isSkipSelf||(s=this._getLocalDependency(t,n,r)),n.isSelf)!s&&n.isOptional&&(s={isValue:!0,value:null});else{for(;!s&&i._parent;){var a=i;i=i._parent,a._isViewRoot&&(o=!1),s=i._getLocalDependency(e.ProviderAstType.PublicService,n,o)}s||(s=!n.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===xn(n.token)||null!=this.viewContext.viewProviders.get(xn(n.token))?n:n.isOptional?{isValue:!0,value:null}:null)}return s||this.viewContext.errors.push(new Kc("No provider for "+En(n.token),this._sourceSpan)),s},t}(),Gc=function(){function t(t,n,r,i){var o=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,n.transitiveModule.modules.forEach(function(t){Jc([{token:{identifier:t},useClass:t}],e.ProviderAstType.PublicService,!0,i,o._errors,o._allProviders,!0)}),Jc(n.transitiveModule.providers.map(function(e){return e.provider}).concat(r),e.ProviderAstType.PublicService,!1,i,this._errors,this._allProviders,!1)}return t.prototype.parse=function(){var e=this;if(Array.from(this._allProviders.values()).forEach(function(t){e._getOrCreateLocalProvider(t.token,t.eager)}),this._errors.length>0){var t=this._errors.join("\n");throw new Error("Provider parse errors:\n"+t)}var n=[],r=[];return this._transformedProviders.forEach(function(e){e.eager?r.push(e):n.push(e)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(e,t){var n=this,r=this._allProviders.get(xn(e));if(!r)return null;var i=this._transformedProviders.get(xn(e));if(i)return i;if(null!=this._seenProviders.get(xn(e)))return this._errors.push(new Kc("Cannot instantiate cyclic dependency! "+En(e),r.sourceSpan)),null;this._seenProviders.set(xn(e),!0);var o=r.providers.map(function(e){var i=e.useValue,o=e.useExisting,s=void 0;if(null!=e.useExisting){var a=n._getDependency({token:e.useExisting},t,r.sourceSpan);null!=a.token?o=a.token:(o=null,i=a.value)}else e.useFactory?s=(e.deps||e.useFactory.diDeps).map(function(e){return n._getDependency(e,t,r.sourceSpan)}):e.useClass&&(s=(e.deps||e.useClass.diDeps).map(function(e){return n._getDependency(e,t,r.sourceSpan)}));return $c(e,{useExisting:o,useValue:i,deps:s})});return i=Yc(r,{eager:t,providers:o}),this._transformedProviders.set(xn(e),i),i},t.prototype._getDependency=function(e,t,n){return void 0===t&&(t=!1),e.isSkipSelf||null==e.token||xn(e.token)===this.reflector.resolveExternalReference(on.Injector)||xn(e.token)===this.reflector.resolveExternalReference(on.ComponentFactoryResolver)||this._getOrCreateLocalProvider(e.token,t),e},t}();function $c(e,t){return{token:e.token,useClass:e.useClass,useExisting:t.useExisting,useFactory:e.useFactory,useValue:t.useValue,deps:t.deps,multi:e.multi}}function Yc(e,t){return new Vl(e.token,e.multiProvider,e.eager||t.eager,t.providers,e.providerType,e.lifecycleHooks,e.sourceSpan,e.isModule)}function Jc(e,t,n,r,i,o,s){e.forEach(function(e){var a=o.get(xn(e.token));null!=a&&!!a.multiProvider!=!!e.multi&&i.push(new Kc("Mixing multi and non multi provider is not possible for token "+En(a.token),r)),a?(e.multi||(a.providers.length=0),a.providers.push(e)):(a=new Vl(e.token,!!e.multi,n||!(e.useClass||e.useExisting||e.useFactory),[e],t,e.token.identifier&&e.token.identifier.lifecycleHooks?e.token.identifier.lifecycleHooks:[],r,s),o.set(xn(e.token),a))})}function Zc(e,t){t.meta.selectors.forEach(function(n){var r=e.get(xn(n));r||(r=[],e.set(xn(n),r)),r.push(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 eh(t,n){var r=0;n.eager||(r|=4096),n.providerType===e.ProviderAstType.PrivateService&&(r|=8192),n.isModule&&(r|=1073741824),n.lifecycleHooks.forEach(function(t){t!==jo.OnDestroy&&n.providerType!==e.ProviderAstType.Directive&&n.providerType!==e.ProviderAstType.Component||(r|=ih(t))});var i=n.multiProvider?function o(e,t,n){var r=[],i=[],o=n.map(function(t,n){var r;if(t.useClass){var i=s(n,t.deps||t.useClass.diDeps);r=e.importExpr(t.useClass.reference).instantiate(i)}else t.useFactory?(i=s(n,t.deps||t.useFactory.diDeps),r=e.importExpr(t.useFactory.reference).callFn(i)):r=t.useExisting?(i=s(n,[{token:t.useExisting}]))[0]:Cc(e,t.useValue);return r});return{providerExpr:wt(i,[new Je(xt(o))],ce),flags:1024|t,depsExpr:xt(r)};function s(t,n){return n.map(function(n,o){var s="p"+t+"_"+o;return i.push(new Fe(s,le)),r.push(rh(e,n)),yt(s)})}}(t,r,n.providers):th(t,r,n.providerType,n.providers[0]);return{providerExpr:i.providerExpr,flags:i.flags,depsExpr:i.depsExpr,tokenExpr:nh(t,n.token)}}function th(t,n,r,i){var o,s;return r===e.ProviderAstType.Directive||r===e.ProviderAstType.Component?(o=t.importExpr(i.useClass.reference),n|=16384,s=i.deps||i.useClass.diDeps):i.useClass?(o=t.importExpr(i.useClass.reference),n|=512,s=i.deps||i.useClass.diDeps):i.useFactory?(o=t.importExpr(i.useFactory.reference),n|=1024,s=i.deps||i.useFactory.diDeps):i.useExisting?(o=Ke,n|=2048,s=[{token:i.useExisting}]):(o=Cc(t,i.useValue),n|=256,s=[]),{providerExpr:o,flags:n,depsExpr:xt(s.map(function(e){return rh(t,e)}))}}function nh(e,t){return t.identifier?e.importExpr(t.identifier.reference):bt(t.value)}function rh(e,t){var n=t.isValue?Cc(e,t.value):nh(e,t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isSelf&&(r|=4),t.isValue&&(r|=8),0===r?n:xt([bt(r),n])}function ih(e){var t=0;switch(e){case jo.AfterContentChecked:t=2097152;break;case jo.AfterContentInit:t=1048576;break;case jo.AfterViewChecked:t=8388608;break;case jo.AfterViewInit:t=4194304;break;case jo.DoCheck:t=262144;break;case jo.OnChanges:t=524288;break;case jo.OnDestroy:t=131072;break;case jo.OnInit:t=65536}return t}function oh(t,n,r,i){var o=i.map(function(e){return n.importExpr(e.componentFactory)}),s=an(t,on.ComponentFactoryResolver),a={diDeps:[{isValue:!0,value:xt(o)},{token:s,isSkipSelf:!0,isOptional:!0},{token:an(t,on.NgModuleRef)}],lifecycleHooks:[],reference:t.resolveExternalReference(on.CodegenComponentFactoryResolver)},u=th(n,r,e.ProviderAstType.PrivateService,{token:s,multi:!1,useClass:a});return{providerExpr:u.providerExpr,flags:u.flags,depsExpr:u.depsExpr,tokenExpr:nh(n,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 sh=function sh(e){this.ngModuleFactoryVar=e},ah=yt("_l"),uh=function(){function t(e){this.reflector=e}return t.prototype.compile=function(e,t,n){var r=ks("NgModule",t.type),i=t.transitiveModule.entryComponents,o=t.bootstrapComponents,s=new Gc(this.reflector,t,n,r),a=[oh(this.reflector,e,0,i)].concat(s.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 gt(on.moduleProviderDef).callFn([bt(r),i,t,n])}),u=gt(on.moduleDef).callFn([xt(a)]),p=wt([new Fe(ah.name)],[new Je(u)],ce),l=dn(t.type)+"NgFactory";if(this._createNgModuleFactory(e,t.type.reference,gt(on.createModuleFactory).callFn([e.importExpr(t.type.reference),xt(o.map(function(t){return e.importExpr(t.reference)})),p])),t.id){var c="string"==typeof t.id?bt(t.id):e.importExpr(t.id),h=gt(on.RegisterModuleFactoryFn).callFn([c,yt(l)]).toStmt();e.statements.push(h)}return new sh(l)},t.prototype.createStub=function(e,t){this._createNgModuleFactory(e,t,Ke)},t.prototype._createNgModuleFactory=function(t,n,r){var i=yt(dn({reference:n})+"NgFactory").set(r).toDeclStmt(_t(on.NgModuleFactory,[Et(t.importExpr(n))],[te.Const]),[e.StmtModifier.Final,e.StmtModifier.Exported]);t.statements.push(i)},t}(),ph=function(){function e(e){this._reflector=e}return e.prototype.isNgModule=function(e){return this._reflector.annotations(e).some(H.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=Yl(this._reflector.annotations(e),H.isTypeOf);if(n)return n;if(t)throw new Error("No NgModule metadata found for '"+Wt(e)+"'.");return null},e}();
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
  function lh(e){var t=new hh,n=Ri.createRoot();return(Array.isArray(e)?e:[e]).forEach(function(e){if(e instanceof Xe)e.visitStatement(t,n);else if(e instanceof ge)e.visitExpression(t,n);else{if(!(e instanceof ie))throw new Error("Don't know how to print debug info for "+e);e.visitType(t,n)}}),n.toSource()}var ch=function(){function e(){}return e.prototype.emitStatementsAndContext=function(e,t,n,r,i,o){void 0===n&&(n=""),void 0===r&&(r=!0);var s=new hh(i,o),u=Ri.createRoot();s.visitAllStatements(t,u);var p=n?n.split("\n"):[];s.reexports.forEach(function(e,t){var n=e.map(function(e){return e.name+" as "+e.as}).join(",");p.push("export {"+n+"} from '"+t+"';")}),s.importsWithPrefixes.forEach(function(e,t){p.push("import * as "+e+" from '"+t+"';")});var l=r?u.toSourceMapGenerator(e,p.length).toJsComment():"",c=a(p,[u.toSource(),l]);return l&&c.push(""),u.setPreambleLineCount(p.length),{sourceText:c.join("\n"),context:u}},e.prototype.emitStatements=function(e,t,n){return void 0===n&&(n=""),this.emitStatementsAndContext(e,t,n).sourceText},e}(),hh=function(t){function r(e,n){var r=t.call(this,!1)||this;return r.referenceFilter=e,r.importFilter=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return n(r,t),r.prototype.visitType=function(e,t,n){void 0===n&&(n="any"),e?(this.typeExpression++,e.visitType(this,t),this.typeExpression--):t.print(null,n)},r.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=ce?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},r.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},r.prototype.visitExternalExpr=function(e,t){return this._visitIdentifier(e.value,e.typeParams,t),null},r.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},r.prototype.visitDeclareVarStmt=function(t,n){if(t.hasModifier(e.StmtModifier.Exported)&&t.value instanceof Ie&&!t.type){var r=t.value.value,i=r.name,o=r.moduleName;if(o){var s=this.reexports.get(o);return s||this.reexports.set(o,s=[]),s.push({name:i,as:t.name}),null}}return t.hasModifier(e.StmtModifier.Exported)&&n.print(t,"export "),t.hasModifier(e.StmtModifier.Final)?n.print(t,"const"):n.print(t,"var"),n.print(t," "+t.name),this._printColonType(t.type,n),t.value&&(n.print(t," = "),t.value.visitExpression(this,n)),n.println(t,";"),null},r.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot visit a WrappedNodeExpr when outputting Typescript.")},r.prototype.visitCastExpr=function(e,t){return t.print(e,"(<"),e.type.visitType(this,t),t.print(e,">"),e.value.visitExpression(this,t),t.print(e,")"),null},r.prototype.visitInstantiateExpr=function(e,t){return t.print(e,"new "),this.typeExpression++,e.classExpr.visitExpression(this,t),this.typeExpression--,t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},r.prototype.visitDeclareClassStmt=function(t,n){var r=this;return n.pushClass(t),t.hasModifier(e.StmtModifier.Exported)&&n.print(t,"export "),n.print(t,"class "+t.name),null!=t.parent&&(n.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,n),this.typeExpression--),n.println(t," {"),n.incIndent(),t.fields.forEach(function(e){return r._visitClassField(e,n)}),null!=t.constructorMethod&&this._visitClassConstructor(t,n),t.getters.forEach(function(e){return r._visitClassGetter(e,n)}),t.methods.forEach(function(e){return r._visitClassMethod(e,n)}),n.decIndent(),n.println(t,"}"),n.popClass(),null},r.prototype._visitClassField=function(t,n){t.hasModifier(e.StmtModifier.Private)&&n.print(null,"/*private*/ "),t.hasModifier(e.StmtModifier.Static)&&n.print(null,"static "),n.print(null,t.name),this._printColonType(t.type,n),t.initializer&&(n.print(null," = "),t.initializer.visitExpression(this,n)),n.println(null,";")},r.prototype._visitClassGetter=function(t,n){t.hasModifier(e.StmtModifier.Private)&&n.print(null,"private "),n.print(null,"get "+t.name+"()"),this._printColonType(t.type,n),n.println(null," {"),n.incIndent(),this.visitAllStatements(t.body,n),n.decIndent(),n.println(null,"}")},r.prototype._visitClassConstructor=function(e,t){t.print(e,"constructor("),this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.constructorMethod.body,t),t.decIndent(),t.println(e,"}")},r.prototype._visitClassMethod=function(t,n){t.hasModifier(e.StmtModifier.Private)&&n.print(null,"private "),n.print(null,t.name+"("),this._visitParams(t.params,n),n.print(null,")"),this._printColonType(t.type,n,"void"),n.println(null," {"),n.incIndent(),this.visitAllStatements(t.body,n),n.decIndent(),n.println(null,"}")},r.prototype.visitFunctionExpr=function(e,t){return e.name&&(t.print(e,"function "),t.print(e,e.name)),t.print(e,"("),this._visitParams(e.params,t),t.print(e,")"),this._printColonType(e.type,t,"void"),e.name||t.print(e," => "),t.println(e,"{"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null},r.prototype.visitDeclareFunctionStmt=function(t,n){return t.hasModifier(e.StmtModifier.Exported)&&n.print(t,"export "),n.print(t,"function "+t.name+"("),this._visitParams(t.params,n),n.print(t,")"),this._printColonType(t.type,n,"void"),n.println(t," {"),n.incIndent(),this.visitAllStatements(t.statements,n),n.decIndent(),n.println(t,"}"),null},r.prototype.visitTryCatchStmt=function(t,n){n.println(t,"try {"),n.incIndent(),this.visitAllStatements(t.bodyStmts,n),n.decIndent(),n.println(t,"} catch ("+Ii.name+") {"),n.incIndent();var r=[ki.set(Ii.prop("stack",null)).toDeclStmt(null,[e.StmtModifier.Final])].concat(t.catchStmts);return this.visitAllStatements(r,n),n.decIndent(),n.println(t,"}"),null},r.prototype.visitBuiltinType=function(t,n){var r;switch(t.name){case e.BuiltinTypeName.Bool:r="boolean";break;case e.BuiltinTypeName.Dynamic:r="any";break;case e.BuiltinTypeName.Function:r="Function";break;case e.BuiltinTypeName.Number:case e.BuiltinTypeName.Int:r="number";break;case e.BuiltinTypeName.String:r="string";break;case e.BuiltinTypeName.None:r="never";break;default:throw new Error("Unsupported builtin type "+t.name)}return n.print(null,r),null},r.prototype.visitExpressionType=function(e,t){var n=this;return e.value.visitExpression(this,t),null!==e.typeParams&&(t.print(null,"<"),this.visitAllObjects(function(e){return n.visitType(e,t)},e.typeParams,t,","),t.print(null,">")),null},r.prototype.visitArrayType=function(e,t){return this.visitType(e.of,t),t.print(null,"[]"),null},r.prototype.visitMapType=function(e,t){return t.print(null,"{[key: string]:"),this.visitType(e.valueType,t),t.print(null,"}"),null},r.prototype.getBuiltinMethodName=function(t){var n;switch(t){case e.BuiltinMethod.ConcatArray:n="concat";break;case e.BuiltinMethod.SubscribeObservable:n="subscribe";break;case e.BuiltinMethod.Bind:n="bind";break;default:throw new Error("Unknown builtin method: "+t)}return n},r.prototype._visitParams=function(e,t){var n=this;this.visitAllObjects(function(e){t.print(null,e.name),n._printColonType(e.type,t)},e,t,",")},r.prototype._visitIdentifier=function(e,t,n){var r=this,i=e.name,o=e.moduleName;if(this.referenceFilter&&this.referenceFilter(e))n.print(null,"(null as any)");else{if(o&&(!this.importFilter||!this.importFilter(e))){var s=this.importsWithPrefixes.get(o);null==s&&this.importsWithPrefixes.set(o,s="i"+this.importsWithPrefixes.size),n.print(null,s+".")}n.print(null,i),this.typeExpression>0&&(t||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(e){return e.visitType(r,n)},t,n,","),n.print(null,">"))}},r.prototype._printColonType=function(e,t,n){e!==ce&&(t.print(null,":"),this.visitType(e,t,n))},r}(Di),fh=function(){function e(e){this._reflector=e}return e.prototype.isPipe=function(e){var t=this._reflector.annotations(zt(e));return t&&t.some(B.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(zt(e));if(n){var r=Yl(n,B.isTypeOf);if(r)return r}if(t)throw new Error("No Pipe decorator found on "+Wt(e));return null},e}(),dh=["zero","one","two","few","many","other"];function vh(e){var t=new _h;return new yh(Wa(t,e),t.isExpanded,t.errors)}var mh,yh=function yh(e,t,n){this.nodes=e,this.expanded=t,this.errors=n},gh=function(e){function t(t,n){return e.call(this,t,n)||this}return n(t,e),t}(Is),_h=function(){function e(){this.isExpanded=!1,this.errors=[]}return e.prototype.visitElement=function(e,t){return new qa(e.name,e.attrs,Wa(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 n(e,t){var n=e.cases.map(function(e){-1!=dh.indexOf(e.value)||e.value.match(/^=\d+$/)||t.push(new gh(e.valueSourceSpan,'Plural cases should be "=<number>" or one of '+dh.join(", ")));var n=vh(e.expression);return t.push.apply(t,a(n.errors)),new qa("ng-template",[new Ua("ngPluralCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new Ua("[ngPlural]",e.switchValue,e.switchValueSourceSpan);return new qa("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}(e,this.errors):function r(e,t){var n=e.cases.map(function(e){var n=vh(e.expression);return t.push.apply(t,a(n.errors)),new qa("ng-template","other"===e.value?[new Ua("ngSwitchDefault","",e.valueSourceSpan)]:[new Ua("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new Ua("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new qa("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}(),Eh=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,xh="class";function Sh(){return mh||(mh=w.parse("*")[0]),mh}var wh=function(e){function t(t,n,r){return e.call(this,n,t,r)||this}return n(t,e),t}(Is),Ch=function Ch(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n},bh=function(){function t(e,t,n,r,i,o,s){this._config=e,this._reflector=t,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return Object.defineProperty(t.prototype,"expressionParser",{get:function(){return this._exprParser},enumerable:!0,configurable:!0}),t.prototype.parse=function(t,n,r,i,o,s,a){var u=this.tryParse(t,n,r,i,o,s,a),p=u.errors.filter(function(t){return t.level===e.ParseErrorLevel.WARNING}),l=u.errors.filter(function(t){return t.level===e.ParseErrorLevel.ERROR});if(p.length>0&&this._console.warn("Template parse warnings:\n"+p.join("\n")),l.length>0)throw Bt("Template parse errors:\n"+l.join("\n"),l);return{template:u.templateAst,pipes:u.usedPipes}},t.prototype.tryParse=function(e,t,n,r,i,o,s){var a="string"==typeof t?this._htmlParser.parse(t,o,{tokenizeExpansionForms:!0,interpolationConfig:this.getInterpolationConfig(e)}):t;return s||(a=Eu(a)),this.tryParseHtml(this.expandHtml(a),e,n,r,i)},t.prototype.tryParseHtml=function(e,t,n,r,i){var o,s=e.errors,u=[];if(e.rootNodes.length>0){var p=Dh(n),l=Dh(r),c=new Qc(this._reflector,t),h=void 0;t.template&&t.template.interpolation&&(h={start:t.template.interpolation[0],end:t.template.interpolation[1]});var f=new Iu(this._exprParser,h,this._schemaRegistry,l,s),d=new Th(this._reflector,this._config,c,p,f,this._schemaRegistry,i,s);o=Wa(d,e.rootNodes,kh),s.push.apply(s,a(c.errors)),u.push.apply(u,a(f.getUsedPipes()))}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new Ch(o,u,s):(this.transforms&&this.transforms.forEach(function(e){o=Hl(e,o)}),new Ch(o,u,s))},t.prototype.expandHtml=function(e,t){void 0===t&&(t=!1);var n=e.errors;if(0==n.length||t){var r=vh(e.rootNodes);n.push.apply(n,a(r.errors)),e=new uu(r.nodes,n)}return e},t.prototype.getInterpolationConfig=function(e){if(e.template)return Si.fromArray(e.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,n){var r=[];t.filter(function(e){return!!e.references}).forEach(function(t){return t.references.forEach(function(t){var i=t.name;if(r.indexOf(i)<0)r.push(i);else{var o=new wh('Reference "#'+i+'" is defined several times',t.sourceSpan,e.ParseErrorLevel.ERROR);n.push(o)}})})},t}(),Th=function(){function t(e,t,n,r,i,o,s,a){var u=this;this.reflector=e,this.config=t,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new C,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(e,t){var n=w.parse(e.selector);u.selectorMatcher.addSelectables(n,e),u.directivesIndex.set(e,t)})}return t.prototype.visitExpansion=function(e,t){return null},t.prototype.visitExpansionCase=function(e,t){return null},t.prototype.visitText=function(e,t){var n=t.findNgContentIndex(Sh()),r=yu(e.value),i=this._bindingParser.parseInterpolation(r,e.sourceSpan);return i?new Ml(i,n,e.sourceSpan):new Pl(r,n,e.sourceSpan)},t.prototype.visitAttribute=function(e,t){return new Nl(e.name,e.value,e.sourceSpan)},t.prototype.visitComment=function(e,t){return null},t.prototype.visitElement=function(e,t){var n=this,r=this.contentQueryStartId,i=e.name,o=up(e);if(o.type===Gu.SCRIPT||o.type===Gu.STYLE)return null;if(o.type===Gu.STYLESHEET&&Xu(o.hrefAttr))return null;var s=[],u=[],p=[],l=[],h=[],f=[],d=[],v=[],m=!1,y=[],g=c(e.name);e.attrs.forEach(function(e){var t,r,i=n._parseAttr(g,e,s,u,h,p,l);l.push.apply(l,a([].map(function(e){return Rl.fromParsedVariable(e)})));var o=n._normalizeAttributeName(e.name);o.startsWith("*")&&(t=e.value,r=o.substring("*".length));var c=null!=t;if(c){m&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",e.sourceSpan),m=!0;var _=[];n._bindingParser.parseInlineTemplateBinding(r,t,e.sourceSpan,d,f,_),v.push.apply(v,a(_.map(function(e){return Rl.fromParsedVariable(e)})))}i||c||(y.push(n.visitAttribute(e,null)),s.push([e.name,e.value]))});var _=Ih(i,s),E=this._parseDirectives(this.selectorMatcher,_),x=E.directives,S=E.matchElement,C=[],b=new Set,T=this._createDirectiveAsts(g,e.name,x,u,p,e.sourceSpan,C,b),P=this._createElementPropertyAsts(e.name,u,b),M=new Xc(this.providerViewContext,t.providerContext,t.isTemplateElement||m,T,y,C,g,r,e.sourceSpan),N=Wa(o.nonBindable?Oh:this,e.children,Ah.create(g,T,g?t.providerContext:M));M.afterElement();var A,I=""!=o.projectAs?w.parse(o.projectAs)[0]:_,k=t.findNgContentIndex(I);if(o.type===Gu.NG_CONTENT)e.children&&!e.children.every(Rh)&&this._reportError("<ng-content> element cannot have content.",e.sourceSpan),A=new jl(this.ngContentCount++,m?null:k,e.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(T,h),this._assertNoComponentsNorElementBindingsOnTemplate(T,P,e.sourceSpan),A=new Ll(y,h,C,l,M.transformedDirectiveAsts,M.transformProviders,M.transformedHasViewContainer,M.queryMatches,N,m?null:k,e.sourceSpan);else{this._assertElementExists(S,e),this._assertOnlyOneComponent(T,e.sourceSpan);var O=m?null:t.findNgContentIndex(I);A=new Dl(i,y,P,h,C,M.transformedDirectiveAsts,M.transformProviders,M.transformedHasViewContainer,M.queryMatches,N,m?null:O,e.sourceSpan,e.endSourceSpan||null)}if(m){var R=this.contentQueryStartId,D=Ih("ng-template",d),L=this._parseDirectives(this.selectorMatcher,D).directives,F=new Set,B=this._createDirectiveAsts(!0,i,L,f,[],e.sourceSpan,[],F),V=this._createElementPropertyAsts(i,f,F);this._assertNoComponentsNorElementBindingsOnTemplate(B,V,e.sourceSpan);var j=new Xc(this.providerViewContext,t.providerContext,t.isTemplateElement,B,[],[],!0,R,e.sourceSpan);j.afterElement(),A=new Ll([],[],[],v,j.transformedDirectiveAsts,j.transformProviders,j.transformedHasViewContainer,j.queryMatches,[A],k,e.sourceSpan)}return A},t.prototype._parseAttr=function(e,t,n,r,i,o,s){var u=this._normalizeAttributeName(t.name),p=t.value,l=t.sourceSpan,c=[],h=u.match(Eh),f=!1;return null!==h?(f=!0,null!=h[1]?this._bindingParser.parsePropertyBinding(h[7],p,!1,l,n,r):h[2]?e?this._parseVariable(h[7],p,l,s):this._reportError('"let-" is only supported on ng-template elements.',l):h[3]?this._parseReference(h[7],p,l,o):h[4]?this._bindingParser.parseEvent(h[7],p,l,n,c):h[5]?(this._bindingParser.parsePropertyBinding(h[7],p,!1,l,n,r),this._parseAssignmentEvent(h[7],p,l,n,c)):h[6]?this._bindingParser.parseLiteralAttr(u,p,l,n,r):h[8]?(this._bindingParser.parsePropertyBinding(h[8],p,!1,l,n,r),this._parseAssignmentEvent(h[8],p,l,n,c)):h[9]?this._bindingParser.parsePropertyBinding(h[9],p,!1,l,n,r):h[10]&&this._bindingParser.parseEvent(h[10],p,l,n,c)):f=this._bindingParser.parsePropertyInterpolation(u,p,l,n,r),f||this._bindingParser.parseLiteralAttr(u,p,l,n,r),i.push.apply(i,a(c.map(function(e){return kl.fromParsedEvent(e)}))),f},t.prototype._normalizeAttributeName=function(e){return/^data-/i.test(e)?e.substring(5):e},t.prototype._parseVariable=function(e,t,n,r){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new Rl(e,t,n))},t.prototype._parseReference=function(e,t,n,r){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Mh(e,t,n))},t.prototype._parseAssignmentEvent=function(e,t,n,r,i){this._bindingParser.parseEvent(e+"Change",t+"=$event",n,r,i)},t.prototype._parseDirectives=function(e,t){var n=this,r=new Array(this.directivesIndex.size),i=!1;return e.match(t,function(e,t){r[n.directivesIndex.get(t)]=t,i=i||e.hasElementSelector()}),{directives:r.filter(function(e){return!!e}),matchElement:i}},t.prototype._createDirectiveAsts=function(e,t,n,r,i,o,s,a){var u=this,p=new Set,l=null,c=n.map(function(e){var n=new As(o.start,o.end,"Directive "+dn(e.type));e.isComponent&&(l=e);var c=[],h=u._bindingParser.createDirectiveHostPropertyAsts(e,t,n).map(function(e){return Il.fromBoundProperty(e)});h=u._checkPropertiesInSchema(t,h);var f=u._bindingParser.createDirectiveHostEventAsts(e,n);u._createDirectivePropertyAsts(e.inputs,r,c,a),i.forEach(function(t){(0===t.value.length&&e.isComponent||t.isReferenceToDirective(e))&&(s.push(new Ol(t.name,sn(e.type.reference),t.value,t.sourceSpan)),p.add(t.name))});var d=f.map(function(e){return kl.fromParsedEvent(e)}),v=u.contentQueryStartId;return u.contentQueryStartId+=e.queries.length,new Bl(e,c,h,d,v,n)});return i.forEach(function(t){if(t.value.length>0)p.has(t.name)||u._reportError('There is no directive with "exportAs" set to "'+t.value+'"',t.sourceSpan);else if(!l){var n=null;e&&(n=an(u.reflector,on.TemplateRef)),s.push(new Ol(t.name,n,t.value,t.sourceSpan))}}),c},t.prototype._createDirectivePropertyAsts=function(e,t,n,r){if(e){var i=new Map;t.forEach(function(e){var t=i.get(e.name);t&&!t.isLiteral||i.set(e.name,e)}),Object.keys(e).forEach(function(t){var o=i.get(e[t]);o&&(r.add(o.name),Lh(o.expression)||n.push(new Fl(t,o.name,o.expression,o.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(e,t,n){var r=this,i=[];return t.forEach(function(t){if(!t.isLiteral&&!n.has(t.name)){var o=r._bindingParser.createBoundElementProperty(e,t);i.push(Il.fromBoundProperty(o))}}),this._checkPropertiesInSchema(e,i)},t.prototype._findComponentDirectives=function(e){return e.filter(function(e){return e.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(e){return this._findComponentDirectives(e).map(function(e){return dn(e.directive.type)})},t.prototype._assertOnlyOneComponent=function(e,t){var n=this._findComponentDirectiveNames(e);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),t)},t.prototype._assertElementExists=function(e,t){var n=t.name.replace(/^:xhtml:/,"");if(!e&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,t.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(e,t,n){var r=this,i=this._findComponentDirectiveNames(e);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),t.forEach(function(e){r._reportError("Property binding "+e.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(e,t){var n=this,r=new Set;e.forEach(function(e){Object.keys(e.directive.outputs).forEach(function(t){r.add(e.directive.outputs[t])})}),t.forEach(function(e){null==e.target&&r.has(e.name)||n._reportError("Event binding "+e.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',e.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(e,t){var n=this;return t.filter(function(t){if(0===t.type&&!n._schemaRegistry.hasProperty(e,t.name,n._schemas)){var r="Can't bind to '"+t.name+"' since it isn't a known property of '"+e+"'.";e.startsWith("ng-")?r+="\n1. If '"+t.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":e.indexOf("-")>-1&&(r+="\n1. If '"+e+"' is an Angular component and it has '"+t.name+"' input, then verify that it is part of this module.\n2. If '"+e+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,t.sourceSpan)}return!Lh(t.value)})},t.prototype._reportError=function(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this._targetErrors.push(new Is(n,t,r))},t}(),Ph=function(){function e(){}return e.prototype.visitElement=function(e,t){var n=up(e);if(n.type===Gu.SCRIPT||n.type===Gu.STYLE||n.type===Gu.STYLESHEET)return null;var r=e.attrs.map(function(e){return[e.name,e.value]}),i=Ih(e.name,r),o=t.findNgContentIndex(i),s=Wa(this,e.children,kh);return new Dl(e.name,Wa(this,e.attrs),[],[],[],[],[],!1,[],s,o,e.sourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return new Nl(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(Sh());return new Pl(e.value,n,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),Mh=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.isReferenceToDirective=function(e){return-1!==function t(e){return e?e.split(",").map(function(e){return e.trim()}):[]}(e.exportAs).indexOf(this.value)},e}();function Nh(e){return e.trim().split(/\s+/g)}var Ah=function(){function e(e,t,n,r){this.isTemplateElement=e,this._ngContentIndexMatcher=t,this._wildcardNgContentIndex=n,this.providerContext=r}return e.create=function(t,n,r){var i=new C,o=null,s=n.find(function(e){return e.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++)"*"===a[u]?o=u:i.addSelectables(w.parse(a[u]),u);return new e(t,i,o,r)},e.prototype.findNgContentIndex=function(e){var t=[];return this._ngContentIndexMatcher.match(e,function(e,n){t.push(n)}),t.sort(),null!=this._wildcardNgContentIndex&&t.push(this._wildcardNgContentIndex),t.length>0?t[0]:null},e}();function Ih(e,t){var n=new w,r=u(e)[1];n.setElement(r);for(var i=0;i<t.length;i++){var o=t[i][0],s=u(o)[1],a=t[i][1];n.addAttribute(s,a),o.toLowerCase()==xh&&Nh(a).forEach(function(e){return n.addClassName(e)})}return n}var kh=new Ah(!0,new C,null,null),Oh=new Ph;function Rh(e){return e instanceof Ba&&0==e.value.trim().length}function Dh(e){var t=new Map;return e.forEach(function(e){t.get(e.type.reference)||t.set(e.type.reference,e)}),Array.from(t.values())}function Lh(e){return e instanceof go&&(e=e.ast),e instanceof Yi}
  /**
       * @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 Fh=function(){function e(e,t){this.options=e,this.reflector=t}return e.prototype.compileComponent=function(e,t,n,r,i,o){var s=this,a=new Map;r.forEach(function(e){return a.set(e.name,e.type.reference)});var u=0,p=function(e,n){var r=u++;return new Vh(s.options,s.reflector,i,e,t.type.reference,t.isHost,r,a,n,o,p)},l=p(null,[]);return l.visitAll([],n),l.build(e)},e}(),Bh=new(function(){function e(){}return e.prototype.getLocal=function(e){return e===Mo.event.name?yt("_any"):null},e}()),Vh=function(){function t(e,t,n,r,i,o,s,a,u,p,l){this.options=e,this.reflector=t,this.externalReferenceVars=n,this.parent=r,this.component=i,this.isHostComponent=o,this.embeddedViewIndex=s,this.pipes=a,this.guards=u,this.ctx=p,this.viewBuilderFactory=l,this.refOutputVars=new Map,this.variables=[],this.children=[],this.updates=[],this.actions=[]}return t.prototype.getOutputVar=function(e){var t;if(!(t=e===this.component&&this.isHostComponent?"_any":e instanceof un?this.externalReferenceVars.get(e):"_any"))throw new Error("Illegal State: referring to a type without a variable "+JSON.stringify(e));return t},t.prototype.getTypeGuardExpressions=function(e){var t,n,r,i,s=a(this.guards);try{for(var u=o(e.directives),p=u.next();!p.done;p=u.next()){var l=p.value;try{for(var c=o(l.inputs),h=c.next();!h.done;h=c.next()){var f=h.value,d=l.directive.guards[f.directiveName];d&&s.push({guard:d,useIf:"UseIf"===d,expression:{context:this.component,value:f.value}})}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return s},t.prototype.visitAll=function(e,t){this.variables=e,Hl(this,t)},t.prototype.build=function(e,t){var n,r,i=this;void 0===t&&(t=[]),this.children.forEach(function(n){return n.build(e,t)});var s=[yt("_any").set(Ke).toDeclStmt(le)],u=0;if(this.updates.forEach(function(e){var t=i.preprocessUpdateExpression(e),n=t.sourceSpan,r=t.context,o=t.value,p=""+u++,l=Do(r===i.component?i:Bh,yt(i.getOutputVar(r)),o,p,ko.General),c=l.stmts;c.push(new Ye(l.currValExpr)),s.push.apply(s,a(c.map(function(e){return dt(e,n)})))}),this.actions.forEach(function(e){var t=e.sourceSpan,n=e.context,r=e.value,o=""+u++,p=Ao(n===i.component?i:Bh,yt(i.getOutputVar(n)),r,o).stmts;s.push.apply(s,a(p.map(function(e){return dt(e,t)})))}),this.guards.length){var p=void 0;try{for(var l=o(this.guards),c=l.next();!c.done;c=l.next()){var h=c.value,f=this.preprocessUpdateExpression(h.expression),d=f.context,v=f.value,m=""+u++,y=Do(d===this.component?this:Bh,yt(this.getOutputVar(d)),v,m,ko.TrySimple),g=y.currValExpr;if(0==y.stmts.length){var _=h.useIf?g:this.ctx.importExpr(h.guard).callFn([g]);p=p?p.and(_):_}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}p&&(s=[new it(p,s)])}var E=new $e("_View_"+e+"_"+this.embeddedViewIndex,[],s);return t.push(E),t},t.prototype.visitBoundText=function(e,t){var n=this;e.value.ast.expressions.forEach(function(t){return n.updates.push({context:n.component,value:t,sourceSpan:e.sourceSpan})})},t.prototype.visitEmbeddedTemplate=function(e,t){if(this.visitElementOrTemplate(e),this.options.fullTemplateTypeCheck){var n=this.getTypeGuardExpressions(e),r=this.viewBuilderFactory(this,n);this.children.push(r),r.visitAll(e.variables,e.children)}},t.prototype.visitElement=function(e,t){var n=this;this.visitElementOrTemplate(e),e.inputs.forEach(function(e){n.updates.push({context:n.component,value:e.value,sourceSpan:e.sourceSpan})}),Hl(this,e.children)},t.prototype.visitElementOrTemplate=function(t){var n=this;t.directives.forEach(function(e){n.visitDirective(e)}),t.references.forEach(function(t){n.refOutputVars.set(t.name,t.value&&t.value.identifier&&n.options.fullTemplateTypeCheck?t.value.identifier.reference:e.BuiltinTypeName.Dynamic)}),t.outputs.forEach(function(e){n.actions.push({context:n.component,value:e.handler,sourceSpan:e.sourceSpan})})},t.prototype.visitDirective=function(e){var t=this,n=e.directive.type.reference;e.inputs.forEach(function(e){return t.updates.push({context:t.component,value:e.value,sourceSpan:e.sourceSpan})}),this.options.fullTemplateTypeCheck&&(e.hostProperties.forEach(function(e){return t.updates.push({context:n,value:e.value,sourceSpan:e.sourceSpan})}),e.hostEvents.forEach(function(e){return t.actions.push({context:n,value:e.handler,sourceSpan:e.sourceSpan})}))},t.prototype.getLocal=function(t){if(t==Mo.event.name)return yt(this.getOutputVar(e.BuiltinTypeName.Dynamic));for(var n=this;n;n=n.parent){var r=void 0;if(null==(r=n.refOutputVars.get(t))&&n.variables.find(function(e){return e.name===t})&&(r=e.BuiltinTypeName.Dynamic),null!=r)return yt(this.getOutputVar(r))}return null},t.prototype.pipeOutputVar=function(e){var t=this.pipes.get(e);if(!t)throw new Error("Illegal State: Could not find pipe "+e+" in template of "+this.component);return this.getOutputVar(t)},t.prototype.preprocessUpdateExpression=function(t){var n=this;return{sourceSpan:t.sourceSpan,context:t.context,value:Io({createLiteralArrayConverter:function(e){return function(e){var t=xt(e);return n.options.fullTemplateTypeCheck?t:t.cast(le)}},createLiteralMapConverter:function(e){return function(t){var r=St(e.map(function(e,n){return{key:e.key,value:t[n],quoted:e.quoted}}));return n.options.fullTemplateTypeCheck?r:r.cast(le)}},createPipeConverter:function(t,r){return function(r){return yt(n.options.fullTemplateTypeCheck?n.pipeOutputVar(t):n.getOutputVar(e.BuiltinTypeName.Dynamic)).callMethod("transform",r)}}},t.value)}},t.prototype.visitNgContent=function(e,t){},t.prototype.visitText=function(e,t){},t.prototype.visitDirectiveProperty=function(e,t){},t.prototype.visitReference=function(e,t){},t.prototype.visitVariable=function(e,t){},t.prototype.visitEvent=function(e,t){},t.prototype.visitElementProperty=function(e,t){},t.prototype.visitAttr=function(e,t){},t}(),jh=function jh(e,t){this.viewClassVar=e,this.rendererTypeVar=t},Uh=function(){function t(e){this._reflector=e}return t.prototype.compileComponent=function(t,n,r,i,o){var s,u=this,p=0,l=function e(t,n){return void 0===n&&(n=new Map),t.forEach(function(t){var r=new Set,i=new Set,o=void 0;t instanceof Dl?(e(t.children,n),t.children.forEach(function(e){var t=n.get(e);t.staticQueryIds.forEach(function(e){return r.add(e)}),t.dynamicQueryIds.forEach(function(e){return i.add(e)})}),o=t.queryMatches):t instanceof Ll&&(e(t.children,n),t.children.forEach(function(e){var t=n.get(e);t.staticQueryIds.forEach(function(e){return i.add(e)}),t.dynamicQueryIds.forEach(function(e){return i.add(e)})}),o=t.queryMatches),o&&o.forEach(function(e){return r.add(e.queryId)}),i.forEach(function(e){return r.delete(e)}),n.set(t,{staticQueryIds:r,dynamicQueryIds:i})}),n}(r),c=void 0;if(!n.isHost){var h=n.template,f=[];h.animations&&h.animations.length&&f.push(new He("animation",Cc(t,h.animations),!0));var d=yt(yn(n.type.reference));c=d.name,t.statements.push(d.set(gt(on.createRendererType2).callFn([new We([new He("encapsulation",bt(h.encapsulation),!1),new He("styles",i,!1),new He("data",new We(f),!1)])])).toDeclStmt(_t(on.RendererType2),[e.StmtModifier.Final,e.StmtModifier.Exported]))}var v=function(e){var r=p++;return new Xh(u._reflector,t,e,n,r,o,l,v)},m=v(null);return m.visitAll([],r),(s=t.statements).push.apply(s,a(m.build())),new jh(m.viewName,c)},t}(),qh=yt("_l"),Hh=yt("_v"),Wh=yt("_ck"),zh=yt("_co"),Kh=yt("en"),Qh=yt("ad"),Xh=function(){function t(e,t,n,r,i,o,s,a){this.reflector=e,this.outputCtx=t,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=o,this.staticQueryIds=s,this.viewBuilderFactory=a,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?le:Et(t.importExpr(this.component.type.reference)),this.viewName=mn(this.component.type.reference,this.embeddedViewIndex)}return t.prototype.visitAll=function(e,t){var n=this;if(this.variables=e,this.parent||this.usedPipes.forEach(function(e){e.pure&&(n.purePipeNodeIndices[e.name]=n._createPipe(null,e))}),!this.parent){var r=function i(e){var t=new Set,n=new Set;return Array.from(e.values()).forEach(function(e){e.staticQueryIds.forEach(function(e){return t.add(e)}),e.dynamicQueryIds.forEach(function(e){return n.add(e)})}),n.forEach(function(e){return t.delete(e)}),{staticQueryIds:t,dynamicQueryIds:n}}(this.staticQueryIds);this.component.viewQueries.forEach(function(e,t){var i=t+1,o=e.first?0:1,s=134217728|Jh(r,i,e.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:gt(on.queryDef).callFn([bt(s),bt(i),new We([new He(e.propertyName,bt(o),!1)])])}})})}Hl(this,t),this.parent&&(0===t.length||function e(t){var n=t[t.length-1];return n instanceof Ll?n.hasViewContainer:n instanceof Dl?p(n.name)&&n.children.length?e(n.children):n.hasViewContainer:n instanceof jl}(t))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:gt(on.anchorDef).callFn([bt(0),Ke,Ke,bt(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var n=this._createNodeExpressions(),r=n.updateDirectivesStmts,i=n.nodeDefExprs,o=this._createUpdateFn(n.updateRendererStmts),s=this._createUpdateFn(r),a=0;this.parent||this.component.changeDetection!==x.OnPush||(a|=2);var u=new $e(this.viewName,[new Fe(qh.name)],[new Je(gt(on.viewDef).callFn([bt(a),xt(i),s,o]))],_t(on.ViewDefinition),0===this.embeddedViewIndex?[e.StmtModifier.Exported]:[]);return t.push(u),t},t.prototype._createUpdateFn=function(e){var t;if(e.length>0){var n=[];!this.component.isHost&&ct(e).has(zh.name)&&n.push(zh.set(Hh.prop("component")).toDeclStmt(this.compType)),t=wt([new Fe(Wh.name,ce),new Fe(Hh.name,ce)],a(n,e),ce)}else t=Ke;return t},t.prototype.visitNgContent=function(e,t){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:8,nodeDef:gt(on.ngContentDef).callFn([bt(e.ngContentIndex),bt(e.index)])}})},t.prototype.visitText=function(e,t){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:gt(on.textDef).callFn([bt(-1),bt(e.ngContentIndex),xt([bt(e.value)])])}})},t.prototype.visitBoundText=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=e.value.ast,o=i.expressions.map(function(t,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:e.sourceSpan,context:zh,value:t})}),s=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:gt(on.textDef).callFn([bt(s),bt(e.ngContentIndex),xt(i.strings.map(function(e){return bt(e)}))]),updateRenderer:o}}},t.prototype.visitEmbeddedTemplate=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,e),o=i.flags,s=i.queryMatchesExpr,a=i.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(e.variables,e.children);var p=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:1|o,nodeDef:gt(on.anchorDef).callFn([bt(o),s,bt(e.ngContentIndex),bt(p),n._createElementHandleEventFn(r,a),yt(u.viewName)])}}},t.prototype.visitElement=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=p(e.name)?null:e.name,o=this._visitElementOrTemplate(r,e),a=o.flags,u=o.usedEvents,l=o.queryMatchesExpr,c=o.hostBindings,h=o.hostEvents,f=[],d=[],v=[];if(i){var m=e.inputs.map(function(e){return{context:zh,inputAst:e,dirAst:null}}).concat(c);m.length&&(d=m.map(function(e,t){return n._preprocessUpdateExpression({context:e.context,nodeIndex:r,bindingIndex:t,sourceSpan:e.inputAst.sourceSpan,value:e.inputAst.value})}),f=m.map(function(e){return function t(e,n){var r=e.type;switch(r){case 1:return xt([bt(1),bt(e.name),bt(e.securityContext)]);case 0:return xt([bt(8),bt(e.name),bt(e.securityContext)]);case 4:return xt([bt(8|(n&&n.directive.isComponent?32:16)),bt("@"+e.name),bt(e.securityContext)]);case 2:return xt([bt(2),bt(e.name),Ke]);case 3:return xt([bt(4),bt(e.name),bt(e.unit)]);default:throw new Error("unexpected "+r)}}(e.inputAst,e.dirAst)})),v=u.map(function(e){var t=s(e,2),n=t[1];return xt([bt(t[0]),bt(n)])})}Hl(this,e.children);var y=this.nodes.length-r-1,g=e.directives.find(function(e){return e.directive.isComponent}),_=Ke,E=Ke;g&&(E=this.outputCtx.importExpr(g.directive.componentViewType),_=this.outputCtx.importExpr(g.directive.rendererType));var x=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:1|a,nodeDef:gt(on.elementDef).callFn([bt(x),bt(a),l,bt(e.ngContentIndex),bt(y),bt(i),i?function t(e){var t=Object.create(null);return e.attrs.forEach(function(e){t[e.name]=e.value}),e.directives.forEach(function(e){Object.keys(e.directive.hostAttributes).forEach(function(n){var r=e.directive.hostAttributes[n],i=t[n];t[n]=null!=i?function o(e,t,n){return"class"==e||"style"==e?t+" "+n:n}(n,i,r):r})}),xt(Object.keys(t).sort().map(function(e){return xt([bt(e),bt(t[e])])}))}(e):Ke,f.length?xt(f):Ke,v.length?xt(v):Ke,n._createElementHandleEventFn(r,h),E,_]),updateRenderer:d}}},t.prototype._visitElementOrTemplate=function(e,t){var n=this,r=0;t.hasViewContainer&&(r|=16777216);var i=new Map;t.outputs.forEach(function(e){var t=Yh(e,null),n=t.name,r=t.target;i.set(Zh(r,n),[r,n])}),t.directives.forEach(function(e){e.hostEvents.forEach(function(t){var n=Yh(t,e),r=n.name,o=n.target;i.set(Zh(o,r),[o,r])})});var o=[],s=[];this._visitComponentFactoryResolverProvider(t.directives),t.providers.forEach(function(r,u){var p=void 0,l=void 0;if(t.directives.forEach(function(e,t){e.directive.type.reference===xn(r.token)&&(p=e,l=t)}),p){var c=n._visitDirective(r,p,l,e,t.references,t.queryMatches,i,n.staticQueryIds.get(t)),h=c.hostEvents;o.push.apply(o,a(c.hostBindings)),s.push.apply(s,a(h))}else n._visitProvider(r,t.queryMatches)});var u=[];return t.queryMatches.forEach(function(e){var t=void 0;xn(e.value)===n.reflector.resolveExternalReference(on.ElementRef)?t=0:xn(e.value)===n.reflector.resolveExternalReference(on.ViewContainerRef)?t=3:xn(e.value)===n.reflector.resolveExternalReference(on.TemplateRef)&&(t=2),null!=t&&u.push(xt([bt(e.queryId),bt(t)]))}),t.references.forEach(function(t){var r=void 0;t.value?xn(t.value)===n.reflector.resolveExternalReference(on.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[t.name]=e,u.push(xt([bt(t.name),bt(r)])))}),t.outputs.forEach(function(e){s.push({context:zh,eventAst:e,dirAst:null})}),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:u.length?xt(u):Ke,hostBindings:o,hostEvents:s}},t.prototype._visitDirective=function(e,t,n,r,i,o,s,a){var u=this,p=this.nodes.length;this.nodes.push(null),t.directive.queries.forEach(function(e,n){var r=t.contentQueryStartId+n,i=67108864|Jh(a,r,e.first),o=e.first?0:1;u.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:i,nodeDef:gt(on.queryDef).callFn([bt(i),bt(r),new We([new He(e.propertyName,bt(o),!1)])])}})});var l=this.nodes.length-p-1,c=this._visitProviderOrDirective(e,o),h=c.flags,f=c.queryMatchExprs,d=c.providerExpr,v=c.depsExpr;i.forEach(function(t){t.value&&xn(t.value)===xn(e.token)&&(u.refNodeIndices[t.name]=p,f.push(xt([bt(t.name),bt(4)])))}),t.directive.isComponent&&(h|=32768);var m=t.inputs.map(function(e,t){var n=xt([bt(t),bt(e.directiveName)]);return new He(e.directiveName,n,!1)}),y=[],g=t.directive;Object.keys(g.outputs).forEach(function(e){var t=g.outputs[e];s.has(t)&&y.push(new He(e,bt(t),!1))});var _=[];(t.inputs.length||(327680&h)>0)&&(_=t.inputs.map(function(e,t){return u._preprocessUpdateExpression({nodeIndex:p,bindingIndex:t,sourceSpan:e.sourceSpan,context:zh,value:e.value})}));var E=gt(on.nodeValue).callFn([Hh,bt(p)]),x=t.hostProperties.map(function(e){return{context:E,dirAst:t,inputAst:e}}),S=t.hostEvents.map(function(e){return{context:E,eventAst:e,dirAst:t}}),w=p;return this.nodes[p]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:16384|h,nodeDef:gt(on.directiveDef).callFn([bt(w),bt(h),f.length?xt(f):Ke,bt(l),d,v,m.length?new We(m):Ke,y.length?new We(y):Ke]),updateDirectives:_,directive:t.directive.type}},{hostBindings:x,hostEvents:S}},t.prototype._visitProvider=function(e,t){this._addProviderNode(this._visitProviderOrDirective(e,t))},t.prototype._visitComponentFactoryResolverProvider=function(e){var t=e.find(function(e){return e.directive.isComponent});if(t&&t.directive.entryComponents.length){var n=oh(this.reflector,this.outputCtx,8192,t.directive.entryComponents);this._addProviderNode({providerExpr:n.providerExpr,depsExpr:n.depsExpr,flags:n.flags,tokenExpr:n.tokenExpr,queryMatchExprs:[],sourceSpan:t.sourceSpan})}},t.prototype._addProviderNode=function(e){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:e.flags,nodeDef:gt(on.providerDef).callFn([bt(e.flags),e.queryMatchExprs.length?xt(e.queryMatchExprs):Ke,e.tokenExpr,e.providerExpr,e.depsExpr])}})},t.prototype._visitProviderOrDirective=function(e,t){var n=[];t.forEach(function(t){xn(t.value)===xn(e.token)&&n.push(xt([bt(t.queryId),bt(4)]))});var r=eh(this.outputCtx,e);return{flags:0|r.flags,queryMatchExprs:n,providerExpr:r.providerExpr,depsExpr:r.depsExpr,tokenExpr:r.tokenExpr,sourceSpan:e.sourceSpan}},t.prototype.getLocal=function(e){if(e==Mo.event.name)return Mo.event;for(var t=Hh,n=this;n;n=n.parent,t=t.prop("parent").cast(le)){var r=n.refNodeIndices[e];if(null!=r)return gt(on.nodeValue).callFn([t,bt(r)]);var i=n.variables.find(function(t){return t.name===e});if(i){var o=i.value||"$implicit";return t.prop("context").prop(o)}}return null},t.prototype._createLiteralArrayConverter=function(e,t){if(0===t){var n=gt(on.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:32,nodeDef:gt(on.pureArrayDef).callFn([bt(r),bt(t)])}}),function(e){return Gh(r,e)}},t.prototype._createLiteralMapConverter=function(e,t){if(0===t.length){var n=gt(on.EMPTY_MAP);return function(){return n}}var r=St(t.map(function(e,t){return i({},e,{value:bt(t)})})),o=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:64,nodeDef:gt(on.pureObjectDef).callFn([bt(o),r])}}),function(e){return Gh(o,e)}},t.prototype._createPipeConverter=function(e,t,n){var r=this.usedPipes.find(function(e){return e.name===t});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:128,nodeDef:gt(on.purePipeDef).callFn([bt(i),bt(n)])}});for(var o=Hh,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(le);var a=s.purePipeNodeIndices[t],u=gt(on.nodeValue).callFn([o,bt(a)]);return function(t){return $h(e.nodeIndex,e.bindingIndex,Gh(i,[u].concat(t)))}}var p=this._createPipe(e.sourceSpan,r),l=gt(on.nodeValue).callFn([Hh,bt(p)]);return function(t){return $h(e.nodeIndex,e.bindingIndex,l.callMethod("transform",t))}},t.prototype._createPipe=function(e,t){var n=this,r=this.nodes.length,i=0;t.type.lifecycleHooks.forEach(function(e){e===jo.OnDestroy&&(i|=ih(e))});var o=t.type.diDeps.map(function(e){return rh(n.outputCtx,e)});return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:16,nodeDef:gt(on.pipeDef).callFn([bt(i),n.outputCtx.importExpr(t.type.reference),xt(o)])}}),r},t.prototype._preprocessUpdateExpression=function(e){var t=this;return{nodeIndex:e.nodeIndex,bindingIndex:e.bindingIndex,sourceSpan:e.sourceSpan,context:e.context,value:Io({createLiteralArrayConverter:function(n){return t._createLiteralArrayConverter(e.sourceSpan,n)},createLiteralMapConverter:function(n){return t._createLiteralMapConverter(e.sourceSpan,n)},createPipeConverter:function(n,r){return t._createPipeConverter(e,n,r)}},e.value)}},t.prototype._createNodeExpressions=function(){var e=this,t=0,n=[],r=[],i=this.nodes.map(function(e,t){var i=e(),s=i.nodeDef,u=i.nodeFlags,p=i.updateDirectives,l=i.updateRenderer,c=i.sourceSpan;return l&&n.push.apply(n,a(o(t,c,l,!1))),p&&r.push.apply(r,a(o(t,c,p,(327680&u)>0))),vt(3&u?new ze([qh.callFn([]).callFn([]),s]):s,c)});return{updateRendererStmts:n,updateDirectivesStmts:r,nodeDefExprs:i};function o(n,r,i,o){var s=[],u=i.map(function(n){var r=n.sourceSpan,i=n.context,o=""+t++,u=Do(i===zh?e:null,i,n.value,o,ko.General),p=u.currValExpr;return s.push.apply(s,a(u.stmts.map(function(e){return dt(e,r)}))),vt(p,r)});return(i.length||o)&&s.push(dt(Gh(n,u).toStmt(),r)),s}},t.prototype._createElementHandleEventFn=function(e,t){var n,r=this,i=[],o=0;if(t.forEach(function(e){var t=e.context,n=e.eventAst,s=e.dirAst,a=""+o++,u=Ao(t===zh?r:null,t,n.handler,a),p=u.allowDefault,l=u.stmts;p&&l.push(Qh.set(p.and(Qh)).toStmt());var c=Yh(n,s),h=Zh(c.target,c.name);i.push(dt(new it(bt(h).identical(Kh),l),n.sourceSpan))}),i.length>0){var s=[Qh.set(bt(!0)).toDeclStmt(he)];!this.component.isHost&&ct(i).has(zh.name)&&s.push(zh.set(Hh.prop("component")).toDeclStmt(this.compType)),n=wt([new Fe(Hh.name,ce),new Fe(Kh.name,ce),new Fe(Mo.event.name,ce)],a(s,i,[new Je(Qh)]),ce)}else n=Ke;return n},t.prototype.visitDirective=function(e,t){},t.prototype.visitDirectiveProperty=function(e,t){},t.prototype.visitReference=function(e,t){},t.prototype.visitVariable=function(e,t){},t.prototype.visitEvent=function(e,t){},t.prototype.visitElementProperty=function(e,t){},t.prototype.visitAttr=function(e,t){},t}();function Gh(e,t){return Wh.callFn(t.length>10?[Hh,bt(e),bt(1),xt(t)]:a([Hh,bt(e),bt(0)],t))}function $h(e,t,n){return gt(on.unwrapValue).callFn([Hh,bt(e),bt(t),n])}function Yh(e,t){return e.isAnimation?{name:"@"+e.name+"."+e.phase,target:t&&t.directive.isComponent?"component":null}:e}function Jh(e,t,n){var r=0;return!n||!e.staticQueryIds.has(t)&&e.dynamicQueryIds.has(t)?r|=536870912:r|=268435456,r}function Zh(e,t){return e?e+":"+t:t}
  /**
       * @license
       * Copyright Google Inc. All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */var ef=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 o=function s(e,t,n,r){return new oc(n,r).extract(e,t)}(i.rootNodes,n,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((r=this._messages).push.apply(r,a(o.messages)),[])},e.prototype.getMessages=function(){return this._messages},e.prototype.write=function(e,t){var n={},r=new tf;this._messages.forEach(function(t){var r,i=e.digest(t);n.hasOwnProperty(i)?(r=n[i].sources).push.apply(r,a(t.sources)):n[i]=t});var i=Object.keys(n).map(function(i){var o=e.createNameMapper(n[i]),s=n[i],a=o?r.convert(s.nodes,o):s.nodes,u=new Vn(a,{},{},s.meaning,s.description,i);return u.sources=s.sources,t&&u.sources.forEach(function(e){return e.filePath=t(e.filePath)}),u});return e.write(i,this._locale)},e}(),tf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(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,o=e.children.map(function(e){return e.visit(n,t)});return new Hn(e.tag,e.attrs,r,i,o,e.isVoid,e.sourceSpan)},t.prototype.visitPlaceholder=function(e,t){return new Wn(e.value,t.toPublicName(e.name),e.sourceSpan)},t.prototype.visitIcuPlaceholder=function(e,t){return new zn(e.value,t.toPublicName(e.name),e.sourceSpan)},t}(Kn),nf=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&&me(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 rf(e,t){var n,r,i,s,a=[];try{for(var u=o(e.transitiveModule.providers),p=u.next();!p.done;p=u.next()){var l=p.value,c=l.provider,h=l.module;if(xn(c.token)===t.ROUTES){var f=of(c.useValue);try{for(var d=o(f),v=d.next();!v.done;v=d.next())a.push(sf(v.value,t,h.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{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return a}function of(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=o(e),s=i.next();!s.done;s=i.next())of(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?of(e.loadChildren,t):e.children&&of(e.children,t);return t}function sf(e,t,n){var r=s(e.split("#"),2),i=t.resolveExternalReference({moduleName:r[0],name:r[1]},n?n.filePath:void 0);return{route:e,module:n||i,referencedModule: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
       */var af=/^(?!.*\.d\.ts$).*\.ts$/,uf=function uf(e,t){this.symbol=e,this.metadata=t},pf=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.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return e.prototype.resolveSymbol=function(e){return e.members.length>0?this._resolveSymbolMembers(e):this._resolveSymbolFromSummary(e)||this.resolvedSymbols.get(e)||(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(o=this.getImportAs(n,t))?this.getStaticSymbol(o.filePath,o.name,e.members):null}var r=function i(e){return e.replace(Ac,".")}(e.filePath);if(r!==e.filePath){var o,s=function a(e){return e.replace(Ic,"")}(e.name);return n=this.getStaticSymbol(r,s,e.members),(o=this.getImportAs(n,t))?this.getStaticSymbol(Fc(o.filePath),Bc(o.name),n.members):null}var u=t&&this.summaryResolver.getImportAs(e)||null;return u||(u=this.importAs.get(e)),u},e.prototype.getResourcePath=function(e){return this.symbolResourcePaths.get(e)||e.filePath},e.prototype.getTypeArity=function(e){if(function t(e){return Nc.test(e)}(e.filePath))return null;for(var n=cf(this.resolveSymbol(e));n&&n.metadata instanceof un;)n=cf(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),this.resolvedFilePaths.delete(e);var r=this.symbolFromFile.get(e);if(r){this.symbolFromFile.delete(e);try{for(var i=o(r),s=i.next();!s.done;s=i.next()){var a=s.value;this.resolvedSymbols.delete(a),this.importAs.delete(a),this.symbolResourcePaths.delete(a)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}},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=cf(n.metadata);if(r instanceof un)return new uf(e,this.getStaticSymbol(r.filePath,r.name,t));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<t.length&&i;o++)i=i[t[o]];return new uf(e,i)}return r.statics&&1===t.length?new uf(e,r.statics[t[0]]):null},e.prototype._resolveSymbolFromSummary=function(e){var t=this.summaryResolver.resolveSummary(e);return t?new uf(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);if(t)return t;this._createSymbolsOf(e);var n=[];return this.resolvedSymbols.forEach(function(t){t.symbol.filePath===e&&n.push(t.symbol)}),n},e.prototype._createSymbolsOf=function(e){var t,n,r=this;if(!this.resolvedFilePaths.has(e)){this.resolvedFilePaths.add(e);var i=[],s=this.getModuleMetadata(e);if(s.importAs&&this.knownFileNameToModuleNames.set(e,s.importAs),s.exports){var a=function(t){if(t.export)t.export.forEach(function(n){var o,s=o=lf(o="string"==typeof n?n:n.as);"string"!=typeof n&&(s=lf(n.name));var a=r.resolveModule(t.from,e);if(a){var u=r.getStaticSymbol(a,s),p=r.getStaticSymbol(e,o);i.push(r.createExport(p,u))}});else{var n=u.resolveModule(t.from,e);n&&u.getSymbolsOf(n).forEach(function(t){var n=r.getStaticSymbol(e,t.name);i.push(r.createExport(n,t))})}},u=this;try{for(var p=o(s.exports),l=p.next();!l.done;l=p.next())a(l.value)}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}}if(s.metadata){var c=new Set(Object.keys(s.metadata).map(lf)),h=s.origins||{};Object.keys(s.metadata).forEach(function(t){var n=s.metadata[t],o=lf(t),a=r.getStaticSymbol(e,o),u=h.hasOwnProperty(t)&&h[t];if(u){var p=r.resolveModule(u,e);p?r.symbolResourcePaths.set(a,p):r.reportError(new Error("Couldn't resolve original symbol for "+u+" from "+r.host.getOutputName(e)))}i.push(r.createResolvedSymbol(a,e,c,n))})}i.forEach(function(e){return r.resolvedSymbols.set(e.symbol,e)}),this.symbolFromFile.set(e,i.map(function(e){return e.symbol}))}},e.prototype.createResolvedSymbol=function(e,t,r,o){var s,u=this,p=af.test(e.filePath);if(this.summaryResolver.isLibraryFile(e.filePath)&&!p&&o&&"class"===o.__symbolic)return new uf(e,{__symbolic:"class",arity:o.arity});var l=function(){return s||(s=u.host.getOutputName(t.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[/\\]/,""))),s},c=this,h=At(o,new(function(o){function s(){return null!==o&&o.apply(this,arguments)||this}return n(s,o),s.prototype.visitStringMap=function(n,s){var u=n.__symbolic;if("function"===u){var p=s.length;s.push.apply(s,a(n.parameters||[]));var h=o.prototype.visitStringMap.call(this,n,s);return s.length=p,h}if("reference"!==u)return"error"===u?i({},n,{fileName:l()}):o.prototype.visitStringMap.call(this,n,s);var f=n.module,d=n.name?lf(n.name):n.name;if(!d)return null;var v=void 0;return f?(v=c.resolveModule(f,e.filePath))?{__symbolic:"resolved",symbol:c.getStaticSymbol(v,d),line:n.line,character:n.character,fileName:l()}:{__symbolic:"error",message:"Could not resolve "+f+" relative to "+c.host.getMetadataFor(e.filePath)+".",line:n.line,character:n.character,fileName:l()}:s.indexOf(d)>=0?{__symbolic:"reference",name:d}:r.has(d)?c.getStaticSymbol(t,d):void 0},s}(Ot)),[]),f=cf(h);return f instanceof un?this.createExport(e,f):new uf(e,h)},e.prototype.createExport=function(e,t){return e.assertNoMembers(),t.assertNoMembers(),this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(t,this.getImportAs(e)||e),new uf(e,t)},e.prototype.reportError=function(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(e,t&&t.filePath||n)},e.prototype.getModuleMetadata=function(e){var t=this.metadataCache.get(e);if(!t){var n=this.host.getMetadataFor(e);if(n){var r=-1;n.forEach(function(e){e&&e.version>r&&(r=e.version,t=e)})}if(t||(t={__symbolic:"module",version:4,module:e,metadata:{}}),4!=t.version){var i=2==t.version?"Unsupported metadata version "+t.version+" for module "+e+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+this.host.getOutputName(e)+", found version "+t.version+", expected 4";this.reportError(new Error(i))}this.metadataCache.set(e,t)}return t},e.prototype.getSymbolByModule=function(e,t,n){var r=this.resolveModule(e,n);return r?this.getStaticSymbol(r,t):(this.reportError(new Error("Could not resolve module "+e+(n?" relative to "+this.host.getOutputName(n):""))),this.getStaticSymbol("ERROR:"+e,t))},e.prototype.resolveModule=function(e,t){try{return this.host.moduleNameToFileName(e,t)}catch(n){console.error("Could not resolve module '"+e+"' relative to file "+t),this.reportError(n,void 0,t)}return null},e}();function lf(e){return e.startsWith("___")?e.substr(1):e}function cf(e){return e&&"resolved"===e.__symbolic?e.symbol:e}function hf(t,n,r){var i=Bc(n.name);t.statements.push(wt([],[new Je(r)],new ue(le)).toDeclStmt(i,[e.StmtModifier.Final,e.StmtModifier.Exported]))}var ff=function(t){function r(e,n,r){var i=t.call(this)||this;return i.symbolResolver=e,i.summaryResolver=n,i.srcFileName=r,i.symbols=[],i.indexBySymbol=new Map,i.reexportedBy=new Map,i.processedSummaryBySymbol=new Map,i.processedSummaries=[],i.unprocessedSymbolSummariesBySymbol=new Map,i.moduleName=e.getKnownModuleName(r),i}return n(r,t),r.prototype.addSummary=function(t){var n=this,r=this.unprocessedSymbolSummariesBySymbol.get(t.symbol),i=this.processedSummaryBySymbol.get(t.symbol);if(r||(this.unprocessedSymbolSummariesBySymbol.set(t.symbol,r={symbol:t.symbol,metadata:void 0}),i={symbol:this.processValue(t.symbol,0)},this.processedSummaries.push(i),this.processedSummaryBySymbol.set(t.symbol,i)),!r.metadata&&t.metadata){var o=t.metadata||{};if("class"===o.__symbolic){var s={};Object.keys(o).forEach(function(e){"decorators"!==e&&(s[e]=o[e])}),o=s}else mf(o)&&(function a(e){return mf(e)&&cf(e.expression)instanceof un}(o)||function u(e){return mf(e)&&e.expression&&"select"===e.expression.__symbolic&&cf(e.expression.expression)instanceof un}
  /**
       * @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)||(o={__symbolic:"error",message:"Complex function calls are not supported."}));if(r.metadata=o,i.metadata=this.processValue(o,1),o instanceof un&&this.summaryResolver.isLibraryFile(o.filePath)){var p=this.symbols[this.indexBySymbol.get(o)];jc(p.name)||this.reexportedBy.set(p,t.symbol)}}if(!r.type&&t.type&&(r.type=t.type,i.type=this.processValue(t.type,0),t.type.summaryKind===e.CompileSummaryKind.NgModule)){var l=t.type;l.exportedDirectives.concat(l.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)}})}},r.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 o=void 0;if(t.summaryResolver.isLibraryFile(r.filePath)){var s=t.reexportedBy.get(r);if(s)o=t.indexBySymbol.get(s);else if(e){var a=t.unprocessedSymbolSummariesBySymbol.get(r);a&&a.metadata&&"interface"===a.metadata.__symbolic||n.push({symbol:r,exportAs:o=r.name+"_"+i})}}return{__symbol:i,name:r.name,filePath:t.summaryResolver.toSummaryFileName(r.filePath,t.srcFileName),importAs:o}})}),exportAs:n}},r.prototype.processValue=function(e,t){return At(e,this,t)},r.prototype.visitOther=function(e,t){if(e instanceof un){var n=this.symbolResolver.getStaticSymbol(e.filePath,e.name);return{__symbol:this.visitStaticSymbol(n,t),members:e.members}}},r.prototype.visitStringMap=function(e,n){return"resolved"===e.__symbolic?At(e.symbol,this,n):("error"===e.__symbolic&&(delete e.line,delete e.character),t.prototype.visitStringMap.call(this,e,n))},r.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 un&&(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},r.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},r}(Ot),df=function(){function t(e,t,n){this.outputCtx=e,this.symbolResolver=t,this.summaryResolver=n,this.data=[]}return t.prototype.addSourceType=function(e,t){this.data.push({summary:e,metadata:t,isLibrary:!1})},t.prototype.addLibType=function(e){this.data.push({summary:e,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){var n,r,i,s,a,u,p=this,l=new Map;try{for(var c=o(t),h=c.next();!h.done;h=c.next()){var f=h.value;l.set(f.symbol,f.exportAs)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}var d=new Set;try{for(var v=o(this.data),m=v.next();!m.done;m=v.next()){var y=m.value,g=y.summary,_=y.metadata,E=y.isLibrary;if(g.summaryKind===e.CompileSummaryKind.NgModule){d.add(g.type.reference);var x=g;try{for(var S=o(x.modules),w=S.next();!w.done;w=S.next())d.add(w.value.reference)}catch(e){a={error:e}}finally{try{w&&!w.done&&(u=S.return)&&u.call(S)}finally{if(a)throw a.error}}}E||(Bc(g.type.reference.name),hf(this.outputCtx,g.type.reference,this.serializeSummaryWithDeps(g,_)))}}catch(e){i={error:e}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}d.forEach(function(t){if(p.summaryResolver.isLibraryFile(t.filePath)){var n=Bc(l.get(t)||t.name);p.outputCtx.statements.push(yt(n).set(p.serializeSummaryRef(t)).toDeclStmt(null,[e.StmtModifier.Exported]))}})},t.prototype.serializeSummaryWithDeps=function(t,n){var r=this,i=[this.serializeSummary(t)],o=[];return n instanceof Pn?(i.push.apply(i,a(n.declaredDirectives.concat(n.declaredPipes).map(function(e){return e.reference}).concat(n.transitiveModule.modules.map(function(e){return e.reference}).filter(function(e){return e!==n.type.reference})).map(function(e){return r.serializeSummaryRef(e)}))),o=n.providers):t.summaryKind===e.CompileSummaryKind.Directive&&(o=t.providers.concat(t.viewProviders)),i.push.apply(i,a(o.filter(function(e){return!!e.useClass}).map(function(t){return r.serializeSummary({summaryKind:e.CompileSummaryKind.Injectable,type:t.useClass})}))),xt(i)},t.prototype.serializeSummaryRef=function(e){var t=this.symbolResolver.getStaticSymbol(Fc(e.filePath),Bc(e.name));return this.outputCtx.importExpr(t)},t.prototype.serializeSummary=function(e){var t=this.outputCtx;return At(e,new(function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return xt(e.map(function(e){return At(e,n,t)}))},e.prototype.visitStringMap=function(e,t){var n=this;return new We(Object.keys(e).map(function(r){return new He(r,At(e[r],n,t),!1)}))},e.prototype.visitPrimitive=function(e,t){return bt(e)},e.prototype.visitOther=function(e,n){if(e instanceof un)return t.importExpr(e);throw new Error("Illegal State: Encountered value "+e)},e}()),null)},t}(),vf=function(e){function t(t,n){var r=e.call(this)||this;return r.symbolCache=t,r.summaryResolver=n,r}return n(t,e),t.prototype.deserialize=function(e,t){var n=this,r=JSON.parse(t),i=[];this.symbols=r.symbols.map(function(t){return n.symbolCache.get(n.summaryResolver.fromSummaryFileName(t.filePath,e),t.name)}),r.symbols.forEach(function(t,r){var o=n.symbols[r],s=t.importAs;"number"==typeof s?i.push({symbol:o,importAs:n.symbols[s]}):"string"==typeof s&&i.push({symbol:o,importAs:n.symbolCache.get(kc(e),s)})});var o=At(r.summaries,this,null);return{moduleName:r.moduleName,summaries:o,importAs:i}},t.prototype.visitStringMap=function(t,n){if("__symbol"in t){var r=this.symbols[t.__symbol],i=t.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return e.prototype.visitStringMap.call(this,t,n)},t}(Ot);function mf(e){return e&&"call"===e.__symbolic}var yf=function(){function t(e,t,n,r,i,o,s,a,u,p,l,c,h,f){this._config=e,this._options=t,this._host=n,this.reflector=r,this._metadataResolver=i,this._templateParser=o,this._styleCompiler=s,this._viewCompiler=a,this._typeCheckCompiler=u,this._ngModuleCompiler=p,this._injectableCompiler=l,this._outputEmitter=c,this._summaryResolver=h,this._symbolResolver=f,this._templateAstCache=new Map,this._analyzedFiles=new Map,this._analyzedFilesForInjectables=new Map}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.analyzeModulesSync=function(e){var t=this,n=Sf(e,this._host,this._symbolResolver,this._metadataResolver);return n.ngModules.forEach(function(e){return t._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!0)}),n},t.prototype.analyzeModulesAsync=function(e){var t=this,n=Sf(e,this._host,this._symbolResolver,this._metadataResolver);return Promise.all(n.ngModules.map(function(e){return t._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1)})).then(function(){return n})},t.prototype._analyzeFile=function(e){var t=this._analyzedFiles.get(e);return t||(t=Cf(this._host,this._symbolResolver,this._metadataResolver,e),this._analyzedFiles.set(e,t)),t},t.prototype._analyzeFileForInjectables=function(e){var t=this._analyzedFilesForInjectables.get(e);return t||(t=bf(0,this._symbolResolver,this._metadataResolver,e),this._analyzedFilesForInjectables.set(e,t)),t},t.prototype.findGeneratedFileNames=function(e){var t=this,n=[],r=this._analyzeFile(e);(this._options.allowEmptyCodegenFiles||r.directives.length||r.pipes.length||r.injectables.length||r.ngModules.length||r.exportsNonSourceFiles)&&(n.push(kc(r.fileName,!0)),this._options.enableSummariesForJit&&n.push(Fc(r.fileName,!0)));var i=Dc(Rc(r.fileName,!0)[1]);return r.directives.forEach(function(e){var o=t._metadataResolver.getNonNormalizedDirectiveMetadata(e).metadata;o.isComponent&&o.template.styleUrls.forEach(function(e){var s=t._host.resourceNameToFileName(e,r.fileName);if(!s)throw Bt("Couldn't resolve resource "+e+" relative to "+r.fileName);var a=(o.template.encapsulation||t._config.defaultEncapsulation)===E.Emulated;n.push(Ef(s,a,i)),t._options.allowEmptyCodegenFiles&&n.push(Ef(s,!a,i))})}),n},t.prototype.emitBasicStub=function(e,t){var n=this._createOutputContext(e);if(e.endsWith(".ngfactory.ts")){if(!t)throw new Error("Assertion error: require the original file for .ngfactory.ts stubs. File: "+e);var r=this._analyzeFile(t);this._createNgFactoryStub(n,r,1)}else if(e.endsWith(".ngsummary.ts")){if(this._options.enableSummariesForJit){if(!t)throw new Error("Assertion error: require the original file for .ngsummary.ts stubs. File: "+e);r=this._analyzeFile(t),gf(n),r.ngModules.forEach(function(e){!function t(e,n){hf(e,n,Ke)}(n,e.type.reference)})}}else e.endsWith(".ngstyle.ts")&&gf(n);return this._codegenSourceModule("unknown",n)},t.prototype.emitTypeCheckStub=function(e,t){var n=this._analyzeFile(t),r=this._createOutputContext(e);return e.endsWith(".ngfactory.ts")&&this._createNgFactoryStub(r,n,2),r.statements.length>0?this._codegenSourceModule(n.fileName,r):null},t.prototype.loadFilesAsync=function(e,t){var n=this,r=e.map(function(e){return n._analyzeFile(e)}),i=[];r.forEach(function(e){return e.ngModules.forEach(function(e){return i.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1))})});var o=t.map(function(e){return n._analyzeFileForInjectables(e)});return Promise.all(i).then(function(e){return{analyzedModules:Pf(r),analyzedInjectables:o}})},t.prototype.loadFilesSync=function(e,t){var n=this,r=e.map(function(e){return n._analyzeFile(e)});r.forEach(function(e){return e.ngModules.forEach(function(e){return n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!0)})});var i=t.map(function(e){return n._analyzeFileForInjectables(e)});return{analyzedModules:Pf(r),analyzedInjectables:i}},t.prototype._createNgFactoryStub=function(e,t,n){var r=this,i=0;t.ngModules.forEach(function(t,o){r._ngModuleCompiler.createStub(e,t.type.reference);var s=a(t.transitiveModule.directives.map(function(e){return e.reference}),t.transitiveModule.pipes.map(function(e){return e.reference}),t.importedModules.map(function(e){return e.type.reference}),t.exportedModules.map(function(e){return e.type.reference}),r._externalIdentifierReferences([on.TemplateRef,on.ElementRef])),u=new Map;s.forEach(function(e,t){u.set(e,"_decl"+o+"_"+t)}),u.forEach(function(t,n){e.statements.push(yt(t).set(Ke.cast(le)).toDeclStmt(Et(e.importExpr(n,null,!1))))}),2&n&&t.declaredDirectives.forEach(function(n){var o=r._metadataResolver.getDirectiveMetadata(n.reference);o.isComponent&&(r._createTypeCheckBlock(e,o.type.reference.name+"_Host_"+ ++i,t,r._metadataResolver.getHostComponentMetadata(o),[o.type],u),r._createTypeCheckBlock(e,o.type.reference.name+"_"+i,t,o,t.transitiveModule.directives,u))})}),0===e.statements.length&&gf(e)},t.prototype._externalIdentifierReferences=function(e){var t,n,r=[];try{for(var i=o(e),s=i.next();!s.done;s=i.next()){var a=an(this.reflector,s.value);a.identifier&&r.push(a.identifier.reference)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},t.prototype._createTypeCheckBlock=function(e,t,n,r,i,o){var s,u=this._parseTemplate(r,n,i);(s=e.statements).push.apply(s,a(this._typeCheckCompiler.compileComponent(t,r,u.template,u.pipes,o,e)))},t.prototype.emitMessageBundle=function(e,t){var n=this,r=[],i=new hu,o=new ef(i,[],{},t);if(e.files.forEach(function(e){var t=[];e.directives.forEach(function(e){var r=n._metadataResolver.getDirectiveMetadata(e);r&&r.isComponent&&t.push(r)}),t.forEach(function(e){var t=e.template.template,n=e.template.templateUrl,i=Si.fromArray(e.template.interpolation);r.push.apply(r,a(o.updateFromTemplate(t,n,i)))})}),r.length)throw new Error(r.map(function(e){return e.toString()}).join("\n"));return o},t.prototype.emitAllPartialModules=function(e,t){var n=this,r=e.ngModuleByPipeOrDirective,i=e.files,o=new Map,s=function(e){return o.has(e)||o.set(e,n._createOutputContext(e)),o.get(e)};return i.forEach(function(e){return n._compilePartialModule(e.fileName,r,e.directives,e.pipes,e.ngModules,e.injectables,s(e.fileName))}),t.forEach(function(e){return n._compileShallowModules(e.fileName,e.shallowModules,s(e.fileName))}),Array.from(o.values()).map(function(e){return{fileName:e.genFilePath,statements:a(e.constantPool.statements,e.statements)}})},t.prototype._compileShallowModules=function(t,n,r){var i=this;n.forEach(function(t){return function n(t,r,i){var o=dn(r.type),s=r.rawImports?[r.rawImports]:[],u=r.rawExports?[r.rawExports]:[],p=Nr({factory:i.factoryFor({type:r.type,symbol:r.type.reference},t),providers:hi(r.rawProviders,t),imports:hi(a(s,u),t)}),l=gt(Bn.defineInjector).callFn([p]);t.statements.push(new rt(o,null,[new et("ngInjectorDef",ce,[e.StmtModifier.Static],l)],[],new tt(null,[],[]),[]))}(r,t,i._injectableCompiler)})},t.prototype._compilePartialModule=function(t,n,r,o,a,u,p){var l=this,c=new Au,h=new Iu(this._templateParser.expressionParser,wi,c,[],[]);r.forEach(function(t){var r=l._metadataResolver.getDirectiveMetadata(t);if(r.isComponent){var o=n.get(t);o||Ft("Cannot determine the module for component '"+dn(r.type)+"'");var a=r.template.htmlAst;r.template.preserveWhitespaces||(a=Eu(a));var u=cp(a.rootNodes,h),c=new Map;o.transitiveModule.directives.map(function(e){return l._metadataResolver.getDirectiveSummary(e.reference)}).forEach(function(e){e.selector&&c.set(e.selector,e.type.reference)});var f=new Map;o.transitiveModule.pipes.map(function(e){return l._metadataResolver.getPipeSummary(e.reference)}).forEach(function(e){f.set(e.name,e.type.reference)}),function d(t,n,r,o,a,u,p){var l=dn(n.type);l||Ft("Cannot resolver the name of "+n.type);var c=t.constantPool.propertyNameOf(2),h=n.toSummary(),f=Zp(i({},el(n,t,o),{selector:n.selector,template:{nodes:r.nodes},directives:[],pipes:function d(e,t){var n=Array.from(e).map(function(e){var n=s(e,2);return[n[0],t.importExpr(n[1])]});return new Map(n)}(p,t),viewQueries:tl(n.viewQueries,t),wrapDirectivesAndPipesInClosure:!1,styles:h.template&&h.template.styles||Qp,encapsulation:h.template&&h.template.encapsulation||E.Emulated,interpolation:wi,animations:null,viewProviders:n.viewProviders.length>0?new Se(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),t.constantPool,a);t.statements.push(new rt(l,null,[new et(c,ce,[e.StmtModifier.Static],f.expression)],[],new tt(null,[],[]),[]))}(p,r,u,l.reflector,h,0,f)}else!function v(t,n,r,i){var o=dn(n.type);o||Ft("Cannot resolver the name of "+n.type);var s=t.constantPool.propertyNameOf(1),a=Jp(el(n,t,r),t.constantPool,i);t.statements.push(new rt(o,null,[new et(s,ce,[e.StmtModifier.Static],a.expression)],[],new tt(null,[],[]),[]))}(p,r,l.reflector,h)}),o.forEach(function(t){var n=l._metadataResolver.getPipeMetadata(t);n&&function r(t,n,i){var o=dn(n.type);if(!o)return Ft("Cannot resolve the name of "+n.type);var s=zi({name:o,pipeName:n.name,type:t.importExpr(n.type.reference),deps:pi(n.type,t,i),pure:n.pure}),a=t.constantPool.propertyNameOf(3);t.statements.push(new rt(o,null,[new et(a,ce,[e.StmtModifier.Static],s.expression)],[],new tt(null,[],[]),[]))}(p,n,l.reflector)}),u.forEach(function(e){return l._injectableCompiler.compile(e,p)})},t.prototype.emitAllPartialModules2=function(e){var t=this;return e.reduce(function(e,n){return e.push.apply(e,a(t._emitPartialModule2(n.fileName,n.injectables))),e},[])},t.prototype._emitPartialModule2=function(e,t){var n=this,r=this._createOutputContext(e);return t.forEach(function(e){return n._injectableCompiler.compile(e,r)}),r.statements&&r.statements.length>0?[{fileName:e,statements:a(r.constantPool.statements,r.statements)}]:[]},t.prototype.emitAllImpls=function(e){var t=this,n=e.ngModuleByPipeOrDirective;return In(e.files.map(function(e){return t._compileImplFile(e.fileName,n,e.directives,e.pipes,e.ngModules,e.injectables)}))},t.prototype._compileImplFile=function(e,t,n,r,i,o){var s=this,u=Dc(Rc(e,!0)[1]),p=[],l=this._createOutputContext(kc(e,!0));if(p.push.apply(p,a(this._createSummary(e,n,r,i,o,l))),i.forEach(function(e){return s._compileModule(l,e)}),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(r.isComponent){var i=t.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+dn(r.type)+"!");var o=s._styleCompiler.compileComponent(l,r);r.template.externalStylesheets.forEach(function(t){var n=s._styleCompiler.needsStyleShim(r);p.push(s._codegenStyles(e,r,t,n,u)),s._options.allowEmptyCodegenFiles&&p.push(s._codegenStyles(e,r,t,!n,u))}),s._compileComponent(l,r,i,i.transitiveModule.directives,o,u),s._compileComponentFactory(l,r,i,u)}}),l.statements.length>0||this._options.allowEmptyCodegenFiles){var c=this._codegenSourceModule(e,l);p.unshift(c)}return p},t.prototype._createSummary=function(t,n,r,i,o,s){var u=this,p=this._symbolResolver.getSymbolsOf(t).map(function(e){return u._symbolResolver.resolveSymbol(e)}),l=a(i.map(function(e){return{summary:u._metadataResolver.getNgModuleSummary(e.type.reference),metadata:u._metadataResolver.getNgModuleMetadata(e.type.reference)}}),n.map(function(e){return{summary:u._metadataResolver.getDirectiveSummary(e),metadata:u._metadataResolver.getDirectiveMetadata(e)}}),r.map(function(e){return{summary:u._metadataResolver.getPipeSummary(e),metadata:u._metadataResolver.getPipeMetadata(e)}}),o.map(function(e){return{summary:u._metadataResolver.getInjectableSummary(e.symbol),metadata:u._metadataResolver.getInjectableSummary(e.symbol).type}})),c=this._options.enableSummariesForJit?this._createOutputContext(Fc(t,!0)):null,h=function f(e,t,n,r,i,o,s){void 0===s&&(s=!0);var a=new ff(r,n,e);i.forEach(function(e){return a.addSummary({symbol:e.symbol,metadata:e.metadata})}),o.forEach(function(e){var t=e.summary;a.addSummary({symbol:t.type.reference,metadata:void 0,type:t})});var u=a.serialize(s),p=u.json,l=u.exportAs;if(t){var c=new df(t,r,n);o.forEach(function(e){c.addSourceType(e.summary,e.metadata)}),a.unprocessedSymbolSummariesBySymbol.forEach(function(e){n.isLibraryFile(e.symbol.filePath)&&e.type&&c.addLibType(e.type)}),c.serialize(l)}return{json:p,exportAs:l}}(t,c,this._summaryResolver,this._symbolResolver,p,l,this._options.createExternalSymbolFactoryReexports),d=h.json;h.exportAs.forEach(function(t){s.statements.push(yt(t.exportAs).set(s.importExpr(t.symbol)).toDeclStmt(null,[e.StmtModifier.Exported]))});var v=[new nf(t,Lc(t),d)];return c&&v.push(this._codegenSourceModule(t,c)),v},t.prototype._compileModule=function(e,t){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:an(this.reflector,on.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:an(this.reflector,on.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(e,t,n)},t.prototype._compileComponentFactory=function(t,n,r,i){var o=this._metadataResolver.getHostComponentMetadata(n),s=this._compileComponent(t,o,r,[n.type],null,i).viewClassVar,a=_n(n.type.reference),u=[];for(var p in n.inputs)u.push(new He(p,bt(n.inputs[p]),!1));var l=[];for(var p in n.outputs)l.push(new He(p,bt(n.outputs[p]),!1));t.statements.push(yt(a).set(gt(on.createComponentFactory).callFn([bt(n.selector),t.importExpr(n.type.reference),yt(s),new We(u),new We(l),xt(n.template.ngContentSelectors.map(function(e){return bt(e)}))])).toDeclStmt(_t(on.ComponentFactory,[Et(t.importExpr(n.type.reference))],[te.Const]),[e.StmtModifier.Final,e.StmtModifier.Exported]))},t.prototype._compileComponent=function(e,t,n,r,i,o){var s=this._parseTemplate(t,n,r),a=s.template,u=s.pipes,p=i?yt(i.stylesVar):xt([]),l=this._viewCompiler.compileComponent(e,t,a,p,u);return i&&_f(this._symbolResolver,i,this._styleCompiler.needsStyleShim(t),o),l},t.prototype._parseTemplate=function(e,t,n){var r=this;if(this._templateAstCache.has(e.type.reference))return this._templateAstCache.get(e.type.reference);var i=e.template.preserveWhitespaces,o=n.map(function(e){return r._metadataResolver.getDirectiveSummary(e.reference)}),s=t.transitiveModule.pipes.map(function(e){return r._metadataResolver.getPipeSummary(e.reference)}),a=this._templateParser.parse(e,e.template.htmlAst,o,s,t.schemas,On(t.type,e,e.template),i);return this._templateAstCache.set(e.type.reference,a),a},t.prototype._createOutputContext=function(e){var t=this;return{statements:[],genFilePath:e,importExpr:function(n,r,i){if(void 0===r&&(r=null),void 0===i&&(i=!0),!(n instanceof un))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var o=t._symbolResolver.getTypeArity(n)||0,s=t._symbolResolver.getImportAs(n,i)||n,a=s.name,u=s.members,p=t._fileNameToModuleName(s.filePath,e),l=p===t._fileNameToModuleName(e,e)?null:p,c=r||[],h=c.concat(new Array(o-c.length).fill(le));return u.reduce(function(e,t){return e.prop(t)},gt(new ke(l,a,null),h))},constantPool:new Zt}},t.prototype._fileNameToModuleName=function(e,t){return this._summaryResolver.getKnownModuleName(e)||this._symbolResolver.getKnownModuleName(e)||this._host.fileNameToModuleName(e,t)},t.prototype._codegenStyles=function(e,t,n,r,i){var o=this._createOutputContext(Ef(n.moduleUrl,r,i)),s=this._styleCompiler.compileStyles(o,t,n,r);return _f(this._symbolResolver,s,r,i),this._codegenSourceModule(e,o)},t.prototype._codegenSourceModule=function(e,t){return new nf(e,t.genFilePath,t.statements)},t.prototype.listLazyRoutes=function(e,t){var n,r,i,s,a=this;if(e)return function e(t,n,r){var i,s;if(void 0===n&&(n=new Set),void 0===r&&(r=[]),n.has(t)||!t.name)return r;n.add(t);var u=rf(a._metadataResolver.getNgModuleMetadata(t,!0),a.reflector);try{for(var p=o(u),l=p.next();!l.done;l=p.next()){var c=l.value;r.push(c),e(c.referencedModule,n,r)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(s=p.return)&&s.call(p)}finally{if(i)throw i.error}}return r}(sf(e,this.reflector).referencedModule);if(t){var u=[];try{for(var p=o(t.ngModules),l=p.next();!l.done;l=p.next()){var c=rf(l.value,this.reflector);try{for(var h=o(c),f=h.next();!f.done;f=h.next())u.push(f.value)}catch(e){i={error:e}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}return u}throw new Error("Either route or analyzedModules has to be specified!")},t}();function gf(e){e.statements.push(gt(on.ComponentFactory).toStmt())}function _f(e,t,n,r){t.dependencies.forEach(function(t){t.setValue(e.getStaticSymbol(Ef(t.moduleUrl,n,r),t.name))})}function Ef(e,t,n){return e+(t?".shim":"")+".ngstyle"+n}function xf(e,t,n,r){return Tf(function i(e,t,n,r){var i=new Set,o=[],s=function(e){if(i.has(e)||!t.isSourceFile(e))return!1;i.add(e);var a=Cf(t,n,r,e);o.push(a),a.ngModules.forEach(function(e){e.transitiveModule.modules.forEach(function(e){return s(e.reference.filePath)})})};return e.forEach(function(e){return s(e)}),o}(e,t,n,r))}function Sf(e,t,n,r){return wf(xf(e,t,n,r))}function wf(e){if(e.symbolsMissingModule&&e.symbolsMissingModule.length)throw Bt(e.symbolsMissingModule.map(function(e){return"Cannot determine the module for class "+e.name+" in "+e.filePath+"! Add "+e.name+" to the NgModule to fix it."}).join("\n"));return e}function Cf(e,t,n,r){var i=[],o=[],s=[],a=[],u=t.hasDecorators(r),p=!1;return r.endsWith(".d.ts")&&!u||t.getSymbolsOf(r).forEach(function(r){var u=t.resolveSymbol(r).metadata;if(u&&"error"!==u.__symbolic){var l=!1;if("class"===u.__symbolic)if(n.isDirective(r))l=!0,i.push(r);else if(n.isPipe(r))l=!0,o.push(r);else if(n.isNgModule(r)){var c=n.getNgModuleMetadata(r,!1);c&&(l=!0,a.push(c))}else if(n.isInjectable(r)){l=!0;var h=n.getInjectableMetadata(r,null,!1);h&&s.push(h)}l||(p=p||function f(e,t){var n=!1;return At(t,new(function(){function t(){}return t.prototype.visitArray=function(e,t){var n=this;e.forEach(function(e){return At(e,n,t)})},t.prototype.visitStringMap=function(e,t){var n=this;Object.keys(e).forEach(function(r){return At(e[r],n,t)})},t.prototype.visitPrimitive=function(e,t){},t.prototype.visitOther=function(t,r){t instanceof un&&!e.isSourceFile(t.filePath)&&(n=!0)},t}()),null),n}(e,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:p}}function bf(e,t,n,r){var i=[],o=[];return t.hasDecorators(r)&&t.getSymbolsOf(r).forEach(function(e){var r=t.resolveSymbol(e).metadata;if(r&&"error"!==r.__symbolic&&"class"===r.__symbolic)if(n.isInjectable(e)){var s=n.getInjectableMetadata(e,null,!1);s&&i.push(s)}else if(n.isNgModule(e)){var a=n.getShallowModuleMetadata(e);a&&o.push(a)}}),{fileName:r,injectables:i,shallowModules:o}}function Tf(e){var t=[],n=new Map,r=new Set;e.forEach(function(e){e.ngModules.forEach(function(e){t.push(e),e.declaredDirectives.forEach(function(t){return n.set(t.reference,e)}),e.declaredPipes.forEach(function(t){return n.set(t.reference,e)})}),e.directives.forEach(function(e){return r.add(e)}),e.pipes.forEach(function(e){return r.add(e)})});var i=[];return r.forEach(function(e){n.has(e)||i.push(e)}),{ngModules:t,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:e}}function Pf(e){return wf(Tf(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 Mf="ngFormattedMessage";function Nf(e){var t=Bt(function e(t,n){if(void 0===n&&(n=0),!t)return"";var r=t.position?t.position.fileName+"("+(t.position.line+1)+","+(t.position.column+1)+")":"",i=(r&&0===n?r+": ":"")+t.message+(r&&0!==n?" at "+r:"");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?" ":"")}(n)+i+(t.next&&"\n"+e(t.next,n+2)||"")}(e)+".");return t[Mf]=!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 Af="@angular/core",If=/^\$.*\$$/,kf={__symbolic:"ignore"},Of=new Set(["useValue","useFactory","data","id","loadChildren"]);function Rf(e){return e&&"ignore"==e.__symbolic}var Df=function(){function t(t,n,r,i,o){void 0===r&&(r=[]),void 0===i&&(i=[]);var s=this;this.summaryResolver=t,this.symbolResolver=n,this.errorRecorder=o,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(),r.forEach(function(e){return s._registerDecoratorOrConstructor(s.getStaticSymbol(e.filePath,e.name),e.ctor)}),i.forEach(function(e){return s._registerFunction(s.getStaticSymbol(e.filePath,e.name),e.fn)}),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.Directive,[R,F]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.Pipe,[B]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.NgModule,[H]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.Injectable,[W,B,R,F,H])}return t.prototype.componentModuleUrl=function(e){var t=this.findSymbolDeclaration(e);return this.symbolResolver.getResourcePath(t)},t.prototype.resolveExternalReference=function(e,t){var n=void 0;if(!t){var r=this.resolvedExternalReferences.get(n=e.moduleName+":"+e.name);if(r)return r}var i=this.symbolResolver.getSymbolByModule(e.moduleName,e.name,t),o=this.findSymbolDeclaration(i);return t||(this.symbolResolver.recordModuleNameForFileName(i.filePath,e.moduleName),this.symbolResolver.recordImportAs(o,i)),n&&this.resolvedExternalReferences.set(n,o),o},t.prototype.findDeclaration=function(e,t,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(e,t,n))},t.prototype.tryFindDeclaration=function(e,t,n){var r=this;return this.symbolResolver.ignoreErrorsFor(function(){return r.findDeclaration(e,t,n)})},t.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 un)return this.findSymbolDeclaration(t.metadata)}return e},t.prototype.tryAnnotations=function(e){var t=this.errorRecorder;this.errorRecorder=function(e,t){};try{return this.annotations(e)}finally{this.errorRecorder=t}},t.prototype.annotations=function(e){var t=this;return this._annotations(e,function(e,n){return t.simplify(e,n)},this.annotationCache)},t.prototype.shallowAnnotations=function(e){var t=this;return this._annotations(e,function(e,n){return t.simplify(e,n,!0)},this.shallowAnnotationCache)},t.prototype._annotations=function(t,n,r){var i=r.get(t);if(!i){i=[];var o=this.getTypeMetadata(t),s=this.findParentType(t,o);if(s){var u=this.annotations(s);i.push.apply(i,a(u))}var p=[];if(o.decorators&&(p=n(t,o.decorators))&&i.push.apply(i,a(p)),s&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(s.filePath)){var l=this.summaryResolver.resolveSummary(s);if(l&&l.type){var c=this.annotationForParentClassWithSummaryKind.get(l.type.summaryKind);c.some(function(e){return p.some(function(t){return e.isTypeOf(t)})})||this.reportError(Gf(Ff("Class "+t.name+" in "+t.filePath+" extends from a "+e.CompileSummaryKind[l.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+c.map(function(e){return e.ngMetadataName}).join(" or ")+" decorator to the class"),t),t)}}r.set(t,i.filter(function(e){return!!e}))}return i},t.prototype.propMetadata=function(e){var t=this,n=this.propertyCache.get(e);if(!n){var r=this.getTypeMetadata(e);n={};var i=this.findParentType(e,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(e){n[e]=o[e]})}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r].find(function(e){return"property"==e.__symbolic||"method"==e.__symbolic}),o=[];n[r]&&o.push.apply(o,a(n[r])),n[r]=o,i&&i.decorators&&o.push.apply(o,a(t.simplify(e,i.decorators)))}),this.propertyCache.set(e,n)}return n},t.prototype.parameters=function(e){var t=this;if(!(e instanceof un))return this.reportError(new Error("parameters received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),[];try{var n=this.parameterCache.get(e);if(!n){var r=this.getTypeMetadata(e),i=this.findParentType(e,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var u=s.find(function(e){return"constructor"==e.__symbolic}),p=u.parameters||[],l=this.simplify(e,u.parameterDecorators||[]);n=[],p.forEach(function(r,i){var o=[],s=t.trySimplify(e,r);s&&o.push(s);var u=l?l[i]:null;u&&o.push.apply(o,a(u)),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(e,n)}return n}catch(t){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+t),t}},t.prototype._methodNames=function(e){var t=this.methodCache.get(e);if(!t){var n=this.getTypeMetadata(e);t={};var r=this.findParentType(e,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(e){t[e]=i[e]})}var o=n.members||{};Object.keys(o).forEach(function(e){var n=o[e].some(function(e){return"method"==e.__symbolic});t[e]=t[e]||n}),this.methodCache.set(e,t)}return t},t.prototype._staticMembers=function(e){var t=this.staticCache.get(e);if(!t){var n=this.getTypeMetadata(e);t=Object.keys(n.statics||{}),this.staticCache.set(e,t)}return t},t.prototype.findParentType=function(e,t){var n=this.trySimplify(e,t.extends);if(n instanceof un)return n},t.prototype.hasLifecycleHook=function(e,t){e instanceof un||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(e)+" which is not a StaticSymbol"),e);try{return!!this._methodNames(e)[t]}catch(t){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+t),t}},t.prototype.guards=function(e){var t,n;if(!(e instanceof un))return this.reportError(new Error("guards received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),{};var r=this._staticMembers(e),i={};try{for(var s=o(r),a=s.next();!a.done;a=s.next()){var u=a.value;if(u.endsWith("TypeGuard")){var p=u.substr(0,u.length-"TypeGuard".length),l=void 0;p.endsWith("UseIf")?(p=u.substr(0,p.length-"UseIf".length),l="UseIf"):l=this.getStaticSymbol(e.filePath,e.name,[u]),i[p]=l}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return i},t.prototype._registerDecoratorOrConstructor=function(e,t){this.conversionMap.set(e,function(e,n){return new(t.bind.apply(t,a([void 0],n)))})},t.prototype._registerFunction=function(e,t){this.conversionMap.set(e,function(e,n){return t.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Injectable"),W),this.injectionToken=this.findDeclaration(Af,"InjectionToken"),this.opaqueToken=this.findDeclaration(Af,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(Af,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Host"),$),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Self"),X),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"SkipSelf"),G),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Inject"),P),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Optional"),Q),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Attribute"),N),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"ContentChild"),I),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"ContentChildren"),A),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"ViewChild"),O),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"ViewChildren"),k),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Input"),V),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Output"),j),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Pipe"),B),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"HostBinding"),U),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"HostListener"),q),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Directive"),R),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Component"),F),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"NgModule"),H),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Host"),$),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Self"),X),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"SkipSelf"),G),this._registerDecoratorOrConstructor(this.findDeclaration(Af,"Optional"),Q)},t.prototype.getStaticSymbol=function(e,t,n){return this.symbolResolver.getStaticSymbol(e,t,n)},t.prototype.trySimplify=function(e,t){var n=this.errorRecorder;this.errorRecorder=function(e,t){};var r=this.simplify(e,t);return this.errorRecorder=n,r},t.prototype.simplify=function(e,t,n){void 0===n&&(n=!1);var r,i=this,s=Qf.empty,u=new Map;try{r=function e(t,n,r,p){function l(e){var t=i.symbolResolver.resolveSymbol(e);return t?t.metadata:null}function c(n){return e(t,n,r,0)}function h(n,o){if(n===t)return e(n,o,r+1,p);try{return e(n,o,r+1,p)}catch(e){if(!Bf(e))throw e;var s=e.chain?"references '"+e.symbol.name+"'":function a(e){if(e.summary)return e.summary;switch(e.message){case Vf:if(e.context&&e.context.className)return"references non-exported class "+e.context.className;break;case jf:return"is not initialized";case Uf:return"is a destructured variable";case qf:return"could not be resolved";case Hf:return e.context&&e.context.name?"calls '"+e.context.name+"'":"calls a function";case Wf:return e.context&&e.context.name?"references local variable "+e.context.name:"references a local variable"}return"contains the error"}(e);i.error({message:e.message,advise:e.advise,context:e.context,chain:{message:"'"+n.name+"' "+s,position:e.position,next:e.chain},symbol:n},t)}}return function n(f){var d,v,m,y;if(Kf(f))return f;if(f instanceof Array){var g=[];try{for(var _=o(f),E=_.next();!E.done;E=_.next()){var x=E.value;if(x&&"spread"===x.__symbolic){var S=c(x.expression);if(Array.isArray(S)){try{for(var w=o(S),C=w.next();!C.done;C=w.next())g.push(C.value)}catch(e){m={error:e}}finally{try{C&&!C.done&&(y=w.return)&&y.call(w)}finally{if(m)throw m.error}}continue}}var b=n(x);Rf(b)||g.push(b)}}catch(e){d={error:e}}finally{try{E&&!E.done&&(v=_.return)&&v.call(_)}finally{if(d)throw d.error}}return g}if(f instanceof un)return f===i.injectionToken||i.conversionMap.has(f)||p>0&&!f.members.length?f:null!=(D=l(T=f))?h(T,D):T;if(f){if(f.__symbolic){var T=void 0;switch(f.__symbolic){case"binop":var P=n(f.left);if(Rf(P))return P;var M=n(f.right);if(Rf(M))return M;switch(f.operator){case"&&":return P&&M;case"||":return P||M;case"|":return P|M;case"^":return P^M;case"&":return P&M;case"==":return P==M;case"!=":return P!=M;case"===":return P===M;case"!==":return P!==M;case"<":return P<M;case">":return P>M;case"<=":return P<=M;case">=":return P>=M;case"<<":return P<<M;case">>":return P>>M;case"+":return P+M;case"-":return P-M;case"*":return P*M;case"/":return P/M;case"%":return P%M}return null;case"if":return n(n(f.condition)?f.thenExpression:f.elseExpression);case"pre":var N=n(f.operand);if(Rf(N))return N;switch(f.operator){case"+":return N;case"-":return-N;case"!":return!N;case"~":return~N}return null;case"index":var A=c(f.expression),I=c(f.index);return A&&Kf(I)?A[I]:null;case"select":var k=f.member,O=t,R=n(f.expression);if(R instanceof un){var D,L=R.members.concat(k);return null!=(D=l(O=i.getStaticSymbol(R.filePath,R.name,L)))?h(O,D):O}return R&&Kf(k)?h(O,R[k]):null;case"reference":var F=s.resolve(f.name);if(F!=Qf.missing)return F;break;case"resolved":try{return n(f.symbol)}catch(e){throw Bf(e)&&null!=f.fileName&&null!=f.line&&null!=f.character&&(e.position={fileName:f.fileName,line:f.line,column:f.character}),e}case"class":case"function":return t;case"new":case"call":if((T=e(t,f.expression,r+1,0))instanceof un){if(T===i.injectionToken||T===i.opaqueToken)return t;var B=f.arguments||[],V=i.conversionMap.get(T);if(V){var j=B.map(function(e){return h(t,e)}).map(function(e){return Rf(e)?void 0:e});return V(t,j)}return function U(e,o,p,l){if(o&&"function"==o.__symbolic){u.get(e)&&i.error({message:"Recursion is not supported",summary:"called '"+e.name+"' recursively",value:o},e);try{var c=o.value;if(c&&(0!=r||"error"!=c.__symbolic)){var f=o.parameters,d=o.defaults;p=p.map(function(e){return h(t,e)}).map(function(e){return Rf(e)?void 0:e}),d&&d.length>p.length&&p.push.apply(p,a(d.slice(p.length).map(function(e){return n(e)}))),u.set(e,!0);for(var v=Qf.build(),m=0;m<f.length;m++)v.define(f[m],p[m]);var y,g=s;try{s=v.done(),y=h(e,c)}finally{s=g}return y}}finally{u.delete(e)}}if(0===r)return kf;var _=void 0;if(l&&"resolved"==l.__symbolic){var E=l.line,x=l.character,S=l.fileName;null!=S&&null!=E&&null!=x&&(_={fileName:S,line:E,column:x})}i.error({message:Hf,context:e,value:o,position:_},t)}(T,l(T),B,f.expression)}return kf;case"error":var q=f.message;return i.error(null!=f.line?{message:q,context:f.context,value:f,position:{fileName:f.fileName,line:f.line,column:f.character}}:{message:q,context:f.context},t),kf;case"ignore":return f}return null}return function H(e,t){if(!e)return{};var n={};return Object.keys(e).forEach(function(r){var i=t(e[r],r);Rf(i)||(If.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(f,function(o,s){if(Of.has(s)){if("useValue"===s&&"provide"in f){var a=n(f.provide);if(a===i.ROUTES||a==i.ANALYZE_FOR_ENTRY_COMPONENTS)return n(o)}return function u(n){return e(t,n,r,p+1)}(o)}return n(o)})}return kf}(n)}(e,t,0,n?1:0)}catch(t){if(!this.errorRecorder)throw Gf(t,e);this.reportError(t,e)}if(!Rf(r))return r},t.prototype.getTypeMetadata=function(e){var t=this.symbolResolver.resolveSymbol(e);return t&&t.metadata?t.metadata:{__symbolic:"class"}},t.prototype.reportError=function(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(Gf(e,t),t&&t.filePath||n)},t.prototype.error=function(e,t){this.reportError(Ff(e.message,e.summary,e.advise,e.position,e.symbol,e.context,e.chain),t)},t}(),Lf="ngMetadataError";function Ff(e,t,n,r,i,o,s){var a=Bt(e);return a[Lf]=!0,n&&(a.advise=n),r&&(a.position=r),t&&(a.summary=t),o&&(a.context=o),s&&(a.chain=s),i&&(a.symbol=i),a}function Bf(e){return!!e[Lf]}var Vf="Reference to non-exported class",jf="Variable not initialized",Uf="Destructuring not supported",qf="Could not resolve type",Hf="Function call not supported",Wf="Reference to a local symbol",zf="Lambda not supported";function Kf(e){return null===e||"function"!=typeof e&&"object"!=typeof e}var Qf=function(){function e(){}return e.build=function(){var t=new Map;return{define:function(e,n){return t.set(e,n),this},done:function(){return t.size>0?new Xf(t):e.empty}}},e.missing={},e.empty={resolve:function(t){return e.missing}},e}(),Xf=function(e){function t(t){var n=e.call(this)||this;return n.bindings=t,n}return n(t,e),t.prototype.resolve=function(e){return this.bindings.has(e)?this.bindings.get(e):Qf.missing},t}(Qf);function Gf(e,t){return Bf(e)?Nf(function e(t,n){return{message:function r(e,t){switch(e){case Vf:if(t&&t.className)return"References to a non-exported class are not supported in decorators but "+t.className+" was referenced.";break;case jf:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case Uf:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case qf:if(t&&t.typeName)return"Could not resolve type "+t.typeName;break;case Hf:return t&&t.name?"Function calls are not supported in decorators but '"+t.name+"' was called":"Function calls are not supported in decorators";case Wf:if(t&&t.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+t.name+"' was referenced";break;case zf:return"Function expressions are not supported in decorators"}return e}(t.message,t.context)+(t.symbol?" in '"+t.symbol.name+"'":""),position:t.position,next:t.next?e(t.next,n):n?{message:n}:void 0}}({message:"Error during template compile of '"+t.name+"'",position:e.position,next:{message:e.message,next:e.chain,context:e.context,symbol:e.symbol}},e.advise||function n(e,t){switch(e){case Vf:if(t&&t.className)return"Consider exporting '"+t.className+"'";break;case Uf:return"Consider simplifying to avoid destructuring";case Wf:if(t&&t.name)return"Consider exporting '"+t.name+"'";break;case zf:return"Consider changing the function expression into an exported function"}}(e.message,e.context))):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 $f=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(Oc(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=Lc(e);try{r=this.host.loadSummary(i)}catch(e){throw console.error("Error loading summary file "+i),e}}if(this.loadedFilePaths.set(e,n=null!=r),r){var o=function s(e,t,n,r){return new vf(e,t).deserialize(n,r)}(this.staticSymbolCache,this,e,r),a=o.moduleName,u=o.importAs;o.summaries.forEach(function(e){return t.summaryCache.set(e.symbol,e)}),a&&this.knownFileNameToModuleNames.set(e,a),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 Yf(e){return{resolve:function(t,n){var r=e.resourceNameToFileName(n,t);if(!r)throw Bt("Couldn't resolve resource "+n+" from "+t);return r}}}var Jf=function Jf(){},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 ed(e,t,n,r,i){for(var o=r.createChildWihtLocalVars(),s=0;s<e.length;s++)o.vars.set(e[s],t[s]);var a=i.visitAllStatements(n,o);return a?a.value:null}var td=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}(),nd=function nd(e){this.value=e},rd=function(){function t(e){this.reflector=e}return t.prototype.debugAst=function(e){return lh(e)},t.prototype.visitDeclareVarStmt=function(t,n){var r=t.value?t.value.visitExpression(this,n):void 0;return n.vars.set(t.name,r),t.hasModifier(e.StmtModifier.Exported)&&n.exports.push(t.name),null},t.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)},t.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot interpret a WrappedNodeExpr.")},t.prototype.visitTypeofExpr=function(e,t){throw new Error("Cannot interpret a TypeofExpr")},t.prototype.visitReadVarExpr=function(t,n){var r=t.name;if(null!=t.builtin)switch(t.builtin){case e.BuiltinVar.Super:return n.instance.__proto__;case e.BuiltinVar.This:return n.instance;case e.BuiltinVar.CatchError:r=od;break;case e.BuiltinVar.CatchStack:r=sd;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var i=n;null!=i;){if(i.vars.has(r))return i.vars.get(r);i=i.parent}throw new Error("Not declared variable "+r)},t.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},t.prototype.visitWritePropExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.value.visitExpression(this,t);return n[e.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,n){var r,i=t.receiver.visitExpression(this,n),o=this.visitAllExpressions(t.args,n);if(null!=t.builtin)switch(t.builtin){case e.BuiltinMethod.ConcatArray:r=i.concat.apply(i,a(o));break;case e.BuiltinMethod.SubscribeObservable:r=i.subscribe({next:o[0]});break;case e.BuiltinMethod.Bind:r=i.bind.apply(i,a(o));break;default:throw new Error("Unknown builtin method "+t.builtin)}else r=i[t.name].apply(i,o);return r},t.prototype.visitInvokeFunctionExpr=function(t,n){var r=this.visitAllExpressions(t.args,n),i=t.fn;return i instanceof Ee&&i.builtin===e.BuiltinVar.Super?(n.instance.constructor.prototype.constructor.apply(n.instance,r),null):t.fn.visitExpression(this,n).apply(null,r)},t.prototype.visitReturnStmt=function(e,t){return new nd(e.value.visitExpression(this,t))},t.prototype.visitDeclareClassStmt=function(t,n){var r=function i(e,t,n){var r={};e.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new td(t,this,e.name,t.vars);return ed([],[],i.body,r,n)}}}),e.methods.forEach(function(i){var o=i.params.map(function(e){return e.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new td(t,this,e.name,t.vars);return ed(o,r,i.body,a,n)}}});var i=e.constructorMethod.params.map(function(e){return e.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new td(t,this,e.name,t.vars);e.fields.forEach(function(e){r[e.name]=void 0}),ed(i,o,e.constructorMethod.body,a,n)},s=e.parent?e.parent.visitExpression(n,t):Object;return o.prototype=Object.create(s.prototype,r),o}(t,n,this);return n.vars.set(t.name,r),t.hasModifier(e.StmtModifier.Exported)&&n.exports.push(t.name),null},t.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t)},t.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t)?this.visitAllStatements(e.trueCase,t):null!=e.falseCase?this.visitAllStatements(e.falseCase,t):null},t.prototype.visitTryCatchStmt=function(e,t){try{return this.visitAllStatements(e.bodyStmts,t)}catch(r){var n=t.createChildWihtLocalVars();return n.vars.set(od,r),n.vars.set(sd,r.stack),this.visitAllStatements(e.catchStmts,n)}},t.prototype.visitThrowStmt=function(e,t){throw e.error.visitExpression(this,t)},t.prototype.visitCommentStmt=function(e,t){return null},t.prototype.visitJSDocCommentStmt=function(e,t){return null},t.prototype.visitInstantiateExpr=function(e,t){var n=this.visitAllExpressions(e.args,t),r=e.classExpr.visitExpression(this,t);return new(r.bind.apply(r,a([void 0],n)))},t.prototype.visitLiteralExpr=function(e,t){return e.value},t.prototype.visitExternalExpr=function(e,t){return this.reflector.resolveExternalReference(e.value)},t.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t)?e.trueCase.visitExpression(this,t):null!=e.falseCase?e.falseCase.visitExpression(this,t):null},t.prototype.visitNotExpr=function(e,t){return!e.condition.visitExpression(this,t)},t.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t)},t.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t)},t.prototype.visitFunctionExpr=function(e,t){return id(e.params.map(function(e){return e.name}),e.statements,t,this)},t.prototype.visitDeclareFunctionStmt=function(t,n){var r=t.params.map(function(e){return e.name});return n.vars.set(t.name,id(r,t.statements,n,this)),t.hasModifier(e.StmtModifier.Exported)&&n.exports.push(t.name),null},t.prototype.visitBinaryOperatorExpr=function(t,n){var r=this,i=function(){return t.lhs.visitExpression(r,n)},o=function(){return t.rhs.visitExpression(r,n)};switch(t.operator){case e.BinaryOperator.Equals:return i()==o();case e.BinaryOperator.Identical:return i()===o();case e.BinaryOperator.NotEquals:return i()!=o();case e.BinaryOperator.NotIdentical:return i()!==o();case e.BinaryOperator.And:return i()&&o();case e.BinaryOperator.Or:return i()||o();case e.BinaryOperator.Plus:return i()+o();case e.BinaryOperator.Minus:return i()-o();case e.BinaryOperator.Divide:return i()/o();case e.BinaryOperator.Multiply:return i()*o();case e.BinaryOperator.Modulo:return i()%o();case e.BinaryOperator.Lower:return i()<o();case e.BinaryOperator.LowerEquals:return i()<=o();case e.BinaryOperator.Bigger:return i()>o();case e.BinaryOperator.BiggerEquals:return i()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.name]},t.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.index.visitExpression(this,t)]},t.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t)},t.prototype.visitLiteralMapExpr=function(e,t){var n=this,r={};return e.entries.forEach(function(e){return r[e.key]=e.value.visitExpression(n,t)}),r},t.prototype.visitCommaExpr=function(e,t){var n=this.visitAllExpressions(e.parts,t);return n[n.length-1]},t.prototype.visitAllExpressions=function(e,t){var n=this;return e.map(function(e){return e.visitExpression(n,t)})},t.prototype.visitAllStatements=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].visitStatement(this,t);if(r instanceof nd)return r}return null},t}();function id(e,t,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return ed(e,i,t,n,r)}}var od="error",sd="stack",ad=function(){function e(e,t,n,r,i,o,s,a,u,p){this._metadataResolver=e,this._templateParser=t,this._styleCompiler=n,this._viewCompiler=r,this._ngModuleCompiler=i,this._summaryResolver=o,this._reflector=s,this._compilerConfig=a,this._console=u,this.getExtraNgModuleProviders=p,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0,this._addedAotSummaries=new Set}return e.prototype.compileModuleSync=function(e){return Rt(this._compileModuleAndComponents(e,!0))},e.prototype.compileModuleAsync=function(e){return Promise.resolve(this._compileModuleAndComponents(e,!1))},e.prototype.compileModuleAndAllComponentsSync=function(e){return Rt(this._compileModuleAndAllComponents(e,!0))},e.prototype.compileModuleAndAllComponentsAsync=function(e){return Promise.resolve(this._compileModuleAndAllComponents(e,!1))},e.prototype.getComponentFactory=function(e){return this._metadataResolver.getDirectiveSummary(e).componentFactory},e.prototype.loadAotSummaries=function(e){this.clearCache(),this._addAotSummaries(e)},e.prototype._addAotSummaries=function(e){if(!this._addedAotSummaries.has(e)){this._addedAotSummaries.add(e);for(var t=e(),n=0;n<t.length;n++){var r=t[n];"function"==typeof r?this._addAotSummaries(r):this._summaryResolver.addSummary({symbol:r.type.reference,metadata:null,type:r})}}},e.prototype.hasAotSummary=function(e){return!!this._summaryResolver.resolveSummary(e)},e.prototype._filterJitIdentifiers=function(e){var t=this;return e.map(function(e){return e.reference}).filter(function(e){return!t.hasAotSummary(e)})},e.prototype._compileModuleAndComponents=function(e,t){var n=this;return Dt(this._loadModules(e,t),function(){return n._compileComponents(e,null),n._compileModule(e)})},e.prototype._compileModuleAndAllComponents=function(e,t){var n=this;return Dt(this._loadModules(e,t),function(){var t=[];return n._compileComponents(e,t),{ngModuleFactory:n._compileModule(e),componentFactories:t}})},e.prototype._loadModules=function(e,t){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(e);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach(function(e){var i=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(i.declaredDirectives).forEach(function(e){var o=n._metadataResolver.loadDirectiveMetadata(i.type.reference,e,t);o&&r.push(o)}),n._filterJitIdentifiers(i.declaredPipes).forEach(function(e){return n._metadataResolver.getOrLoadPipeMetadata(e)})}),Lt(r)},e.prototype._compileModule=function(e){var t=this._compiledNgModuleCache.get(e);if(!t){var n=this._metadataResolver.getNgModuleMetadata(e),r=this.getExtraNgModuleProviders(n.type.reference),i=ld(),o=this._ngModuleCompiler.compile(i,n,r);t=this._interpretOrJit(Dn(n),i.statements)[o.ngModuleFactoryVar],this._compiledNgModuleCache.set(n.type.reference,t)}return t},e.prototype._compileComponents=function(e,t){var n=this,r=this._metadataResolver.getNgModuleMetadata(e),i=new Map,o=new Set,s=this._filterJitIdentifiers(r.transitiveModule.modules);s.forEach(function(e){var r=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(r.declaredDirectives).forEach(function(e){i.set(e,r);var s=n._metadataResolver.getDirectiveMetadata(e);if(s.isComponent&&(o.add(n._createCompiledTemplate(s,r)),t)){var a=n._createCompiledHostTemplate(s.type.reference,r);o.add(a),t.push(s.componentFactory)}})}),s.forEach(function(e){var t=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(t.declaredDirectives).forEach(function(e){var t=n._metadataResolver.getDirectiveMetadata(e);t.isComponent&&t.entryComponents.forEach(function(e){var t=i.get(e.componentType);o.add(n._createCompiledHostTemplate(e.componentType,t))})}),t.entryComponents.forEach(function(e){if(!n.hasAotSummary(e.componentType)){var t=i.get(e.componentType);o.add(n._createCompiledHostTemplate(e.componentType,t))}})}),o.forEach(function(e){return n._compileTemplate(e)})},e.prototype.clearCacheFor=function(e){this._compiledNgModuleCache.delete(e),this._metadataResolver.clearCacheFor(e),this._compiledHostTemplateCache.delete(e),this._compiledTemplateCache.get(e)&&this._compiledTemplateCache.delete(e)},e.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},e.prototype._createCompiledHostTemplate=function(e,t){if(!t)throw new Error("Component "+Wt(e)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(e);if(!n){var r=this._metadataResolver.getDirectiveMetadata(e);pd(r);var i=this._metadataResolver.getHostComponentMetadata(r,r.componentFactory.viewDefFactory);n=new ud(!0,r.type,i,t,[r.type]),this._compiledHostTemplateCache.set(e,n)}return n},e.prototype._createCompiledTemplate=function(e,t){var n=this._compiledTemplateCache.get(e.type.reference);return n||(pd(e),n=new ud(!1,e.type,e,t,t.transitiveModule.directives),this._compiledTemplateCache.set(e.type.reference,n)),n},e.prototype._compileTemplate=function(e){var t=this;if(!e.isCompiled){var n=e.compMeta,r=new Map,i=ld(),o=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach(function(e){var i=t._styleCompiler.compileStyles(ld(),n,e);r.set(e.moduleUrl,i)}),this._resolveStylesCompileResult(o,r),e.ngModule.transitiveModule.pipes.map(function(e){return t._metadataResolver.getPipeSummary(e.reference)});var s=this._parseTemplate(n,e.ngModule,e.directives),a=s.pipes,u=this._viewCompiler.compileComponent(i,n,s.template,yt(o.stylesVar),a),p=this._interpretOrJit(Ln(e.ngModule.type,e.compMeta),i.statements);e.compiled(p[u.viewClassVar],p[u.rendererTypeVar])}},e.prototype._parseTemplate=function(e,t,n){var r=this,i=e.template.preserveWhitespaces,o=n.map(function(e){return r._metadataResolver.getDirectiveSummary(e.reference)}),s=t.transitiveModule.pipes.map(function(e){return r._metadataResolver.getPipeSummary(e.reference)});return this._templateParser.parse(e,e.template.htmlAst,o,s,t.schemas,On(t.type,e,e.template),i)},e.prototype._resolveStylesCompileResult=function(e,t){var n=this;e.dependencies.forEach(function(e,r){var i=t.get(e.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,t);e.setValue(o)})},e.prototype._resolveAndEvalStylesCompileResult=function(e,t){return this._resolveStylesCompileResult(e,t),this._interpretOrJit(Rn(e.meta,this._sharedStylesheetCount++),e.outputCtx.statements)[e.stylesVar]},e.prototype._interpretOrJit=function(e,t){return this._compilerConfig.useJit?Bi(e,t,this._reflector,this._compilerConfig.jitDevMode):
  /**
       * @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 n(e,t){var n=new td(null,null,null,new Map);new rd(t).visitAllStatements(e,n);var r={};return n.exports.forEach(function(e){r[e]=n.vars.get(e)}),r}(t,this._reflector)},e}(),ud=function(){function e(e,t,n,r,i){this.isHost=e,this.compType=t,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}return e.prototype.compiled=function(e,t){for(var n in this._viewClass=e,this.compMeta.componentViewType.setDelegate(e),t)this.compMeta.rendererType[n]=t[n];this.isCompiled=!0},e}();function pd(e){if(!e.isComponent)throw new Error("Could not compile '"+dn(e.type)+"' because it is not a component.")}function ld(){return{statements:[],genFilePath:"",importExpr:function(e){return gt({name:dn(e),moduleName:null,runtime:e})},constantPool:new Zt}}
  /**
       * @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 cd,hd=function hd(){},fd=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 r(e,t){var n=vd(encodeURI(t)),r=vd(e);if(null!=n[cd.Scheme])return md(n);n[cd.Scheme]=r[cd.Scheme];for(var i=cd.Scheme;i<=cd.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[cd.Path][0])return md(n);var o=r[cd.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[cd.Path],n[cd.Path]=o,md(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 i=vd(n),o=this._packagePrefix;if(null!=o&&null!=i&&"package"==i[cd.Scheme]){var s=i[cd.Path];return(o=o.replace(/\/+$/,""))+"/"+s.replace(/^\/+/,"")}return n},e}(),dd=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");
  /**
       * @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 vd(e){return e.match(dd)}function md(e){var t=e[cd.Path];return t=null==t?"":function n(e){if("/"==e)return"/";for(var t="/"==e[0]?"/":"",n="/"===e[e.length-1]?"/":"",r=e.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==t){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+n}(t),e[cd.Path]=t,function r(e,t,n,i,o,s,a){var u=[];return null!=e&&u.push(e+":"),null!=n&&(u.push("//"),null!=t&&u.push(t+"@"),u.push(n),null!=i&&u.push(":"+i)),null!=o&&u.push(o),null!=s&&u.push("?"+s),null!=a&&u.push("#"+a),u.join("")}(e[cd.Scheme],e[cd.UserInfo],e[cd.Domain],e[cd.Port],t,e[cd.QueryData],e[cd.Fragment])}!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"}(cd||(cd={}));var yd=function(){function e(){}return e.prototype.get=function(e){return""},e}(),gd=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=Sf(e,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files;return Promise.all(n.ngModules.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,o=Si.fromArray(n.template.interpolation);e.push.apply(e,a(t.messageBundle.updateFromTemplate(r,i,o)))})}),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 hu,i=Yf(t),o=new pn,s=new $f(t,o),a=new pf(t,o,s),u=new Df(s,a),p=new Wl({defaultEncapsulation:E.Emulated,useJit:!1}),l=new Kl({get:function(e){return t.loadResource(e)}},i,r,p),c=new Au,h=new Uc(p,r,new ph(u),new Gl(u),new fh(u),s,c,l,console,o,u),f=new ef(r,[],{},n);return{extractor:new e(t,a,f,h),staticReflector:u}},e}(),_d=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=Ed.apply(e.template),n=xd.apply(e.template,this.directiveMatcher),r=n.directives,i=n.bindings,o=n.references,s=Sd.apply(e.template,t);return new wd(e,r,i,o,s.expressions,s.symbols,s.nestingLevel)},e}(),Ed=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 Uu?(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.lookup=function(e){return this.namedEntities.has(e)?this.namedEntities.get(e):void 0!==this.parentScope?this.parentScope.lookup(e):null},e.prototype.getChildScope=function(e){var t=this.childScopes.get(e);if(void 0===t)throw new Error("Assertion error: child scope for "+e+" not found");return t},e}(),xd=function(){function e(e,t,n,r){this.matcher=e,this.directives=t,this.bindings=n,this.references=r}return e.apply=function(t,n){var r=new Map,i=new Map,o=new Map;return new e(n,r,i,o).ingest(t),{directives:r,bindings:i,references:o}},e.prototype.ingest=function(e){var t=this;e.forEach(function(e){return e.visit(t)})},e.prototype.visitElement=function(e){this.visitElementOrTemplate(e.name,e)},e.prototype.visitTemplate=function(e){this.visitElementOrTemplate("ng-template",e)},e.prototype.visitElementOrTemplate=function(e,t){var n=this,r=new w;r.setElement(e);var i=si(t);Object.getOwnPropertyNames(i).forEach(function(e){var t=i[e];r.addAttribute(e,t),"class"===e.toLowerCase()&&t.trim().split(/\s+/g).forEach(function(e){return r.addClassName(e)})});var o=[];this.matcher.match(r,function(e,t){return o.push(t)}),o.length>0&&this.directives.set(t,o),t.references.forEach(function(e){var r=null;if(""===e.value.trim())r=o.find(function(e){return e.isComponent})||null;else if(null===(r=o.find(function(t){return t.exportAs===e.value})||null))throw new Error("Assertion error: failed to find directive with exportAs: "+e.value);n.references.set(e,null!==r?{directive:r,node:t}:t)}),a(t.attributes,t.inputs).forEach(function(e){var r=o.find(function(t){return t.inputs.hasOwnProperty(e.name)});n.bindings.set(e,void 0!==r?r:t)}),t.outputs.forEach(function(e){var r=o.find(function(t){return t.outputs.hasOwnProperty(e.name)});n.bindings.set(e,void 0!==r?r:t)}),t.children.forEach(function(e){return e.visit(n)})},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.visitBoundAttributeOrEvent=function(e){},e.prototype.visitText=function(e){},e.prototype.visitBoundText=function(e){},e.prototype.visitIcu=function(e){},e}(),Sd=function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;return a.bindings=t,a.symbols=n,a.nestingLevel=r,a.scope=i,a.template=o,a.level=s,a.visitNode=function(e){return e.visit(a)},a}return n(t,e),t.apply=function(e,n){var r=new Map,i=new Map,o=new Map;return new t(r,i,o,n,e instanceof Uu?e:null,0).ingest(e),{expressions:r,symbols:i,nestingLevel:o}},t.prototype.ingest=function(e){e instanceof Uu?(e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level)):e.forEach(this.visitNode)},t.prototype.visitElement=function(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.children.forEach(this.visitNode)},t.prototype.visitTemplate=function(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.references.forEach(this.visitNode);var n=this.scope.getChildScope(e);new t(this.bindings,this.symbols,this.nestingLevel,n,e,this.level+1).ingest(e)},t.prototype.visitVariable=function(e){null!==this.template&&this.symbols.set(e,this.template)},t.prototype.visitReference=function(e){null!==this.template&&this.symbols.set(e,this.template)},t.prototype.visitText=function(e){},t.prototype.visitContent=function(e){},t.prototype.visitTextAttribute=function(e){},t.prototype.visitIcu=function(e){},t.prototype.visitBoundAttribute=function(e){e.value.visit(this)},t.prototype.visitBoundEvent=function(e){e.handler.visit(this)},t.prototype.visitBoundText=function(e){e.value.visit(this)},t.prototype.visitPropertyRead=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitPropertyRead.call(this,t,n)},t.prototype.visitSafePropertyRead=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitSafePropertyRead.call(this,t,n)},t.prototype.visitPropertyWrite=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitPropertyWrite.call(this,t,n)},t.prototype.visitMethodCall=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitMethodCall.call(this,t,n)},t.prototype.visitSafeMethodCall=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitSafeMethodCall.call(this,t,n)},t.prototype.maybeMap=function(e,t,n){if(t.receiver instanceof Ji){var r=this.scope.lookup(n);null!==r&&this.bindings.set(t,r)}},t}(xo),wd=function(){function e(e,t,n,r,i,o,s){this.target=e,this.directives=t,this.bindings=n,this.references=r,this.exprTargets=i,this.symbols=o,this.nestingLevel=s}return e.prototype.getDirectivesOfNode=function(e){return this.directives.get(e)||null},e.prototype.getReferenceTarget=function(e){return this.references.get(e)||null},e.prototype.getConsumerOfBinding=function(e){return this.bindings.get(e)||null},e.prototype.getExpressionTarget=function(e){return this.exprTargets.get(e)||null},e.prototype.getTemplateOfSymbol=function(e){return this.symbols.get(e)||null},e.prototype.getNestingLevel=function(e){return this.nestingLevel.get(e)||0},e.prototype.getUsedDirectives=function(){var e=new Set;return this.directives.forEach(function(t){return t.forEach(function(t){return e.add(t)})}),Array.from(e.values())},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
       */
  /**
       * @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
       */
  wl($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
       */
  /**
       * @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
       */
  e.core=ne,e.CompilerConfig=Wl,e.preserveWhitespacesDefault=zl,e.isLoweredSymbol=jc,e.createLoweredSymbol=function Cd(e){return"ɵ"+e},e.Identifiers=on,e.JitCompiler=ad,e.ConstantPool=Zt,e.DirectiveResolver=Gl,e.PipeResolver=fh,e.NgModuleResolver=ph,e.DEFAULT_INTERPOLATION_CONFIG=wi,e.InterpolationConfig=Si,e.NgModuleCompiler=uh,e.ArrayType=ue,e.AssertNotNull=De,e.BinaryOperatorExpr=Ve,e.BuiltinType=se,e.CastExpr=Le,e.ClassField=et,e.ClassMethod=tt,e.ClassStmt=rt,e.CommaExpr=ze,e.CommentStmt=ot,e.ConditionalExpr=Oe,e.DeclareFunctionStmt=$e,e.DeclareVarStmt=Ge,e.Expression=ge,e.ExpressionStatement=Ye,e.ExpressionType=ae,e.ExternalExpr=Ie,e.ExternalReference=ke,e.FunctionExpr=Be,e.IfStmt=it,e.InstantiateExpr=Ne,e.InvokeFunctionExpr=Me,e.InvokeMethodExpr=Pe,e.JSDocCommentStmt=st,e.LiteralArrayExpr=qe,e.LiteralExpr=Ae,e.LiteralMapExpr=We,e.MapType=pe,e.NotExpr=Re,e.ReadKeyExpr=Ue,e.ReadPropExpr=je,e.ReadVarExpr=Ee,e.ReturnStatement=Je,e.ThrowStmt=ut,e.TryCatchStmt=at,e.Type=ie,e.WrappedNodeExpr=Se,e.WriteKeyExpr=Ce,e.WritePropExpr=be,e.WriteVarExpr=we,e.Statement=Xe,e.TypeofExpr=xe,e.collectExternalReferences=function bd(e){var t=new ft;return t.visitAllStatements(e,null),t.externalReferences},e.EmitterVisitorContext=Ri,e.ViewCompiler=Uh,e.getParseErrors=function Td(e){return e[jt]||[]},e.isSyntaxError=function Pd(e){return e[Vt]},e.syntaxError=Bt,e.Version=Qt,e.TmplAstBoundAttribute=Bu,e.TmplAstBoundEvent=Vu,e.TmplAstBoundText=Lu,e.TmplAstContent=qu,e.TmplAstElement=ju,e.TmplAstReference=Wu,e.TmplAstTemplate=Uu,e.TmplAstText=Du,e.TmplAstTextAttribute=Fu,e.TmplAstVariable=Hu,e.jitExpression=Ui,e.compileInjector=Hi,e.compileNgModule=qi,e.compilePipeFromMetadata=zi,e.makeBindingParser=Wp,e.parseTemplate=Hp,e.compileBaseDefFromMetadata=function Md(e){var t=new oi;if(e.inputs){var n=e.inputs,r=Object.keys(n).map(function(e){var t=n[e];return{key:e,value:Array.isArray(t)?xt(t.map(function(e){return bt(e)})):bt(t),quoted:!1}});t.set("inputs",St(r))}if(e.outputs){var i=e.outputs,o=Object.keys(i).map(function(e){return{key:e,value:bt(i[e]),quoted:!1}});t.set("outputs",St(o))}return{expression:gt(Bn.defineBase).callFn([t.toLiteralMap()]),type:new ae(gt(Bn.BaseDef))}},e.compileComponentFromMetadata=Zp,e.compileDirectiveFromMetadata=Jp,e.parseHostBindings=pl,e.publishFacade=wl,e.VERSION=Tl,e.TextAst=Pl,e.BoundTextAst=Ml,e.AttrAst=Nl,e.BoundElementPropertyAst=Il,e.BoundEventAst=kl,e.ReferenceAst=Ol,e.VariableAst=Rl,e.ElementAst=Dl,e.EmbeddedTemplateAst=Ll,e.BoundDirectivePropertyAst=Fl,e.DirectiveAst=Bl,e.ProviderAst=Vl,e.NgContentAst=jl,e.NullTemplateVisitor=Ul,e.RecursiveTemplateAstVisitor=ql,e.templateVisitAll=Hl,e.sanitizeIdentifier=cn,e.identifierName=dn,e.identifierModuleUrl=vn,e.viewClassName=mn,e.rendererTypeName=yn,e.hostViewClassName=gn,e.componentFactoryName=_n,e.tokenName=En,e.tokenReference=xn,e.CompileStylesheetMetadata=Sn,e.CompileTemplateMetadata=wn,e.CompileDirectiveMetadata=Cn,e.CompilePipeMetadata=bn,e.CompileShallowModuleMetadata=Tn,e.CompileNgModuleMetadata=Pn,e.TransitiveCompileNgModuleMetadata=Mn,e.ProviderMeta=An,e.flatten=In,e.templateSourceUrl=On,e.sharedStylesheetJitUrl=Rn,e.ngModuleJitUrl=Dn,e.templateJitUrl=Ln,e.createAotUrlResolver=Yf,e.createAotCompiler=function Nd(e,t,n){var r,i=t.translations||"",o=Yf(e),s=new pn,a=new $f(e,s),u=new pf(e,s,a),p=new Df(a,u,[],[],n);r=t.enableIvy?new hu:new wc(new hu,i,t.i18nFormat,t.missingTranslation,console);var l=new Wl({defaultEncapsulation:E.Emulated,useJit:!1,missingTranslation:t.missingTranslation,preserveWhitespaces:t.preserveWhitespaces,strictInjectionParameters:t.strictInjectionParameters}),c=new Kl({get:function(t){return e.loadResource(t)}},o,r,l),h=new Ra(new Ea),f=new Au,d=new bh(l,p,h,f,r,console,[]),v=new Uc(l,r,new ph(p),new Gl(p),new fh(p),a,f,c,console,s,p,n),m=new Uh(p),y=new Fh(t,p);return{compiler:new yf(l,t,e,p,v,d,new la(o),m,y,new uh(p),new Pc(p,!!t.enableIvy),new ch,a,u),reflector:p}},e.AotCompiler=yf,e.analyzeNgModules=xf,e.analyzeAndValidateNgModules=Sf,e.analyzeFile=Cf,e.analyzeFileForInjectables=bf,e.mergeAnalyzedFiles=Tf,e.GeneratedFile=nf,e.toTypeScript=function Ad(e,t){if(void 0===t&&(t=""),!e.stmts)throw new Error("Illegal state: No stmts present on GeneratedFile "+e.genFileUrl);return(new ch).emitStatements(e.genFileUrl,e.stmts,t)},e.formattedError=Nf,e.isFormattedError=function Id(e){return!!e[Mf]},e.StaticReflector=Df,e.StaticSymbol=un,e.StaticSymbolCache=pn,e.ResolvedStaticSymbol=uf,e.StaticSymbolResolver=pf,e.unescapeIdentifier=lf,e.unwrapResolvedMetadata=cf,e.AotSummaryResolver=$f,e.AstPath=Fa,e.SummaryResolver=Jf,e.JitSummaryResolver=Zf,e.CompileReflector=hd,e.createUrlResolverWithoutPackagePrefix=function kd(){return new fd},e.createOfflineCompileUrlResolver=function Od(){return new fd(".")},e.UrlResolver=fd,e.getUrlScheme=function Rd(e){var t=vd(e);return t&&t[cd.Scheme]||""},e.ResourceLoader=yd,e.ElementSchemaRegistry=wu,e.Extractor=gd,e.I18NHtmlParser=wc,e.MessageBundle=ef,e.Serializer=fr,e.Xliff=lc,e.Xliff2=dc,e.Xmb=Cr,e.Xtb=gc,e.DirectiveNormalizer=Kl,e.ParserError=Qi,e.ParseSpan=Xi,e.AST=Gi,e.Quote=$i,e.EmptyExpr=Yi,e.ImplicitReceiver=Ji,e.Chain=Zi,e.Conditional=eo,e.PropertyRead=to,e.PropertyWrite=no,e.SafePropertyRead=ro,e.KeyedRead=io,e.KeyedWrite=oo,e.BindingPipe=so,e.LiteralPrimitive=ao,e.LiteralArray=uo,e.LiteralMap=po,e.Interpolation=lo,e.Binary=co,e.PrefixNot=ho,e.NonNullAssert=fo,e.MethodCall=vo,e.SafeMethodCall=mo,e.FunctionCall=yo,e.ASTWithSource=go,e.TemplateBinding=_o,e.NullAstVisitor=Eo,e.RecursiveAstVisitor=xo,e.AstTransformer=So,e.AstMemoryEfficientTransformer=wo,e.visitAstChildren=function Dd(e,t,n){function r(e){t.visit&&t.visit(e,n)||e.visit(t,n)}function i(e){e.forEach(r)}e.visit({visitBinary:function(e){r(e.left),r(e.right)},visitChain:function(e){i(e.expressions)},visitConditional:function(e){r(e.condition),r(e.trueExp),r(e.falseExp)},visitFunctionCall:function(e){e.target&&r(e.target),i(e.args)},visitImplicitReceiver:function(e){},visitInterpolation:function(e){i(e.expressions)},visitKeyedRead:function(e){r(e.obj),r(e.key)},visitKeyedWrite:function(e){r(e.obj),r(e.key),r(e.obj)},visitLiteralArray:function(e){i(e.expressions)},visitLiteralMap:function(e){},visitLiteralPrimitive:function(e){},visitMethodCall:function(e){r(e.receiver),i(e.args)},visitPipe:function(e){r(e.exp),i(e.args)},visitPrefixNot:function(e){r(e.expression)},visitNonNullAssert:function(e){r(e.expression)},visitPropertyRead:function(e){r(e.receiver)},visitPropertyWrite:function(e){r(e.receiver),r(e.value)},visitQuote:function(e){},visitSafeMethodCall:function(e){r(e.receiver),i(e.args)},visitSafePropertyRead:function(e){r(e.receiver)}})},e.ParsedProperty=Co,e.ParsedEvent=bo,e.ParsedVariable=To,e.BoundElementProperty=Po,e.Lexer=Ea,e.Token=ga,e.EOF=wa,e.isIdentifier=Ta,e.isQuote=Na,e.SplitInterpolation=Ia,e.TemplateBindingParseResult=ka,e.Parser=Ra,e._ParseAST=Da,e.ERROR_COMPONENT_TYPE="ngComponentType",e.CompileMetadataResolver=Uc,e.Text=Ba,e.Expansion=Va,e.ExpansionCase=ja,e.Attribute=Ua,e.Element=qa,e.Comment=Ha,e.visitAll=Wa,e.RecursiveVisitor=Ka,e.findNode=function Ld(e,t){var r=[];return Wa(new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return n(i,e),i.prototype.visit=function(e,n){var i=function e(t){var n=t.sourceSpan.start.offset,r=t.sourceSpan.end.offset;return t instanceof qa&&(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;r.push(e)},i}(Ka)),e),new Fa(r,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
       */,e.HtmlParser=hu,e.ParseTreeResult=uu,e.TreeError=au,e.HtmlTagDefinition=g,e.getHtmlTagDefinition=_,e.splitNsName=u,e.isNgContainer=p,e.isNgContent=l,e.isNgTemplate=c,e.getNsPrefix=h,e.mergeNsAndName=f,e.NAMED_ENTITIES=d,e.NGSP_UNICODE=v,e.debugOutputAstAsTypeScript=lh,e.TypeScriptEmitter=ch,e.ParseLocation=Ms,e.ParseSourceFile=Ns,e.ParseSourceSpan=As,e.ParseError=Is,e.typeSourceSpan=ks,e.DomElementSchemaRegistry=Au,e.CssSelector=w,e.SelectorMatcher=C,e.SelectorListContext=b,e.SelectorContext=T,e.HOST_ATTR=sa,e.CONTENT_ATTR=aa,e.StylesCompileDependency=ua,e.CompiledStylesheet=pa,e.StyleCompiler=la,e.TemplateParseError=wh,e.TemplateParseResult=Ch,e.TemplateParser=bh,e.splitClasses=Nh,e.createElementCssSelector=Ih,e.removeSummaryDuplicates=Dh,e.compileInjectable=gi,e.R3TargetBinder=_d,e.R3BoundTarget=wd,Object.defineProperty(e,"__esModule",{value:!0})});