@angular/language-service 7.0.0-rc.1 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.0.0-rc.1
2
+ * @license Angular v7.0.0
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -25,14 +25,14 @@ var w,x,E=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=
25
25
  *
26
26
  * Use of this source code is governed by an MIT-style license that can be
27
27
  * found in the LICENSE file at https://angular.io/license
28
- */var C,T,P=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),A=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for(P.lastIndex=0;n=P.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,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 t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=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 S(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.getAttrs=function(){var t=[];return this.classNames.length>0&&t.push("class",this.classNames.join(" ")),t.concat(this.attrs)},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e+1];t+="["+this.attrs[e]+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),N=function(){function t(){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 t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new k(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,i=t.element,o=t.classNames,s=t.attrs,a=new O(t,e,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 c=o[u];0===s.length&&u===o.length-1?this._addTerminal(r._classMap,c,a):r=this._addPartial(r._classPartialMap,c)}if(s)for(u=0;u<s.length;u+=2){var l=s[u],p=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,p,a)}else{var d=r._attrValuePartialMap,v=d.get(l);v||(v=new Map,d.set(l,v)),r=this._addPartial(v,p)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||t.set(e,r=[]),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(o)for(s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.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},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return!!i&&i.match(n,r)},t}(),k=function k(t){this.selectors=t,this.alreadyMatched=!1},O=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!N.createNotMatcher(this.notSelectors).match(t,null)),!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),M=et("Inject",function(t){return{token:t}}),I=et("InjectionToken",function(t){return{_desc:t,ngInjectableDef:void 0}}),R=et("Attribute",function(t){return{attributeName:t}}),D=et("ContentChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),j=et("ContentChild",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),L=et("ViewChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),F=et("ViewChild",function(t,e){return a({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)}),V=et("Directive",function(t){return void 0===t&&(t={}),t});!function(t){t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(C||(C={})),function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(T||(T={}));var B,H,U=et("Component",function(t){return void 0===t&&(t={}),a({changeDetection:T.Default},t)}),q=et("Pipe",function(t){return a({pure:!0},t)}),K=et("Input",function(t){return{bindingPropertyName:t}}),z=et("Output",function(t){return{bindingPropertyName:t}}),W=et("HostBinding",function(t){return{hostPropertyName:t}}),Q=et("HostListener",function(t,e){return{eventName:t,args:e}}),G=et("NgModule",function(t){return t}),X=et("Injectable",function(t){return void 0===t&&(t={}),t}),$=et("Optional"),Y=et("Self"),Z=et("SkipSelf"),J=et("Host"),tt=Function;function et(t,e){var n=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e?e.apply(void 0,f(n)):{};return a({ngMetadataName:t},i)};return n.isTypeOf=function(e){return e&&e.ngMetadataName===t},n.ngMetadataName=t,n}
28
+ */var C,T,P=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),A=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for(P.lastIndex=0;n=P.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,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 t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=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 S(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.getAttrs=function(){var t=[];return this.classNames.length>0&&t.push("class",this.classNames.join(" ")),t.concat(this.attrs)},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e+1];t+="["+this.attrs[e]+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),N=function(){function t(){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 t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new k(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,i=t.element,o=t.classNames,s=t.attrs,a=new O(t,e,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 c=o[u];0===s.length&&u===o.length-1?this._addTerminal(r._classMap,c,a):r=this._addPartial(r._classPartialMap,c)}if(s)for(u=0;u<s.length;u+=2){var l=s[u],p=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,p,a)}else{var d=r._attrValuePartialMap,v=d.get(l);v||(v=new Map,d.set(l,v)),r=this._addPartial(v,p)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||t.set(e,r=[]),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(o)for(s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.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},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return!!i&&i.match(n,r)},t}(),k=function k(t){this.selectors=t,this.alreadyMatched=!1},O=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!N.createNotMatcher(this.notSelectors).match(t,null)),!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),M=et("Inject",function(t){return{token:t}}),I=et("InjectionToken",function(t){return{_desc:t,ngInjectableDef:void 0}}),D=et("Attribute",function(t){return{attributeName:t}}),R=et("ContentChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),j=et("ContentChild",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),L=et("ViewChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),F=et("ViewChild",function(t,e){return a({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)}),V=et("Directive",function(t){return void 0===t&&(t={}),t});!function(t){t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(C||(C={})),function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(T||(T={}));var B,H,U=et("Component",function(t){return void 0===t&&(t={}),a({changeDetection:T.Default},t)}),q=et("Pipe",function(t){return a({pure:!0},t)}),K=et("Input",function(t){return{bindingPropertyName:t}}),z=et("Output",function(t){return{bindingPropertyName:t}}),W=et("HostBinding",function(t){return{hostPropertyName:t}}),Q=et("HostListener",function(t,e){return{eventName:t,args:e}}),G=et("NgModule",function(t){return t}),X=et("Injectable",function(t){return void 0===t&&(t={}),t}),$=et("Optional"),Y=et("Self"),Z=et("SkipSelf"),J=et("Host"),tt=Function;function et(t,e){var n=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e?e.apply(void 0,f(n)):{};return a({ngMetadataName:t},i)};return n.isTypeOf=function(e){return e&&e.ngMetadataName===t},n.ngMetadataName=t,n}
29
29
  /**
30
30
  * @license
31
31
  * Copyright Google Inc. All Rights Reserved.
32
32
  *
33
33
  * Use of this source code is governed by an MIT-style license that can be
34
34
  * found in the LICENSE file at https://angular.io/license
35
- */!function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(B||(B={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(H||(H={}));var nt=/-+([a-z0-9])/g;function rt(t,e){return it(t,":",e)}function it(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function ot(t,e,n){return Array.isArray(t)?e.visitArray(t,n):function r(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===vt}(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function st(t){return null!==t&&void 0!==t}function at(t){return void 0===t?null:t}var ut=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return ot(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=ot(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),ct=function(t,e){return _t(t)?t.then(e):e(t)};function lt(t){throw new Error("Internal Error: "+t)}function pt(t,e){var n=Error(t);return n[ht]=!0,e&&(n[ft]=e),n}var ht="ngSyntaxError",ft="ngParseErrors";function dt(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var vt=Object.getPrototypeOf({});function yt(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function mt(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(mt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function gt(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")?t():t}function _t(t){return!!t&&"function"==typeof t.then}new function bt(t){this.full=t;var e=t.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}("7.0.0-rc.1");var wt,xt,Et=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),St=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),Ct=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),Tt=((wt={})[4]=4,wt[1]=1,wt[2]=2,wt[0]=0,wt[3]=3,wt),Pt=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=4===this.type}return t.fromBoundProperty=function(e){return new t(e.name,Tt[e.type],e.securityContext,e.value,e.unit,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),At=function(){function t(e,n,r,i,o){this.name=e,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=t.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.fromParsedEvent=function(e){return new t(e.name,0===e.type?e.targetOrPhase:null,1===e.type?e.targetOrPhase:null,e.handler,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},t}(),Nt=function(){function t(t,e,n,r){this.name=t,this.value=e,this.originalValue=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),kt=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.fromParsedVariable=function(e){return new t(e.name,e.value,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),Ot=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Mt=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),It=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),Rt=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),Dt=function(){function t(t,e,n,r,i,o,s,a){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s,this.isModule=a}return t.prototype.visit=function(t,e){return null},t}();
35
+ */!function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(B||(B={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(H||(H={}));var nt=/-+([a-z0-9])/g;function rt(t,e){return it(t,":",e)}function it(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function ot(t,e,n){return Array.isArray(t)?e.visitArray(t,n):function r(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===vt}(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function st(t){return null!==t&&void 0!==t}function at(t){return void 0===t?null:t}var ut=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return ot(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=ot(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),ct=function(t,e){return _t(t)?t.then(e):e(t)};function lt(t){throw new Error("Internal Error: "+t)}function pt(t,e){var n=Error(t);return n[ht]=!0,e&&(n[ft]=e),n}var ht="ngSyntaxError",ft="ngParseErrors";function dt(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var vt=Object.getPrototypeOf({});function yt(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function mt(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(mt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function gt(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")?t():t}function _t(t){return!!t&&"function"==typeof t.then}new function bt(t){this.full=t;var e=t.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}("7.0.0");var wt,xt,Et=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),St=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),Ct=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),Tt=((wt={})[4]=4,wt[1]=1,wt[2]=2,wt[0]=0,wt[3]=3,wt),Pt=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=4===this.type}return t.fromBoundProperty=function(e){return new t(e.name,Tt[e.type],e.securityContext,e.value,e.unit,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),At=function(){function t(e,n,r,i,o){this.name=e,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=t.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.fromParsedEvent=function(e){return new t(e.name,0===e.type?e.targetOrPhase:null,1===e.type?e.targetOrPhase:null,e.handler,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},t}(),Nt=function(){function t(t,e,n,r){this.name=t,this.value=e,this.originalValue=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),kt=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.fromParsedVariable=function(e){return new t(e.name,e.value,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),Ot=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Mt=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),It=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),Dt=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),Rt=function(){function t(t,e,n,r,i,o,s,a){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s,this.isModule=a}return t.prototype.visit=function(t,e){return null},t}();
36
36
  /**
37
37
  * @license
38
38
  * Copyright Google Inc. All Rights Reserved.
@@ -67,7 +67,7 @@ var w,x,E=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=
67
67
  *
68
68
  * Use of this source code is governed by an MIT-style license that can be
69
69
  * found in the LICENSE file at https://angular.io/license
70
- */var ge=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(me("interpolation",e),new t(e[0],e[1])):_e},t}(),_e=new ge("{{","}}"),be=function be(t,e){this.style=t,this.styleUrls=e};function we(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Ce);return null===e||"package"==e[1]||"asset"==e[1]}var xe,Ee=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Se=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,Ce=/^([^:/?#]+):/,Te="select",Pe="link",Ae="rel",Ne="href",ke="stylesheet",Oe="style",Me="script",Ie="ngNonBindable",Re="ngProjectAs";function De(t){var e=null,n=null,r=null,i=!1,o="";t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Te?e=t.value:s==Ne?n=t.value:s==Ae?r=t.value:t.name==Ie?i=!0:t.name==Re&&t.value.length>0&&(o=t.value)}),e=function s(t){return null===t||0===t.length?"*":t}
70
+ */var ge=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(me("interpolation",e),new t(e[0],e[1])):_e},t}(),_e=new ge("{{","}}"),be=function be(t,e){this.style=t,this.styleUrls=e};function we(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Ce);return null===e||"package"==e[1]||"asset"==e[1]}var xe,Ee=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Se=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,Ce=/^([^:/?#]+):/,Te="select",Pe="link",Ae="rel",Ne="href",ke="stylesheet",Oe="style",Me="script",Ie="ngNonBindable",De="ngProjectAs";function Re(t){var e=null,n=null,r=null,i=!1,o="";t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Te?e=t.value:s==Ne?n=t.value:s==Ae?r=t.value:t.name==Ie?i=!0:t.name==De&&t.value.length>0&&(o=t.value)}),e=function s(t){return null===t||0===t.length?"*":t}
71
71
  /**
72
72
  * @license
73
73
  * Copyright Google Inc. All Rights Reserved.
@@ -81,35 +81,35 @@ var w,x,E=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=
81
81
  *
82
82
  * Use of this source code is governed by an MIT-style license that can be
83
83
  * found in the LICENSE file at https://angular.io/license
84
- */({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0)throw pt("Template parse errors:\n"+o.errors.join("\n"));var a=this._normalizeStylesheet(new Yt({styles:t.styles,moduleUrl:t.moduleUrl})),u=new Fe;he(u,o.rootNodes);var c=this._normalizeStylesheet(new Yt({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:n}));return{template:e,templateUrl:n,isInline:r,htmlAst:o,styles:a.styles.concat(c.styles),inlineStyleUrls:a.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new Yt({styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})).styleUrls,ngContentSelectors:u.ngContentSelectors}},t.prototype._normalizeTemplateMetadata=function(t,e){var n=this;return ct(this._loadMissingExternalStylesheets(e.styleUrls.concat(e.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(t,e,r)})},t.prototype._normalizeLoadedTemplateMetadata=function(t,e,n){var r=this,i=f(e.styles);this._inlineStyles(e.inlineStyleUrls,n,i);var o=e.styleUrls,s=o.map(function(t){var e=n.get(t),i=f(e.styles);return r._inlineStyles(e.styleUrls,n,i),new Yt({moduleUrl:t,styles:i})}),a=t.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===C.Emulated&&0===i.length&&0===o.length&&(a=C.None),new Zt({encapsulation:a,template:e.template,templateUrl:e.templateUrl,htmlAst:e.htmlAst,styles:i,styleUrls:o,ngContentSelectors:e.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:e.isInline,externalStylesheets:s,preserveWhitespaces:Ht(t.preserveWhitespaces,this._config.preserveWhitespaces)})},t.prototype._inlineStyles=function(t,e,n){var r=this;t.forEach(function(t){var i=e.get(t);i.styles.forEach(function(t){return n.push(t)}),r._inlineStyles(i.styleUrls,e,n)})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n,r=this;return void 0===e&&(e=new Map),ct((n=t.filter(function(t){return!e.has(t)}).map(function(t){return ct(r._fetch(t),function(n){var i=r._normalizeStylesheet(new Yt({styles:[n],moduleUrl:t}));return e.set(t,i),r._loadMissingExternalStylesheets(i.styleUrls,e)})})).some(_t)?Promise.all(n):n,function(t){return e})},t.prototype._normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(we).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i=function o(t,e,n){var r=[],i=n.replace(Se,"").replace(Ee,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return we(o)?(r.push(t.resolve(e,o)),""):n[0]});return new be(i,r)}(e._urlResolver,n,t);return r.push.apply(r,f(i.styleUrls)),i.style});return new Yt({styles:i,styleUrls:r,moduleUrl:n})},t}(),Fe=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=De(t);switch(n.type){case xe.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case xe.STYLE:var r="";t.children.forEach(function(t){t instanceof se&&(r+=t.value)}),this.styles.push(r);break;case xe.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,he(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){he(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){he(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),Ve=[F,L,j,D],Be=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var e=this._reflector.annotations(gt(t));return e&&e.some(He)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(gt(t));if(n){var r=Ue(n,He);if(r){var i=this._reflector.propMetadata(t),o=this._reflector.guards(t);return this._mergeWithPropertyMetadata(r,i,o,t)}}if(e)throw new Error("No Directive annotation found on "+mt(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n,r){var i=[],o=[],s={},a={};return Object.keys(e).forEach(function(t){var n=Ue(e[t],function(t){return K.isTypeOf(t)});n&&i.push(n.bindingPropertyName?t+": "+n.bindingPropertyName:t);var r=Ue(e[t],function(t){return z.isTypeOf(t)});r&&o.push(r.bindingPropertyName?t+": "+r.bindingPropertyName:t),e[t].filter(function(t){return W.isTypeOf(t)}).forEach(function(e){if(e.hostPropertyName){var n=e.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["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t}),e[t].filter(function(t){return Q.isTypeOf(t)}).forEach(function(e){s["("+e.eventName+")"]=t+"("+(e.args||[]).join(",")+")"});var u=Ue(e[t],function(t){return Ve.some(function(e){return e.isTypeOf(t)})});u&&(a[t]=u)}),this._merge(t,i,o,s,a,n,r)},t.prototype._extractPublicName=function(t){return rt(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=new Set,r=[],i=t.length-1;i>=0;i--){var o=t[i],s=this._extractPublicName(o);n.add(s),e.has(s)||(e.add(s),r.push(o))}return r.reverse()},t.prototype._merge=function(t,e,n,r,i,o,s){var u=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),c=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),l=t.host?a({},t.host,r):r,p=t.queries?a({},t.queries,i):i;return U.isTypeOf(t)?U({selector:t.selector,inputs:u,outputs:c,host:l,exportAs:t.exportAs,moduleId:t.moduleId,queries:p,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation,preserveWhitespaces:t.preserveWhitespaces}):V({selector:t.selector,inputs:u,outputs:c,host:l,exportAs:t.exportAs,queries:p,providers:t.providers,guards:o})},t}();function He(t){return V.isTypeOf(t)||U.isTypeOf(t)}function Ue(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}
84
+ */({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0)throw pt("Template parse errors:\n"+o.errors.join("\n"));var a=this._normalizeStylesheet(new Yt({styles:t.styles,moduleUrl:t.moduleUrl})),u=new Fe;he(u,o.rootNodes);var c=this._normalizeStylesheet(new Yt({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:n}));return{template:e,templateUrl:n,isInline:r,htmlAst:o,styles:a.styles.concat(c.styles),inlineStyleUrls:a.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new Yt({styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})).styleUrls,ngContentSelectors:u.ngContentSelectors}},t.prototype._normalizeTemplateMetadata=function(t,e){var n=this;return ct(this._loadMissingExternalStylesheets(e.styleUrls.concat(e.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(t,e,r)})},t.prototype._normalizeLoadedTemplateMetadata=function(t,e,n){var r=this,i=f(e.styles);this._inlineStyles(e.inlineStyleUrls,n,i);var o=e.styleUrls,s=o.map(function(t){var e=n.get(t),i=f(e.styles);return r._inlineStyles(e.styleUrls,n,i),new Yt({moduleUrl:t,styles:i})}),a=t.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===C.Emulated&&0===i.length&&0===o.length&&(a=C.None),new Zt({encapsulation:a,template:e.template,templateUrl:e.templateUrl,htmlAst:e.htmlAst,styles:i,styleUrls:o,ngContentSelectors:e.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:e.isInline,externalStylesheets:s,preserveWhitespaces:Ht(t.preserveWhitespaces,this._config.preserveWhitespaces)})},t.prototype._inlineStyles=function(t,e,n){var r=this;t.forEach(function(t){var i=e.get(t);i.styles.forEach(function(t){return n.push(t)}),r._inlineStyles(i.styleUrls,e,n)})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n,r=this;return void 0===e&&(e=new Map),ct((n=t.filter(function(t){return!e.has(t)}).map(function(t){return ct(r._fetch(t),function(n){var i=r._normalizeStylesheet(new Yt({styles:[n],moduleUrl:t}));return e.set(t,i),r._loadMissingExternalStylesheets(i.styleUrls,e)})})).some(_t)?Promise.all(n):n,function(t){return e})},t.prototype._normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(we).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i=function o(t,e,n){var r=[],i=n.replace(Se,"").replace(Ee,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return we(o)?(r.push(t.resolve(e,o)),""):n[0]});return new be(i,r)}(e._urlResolver,n,t);return r.push.apply(r,f(i.styleUrls)),i.style});return new Yt({styles:i,styleUrls:r,moduleUrl:n})},t}(),Fe=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=Re(t);switch(n.type){case xe.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case xe.STYLE:var r="";t.children.forEach(function(t){t instanceof se&&(r+=t.value)}),this.styles.push(r);break;case xe.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,he(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){he(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){he(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),Ve=[F,L,j,R],Be=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var e=this._reflector.annotations(gt(t));return e&&e.some(He)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(gt(t));if(n){var r=Ue(n,He);if(r){var i=this._reflector.propMetadata(t),o=this._reflector.guards(t);return this._mergeWithPropertyMetadata(r,i,o,t)}}if(e)throw new Error("No Directive annotation found on "+mt(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n,r){var i=[],o=[],s={},a={};return Object.keys(e).forEach(function(t){var n=Ue(e[t],function(t){return K.isTypeOf(t)});n&&i.push(n.bindingPropertyName?t+": "+n.bindingPropertyName:t);var r=Ue(e[t],function(t){return z.isTypeOf(t)});r&&o.push(r.bindingPropertyName?t+": "+r.bindingPropertyName:t),e[t].filter(function(t){return W.isTypeOf(t)}).forEach(function(e){if(e.hostPropertyName){var n=e.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["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t}),e[t].filter(function(t){return Q.isTypeOf(t)}).forEach(function(e){s["("+e.eventName+")"]=t+"("+(e.args||[]).join(",")+")"});var u=Ue(e[t],function(t){return Ve.some(function(e){return e.isTypeOf(t)})});u&&(a[t]=u)}),this._merge(t,i,o,s,a,n,r)},t.prototype._extractPublicName=function(t){return rt(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=new Set,r=[],i=t.length-1;i>=0;i--){var o=t[i],s=this._extractPublicName(o);n.add(s),e.has(s)||(e.add(s),r.push(o))}return r.reverse()},t.prototype._merge=function(t,e,n,r,i,o,s){var u=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),c=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),l=t.host?a({},t.host,r):r,p=t.queries?a({},t.queries,i):i;return U.isTypeOf(t)?U({selector:t.selector,inputs:u,outputs:c,host:l,exportAs:t.exportAs,moduleId:t.moduleId,queries:p,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation,preserveWhitespaces:t.preserveWhitespaces}):V({selector:t.selector,inputs:u,outputs:c,host:l,exportAs:t.exportAs,queries:p,providers:t.providers,guards:o})},t}();function He(t){return V.isTypeOf(t)||U.isTypeOf(t)}function Ue(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}
85
85
  /**
86
86
  * @license
87
87
  * Copyright Google Inc. All Rights Reserved.
88
88
  *
89
89
  * Use of this source code is governed by an MIT-style license that can be
90
90
  * found in the LICENSE file at https://angular.io/license
91
- */var qe,Ke=0,ze=9,We=10,Qe=11,Ge=12,Xe=13,$e=32,Ye=34,Ze=36,Je=39,tn=43,en=45,nn=47,rn=59,on=61,sn=62,an=48,un=57,cn=65,ln=70,pn=90,hn=95,fn=97,dn=102,vn=110,yn=114,mn=116,gn=118,_n=122,bn=123,wn=160;function xn(t){return t>=ze&&t<=$e||t==wn}function En(t){return an<=t&&t<=un}function Sn(t){return t>=fn&&t<=_n||t>=cn&&t<=pn}!function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.Keyword=2]="Keyword",t[t.String=3]="String",t[t.Operator=4]="Operator",t[t.Number=5]="Number",t[t.Error=6]="Error"}(qe||(qe={}));var Cn,Tn=["var","let","as","null","undefined","true","false","if","else","this"],Pn=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new On(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();function An(t,e){return new Cn(t,qe.Character,e,String.fromCharCode(e))}function Nn(t,e){return new Cn(t,qe.Operator,0,e)}var kn=new(Cn=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==qe.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==qe.Number},t.prototype.isString=function(){return this.type==qe.String},t.prototype.isOperator=function(t){return this.type==qe.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==qe.Identifier},t.prototype.isKeyword=function(){return this.type==qe.Keyword},t.prototype.isKeywordLet=function(){return this.type==qe.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==qe.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==qe.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==qe.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==qe.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==qe.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==qe.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==qe.Error},t.prototype.toNumber=function(){return this.type==qe.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case qe.Character:case qe.Identifier:case qe.Keyword:case qe.Operator:case qe.String:case qe.Error:return this.strValue;case qe.Number:return this.numValue.toString();default:return null}},t}())(-1,qe.Character,0,""),On=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?Ke:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=$e;){if(++r>=e){n=Ke;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(Mn(n))return this.scanIdentifier();if(En(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),En(this.peek)?this.scanNumber(i):An(i,46);case 40:case 41:case bn:case 125:case 91:case 93:case 44:case 58:case rn:return this.scanCharacter(i,n);case Je:case Ye:return this.scanString();case 35:case tn:case en:case 42:case nn:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case sn:return this.scanComplexOperator(i,String.fromCharCode(n),on,"=");case 33:case on:return this.scanComplexOperator(i,String.fromCharCode(n),on,"=",on,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case wn:for(;xn(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),An(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),Nn(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),Nn(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();In(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Tn.indexOf(e)>-1?function n(t,e){return new Cn(t,qe.Keyword,0,e)}(t,e):function r(t,e){return new Cn(t,qe.Identifier,0,e)}(t,e)},t.prototype.scanNumber=function(t){var e,n=this.index===t;for(this.advance();;){if(En(this.peek));else if(46==this.peek)n=!1;else{if(101!=(e=this.peek)&&69!=e)break;if(this.advance(),Rn(this.peek)&&this.advance(),!En(this.peek))return this.error("Invalid exponent",-1);n=!1}this.advance()}var r=this.input.substring(t,this.index);return function o(t,e){return new Cn(t,qe.Number,e,"")}(t,n?function i(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}
91
+ */var qe,Ke=0,ze=9,We=10,Qe=11,Ge=12,Xe=13,$e=32,Ye=34,Ze=36,Je=39,tn=43,en=45,nn=47,rn=59,on=61,sn=62,an=48,un=57,cn=65,ln=70,pn=90,hn=95,fn=97,dn=102,vn=110,yn=114,mn=116,gn=118,_n=122,bn=123,wn=160;function xn(t){return t>=ze&&t<=$e||t==wn}function En(t){return an<=t&&t<=un}function Sn(t){return t>=fn&&t<=_n||t>=cn&&t<=pn}!function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.Keyword=2]="Keyword",t[t.String=3]="String",t[t.Operator=4]="Operator",t[t.Number=5]="Number",t[t.Error=6]="Error"}(qe||(qe={}));var Cn,Tn=["var","let","as","null","undefined","true","false","if","else","this"],Pn=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new On(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();function An(t,e){return new Cn(t,qe.Character,e,String.fromCharCode(e))}function Nn(t,e){return new Cn(t,qe.Operator,0,e)}var kn=new(Cn=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==qe.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==qe.Number},t.prototype.isString=function(){return this.type==qe.String},t.prototype.isOperator=function(t){return this.type==qe.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==qe.Identifier},t.prototype.isKeyword=function(){return this.type==qe.Keyword},t.prototype.isKeywordLet=function(){return this.type==qe.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==qe.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==qe.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==qe.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==qe.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==qe.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==qe.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==qe.Error},t.prototype.toNumber=function(){return this.type==qe.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case qe.Character:case qe.Identifier:case qe.Keyword:case qe.Operator:case qe.String:case qe.Error:return this.strValue;case qe.Number:return this.numValue.toString();default:return null}},t}())(-1,qe.Character,0,""),On=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?Ke:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=$e;){if(++r>=e){n=Ke;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(Mn(n))return this.scanIdentifier();if(En(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),En(this.peek)?this.scanNumber(i):An(i,46);case 40:case 41:case bn:case 125:case 91:case 93:case 44:case 58:case rn:return this.scanCharacter(i,n);case Je:case Ye:return this.scanString();case 35:case tn:case en:case 42:case nn:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case sn:return this.scanComplexOperator(i,String.fromCharCode(n),on,"=");case 33:case on:return this.scanComplexOperator(i,String.fromCharCode(n),on,"=",on,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case wn:for(;xn(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),An(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),Nn(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),Nn(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();In(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Tn.indexOf(e)>-1?function n(t,e){return new Cn(t,qe.Keyword,0,e)}(t,e):function r(t,e){return new Cn(t,qe.Identifier,0,e)}(t,e)},t.prototype.scanNumber=function(t){var e,n=this.index===t;for(this.advance();;){if(En(this.peek));else if(46==this.peek)n=!1;else{if(101!=(e=this.peek)&&69!=e)break;if(this.advance(),Dn(this.peek)&&this.advance(),!En(this.peek))return this.error("Invalid exponent",-1);n=!1}this.advance()}var r=this.input.substring(t,this.index);return function o(t,e){return new Cn(t,qe.Number,e,"")}(t,n?function i(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}
92
92
  /**
93
93
  * @license
94
94
  * Copyright Google Inc. All Rights Reserved.
95
95
  *
96
96
  * Use of this source code is governed by an MIT-style license that can be
97
97
  * found in the LICENSE file at https://angular.io/license
98
- */(r):parseFloat(r))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=Dn(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Ke)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),function c(t,e){return new Cn(t,qe.String,0,e)}(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return function r(t,e){return new Cn(t,qe.Error,0,e)}(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}();function Mn(t){return fn<=t&&t<=_n||cn<=t&&t<=pn||t==hn||t==Ze}function In(t){return Sn(t)||En(t)||t==hn||t==Ze}function Rn(t){return t==en||t==tn}function Dn(t){switch(t){case vn:return We;case dn:return Ge;case yn:return Xe;case mn:return ze;case gn:return Qe;default:return t}}var jn=function jn(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r},Ln=function Ln(t,e){this.start=t,this.end=e},Fn=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Vn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(Fn),Bn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Fn),Hn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Fn),Un=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Fn),qn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Fn),Kn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Fn),zn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Fn),Wn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Fn),Qn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Fn),Gn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Fn),Xn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Fn),$n=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Fn),Yn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Fn),Zn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Fn),Jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Fn),tr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Fn),er=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Fn),nr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(Fn),rr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Fn),ir=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Fn),or=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Fn),sr=function(t){function e(e,n,r,i){var o=t.call(this,new Ln(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(Fn),ar=function ar(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i},ur=function(){function t(){}return t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t}(),cr=function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitNonNullAssert=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}(),lr=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new Jn(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new $n(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new Kn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new zn(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new Wn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new rr(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new ir(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new or(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new Yn(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new Zn(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new tr(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new er(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new nr(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new qn(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new Xn(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new Qn(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new Gn(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new Un(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new Vn(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),pr=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new Jn(t.span,t.strings,n):t},t.prototype.visitLiteralPrimitive=function(t,e){return t},t.prototype.visitPropertyRead=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new Kn(t.span,n,t.name):t},t.prototype.visitPropertyWrite=function(t,e){var n=t.receiver.visit(this),r=t.value.visit(this);return n!==t.receiver||r!==t.value?new zn(t.span,n,t.name,r):t},t.prototype.visitSafePropertyRead=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new Wn(t.span,n,t.name):t},t.prototype.visitMethodCall=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new rr(t.span,n,t.name,this.visitAll(t.args)):t},t.prototype.visitSafeMethodCall=function(t,e){var n=t.receiver.visit(this),r=this.visitAll(t.args);return n!==t.receiver||r!==t.args?new ir(t.span,n,t.name,r):t},t.prototype.visitFunctionCall=function(t,e){var n=t.target&&t.target.visit(this),r=this.visitAll(t.args);return n!==t.target||r!==t.args?new or(t.span,n,r):t},t.prototype.visitLiteralArray=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new Yn(t.span,n):t},t.prototype.visitLiteralMap=function(t,e){var n=this.visitAll(t.values);return n!==t.values?new Zn(t.span,t.keys,n):t},t.prototype.visitBinary=function(t,e){var n=t.left.visit(this),r=t.right.visit(this);return n!==t.left||r!==t.right?new tr(t.span,t.operation,n,r):t},t.prototype.visitPrefixNot=function(t,e){var n=t.expression.visit(this);return n!==t.expression?new er(t.span,n):t},t.prototype.visitNonNullAssert=function(t,e){var n=t.expression.visit(this);return n!==t.expression?new nr(t.span,n):t},t.prototype.visitConditional=function(t,e){var n=t.condition.visit(this),r=t.trueExp.visit(this),i=t.falseExp.visit(this);return n!==t.condition||r!==t.trueExp||i!=i?new qn(t.span,n,r,i):t},t.prototype.visitPipe=function(t,e){var n=t.exp.visit(this),r=this.visitAll(t.args);return n!==t.exp||r!==t.args?new Xn(t.span,n,t.name,r):t},t.prototype.visitKeyedRead=function(t,e){var n=t.obj.visit(this),r=t.key.visit(this);return n!==t.obj||r!==t.key?new Qn(t.span,n,r):t},t.prototype.visitKeyedWrite=function(t,e){var n=t.obj.visit(this),r=t.key.visit(this),i=t.value.visit(this);return n!==t.obj||r!==t.key||i!==t.value?new Gn(t.span,n,r,i):t},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=!1,r=0;r<t.length;++r){var i=t[r],o=i.visit(this);e[r]=o,n=n||o!==i}return n?e:t},t.prototype.visitChain=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new Un(t.span,n):t},t.prototype.visitQuote=function(t,e){return t},t}();function hr(t,e,n){function r(t){e.visit&&e.visit(t,n)||t.visit(e,n)}function i(t){t.forEach(r)}t.visit({visitBinary:function(t){r(t.left),r(t.right)},visitChain:function(t){i(t.expressions)},visitConditional:function(t){r(t.condition),r(t.trueExp),r(t.falseExp)},visitFunctionCall:function(t){t.target&&r(t.target),i(t.args)},visitImplicitReceiver:function(t){},visitInterpolation:function(t){i(t.expressions)},visitKeyedRead:function(t){r(t.obj),r(t.key)},visitKeyedWrite:function(t){r(t.obj),r(t.key),r(t.obj)},visitLiteralArray:function(t){i(t.expressions)},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){r(t.receiver),i(t.args)},visitPipe:function(t){r(t.exp),i(t.args)},visitPrefixNot:function(t){r(t.expression)},visitNonNullAssert:function(t){r(t.expression)},visitPropertyRead:function(t){r(t.receiver)},visitPropertyWrite:function(t){r(t.receiver),r(t.value)},visitQuote:function(t){},visitSafeMethodCall:function(t){r(t.receiver),i(t.args)},visitSafePropertyRead:function(t){r(t.receiver)}})}var fr,dr=function dr(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===fr.LITERAL_ATTR,this.isAnimation=this.type===fr.ANIMATION};!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION"}(fr||(fr={}));var vr=function vr(t,e,n,r,i){this.name=t,this.targetOrPhase=e,this.type=n,this.handler=r,this.sourceSpan=i},yr=function yr(t,e,n){this.name=t,this.value=e,this.sourceSpan=n},mr=function mr(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o},gr=function gr(t,e,n){this.strings=t,this.expressions=e,this.offsets=n},_r=function _r(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n};function br(t){var e=dt(t.start)+"([\\s\\S]*?)"+dt(t.end);return new RegExp(e,"g")}var wr,xr=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=_e),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new Er(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new sr(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=_e);var r=this._parseBindingAst(t,e,n);return new sr(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=_e);var r=this._parseBindingAst(t,e,n),i=Sr.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new sr(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new jn(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var i=this._stripComments(t),o=this._lexer.tokenize(i);return new Er(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!function i(t){if(0==t.length)return!1;var e=new On(t);if(!Mn(e.peek))return!1;for(e.advance();e.peek!==Ke;){if(!In(e.peek))return!1;e.advance()}return!0}(r))return null;var o=t.substring(n+1);return new Vn(new Ln(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);return new Er(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings(t)},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=_e);var r=this.splitInterpolation(t,e,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),c=new Er(t,e,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(c)}return new sr(new Jn(new Ln(0,null==t?0:t.length),r.strings,i),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=_e);var r=br(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var l=i[c];c%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",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new gr(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new sr(new $n(new Ln(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e,n=null,r=0;r<t.length-1;r++){var i=t.charCodeAt(r),o=t.charCodeAt(r+1);if(i===nn&&o==nn&&null==n)return r;n===i?n=null:null==n&&((e=i)===Je||e===Ye||96===e)&&(n=i)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=br(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i<e;i++)r+=i%2==0?t[i]:""+n.start+t[i]+n.end;return r.length},t}(),Er=function(){function t(t,e,n,r,i,o,s){this.input=t,this.location=e,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(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:kn},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(t){return new Ln(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(rn))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(rn););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Bn(this.span(e)):1==t.length?t[0]:new Un(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());t=new Xn(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=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(t,this.inputIndex);this.error("Conditional expression "+i+" requires all 3 expressions"),r=new Bn(this.span(t))}return new qn(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new tr(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new tr(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==qe.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==qe.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==qe.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==qe.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==qe.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),n=this.parsePrefix(),new tr(this.span(t),"-",n,new $n(new Ln(t,t),0));case"-":return this.advance(),n=this.parsePrefix(),new tr(this.span(t),e,new $n(new Ln(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new er(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new Gn(this.span(t.span.start),t,e,n)}else t=new Qn(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new or(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new nr(this.span(t.span.start),t)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new $n(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new $n(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new $n(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new $n(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Hn(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Yn(this.span(t),n)}if(this.next.isCharacter(bn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Hn(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new $n(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new $n(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Bn(this.span(t))):(this.error("Unexpected token "+this.next),new Bn(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(bn),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new Zn(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.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 e?new ir(o,t,r,i):new rr(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Bn(this.span(n))):new Wn(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Bn(this.span(n));var s=this.parseConditional();return new zn(this.span(n),t,r,s)}return new Kn(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(t){var e=!0,n=[];do{var r=this.inputIndex,i=void 0,o=void 0,s=!1;e?(i=o=t,e=!1):((s=this.peekKeywordLet())&&this.advance(),i=this.expectTemplateBindingKey(),o=s?i:t+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!==kn&&!this.peekKeywordLet()){var c=this.inputIndex,l=this.parsePipe(),p=this.input.substring(c-this.offset,this.inputIndex-this.offset);u=new sr(l,p,this.location,this.errors)}if(n.push(new ar(this.span(r),o,s,a,u)),this.peekKeywordAs()&&!s){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();n.push(new ar(this.span(h),f,!0,o,null))}this.optionalCharacter(rn)||this.optionalCharacter(44)}while(this.index<this.tokens.length);return new _r(n,[],this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new jn(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(rn)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new jn(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Sr=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),Cr=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&e<0;)if(e++,(u=n.charCodeAt(--i))==We){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(We));s=a>0?i-a:i}else s--;for(;i<r&&e>0;){var u=n.charCodeAt(i);i++,e--,u==We?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){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<t&&r>0&&(o++,"\n"!=n[--r]||++s!=e););for(o=0,s=0;o<t&&i<n.length-1&&(o++,"\n"!=n[++i]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},t}(),Tr=function Tr(t,e){this.content=t,this.url=e},Pr=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}();!function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"}(wr||(wr={}));var Ar,Nr=function(){function t(t,e,n){void 0===n&&(n=wr.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?this.msg+' ("'+t.before+"["+wr[this.level]+" ->]"+t.after+'")':this.msg},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+t},t}();
98
+ */(r):parseFloat(r))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=Rn(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Ke)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),function c(t,e){return new Cn(t,qe.String,0,e)}(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return function r(t,e){return new Cn(t,qe.Error,0,e)}(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}();function Mn(t){return fn<=t&&t<=_n||cn<=t&&t<=pn||t==hn||t==Ze}function In(t){return Sn(t)||En(t)||t==hn||t==Ze}function Dn(t){return t==en||t==tn}function Rn(t){switch(t){case vn:return We;case dn:return Ge;case yn:return Xe;case mn:return ze;case gn:return Qe;default:return t}}var jn=function jn(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r},Ln=function Ln(t,e){this.start=t,this.end=e},Fn=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Vn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(Fn),Bn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Fn),Hn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Fn),Un=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Fn),qn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Fn),Kn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Fn),zn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Fn),Wn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Fn),Qn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Fn),Gn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Fn),Xn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Fn),$n=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Fn),Yn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Fn),Zn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Fn),Jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Fn),tr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Fn),er=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Fn),nr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(Fn),rr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Fn),ir=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Fn),or=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Fn),sr=function(t){function e(e,n,r,i){var o=t.call(this,new Ln(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(Fn),ar=function ar(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i},ur=function(){function t(){}return t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t}(),cr=function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitNonNullAssert=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}(),lr=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new Jn(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new $n(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new Kn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new zn(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new Wn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new rr(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new ir(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new or(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new Yn(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new Zn(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new tr(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new er(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new nr(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new qn(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new Xn(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new Qn(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new Gn(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new Un(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new Vn(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),pr=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new Jn(t.span,t.strings,n):t},t.prototype.visitLiteralPrimitive=function(t,e){return t},t.prototype.visitPropertyRead=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new Kn(t.span,n,t.name):t},t.prototype.visitPropertyWrite=function(t,e){var n=t.receiver.visit(this),r=t.value.visit(this);return n!==t.receiver||r!==t.value?new zn(t.span,n,t.name,r):t},t.prototype.visitSafePropertyRead=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new Wn(t.span,n,t.name):t},t.prototype.visitMethodCall=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new rr(t.span,n,t.name,this.visitAll(t.args)):t},t.prototype.visitSafeMethodCall=function(t,e){var n=t.receiver.visit(this),r=this.visitAll(t.args);return n!==t.receiver||r!==t.args?new ir(t.span,n,t.name,r):t},t.prototype.visitFunctionCall=function(t,e){var n=t.target&&t.target.visit(this),r=this.visitAll(t.args);return n!==t.target||r!==t.args?new or(t.span,n,r):t},t.prototype.visitLiteralArray=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new Yn(t.span,n):t},t.prototype.visitLiteralMap=function(t,e){var n=this.visitAll(t.values);return n!==t.values?new Zn(t.span,t.keys,n):t},t.prototype.visitBinary=function(t,e){var n=t.left.visit(this),r=t.right.visit(this);return n!==t.left||r!==t.right?new tr(t.span,t.operation,n,r):t},t.prototype.visitPrefixNot=function(t,e){var n=t.expression.visit(this);return n!==t.expression?new er(t.span,n):t},t.prototype.visitNonNullAssert=function(t,e){var n=t.expression.visit(this);return n!==t.expression?new nr(t.span,n):t},t.prototype.visitConditional=function(t,e){var n=t.condition.visit(this),r=t.trueExp.visit(this),i=t.falseExp.visit(this);return n!==t.condition||r!==t.trueExp||i!=i?new qn(t.span,n,r,i):t},t.prototype.visitPipe=function(t,e){var n=t.exp.visit(this),r=this.visitAll(t.args);return n!==t.exp||r!==t.args?new Xn(t.span,n,t.name,r):t},t.prototype.visitKeyedRead=function(t,e){var n=t.obj.visit(this),r=t.key.visit(this);return n!==t.obj||r!==t.key?new Qn(t.span,n,r):t},t.prototype.visitKeyedWrite=function(t,e){var n=t.obj.visit(this),r=t.key.visit(this),i=t.value.visit(this);return n!==t.obj||r!==t.key||i!==t.value?new Gn(t.span,n,r,i):t},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=!1,r=0;r<t.length;++r){var i=t[r],o=i.visit(this);e[r]=o,n=n||o!==i}return n?e:t},t.prototype.visitChain=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new Un(t.span,n):t},t.prototype.visitQuote=function(t,e){return t},t}();function hr(t,e,n){function r(t){e.visit&&e.visit(t,n)||t.visit(e,n)}function i(t){t.forEach(r)}t.visit({visitBinary:function(t){r(t.left),r(t.right)},visitChain:function(t){i(t.expressions)},visitConditional:function(t){r(t.condition),r(t.trueExp),r(t.falseExp)},visitFunctionCall:function(t){t.target&&r(t.target),i(t.args)},visitImplicitReceiver:function(t){},visitInterpolation:function(t){i(t.expressions)},visitKeyedRead:function(t){r(t.obj),r(t.key)},visitKeyedWrite:function(t){r(t.obj),r(t.key),r(t.obj)},visitLiteralArray:function(t){i(t.expressions)},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){r(t.receiver),i(t.args)},visitPipe:function(t){r(t.exp),i(t.args)},visitPrefixNot:function(t){r(t.expression)},visitNonNullAssert:function(t){r(t.expression)},visitPropertyRead:function(t){r(t.receiver)},visitPropertyWrite:function(t){r(t.receiver),r(t.value)},visitQuote:function(t){},visitSafeMethodCall:function(t){r(t.receiver),i(t.args)},visitSafePropertyRead:function(t){r(t.receiver)}})}var fr,dr=function dr(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===fr.LITERAL_ATTR,this.isAnimation=this.type===fr.ANIMATION};!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION"}(fr||(fr={}));var vr=function vr(t,e,n,r,i){this.name=t,this.targetOrPhase=e,this.type=n,this.handler=r,this.sourceSpan=i},yr=function yr(t,e,n){this.name=t,this.value=e,this.sourceSpan=n},mr=function mr(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o},gr=function gr(t,e,n){this.strings=t,this.expressions=e,this.offsets=n},_r=function _r(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n};function br(t){var e=dt(t.start)+"([\\s\\S]*?)"+dt(t.end);return new RegExp(e,"g")}var wr,xr=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=_e),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new Er(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new sr(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=_e);var r=this._parseBindingAst(t,e,n);return new sr(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=_e);var r=this._parseBindingAst(t,e,n),i=Sr.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new sr(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new jn(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var i=this._stripComments(t),o=this._lexer.tokenize(i);return new Er(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!function i(t){if(0==t.length)return!1;var e=new On(t);if(!Mn(e.peek))return!1;for(e.advance();e.peek!==Ke;){if(!In(e.peek))return!1;e.advance()}return!0}(r))return null;var o=t.substring(n+1);return new Vn(new Ln(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);return new Er(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings(t)},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=_e);var r=this.splitInterpolation(t,e,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),c=new Er(t,e,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(c)}return new sr(new Jn(new Ln(0,null==t?0:t.length),r.strings,i),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=_e);var r=br(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var l=i[c];c%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",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new gr(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new sr(new $n(new Ln(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e,n=null,r=0;r<t.length-1;r++){var i=t.charCodeAt(r),o=t.charCodeAt(r+1);if(i===nn&&o==nn&&null==n)return r;n===i?n=null:null==n&&((e=i)===Je||e===Ye||96===e)&&(n=i)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=br(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i<e;i++)r+=i%2==0?t[i]:""+n.start+t[i]+n.end;return r.length},t}(),Er=function(){function t(t,e,n,r,i,o,s){this.input=t,this.location=e,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(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:kn},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(t){return new Ln(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(rn))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(rn););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Bn(this.span(e)):1==t.length?t[0]:new Un(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());t=new Xn(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=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(t,this.inputIndex);this.error("Conditional expression "+i+" requires all 3 expressions"),r=new Bn(this.span(t))}return new qn(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new tr(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new tr(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==qe.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==qe.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==qe.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==qe.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==qe.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),n=this.parsePrefix(),new tr(this.span(t),"-",n,new $n(new Ln(t,t),0));case"-":return this.advance(),n=this.parsePrefix(),new tr(this.span(t),e,new $n(new Ln(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new er(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new Gn(this.span(t.span.start),t,e,n)}else t=new Qn(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new or(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new nr(this.span(t.span.start),t)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new $n(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new $n(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new $n(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new $n(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Hn(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Yn(this.span(t),n)}if(this.next.isCharacter(bn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Hn(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new $n(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new $n(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Bn(this.span(t))):(this.error("Unexpected token "+this.next),new Bn(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(bn),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new Zn(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.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 e?new ir(o,t,r,i):new rr(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Bn(this.span(n))):new Wn(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Bn(this.span(n));var s=this.parseConditional();return new zn(this.span(n),t,r,s)}return new Kn(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(t){var e=!0,n=[];do{var r=this.inputIndex,i=void 0,o=void 0,s=!1;e?(i=o=t,e=!1):((s=this.peekKeywordLet())&&this.advance(),i=this.expectTemplateBindingKey(),o=s?i:t+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!==kn&&!this.peekKeywordLet()){var c=this.inputIndex,l=this.parsePipe(),p=this.input.substring(c-this.offset,this.inputIndex-this.offset);u=new sr(l,p,this.location,this.errors)}if(n.push(new ar(this.span(r),o,s,a,u)),this.peekKeywordAs()&&!s){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();n.push(new ar(this.span(h),f,!0,o,null))}this.optionalCharacter(rn)||this.optionalCharacter(44)}while(this.index<this.tokens.length);return new _r(n,[],this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new jn(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(rn)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new jn(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Sr=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),Cr=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&e<0;)if(e++,(u=n.charCodeAt(--i))==We){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(We));s=a>0?i-a:i}else s--;for(;i<r&&e>0;){var u=n.charCodeAt(i);i++,e--,u==We?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){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<t&&r>0&&(o++,"\n"!=n[--r]||++s!=e););for(o=0,s=0;o<t&&i<n.length-1&&(o++,"\n"!=n[++i]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},t}(),Tr=function Tr(t,e){this.content=t,this.url=e},Pr=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}();!function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"}(wr||(wr={}));var Ar,Nr=function(){function t(t,e,n){void 0===n&&(n=wr.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?this.msg+' ("'+t.before+"["+wr[this.level]+" ->]"+t.after+'")':this.msg},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+t},t}();
99
99
  /**
100
100
  * @license
101
101
  * Copyright Google Inc. All Rights Reserved.
102
102
  *
103
103
  * Use of this source code is governed by an MIT-style license that can be
104
104
  * found in the LICENSE file at https://angular.io/license
105
- */!function(t){t[t.TAG_OPEN_START=0]="TAG_OPEN_START",t[t.TAG_OPEN_END=1]="TAG_OPEN_END",t[t.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",t[t.TAG_CLOSE=3]="TAG_CLOSE",t[t.TEXT=4]="TEXT",t[t.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",t[t.RAW_TEXT=6]="RAW_TEXT",t[t.COMMENT_START=7]="COMMENT_START",t[t.COMMENT_END=8]="COMMENT_END",t[t.CDATA_START=9]="CDATA_START",t[t.CDATA_END=10]="CDATA_END",t[t.ATTR_NAME=11]="ATTR_NAME",t[t.ATTR_VALUE=12]="ATTR_VALUE",t[t.DOC_TYPE=13]="DOC_TYPE",t[t.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",t[t.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",t[t.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",t[t.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",t[t.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",t[t.EOF=19]="EOF"}(Ar||(Ar={}));var kr=function Cn(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n},Or=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return o(e,t),e}(Nr),Mr=function Mr(t,e){this.tokens=t,this.errors=e},Ir=/\r\n?/g;function Rr(t){return'Unexpected character "'+(t===Ke?"EOF":String.fromCharCode(t))+'"'}function Dr(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}var jr=function jr(t){this.error=t},Lr=function(){function t(t,e,n,r){void 0===r&&(r=_e),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Ir,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Ke;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(en)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(nn)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof jr))throw t;this.errors.push(t.error)}}return this._beginToken(Ar.EOF),this._endToken([]),new Mr(function e(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var i=t[r];n&&n.type==Ar.TEXT&&i.type==Ar.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):e.push(n=i)}return e}
105
+ */!function(t){t[t.TAG_OPEN_START=0]="TAG_OPEN_START",t[t.TAG_OPEN_END=1]="TAG_OPEN_END",t[t.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",t[t.TAG_CLOSE=3]="TAG_CLOSE",t[t.TEXT=4]="TEXT",t[t.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",t[t.RAW_TEXT=6]="RAW_TEXT",t[t.COMMENT_START=7]="COMMENT_START",t[t.COMMENT_END=8]="COMMENT_END",t[t.CDATA_START=9]="CDATA_START",t[t.CDATA_END=10]="CDATA_END",t[t.ATTR_NAME=11]="ATTR_NAME",t[t.ATTR_VALUE=12]="ATTR_VALUE",t[t.DOC_TYPE=13]="DOC_TYPE",t[t.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",t[t.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",t[t.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",t[t.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",t[t.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",t[t.EOF=19]="EOF"}(Ar||(Ar={}));var kr=function Cn(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n},Or=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return o(e,t),e}(Nr),Mr=function Mr(t,e){this.tokens=t,this.errors=e},Ir=/\r\n?/g;function Dr(t){return'Unexpected character "'+(t===Ke?"EOF":String.fromCharCode(t))+'"'}function Rr(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}var jr=function jr(t){this.error=t},Lr=function(){function t(t,e,n,r){void 0===r&&(r=_e),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Ir,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Ke;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(en)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(nn)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof jr))throw t;this.errors.push(t.error)}}return this._beginToken(Ar.EOF),this._endToken([]),new Mr(function e(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var i=t[r];n&&n.type==Ar.TEXT&&i.type==Ar.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):e.push(n=i)}return e}
106
106
  /**
107
107
  * @license
108
108
  * Copyright Google Inc. All Rights Reserved.
109
109
  *
110
110
  * Use of this source code is governed by an MIT-style license that can be
111
111
  * found in the LICENSE file at https://angular.io/license
112
- */(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(Ur(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(function t(e){return e===on||Sn(e)||En(e)}(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 Cr(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Pr(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new kr(this._currentTokenType,t,new Pr(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Or(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new jr(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Rr(Ke),this._getSpan());this._peek===We?(this._line++,this._column=0):this._peek!==We&&this._peek!==Xe&&this._column++,this._index++,this._peek=this._index>=this._length?Ke:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ke:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!function e(t,n){return qr(t)==qr(n)}(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(Rr(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;r<e;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(Rr(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(Rr(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(Hr),this._peek!=rn)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=_[n];if(!r)throw this._createError(Dr(n),this._getSpan(t));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(Br),this._peek!=rn)throw this._createError(Rr(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(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(Dr(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?Ar.ESCAPABLE_RAW_TEXT:Ar.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(e)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t));return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Ar.COMMENT_START,t),this._requireCharCode(en),this._endToken([]);var n=this._consumeRawText(!1,en,function(){return e._attemptStr("->")});this._beginToken(Ar.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Ar.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(Ar.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Ar.DOC_TYPE,t),this._attemptUntilChar(sn),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t,e,n=this._index,r=null;58!==this._peek&&!(((t=this._peek)<fn||_n<t)&&(t<cn||pn<t)&&(t<an||t>un));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),e=this._index):e=n,this._requireCharCodeUntilFn(Vr,this._index===e?1:0),[r,this._input.substring(e,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!Sn(this._peek))throw this._createError(Rr(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(Fr);this._peek!==nn&&this._peek!==sn;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Fr),this._attemptCharCode(on)&&(this._attemptCharCodeUntilFn(Fr),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Fr);this._consumeTagOpenEnd()}catch(e){if(e instanceof jr)return this._restorePosition(r),this._beginToken(Ar.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===s.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===s.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(nn)&&(n._attemptCharCodeUntilFn(Fr),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(Fr),n._attemptCharCode(sn)))});this._beginToken(Ar.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Ar.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Ar.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){var t;if(this._beginToken(Ar.ATTR_VALUE),this._peek===Je||this._peek===Ye){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(Vr,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(nn)?Ar.TAG_OPEN_END_VOID:Ar.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(sn),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Ar.TAG_CLOSE,t),this._attemptCharCodeUntilFn(Fr);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Fr),this._requireCharCode(sn),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Ar.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(bn),this._endToken([]),this._expansionCaseStack.push(Ar.EXPANSION_FORM_START),this._beginToken(Ar.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Fr),this._beginToken(Ar.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Fr)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Ar.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(bn).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(Fr),this._beginToken(Ar.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(bn),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Fr),this._expansionCaseStack.push(Ar.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Ar.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Fr),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Ar.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Ar.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Ke)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(Ur(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(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ar.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ar.EXPANSION_FORM_START},t}();function Fr(t){return!xn(t)||t===Ke}function Vr(t){return xn(t)||t===sn||t===nn||t===Je||t===Ye||t===on}function Br(t){return t==rn||t==Ke||!function e(t){return t>=fn&&t<=dn||t>=cn&&t<=ln||En(t)}
112
+ */(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(Ur(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(function t(e){return e===on||Sn(e)||En(e)}(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 Cr(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Pr(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new kr(this._currentTokenType,t,new Pr(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Or(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new jr(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Dr(Ke),this._getSpan());this._peek===We?(this._line++,this._column=0):this._peek!==We&&this._peek!==Xe&&this._column++,this._index++,this._peek=this._index>=this._length?Ke:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ke:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!function e(t,n){return qr(t)==qr(n)}(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(Dr(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;r<e;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(Dr(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(Dr(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(Hr),this._peek!=rn)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=_[n];if(!r)throw this._createError(Rr(n),this._getSpan(t));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(Br),this._peek!=rn)throw this._createError(Dr(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(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(Rr(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?Ar.ESCAPABLE_RAW_TEXT:Ar.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(e)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t));return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Ar.COMMENT_START,t),this._requireCharCode(en),this._endToken([]);var n=this._consumeRawText(!1,en,function(){return e._attemptStr("->")});this._beginToken(Ar.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Ar.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(Ar.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Ar.DOC_TYPE,t),this._attemptUntilChar(sn),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t,e,n=this._index,r=null;58!==this._peek&&!(((t=this._peek)<fn||_n<t)&&(t<cn||pn<t)&&(t<an||t>un));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),e=this._index):e=n,this._requireCharCodeUntilFn(Vr,this._index===e?1:0),[r,this._input.substring(e,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!Sn(this._peek))throw this._createError(Dr(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(Fr);this._peek!==nn&&this._peek!==sn;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Fr),this._attemptCharCode(on)&&(this._attemptCharCodeUntilFn(Fr),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Fr);this._consumeTagOpenEnd()}catch(e){if(e instanceof jr)return this._restorePosition(r),this._beginToken(Ar.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===s.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===s.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(nn)&&(n._attemptCharCodeUntilFn(Fr),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(Fr),n._attemptCharCode(sn)))});this._beginToken(Ar.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Ar.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Ar.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){var t;if(this._beginToken(Ar.ATTR_VALUE),this._peek===Je||this._peek===Ye){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(Vr,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(nn)?Ar.TAG_OPEN_END_VOID:Ar.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(sn),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Ar.TAG_CLOSE,t),this._attemptCharCodeUntilFn(Fr);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Fr),this._requireCharCode(sn),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Ar.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(bn),this._endToken([]),this._expansionCaseStack.push(Ar.EXPANSION_FORM_START),this._beginToken(Ar.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Fr),this._beginToken(Ar.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Fr)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Ar.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(bn).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(Fr),this._beginToken(Ar.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(bn),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Fr),this._expansionCaseStack.push(Ar.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Ar.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Fr),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Ar.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Ar.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Ke)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(Ur(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(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ar.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ar.EXPANSION_FORM_START},t}();function Fr(t){return!xn(t)||t===Ke}function Vr(t){return xn(t)||t===sn||t===nn||t===Je||t===Ye||t===on}function Br(t){return t==rn||t==Ke||!function e(t){return t>=fn&&t<=dn||t>=cn&&t<=ln||En(t)}
113
113
  /**
114
114
  * @license
115
115
  * Copyright Google Inc. All Rights Reserved.
@@ -130,7 +130,7 @@ var w,x,E=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=
130
130
  *
131
131
  * Use of this source code is governed by an MIT-style license that can be
132
132
  * found in the LICENSE file at https://angular.io/license
133
- */!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(Yr||(Yr={}));var di,vi=function vi(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,this.sources=t.length?[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:[]},yi=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),mi=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),gi=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),_i=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),bi=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),wi=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),xi=function(){function t(){}return t.prototype.visitText=function(t,e){return new yi(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new mi(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new gi(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new _i(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new bi(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new wi(t.value,t.name,t.sourceSpan)},t}(),Ei=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),Si={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"},Ci=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=Si[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=this._generateUniqueName("CLOSE_"+(Si[n]||"TAG_"+n));return this._signatureToName[e]=r,r},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),Ti=new xr(new Pn),Pi=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof ae,this._icuDepth=0,this._placeholderRegistry=new Ci,this._placeholderToContent={},this._placeholderToMessage={};var i=he(this,t,{});return new vi(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=he(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=S(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new _i(t.name,r,o,s,n,i,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var i={},o=new gi(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new mi(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new wi(o,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new yi(t,e);for(var r=[],i=new mi(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=c.split(Ai)[2]||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new yi(n.strings[u],e)),r.push(new bi(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new yi(n.strings[h],e)),i},t}(),Ai=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,Ni=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e}(Nr),ki=/^i18n:?/,Oi="|",Mi="@@",Ii=!1,Ri=function Ri(t,e){this.messages=t,this.errors=e};!function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"}(di||(di={}));var Di=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(di.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Ri(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(di.Merge,n),this._translations=e;var r=new le("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new zr(r.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=he(this,t.expression,e);if(this._mode===di.Merge)return new ue(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=he(this,t.cases,e);return this._mode===di.Merge&&(t=new ae(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=function r(t){return!!(t instanceof pe&&t.value&&t.value.startsWith("i18n"))}(t);if(n&&this._isInTranslatableSection)this._reportError(t,"Could not start a block inside a translatable section");else{var i=function o(t){return!!(t instanceof pe&&t.value&&"/i18n"===t.value)}(t);if(!i||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(i){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var s=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return he(this,this._translateMessage(t,s))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else n&&(!Ii&&console&&console.warn&&(Ii=!0,console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+t.sourceSpan.start+(t.sourceSpan.details?", "+t.sourceSpan.details:"")+")")),this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(ki,"").trim(),this._openTranslatableSection(t))}else this._reportError(t,"Trying to close an unopened block")}},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=function u(t){return t.attrs.find(function(t){return"i18n"===t.name})||null}(t),c=a?a.value:"",l=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,p=!i&&l;if(this._inImplicitNode=i||l,this._isInTranslatableSection||this._inIcu)(a||p)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==di.Extract&&he(this,t.children);else{if(a||p){this._inI18nNode=!0;var h=this._addMessage(t.children,c);s=this._translateMessage(t,h)}if(this._mode==di.Extract){var f=a||p;f&&this._openTranslatableSection(t),he(this,t.children),f&&this._closeTranslatableSection(t,t.children)}}if(this._mode===di.Merge&&(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))}),this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===di.Merge){var d=this._translateAttributes(t);return new le(t.name,d,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,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=function n(t){var e=new Pi(Ti,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof ce&&!t[0].value)return null;var n=ji(e),r=this._createI18nMessage(t,n.meaning,n.description,n.id);return this._messages.push(r),r},t.prototype._translateMessage=function(t,e){if(e&&this._mode===di.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=ji(t.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=e._createI18nMessage([n],o.meaning,o.description,s),u=e._translations.get(a);u?0==u.length?i.push(new ce(n.name,"",n.sourceSpan)):u[0]instanceof se?i.push(new ce(n.name,u[0].value,n.sourceSpan)):e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(s||e._translations.digest(a))+'")'):e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(s||e._translations.digest(a))+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof pe?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 yi)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(t,"Unexpected section end")},t.prototype._reportError=function(t,e){this._errors.push(new Ni(t.sourceSpan,e))},t}();function ji(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Mi),n=t.indexOf(Oi),r=h(e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],2),i=r[0],o=r[1],s=h(n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],2);return{meaning:s[0],description:s[1],id:o}}
133
+ */!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(Yr||(Yr={}));var di,vi=function vi(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,this.sources=t.length?[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:[]},yi=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),mi=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),gi=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),_i=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),bi=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),wi=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),xi=function(){function t(){}return t.prototype.visitText=function(t,e){return new yi(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new mi(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new gi(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new _i(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new bi(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new wi(t.value,t.name,t.sourceSpan)},t}(),Ei=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),Si={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"},Ci=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=Si[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=this._generateUniqueName("CLOSE_"+(Si[n]||"TAG_"+n));return this._signatureToName[e]=r,r},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),Ti=new xr(new Pn),Pi=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof ae,this._icuDepth=0,this._placeholderRegistry=new Ci,this._placeholderToContent={},this._placeholderToMessage={};var i=he(this,t,{});return new vi(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=he(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=S(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new _i(t.name,r,o,s,n,i,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var i={},o=new gi(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new mi(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new wi(o,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new yi(t,e);for(var r=[],i=new mi(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=c.split(Ai)[2]||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new yi(n.strings[u],e)),r.push(new bi(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new yi(n.strings[h],e)),i},t}(),Ai=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,Ni=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e}(Nr),ki=/^i18n:?/,Oi="|",Mi="@@",Ii=!1,Di=function Di(t,e){this.messages=t,this.errors=e};!function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"}(di||(di={}));var Ri=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(di.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Di(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(di.Merge,n),this._translations=e;var r=new le("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new zr(r.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=he(this,t.expression,e);if(this._mode===di.Merge)return new ue(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=he(this,t.cases,e);return this._mode===di.Merge&&(t=new ae(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=function r(t){return!!(t instanceof pe&&t.value&&t.value.startsWith("i18n"))}(t);if(n&&this._isInTranslatableSection)this._reportError(t,"Could not start a block inside a translatable section");else{var i=function o(t){return!!(t instanceof pe&&t.value&&"/i18n"===t.value)}(t);if(!i||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(i){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var s=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return he(this,this._translateMessage(t,s))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else n&&(!Ii&&console&&console.warn&&(Ii=!0,console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+t.sourceSpan.start+(t.sourceSpan.details?", "+t.sourceSpan.details:"")+")")),this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(ki,"").trim(),this._openTranslatableSection(t))}else this._reportError(t,"Trying to close an unopened block")}},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=function u(t){return t.attrs.find(function(t){return"i18n"===t.name})||null}(t),c=a?a.value:"",l=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,p=!i&&l;if(this._inImplicitNode=i||l,this._isInTranslatableSection||this._inIcu)(a||p)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==di.Extract&&he(this,t.children);else{if(a||p){this._inI18nNode=!0;var h=this._addMessage(t.children,c);s=this._translateMessage(t,h)}if(this._mode==di.Extract){var f=a||p;f&&this._openTranslatableSection(t),he(this,t.children),f&&this._closeTranslatableSection(t,t.children)}}if(this._mode===di.Merge&&(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))}),this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===di.Merge){var d=this._translateAttributes(t);return new le(t.name,d,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,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=function n(t){var e=new Pi(Ti,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof ce&&!t[0].value)return null;var n=ji(e),r=this._createI18nMessage(t,n.meaning,n.description,n.id);return this._messages.push(r),r},t.prototype._translateMessage=function(t,e){if(e&&this._mode===di.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=ji(t.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=e._createI18nMessage([n],o.meaning,o.description,s),u=e._translations.get(a);u?0==u.length?i.push(new ce(n.name,"",n.sourceSpan)):u[0]instanceof se?i.push(new ce(n.name,u[0].value,n.sourceSpan)):e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(s||e._translations.digest(a))+'")'):e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(s||e._translations.digest(a))+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof pe?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 yi)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(t,"Unexpected section end")},t.prototype._reportError=function(t,e){this._errors.push(new Ni(t.sourceSpan,e))},t}();function ji(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Mi),n=t.indexOf(Oi),r=h(e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],2),i=r[0],o=r[1],s=h(n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],2);return{meaning:s[0],description:s[1],id:o}}
134
134
  /**
135
135
  * @license
136
136
  * Copyright Google Inc. All Rights Reserved.
@@ -186,14 +186,14 @@ var w,x,E=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=
186
186
  *
187
187
  * Use of this source code is governed by an MIT-style license that can be
188
188
  * found in the LICENSE file at https://angular.io/license
189
- */(n);this._translationBundle=yo.load(e,"i18n",o,r,i)}else this._translationBundle=new yo({},null,Xr,void 0,r,i)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=_e);var i=this._htmlParser.parse(t,e,n,r);return i.errors.length?new zr(i.rootNodes,i.errors):function o(t,e,n,r,i){return new Di(r,i).merge(t,e,n)}(i.rootNodes,this._translationBundle,r,[],{})},t}(),_o="@angular/core",bo=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:_o},t.ElementRef={name:"ElementRef",moduleName:_o},t.NgModuleRef={name:"NgModuleRef",moduleName:_o},t.ViewContainerRef={name:"ViewContainerRef",moduleName:_o},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:_o},t.QueryList={name:"QueryList",moduleName:_o},t.TemplateRef={name:"TemplateRef",moduleName:_o},t.Renderer2={name:"Renderer2",moduleName:_o},t.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:_o},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:_o},t.ComponentFactory={name:"ComponentFactory",moduleName:_o},t.ComponentRef={name:"ComponentRef",moduleName:_o},t.NgModuleFactory={name:"NgModuleFactory",moduleName:_o},t.createModuleFactory={name:"ɵcmf",moduleName:_o},t.moduleDef={name:"ɵmod",moduleName:_o},t.moduleProviderDef={name:"ɵmpd",moduleName:_o},t.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:_o},t.inject={name:"inject",moduleName:_o},t.INJECTOR={name:"INJECTOR",moduleName:_o},t.Injector={name:"Injector",moduleName:_o},t.defineInjectable={name:"defineInjectable",moduleName:_o},t.InjectableDef={name:"ɵInjectableDef",moduleName:_o},t.ViewEncapsulation={name:"ViewEncapsulation",moduleName:_o},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:_o},t.SecurityContext={name:"SecurityContext",moduleName:_o},t.LOCALE_ID={name:"LOCALE_ID",moduleName:_o},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:_o},t.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:_o},t.interpolate={name:"ɵinterpolate",moduleName:_o},t.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:_o},t.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:_o},t.Renderer={name:"Renderer",moduleName:_o},t.viewDef={name:"ɵvid",moduleName:_o},t.elementDef={name:"ɵeld",moduleName:_o},t.anchorDef={name:"ɵand",moduleName:_o},t.textDef={name:"ɵted",moduleName:_o},t.directiveDef={name:"ɵdid",moduleName:_o},t.providerDef={name:"ɵprd",moduleName:_o},t.queryDef={name:"ɵqud",moduleName:_o},t.pureArrayDef={name:"ɵpad",moduleName:_o},t.pureObjectDef={name:"ɵpod",moduleName:_o},t.purePipeDef={name:"ɵppd",moduleName:_o},t.pipeDef={name:"ɵpid",moduleName:_o},t.nodeValue={name:"ɵnov",moduleName:_o},t.ngContentDef={name:"ɵncd",moduleName:_o},t.unwrapValue={name:"ɵunv",moduleName:_o},t.createRendererType2={name:"ɵcrt",moduleName:_o},t.RendererType2={name:"RendererType2",moduleName:_o},t.ViewDefinition={name:"ɵViewDefinition",moduleName:_o},t.createComponentFactory={name:"ɵccf",moduleName:_o},t}();function wo(t){return{identifier:{reference:t}}}function xo(t,e){return wo(t.resolveExternalReference(e))}
189
+ */(n);this._translationBundle=yo.load(e,"i18n",o,r,i)}else this._translationBundle=new yo({},null,Xr,void 0,r,i)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=_e);var i=this._htmlParser.parse(t,e,n,r);return i.errors.length?new zr(i.rootNodes,i.errors):function o(t,e,n,r,i){return new Ri(r,i).merge(t,e,n)}(i.rootNodes,this._translationBundle,r,[],{})},t}(),_o="@angular/core",bo=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:_o},t.ElementRef={name:"ElementRef",moduleName:_o},t.NgModuleRef={name:"NgModuleRef",moduleName:_o},t.ViewContainerRef={name:"ViewContainerRef",moduleName:_o},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:_o},t.QueryList={name:"QueryList",moduleName:_o},t.TemplateRef={name:"TemplateRef",moduleName:_o},t.Renderer2={name:"Renderer2",moduleName:_o},t.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:_o},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:_o},t.ComponentFactory={name:"ComponentFactory",moduleName:_o},t.ComponentRef={name:"ComponentRef",moduleName:_o},t.NgModuleFactory={name:"NgModuleFactory",moduleName:_o},t.createModuleFactory={name:"ɵcmf",moduleName:_o},t.moduleDef={name:"ɵmod",moduleName:_o},t.moduleProviderDef={name:"ɵmpd",moduleName:_o},t.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:_o},t.inject={name:"inject",moduleName:_o},t.INJECTOR={name:"INJECTOR",moduleName:_o},t.Injector={name:"Injector",moduleName:_o},t.defineInjectable={name:"defineInjectable",moduleName:_o},t.InjectableDef={name:"ɵInjectableDef",moduleName:_o},t.ViewEncapsulation={name:"ViewEncapsulation",moduleName:_o},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:_o},t.SecurityContext={name:"SecurityContext",moduleName:_o},t.LOCALE_ID={name:"LOCALE_ID",moduleName:_o},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:_o},t.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:_o},t.interpolate={name:"ɵinterpolate",moduleName:_o},t.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:_o},t.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:_o},t.Renderer={name:"Renderer",moduleName:_o},t.viewDef={name:"ɵvid",moduleName:_o},t.elementDef={name:"ɵeld",moduleName:_o},t.anchorDef={name:"ɵand",moduleName:_o},t.textDef={name:"ɵted",moduleName:_o},t.directiveDef={name:"ɵdid",moduleName:_o},t.providerDef={name:"ɵprd",moduleName:_o},t.queryDef={name:"ɵqud",moduleName:_o},t.pureArrayDef={name:"ɵpad",moduleName:_o},t.pureObjectDef={name:"ɵpod",moduleName:_o},t.purePipeDef={name:"ɵppd",moduleName:_o},t.pipeDef={name:"ɵpid",moduleName:_o},t.nodeValue={name:"ɵnov",moduleName:_o},t.ngContentDef={name:"ɵncd",moduleName:_o},t.unwrapValue={name:"ɵunv",moduleName:_o},t.createRendererType2={name:"ɵcrt",moduleName:_o},t.RendererType2={name:"RendererType2",moduleName:_o},t.ViewDefinition={name:"ɵViewDefinition",moduleName:_o},t.createComponentFactory={name:"ɵccf",moduleName:_o},t}();function wo(t){return{identifier:{reference:t}}}function xo(t,e){return wo(t.resolveExternalReference(e))}
190
190
  /**
191
191
  * @license
192
192
  * Copyright Google Inc. All Rights Reserved.
193
193
  *
194
194
  * Use of this source code is governed by an MIT-style license that can be
195
195
  * found in the LICENSE file at https://angular.io/license
196
- */!function(t){t[t.Const=0]="Const"}(lo||(lo={}));var Eo,So=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}();!function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"}(Eo||(Eo={}));var Co,To=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return o(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltinType(this,e)},e}(So),Po=(function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=t.call(this,n)||this;return i.value=e,i.typeParams=r,i}o(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)}}(So),function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}o(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)}}(So),function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e||null,r}return o(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(So)),Ao=(new To(Eo.Dynamic),new To(Eo.Inferred)),No=new To(Eo.Bool);function ko(t,e){return null==t||null==e?t==e:t.isEquivalent(e)}function Oo(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!t[r].isEquivalent(e[r]))return!1;return!0}new To(Eo.Int),new To(Eo.Number),new To(Eo.String),new To(Eo.Function),new To(Eo.None),function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseAnd=11]="BitwiseAnd",t[t.Lower=12]="Lower",t[t.LowerEquals=13]="LowerEquals",t[t.Bigger=14]="Bigger",t[t.BiggerEquals=15]="BiggerEquals"}(Co||(Co={}));var Mo,Io=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.prop=function(t,e){return new Zo(this,t,null,e)},t.prototype.key=function(t,e,n){return new Jo(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new Ho(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new Uo(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new qo(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new Wo(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Yo(Co.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Yo(Co.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Yo(Co.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Yo(Co.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Yo(Co.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Yo(Co.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Yo(Co.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Yo(Co.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Yo(Co.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Yo(Co.And,this,t,null,e)},t.prototype.bitwiseAnd=function(t,e,n){return void 0===n&&(n=!0),new Yo(Co.BitwiseAnd,this,t,null,e,n)},t.prototype.or=function(t,e){return new Yo(Co.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Yo(Co.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Yo(Co.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Yo(Co.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Yo(Co.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(is,t)},t.prototype.cast=function(t,e){return new Xo(this,t,e)},t.prototype.toStmt=function(){return new us(this,null)},t}();!function(t){t[t.This=0]="This",t[t.Super=1]="Super",t[t.CatchError=2]="CatchError",t[t.CatchStack=3]="CatchStack"}(Mo||(Mo={}));var Ro,Do=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return"string"==typeof e?(i.name=e,i.builtin=null):(i.name=null,i.builtin=e),i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.builtin===t.builtin},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Lo(this.name,t,null,this.sourceSpan)},e}(Io),jo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.expr=e,i}return o(e,t),e.prototype.visitExpression=function(t,e){return t.visitTypeofExpr(this,e)},e.prototype.isEquivalent=function(t){return t instanceof e&&t.expr.isEquivalent(this.expr)},e.prototype.isConstant=function(){return this.expr.isConstant()},e}(Io),Lo=(function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.node=e,i}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.node===t.node},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWrappedNodeExpr(this,e)}}(Io),function(t){function e(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new ss(this.name,this.value,t,e,this.sourceSpan)},e.prototype.toConstDecl=function(){return this.toDeclStmt(Ao,[Bo.Final])},e}(Io)),Fo=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.index=n,s.value=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Io),Vo=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.name=n,s.value=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Io);!function(t){t[t.ConcatArray=0]="ConcatArray",t[t.SubscribeObservable=1]="SubscribeObservable",t[t.Bind=2]="Bind"}(Ro||(Ro={}));var Bo,Ho=function(t){function e(e,n,r,i,o){var s=t.call(this,i,o)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.builtin===t.builtin&&Oo(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Io),Uo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.fn=e,o.args=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&Oo(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Io),qo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.classExpr=e,o.args=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&Oo(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Io),Ko=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value===t.value},e.prototype.isConstant=function(){return!0},e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Io),zo=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,i)||this;return o.value=e,o.typeParams=r,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName&&this.value.runtime===t.value.runtime},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Io),Wo=function(t){function e(e,n,r,i,o){void 0===r&&(r=null);var s=t.call(this,i||n.type,o)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&ko(this.falseCase,t.falseCase)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Io),Qo=function(t){function e(e,n){var r=t.call(this,No,n)||this;return r.condition=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Io),Go=function(t){function e(e,n){var r=t.call(this,e.type,n)||this;return r.condition=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitAssertNotNullExpr(this,e)},e}(Io),Xo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Io),$o=function(t){function e(e,n,r,i,o){var s=t.call(this,r,i)||this;return s.params=e,s.statements=n,s.name=o,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.params,t.params)&&Oo(this.statements,t.statements)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new as(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Io),Yo=function(t){function e(e,n,r,i,o,s){void 0===s&&(s=!0);var a=t.call(this,i||n.type,o)||this;return a.operator=e,a.rhs=r,a.parens=s,a.lhs=n,a}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Io),Zo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.name=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new Vo(this.receiver,this.name,t,null,this.sourceSpan)},e}(Io),Jo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.index=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Fo(this.receiver,this.index,t,null,this.sourceSpan)},e}(Io),ts=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i}return o(e,t),e.prototype.isConstant=function(){return this.entries.every(function(t){return t.isConstant()})},e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.entries,t.entries)},e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Io),es=function(){function t(t,e,n){this.key=t,this.value=e,this.quoted=n}return t.prototype.isEquivalent=function(t){return this.key===t.key&&this.value.isEquivalent(t.value)},t}(),ns=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i.valueType=null,n&&(i.valueType=n.valueType),i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.entries,t.entries)},e.prototype.isConstant=function(){return this.entries.every(function(t){return t.value.isConstant()})},e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Io),rs=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.parts,t.parts)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Io),is=(new Do(Mo.This,null,null),new Do(Mo.Super,null,null),new Do(Mo.CatchError,null,null),new Do(Mo.CatchStack,null,null),new Ko(null,null,null),new Ko(null,Ao,null));!function(t){t[t.Final=0]="Final",t[t.Private=1]="Private",t[t.Exported=2]="Exported",t[t.Static=3]="Static"}(Bo||(Bo={}));var os=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),ss=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i,o)||this;return s.name=e,s.value=n,s.type=r||n&&n.type||null,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)},e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(os),as=function(t){function e(e,n,r,i,o,s){void 0===o&&(o=null);var a=t.call(this,o,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=i||null,a}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.params,t.params)&&Oo(this.statements,t.statements)},e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(os),us=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.expr.isEquivalent(t.expr)},e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(os),cs=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(os),ls=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),ps=(function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.name=e,o.initializer=i,o}o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name}}(ls),function(t){function e(e,n,r,i,o){void 0===o&&(o=null);var s=t.call(this,i,o)||this;return s.name=e,s.params=n,s.body=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&Oo(this.body,t.body)},e}(ls)),hs=function(t){function e(e,n,r,i){void 0===i&&(i=null);var o=t.call(this,r,i)||this;return o.name=e,o.body=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&Oo(this.body,t.body)},e}(ls),fs=function(t){function e(e,n,r,i,o,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=i,c.constructorMethod=o,c.methods=s,c}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&ko(this.parent,t.parent)&&Oo(this.fields,t.fields)&&Oo(this.getters,t.getters)&&this.constructorMethod.isEquivalent(t.constructorMethod)&&Oo(this.methods,t.methods)},e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(os),ds=function(t){function e(e,n,r,i){void 0===r&&(r=[]);var o=t.call(this,null,i)||this;return o.condition=e,o.trueCase=n,o.falseCase=r,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&Oo(this.trueCase,t.trueCase)&&Oo(this.falseCase,t.falseCase)},e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(os),vs=(function(t){function e(e,n,r){void 0===n&&(n=!1);var i=t.call(this,null,r)||this;return i.comment=e,i.multiline=n,i}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e},e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)}}(os),function(t){function e(e,n){void 0===e&&(e=[]);var r=t.call(this,null,n)||this;return r.tags=e,r}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.toString()===t.toString()},e.prototype.visitStatement=function(t,e){return t.visitJSDocCommentStmt(this,e)},e.prototype.toString=function(){return function t(e){var n,r;if(0===e.length)return"";var i="*\n";try{for(var o=p(e),s=o.next();!s.done;s=o.next())i+=" *",i+=Es(s.value).replace(/\n/g,"\n * "),i+="\n"}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i+" "}
196
+ */!function(t){t[t.Const=0]="Const"}(lo||(lo={}));var Eo,So=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}();!function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"}(Eo||(Eo={}));var Co,To=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return o(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltinType(this,e)},e}(So),Po=(function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=t.call(this,n)||this;return i.value=e,i.typeParams=r,i}o(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)}}(So),function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}o(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)}}(So),function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e||null,r}return o(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(So)),Ao=(new To(Eo.Dynamic),new To(Eo.Inferred)),No=new To(Eo.Bool);function ko(t,e){return null==t||null==e?t==e:t.isEquivalent(e)}function Oo(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!t[r].isEquivalent(e[r]))return!1;return!0}new To(Eo.Int),new To(Eo.Number),new To(Eo.String),new To(Eo.Function),new To(Eo.None),function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseAnd=11]="BitwiseAnd",t[t.Lower=12]="Lower",t[t.LowerEquals=13]="LowerEquals",t[t.Bigger=14]="Bigger",t[t.BiggerEquals=15]="BiggerEquals"}(Co||(Co={}));var Mo,Io=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.prop=function(t,e){return new Zo(this,t,null,e)},t.prototype.key=function(t,e,n){return new Jo(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new Ho(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new Uo(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new qo(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new Wo(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Yo(Co.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Yo(Co.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Yo(Co.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Yo(Co.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Yo(Co.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Yo(Co.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Yo(Co.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Yo(Co.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Yo(Co.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Yo(Co.And,this,t,null,e)},t.prototype.bitwiseAnd=function(t,e,n){return void 0===n&&(n=!0),new Yo(Co.BitwiseAnd,this,t,null,e,n)},t.prototype.or=function(t,e){return new Yo(Co.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Yo(Co.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Yo(Co.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Yo(Co.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Yo(Co.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(is,t)},t.prototype.cast=function(t,e){return new Xo(this,t,e)},t.prototype.toStmt=function(){return new us(this,null)},t}();!function(t){t[t.This=0]="This",t[t.Super=1]="Super",t[t.CatchError=2]="CatchError",t[t.CatchStack=3]="CatchStack"}(Mo||(Mo={}));var Do,Ro=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return"string"==typeof e?(i.name=e,i.builtin=null):(i.name=null,i.builtin=e),i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.builtin===t.builtin},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Lo(this.name,t,null,this.sourceSpan)},e}(Io),jo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.expr=e,i}return o(e,t),e.prototype.visitExpression=function(t,e){return t.visitTypeofExpr(this,e)},e.prototype.isEquivalent=function(t){return t instanceof e&&t.expr.isEquivalent(this.expr)},e.prototype.isConstant=function(){return this.expr.isConstant()},e}(Io),Lo=(function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.node=e,i}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.node===t.node},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWrappedNodeExpr(this,e)}}(Io),function(t){function e(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new ss(this.name,this.value,t,e,this.sourceSpan)},e.prototype.toConstDecl=function(){return this.toDeclStmt(Ao,[Bo.Final])},e}(Io)),Fo=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.index=n,s.value=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Io),Vo=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.name=n,s.value=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Io);!function(t){t[t.ConcatArray=0]="ConcatArray",t[t.SubscribeObservable=1]="SubscribeObservable",t[t.Bind=2]="Bind"}(Do||(Do={}));var Bo,Ho=function(t){function e(e,n,r,i,o){var s=t.call(this,i,o)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.builtin===t.builtin&&Oo(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Io),Uo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.fn=e,o.args=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&Oo(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Io),qo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.classExpr=e,o.args=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&Oo(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Io),Ko=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value===t.value},e.prototype.isConstant=function(){return!0},e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Io),zo=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,i)||this;return o.value=e,o.typeParams=r,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName&&this.value.runtime===t.value.runtime},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Io),Wo=function(t){function e(e,n,r,i,o){void 0===r&&(r=null);var s=t.call(this,i||n.type,o)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&ko(this.falseCase,t.falseCase)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Io),Qo=function(t){function e(e,n){var r=t.call(this,No,n)||this;return r.condition=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Io),Go=function(t){function e(e,n){var r=t.call(this,e.type,n)||this;return r.condition=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitAssertNotNullExpr(this,e)},e}(Io),Xo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Io),$o=function(t){function e(e,n,r,i,o){var s=t.call(this,r,i)||this;return s.params=e,s.statements=n,s.name=o,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.params,t.params)&&Oo(this.statements,t.statements)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new as(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Io),Yo=function(t){function e(e,n,r,i,o,s){void 0===s&&(s=!0);var a=t.call(this,i||n.type,o)||this;return a.operator=e,a.rhs=r,a.parens=s,a.lhs=n,a}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Io),Zo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.name=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new Vo(this.receiver,this.name,t,null,this.sourceSpan)},e}(Io),Jo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.index=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Fo(this.receiver,this.index,t,null,this.sourceSpan)},e}(Io),ts=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i}return o(e,t),e.prototype.isConstant=function(){return this.entries.every(function(t){return t.isConstant()})},e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.entries,t.entries)},e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Io),es=function(){function t(t,e,n){this.key=t,this.value=e,this.quoted=n}return t.prototype.isEquivalent=function(t){return this.key===t.key&&this.value.isEquivalent(t.value)},t}(),ns=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i.valueType=null,n&&(i.valueType=n.valueType),i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.entries,t.entries)},e.prototype.isConstant=function(){return this.entries.every(function(t){return t.value.isConstant()})},e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Io),rs=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.parts,t.parts)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Io),is=(new Ro(Mo.This,null,null),new Ro(Mo.Super,null,null),new Ro(Mo.CatchError,null,null),new Ro(Mo.CatchStack,null,null),new Ko(null,null,null),new Ko(null,Ao,null));!function(t){t[t.Final=0]="Final",t[t.Private=1]="Private",t[t.Exported=2]="Exported",t[t.Static=3]="Static"}(Bo||(Bo={}));var os=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),ss=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i,o)||this;return s.name=e,s.value=n,s.type=r||n&&n.type||null,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)},e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(os),as=function(t){function e(e,n,r,i,o,s){void 0===o&&(o=null);var a=t.call(this,o,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=i||null,a}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.params,t.params)&&Oo(this.statements,t.statements)},e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(os),us=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.expr.isEquivalent(t.expr)},e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(os),cs=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(os),ls=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),ps=(function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.name=e,o.initializer=i,o}o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name}}(ls),function(t){function e(e,n,r,i,o){void 0===o&&(o=null);var s=t.call(this,i,o)||this;return s.name=e,s.params=n,s.body=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&Oo(this.body,t.body)},e}(ls)),hs=function(t){function e(e,n,r,i){void 0===i&&(i=null);var o=t.call(this,r,i)||this;return o.name=e,o.body=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&Oo(this.body,t.body)},e}(ls),fs=function(t){function e(e,n,r,i,o,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=i,c.constructorMethod=o,c.methods=s,c}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&ko(this.parent,t.parent)&&Oo(this.fields,t.fields)&&Oo(this.getters,t.getters)&&this.constructorMethod.isEquivalent(t.constructorMethod)&&Oo(this.methods,t.methods)},e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(os),ds=function(t){function e(e,n,r,i){void 0===r&&(r=[]);var o=t.call(this,null,i)||this;return o.condition=e,o.trueCase=n,o.falseCase=r,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&Oo(this.trueCase,t.trueCase)&&Oo(this.falseCase,t.falseCase)},e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(os),vs=(function(t){function e(e,n,r){void 0===n&&(n=!1);var i=t.call(this,null,r)||this;return i.comment=e,i.multiline=n,i}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e},e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)}}(os),function(t){function e(e,n){void 0===e&&(e=[]);var r=t.call(this,null,n)||this;return r.tags=e,r}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.toString()===t.toString()},e.prototype.visitStatement=function(t,e){return t.visitJSDocCommentStmt(this,e)},e.prototype.toString=function(){return function t(e){var n,r;if(0===e.length)return"";var i="*\n";try{for(var o=p(e),s=o.next();!s.done;s=o.next())i+=" *",i+=Es(s.value).replace(/\n/g,"\n * "),i+="\n"}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i+" "}
197
197
  /**
198
198
  * @license
199
199
  * Copyright Google Inc. All Rights Reserved.
@@ -214,21 +214,21 @@ var w,x,E=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=
214
214
  *
215
215
  * Use of this source code is governed by an MIT-style license that can be
216
216
  * found in the LICENSE file at https://angular.io/license
217
- */(this.tags)}}(os),function(t){function e(e,n,r){var i=t.call(this,null,r)||this;return i.bodyStmts=e,i.catchStmts=n,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.bodyStmts,t.bodyStmts)&&Oo(this.catchStmts,t.catchStmts)},e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(os)),ys=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof vs&&this.error.isEquivalent(t.error)},e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(os),ms=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWrappedNodeExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitTypeofExpr=function(t,e){return this.transformExpr(new jo(t.expr.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Lo(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new Fo(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new Vo(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new Ho(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new Uo(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new qo(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new Wo(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Qo(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitAssertNotNullExpr=function(t,e){return this.transformExpr(new Go(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Xo(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new $o(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Yo(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Zo(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Jo(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new ts(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new es(t.key,t.value.visitExpression(n,e),t.quoted)}),i=new Po(t.valueType,null);return this.transformExpr(new ns(r,i,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new rs(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){var n=t.value&&t.value.visitExpression(this,e);return this.transformStmt(new ss(t.name,n,t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new as(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new us(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new cs(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),i=t.getters.map(function(t){return new hs(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),o=t.constructorMethod&&new ps(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new ps(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new fs(t.name,r,t.fields,i,o,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new ds(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new vs(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new ys(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitJSDocCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),gs=function(){function t(){}return t.prototype.visitType=function(t,e){return t},t.prototype.visitExpression=function(t,e){return t.type&&t.type.visitType(this,e),t},t.prototype.visitBuiltinType=function(t,e){return this.visitType(t,e)},t.prototype.visitExpressionType=function(t,e){var n=this;return t.value.visitExpression(this,e),null!==t.typeParams&&t.typeParams.forEach(function(t){return n.visitType(t,e)}),this.visitType(t,e)},t.prototype.visitArrayType=function(t,e){return this.visitType(t,e)},t.prototype.visitMapType=function(t,e){return this.visitType(t,e)},t.prototype.visitWrappedNodeExpr=function(t,e){return t},t.prototype.visitTypeofExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitReadVarExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitLiteralExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitExternalExpr=function(t,e){var n=this;return t.typeParams&&t.typeParams.forEach(function(t){return t.visitType(n,e)}),this.visitExpression(t,e)},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),this.visitExpression(t,e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),this.visitExpression(t,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),this.visitExpression(t,e)},t.prototype.visitCommaExpr=function(t,e){return this.visitAllExpressions(t.parts,e),this.visitExpression(t,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value&&t.value.visitExpression(this,e),t.type&&t.type.visitType(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t.type&&t.type.visitType(this,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitJSDocCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}();function _s(t,e,n){return new Do(t,e,n)}function bs(t,e,n){return void 0===e&&(e=null),new zo(t,null,e,n)}function ws(t,e,n){return new ts(t,e,n)}function xs(t,e,n){return new Ko(t,e,n)}function Es(t){var e="";if(t.tagName&&(e+=" @"+t.tagName),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+t.text.replace(/@/g,"\\@")}return e}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.varNames=new Set,e}o(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null}})(gs),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.externalReferences=[],e}o(e,t),e.prototype.visitExternalExpr=function(e,n){return this.externalReferences.push(e.value),t.prototype.visitExternalExpr.call(this,e,n)}}(gs),function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}o(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t}}(ms);var Ss=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Cs=/\.ngfactory\.|\.ngsummary\./,Ts=/\.ngsummary\./,Ps=/NgSummary$/;function As(t,e){void 0===e&&(e=!1);var n=ks(t,e);return n[0]+".ngfactory"+function r(t){return".tsx"===t?".ts":t}(n[1])}function Ns(t){return t.replace(Cs,".")}function ks(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}var Os,Ms=/\u0275\d+/;!function(t){t[t.OnInit=0]="OnInit",t[t.OnDestroy=1]="OnDestroy",t[t.DoCheck=2]="DoCheck",t[t.OnChanges=3]="OnChanges",t[t.AfterContentInit=4]="AfterContentInit",t[t.AfterContentChecked=5]="AfterContentChecked",t[t.AfterViewInit=6]="AfterViewInit",t[t.AfterViewChecked=7]="AfterViewChecked"}(Os||(Os={}));var Is=[Os.OnInit,Os.OnDestroy,Os.DoCheck,Os.OnChanges,Os.AfterContentInit,Os.AfterContentChecked,Os.AfterViewInit,Os.AfterViewChecked],Rs=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p){this._config=t,this._htmlParser=e,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,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(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},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(t,e){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+e+" for type "+mt(t)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(t){n=t,r.prototype=t.prototype},r.overriddenName=e,r},t.prototype.getGeneratedClass=function(t,e){return t instanceof Ut?this._staticSymbolCache.get(As(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,function e(t,n){return"View_"+Gt({reference:t})+"_"+n}(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,function e(t){return"HostView_"+Gt({reference:t})}(t))},t.prototype.getHostComponentType=function(t){var e=Gt({reference:t})+"_Host";return t instanceof Ut?this._staticSymbolCache.get(t.filePath,e):this._createProxyClass(t,e)},t.prototype.getRendererType=function(t){return t instanceof Ut?this._staticSymbolCache.get(As(t.filePath),function e(t){return"RenderType_"+Gt({reference:t})}(t)):{}},t.prototype.getComponentFactory=function(t,e,n,r){if(e instanceof Ut)return this._staticSymbolCache.get(As(e.filePath),function i(t){return Gt({reference:t})+"NgFactory"}(e));var o=this.getHostComponentViewClass(e);return this._reflector.resolveExternalReference(bo.createComponentFactory)(t,e,o,n,r,[])},t.prototype.initComponentFactory=function(t,e){var n;t instanceof Ut||(n=t.ngContentSelectors).push.apply(n,f(e))},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);this._summaryCache.set(t,(n=r?r.type:null)||null)}return n&&n.summaryKind===e?n:null},t.prototype.getHostComponentMetadata=function(t,e){var n=this.getHostComponentType(t.type.reference);e||(e=this.getHostComponentViewClass(n));var r=A.parse(t.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Jt.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new Zt({encapsulation:C.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:T.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:e,rendererType:{id:"__Host__",encapsulation:C.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(t,e,n){var r=this;if(this._directiveCache.has(e))return null;e=gt(e);var i=this.getNonNormalizedDirectiveMetadata(e),o=i.metadata,s=function(t){var n=new Jt({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:t});return t&&r.initComponentFactory(o.componentFactory,t.ngContentSelectors),r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),null};if(o.isComponent){var a=o.template,u=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,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 _t(u)&&n?(this._reportError(function c(t){var e=Error("Can't compile synchronously as "+mt(t)+" is still being loaded!");return e.ngComponentType=t,e}
217
+ */(this.tags)}}(os),function(t){function e(e,n,r){var i=t.call(this,null,r)||this;return i.bodyStmts=e,i.catchStmts=n,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.bodyStmts,t.bodyStmts)&&Oo(this.catchStmts,t.catchStmts)},e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(os)),ys=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof vs&&this.error.isEquivalent(t.error)},e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(os),ms=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWrappedNodeExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitTypeofExpr=function(t,e){return this.transformExpr(new jo(t.expr.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Lo(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new Fo(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new Vo(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new Ho(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new Uo(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new qo(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new Wo(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Qo(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitAssertNotNullExpr=function(t,e){return this.transformExpr(new Go(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Xo(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new $o(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Yo(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Zo(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Jo(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new ts(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new es(t.key,t.value.visitExpression(n,e),t.quoted)}),i=new Po(t.valueType,null);return this.transformExpr(new ns(r,i,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new rs(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){var n=t.value&&t.value.visitExpression(this,e);return this.transformStmt(new ss(t.name,n,t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new as(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new us(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new cs(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),i=t.getters.map(function(t){return new hs(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),o=t.constructorMethod&&new ps(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new ps(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new fs(t.name,r,t.fields,i,o,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new ds(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new vs(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new ys(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitJSDocCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),gs=function(){function t(){}return t.prototype.visitType=function(t,e){return t},t.prototype.visitExpression=function(t,e){return t.type&&t.type.visitType(this,e),t},t.prototype.visitBuiltinType=function(t,e){return this.visitType(t,e)},t.prototype.visitExpressionType=function(t,e){var n=this;return t.value.visitExpression(this,e),null!==t.typeParams&&t.typeParams.forEach(function(t){return n.visitType(t,e)}),this.visitType(t,e)},t.prototype.visitArrayType=function(t,e){return this.visitType(t,e)},t.prototype.visitMapType=function(t,e){return this.visitType(t,e)},t.prototype.visitWrappedNodeExpr=function(t,e){return t},t.prototype.visitTypeofExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitReadVarExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitLiteralExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitExternalExpr=function(t,e){var n=this;return t.typeParams&&t.typeParams.forEach(function(t){return t.visitType(n,e)}),this.visitExpression(t,e)},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),this.visitExpression(t,e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),this.visitExpression(t,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),this.visitExpression(t,e)},t.prototype.visitCommaExpr=function(t,e){return this.visitAllExpressions(t.parts,e),this.visitExpression(t,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value&&t.value.visitExpression(this,e),t.type&&t.type.visitType(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t.type&&t.type.visitType(this,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitJSDocCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}();function _s(t,e,n){return new Ro(t,e,n)}function bs(t,e,n){return void 0===e&&(e=null),new zo(t,null,e,n)}function ws(t,e,n){return new ts(t,e,n)}function xs(t,e,n){return new Ko(t,e,n)}function Es(t){var e="";if(t.tagName&&(e+=" @"+t.tagName),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+t.text.replace(/@/g,"\\@")}return e}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.varNames=new Set,e}o(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null}})(gs),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.externalReferences=[],e}o(e,t),e.prototype.visitExternalExpr=function(e,n){return this.externalReferences.push(e.value),t.prototype.visitExternalExpr.call(this,e,n)}}(gs),function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}o(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t}}(ms);var Ss=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Cs=/\.ngfactory\.|\.ngsummary\./,Ts=/\.ngsummary\./,Ps=/NgSummary$/;function As(t,e){void 0===e&&(e=!1);var n=ks(t,e);return n[0]+".ngfactory"+function r(t){return".tsx"===t?".ts":t}(n[1])}function Ns(t){return t.replace(Cs,".")}function ks(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}var Os,Ms=/\u0275\d+/;!function(t){t[t.OnInit=0]="OnInit",t[t.OnDestroy=1]="OnDestroy",t[t.DoCheck=2]="DoCheck",t[t.OnChanges=3]="OnChanges",t[t.AfterContentInit=4]="AfterContentInit",t[t.AfterContentChecked=5]="AfterContentChecked",t[t.AfterViewInit=6]="AfterViewInit",t[t.AfterViewChecked=7]="AfterViewChecked"}(Os||(Os={}));var Is=[Os.OnInit,Os.OnDestroy,Os.DoCheck,Os.OnChanges,Os.AfterContentInit,Os.AfterContentChecked,Os.AfterViewInit,Os.AfterViewChecked],Ds=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p){this._config=t,this._htmlParser=e,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,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(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},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(t,e){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+e+" for type "+mt(t)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(t){n=t,r.prototype=t.prototype},r.overriddenName=e,r},t.prototype.getGeneratedClass=function(t,e){return t instanceof Ut?this._staticSymbolCache.get(As(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,function e(t,n){return"View_"+Gt({reference:t})+"_"+n}(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,function e(t){return"HostView_"+Gt({reference:t})}(t))},t.prototype.getHostComponentType=function(t){var e=Gt({reference:t})+"_Host";return t instanceof Ut?this._staticSymbolCache.get(t.filePath,e):this._createProxyClass(t,e)},t.prototype.getRendererType=function(t){return t instanceof Ut?this._staticSymbolCache.get(As(t.filePath),function e(t){return"RenderType_"+Gt({reference:t})}(t)):{}},t.prototype.getComponentFactory=function(t,e,n,r){if(e instanceof Ut)return this._staticSymbolCache.get(As(e.filePath),function i(t){return Gt({reference:t})+"NgFactory"}(e));var o=this.getHostComponentViewClass(e);return this._reflector.resolveExternalReference(bo.createComponentFactory)(t,e,o,n,r,[])},t.prototype.initComponentFactory=function(t,e){var n;t instanceof Ut||(n=t.ngContentSelectors).push.apply(n,f(e))},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);this._summaryCache.set(t,(n=r?r.type:null)||null)}return n&&n.summaryKind===e?n:null},t.prototype.getHostComponentMetadata=function(t,e){var n=this.getHostComponentType(t.type.reference);e||(e=this.getHostComponentViewClass(n));var r=A.parse(t.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Jt.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new Zt({encapsulation:C.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:T.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:e,rendererType:{id:"__Host__",encapsulation:C.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(t,e,n){var r=this;if(this._directiveCache.has(e))return null;e=gt(e);var i=this.getNonNormalizedDirectiveMetadata(e),o=i.metadata,s=function(t){var n=new Jt({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:t});return t&&r.initComponentFactory(o.componentFactory,t.ngContentSelectors),r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),null};if(o.isComponent){var a=o.template,u=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,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 _t(u)&&n?(this._reportError(function c(t){var e=Error("Can't compile synchronously as "+mt(t)+" is still being loaded!");return e.ngComponentType=t,e}
218
218
  /**
219
219
  * @license
220
220
  * Copyright Google Inc. All Rights Reserved.
221
221
  *
222
222
  * Use of this source code is governed by an MIT-style license that can be
223
223
  * found in the LICENSE file at https://angular.io/license
224
- */(e),e),null):ct(u,s)}return s(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=gt(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var r=this._directiveResolver.resolve(t,!1);if(!r)return null;var i=void 0;if(U.isTypeOf(r)){ve("styles",(s=r).styles),ve("styleUrls",s.styleUrls),me("interpolation",s.interpolation);var o=s.animations;i=new Zt({encapsulation:at(s.encapsulation),template:at(s.template),templateUrl:at(s.templateUrl),htmlAst:null,styles:s.styles||[],styleUrls:s.styleUrls||[],animations:o||[],interpolation:at(s.interpolation),isInline:!!s.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:at(r.preserveWhitespaces)})}var s,a=null,u=[],c=[],l=r.selector;U.isTypeOf(r)?(a=(s=r).changeDetection,s.viewProviders&&(u=this._getProvidersMetadata(s.viewProviders,c,'viewProviders for "'+Fs(t)+'"',[],t)),s.entryComponents&&(c=Ds(s.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(pt("Directive "+Fs(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,c,'providers for "'+Fs(t)+'"',[],t));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,t),f=this._getQueriesMetadata(r.queries,!0,t));var d=Jt.create({isHost:!1,selector:l,exportAs:at(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:p||[],viewProviders:u||[],queries:h||[],guards:r.guards||{},viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),this._nonNormalizedDirectiveCache.set(t,n={metadata:d,annotation:r}),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(pt("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Fs(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Wt.Directive);return e||this._reportError(pt("Illegal state: Could not load the summary for directive "+Fs(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,Wt.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,Wt.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,Wt.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Wt.NgModule);if(!n){var r=this.getNgModuleMetadata(t,!1,e);(n=r?r.toSummary():null)&&this._summaryCache.set(t,n)}return n},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getShallowModuleMetadata=function(t){var e=this._shallowModuleCache.get(t);if(e)return e;var n=Ue(this._reflector.shallowAnnotations(t),G.isTypeOf);return e={type:this._getTypeMetadata(t),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(t,e),e},t.prototype.getNgModuleMetadata=function(t,e,n){var r=this;void 0===e&&(e=!0),void 0===n&&(n=null),t=gt(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,e);if(!o)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],d=[],v=[];o.imports&&Ds(o.imports).forEach(function(e){var i=void 0;if(js(e)?i=e:e&&e.ngModule&&(i=e.ngModule,e.providers&&p.push.apply(p,f(r._getProvidersMetadata(e.providers,h,"provider for the NgModule '"+Fs(i)+"'",[],e)))),i){if(!r._checkSelfImport(t,i))if(n||(n=new Set),n.has(i))r._reportError(pt(r._getTypeDescriptor(i)+" '"+Fs(e)+"' is imported recursively by the module '"+Fs(t)+"'."),t);else{n.add(i);var o=r.getNgModuleSummary(i,n);n.delete(i),o?c.push(o):r._reportError(pt("Unexpected "+r._getTypeDescriptor(e)+" '"+Fs(e)+"' imported by the module '"+Fs(t)+"'. Please add a @NgModule annotation."),t)}}else r._reportError(pt("Unexpected value '"+Fs(e)+"' imported by the module '"+Fs(t)+"'"),t)}),o.exports&&Ds(o.exports).forEach(function(e){if(js(e))if(n||(n=new Set),n.has(e))r._reportError(pt(r._getTypeDescriptor(e)+" '"+mt(e)+"' is exported recursively by the module '"+Fs(t)+"'"),t);else{n.add(e);var i=r.getNgModuleSummary(e,n);n.delete(e),i?l.push(i):a.push(r._getIdentifierMetadata(e))}else r._reportError(pt("Unexpected value '"+Fs(e)+"' exported by the module '"+Fs(t)+"'"),t)});var y=this._getTransitiveNgModuleMetadata(c,l);o.declarations&&Ds(o.declarations).forEach(function(e){if(js(e)){var n=r._getIdentifierMetadata(e);if(r.isDirective(e))y.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r.isPipe(e))return void r._reportError(pt("Unexpected "+r._getTypeDescriptor(e)+" '"+Fs(e)+"' declared by the module '"+Fs(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);y.addPipe(n),y.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}}else r._reportError(pt("Unexpected value '"+Fs(e)+"' declared by the module '"+Fs(t)+"'"),t)});var m=[],g=[];return a.forEach(function(e){if(y.directivesSet.has(e.reference))m.push(e),y.addExportedDirective(e);else{if(!y.pipesSet.has(e.reference))return void r._reportError(pt("Can't export "+r._getTypeDescriptor(e.reference)+" "+Fs(e.reference)+" from "+Fs(t)+" as it was neither declared nor imported!"),t);g.push(e),y.addExportedPipe(e)}}),o.providers&&p.push.apply(p,f(this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Fs(t)+"'",[],t))),o.entryComponents&&h.push.apply(h,f(Ds(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)}))),o.bootstrap&&Ds(o.bootstrap).forEach(function(e){js(e)?d.push(r._getIdentifierMetadata(e)):r._reportError(pt("Unexpected value '"+Fs(e)+"' used in the bootstrap property of module '"+Fs(t)+"'"),t)}),h.push.apply(h,f(d.map(function(t){return r._getEntryComponentMetadata(t.reference)}))),o.schemas&&v.push.apply(v,f(Ds(o.schemas))),i=new ee({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:d,schemas:v,declaredDirectives:s,exportedDirectives:m,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:y,id:o.id||null}),h.forEach(function(t){return y.addEntryComponent(t)}),p.forEach(function(t){return y.addProvider(t,i.type)}),y.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(pt("'"+Fs(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){if(js(t)){if(this.isDirective(t))return"directive";if(this.isPipe(t))return"pipe";if(this.isNgModule(t))return"module"}return t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(pt("Type "+Fs(t)+" is part of the declarations of 2 modules: "+Fs(n)+" and "+Fs(e)+"! Please consider moving "+Fs(t)+" to a higher module that imports "+Fs(n)+" and "+Fs(e)+". You can also create a new NgModule that exports and includes "+Fs(t)+" then import that NgModule in "+Fs(n)+" and "+Fs(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new ne,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=$t(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;!e.has(i)&&o.has(s)||(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return{reference:t=gt(t)}},t.prototype.isInjectable=function(t){return this._reflector.tryAnnotations(t).some(function(t){return X.isTypeOf(t)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Wt.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype.getInjectableMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._loadSummary(t,Wt.Injectable),i=r?r.type:this._getTypeMetadata(t,e,n),o=this._reflector.annotations(t).filter(function(t){return X.isTypeOf(t)});if(0===o.length)return null;var s=o[o.length-1];return{symbol:t,type:i,providedIn:s.providedIn,useValue:s.useValue,useClass:s.useClass,useExisting:s.useExisting,useFactory:s.useFactory,deps:s.deps}},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e,n),lifecycleHooks:function i(t,e){return Is.filter(function(n){return function r(t,e,n){return t.hasLifecycleHook(n,function r(t){switch(t){case Os.OnInit:return"ngOnInit";case Os.OnDestroy:return"ngOnDestroy";case Os.DoCheck:return"ngDoCheck";case Os.OnChanges:return"ngOnChanges";case Os.AfterContentInit:return"ngAfterContentInit";case Os.AfterContentChecked:return"ngAfterContentChecked";case Os.AfterViewInit:return"ngAfterViewInit";case Os.AfterViewChecked:return"ngAfterViewChecked";default:throw new Error("unexpected "+t)}}
224
+ */(e),e),null):ct(u,s)}return s(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=gt(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var r=this._directiveResolver.resolve(t,!1);if(!r)return null;var i=void 0;if(U.isTypeOf(r)){ve("styles",(s=r).styles),ve("styleUrls",s.styleUrls),me("interpolation",s.interpolation);var o=s.animations;i=new Zt({encapsulation:at(s.encapsulation),template:at(s.template),templateUrl:at(s.templateUrl),htmlAst:null,styles:s.styles||[],styleUrls:s.styleUrls||[],animations:o||[],interpolation:at(s.interpolation),isInline:!!s.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:at(r.preserveWhitespaces)})}var s,a=null,u=[],c=[],l=r.selector;U.isTypeOf(r)?(a=(s=r).changeDetection,s.viewProviders&&(u=this._getProvidersMetadata(s.viewProviders,c,'viewProviders for "'+Fs(t)+'"',[],t)),s.entryComponents&&(c=Rs(s.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(pt("Directive "+Fs(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,c,'providers for "'+Fs(t)+'"',[],t));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,t),f=this._getQueriesMetadata(r.queries,!0,t));var d=Jt.create({isHost:!1,selector:l,exportAs:at(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:p||[],viewProviders:u||[],queries:h||[],guards:r.guards||{},viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),this._nonNormalizedDirectiveCache.set(t,n={metadata:d,annotation:r}),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(pt("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Fs(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Wt.Directive);return e||this._reportError(pt("Illegal state: Could not load the summary for directive "+Fs(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,Wt.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,Wt.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,Wt.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Wt.NgModule);if(!n){var r=this.getNgModuleMetadata(t,!1,e);(n=r?r.toSummary():null)&&this._summaryCache.set(t,n)}return n},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getShallowModuleMetadata=function(t){var e=this._shallowModuleCache.get(t);if(e)return e;var n=Ue(this._reflector.shallowAnnotations(t),G.isTypeOf);return e={type:this._getTypeMetadata(t),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(t,e),e},t.prototype.getNgModuleMetadata=function(t,e,n){var r=this;void 0===e&&(e=!0),void 0===n&&(n=null),t=gt(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,e);if(!o)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],d=[],v=[];o.imports&&Rs(o.imports).forEach(function(e){var i=void 0;if(js(e)?i=e:e&&e.ngModule&&(i=e.ngModule,e.providers&&p.push.apply(p,f(r._getProvidersMetadata(e.providers,h,"provider for the NgModule '"+Fs(i)+"'",[],e)))),i){if(!r._checkSelfImport(t,i))if(n||(n=new Set),n.has(i))r._reportError(pt(r._getTypeDescriptor(i)+" '"+Fs(e)+"' is imported recursively by the module '"+Fs(t)+"'."),t);else{n.add(i);var o=r.getNgModuleSummary(i,n);n.delete(i),o?c.push(o):r._reportError(pt("Unexpected "+r._getTypeDescriptor(e)+" '"+Fs(e)+"' imported by the module '"+Fs(t)+"'. Please add a @NgModule annotation."),t)}}else r._reportError(pt("Unexpected value '"+Fs(e)+"' imported by the module '"+Fs(t)+"'"),t)}),o.exports&&Rs(o.exports).forEach(function(e){if(js(e))if(n||(n=new Set),n.has(e))r._reportError(pt(r._getTypeDescriptor(e)+" '"+mt(e)+"' is exported recursively by the module '"+Fs(t)+"'"),t);else{n.add(e);var i=r.getNgModuleSummary(e,n);n.delete(e),i?l.push(i):a.push(r._getIdentifierMetadata(e))}else r._reportError(pt("Unexpected value '"+Fs(e)+"' exported by the module '"+Fs(t)+"'"),t)});var y=this._getTransitiveNgModuleMetadata(c,l);o.declarations&&Rs(o.declarations).forEach(function(e){if(js(e)){var n=r._getIdentifierMetadata(e);if(r.isDirective(e))y.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r.isPipe(e))return void r._reportError(pt("Unexpected "+r._getTypeDescriptor(e)+" '"+Fs(e)+"' declared by the module '"+Fs(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);y.addPipe(n),y.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}}else r._reportError(pt("Unexpected value '"+Fs(e)+"' declared by the module '"+Fs(t)+"'"),t)});var m=[],g=[];return a.forEach(function(e){if(y.directivesSet.has(e.reference))m.push(e),y.addExportedDirective(e);else{if(!y.pipesSet.has(e.reference))return void r._reportError(pt("Can't export "+r._getTypeDescriptor(e.reference)+" "+Fs(e.reference)+" from "+Fs(t)+" as it was neither declared nor imported!"),t);g.push(e),y.addExportedPipe(e)}}),o.providers&&p.push.apply(p,f(this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Fs(t)+"'",[],t))),o.entryComponents&&h.push.apply(h,f(Rs(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)}))),o.bootstrap&&Rs(o.bootstrap).forEach(function(e){js(e)?d.push(r._getIdentifierMetadata(e)):r._reportError(pt("Unexpected value '"+Fs(e)+"' used in the bootstrap property of module '"+Fs(t)+"'"),t)}),h.push.apply(h,f(d.map(function(t){return r._getEntryComponentMetadata(t.reference)}))),o.schemas&&v.push.apply(v,f(Rs(o.schemas))),i=new ee({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:d,schemas:v,declaredDirectives:s,exportedDirectives:m,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:y,id:o.id||null}),h.forEach(function(t){return y.addEntryComponent(t)}),p.forEach(function(t){return y.addProvider(t,i.type)}),y.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(pt("'"+Fs(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){if(js(t)){if(this.isDirective(t))return"directive";if(this.isPipe(t))return"pipe";if(this.isNgModule(t))return"module"}return t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(pt("Type "+Fs(t)+" is part of the declarations of 2 modules: "+Fs(n)+" and "+Fs(e)+"! Please consider moving "+Fs(t)+" to a higher module that imports "+Fs(n)+" and "+Fs(e)+". You can also create a new NgModule that exports and includes "+Fs(t)+" then import that NgModule in "+Fs(n)+" and "+Fs(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new ne,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=$t(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;!e.has(i)&&o.has(s)||(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return{reference:t=gt(t)}},t.prototype.isInjectable=function(t){return this._reflector.tryAnnotations(t).some(function(t){return X.isTypeOf(t)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Wt.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype.getInjectableMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._loadSummary(t,Wt.Injectable),i=r?r.type:this._getTypeMetadata(t,e,n),o=this._reflector.annotations(t).filter(function(t){return X.isTypeOf(t)});if(0===o.length)return null;var s=o[o.length-1];return{symbol:t,type:i,providedIn:s.providedIn,useValue:s.useValue,useClass:s.useClass,useExisting:s.useExisting,useFactory:s.useFactory,deps:s.deps}},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e,n),lifecycleHooks:function i(t,e){return Is.filter(function(n){return function r(t,e,n){return t.hasLifecycleHook(n,function r(t){switch(t){case Os.OnInit:return"ngOnInit";case Os.OnDestroy:return"ngOnDestroy";case Os.DoCheck:return"ngDoCheck";case Os.OnChanges:return"ngOnChanges";case Os.AfterContentInit:return"ngAfterContentInit";case Os.AfterContentChecked:return"ngAfterContentChecked";case Os.AfterViewInit:return"ngAfterViewInit";case Os.AfterViewChecked:return"ngAfterViewChecked";default:throw new Error("unexpected "+t)}}
225
225
  /**
226
226
  * @license
227
227
  * Copyright Google Inc. All Rights Reserved.
228
228
  *
229
229
  * Use of this source code is governed by an MIT-style license that can be
230
230
  * found in the LICENSE file at https://angular.io/license
231
- */(e))}(t,n,e)})}(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),{reference:t=gt(t),diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(pt("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Fs(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Wt.Pipe);return e||this._reportError(pt("Illegal state: Could not load the summary for pipe "+Fs(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=gt(t);var e=this._pipeResolver.resolve(t),n=new te({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=!1,o=(e||this._reflector.parameters(t)||[]).map(function(t){var e=!1,n=!1,o=!1,s=!1,a=!1,u=null;return Array.isArray(t)?t.forEach(function(t){J.isTypeOf(t)?n=!0:Y.isTypeOf(t)?o=!0:Z.isTypeOf(t)?s=!0:$.isTypeOf(t)?a=!0:R.isTypeOf(t)?(e=!0,u=t.attributeName):M.isTypeOf(t)?u=t.token:I.isTypeOf(t)||t instanceof Ut?u=t:js(t)&&null==u&&(u=t)}):u=t,null==u?(i=!0,null):{isAttribute:e,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var s=o.map(function(t){return t?Fs(t.token):"?"}).join(", "),a="Can't resolve all parameters for "+Fs(t)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(pt(a),t):this._console.warn("Warning: "+a+" This will become an error in Angular v6.x")}return o},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=gt(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,n,r,i){var o=this;return void 0===r&&(r=[]),t.forEach(function(s,a){if(Array.isArray(s))o._getProvidersMetadata(s,e,n,r);else{var u=void 0;if((s=gt(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),u=new ie(s.provide,s);else{if(!js(s)){if(void 0===s)return void o._reportError(pt("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));var c=t.reduce(function(t,e,n){return n<a?t.push(""+Fs(e)):n==a?t.push("?"+Fs(e)+"?"):n==a+1&&t.push("..."),t},[]).join(", ");return void o._reportError(pt("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+c+"]"),i)}u=new ie(s,{useClass:s})}u.token===o._reflector.resolveExternalReference(bo.ANALYZE_FOR_ENTRY_COMPONENTS)?e.push.apply(e,f(o._getEntryComponentsFromProvider(u,i))):r.push(o.getProviderMetadata(u))}}),r},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(pt("Invalid provider for "+Fs(t.provide)+". useClass cannot be "+t.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(t,e){var n=this,r=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(pt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(function o(t,e){ot(t,new Ls,e)}(t.useValue,i),i.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(pt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Wt.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw pt(t.name+" cannot be used as an entry component.");return null},t.prototype._getInjectableTypeMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Wt.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(e=(n=this._getInjectableTypeMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(e=(r=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:i,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(pt("Can't construct a query for the property \""+e+'" of "'+Fs(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();function Ds(t){return function e(t){return t?Array.from(new Set(t)):[]}(function t(e,n){if(void 0===n&&(n=[]),e)for(var r=0;r<e.length;r++){var i=gt(e[r]);Array.isArray(i)?t(i,n):n.push(i)}return n}(t))}function js(t){return t instanceof Ut||t instanceof tt}var Ls=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(ut);function Fs(t){return t instanceof Ut?t.name+" in "+t.filePath:mt(t)}var Vs=function(t){function e(e,n){return t.call(this,n,e)||this}return o(e,t),e}(Nr),Bs=function Bs(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=function r(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return qs(n,{meta:t,queryId:e++})}),n}(e),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get($t(t.token))&&n.viewProviders.set($t(t.token),!0)})},Hs=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=function p(t,e,n){var r=new Map;return t.forEach(function(t){Us([{token:{identifier:t.type},useClass:t.type}],t.isComponent?xt.Component:xt.Directive,!0,e,n,r,!1)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){Us(t.providers,xt.PublicService,!1,e,n,r,!1),Us(t.viewProviders,xt.PrivateService,!1,e,n,r,!1)}),r}(l,u,t.errors),this._contentQueries=function h(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return qs(r,{meta:t,queryId:n++})})}),r}(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var f=xo(this.viewContext.reflector,bo.TemplateRef);this._addQueryReadsTo(f,f,this._queriedTokens)}o.forEach(function(t){var e=t.value||xo(c.viewContext.reflector,bo.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(bo.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get($t(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,f(e))}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,i=$t(r),o=n.get(i);o||n.set(i,o=[]),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)(e=r._contentQueries.get($t(t)))&&n.push.apply(n,f(e.filter(function(t){return t.meta.descendants||i<=1}))),r._directiveAsts.length>0&&i++,r=r._parent;return(e=this.viewContext.viewQueries.get($t(t)))&&n.push.apply(n,f(e)),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get($t(e));if(!i||(t===xt.Directive||t===xt.PublicService)&&i.providerType===xt.PrivateService||(t===xt.PrivateService||t===xt.PublicService)&&i.providerType===xt.Builtin)return null;var o=this._transformedProviders.get($t(e));if(o)return o;if(null!=this._seenProviders.get($t(e)))return this.viewContext.errors.push(new Vs("Cannot instantiate cyclic dependency! "+Xt(e),this._sourceSpan)),null;this._seenProviders.set($t(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else t.useFactory?s=(t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)}):t.useClass&&(s=(t.deps||t.useClass.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)}));return function u(t,e){return{token:t.token,useClass:t.useClass,useExisting:e.useExisting,useFactory:t.useFactory,useValue:e.useValue,deps:e.deps,multi:t.multi}}(t,{useExisting:o,useValue:e,deps:s})});return o=function a(t,e){return new Dt(t.token,t.multiProvider,t.eager||e.eager,e.providers,t.providerType,t.lifecycleHooks,t.sourceSpan,t.isModule)}(i,{eager:n,providers:s}),this._transformedProviders.set($t(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===xt.Directive||t===xt.Component){if($t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.Renderer)||$t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.ElementRef)||$t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.ChangeDetectorRef)||$t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.TemplateRef))return e;$t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if($t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(xt.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===$t(e.token)||null!=this.viewContext.viewProviders.get($t(e.token))?e:e.isOptional?{isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Vs("No provider for "+Xt(e.token),this._sourceSpan)),o},t}();function Us(t,e,n,r,i,o,s){t.forEach(function(t){var a=o.get($t(t.token));null!=a&&!!a.multiProvider!=!!t.multi&&i.push(new Vs("Mixing multi and non multi provider is not possible for token "+Xt(a.token),r)),a?(t.multi||(a.providers.length=0),a.providers.push(t)):(a=new Dt(t.token,!!t.multi,n||!(t.useClass||t.useExisting||t.useFactory),[t],e,t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],r,s),o.set($t(t.token),a))})}function qs(t,e){e.meta.selectors.forEach(function(n){var r=t.get($t(n));r||(r=[],t.set($t(n),r)),r.push(e)})}
231
+ */(e))}(t,n,e)})}(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),{reference:t=gt(t),diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(pt("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Fs(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Wt.Pipe);return e||this._reportError(pt("Illegal state: Could not load the summary for pipe "+Fs(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=gt(t);var e=this._pipeResolver.resolve(t),n=new te({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=!1,o=(e||this._reflector.parameters(t)||[]).map(function(t){var e=!1,n=!1,o=!1,s=!1,a=!1,u=null;return Array.isArray(t)?t.forEach(function(t){J.isTypeOf(t)?n=!0:Y.isTypeOf(t)?o=!0:Z.isTypeOf(t)?s=!0:$.isTypeOf(t)?a=!0:D.isTypeOf(t)?(e=!0,u=t.attributeName):M.isTypeOf(t)?u=t.token:I.isTypeOf(t)||t instanceof Ut?u=t:js(t)&&null==u&&(u=t)}):u=t,null==u?(i=!0,null):{isAttribute:e,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var s=o.map(function(t){return t?Fs(t.token):"?"}).join(", "),a="Can't resolve all parameters for "+Fs(t)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(pt(a),t):this._console.warn("Warning: "+a+" This will become an error in Angular v6.x")}return o},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=gt(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,n,r,i){var o=this;return void 0===r&&(r=[]),t.forEach(function(s,a){if(Array.isArray(s))o._getProvidersMetadata(s,e,n,r);else{var u=void 0;if((s=gt(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),u=new ie(s.provide,s);else{if(!js(s)){if(void 0===s)return void o._reportError(pt("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));var c=t.reduce(function(t,e,n){return n<a?t.push(""+Fs(e)):n==a?t.push("?"+Fs(e)+"?"):n==a+1&&t.push("..."),t},[]).join(", ");return void o._reportError(pt("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+c+"]"),i)}u=new ie(s,{useClass:s})}u.token===o._reflector.resolveExternalReference(bo.ANALYZE_FOR_ENTRY_COMPONENTS)?e.push.apply(e,f(o._getEntryComponentsFromProvider(u,i))):r.push(o.getProviderMetadata(u))}}),r},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(pt("Invalid provider for "+Fs(t.provide)+". useClass cannot be "+t.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(t,e){var n=this,r=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(pt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(function o(t,e){ot(t,new Ls,e)}(t.useValue,i),i.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(pt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Wt.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw pt(t.name+" cannot be used as an entry component.");return null},t.prototype._getInjectableTypeMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Wt.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(e=(n=this._getInjectableTypeMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(e=(r=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:i,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(pt("Can't construct a query for the property \""+e+'" of "'+Fs(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();function Rs(t){return function e(t){return t?Array.from(new Set(t)):[]}(function t(e,n){if(void 0===n&&(n=[]),e)for(var r=0;r<e.length;r++){var i=gt(e[r]);Array.isArray(i)?t(i,n):n.push(i)}return n}(t))}function js(t){return t instanceof Ut||t instanceof tt}var Ls=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(ut);function Fs(t){return t instanceof Ut?t.name+" in "+t.filePath:mt(t)}var Vs=function(t){function e(e,n){return t.call(this,n,e)||this}return o(e,t),e}(Nr),Bs=function Bs(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=function r(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return qs(n,{meta:t,queryId:e++})}),n}(e),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get($t(t.token))&&n.viewProviders.set($t(t.token),!0)})},Hs=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=function p(t,e,n){var r=new Map;return t.forEach(function(t){Us([{token:{identifier:t.type},useClass:t.type}],t.isComponent?xt.Component:xt.Directive,!0,e,n,r,!1)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){Us(t.providers,xt.PublicService,!1,e,n,r,!1),Us(t.viewProviders,xt.PrivateService,!1,e,n,r,!1)}),r}(l,u,t.errors),this._contentQueries=function h(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return qs(r,{meta:t,queryId:n++})})}),r}(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var f=xo(this.viewContext.reflector,bo.TemplateRef);this._addQueryReadsTo(f,f,this._queriedTokens)}o.forEach(function(t){var e=t.value||xo(c.viewContext.reflector,bo.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(bo.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get($t(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,f(e))}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,i=$t(r),o=n.get(i);o||n.set(i,o=[]),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)(e=r._contentQueries.get($t(t)))&&n.push.apply(n,f(e.filter(function(t){return t.meta.descendants||i<=1}))),r._directiveAsts.length>0&&i++,r=r._parent;return(e=this.viewContext.viewQueries.get($t(t)))&&n.push.apply(n,f(e)),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get($t(e));if(!i||(t===xt.Directive||t===xt.PublicService)&&i.providerType===xt.PrivateService||(t===xt.PrivateService||t===xt.PublicService)&&i.providerType===xt.Builtin)return null;var o=this._transformedProviders.get($t(e));if(o)return o;if(null!=this._seenProviders.get($t(e)))return this.viewContext.errors.push(new Vs("Cannot instantiate cyclic dependency! "+Xt(e),this._sourceSpan)),null;this._seenProviders.set($t(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else t.useFactory?s=(t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)}):t.useClass&&(s=(t.deps||t.useClass.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)}));return function u(t,e){return{token:t.token,useClass:t.useClass,useExisting:e.useExisting,useFactory:t.useFactory,useValue:e.useValue,deps:e.deps,multi:t.multi}}(t,{useExisting:o,useValue:e,deps:s})});return o=function a(t,e){return new Rt(t.token,t.multiProvider,t.eager||e.eager,e.providers,t.providerType,t.lifecycleHooks,t.sourceSpan,t.isModule)}(i,{eager:n,providers:s}),this._transformedProviders.set($t(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===xt.Directive||t===xt.Component){if($t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.Renderer)||$t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.ElementRef)||$t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.ChangeDetectorRef)||$t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.TemplateRef))return e;$t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if($t(e.token)===this.viewContext.reflector.resolveExternalReference(bo.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(xt.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===$t(e.token)||null!=this.viewContext.viewProviders.get($t(e.token))?e:e.isOptional?{isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Vs("No provider for "+Xt(e.token),this._sourceSpan)),o},t}();function Us(t,e,n,r,i,o,s){t.forEach(function(t){var a=o.get($t(t.token));null!=a&&!!a.multiProvider!=!!t.multi&&i.push(new Vs("Mixing multi and non multi provider is not possible for token "+Xt(a.token),r)),a?(t.multi||(a.providers.length=0),a.providers.push(t)):(a=new Rt(t.token,!!t.multi,n||!(t.useClass||t.useExisting||t.useFactory),[t],e,t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],r,s),o.set($t(t.token),a))})}function qs(t,e){e.meta.selectors.forEach(function(n){var r=t.get($t(n));r||(r=[],t.set($t(n),r)),r.push(e)})}
232
232
  /**
233
233
  * @license
234
234
  * Copyright Google Inc. All Rights Reserved.
@@ -263,7 +263,7 @@ var w,x,E=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=
263
263
  *
264
264
  * Use of this source code is governed by an MIT-style license that can be
265
265
  * found in the LICENSE file at https://angular.io/license
266
- */!function(t){function e(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}o(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=Ao?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.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},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(Bo.Exported)&&t.value instanceof zo&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||this.reexports.set(i,o=[]),o.push({name:r,as:t.name}),null}}return t.hasModifier(Bo.Exported)&&e.print(t,"export "),t.hasModifier(Bo.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),t.value&&(e.print(t," = "),t.value.visitExpression(this,e)),e.println(t,";"),null},e.prototype.visitWrappedNodeExpr=function(t,e){throw new Error("Cannot visit a WrappedNodeExpr when outputting Typescript.")},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),t.hasModifier(Bo.Exported)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Bo.Private)&&e.print(null,"/*private*/ "),t.hasModifier(Bo.Static)&&e.print(null,"static "),e.print(null,t.name),this._printColonType(t.type,e),t.initializer&&(e.print(null," = "),t.initializer.visitExpression(this,e)),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Bo.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Bo.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return t.name&&(e.print(t,"function "),e.print(t,t.name)),e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),t.name||e.print(t," => "),e.println(t,"{"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return t.hasModifier(Bo.Exported)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Zs.name+") {"),e.incIndent();var n=[Js.set(Zs.prop("stack",null)).toDeclStmt(null,[Bo.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltinType=function(t,e){var n;switch(t.name){case Eo.Bool:n="boolean";break;case Eo.Dynamic:n="any";break;case Eo.Function:n="Function";break;case Eo.Number:case Eo.Int:n="number";break;case Eo.String:n="string";break;case Eo.None:n="never";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){var n=this;return t.value.visitExpression(this,e),null!==t.typeParams&&(e.print(null,"<"),this.visitAllObjects(function(t){return n.visitType(t,e)},t.typeParams,e,","),e.print(null,">")),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Ro.ConcatArray:e="concat";break;case Ro.SubscribeObservable:e="subscribe";break;case Ro.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(this.referenceFilter&&this.referenceFilter(t))n.print(null,"(null as any)");else{if(o&&(!this.importFilter||!this.importFilter(t))){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&&(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))}},e.prototype._printColonType=function(t,e,n){t!==Ao&&(e.print(null,":"),this.visitType(t,e,n))}}(ea);var ia,oa=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(gt(t));return e&&e.some(q.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(gt(t));if(n){var r=Ue(n,q.isTypeOf);if(r)return r}if(e)throw new Error("No Pipe decorator found on "+mt(t));return null},t}();
266
+ */!function(t){function e(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}o(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=Ao?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.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},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(Bo.Exported)&&t.value instanceof zo&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||this.reexports.set(i,o=[]),o.push({name:r,as:t.name}),null}}return t.hasModifier(Bo.Exported)&&e.print(t,"export "),t.hasModifier(Bo.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),t.value&&(e.print(t," = "),t.value.visitExpression(this,e)),e.println(t,";"),null},e.prototype.visitWrappedNodeExpr=function(t,e){throw new Error("Cannot visit a WrappedNodeExpr when outputting Typescript.")},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),t.hasModifier(Bo.Exported)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Bo.Private)&&e.print(null,"/*private*/ "),t.hasModifier(Bo.Static)&&e.print(null,"static "),e.print(null,t.name),this._printColonType(t.type,e),t.initializer&&(e.print(null," = "),t.initializer.visitExpression(this,e)),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Bo.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Bo.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return t.name&&(e.print(t,"function "),e.print(t,t.name)),e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),t.name||e.print(t," => "),e.println(t,"{"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return t.hasModifier(Bo.Exported)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Zs.name+") {"),e.incIndent();var n=[Js.set(Zs.prop("stack",null)).toDeclStmt(null,[Bo.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltinType=function(t,e){var n;switch(t.name){case Eo.Bool:n="boolean";break;case Eo.Dynamic:n="any";break;case Eo.Function:n="Function";break;case Eo.Number:case Eo.Int:n="number";break;case Eo.String:n="string";break;case Eo.None:n="never";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){var n=this;return t.value.visitExpression(this,e),null!==t.typeParams&&(e.print(null,"<"),this.visitAllObjects(function(t){return n.visitType(t,e)},t.typeParams,e,","),e.print(null,">")),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Do.ConcatArray:e="concat";break;case Do.SubscribeObservable:e="subscribe";break;case Do.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(this.referenceFilter&&this.referenceFilter(t))n.print(null,"(null as any)");else{if(o&&(!this.importFilter||!this.importFilter(t))){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&&(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))}},e.prototype._printColonType=function(t,e,n){t!==Ao&&(e.print(null,":"),this.visitType(t,e,n))}}(ea);var ia,oa=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(gt(t));return e&&e.some(q.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(gt(t));if(n){var r=Ue(n,q.isTypeOf);if(r)return r}if(e)throw new Error("No Pipe decorator found on "+mt(t));return null},t}();
267
267
  /**
268
268
  * @license
269
269
  * Copyright Google Inc. All Rights Reserved.
@@ -319,21 +319,21 @@ var w,x,E=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=
319
319
  *
320
320
  * Use of this source code is governed by an MIT-style license that can be
321
321
  * found in the LICENSE file at https://angular.io/license
322
- */var Oa,Ma=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,Ia="class";function Ra(){return Oa||(Oa=A.parse("*")[0]),Oa}var Da=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return o(e,t),e}(Nr),ja=function ja(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n},La=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,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,e,n,r,i,o,s){var a=this.tryParse(t,e,n,r,i,o,s),u=a.errors.filter(function(t){return t.level===wr.WARNING}),c=a.errors.filter(function(t){return t.level===wr.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0)throw pt("Template parse errors:\n"+c.join("\n"),c);return{template:a.templateAst,pipes:a.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,s){var a="string"==typeof e?this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t)):e;return s||(a=function u(t){return new zr(he(new wa,t.rootNodes),t.errors)}
322
+ */var Oa,Ma=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,Ia="class";function Da(){return Oa||(Oa=A.parse("*")[0]),Oa}var Ra=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return o(e,t),e}(Nr),ja=function ja(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n},La=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,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,e,n,r,i,o,s){var a=this.tryParse(t,e,n,r,i,o,s),u=a.errors.filter(function(t){return t.level===wr.WARNING}),c=a.errors.filter(function(t){return t.level===wr.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0)throw pt("Template parse errors:\n"+c.join("\n"),c);return{template:a.templateAst,pipes:a.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,s){var a="string"==typeof e?this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t)):e;return s||(a=function u(t){return new zr(he(new wa,t.rootNodes),t.errors)}
323
323
  /**
324
324
  * @license
325
325
  * Copyright Google Inc. All Rights Reserved.
326
326
  *
327
327
  * Use of this source code is governed by an MIT-style license that can be
328
328
  * found in the LICENSE file at https://angular.io/license
329
- */(a)),this.tryParseHtml(this.expandHtml(a),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,r,i){var o,s=t.errors,a=[];if(t.rootNodes.length>0){var u=Ga(n),c=Ga(r),l=new Bs(this._reflector,e),p=void 0;e.template&&e.template.interpolation&&(p={start:e.template.interpolation[0],end:e.template.interpolation[1]});var h=new Pa(this._exprParser,p,this._schemaRegistry,c,s),d=new Fa(this._reflector,this._config,l,u,h,this._schemaRegistry,i,s);o=he(d,t.rootNodes,za),s.push.apply(s,f(l.errors)),a.push.apply(a,f(h.getUsedPipes()))}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new ja(o,a,s):(this.transforms&&this.transforms.forEach(function(t){o=Vt(t,o)}),new ja(o,a,s))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=Ea(t.rootNodes);n.push.apply(n,f(r.errors)),t=new zr(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return ge.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Da('Reference "#'+r+'" is defined several times',t.sourceSpan,wr.ERROR);e.push(i)}})})},t}(),Fa=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new N,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=A.parse(t.selector);u.selectorMatcher.addSelectables(n,t),u.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Ra()),r=ba(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new St(i,n,t.sourceSpan):new Et(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new Ct(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=De(t);if(o.type===xe.SCRIPT||o.type===xe.STYLE)return null;if(o.type===xe.STYLESHEET&&we(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],v=[],y=!1,m=[],g=function _(t){return"ng-template"===d(t)[1]}(t.name);t.attrs.forEach(function(t){var e,r,i=n._parseAttr(g,t,s,a,l,u,c);c.push.apply(c,f([].map(function(t){return kt.fromParsedVariable(t)})));var o=n._normalizeAttributeName(t.name);o.startsWith("*")&&(e=t.value,r=o.substring("*".length));var d=null!=e;if(d){y&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",t.sourceSpan),y=!0;var _=[];n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,_),v.push.apply(v,f(_.map(function(t){return kt.fromParsedVariable(t)})))}i||d||(m.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var b=Ua(i,s),w=this._parseDirectives(this.selectorMatcher,b),x=w.directives,E=w.matchElement,S=[],C=new Set,T=this._createDirectiveAsts(g,t.name,x,a,u,t.sourceSpan,S,C),P=this._createElementPropertyAsts(t.name,a,C),N=new Hs(this.providerViewContext,e.providerContext,e.isTemplateElement||y,T,m,S,g,r,t.sourceSpan),k=he(o.nonBindable?Wa:this,t.children,Ha.create(g,T,g?e.providerContext:N));N.afterElement();var O,M=""!=o.projectAs?A.parse(o.projectAs)[0]:b,I=e.findNgContentIndex(M);if(o.type===xe.NG_CONTENT)t.children&&!t.children.every(Qa)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),O=new jt(this.ngContentCount++,y?null:I,t.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(T,l),this._assertNoComponentsNorElementBindingsOnTemplate(T,P,t.sourceSpan),O=new Mt(m,l,S,c,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,k,y?null:I,t.sourceSpan);else{this._assertElementExists(E,t),this._assertOnlyOneComponent(T,t.sourceSpan);var R=y?null:e.findNgContentIndex(M);O=new Ot(i,m,P,l,S,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,k,y?null:R,t.sourceSpan,t.endSourceSpan||null)}if(y){var D=this.contentQueryStartId,j=Ua("ng-template",h),L=this._parseDirectives(this.selectorMatcher,j).directives,F=new Set,V=this._createDirectiveAsts(!0,i,L,p,[],t.sourceSpan,[],F),B=this._createElementPropertyAsts(i,p,F);this._assertNoComponentsNorElementBindingsOnTemplate(V,B,t.sourceSpan);var H=new Hs(this.providerViewContext,e.providerContext,e.isTemplateElement,V,[],[],!0,D,t.sourceSpan);H.afterElement(),O=new Mt([],[],[],v,H.transformedDirectiveAsts,H.transformProviders,H.transformedHasViewContainer,H.queryMatches,[O],I,t.sourceSpan)}return O},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=[],p=a.match(Ma),h=!1;return null!==p?(h=!0,null!=p[1]?this._bindingParser.parsePropertyBinding(p[7],u,!1,c,n,r):p[2]?t?this._parseVariable(p[7],u,c,s):this._reportError('"let-" is only supported on ng-template elements.',c):p[3]?this._parseReference(p[7],u,c,o):p[4]?this._bindingParser.parseEvent(p[7],u,c,n,l):p[5]?(this._bindingParser.parsePropertyBinding(p[7],u,!1,c,n,r),this._parseAssignmentEvent(p[7],u,c,n,l)):p[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):p[8]?(this._bindingParser.parsePropertyBinding(p[8],u,!1,c,n,r),this._parseAssignmentEvent(p[8],u,c,n,l)):p[9]?this._bindingParser.parsePropertyBinding(p[9],u,!1,c,n,r):p[10]&&this._bindingParser.parseEvent(p[10],u,c,n,l)):h=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r),h||this._bindingParser.parseLiteralAttr(a,u,c,n,r),i.push.apply(i,f(l.map(function(t){return At.fromParsedEvent(t)}))),h},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new kt(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Ba(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Pr(o.start,o.end,"Directive "+Gt(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n).map(function(t){return Pt.fromBoundProperty(t)});h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(s.push(new Nt(e.name,wo(t.type.reference),e.value,e.sourceSpan)),c.add(e.name))});var d=f.map(function(t){return At.fromParsedEvent(t)}),v=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new Rt(t,p,h,d,v,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=xo(u.reflector,bo.TemplateRef)),s.push(new Nt(e.name,n,e.value,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=i.get(t[e]);o&&(r.add(o.name),Xa(o.expression)||n.push(new It(e,o.name,o.expression,o.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){if(!e.isLiteral&&!n.has(e.name)){var o=r._bindingParser.createBoundElementProperty(t,e);i.push(Pt.fromBoundProperty(o))}}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return Gt(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);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(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!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,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.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(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){r.add(t.directive.outputs[e])})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.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".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(0===e.type&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.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.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' 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,e.sourceSpan)}return!Xa(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=wr.ERROR),this._targetErrors.push(new Nr(e,t,n))},t}(),Va=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=De(t);if(n.type===xe.SCRIPT||n.type===xe.STYLE||n.type===xe.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=Ua(t.name,r),o=e.findNgContentIndex(i),s=he(this,t.children,za);return new Ot(t.name,he(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new Ct(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Ra());return new Et(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Ba=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==function e(t){return t?t.split(",").map(function(t){return t.trim()}):[]}(t.exportAs).indexOf(this.value)},t}(),Ha=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new N,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++)"*"===a[u]?o=u:i.addSelectables(A.parse(a[u]),u);return new t(e,i,o,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}();function Ua(t,e){var n=new A,r=d(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],s=d(o)[1],a=e[i][1];n.addAttribute(s,a),o.toLowerCase()==Ia&&a.trim().split(/\s+/g).forEach(function(t){return n.addClassName(t)})}return n}var qa,Ka,za=new Ha(!0,new N,null,null),Wa=new Va;function Qa(t){return t instanceof se&&0==t.value.trim().length}function Ga(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Xa(t){return t instanceof sr&&(t=t.ast),t instanceof Bn}
329
+ */(a)),this.tryParseHtml(this.expandHtml(a),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,r,i){var o,s=t.errors,a=[];if(t.rootNodes.length>0){var u=Ga(n),c=Ga(r),l=new Bs(this._reflector,e),p=void 0;e.template&&e.template.interpolation&&(p={start:e.template.interpolation[0],end:e.template.interpolation[1]});var h=new Pa(this._exprParser,p,this._schemaRegistry,c,s),d=new Fa(this._reflector,this._config,l,u,h,this._schemaRegistry,i,s);o=he(d,t.rootNodes,za),s.push.apply(s,f(l.errors)),a.push.apply(a,f(h.getUsedPipes()))}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new ja(o,a,s):(this.transforms&&this.transforms.forEach(function(t){o=Vt(t,o)}),new ja(o,a,s))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=Ea(t.rootNodes);n.push.apply(n,f(r.errors)),t=new zr(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return ge.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Ra('Reference "#'+r+'" is defined several times',t.sourceSpan,wr.ERROR);e.push(i)}})})},t}(),Fa=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new N,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=A.parse(t.selector);u.selectorMatcher.addSelectables(n,t),u.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Da()),r=ba(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new St(i,n,t.sourceSpan):new Et(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new Ct(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=Re(t);if(o.type===xe.SCRIPT||o.type===xe.STYLE)return null;if(o.type===xe.STYLESHEET&&we(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],v=[],y=!1,m=[],g=function _(t){return"ng-template"===d(t)[1]}(t.name);t.attrs.forEach(function(t){var e,r,i=n._parseAttr(g,t,s,a,l,u,c);c.push.apply(c,f([].map(function(t){return kt.fromParsedVariable(t)})));var o=n._normalizeAttributeName(t.name);o.startsWith("*")&&(e=t.value,r=o.substring("*".length));var d=null!=e;if(d){y&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",t.sourceSpan),y=!0;var _=[];n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,_),v.push.apply(v,f(_.map(function(t){return kt.fromParsedVariable(t)})))}i||d||(m.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var b=Ua(i,s),w=this._parseDirectives(this.selectorMatcher,b),x=w.directives,E=w.matchElement,S=[],C=new Set,T=this._createDirectiveAsts(g,t.name,x,a,u,t.sourceSpan,S,C),P=this._createElementPropertyAsts(t.name,a,C),N=new Hs(this.providerViewContext,e.providerContext,e.isTemplateElement||y,T,m,S,g,r,t.sourceSpan),k=he(o.nonBindable?Wa:this,t.children,Ha.create(g,T,g?e.providerContext:N));N.afterElement();var O,M=""!=o.projectAs?A.parse(o.projectAs)[0]:b,I=e.findNgContentIndex(M);if(o.type===xe.NG_CONTENT)t.children&&!t.children.every(Qa)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),O=new jt(this.ngContentCount++,y?null:I,t.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(T,l),this._assertNoComponentsNorElementBindingsOnTemplate(T,P,t.sourceSpan),O=new Mt(m,l,S,c,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,k,y?null:I,t.sourceSpan);else{this._assertElementExists(E,t),this._assertOnlyOneComponent(T,t.sourceSpan);var D=y?null:e.findNgContentIndex(M);O=new Ot(i,m,P,l,S,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,k,y?null:D,t.sourceSpan,t.endSourceSpan||null)}if(y){var R=this.contentQueryStartId,j=Ua("ng-template",h),L=this._parseDirectives(this.selectorMatcher,j).directives,F=new Set,V=this._createDirectiveAsts(!0,i,L,p,[],t.sourceSpan,[],F),B=this._createElementPropertyAsts(i,p,F);this._assertNoComponentsNorElementBindingsOnTemplate(V,B,t.sourceSpan);var H=new Hs(this.providerViewContext,e.providerContext,e.isTemplateElement,V,[],[],!0,R,t.sourceSpan);H.afterElement(),O=new Mt([],[],[],v,H.transformedDirectiveAsts,H.transformProviders,H.transformedHasViewContainer,H.queryMatches,[O],I,t.sourceSpan)}return O},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=[],p=a.match(Ma),h=!1;return null!==p?(h=!0,null!=p[1]?this._bindingParser.parsePropertyBinding(p[7],u,!1,c,n,r):p[2]?t?this._parseVariable(p[7],u,c,s):this._reportError('"let-" is only supported on ng-template elements.',c):p[3]?this._parseReference(p[7],u,c,o):p[4]?this._bindingParser.parseEvent(p[7],u,c,n,l):p[5]?(this._bindingParser.parsePropertyBinding(p[7],u,!1,c,n,r),this._parseAssignmentEvent(p[7],u,c,n,l)):p[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):p[8]?(this._bindingParser.parsePropertyBinding(p[8],u,!1,c,n,r),this._parseAssignmentEvent(p[8],u,c,n,l)):p[9]?this._bindingParser.parsePropertyBinding(p[9],u,!1,c,n,r):p[10]&&this._bindingParser.parseEvent(p[10],u,c,n,l)):h=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r),h||this._bindingParser.parseLiteralAttr(a,u,c,n,r),i.push.apply(i,f(l.map(function(t){return At.fromParsedEvent(t)}))),h},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new kt(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Ba(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Pr(o.start,o.end,"Directive "+Gt(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n).map(function(t){return Pt.fromBoundProperty(t)});h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(s.push(new Nt(e.name,wo(t.type.reference),e.value,e.sourceSpan)),c.add(e.name))});var d=f.map(function(t){return At.fromParsedEvent(t)}),v=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new Dt(t,p,h,d,v,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=xo(u.reflector,bo.TemplateRef)),s.push(new Nt(e.name,n,e.value,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=i.get(t[e]);o&&(r.add(o.name),Xa(o.expression)||n.push(new It(e,o.name,o.expression,o.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){if(!e.isLiteral&&!n.has(e.name)){var o=r._bindingParser.createBoundElementProperty(t,e);i.push(Pt.fromBoundProperty(o))}}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return Gt(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);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(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!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,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.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(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){r.add(t.directive.outputs[e])})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.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".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(0===e.type&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.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.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' 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,e.sourceSpan)}return!Xa(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=wr.ERROR),this._targetErrors.push(new Nr(e,t,n))},t}(),Va=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Re(t);if(n.type===xe.SCRIPT||n.type===xe.STYLE||n.type===xe.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=Ua(t.name,r),o=e.findNgContentIndex(i),s=he(this,t.children,za);return new Ot(t.name,he(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new Ct(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Da());return new Et(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Ba=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==function e(t){return t?t.split(",").map(function(t){return t.trim()}):[]}(t.exportAs).indexOf(this.value)},t}(),Ha=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new N,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++)"*"===a[u]?o=u:i.addSelectables(A.parse(a[u]),u);return new t(e,i,o,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}();function Ua(t,e){var n=new A,r=d(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],s=d(o)[1],a=e[i][1];n.addAttribute(s,a),o.toLowerCase()==Ia&&a.trim().split(/\s+/g).forEach(function(t){return n.addClassName(t)})}return n}var qa,Ka,za=new Ha(!0,new N,null,null),Wa=new Va;function Qa(t){return t instanceof se&&0==t.value.trim().length}function Ga(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Xa(t){return t instanceof sr&&(t=t.ast),t instanceof Bn}
330
330
  /**
331
331
  * @license
332
332
  * Copyright Google Inc. All Rights Reserved.
333
333
  *
334
334
  * Use of this source code is governed by an MIT-style license that can be
335
335
  * found in the LICENSE file at https://angular.io/license
336
- */_s("$event"),function(t){t[t.General=0]="General",t[t.TrySimple=1]="TrySimple"}(qa||(qa={})),function(t){t[t.Statement=0]="Statement",t[t.Expression=1]="Expression"}(Ka||(Ka={})),function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}o(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=f([t.exp],t.args).map(function(t){return t.visit(n,e)});return new Za(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new Za(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new Za(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))}}(lr);var $a,Ya,Za=function(t){function e(e,n,r){var i=t.call(this,e,null,n)||this;return i.args=n,i.converter=r,i}return o(e,t),e}(or),Ja=(_s("_l"),_s("_v"),_s("_ck"),_s("_co"),_s("en"),_s("ad"),{}),tu=(function(t){function e(e){var n=t.call(this,e.type)||this;return n.resolved=e,n.original=e,n}o(e,t),e.prototype.visitExpression=function(t,e){return e===Ja?this.original.visitExpression(t,e):this.resolved.visitExpression(t,e)},e.prototype.isEquivalent=function(t){return t instanceof e&&this.resolved.isEquivalent(t.resolved)},e.prototype.isConstant=function(){return!0},e.prototype.fixup=function(t){this.resolved=t,this.shared=!0}}(Io),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}o(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new _i(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new bi(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new wi(t.value,e.toPublicName(t.name),t.sourceSpan)}}(xi),"@angular/core"),eu=function(){function t(){}return t.NEW_METHOD="factory",t.TRANSFORM_METHOD="transform",t.PATCH_DEPS="patchedDeps",t.namespaceHTML={name:"ɵnamespaceHTML",moduleName:tu},t.namespaceMathML={name:"ɵnamespaceMathML",moduleName:tu},t.namespaceSVG={name:"ɵnamespaceSVG",moduleName:tu},t.element={name:"ɵelement",moduleName:tu},t.elementStart={name:"ɵelementStart",moduleName:tu},t.elementEnd={name:"ɵelementEnd",moduleName:tu},t.elementProperty={name:"ɵelementProperty",moduleName:tu},t.elementAttribute={name:"ɵelementAttribute",moduleName:tu},t.elementClassProp={name:"ɵelementClassProp",moduleName:tu},t.elementContainerStart={name:"ɵEC",moduleName:tu},t.elementContainerEnd={name:"ɵeC",moduleName:tu},t.elementStyling={name:"ɵelementStyling",moduleName:tu},t.elementStylingMap={name:"ɵelementStylingMap",moduleName:tu},t.elementStyleProp={name:"ɵelementStyleProp",moduleName:tu},t.elementStylingApply={name:"ɵelementStylingApply",moduleName:tu},t.containerCreate={name:"ɵcontainer",moduleName:tu},t.nextContext={name:"ɵnextContext",moduleName:tu},t.templateCreate={name:"ɵtemplate",moduleName:tu},t.text={name:"ɵtext",moduleName:tu},t.textBinding={name:"ɵtextBinding",moduleName:tu},t.bind={name:"ɵbind",moduleName:tu},t.enableBindings={name:"ɵenableBindings",moduleName:tu},t.disableBindings={name:"ɵdisableBindings",moduleName:tu},t.getCurrentView={name:"ɵgetCurrentView",moduleName:tu},t.restoreView={name:"ɵrestoreView",moduleName:tu},t.interpolation1={name:"ɵinterpolation1",moduleName:tu},t.interpolation2={name:"ɵinterpolation2",moduleName:tu},t.interpolation3={name:"ɵinterpolation3",moduleName:tu},t.interpolation4={name:"ɵinterpolation4",moduleName:tu},t.interpolation5={name:"ɵinterpolation5",moduleName:tu},t.interpolation6={name:"ɵinterpolation6",moduleName:tu},t.interpolation7={name:"ɵinterpolation7",moduleName:tu},t.interpolation8={name:"ɵinterpolation8",moduleName:tu},t.interpolationV={name:"ɵinterpolationV",moduleName:tu},t.pureFunction0={name:"ɵpureFunction0",moduleName:tu},t.pureFunction1={name:"ɵpureFunction1",moduleName:tu},t.pureFunction2={name:"ɵpureFunction2",moduleName:tu},t.pureFunction3={name:"ɵpureFunction3",moduleName:tu},t.pureFunction4={name:"ɵpureFunction4",moduleName:tu},t.pureFunction5={name:"ɵpureFunction5",moduleName:tu},t.pureFunction6={name:"ɵpureFunction6",moduleName:tu},t.pureFunction7={name:"ɵpureFunction7",moduleName:tu},t.pureFunction8={name:"ɵpureFunction8",moduleName:tu},t.pureFunctionV={name:"ɵpureFunctionV",moduleName:tu},t.pipeBind1={name:"ɵpipeBind1",moduleName:tu},t.pipeBind2={name:"ɵpipeBind2",moduleName:tu},t.pipeBind3={name:"ɵpipeBind3",moduleName:tu},t.pipeBind4={name:"ɵpipeBind4",moduleName:tu},t.pipeBindV={name:"ɵpipeBindV",moduleName:tu},t.load={name:"ɵload",moduleName:tu},t.loadQueryList={name:"ɵloadQueryList",moduleName:tu},t.pipe={name:"ɵpipe",moduleName:tu},t.projection={name:"ɵprojection",moduleName:tu},t.projectionDef={name:"ɵprojectionDef",moduleName:tu},t.reference={name:"ɵreference",moduleName:tu},t.inject={name:"inject",moduleName:tu},t.injectAttribute={name:"ɵinjectAttribute",moduleName:tu},t.injectRenderer2={name:"ɵinjectRenderer2",moduleName:tu},t.directiveInject={name:"ɵdirectiveInject",moduleName:tu},t.templateRefExtractor={name:"ɵtemplateRefExtractor",moduleName:tu},t.defineBase={name:"ɵdefineBase",moduleName:tu},t.BaseDef={name:"ɵBaseDef",moduleName:tu},t.defineComponent={name:"ɵdefineComponent",moduleName:tu},t.ComponentDefWithMeta={name:"ɵComponentDefWithMeta",moduleName:tu},t.defineDirective={name:"ɵdefineDirective",moduleName:tu},t.DirectiveDefWithMeta={name:"ɵDirectiveDefWithMeta",moduleName:tu},t.InjectorDef={name:"ɵInjectorDef",moduleName:tu},t.defineInjector={name:"defineInjector",moduleName:tu},t.NgModuleDefWithMeta={name:"ɵNgModuleDefWithMeta",moduleName:tu},t.defineNgModule={name:"ɵdefineNgModule",moduleName:tu},t.PipeDefWithMeta={name:"ɵPipeDefWithMeta",moduleName:tu},t.definePipe={name:"ɵdefinePipe",moduleName:tu},t.query={name:"ɵquery",moduleName:tu},t.queryRefresh={name:"ɵqueryRefresh",moduleName:tu},t.registerContentQuery={name:"ɵregisterContentQuery",moduleName:tu},t.NgOnChangesFeature={name:"ɵNgOnChangesFeature",moduleName:tu},t.InheritDefinitionFeature={name:"ɵInheritDefinitionFeature",moduleName:tu},t.PublicFeature={name:"ɵPublicFeature",moduleName:tu},t.listener={name:"ɵlistener",moduleName:tu},t.getFactoryOf={name:"ɵgetFactoryOf",moduleName:tu},t.getInheritedFactory={name:"ɵgetInheritedFactory",moduleName:tu},t.sanitizeHtml={name:"ɵsanitizeHtml",moduleName:tu},t.sanitizeStyle={name:"ɵsanitizeStyle",moduleName:tu},t.defaultStyleSanitizer={name:"ɵdefaultStyleSanitizer",moduleName:tu},t.sanitizeResourceUrl={name:"ɵsanitizeResourceUrl",moduleName:tu},t.sanitizeScript={name:"ɵsanitizeScript",moduleName:tu},t.sanitizeUrl={name:"ɵsanitizeUrl",moduleName:tu},t}();!function(t){t[t.Class=0]="Class",t[t.Function=1]="Function",t[t.Factory=2]="Factory"}($a||($a={})),function(t){t[t.Token=0]="Token",t[t.Attribute=1]="Attribute",t[t.Injector=2]="Injector",t[t.Renderer2=3]="Renderer2"}(Ya||(Ya={}));
336
+ */_s("$event"),function(t){t[t.General=0]="General",t[t.TrySimple=1]="TrySimple"}(qa||(qa={})),function(t){t[t.Statement=0]="Statement",t[t.Expression=1]="Expression"}(Ka||(Ka={})),function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}o(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=f([t.exp],t.args).map(function(t){return t.visit(n,e)});return new Za(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new Za(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new Za(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))}}(lr);var $a,Ya,Za=function(t){function e(e,n,r){var i=t.call(this,e,null,n)||this;return i.args=n,i.converter=r,i}return o(e,t),e}(or),Ja=(_s("_l"),_s("_v"),_s("_ck"),_s("_co"),_s("en"),_s("ad"),{}),tu=(function(t){function e(e){var n=t.call(this,e.type)||this;return n.resolved=e,n.original=e,n}o(e,t),e.prototype.visitExpression=function(t,e){return e===Ja?this.original.visitExpression(t,e):this.resolved.visitExpression(t,e)},e.prototype.isEquivalent=function(t){return t instanceof e&&this.resolved.isEquivalent(t.resolved)},e.prototype.isConstant=function(){return!0},e.prototype.fixup=function(t){this.resolved=t,this.shared=!0}}(Io),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}o(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new _i(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new bi(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new wi(t.value,e.toPublicName(t.name),t.sourceSpan)}}(xi),"@angular/core"),eu=function(){function t(){}return t.NEW_METHOD="factory",t.TRANSFORM_METHOD="transform",t.PATCH_DEPS="patchedDeps",t.namespaceHTML={name:"ɵnamespaceHTML",moduleName:tu},t.namespaceMathML={name:"ɵnamespaceMathML",moduleName:tu},t.namespaceSVG={name:"ɵnamespaceSVG",moduleName:tu},t.element={name:"ɵelement",moduleName:tu},t.elementStart={name:"ɵelementStart",moduleName:tu},t.elementEnd={name:"ɵelementEnd",moduleName:tu},t.elementProperty={name:"ɵelementProperty",moduleName:tu},t.elementAttribute={name:"ɵelementAttribute",moduleName:tu},t.elementClassProp={name:"ɵelementClassProp",moduleName:tu},t.elementContainerStart={name:"ɵEC",moduleName:tu},t.elementContainerEnd={name:"ɵeC",moduleName:tu},t.elementStyling={name:"ɵelementStyling",moduleName:tu},t.elementStylingMap={name:"ɵelementStylingMap",moduleName:tu},t.elementStyleProp={name:"ɵelementStyleProp",moduleName:tu},t.elementStylingApply={name:"ɵelementStylingApply",moduleName:tu},t.containerCreate={name:"ɵcontainer",moduleName:tu},t.nextContext={name:"ɵnextContext",moduleName:tu},t.templateCreate={name:"ɵtemplate",moduleName:tu},t.text={name:"ɵtext",moduleName:tu},t.textBinding={name:"ɵtextBinding",moduleName:tu},t.bind={name:"ɵbind",moduleName:tu},t.enableBindings={name:"ɵenableBindings",moduleName:tu},t.disableBindings={name:"ɵdisableBindings",moduleName:tu},t.getCurrentView={name:"ɵgetCurrentView",moduleName:tu},t.restoreView={name:"ɵrestoreView",moduleName:tu},t.interpolation1={name:"ɵinterpolation1",moduleName:tu},t.interpolation2={name:"ɵinterpolation2",moduleName:tu},t.interpolation3={name:"ɵinterpolation3",moduleName:tu},t.interpolation4={name:"ɵinterpolation4",moduleName:tu},t.interpolation5={name:"ɵinterpolation5",moduleName:tu},t.interpolation6={name:"ɵinterpolation6",moduleName:tu},t.interpolation7={name:"ɵinterpolation7",moduleName:tu},t.interpolation8={name:"ɵinterpolation8",moduleName:tu},t.interpolationV={name:"ɵinterpolationV",moduleName:tu},t.pureFunction0={name:"ɵpureFunction0",moduleName:tu},t.pureFunction1={name:"ɵpureFunction1",moduleName:tu},t.pureFunction2={name:"ɵpureFunction2",moduleName:tu},t.pureFunction3={name:"ɵpureFunction3",moduleName:tu},t.pureFunction4={name:"ɵpureFunction4",moduleName:tu},t.pureFunction5={name:"ɵpureFunction5",moduleName:tu},t.pureFunction6={name:"ɵpureFunction6",moduleName:tu},t.pureFunction7={name:"ɵpureFunction7",moduleName:tu},t.pureFunction8={name:"ɵpureFunction8",moduleName:tu},t.pureFunctionV={name:"ɵpureFunctionV",moduleName:tu},t.pipeBind1={name:"ɵpipeBind1",moduleName:tu},t.pipeBind2={name:"ɵpipeBind2",moduleName:tu},t.pipeBind3={name:"ɵpipeBind3",moduleName:tu},t.pipeBind4={name:"ɵpipeBind4",moduleName:tu},t.pipeBindV={name:"ɵpipeBindV",moduleName:tu},t.i18nAttribute={name:"ɵi18nAttribute",moduleName:tu},t.i18nExp={name:"ɵi18nExp",moduleName:tu},t.i18nStart={name:"ɵi18nStart",moduleName:tu},t.i18nEnd={name:"ɵi18nEnd",moduleName:tu},t.i18nApply={name:"ɵi18nApply",moduleName:tu},t.load={name:"ɵload",moduleName:tu},t.loadQueryList={name:"ɵloadQueryList",moduleName:tu},t.pipe={name:"ɵpipe",moduleName:tu},t.projection={name:"ɵprojection",moduleName:tu},t.projectionDef={name:"ɵprojectionDef",moduleName:tu},t.reference={name:"ɵreference",moduleName:tu},t.inject={name:"inject",moduleName:tu},t.injectAttribute={name:"ɵinjectAttribute",moduleName:tu},t.directiveInject={name:"ɵdirectiveInject",moduleName:tu},t.templateRefExtractor={name:"ɵtemplateRefExtractor",moduleName:tu},t.defineBase={name:"ɵdefineBase",moduleName:tu},t.BaseDef={name:"ɵBaseDef",moduleName:tu},t.defineComponent={name:"ɵdefineComponent",moduleName:tu},t.ComponentDefWithMeta={name:"ɵComponentDefWithMeta",moduleName:tu},t.defineDirective={name:"ɵdefineDirective",moduleName:tu},t.DirectiveDefWithMeta={name:"ɵDirectiveDefWithMeta",moduleName:tu},t.InjectorDef={name:"ɵInjectorDef",moduleName:tu},t.defineInjector={name:"defineInjector",moduleName:tu},t.NgModuleDefWithMeta={name:"ɵNgModuleDefWithMeta",moduleName:tu},t.defineNgModule={name:"ɵdefineNgModule",moduleName:tu},t.PipeDefWithMeta={name:"ɵPipeDefWithMeta",moduleName:tu},t.definePipe={name:"ɵdefinePipe",moduleName:tu},t.query={name:"ɵquery",moduleName:tu},t.queryRefresh={name:"ɵqueryRefresh",moduleName:tu},t.registerContentQuery={name:"ɵregisterContentQuery",moduleName:tu},t.NgOnChangesFeature={name:"ɵNgOnChangesFeature",moduleName:tu},t.InheritDefinitionFeature={name:"ɵInheritDefinitionFeature",moduleName:tu},t.PublicFeature={name:"ɵPublicFeature",moduleName:tu},t.listener={name:"ɵlistener",moduleName:tu},t.getFactoryOf={name:"ɵgetFactoryOf",moduleName:tu},t.getInheritedFactory={name:"ɵgetInheritedFactory",moduleName:tu},t.sanitizeHtml={name:"ɵsanitizeHtml",moduleName:tu},t.sanitizeStyle={name:"ɵsanitizeStyle",moduleName:tu},t.defaultStyleSanitizer={name:"ɵdefaultStyleSanitizer",moduleName:tu},t.sanitizeResourceUrl={name:"ɵsanitizeResourceUrl",moduleName:tu},t.sanitizeScript={name:"ɵsanitizeScript",moduleName:tu},t.sanitizeUrl={name:"ɵsanitizeUrl",moduleName:tu},t}();!function(t){t[t.Class=0]="Class",t[t.Function=1]="Function",t[t.Factory=2]="Factory"}($a||($a={})),function(t){t[t.Token=0]="Token",t[t.Attribute=1]="Attribute",t[t.Injector=2]="Injector"}(Ya||(Ya={}));
337
337
  /**
338
338
  * @license
339
339
  * Copyright Google Inc. All Rights Reserved.
@@ -405,14 +405,14 @@ var nu=function(){function t(t,e,n,r,i,o,s,a,u){this.attributes=t,this.inputs=e,
405
405
  * Use of this source code is governed by an MIT-style license that can be
406
406
  * found in the LICENSE file at https://angular.io/license
407
407
  */
408
- var du="ngFormattedMessage",vu="@angular/core",yu=/^\$.*\$$/,mu={__symbolic:"ignore"},gu=new Set(["useValue","useFactory","data","id","loadChildren"]);function _u(t){return t&&"ignore"==t.__symbolic}var bu=function(){function t(t,e,n,r,i){void 0===n&&(n=[]),void 0===r&&(r=[]);var o=this;this.summaryResolver=t,this.symbolResolver=e,this.errorRecorder=i,this.annotationCache=new Map,this.shallowAnnotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.staticCache=new Map,this.conversionMap=new Map,this.resolvedExternalReferences=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.initializeConversionMap(),n.forEach(function(t){return o._registerDecoratorOrConstructor(o.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return o._registerFunction(o.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Wt.Directive,[V,U]),this.annotationForParentClassWithSummaryKind.set(Wt.Pipe,[q]),this.annotationForParentClassWithSummaryKind.set(Wt.NgModule,[G]),this.annotationForParentClassWithSummaryKind.set(Wt.Injectable,[X,q,V,U,G])}return t.prototype.componentModuleUrl=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveExternalReference=function(t,e){var n=void 0;if(!e){var r=this.resolvedExternalReferences.get(n=t.moduleName+":"+t.name);if(r)return r}var i=this.symbolResolver.getSymbolByModule(t.moduleName,t.name,e),o=this.findSymbolDeclaration(i);return e||(this.symbolResolver.recordModuleNameForFileName(i.filePath,t.moduleName),this.symbolResolver.recordImportAs(o,i)),n&&this.resolvedExternalReferences.set(n,o),o},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.tryFindDeclaration=function(t,e,n){var r=this;return this.symbolResolver.ignoreErrorsFor(function(){return r.findDeclaration(t,e,n)})},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);if(e){var n=e.metadata;if(n&&"resolved"===n.__symbolic&&(n=n.symbol),n instanceof Ut)return this.findSymbolDeclaration(e.metadata)}return t},t.prototype.tryAnnotations=function(t){var e=this.errorRecorder;this.errorRecorder=function(t,e){};try{return this.annotations(t)}finally{this.errorRecorder=e}},t.prototype.annotations=function(t){var e=this;return this._annotations(t,function(t,n){return e.simplify(t,n)},this.annotationCache)},t.prototype.shallowAnnotations=function(t){var e=this;return this._annotations(t,function(t,n){return e.simplify(t,n,!0)},this.shallowAnnotationCache)},t.prototype._annotations=function(t,e,n){var r=n.get(t);if(!r){r=[];var i=this.getTypeMetadata(t),o=this.findParentType(t,i);if(o){var s=this.annotations(o);r.push.apply(r,f(s))}var a=[];if(i.decorators&&(a=e(t,i.decorators))&&r.push.apply(r,f(a)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var u=this.summaryResolver.resolveSummary(o);if(u&&u.type){var c=this.annotationForParentClassWithSummaryKind.get(u.type.summaryKind);c.some(function(t){return a.some(function(e){return t.isTypeOf(e)})})||this.reportError(Ru(xu("Class "+t.name+" in "+t.filePath+" extends from a "+Wt[u.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+c.map(function(t){return t.ngMetadataName}).join(" or ")+" decorator to the class"),t),t)}}n.set(t,r.filter(function(t){return!!t}))}return r},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var i=this.findParentType(t,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(t){n[t]=o[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),o=[];n[r]&&o.push.apply(o,f(n[r])),n[r]=o,i&&i.decorators&&o.push.apply(o,f(e.simplify(t,i.decorators)))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){var e=this;if(!(t instanceof Ut))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var n=this.parameterCache.get(t);if(!n){var r=this.getTypeMetadata(t),i=this.findParentType(t,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var a=s.find(function(t){return"constructor"==t.__symbolic}),u=a.parameters||[],c=this.simplify(t,a.parameterDecorators||[]);n=[],u.forEach(function(r,i){var o=[],s=e.trySimplify(t,r);s&&o.push(s);var a=c?c[i]:null;a&&o.push.apply(o,f(a)),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(t,n)}return n}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);e={};var r=this.findParentType(t,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(t){var n=o[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype._staticMembers=function(t){var e=this.staticCache.get(t);if(!e){var n=this.getTypeMetadata(t);e=Object.keys(n.statics||{}),this.staticCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof Ut)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof Ut||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype.guards=function(t){var e,n;if(!(t instanceof Ut))return this.reportError(new Error("guards received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),{};var r=this._staticMembers(t),i={};try{for(var o=p(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.endsWith("TypeGuard")){var u=a.substr(0,a.length-"TypeGuard".length),c=void 0;u.endsWith("UseIf")?(u=a.substr(0,u.length-"UseIf".length),c="UseIf"):c=this.getStaticSymbol(t.filePath,t.name,[a]),i[u]=c}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,f([void 0],n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Injectable"),X),this.injectionToken=this.findDeclaration(vu,"InjectionToken"),this.opaqueToken=this.findDeclaration(vu,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(vu,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Host"),J),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Self"),Y),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"SkipSelf"),Z),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Inject"),M),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Optional"),$),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Attribute"),R),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"ContentChild"),j),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"ContentChildren"),D),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"ViewChild"),F),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"ViewChildren"),L),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Input"),K),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Output"),z),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Pipe"),q),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"HostBinding"),W),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"HostListener"),Q),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Directive"),V),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Component"),U),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"NgModule"),G),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Host"),J),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Self"),Y),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"SkipSelf"),Z),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Optional"),$)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e,n){void 0===n&&(n=!1);var r,i=this,o=Mu.empty,s=new Map;try{r=function t(e,n,r,a){function u(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function c(n){return t(e,n,r,0)}function l(n,o){if(n===e)return t(n,o,r+1,a);try{return t(n,o,r+1,a)}catch(t){if(!Eu(t))throw t;var s=t.chain?"references '"+t.symbol.name+"'":function u(t){if(t.summary)return t.summary;switch(t.message){case Su:if(t.context&&t.context.className)return"references non-exported class "+t.context.className;break;case Cu:return"is not initialized";case Tu:return"is a destructured variable";case Pu:return"could not be resolved";case Au:return t.context&&t.context.name?"calls '"+t.context.name+"'":"calls a function";case Nu:return t.context&&t.context.name?"references local variable "+t.context.name:"references a local variable"}return"contains the error"}(t);i.error({message:t.message,advise:t.advise,context:t.context,chain:{message:"'"+n.name+"' "+s,position:t.position,next:t.chain},symbol:n},e)}}return function n(h){var d,v,y,m;if(Ou(h))return h;if(h instanceof Array){var g=[];try{for(var _=p(h),b=_.next();!b.done;b=_.next()){var w=b.value;if(w&&"spread"===w.__symbolic){var x=c(w.expression);if(Array.isArray(x)){try{for(var E=p(x),S=E.next();!S.done;S=E.next())g.push(S.value)}catch(t){y={error:t}}finally{try{S&&!S.done&&(m=E.return)&&m.call(E)}finally{if(y)throw y.error}}continue}}var C=n(w);_u(C)||g.push(C)}}catch(t){d={error:t}}finally{try{b&&!b.done&&(v=_.return)&&v.call(_)}finally{if(d)throw d.error}}return g}if(h instanceof Ut)return h===i.injectionToken||i.conversionMap.has(h)||a>0&&!h.members.length?h:null!=(D=u(T=h))?l(T,D):T;if(h){if(h.__symbolic){var T=void 0;switch(h.__symbolic){case"binop":var P=n(h.left);if(_u(P))return P;var A=n(h.right);if(_u(A))return A;switch(h.operator){case"&&":return P&&A;case"||":return P||A;case"|":return P|A;case"^":return P^A;case"&":return P&A;case"==":return P==A;case"!=":return P!=A;case"===":return P===A;case"!==":return P!==A;case"<":return P<A;case">":return P>A;case"<=":return P<=A;case">=":return P>=A;case"<<":return P<<A;case">>":return P>>A;case"+":return P+A;case"-":return P-A;case"*":return P*A;case"/":return P/A;case"%":return P%A}return null;case"if":return n(n(h.condition)?h.thenExpression:h.elseExpression);case"pre":var N=n(h.operand);if(_u(N))return N;switch(h.operator){case"+":return N;case"-":return-N;case"!":return!N;case"~":return~N}return null;case"index":var k=c(h.expression),O=c(h.index);return k&&Ou(O)?k[O]:null;case"select":var M=h.member,I=e,R=n(h.expression);if(R instanceof Ut){var D,j=R.members.concat(M);return null!=(D=u(I=i.getStaticSymbol(R.filePath,R.name,j)))?l(I,D):I}return R&&Ou(M)?l(I,R[M]):null;case"reference":var L=o.resolve(h.name);if(L!=Mu.missing)return L;break;case"resolved":try{return n(h.symbol)}catch(t){throw Eu(t)&&null!=h.fileName&&null!=h.line&&null!=h.character&&(t.position={fileName:h.fileName,line:h.line,column:h.character}),t}case"class":case"function":return e;case"new":case"call":if((T=t(e,h.expression,r+1,0))instanceof Ut){if(T===i.injectionToken||T===i.opaqueToken)return e;var F=h.arguments||[],V=i.conversionMap.get(T);if(V){var B=F.map(function(t){return l(e,t)}).map(function(t){return _u(t)?void 0:t});return V(e,B)}return function H(t,a,u,c){if(a&&"function"==a.__symbolic){s.get(t)&&i.error({message:"Recursion is not supported",summary:"called '"+t.name+"' recursively",value:a},t);try{var p=a.value;if(p&&(0!=r||"error"!=p.__symbolic)){var h=a.parameters,d=a.defaults;u=u.map(function(t){return l(e,t)}).map(function(t){return _u(t)?void 0:t}),d&&d.length>u.length&&u.push.apply(u,f(d.slice(u.length).map(function(t){return n(t)}))),s.set(t,!0);for(var v=Mu.build(),y=0;y<h.length;y++)v.define(h[y],u[y]);var m,g=o;try{o=v.done(),m=l(t,p)}finally{o=g}return m}}finally{s.delete(t)}}if(0===r)return mu;var _=void 0;if(c&&"resolved"==c.__symbolic){var b=c.line,w=c.character,x=c.fileName;null!=x&&null!=b&&null!=w&&(_={fileName:x,line:b,column:w})}i.error({message:Au,context:t,value:a,position:_},e)}(T,u(T),F,h.expression)}return mu;case"error":var U=h.message;return i.error(null!=h.line?{message:U,context:h.context,value:h,position:{fileName:h.fileName,line:h.line,column:h.character}}:{message:U,context:h.context},e),mu;case"ignore":return h}return null}return function q(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);_u(i)||(yu.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(h,function(o,s){if(gu.has(s)){if("useValue"===s&&"provide"in h){var u=n(h.provide);if(u===i.ROUTES||u==i.ANALYZE_FOR_ENTRY_COMPONENTS)return n(o)}return function c(n){return t(e,n,r,a+1)}(o)}return n(o)})}return mu}(n)}(t,e,0,n?1:0)}catch(e){if(!this.errorRecorder)throw Ru(e,t);this.reportError(e,t)}if(!_u(r))return r},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(Ru(t,e),e&&e.filePath||n)},t.prototype.error=function(t,e){this.reportError(xu(t.message,t.summary,t.advise,t.position,t.symbol,t.context,t.chain),e)},t}(),wu="ngMetadataError";function xu(t,e,n,r,i,o,s){var a=pt(t);return a[wu]=!0,n&&(a.advise=n),r&&(a.position=r),e&&(a.summary=e),o&&(a.context=o),s&&(a.chain=s),i&&(a.symbol=i),a}function Eu(t){return!!t[wu]}var Su="Reference to non-exported class",Cu="Variable not initialized",Tu="Destructuring not supported",Pu="Could not resolve type",Au="Function call not supported",Nu="Reference to a local symbol",ku="Lambda not supported";function Ou(t){return null===t||"function"!=typeof t&&"object"!=typeof t}var Mu=function(){function t(){}return t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Iu(e):t.empty}}},t.missing={},t.empty={resolve:function(e){return t.missing}},t}(),Iu=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return o(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Mu.missing},e}(Mu);function Ru(t,e){return Eu(t)?function r(t){var e=pt(function t(e,n){if(void 0===n&&(n=0),!e)return"";var r=e.position?e.position.fileName+"("+(e.position.line+1)+","+(e.position.column+1)+")":"",i=(r&&0===n?r+": ":"")+e.message+(r&&0!==n?" at "+r:"");return""+function t(e){if(e<=0)return"";if(e<6)return[""," "," "," "," "," "][e];var n=t(Math.floor(e/2));return n+n+(e%2==1?" ":"")}(n)+i+(e.next&&"\n"+t(e.next,n+2)||"")}(t)+".");return e[du]=!0,e.chain=t,e.position=t.position,e}(function t(e,n){return{message:function r(t,e){switch(t){case Su:if(e&&e.className)return"References to a non-exported class are not supported in decorators but "+e.className+" was referenced.";break;case Cu:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case Tu:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case Pu:if(e&&e.typeName)return"Could not resolve type "+e.typeName;break;case Au:return e&&e.name?"Function calls are not supported in decorators but '"+e.name+"' was called":"Function calls are not supported in decorators";case Nu:if(e&&e.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+e.name+"' was referenced";break;case ku:return"Function expressions are not supported in decorators"}return t}(e.message,e.context)+(e.symbol?" in '"+e.symbol.name+"'":""),position:e.position,next:e.next?t(e.next,n):n?{message:n}:void 0}}({message:"Error during template compile of '"+e.name+"'",position:t.position,next:{message:t.message,next:t.chain,context:t.context,symbol:t.symbol}},t.advise||function n(t,e){switch(t){case Su:if(e&&e.className)return"Consider exporting '"+e.className+"'";break;case Tu:return"Consider simplifying to avoid destructuring";case Nu:if(e&&e.name)return"Consider exporting '"+e.name+"'";break;case ku:return"Consider changing the function expression into an exported function"}}(t.message,t.context))):t}
408
+ var du="ngFormattedMessage",vu="@angular/core",yu=/^\$.*\$$/,mu={__symbolic:"ignore"},gu=new Set(["useValue","useFactory","data","id","loadChildren"]);function _u(t){return t&&"ignore"==t.__symbolic}var bu=function(){function t(t,e,n,r,i){void 0===n&&(n=[]),void 0===r&&(r=[]);var o=this;this.summaryResolver=t,this.symbolResolver=e,this.errorRecorder=i,this.annotationCache=new Map,this.shallowAnnotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.staticCache=new Map,this.conversionMap=new Map,this.resolvedExternalReferences=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.initializeConversionMap(),n.forEach(function(t){return o._registerDecoratorOrConstructor(o.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return o._registerFunction(o.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Wt.Directive,[V,U]),this.annotationForParentClassWithSummaryKind.set(Wt.Pipe,[q]),this.annotationForParentClassWithSummaryKind.set(Wt.NgModule,[G]),this.annotationForParentClassWithSummaryKind.set(Wt.Injectable,[X,q,V,U,G])}return t.prototype.componentModuleUrl=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveExternalReference=function(t,e){var n=void 0;if(!e){var r=this.resolvedExternalReferences.get(n=t.moduleName+":"+t.name);if(r)return r}var i=this.symbolResolver.getSymbolByModule(t.moduleName,t.name,e),o=this.findSymbolDeclaration(i);return e||(this.symbolResolver.recordModuleNameForFileName(i.filePath,t.moduleName),this.symbolResolver.recordImportAs(o,i)),n&&this.resolvedExternalReferences.set(n,o),o},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.tryFindDeclaration=function(t,e,n){var r=this;return this.symbolResolver.ignoreErrorsFor(function(){return r.findDeclaration(t,e,n)})},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);if(e){var n=e.metadata;if(n&&"resolved"===n.__symbolic&&(n=n.symbol),n instanceof Ut)return this.findSymbolDeclaration(e.metadata)}return t},t.prototype.tryAnnotations=function(t){var e=this.errorRecorder;this.errorRecorder=function(t,e){};try{return this.annotations(t)}finally{this.errorRecorder=e}},t.prototype.annotations=function(t){var e=this;return this._annotations(t,function(t,n){return e.simplify(t,n)},this.annotationCache)},t.prototype.shallowAnnotations=function(t){var e=this;return this._annotations(t,function(t,n){return e.simplify(t,n,!0)},this.shallowAnnotationCache)},t.prototype._annotations=function(t,e,n){var r=n.get(t);if(!r){r=[];var i=this.getTypeMetadata(t),o=this.findParentType(t,i);if(o){var s=this.annotations(o);r.push.apply(r,f(s))}var a=[];if(i.decorators&&(a=e(t,i.decorators))&&r.push.apply(r,f(a)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var u=this.summaryResolver.resolveSummary(o);if(u&&u.type){var c=this.annotationForParentClassWithSummaryKind.get(u.type.summaryKind);c.some(function(t){return a.some(function(e){return t.isTypeOf(e)})})||this.reportError(Du(xu("Class "+t.name+" in "+t.filePath+" extends from a "+Wt[u.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+c.map(function(t){return t.ngMetadataName}).join(" or ")+" decorator to the class"),t),t)}}n.set(t,r.filter(function(t){return!!t}))}return r},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var i=this.findParentType(t,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(t){n[t]=o[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),o=[];n[r]&&o.push.apply(o,f(n[r])),n[r]=o,i&&i.decorators&&o.push.apply(o,f(e.simplify(t,i.decorators)))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){var e=this;if(!(t instanceof Ut))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var n=this.parameterCache.get(t);if(!n){var r=this.getTypeMetadata(t),i=this.findParentType(t,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var a=s.find(function(t){return"constructor"==t.__symbolic}),u=a.parameters||[],c=this.simplify(t,a.parameterDecorators||[]);n=[],u.forEach(function(r,i){var o=[],s=e.trySimplify(t,r);s&&o.push(s);var a=c?c[i]:null;a&&o.push.apply(o,f(a)),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(t,n)}return n}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);e={};var r=this.findParentType(t,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(t){var n=o[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype._staticMembers=function(t){var e=this.staticCache.get(t);if(!e){var n=this.getTypeMetadata(t);e=Object.keys(n.statics||{}),this.staticCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof Ut)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof Ut||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype.guards=function(t){var e,n;if(!(t instanceof Ut))return this.reportError(new Error("guards received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),{};var r=this._staticMembers(t),i={};try{for(var o=p(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.endsWith("TypeGuard")){var u=a.substr(0,a.length-"TypeGuard".length),c=void 0;u.endsWith("UseIf")?(u=a.substr(0,u.length-"UseIf".length),c="UseIf"):c=this.getStaticSymbol(t.filePath,t.name,[a]),i[u]=c}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,f([void 0],n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Injectable"),X),this.injectionToken=this.findDeclaration(vu,"InjectionToken"),this.opaqueToken=this.findDeclaration(vu,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(vu,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Host"),J),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Self"),Y),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"SkipSelf"),Z),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Inject"),M),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Optional"),$),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Attribute"),D),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"ContentChild"),j),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"ContentChildren"),R),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"ViewChild"),F),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"ViewChildren"),L),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Input"),K),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Output"),z),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Pipe"),q),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"HostBinding"),W),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"HostListener"),Q),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Directive"),V),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Component"),U),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"NgModule"),G),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Host"),J),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Self"),Y),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"SkipSelf"),Z),this._registerDecoratorOrConstructor(this.findDeclaration(vu,"Optional"),$)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e,n){void 0===n&&(n=!1);var r,i=this,o=Mu.empty,s=new Map;try{r=function t(e,n,r,a){function u(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function c(n){return t(e,n,r,0)}function l(n,o){if(n===e)return t(n,o,r+1,a);try{return t(n,o,r+1,a)}catch(t){if(!Eu(t))throw t;var s=t.chain?"references '"+t.symbol.name+"'":function u(t){if(t.summary)return t.summary;switch(t.message){case Su:if(t.context&&t.context.className)return"references non-exported class "+t.context.className;break;case Cu:return"is not initialized";case Tu:return"is a destructured variable";case Pu:return"could not be resolved";case Au:return t.context&&t.context.name?"calls '"+t.context.name+"'":"calls a function";case Nu:return t.context&&t.context.name?"references local variable "+t.context.name:"references a local variable"}return"contains the error"}(t);i.error({message:t.message,advise:t.advise,context:t.context,chain:{message:"'"+n.name+"' "+s,position:t.position,next:t.chain},symbol:n},e)}}return function n(h){var d,v,y,m;if(Ou(h))return h;if(h instanceof Array){var g=[];try{for(var _=p(h),b=_.next();!b.done;b=_.next()){var w=b.value;if(w&&"spread"===w.__symbolic){var x=c(w.expression);if(Array.isArray(x)){try{for(var E=p(x),S=E.next();!S.done;S=E.next())g.push(S.value)}catch(t){y={error:t}}finally{try{S&&!S.done&&(m=E.return)&&m.call(E)}finally{if(y)throw y.error}}continue}}var C=n(w);_u(C)||g.push(C)}}catch(t){d={error:t}}finally{try{b&&!b.done&&(v=_.return)&&v.call(_)}finally{if(d)throw d.error}}return g}if(h instanceof Ut)return h===i.injectionToken||i.conversionMap.has(h)||a>0&&!h.members.length?h:null!=(R=u(T=h))?l(T,R):T;if(h){if(h.__symbolic){var T=void 0;switch(h.__symbolic){case"binop":var P=n(h.left);if(_u(P))return P;var A=n(h.right);if(_u(A))return A;switch(h.operator){case"&&":return P&&A;case"||":return P||A;case"|":return P|A;case"^":return P^A;case"&":return P&A;case"==":return P==A;case"!=":return P!=A;case"===":return P===A;case"!==":return P!==A;case"<":return P<A;case">":return P>A;case"<=":return P<=A;case">=":return P>=A;case"<<":return P<<A;case">>":return P>>A;case"+":return P+A;case"-":return P-A;case"*":return P*A;case"/":return P/A;case"%":return P%A}return null;case"if":return n(n(h.condition)?h.thenExpression:h.elseExpression);case"pre":var N=n(h.operand);if(_u(N))return N;switch(h.operator){case"+":return N;case"-":return-N;case"!":return!N;case"~":return~N}return null;case"index":var k=c(h.expression),O=c(h.index);return k&&Ou(O)?k[O]:null;case"select":var M=h.member,I=e,D=n(h.expression);if(D instanceof Ut){var R,j=D.members.concat(M);return null!=(R=u(I=i.getStaticSymbol(D.filePath,D.name,j)))?l(I,R):I}return D&&Ou(M)?l(I,D[M]):null;case"reference":var L=o.resolve(h.name);if(L!=Mu.missing)return L;break;case"resolved":try{return n(h.symbol)}catch(t){throw Eu(t)&&null!=h.fileName&&null!=h.line&&null!=h.character&&(t.position={fileName:h.fileName,line:h.line,column:h.character}),t}case"class":case"function":return e;case"new":case"call":if((T=t(e,h.expression,r+1,0))instanceof Ut){if(T===i.injectionToken||T===i.opaqueToken)return e;var F=h.arguments||[],V=i.conversionMap.get(T);if(V){var B=F.map(function(t){return l(e,t)}).map(function(t){return _u(t)?void 0:t});return V(e,B)}return function H(t,a,u,c){if(a&&"function"==a.__symbolic){s.get(t)&&i.error({message:"Recursion is not supported",summary:"called '"+t.name+"' recursively",value:a},t);try{var p=a.value;if(p&&(0!=r||"error"!=p.__symbolic)){var h=a.parameters,d=a.defaults;u=u.map(function(t){return l(e,t)}).map(function(t){return _u(t)?void 0:t}),d&&d.length>u.length&&u.push.apply(u,f(d.slice(u.length).map(function(t){return n(t)}))),s.set(t,!0);for(var v=Mu.build(),y=0;y<h.length;y++)v.define(h[y],u[y]);var m,g=o;try{o=v.done(),m=l(t,p)}finally{o=g}return m}}finally{s.delete(t)}}if(0===r)return mu;var _=void 0;if(c&&"resolved"==c.__symbolic){var b=c.line,w=c.character,x=c.fileName;null!=x&&null!=b&&null!=w&&(_={fileName:x,line:b,column:w})}i.error({message:Au,context:t,value:a,position:_},e)}(T,u(T),F,h.expression)}return mu;case"error":var U=h.message;return i.error(null!=h.line?{message:U,context:h.context,value:h,position:{fileName:h.fileName,line:h.line,column:h.character}}:{message:U,context:h.context},e),mu;case"ignore":return h}return null}return function q(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);_u(i)||(yu.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(h,function(o,s){if(gu.has(s)){if("useValue"===s&&"provide"in h){var u=n(h.provide);if(u===i.ROUTES||u==i.ANALYZE_FOR_ENTRY_COMPONENTS)return n(o)}return function c(n){return t(e,n,r,a+1)}(o)}return n(o)})}return mu}(n)}(t,e,0,n?1:0)}catch(e){if(!this.errorRecorder)throw Du(e,t);this.reportError(e,t)}if(!_u(r))return r},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(Du(t,e),e&&e.filePath||n)},t.prototype.error=function(t,e){this.reportError(xu(t.message,t.summary,t.advise,t.position,t.symbol,t.context,t.chain),e)},t}(),wu="ngMetadataError";function xu(t,e,n,r,i,o,s){var a=pt(t);return a[wu]=!0,n&&(a.advise=n),r&&(a.position=r),e&&(a.summary=e),o&&(a.context=o),s&&(a.chain=s),i&&(a.symbol=i),a}function Eu(t){return!!t[wu]}var Su="Reference to non-exported class",Cu="Variable not initialized",Tu="Destructuring not supported",Pu="Could not resolve type",Au="Function call not supported",Nu="Reference to a local symbol",ku="Lambda not supported";function Ou(t){return null===t||"function"!=typeof t&&"object"!=typeof t}var Mu=function(){function t(){}return t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Iu(e):t.empty}}},t.missing={},t.empty={resolve:function(e){return t.missing}},t}(),Iu=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return o(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Mu.missing},e}(Mu);function Du(t,e){return Eu(t)?function r(t){var e=pt(function t(e,n){if(void 0===n&&(n=0),!e)return"";var r=e.position?e.position.fileName+"("+(e.position.line+1)+","+(e.position.column+1)+")":"",i=(r&&0===n?r+": ":"")+e.message+(r&&0!==n?" at "+r:"");return""+function t(e){if(e<=0)return"";if(e<6)return[""," "," "," "," "," "][e];var n=t(Math.floor(e/2));return n+n+(e%2==1?" ":"")}(n)+i+(e.next&&"\n"+t(e.next,n+2)||"")}(t)+".");return e[du]=!0,e.chain=t,e.position=t.position,e}(function t(e,n){return{message:function r(t,e){switch(t){case Su:if(e&&e.className)return"References to a non-exported class are not supported in decorators but "+e.className+" was referenced.";break;case Cu:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case Tu:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case Pu:if(e&&e.typeName)return"Could not resolve type "+e.typeName;break;case Au:return e&&e.name?"Function calls are not supported in decorators but '"+e.name+"' was called":"Function calls are not supported in decorators";case Nu:if(e&&e.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+e.name+"' was referenced";break;case ku:return"Function expressions are not supported in decorators"}return t}(e.message,e.context)+(e.symbol?" in '"+e.symbol.name+"'":""),position:e.position,next:e.next?t(e.next,n):n?{message:n}:void 0}}({message:"Error during template compile of '"+e.name+"'",position:t.position,next:{message:t.message,next:t.chain,context:t.context,symbol:t.symbol}},t.advise||function n(t,e){switch(t){case Su:if(e&&e.className)return"Consider exporting '"+e.className+"'";break;case Tu:return"Consider simplifying to avoid destructuring";case Nu:if(e&&e.name)return"Consider exporting '"+e.name+"'";break;case ku:return"Consider changing the function expression into an exported function"}}(t.message,t.context))):t}
409
409
  /**
410
410
  * @license
411
411
  * Copyright Google Inc. All Rights Reserved.
412
412
  *
413
413
  * Use of this source code is governed by an MIT-style license that can be
414
414
  * found in the LICENSE file at https://angular.io/license
415
- */var Du=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Ns(t))},t.prototype.toSummaryFileName=function(t,e){return this.host.toSummaryFileName(t,e)},t.prototype.fromSummaryFileName=function(t,e){return this.host.fromSummaryFileName(t,e)},t.prototype.resolveSummary=function(t){var e=t.members.length?this.staticSymbolCache.get(t.filePath,t.name):t,n=this.summaryCache.get(e);return n||(this._loadSummaryFile(t.filePath),n=this.summaryCache.get(t)),e===t&&n||null},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t)?Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t}):null},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this,n=this.loadedFilePaths.get(t);if(null!=n)return n;var r=null;if(this.isLibraryFile(t)){var i=function o(t){return t.replace(Ss,"")+".ngsummary.json"}(t);try{r=this.host.loadSummary(i)}catch(t){throw console.error("Error loading summary file "+i),t}}if(this.loadedFilePaths.set(t,n=null!=r),r){var s=function a(t,e,n,r){return new hu(t,e).deserialize(n,r)}(this.staticSymbolCache,this,t,r),u=s.moduleName,c=s.importAs;s.summaries.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),u&&this.knownFileNameToModuleNames.set(t,u),c.forEach(function(t){e.importAs.set(t.symbol,t.importAs)})}return n},t}(),ju=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(){return!1},t.prototype.toSummaryFileName=function(t){return t},t.prototype.fromSummaryFileName=function(t){return t},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.getKnownModuleName=function(t){return null},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}();
415
+ */var Ru=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Ns(t))},t.prototype.toSummaryFileName=function(t,e){return this.host.toSummaryFileName(t,e)},t.prototype.fromSummaryFileName=function(t,e){return this.host.fromSummaryFileName(t,e)},t.prototype.resolveSummary=function(t){var e=t.members.length?this.staticSymbolCache.get(t.filePath,t.name):t,n=this.summaryCache.get(e);return n||(this._loadSummaryFile(t.filePath),n=this.summaryCache.get(t)),e===t&&n||null},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t)?Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t}):null},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this,n=this.loadedFilePaths.get(t);if(null!=n)return n;var r=null;if(this.isLibraryFile(t)){var i=function o(t){return t.replace(Ss,"")+".ngsummary.json"}(t);try{r=this.host.loadSummary(i)}catch(t){throw console.error("Error loading summary file "+i),t}}if(this.loadedFilePaths.set(t,n=null!=r),r){var s=function a(t,e,n,r){return new hu(t,e).deserialize(n,r)}(this.staticSymbolCache,this,t,r),u=s.moduleName,c=s.importAs;s.summaries.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),u&&this.knownFileNameToModuleNames.set(t,u),c.forEach(function(t){e.importAs.set(t.symbol,t.importAs)})}return n},t}(),ju=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(){return!1},t.prototype.toSummaryFileName=function(t){return t},t.prototype.fromSummaryFileName=function(t){return t},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.getKnownModuleName=function(t){return null},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}();
416
416
  /**
417
417
  * @license
418
418
  * Copyright Google Inc. All Rights Reserved.
@@ -441,7 +441,7 @@ var du="ngFormattedMessage",vu="@angular/core",yu=/^\$.*\$$/,mu={__symbolic:"ign
441
441
  * Use of this source code is governed by an MIT-style license that can be
442
442
  * found in the LICENSE file at https://angular.io/license
443
443
  */
444
- function Lu(){return new Vu(".")}!function(t){function e(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}o(e,t),e.prototype.createReturnStmt=function(t){new cs(new ns(this._evalExportedVars.map(function(t){return new es(t,_s(t),!1)}))).visitStatement(this,t)},e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){return this._emitReferenceToExternal(t,this.reflector.resolveExternalReference(t.value),e),null},e.prototype.visitWrappedNodeExpr=function(t,e){return this._emitReferenceToExternal(t,t.node,e),null},e.prototype.visitDeclareVarStmt=function(e,n){return e.hasModifier(Bo.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareVarStmt.call(this,e,n)},e.prototype.visitDeclareFunctionStmt=function(e,n){return e.hasModifier(Bo.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareFunctionStmt.call(this,e,n)},e.prototype.visitDeclareClassStmt=function(e,n){return e.hasModifier(Bo.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareClassStmt.call(this,e,n)},e.prototype._emitReferenceToExternal=function(t,e,n){var r=this._evalArgValues.indexOf(e);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(e);var i=Gt({reference:e})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}n.print(t,this._evalArgNames[r])}}(function(t){function e(){return t.call(this,!1)||this}return o(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitWrappedNodeExpr=function(t,e){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===Mo.This)n.print(e,"self");else{if(e.builtin===Mo.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name),t.value&&(e.print(t," = "),t.value.visitExpression(this,e)),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof Do&&r.builtin===Mo.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function"+(t.name?" "+t.name:"")+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Zs.name+") {"),e.incIndent();var n=[Js.set(Zs.prop("stack")).toDeclStmt(null,[Bo.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Ro.ConcatArray:e="concat";break;case Ro.SubscribeObservable:e="subscribe";break;case Ro.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(ea));var Fu,Vu=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=function r(t,e){var n=Hu(encodeURI(e)),r=Hu(t);if(null!=n[Fu.Scheme])return Uu(n);n[Fu.Scheme]=r[Fu.Scheme];for(var i=Fu.Scheme;i<=Fu.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Fu.Path][0])return Uu(n);var o=r[Fu.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[Fu.Path],n[Fu.Path]=o,Uu(n)}
444
+ function Lu(){return new Vu(".")}!function(t){function e(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}o(e,t),e.prototype.createReturnStmt=function(t){new cs(new ns(this._evalExportedVars.map(function(t){return new es(t,_s(t),!1)}))).visitStatement(this,t)},e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){return this._emitReferenceToExternal(t,this.reflector.resolveExternalReference(t.value),e),null},e.prototype.visitWrappedNodeExpr=function(t,e){return this._emitReferenceToExternal(t,t.node,e),null},e.prototype.visitDeclareVarStmt=function(e,n){return e.hasModifier(Bo.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareVarStmt.call(this,e,n)},e.prototype.visitDeclareFunctionStmt=function(e,n){return e.hasModifier(Bo.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareFunctionStmt.call(this,e,n)},e.prototype.visitDeclareClassStmt=function(e,n){return e.hasModifier(Bo.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareClassStmt.call(this,e,n)},e.prototype._emitReferenceToExternal=function(t,e,n){var r=this._evalArgValues.indexOf(e);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(e);var i=Gt({reference:e})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}n.print(t,this._evalArgNames[r])}}(function(t){function e(){return t.call(this,!1)||this}return o(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitWrappedNodeExpr=function(t,e){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===Mo.This)n.print(e,"self");else{if(e.builtin===Mo.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name),t.value&&(e.print(t," = "),t.value.visitExpression(this,e)),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof Ro&&r.builtin===Mo.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function"+(t.name?" "+t.name:"")+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Zs.name+") {"),e.incIndent();var n=[Js.set(Zs.prop("stack")).toDeclStmt(null,[Bo.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Do.ConcatArray:e="concat";break;case Do.SubscribeObservable:e="subscribe";break;case Do.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(ea));var Fu,Vu=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=function r(t,e){var n=Hu(encodeURI(e)),r=Hu(t);if(null!=n[Fu.Scheme])return Uu(n);n[Fu.Scheme]=r[Fu.Scheme];for(var i=Fu.Scheme;i<=Fu.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Fu.Path][0])return Uu(n);var o=r[Fu.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[Fu.Path],n[Fu.Path]=o,Uu(n)}
445
445
  /**
446
446
  * @license
447
447
  * Copyright Google Inc. All Rights Reserved.
@@ -505,7 +505,7 @@ var ec=r.ModifierFlags?function(t){return!!(r.getCombinedModifierFlags(t)&r.Modi
505
505
  *
506
506
  * Use of this source code is governed by an MIT-style license that can be
507
507
  * found in the LICENSE file at https://angular.io/license
508
- */var Mc=r.SyntaxKind.SpreadElement||r.SyntaxKind.SpreadElementExpression;function Ic(t,e){var n=t.expression;if(n.kind===r.SyntaxKind.PropertyAccessExpression){var i=n.name;if(i.kind==r.SyntaxKind.Identifier)return i.text===e}return!1}function Rc(t,e){var n=t.expression;return n.kind===r.SyntaxKind.Identifier&&n.text===e}function Dc(t,e,n,r){if(!n.has(t)&&(n.set(t,e),e&&(function i(t){return t&&t.module&&!!t.name&&kc(t)}(t)||function o(t){return t&&t.module&&t.default&&kc(t)}(t))&&null==t.line)){var s=Vc(e,r);null!=s.line&&(t.line=s.line),null!=s.character&&(t.character=s.character)}return t}function jc(t,e){return!r.forEachChild(t,function(t){return!e(t)})}function Lc(t){return Object(t)!==t}function Fc(t){return void 0!==t}function Vc(t,e){return t&&(e=e||function n(t){for(;t&&t.kind!=r.SyntaxKind.SourceFile;)t=t.parent;return t}(t))?r.getLineAndCharacterOfPosition(e,t.getStart(e)):{}}function Bc(t,e,n,r){var i=a({__symbolic:"error",message:t},Vc(e,r));return n&&(i.context=n),i}var Hc=function(){function t(t,e,n,r){void 0===n&&(n={}),this.symbols=t,this.nodeMap=e,this.options=n,this.recordExport=r}return t.prototype.nameOf=function(t){if(t&&t.kind==r.SyntaxKind.Identifier)return t.text;var e=t&&this.evaluateNode(t);return Oc(e)||"string"==typeof e?e:Bc("Name expected",t,{received:t&&t.getText()||"<missing>"})},t.prototype.isFoldable=function(t){return this.isFoldableWorker(t,new Map)},t.prototype.isFoldableWorker=function(t,e){var n=this;if(t)switch(t.kind){case r.SyntaxKind.ObjectLiteralExpression:return jc(t,function(t){return t.kind===r.SyntaxKind.PropertyAssignment&&n.isFoldableWorker(t.initializer,e)});case r.SyntaxKind.ArrayLiteralExpression:return jc(t,function(t){return n.isFoldableWorker(t,e)});case r.SyntaxKind.CallExpression:var i=t;if(Ic(i,"concat")&&1===Kc(i.arguments).length){var o=i.expression.expression;if(this.isFoldableWorker(o,e)&&this.isFoldableWorker(i.arguments[0],e)){var s=this.evaluateNode(o);if(s&&Array.isArray(s))return!0}}return!(!Rc(i,"CONST_EXPR")||1!==Kc(i.arguments).length)&&this.isFoldableWorker(i.arguments[0],e);case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:case r.SyntaxKind.NumericLiteral:case r.SyntaxKind.NullKeyword:case r.SyntaxKind.TrueKeyword:case r.SyntaxKind.FalseKeyword:case r.SyntaxKind.TemplateHead:case r.SyntaxKind.TemplateMiddle:case r.SyntaxKind.TemplateTail:return!0;case r.SyntaxKind.ParenthesizedExpression:return this.isFoldableWorker(t.expression,e);case r.SyntaxKind.BinaryExpression:var a=t;switch(a.operatorToken.kind){case r.SyntaxKind.PlusToken:case r.SyntaxKind.MinusToken:case r.SyntaxKind.AsteriskToken:case r.SyntaxKind.SlashToken:case r.SyntaxKind.PercentToken:case r.SyntaxKind.AmpersandAmpersandToken:case r.SyntaxKind.BarBarToken:return this.isFoldableWorker(a.left,e)&&this.isFoldableWorker(a.right,e);default:return!1}case r.SyntaxKind.PropertyAccessExpression:return this.isFoldableWorker(t.expression,e);case r.SyntaxKind.ElementAccessExpression:var u=t;return this.isFoldableWorker(u.expression,e)&&this.isFoldableWorker(u.argumentExpression,e);case r.SyntaxKind.Identifier:var c=this.symbols.resolve(t.text);if(void 0!==c&&Lc(c))return!0;break;case r.SyntaxKind.TemplateExpression:return t.templateSpans.every(function(t){return n.isFoldableWorker(t.expression,e)})}return!1},t.prototype.evaluateNode=function(t,e){var n,i=this,o=this;function s(t,e){if(o.options.substituteExpression){var n=o.options.substituteExpression(t,e);o.recordExport&&n!=t&&Ac(n)&&o.recordExport(n.name,t),t=n}return Dc(t,e,o.nodeMap)}function u(t){return!o.options.verboseInvalidExpression&&Oc(t)}var c=function(e,n){var r=i.symbols.resolve(e,n);return void 0===r?s({__symbolic:"reference",name:e},t):r&&kc(r)?s(a({},r),t):r};switch(t.kind){case r.SyntaxKind.ObjectLiteralExpression:var l={},h=[];return r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ShorthandPropertyAssignment:case r.SyntaxKind.PropertyAssignment:var e=t;e.name.kind==r.SyntaxKind.StringLiteral&&h.push(e.name.text);var o=i.nameOf(e.name);if(u(o))return n=o,!0;var a=Uc(e)?i.evaluateNode(e.initializer,!0):c(o,!0);if(u(a))return n=a,!0;l[o]=Uc(e)?s(a,e.initializer):a}}),n||(this.options.quotedNames&&h.length&&(l.$quoted$=h),s(l,t));case r.SyntaxKind.ArrayLiteralExpression:var f=[];return r.forEachChild(t,function(t){var e,r,o=i.evaluateNode(t,!0);if(u(o))return n=o,!0;if(function s(t){return t&&"spread"===t.__symbolic}(o)&&Array.isArray(o.expression))try{for(var a=p(o.expression),c=a.next();!c.done;c=a.next())f.push(c.value)}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else f.push(o)}),n||s(f,t);case Mc:return s({__symbolic:"spread",expression:this.evaluateNode(t.expression)},t);case r.SyntaxKind.CallExpression:var d=t;if(Rc(d,"forwardRef")&&1===Kc(d.arguments).length){var v=d.arguments[0];if(v.kind==r.SyntaxKind.ArrowFunction)return s(this.evaluateNode(v.body),t)}var y=Kc(d.arguments).map(function(t){return i.evaluateNode(t)});if(this.isFoldable(d)&&Ic(d,"concat")){var m=this.evaluateNode(d.expression.expression);return u(m)?m:m.concat(y[0])}if(Rc(d,"CONST_EXPR")&&1===Kc(d.arguments).length)return s(y[0],t);var g=this.evaluateNode(d.expression);if(u(g))return s(g,t);var _={__symbolic:"call",expression:g};return y&&y.length&&(_.arguments=y),s(_,t);case r.SyntaxKind.NewExpression:var b=t,w=Kc(b.arguments).map(function(t){return i.evaluateNode(t)}),x=this.evaluateNode(b.expression);if(Oc(x))return s(x,t);var E={__symbolic:"new",expression:x};return w.length&&(E.arguments=w),s(E,t);case r.SyntaxKind.PropertyAccessExpression:var S=t,C=this.evaluateNode(S.expression);if(u(C))return s(C,t);var T=this.nameOf(S.name);return u(T)?s(T,t):C&&this.isFoldable(S.expression)?C[T]:Nc(C)?s({__symbolic:"reference",module:C.module,name:T},t):s({__symbolic:"select",expression:C,member:T},t);case r.SyntaxKind.ElementAccessExpression:var P=t,A=this.evaluateNode(P.expression);if(u(A))return s(A,t);if(!P.argumentExpression)return s(Bc("Expression form not supported",t),t);var N=this.evaluateNode(P.argumentExpression);return u(A)?s(A,t):this.isFoldable(P.expression)&&this.isFoldable(P.argumentExpression)?A[N]:s({__symbolic:"index",expression:A,index:N},t);case r.SyntaxKind.Identifier:return c(t.text,e);case r.SyntaxKind.TypeReference:var k=t,O=k.typeName,M=function(t){if(O.kind===r.SyntaxKind.QualifiedName){var e=t,n=i.evaluateNode(e.left);return Nc(n)?s({__symbolic:"reference",module:n.module,name:e.right.text},t):{__symbolic:"select",expression:n,member:e.right.text}}var o=O,a=i.symbols.resolve(o.text);return u(a)||kc(a)?s(a,t):s(Bc("Could not resolve type",t,{typeName:o.text}),t)}(O);if(u(M))return s(M,t);if(!Nc(M)&&k.typeArguments&&k.typeArguments.length){var I=k.typeArguments.map(function(t){return i.evaluateNode(t)});M.arguments=I}return s(M,t);case r.SyntaxKind.UnionType:for(var R=t.types.filter(function(t){return t.kind!=r.SyntaxKind.NullKeyword&&t.kind!=r.SyntaxKind.UndefinedKeyword}).map(function(t){return i.evaluateNode(t)}),D=null,j=0;j<R.length;j++){var L=R[j];if(!kc(L))return L;D&&(L.name!=D.name||L.module!=D.module||L.arguments)||(D=L)}if(D)return D;break;case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:case r.SyntaxKind.TemplateHead:case r.SyntaxKind.TemplateTail:case r.SyntaxKind.TemplateMiddle:return t.text;case r.SyntaxKind.NumericLiteral:return parseFloat(t.text);case r.SyntaxKind.AnyKeyword:return s({__symbolic:"reference",name:"any"},t);case r.SyntaxKind.StringKeyword:return s({__symbolic:"reference",name:"string"},t);case r.SyntaxKind.NumberKeyword:return s({__symbolic:"reference",name:"number"},t);case r.SyntaxKind.BooleanKeyword:return s({__symbolic:"reference",name:"boolean"},t);case r.SyntaxKind.ArrayType:return s({__symbolic:"reference",name:"Array",arguments:[this.evaluateNode(t.elementType)]},t);case r.SyntaxKind.NullKeyword:return null;case r.SyntaxKind.TrueKeyword:return!0;case r.SyntaxKind.FalseKeyword:return!1;case r.SyntaxKind.ParenthesizedExpression:case r.SyntaxKind.TypeAssertionExpression:return this.evaluateNode(t.expression);case r.SyntaxKind.PrefixUnaryExpression:var F=t,V=this.evaluateNode(F.operand);if(Fc(V)&&Lc(V))switch(F.operator){case r.SyntaxKind.PlusToken:return+V;case r.SyntaxKind.MinusToken:return-V;case r.SyntaxKind.TildeToken:return~V;case r.SyntaxKind.ExclamationToken:return!V}var B=void 0;switch(F.operator){case r.SyntaxKind.PlusToken:B="+";break;case r.SyntaxKind.MinusToken:B="-";break;case r.SyntaxKind.TildeToken:B="~";break;case r.SyntaxKind.ExclamationToken:B="!";break;default:return}return s({__symbolic:"pre",operator:B,operand:V},t);case r.SyntaxKind.BinaryExpression:var H=t,U=this.evaluateNode(H.left),q=this.evaluateNode(H.right);if(Fc(U)&&Fc(q)){if(Lc(U)&&Lc(q))switch(H.operatorToken.kind){case r.SyntaxKind.BarBarToken:return U||q;case r.SyntaxKind.AmpersandAmpersandToken:return U&&q;case r.SyntaxKind.AmpersandToken:return U&q;case r.SyntaxKind.BarToken:return U|q;case r.SyntaxKind.CaretToken:return U^q;case r.SyntaxKind.EqualsEqualsToken:return U==q;case r.SyntaxKind.ExclamationEqualsToken:return U!=q;case r.SyntaxKind.EqualsEqualsEqualsToken:return U===q;case r.SyntaxKind.ExclamationEqualsEqualsToken:return U!==q;case r.SyntaxKind.LessThanToken:return U<q;case r.SyntaxKind.GreaterThanToken:return U>q;case r.SyntaxKind.LessThanEqualsToken:return U<=q;case r.SyntaxKind.GreaterThanEqualsToken:return U>=q;case r.SyntaxKind.LessThanLessThanToken:return U<<q;case r.SyntaxKind.GreaterThanGreaterThanToken:return U>>q;case r.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:return U>>>q;case r.SyntaxKind.PlusToken:return U+q;case r.SyntaxKind.MinusToken:return U-q;case r.SyntaxKind.AsteriskToken:return U*q;case r.SyntaxKind.SlashToken:return U/q;case r.SyntaxKind.PercentToken:return U%q}return s({__symbolic:"binop",operator:H.operatorToken.getText(),left:U,right:q},t)}break;case r.SyntaxKind.ConditionalExpression:var K=t,z=this.evaluateNode(K.condition),W=this.evaluateNode(K.whenTrue),Q=this.evaluateNode(K.whenFalse);return Lc(z)?z?W:Q:s({__symbolic:"if",condition:z,thenExpression:W,elseExpression:Q},t);case r.SyntaxKind.FunctionExpression:case r.SyntaxKind.ArrowFunction:return s(Bc("Lambda not supported",t),t);case r.SyntaxKind.TaggedTemplateExpression:return s(Bc("Tagged template expressions are not supported in metadata",t),t);case r.SyntaxKind.TemplateExpression:var G=t;return this.isFoldable(t)?G.templateSpans.reduce(function(t,e){return t+i.evaluateNode(e.expression)+i.evaluateNode(e.literal)},this.evaluateNode(G.head)):G.templateSpans.reduce(function(t,e){var n=i.evaluateNode(e.expression),r=i.evaluateNode(e.literal);if(u(n))return n;if(u(r))return r;if("string"==typeof t&&"string"==typeof n&&"string"==typeof r)return t+n+r;var o=n;return""!==t&&(o={__symbolic:"binop",operator:"+",left:t,right:n}),""!=r&&(o={__symbolic:"binop",operator:"+",left:o,right:r}),o},this.evaluateNode(G.head));case r.SyntaxKind.AsExpression:return this.evaluateNode(t.expression);case r.SyntaxKind.ClassExpression:return{__symbolic:"class"}}return s(Bc("Expression form not supported",t),t)},t}();function Uc(t){return t.kind==r.SyntaxKind.PropertyAssignment}var qc=r.createNodeArray();function Kc(t){return t||qc}
508
+ */var Mc=r.SyntaxKind.SpreadElement||r.SyntaxKind.SpreadElementExpression;function Ic(t,e){var n=t.expression;if(n.kind===r.SyntaxKind.PropertyAccessExpression){var i=n.name;if(i.kind==r.SyntaxKind.Identifier)return i.text===e}return!1}function Dc(t,e){var n=t.expression;return n.kind===r.SyntaxKind.Identifier&&n.text===e}function Rc(t,e,n,r){if(!n.has(t)&&(n.set(t,e),e&&(function i(t){return t&&t.module&&!!t.name&&kc(t)}(t)||function o(t){return t&&t.module&&t.default&&kc(t)}(t))&&null==t.line)){var s=Vc(e,r);null!=s.line&&(t.line=s.line),null!=s.character&&(t.character=s.character)}return t}function jc(t,e){return!r.forEachChild(t,function(t){return!e(t)})}function Lc(t){return Object(t)!==t}function Fc(t){return void 0!==t}function Vc(t,e){return t&&(e=e||function n(t){for(;t&&t.kind!=r.SyntaxKind.SourceFile;)t=t.parent;return t}(t))?r.getLineAndCharacterOfPosition(e,t.getStart(e)):{}}function Bc(t,e,n,r){var i=a({__symbolic:"error",message:t},Vc(e,r));return n&&(i.context=n),i}var Hc=function(){function t(t,e,n,r){void 0===n&&(n={}),this.symbols=t,this.nodeMap=e,this.options=n,this.recordExport=r}return t.prototype.nameOf=function(t){if(t&&t.kind==r.SyntaxKind.Identifier)return t.text;var e=t&&this.evaluateNode(t);return Oc(e)||"string"==typeof e?e:Bc("Name expected",t,{received:t&&t.getText()||"<missing>"})},t.prototype.isFoldable=function(t){return this.isFoldableWorker(t,new Map)},t.prototype.isFoldableWorker=function(t,e){var n=this;if(t)switch(t.kind){case r.SyntaxKind.ObjectLiteralExpression:return jc(t,function(t){return t.kind===r.SyntaxKind.PropertyAssignment&&n.isFoldableWorker(t.initializer,e)});case r.SyntaxKind.ArrayLiteralExpression:return jc(t,function(t){return n.isFoldableWorker(t,e)});case r.SyntaxKind.CallExpression:var i=t;if(Ic(i,"concat")&&1===Kc(i.arguments).length){var o=i.expression.expression;if(this.isFoldableWorker(o,e)&&this.isFoldableWorker(i.arguments[0],e)){var s=this.evaluateNode(o);if(s&&Array.isArray(s))return!0}}return!(!Dc(i,"CONST_EXPR")||1!==Kc(i.arguments).length)&&this.isFoldableWorker(i.arguments[0],e);case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:case r.SyntaxKind.NumericLiteral:case r.SyntaxKind.NullKeyword:case r.SyntaxKind.TrueKeyword:case r.SyntaxKind.FalseKeyword:case r.SyntaxKind.TemplateHead:case r.SyntaxKind.TemplateMiddle:case r.SyntaxKind.TemplateTail:return!0;case r.SyntaxKind.ParenthesizedExpression:return this.isFoldableWorker(t.expression,e);case r.SyntaxKind.BinaryExpression:var a=t;switch(a.operatorToken.kind){case r.SyntaxKind.PlusToken:case r.SyntaxKind.MinusToken:case r.SyntaxKind.AsteriskToken:case r.SyntaxKind.SlashToken:case r.SyntaxKind.PercentToken:case r.SyntaxKind.AmpersandAmpersandToken:case r.SyntaxKind.BarBarToken:return this.isFoldableWorker(a.left,e)&&this.isFoldableWorker(a.right,e);default:return!1}case r.SyntaxKind.PropertyAccessExpression:return this.isFoldableWorker(t.expression,e);case r.SyntaxKind.ElementAccessExpression:var u=t;return this.isFoldableWorker(u.expression,e)&&this.isFoldableWorker(u.argumentExpression,e);case r.SyntaxKind.Identifier:var c=this.symbols.resolve(t.text);if(void 0!==c&&Lc(c))return!0;break;case r.SyntaxKind.TemplateExpression:return t.templateSpans.every(function(t){return n.isFoldableWorker(t.expression,e)})}return!1},t.prototype.evaluateNode=function(t,e){var n,i=this,o=this;function s(t,e){if(o.options.substituteExpression){var n=o.options.substituteExpression(t,e);o.recordExport&&n!=t&&Ac(n)&&o.recordExport(n.name,t),t=n}return Rc(t,e,o.nodeMap)}function u(t){return!o.options.verboseInvalidExpression&&Oc(t)}var c=function(e,n){var r=i.symbols.resolve(e,n);return void 0===r?s({__symbolic:"reference",name:e},t):r&&kc(r)?s(a({},r),t):r};switch(t.kind){case r.SyntaxKind.ObjectLiteralExpression:var l={},h=[];return r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ShorthandPropertyAssignment:case r.SyntaxKind.PropertyAssignment:var e=t;e.name.kind==r.SyntaxKind.StringLiteral&&h.push(e.name.text);var o=i.nameOf(e.name);if(u(o))return n=o,!0;var a=Uc(e)?i.evaluateNode(e.initializer,!0):c(o,!0);if(u(a))return n=a,!0;l[o]=Uc(e)?s(a,e.initializer):a}}),n||(this.options.quotedNames&&h.length&&(l.$quoted$=h),s(l,t));case r.SyntaxKind.ArrayLiteralExpression:var f=[];return r.forEachChild(t,function(t){var e,r,o=i.evaluateNode(t,!0);if(u(o))return n=o,!0;if(function s(t){return t&&"spread"===t.__symbolic}(o)&&Array.isArray(o.expression))try{for(var a=p(o.expression),c=a.next();!c.done;c=a.next())f.push(c.value)}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else f.push(o)}),n||s(f,t);case Mc:return s({__symbolic:"spread",expression:this.evaluateNode(t.expression)},t);case r.SyntaxKind.CallExpression:var d=t;if(Dc(d,"forwardRef")&&1===Kc(d.arguments).length){var v=d.arguments[0];if(v.kind==r.SyntaxKind.ArrowFunction)return s(this.evaluateNode(v.body),t)}var y=Kc(d.arguments).map(function(t){return i.evaluateNode(t)});if(this.isFoldable(d)&&Ic(d,"concat")){var m=this.evaluateNode(d.expression.expression);return u(m)?m:m.concat(y[0])}if(Dc(d,"CONST_EXPR")&&1===Kc(d.arguments).length)return s(y[0],t);var g=this.evaluateNode(d.expression);if(u(g))return s(g,t);var _={__symbolic:"call",expression:g};return y&&y.length&&(_.arguments=y),s(_,t);case r.SyntaxKind.NewExpression:var b=t,w=Kc(b.arguments).map(function(t){return i.evaluateNode(t)}),x=this.evaluateNode(b.expression);if(Oc(x))return s(x,t);var E={__symbolic:"new",expression:x};return w.length&&(E.arguments=w),s(E,t);case r.SyntaxKind.PropertyAccessExpression:var S=t,C=this.evaluateNode(S.expression);if(u(C))return s(C,t);var T=this.nameOf(S.name);return u(T)?s(T,t):C&&this.isFoldable(S.expression)?C[T]:Nc(C)?s({__symbolic:"reference",module:C.module,name:T},t):s({__symbolic:"select",expression:C,member:T},t);case r.SyntaxKind.ElementAccessExpression:var P=t,A=this.evaluateNode(P.expression);if(u(A))return s(A,t);if(!P.argumentExpression)return s(Bc("Expression form not supported",t),t);var N=this.evaluateNode(P.argumentExpression);return u(A)?s(A,t):this.isFoldable(P.expression)&&this.isFoldable(P.argumentExpression)?A[N]:s({__symbolic:"index",expression:A,index:N},t);case r.SyntaxKind.Identifier:return c(t.text,e);case r.SyntaxKind.TypeReference:var k=t,O=k.typeName,M=function(t){if(O.kind===r.SyntaxKind.QualifiedName){var e=t,n=i.evaluateNode(e.left);return Nc(n)?s({__symbolic:"reference",module:n.module,name:e.right.text},t):{__symbolic:"select",expression:n,member:e.right.text}}var o=O,a=i.symbols.resolve(o.text);return u(a)||kc(a)?s(a,t):s(Bc("Could not resolve type",t,{typeName:o.text}),t)}(O);if(u(M))return s(M,t);if(!Nc(M)&&k.typeArguments&&k.typeArguments.length){var I=k.typeArguments.map(function(t){return i.evaluateNode(t)});M.arguments=I}return s(M,t);case r.SyntaxKind.UnionType:for(var D=t.types.filter(function(t){return t.kind!=r.SyntaxKind.NullKeyword&&t.kind!=r.SyntaxKind.UndefinedKeyword}).map(function(t){return i.evaluateNode(t)}),R=null,j=0;j<D.length;j++){var L=D[j];if(!kc(L))return L;R&&(L.name!=R.name||L.module!=R.module||L.arguments)||(R=L)}if(R)return R;break;case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:case r.SyntaxKind.TemplateHead:case r.SyntaxKind.TemplateTail:case r.SyntaxKind.TemplateMiddle:return t.text;case r.SyntaxKind.NumericLiteral:return parseFloat(t.text);case r.SyntaxKind.AnyKeyword:return s({__symbolic:"reference",name:"any"},t);case r.SyntaxKind.StringKeyword:return s({__symbolic:"reference",name:"string"},t);case r.SyntaxKind.NumberKeyword:return s({__symbolic:"reference",name:"number"},t);case r.SyntaxKind.BooleanKeyword:return s({__symbolic:"reference",name:"boolean"},t);case r.SyntaxKind.ArrayType:return s({__symbolic:"reference",name:"Array",arguments:[this.evaluateNode(t.elementType)]},t);case r.SyntaxKind.NullKeyword:return null;case r.SyntaxKind.TrueKeyword:return!0;case r.SyntaxKind.FalseKeyword:return!1;case r.SyntaxKind.ParenthesizedExpression:case r.SyntaxKind.TypeAssertionExpression:return this.evaluateNode(t.expression);case r.SyntaxKind.PrefixUnaryExpression:var F=t,V=this.evaluateNode(F.operand);if(Fc(V)&&Lc(V))switch(F.operator){case r.SyntaxKind.PlusToken:return+V;case r.SyntaxKind.MinusToken:return-V;case r.SyntaxKind.TildeToken:return~V;case r.SyntaxKind.ExclamationToken:return!V}var B=void 0;switch(F.operator){case r.SyntaxKind.PlusToken:B="+";break;case r.SyntaxKind.MinusToken:B="-";break;case r.SyntaxKind.TildeToken:B="~";break;case r.SyntaxKind.ExclamationToken:B="!";break;default:return}return s({__symbolic:"pre",operator:B,operand:V},t);case r.SyntaxKind.BinaryExpression:var H=t,U=this.evaluateNode(H.left),q=this.evaluateNode(H.right);if(Fc(U)&&Fc(q)){if(Lc(U)&&Lc(q))switch(H.operatorToken.kind){case r.SyntaxKind.BarBarToken:return U||q;case r.SyntaxKind.AmpersandAmpersandToken:return U&&q;case r.SyntaxKind.AmpersandToken:return U&q;case r.SyntaxKind.BarToken:return U|q;case r.SyntaxKind.CaretToken:return U^q;case r.SyntaxKind.EqualsEqualsToken:return U==q;case r.SyntaxKind.ExclamationEqualsToken:return U!=q;case r.SyntaxKind.EqualsEqualsEqualsToken:return U===q;case r.SyntaxKind.ExclamationEqualsEqualsToken:return U!==q;case r.SyntaxKind.LessThanToken:return U<q;case r.SyntaxKind.GreaterThanToken:return U>q;case r.SyntaxKind.LessThanEqualsToken:return U<=q;case r.SyntaxKind.GreaterThanEqualsToken:return U>=q;case r.SyntaxKind.LessThanLessThanToken:return U<<q;case r.SyntaxKind.GreaterThanGreaterThanToken:return U>>q;case r.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:return U>>>q;case r.SyntaxKind.PlusToken:return U+q;case r.SyntaxKind.MinusToken:return U-q;case r.SyntaxKind.AsteriskToken:return U*q;case r.SyntaxKind.SlashToken:return U/q;case r.SyntaxKind.PercentToken:return U%q}return s({__symbolic:"binop",operator:H.operatorToken.getText(),left:U,right:q},t)}break;case r.SyntaxKind.ConditionalExpression:var K=t,z=this.evaluateNode(K.condition),W=this.evaluateNode(K.whenTrue),Q=this.evaluateNode(K.whenFalse);return Lc(z)?z?W:Q:s({__symbolic:"if",condition:z,thenExpression:W,elseExpression:Q},t);case r.SyntaxKind.FunctionExpression:case r.SyntaxKind.ArrowFunction:return s(Bc("Lambda not supported",t),t);case r.SyntaxKind.TaggedTemplateExpression:return s(Bc("Tagged template expressions are not supported in metadata",t),t);case r.SyntaxKind.TemplateExpression:var G=t;return this.isFoldable(t)?G.templateSpans.reduce(function(t,e){return t+i.evaluateNode(e.expression)+i.evaluateNode(e.literal)},this.evaluateNode(G.head)):G.templateSpans.reduce(function(t,e){var n=i.evaluateNode(e.expression),r=i.evaluateNode(e.literal);if(u(n))return n;if(u(r))return r;if("string"==typeof t&&"string"==typeof n&&"string"==typeof r)return t+n+r;var o=n;return""!==t&&(o={__symbolic:"binop",operator:"+",left:t,right:n}),""!=r&&(o={__symbolic:"binop",operator:"+",left:o,right:r}),o},this.evaluateNode(G.head));case r.SyntaxKind.AsExpression:return this.evaluateNode(t.expression);case r.SyntaxKind.ClassExpression:return{__symbolic:"class"}}return s(Bc("Expression form not supported",t),t)},t}();function Uc(t){return t.kind==r.SyntaxKind.PropertyAssignment}var qc=r.createNodeArray();function Kc(t){return t||qc}
509
509
  /**
510
510
  * @license
511
511
  * Copyright Google Inc. All Rights Reserved.
@@ -519,7 +519,7 @@ var ec=r.ModifierFlags?function(t){return!!(r.getCombinedModifierFlags(t)&r.Modi
519
519
  *
520
520
  * Use of this source code is governed by an MIT-style license that can be
521
521
  * found in the LICENSE file at https://angular.io/license
522
- */(t=this._symbols=new Map),this.buildImports()),t},enumerable:!0,configurable:!0}),t.prototype.buildImports=function(){var t=this,e=this._symbols,n=function(t){return t.replace(/^['"]|['"]$/g,"")},i=function(o){var s,a;switch(o.kind){case r.SyntaxKind.ImportEqualsDeclaration:var u=o;if(u.moduleReference.kind===r.SyntaxKind.ExternalModuleReference){var c=u.moduleReference;if(c.expression){c.expression.parent||(c.expression.parent=c,c.parent=t.sourceFile);var l=n(c.expression.getText());e.set(u.name.text,{__symbolic:"reference",module:l});break}}e.set(u.name.text,{__symbolic:"error",message:"Unsupported import syntax"});break;case r.SyntaxKind.ImportDeclaration:var h=o;if(!h.importClause)break;h.moduleSpecifier.parent||(h.moduleSpecifier.parent=h,h.parent=t.sourceFile);var f=n(h.moduleSpecifier.getText());h.importClause.name&&e.set(h.importClause.name.text,{__symbolic:"reference",module:f,default:!0});var d=h.importClause.namedBindings;if(d)switch(d.kind){case r.SyntaxKind.NamedImports:try{for(var v=p(d.elements),y=v.next();!y.done;y=v.next()){var m=y.value;e.set(m.name.text,{__symbolic:"reference",module:f,name:m.propertyName?m.propertyName.text:m.name.text})}}catch(t){s={error:t}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}break;case r.SyntaxKind.NamespaceImport:e.set(d.name.text,{__symbolic:"reference",module:f})}}r.forEachChild(o,i)};this.sourceFile&&r.forEachChild(this.sourceFile,i)},t}(),Qc=function(t){return r.getCombinedModifierFlags(t)&r.ModifierFlags.Static},Gc=function(){function t(t){void 0===t&&(t={}),this.options=t}return t.prototype.getMetadata=function(t,e,n){var i=this;void 0===e&&(e=!1);var o,s=new Wc(t),u=new Map,c=n&&this.options.substituteExpression?function(t,e){return i.options.substituteExpression(n(t,e),e)}:n,l=n?a({},this.options,{substituteExpression:c}):this.options,h=new Hc(s,u,l,function(t,e){o||(o={}),o[t]=e}),f=void 0;function d(e,n){return c&&(e=c(e,n)),Dc(e,n,u,t)}function v(e,n,r){return Bc(e,n,r,t)}function y(t){if(t.name&&t.name.kind==r.SyntaxKind.Identifier){var e=t.name.text,n=t.body;if(n&&1==n.statements.length){var i=n.statements[0];if(i.kind===r.SyntaxKind.ReturnStatement){var o=i;if(o.expression){var s={__symbolic:"function",parameters:function a(t){var e,n,i=[];function o(t){var e,n;if(t.kind==r.SyntaxKind.Identifier)i.push(t.text);else{var s=t;try{for(var a=p(s.elements),u=a.next();!u.done;u=a.next()){var c=u.value.name;c&&o(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}}try{for(var s=p(t),a=s.next();!a.done;a=s.next())o(a.value.name)}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return i}(t.parameters),value:h.evaluateNode(o.expression)};return t.parameters.some(function(t){return null!=t.initializer})&&(s.defaults=t.parameters.map(function(t){return t.initializer&&h.evaluateNode(t.initializer)})),d({func:s,name:e},t)}}}}}var m=new Map;r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ExportDeclaration:t.moduleSpecifier||t.exportClause.elements.forEach(function(t){m.set((t.propertyName||t.name).text,t.name.text)})}});var g=function(e){return t.isDeclarationFile||r.getCombinedModifierFlags(e)&r.ModifierFlags.Export},_=function(t){return t&&m.has(t.text)},b=function(t){return g(t)||_(t.name)},w=function(t){return t&&(m.get(t.text)||t.text)},x=function(t){return w(t.name)};if(r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ClassDeclaration:var e=t;if(e.name){var n=e.name.text;b(e)?s.define(n,{__symbolic:"reference",name:x(e)}):s.define(n,v("Reference to non-exported class",t,{className:n}))}break;case r.SyntaxKind.InterfaceDeclaration:t.name&&s.define(t.name.text,{__symbolic:"reference",name:"any"});break;case r.SyntaxKind.FunctionDeclaration:var i=t;if(!b(i)){var o=i.name;o&&o.text&&s.define(o.text,v("Reference to a non-exported function",o,{name:o.text}))}}}),r.forEachChild(t,function(t){var e,n,i,a;switch(t.kind){case r.SyntaxKind.ExportDeclaration:var u=t.moduleSpecifier,c=t.exportClause;if(u||c&&c.elements.forEach(function(e){var n=e.name.text;if(!o||!o[n]){var r=h.evaluateNode(e.propertyName||e.name);o||(o={}),o[n]=d(r,t)}}),u&&u.kind==r.SyntaxKind.StringLiteral){var l={from:u.text};c&&(l.export=c.elements.map(function(t){return t.propertyName?{name:t.propertyName.text,as:t.name.text}:t.name.text})),f||(f=[]),f.push(l)}break;case r.SyntaxKind.ClassDeclaration:var m=t;m.name&&b(m)&&(P=x(m))&&(o||(o={}),o[P]=function E(t){var e,n,i,o,s={__symbolic:"class"};function a(t){if(t&&t.length)return t.map(function(t){return function e(t){return h.evaluateNode(t.expression)}(t)})}function u(t){var e=h.evaluateNode(t);return Oc(e)||kc(e)||function n(t){return t&&"select"===t.__symbolic}(e)?e:v("Symbol reference expected",t)}t.heritageClauses&&t.heritageClauses.forEach(function(t){t.token===r.SyntaxKind.ExtendsKeyword&&t.types&&t.types.forEach(function(t){return s.extends=u(t.expression)})});var c=t.typeParameters;c&&c.length&&(s.arity=c.length),t.decorators&&(s.decorators=a(t.decorators));var l=null;function f(t,e){l||(l={});var n=l.hasOwnProperty(t)?l[t]:[];n.push(e),l[t]=n}var m=null;function g(t,e){m||(m={}),m[t]=e}try{for(var _=p(t.members),b=_.next();!b.done;b=_.next()){var w=b.value,x=!1;switch(w.kind){case r.SyntaxKind.Constructor:case r.SyntaxKind.MethodDeclaration:x=w.kind===r.SyntaxKind.Constructor;var E=w;if(Qc(E)){var S=y(E);S&&g(S.name,S.func);continue}var C=a(E.decorators),T=E.parameters,P=[],A=[],N=!1,k=!1;try{for(var O=p(T),M=O.next();!M.done;M=O.next()){var I=M.value,R=a(I.decorators);P.push(R),N=N||!!R,x&&(A.push(I.type?u(I.type):null),k=!0)}}catch(t){i={error:t}}finally{try{M&&!M.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}var D={__symbolic:x?"constructor":"method"},j=x?"__ctor__":h.nameOf(w.name);C&&(D.decorators=C),N&&(D.parameterDecorators=P),k&&(D.parameters=A),Oc(j)||f(j,D);break;case r.SyntaxKind.PropertyDeclaration:case r.SyntaxKind.GetAccessor:case r.SyntaxKind.SetAccessor:var L=w;if(Qc(L)){var F=h.nameOf(L.name);Oc(F)||g(F,L.initializer?h.evaluateNode(L.initializer):v("Variable not initialized",L.name))}var V=a(L.decorators);if(V){var B=h.nameOf(L.name);Oc(B)||f(B,{__symbolic:"property",decorators:V})}}}}catch(t){e={error:t}}finally{try{b&&!b.done&&(n=_.return)&&n.call(_)}finally{if(e)throw e.error}}return l&&(s.members=l),m&&(s.statics=m),d(s,t)}(m));break;case r.SyntaxKind.TypeAliasDeclaration:var S=t;S.name&&b(S)&&(P=x(S))&&(o||(o={}),o[P]={__symbolic:"interface"});break;case r.SyntaxKind.InterfaceDeclaration:var C=t;C.name&&b(C)&&(P=x(C))&&(o||(o={}),o[P]={__symbolic:"interface"});break;case r.SyntaxKind.FunctionDeclaration:var T=t;if(b(T)&&T.name){var P=x(T),A=y(T);P&&(o||(o={}),o[P]=A?d(A.func,t):{__symbolic:"function"})}break;case r.SyntaxKind.EnumDeclaration:var N=t;if(b(N)){var k={},O=x(N),M=0,I=0;try{for(var R=p(N.members),D=R.next();!D.done;D=R.next()){var j,L=D.value;j=L.initializer?h.evaluateNode(L.initializer):M,P=void 0,L.name.kind==r.SyntaxKind.Identifier&&(k[P=L.name.text]=j,I++),M="number"==typeof j?j+1:P?{__symbolic:"binary",operator:"+",left:{__symbolic:"select",expression:d({__symbolic:"reference",name:O},t),name:P}}:d(v("Unsupported enum member name",L.name),t)}}catch(t){e={error:t}}finally{try{D&&!D.done&&(n=R.return)&&n.call(R)}finally{if(e)throw e.error}}I&&O&&(o||(o={}),o[O]=d(k,t))}break;case r.SyntaxKind.VariableStatement:var F=t,V=function(e){if(e.name.kind==r.SyntaxKind.Identifier){var n,i=e.name;n=e.initializer?h.evaluateNode(e.initializer):d(v("Variable not initialized",i),i);var a=!1;if(g(F)||g(e)||_(i)){var u=w(i);u&&(o||(o={}),o[u]=d(n,t)),a=!0}"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(s.define(i.text,n),a&&s.defineReference(i.text,{__symbolic:"reference",name:i.text})):a||(n&&!Oc(n)?s.define(i.text,d(n,t)):s.define(i.text,d(v("Reference to a local symbol",i,{name:i.text}),t)))}else{var c=function(e){switch(e.kind){case r.SyntaxKind.Identifier:var n=e,i=v("Destructuring not supported",n);s.define(n.text,i),g(t)&&(o||(o={}),o[n.text]=i);break;case r.SyntaxKind.BindingElement:c(e.name);break;case r.SyntaxKind.ObjectBindingPattern:case r.SyntaxKind.ArrayBindingPattern:e.elements.forEach(c)}};c(e.name)}};try{for(var B=p(F.declarationList.declarations),H=B.next();!H.done;H=B.next())V(H.value)}catch(t){i={error:t}}finally{try{H&&!H.done&&(a=B.return)&&a.call(B)}finally{if(i)throw i.error}}}}),o||f){o?e&&function E(t,e,n){var r=new Set(["Array","Object","Set","Map","string","number","any"]);function i(s){if(s)if(Array.isArray(s))s.forEach(i);else if("object"!=typeof s||s.hasOwnProperty("__symbolic")){if(Oc(s))!function a(n){if(o(e.get(n)))throw new Error(t.fileName+(void 0!=n.line?void 0!=n.character?":"+(n.line+1)+":"+(n.character+1):":"+(n.line+1):"")+": Metadata collected contains an error that will be reported at runtime: "+function r(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":return(t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}
522
+ */(t=this._symbols=new Map),this.buildImports()),t},enumerable:!0,configurable:!0}),t.prototype.buildImports=function(){var t=this,e=this._symbols,n=function(t){return t.replace(/^['"]|['"]$/g,"")},i=function(o){var s,a;switch(o.kind){case r.SyntaxKind.ImportEqualsDeclaration:var u=o;if(u.moduleReference.kind===r.SyntaxKind.ExternalModuleReference){var c=u.moduleReference;if(c.expression){c.expression.parent||(c.expression.parent=c,c.parent=t.sourceFile);var l=n(c.expression.getText());e.set(u.name.text,{__symbolic:"reference",module:l});break}}e.set(u.name.text,{__symbolic:"error",message:"Unsupported import syntax"});break;case r.SyntaxKind.ImportDeclaration:var h=o;if(!h.importClause)break;h.moduleSpecifier.parent||(h.moduleSpecifier.parent=h,h.parent=t.sourceFile);var f=n(h.moduleSpecifier.getText());h.importClause.name&&e.set(h.importClause.name.text,{__symbolic:"reference",module:f,default:!0});var d=h.importClause.namedBindings;if(d)switch(d.kind){case r.SyntaxKind.NamedImports:try{for(var v=p(d.elements),y=v.next();!y.done;y=v.next()){var m=y.value;e.set(m.name.text,{__symbolic:"reference",module:f,name:m.propertyName?m.propertyName.text:m.name.text})}}catch(t){s={error:t}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}break;case r.SyntaxKind.NamespaceImport:e.set(d.name.text,{__symbolic:"reference",module:f})}}r.forEachChild(o,i)};this.sourceFile&&r.forEachChild(this.sourceFile,i)},t}(),Qc=function(t){return r.getCombinedModifierFlags(t)&r.ModifierFlags.Static},Gc=function(){function t(t){void 0===t&&(t={}),this.options=t}return t.prototype.getMetadata=function(t,e,n){var i=this;void 0===e&&(e=!1);var o,s=new Wc(t),u=new Map,c=n&&this.options.substituteExpression?function(t,e){return i.options.substituteExpression(n(t,e),e)}:n,l=n?a({},this.options,{substituteExpression:c}):this.options,h=new Hc(s,u,l,function(t,e){o||(o={}),o[t]=e}),f=void 0;function d(e,n){return c&&(e=c(e,n)),Rc(e,n,u,t)}function v(e,n,r){return Bc(e,n,r,t)}function y(t){if(t.name&&t.name.kind==r.SyntaxKind.Identifier){var e=t.name.text,n=t.body;if(n&&1==n.statements.length){var i=n.statements[0];if(i.kind===r.SyntaxKind.ReturnStatement){var o=i;if(o.expression){var s={__symbolic:"function",parameters:function a(t){var e,n,i=[];function o(t){var e,n;if(t.kind==r.SyntaxKind.Identifier)i.push(t.text);else{var s=t;try{for(var a=p(s.elements),u=a.next();!u.done;u=a.next()){var c=u.value.name;c&&o(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}}try{for(var s=p(t),a=s.next();!a.done;a=s.next())o(a.value.name)}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return i}(t.parameters),value:h.evaluateNode(o.expression)};return t.parameters.some(function(t){return null!=t.initializer})&&(s.defaults=t.parameters.map(function(t){return t.initializer&&h.evaluateNode(t.initializer)})),d({func:s,name:e},t)}}}}}var m=new Map;r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ExportDeclaration:t.moduleSpecifier||t.exportClause.elements.forEach(function(t){m.set((t.propertyName||t.name).text,t.name.text)})}});var g=function(e){return t.isDeclarationFile||r.getCombinedModifierFlags(e)&r.ModifierFlags.Export},_=function(t){return t&&m.has(t.text)},b=function(t){return g(t)||_(t.name)},w=function(t){return t&&(m.get(t.text)||t.text)},x=function(t){return w(t.name)};if(r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ClassDeclaration:var e=t;if(e.name){var n=e.name.text;b(e)?s.define(n,{__symbolic:"reference",name:x(e)}):s.define(n,v("Reference to non-exported class",t,{className:n}))}break;case r.SyntaxKind.InterfaceDeclaration:t.name&&s.define(t.name.text,{__symbolic:"reference",name:"any"});break;case r.SyntaxKind.FunctionDeclaration:var i=t;if(!b(i)){var o=i.name;o&&o.text&&s.define(o.text,v("Reference to a non-exported function",o,{name:o.text}))}}}),r.forEachChild(t,function(t){var e,n,i,a;switch(t.kind){case r.SyntaxKind.ExportDeclaration:var u=t.moduleSpecifier,c=t.exportClause;if(u||c&&c.elements.forEach(function(e){var n=e.name.text;if(!o||!o[n]){var r=h.evaluateNode(e.propertyName||e.name);o||(o={}),o[n]=d(r,t)}}),u&&u.kind==r.SyntaxKind.StringLiteral){var l={from:u.text};c&&(l.export=c.elements.map(function(t){return t.propertyName?{name:t.propertyName.text,as:t.name.text}:t.name.text})),f||(f=[]),f.push(l)}break;case r.SyntaxKind.ClassDeclaration:var m=t;m.name&&b(m)&&(P=x(m))&&(o||(o={}),o[P]=function E(t){var e,n,i,o,s={__symbolic:"class"};function a(t){if(t&&t.length)return t.map(function(t){return function e(t){return h.evaluateNode(t.expression)}(t)})}function u(t){var e=h.evaluateNode(t);return Oc(e)||kc(e)||function n(t){return t&&"select"===t.__symbolic}(e)?e:v("Symbol reference expected",t)}t.heritageClauses&&t.heritageClauses.forEach(function(t){t.token===r.SyntaxKind.ExtendsKeyword&&t.types&&t.types.forEach(function(t){return s.extends=u(t.expression)})});var c=t.typeParameters;c&&c.length&&(s.arity=c.length),t.decorators&&(s.decorators=a(t.decorators));var l=null;function f(t,e){l||(l={});var n=l.hasOwnProperty(t)?l[t]:[];n.push(e),l[t]=n}var m=null;function g(t,e){m||(m={}),m[t]=e}try{for(var _=p(t.members),b=_.next();!b.done;b=_.next()){var w=b.value,x=!1;switch(w.kind){case r.SyntaxKind.Constructor:case r.SyntaxKind.MethodDeclaration:x=w.kind===r.SyntaxKind.Constructor;var E=w;if(Qc(E)){var S=y(E);S&&g(S.name,S.func);continue}var C=a(E.decorators),T=E.parameters,P=[],A=[],N=!1,k=!1;try{for(var O=p(T),M=O.next();!M.done;M=O.next()){var I=M.value,D=a(I.decorators);P.push(D),N=N||!!D,x&&(A.push(I.type?u(I.type):null),k=!0)}}catch(t){i={error:t}}finally{try{M&&!M.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}var R={__symbolic:x?"constructor":"method"},j=x?"__ctor__":h.nameOf(w.name);C&&(R.decorators=C),N&&(R.parameterDecorators=P),k&&(R.parameters=A),Oc(j)||f(j,R);break;case r.SyntaxKind.PropertyDeclaration:case r.SyntaxKind.GetAccessor:case r.SyntaxKind.SetAccessor:var L=w;if(Qc(L)){var F=h.nameOf(L.name);Oc(F)||g(F,L.initializer?h.evaluateNode(L.initializer):v("Variable not initialized",L.name))}var V=a(L.decorators);if(V){var B=h.nameOf(L.name);Oc(B)||f(B,{__symbolic:"property",decorators:V})}}}}catch(t){e={error:t}}finally{try{b&&!b.done&&(n=_.return)&&n.call(_)}finally{if(e)throw e.error}}return l&&(s.members=l),m&&(s.statics=m),d(s,t)}(m));break;case r.SyntaxKind.TypeAliasDeclaration:var S=t;S.name&&b(S)&&(P=x(S))&&(o||(o={}),o[P]={__symbolic:"interface"});break;case r.SyntaxKind.InterfaceDeclaration:var C=t;C.name&&b(C)&&(P=x(C))&&(o||(o={}),o[P]={__symbolic:"interface"});break;case r.SyntaxKind.FunctionDeclaration:var T=t;if(b(T)&&T.name){var P=x(T),A=y(T);P&&(o||(o={}),o[P]=A?d(A.func,t):{__symbolic:"function"})}break;case r.SyntaxKind.EnumDeclaration:var N=t;if(b(N)){var k={},O=x(N),M=0,I=0;try{for(var D=p(N.members),R=D.next();!R.done;R=D.next()){var j,L=R.value;j=L.initializer?h.evaluateNode(L.initializer):M,P=void 0,L.name.kind==r.SyntaxKind.Identifier&&(k[P=L.name.text]=j,I++),M="number"==typeof j?j+1:P?{__symbolic:"binary",operator:"+",left:{__symbolic:"select",expression:d({__symbolic:"reference",name:O},t),name:P}}:d(v("Unsupported enum member name",L.name),t)}}catch(t){e={error:t}}finally{try{R&&!R.done&&(n=D.return)&&n.call(D)}finally{if(e)throw e.error}}I&&O&&(o||(o={}),o[O]=d(k,t))}break;case r.SyntaxKind.VariableStatement:var F=t,V=function(e){if(e.name.kind==r.SyntaxKind.Identifier){var n,i=e.name;n=e.initializer?h.evaluateNode(e.initializer):d(v("Variable not initialized",i),i);var a=!1;if(g(F)||g(e)||_(i)){var u=w(i);u&&(o||(o={}),o[u]=d(n,t)),a=!0}"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(s.define(i.text,n),a&&s.defineReference(i.text,{__symbolic:"reference",name:i.text})):a||(n&&!Oc(n)?s.define(i.text,d(n,t)):s.define(i.text,d(v("Reference to a local symbol",i,{name:i.text}),t)))}else{var c=function(e){switch(e.kind){case r.SyntaxKind.Identifier:var n=e,i=v("Destructuring not supported",n);s.define(n.text,i),g(t)&&(o||(o={}),o[n.text]=i);break;case r.SyntaxKind.BindingElement:c(e.name);break;case r.SyntaxKind.ObjectBindingPattern:case r.SyntaxKind.ArrayBindingPattern:e.elements.forEach(c)}};c(e.name)}};try{for(var B=p(F.declarationList.declarations),H=B.next();!H.done;H=B.next())V(H.value)}catch(t){i={error:t}}finally{try{H&&!H.done&&(a=B.return)&&a.call(B)}finally{if(i)throw i.error}}}}),o||f){o?e&&function E(t,e,n){var r=new Set(["Array","Object","Set","Map","string","number","any"]);function i(s){if(s)if(Array.isArray(s))s.forEach(i);else if("object"!=typeof s||s.hasOwnProperty("__symbolic")){if(Oc(s))!function a(n){if(o(e.get(n)))throw new Error(t.fileName+(void 0!=n.line?void 0!=n.character?":"+(n.line+1)+":"+(n.character+1):":"+(n.line+1):"")+": Metadata collected contains an error that will be reported at runtime: "+function r(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":return(t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}
523
523
  /**
524
524
  * @license
525
525
  * Copyright Google Inc. All Rights Reserved.
@@ -627,7 +627,7 @@ return function e(t){return t&&!!t.start}(t)?{start:t.start.offset,end:t.end.off
627
627
  * Use of this source code is governed by an MIT-style license that can be
628
628
  * found in the LICENSE file at https://angular.io/license
629
629
  */
630
- function Il(t){return new Rl(t)}var Rl=function(){function t(t){this.host=t}return Object.defineProperty(t.prototype,"metadataResolver",{get:function(){return this.host.resolver},enumerable:!0,configurable:!0}),t.prototype.getTemplateReferences=function(){return this.host.getTemplateReferences()},t.prototype.getDiagnostics=function(t){var e=[],n=this.host.getTemplates(t);n&&n.length&&e.push.apply(e,f(
630
+ function Il(t){return new Dl(t)}var Dl=function(){function t(t){this.host=t}return Object.defineProperty(t.prototype,"metadataResolver",{get:function(){return this.host.resolver},enumerable:!0,configurable:!0}),t.prototype.getTemplateReferences=function(){return this.host.getTemplateReferences()},t.prototype.getDiagnostics=function(t){var e=[],n=this.host.getTemplates(t);n&&n.length&&e.push.apply(e,f(
631
631
  /**
632
632
  * @license
633
633
  * Copyright Google Inc. All Rights Reserved.
@@ -657,14 +657,14 @@ function s(t){var e=new Yu(t,function(e,n){return $u(t,e,n)});return Vt(e,t.temp
657
657
  *
658
658
  * Use of this source code is governed by an MIT-style license that can be
659
659
  * found in the LICENSE file at https://angular.io/license
660
- */(f)),d){var y=function m(t){return t.filter(function(t){return!!t})}(d.transitiveModule.directives.map(function(t){return n.host.resolver.getNonNormalizedDirectiveMetadata(t.reference)})).map(function(t){return t.metadata.toSummary()}),g=d.transitiveModule.pipes.map(function(t){return n.host.resolver.getOrLoadPipeMetadata(t.reference).toSummary()}),_=l.tryParseHtml(h,o,y,g,d.schemas);r={htmlAst:h.rootNodes,templateAst:_.templateAst,directive:o,directives:y,pipes:g,parseErrors:_.errors,expressionParser:u,errors:void 0}}}}catch(n){var b=t.span;n.fileName==e&&(b=t.query.getSpanAt(n.line,n.column)||b),r={errors:[{kind:Xc.Error,message:n.message,span:b}]}}return r||{}},t}();function Dl(t){for(var e in t)if(t[e]===Dl)return e;throw Error("Could not find renamed property on target object.")}function jl(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}
660
+ */(f)),d){var y=function m(t){return t.filter(function(t){return!!t})}(d.transitiveModule.directives.map(function(t){return n.host.resolver.getNonNormalizedDirectiveMetadata(t.reference)})).map(function(t){return t.metadata.toSummary()}),g=d.transitiveModule.pipes.map(function(t){return n.host.resolver.getOrLoadPipeMetadata(t.reference).toSummary()}),_=l.tryParseHtml(h,o,y,g,d.schemas);r={htmlAst:h.rootNodes,templateAst:_.templateAst,directive:o,directives:y,pipes:g,parseErrors:_.errors,expressionParser:u,errors:void 0}}}}catch(n){var b=t.span;n.fileName==e&&(b=t.query.getSpanAt(n.line,n.column)||b),r={errors:[{kind:Xc.Error,message:n.message,span:b}]}}return r||{}},t}();function Rl(t){for(var e in t)if(t[e]===Rl)return e;throw Error("Could not find renamed property on target object.")}function jl(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}
661
661
  /**
662
662
  * @license
663
663
  * Copyright Google Inc. All Rights Reserved.
664
664
  *
665
665
  * Use of this source code is governed by an MIT-style license that can be
666
666
  * found in the LICENSE file at https://angular.io/license
667
- */var Ll=Dl({ngComponentDef:Dl}),Fl=(Dl({ngDirectiveDef:Dl}),Dl({ngInjectableDef:Dl})),Vl=Dl({ngInjectorDef:Dl}),Bl=(Dl({ngPipeDef:Dl}),Dl({ngModuleDef:Dl})),Hl=Dl({ngBaseDef:Dl}),Ul=Dl({__NG_ELEMENT_ID__:Dl});
667
+ */var Ll=Rl({ngComponentDef:Rl}),Fl=(Rl({ngDirectiveDef:Rl}),Rl({ngInjectableDef:Rl})),Vl=Rl({ngInjectorDef:Rl}),Bl=(Rl({ngPipeDef:Rl}),Rl({ngModuleDef:Rl})),Hl=Rl({ngBaseDef:Rl}),Ul=Rl({__NG_ELEMENT_ID__:Rl});
668
668
  /**
669
669
  * @license
670
670
  * Copyright Google Inc. All Rights Reserved.
@@ -715,7 +715,7 @@ var rp="undefined"!=typeof window&&window,ip="undefined"!=typeof self&&"undefine
715
715
  *
716
716
  * Use of this source code is governed by an MIT-style license that can be
717
717
  * found in the LICENSE file at https://angular.io/license
718
- */var dp=ep("Inject",function(t){return{token:t}}),vp=ep("Optional"),yp=ep("Self"),mp=ep("SkipSelf"),gp=(ep("Host"),"__source"),_p=new Object,bp=_p,wp=new Xl("INJECTOR"),xp=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=_p),e===_p)throw new Error("NullInjectorError: No provider for "+pp(t)+"!");return e},t}(),Ep=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new Mp(t,e):new Mp(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=_p,t.NULL=new xp,t.ngInjectableDef=ql({providedIn:"any",factory:function(){return Fp(wp)}}),t}(),Sp=function(t){return t},Cp=[],Tp=Sp,Pp=function(){return Array.prototype.slice.call(arguments)},Ap=Dl({provide:String,useValue:Dl}),Np=Ep.NULL,kp=/\n/gm,Op="ɵ",Mp=function(){function t(t,e,n){void 0===e&&(e=Np),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(Ep,{token:Ep,fn:Sp,deps:Cp,value:this,useNew:!1}),r.set(wp,{token:wp,fn:Sp,deps:Cp,value:this,useNew:!1}),function t(e,n){if(n)if((n=fp(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw Dp("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Dp("Unexpected provider",n);var i=fp(n.provide),o=function s(t){var e=function n(t){var e=Cp,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6;if((u=fp(n[r]))instanceof Array)for(var o=0,s=u;o<s.length;o++){var a=s[o];a instanceof vp||a==vp?i|=1:a instanceof mp||a==mp?i&=-3:a instanceof yp||a==yp?i&=-5:u=a instanceof dp?a.token:fp(a)}e.push({token:u,options:i})}}else if(t.useExisting){var u;e=[{token:u=fp(t.useExisting),options:6}]}else if(!(n||Ap in t))throw Dp("'deps' required",t);return e}(t),r=Sp,i=Cp,o=!1,s=fp(t.provide);if(Ap in t)i=t.useValue;else if(t.useFactory)r=t.useFactory;else if(t.useExisting);else if(t.useClass)o=!0,r=fp(t.useClass);else{if("function"!=typeof s)throw Dp("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);o=!0,r=s}return{deps:e,fn:r,useNew:o,value:i}}(n);if(!0===n.multi){var a=e.get(i);if(a){if(a.fn!==Pp)throw Ip(i)}else e.set(i,a={token:n.provide,deps:[],useNew:!1,fn:Pp,value:Cp});a.deps.push({token:i=n,options:6})}var u=e.get(i);if(u&&u.fn==Pp)throw Ip(i);e.set(i,o)}}(r,t)}return t.prototype.get=function(t,e,n){void 0===n&&(n=0);var r=this._records.get(t);try{return function t(e,n,r,i,o,s){try{return function a(e,n,r,i,o,s){var a,u;if(!n||4&s)2&s||(u=i.get(e,o,0));else{if((u=n.value)==Tp)throw Error(Op+"Circular dependency");if(u===Cp){n.value=Tp;var c=n.useNew,l=n.fn,p=n.deps,h=Cp;if(p.length){h=[];for(var d=0;d<p.length;d++){var v=p[d],y=v.options,m=2&y?r.get(v.token):void 0;h.push(t(v.token,m,r,m||4&y?i:Np,1&y?null:Ep.THROW_IF_NOT_FOUND,0))}}n.value=u=c?new((a=l).bind.apply(a,f([void 0],h))):l.apply(void 0,h)}}return u}(e,n,r,i,o,s)}catch(t){throw t instanceof Error||(t=new Error(t)),(t.ngTempTokenPath=t.ngTempTokenPath||[]).unshift(e),n&&n.value==Tp&&(n.value=Cp),t}}(t,r,this._records,this.parent,e,n)}catch(e){var i=e.ngTempTokenPath;throw t[gp]&&i.unshift(t[gp]),e.message=Rp("\n"+e.message,i,this.source),e.ngTokenPath=i,e.ngTempTokenPath=null,e}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(pp(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function Ip(t){return Dp("Cannot mix multi providers and regular providers",t)}function Rp(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Op?t.substr(2):t;var r=pp(e);if(e instanceof Array)r=e.map(pp).join(" -> ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):pp(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(kp,"\n ")}function Dp(t,e){return new Error(Rp(t,e))}var jp=void 0;function Lp(t){var e=jp;return jp=t,e}function Fp(t,e){if(void 0===e&&(e=0),void 0===jp)throw new Error("inject() must be called from an injection context");if(null===jp){var n=Kl(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+pp(t)+"]")}return jp.get(t,8&e?null:void 0,e)}function Vp(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=0,s=0;s<r.length;s++){var a=r[s];a instanceof vp||"Optional"===a.ngMetadataName?o|=8:a instanceof mp||"SkipSelf"===a.ngMetadataName?o|=4:a instanceof yp||"Self"===a.ngMetadataName?o|=2:i=a instanceof dp?a.token:a}e.push(Fp(i,o))}else e.push(Fp(r))}return e}
718
+ */var dp=ep("Inject",function(t){return{token:t}}),vp=ep("Optional"),yp=ep("Self"),mp=ep("SkipSelf"),gp=(ep("Host"),"__source"),_p=new Object,bp=_p,wp=new Xl("INJECTOR"),xp=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=_p),e===_p)throw new Error("NullInjectorError: No provider for "+pp(t)+"!");return e},t}(),Ep=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new Mp(t,e):new Mp(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=_p,t.NULL=new xp,t.ngInjectableDef=ql({providedIn:"any",factory:function(){return Fp(wp)}}),t}(),Sp=function(t){return t},Cp=[],Tp=Sp,Pp=function(){return Array.prototype.slice.call(arguments)},Ap=Rl({provide:String,useValue:Rl}),Np=Ep.NULL,kp=/\n/gm,Op="ɵ",Mp=function(){function t(t,e,n){void 0===e&&(e=Np),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(Ep,{token:Ep,fn:Sp,deps:Cp,value:this,useNew:!1}),r.set(wp,{token:wp,fn:Sp,deps:Cp,value:this,useNew:!1}),function t(e,n){if(n)if((n=fp(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw Rp("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Rp("Unexpected provider",n);var i=fp(n.provide),o=function s(t){var e=function n(t){var e=Cp,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6;if((u=fp(n[r]))instanceof Array)for(var o=0,s=u;o<s.length;o++){var a=s[o];a instanceof vp||a==vp?i|=1:a instanceof mp||a==mp?i&=-3:a instanceof yp||a==yp?i&=-5:u=a instanceof dp?a.token:fp(a)}e.push({token:u,options:i})}}else if(t.useExisting){var u;e=[{token:u=fp(t.useExisting),options:6}]}else if(!(n||Ap in t))throw Rp("'deps' required",t);return e}(t),r=Sp,i=Cp,o=!1,s=fp(t.provide);if(Ap in t)i=t.useValue;else if(t.useFactory)r=t.useFactory;else if(t.useExisting);else if(t.useClass)o=!0,r=fp(t.useClass);else{if("function"!=typeof s)throw Rp("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);o=!0,r=s}return{deps:e,fn:r,useNew:o,value:i}}(n);if(!0===n.multi){var a=e.get(i);if(a){if(a.fn!==Pp)throw Ip(i)}else e.set(i,a={token:n.provide,deps:[],useNew:!1,fn:Pp,value:Cp});a.deps.push({token:i=n,options:6})}var u=e.get(i);if(u&&u.fn==Pp)throw Ip(i);e.set(i,o)}}(r,t)}return t.prototype.get=function(t,e,n){void 0===n&&(n=0);var r=this._records.get(t);try{return function t(e,n,r,i,o,s){try{return function a(e,n,r,i,o,s){var a,u;if(!n||4&s)2&s||(u=i.get(e,o,0));else{if((u=n.value)==Tp)throw Error(Op+"Circular dependency");if(u===Cp){n.value=Tp;var c=n.useNew,l=n.fn,p=n.deps,h=Cp;if(p.length){h=[];for(var d=0;d<p.length;d++){var v=p[d],y=v.options,m=2&y?r.get(v.token):void 0;h.push(t(v.token,m,r,m||4&y?i:Np,1&y?null:Ep.THROW_IF_NOT_FOUND,0))}}n.value=u=c?new((a=l).bind.apply(a,f([void 0],h))):l.apply(void 0,h)}}return u}(e,n,r,i,o,s)}catch(t){throw t instanceof Error||(t=new Error(t)),(t.ngTempTokenPath=t.ngTempTokenPath||[]).unshift(e),n&&n.value==Tp&&(n.value=Cp),t}}(t,r,this._records,this.parent,e,n)}catch(e){var i=e.ngTempTokenPath;throw t[gp]&&i.unshift(t[gp]),e.message=Dp("\n"+e.message,i,this.source),e.ngTokenPath=i,e.ngTempTokenPath=null,e}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(pp(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function Ip(t){return Rp("Cannot mix multi providers and regular providers",t)}function Dp(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Op?t.substr(2):t;var r=pp(e);if(e instanceof Array)r=e.map(pp).join(" -> ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):pp(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(kp,"\n ")}function Rp(t,e){return new Error(Dp(t,e))}var jp=void 0;function Lp(t){var e=jp;return jp=t,e}function Fp(t,e){if(void 0===e&&(e=0),void 0===jp)throw new Error("inject() must be called from an injection context");if(null===jp){var n=Kl(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+pp(t)+"]")}return jp.get(t,8&e?null:void 0,e)}function Vp(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=0,s=0;s<r.length;s++){var a=r[s];a instanceof vp||"Optional"===a.ngMetadataName?o|=8:a instanceof mp||"SkipSelf"===a.ngMetadataName?o|=4:a instanceof yp||"Self"===a.ngMetadataName?o|=2:i=a instanceof dp?a.token:a}e.push(Fp(i,o))}else e.push(Fp(r))}return e}
719
719
  /**
720
720
  * @license
721
721
  * Copyright Google Inc. All Rights Reserved.
@@ -751,14 +751,14 @@ var rp="undefined"!=typeof window&&window,ip="undefined"!=typeof self&&"undefine
751
751
  * Use of this source code is governed by an MIT-style license that can be
752
752
  * found in the LICENSE file at https://angular.io/license
753
753
  */
754
- var Xp=16,$p=0,Yp=1,Zp=2,Jp=3,th=4,eh=5,nh=6,rh=7,ih=8,oh=9,sh=10,ah=11,uh=13,ch=15,lh="__ngContext__";function ph(t,e){t[lh]=e}function hh(t){return t[lh]}function fh(t){var e=hh(t);return e?Array.isArray(e)?e:e.lViewData:null}function dh(t){return Array.isArray(t)?t[0]:t}
754
+ var Xp="__ngContext__",$p=17,Yp=0,Zp=1,Jp=2,th=3,eh=4,nh=5,rh=6,ih=7,oh=8,sh=9,ah=10,uh=11,ch=12,lh=14,ph=16;
755
755
  /**
756
756
  * @license
757
757
  * Copyright Google Inc. All Rights Reserved.
758
758
  *
759
759
  * Use of this source code is governed by an MIT-style license that can be
760
760
  * found in the LICENSE file at https://angular.io/license
761
- */function vh(t,e,n,r){e&&(r.initHooks||(r.initHooks=[])).push(t,e),n&&((r.initHooks||(r.initHooks=[])).push(t,n),(r.checkHooks||(r.checkHooks=[])).push(t,n))}function yh(t,e,n){t.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentInit),t.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,t.afterContentChecked))}function mh(t,e,n){t.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewInit),t.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,t.afterViewChecked))}function gh(t,e,n){null!=t.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,t.onDestroy)}function _h(t,e,n){16&t[th]&&(bh(t,e.initHooks,e.checkHooks,n),t[th]&=-17)}function bh(t,e,n,r){var i=r?e:n;i&&wh(t,i)}function wh(t,e){for(var n=0;n<e.length;n+=2)e[n+1].call(t[e[n]])}
761
+ */
762
762
  /**
763
763
  * @license
764
764
  * Copyright Google Inc. All Rights Reserved.
@@ -766,43 +766,43 @@ var Xp=16,$p=0,Yp=1,Zp=2,Jp=3,th=4,eh=5,nh=6,rh=7,ih=8,oh=9,sh=10,ah=11,uh=13,ch
766
766
  * Use of this source code is governed by an MIT-style license that can be
767
767
  * found in the LICENSE file at https://angular.io/license
768
768
  */
769
- var xh,Eh=0,Sh=4,Ch=8,Th=8,Ph=9,Ah="ngProjectAs";function Nh(t){return!!t.listen}!function(t){t[t.Important=1]="Important",t[t.DashCase=2]="DashCase"}(xh||(xh={}));var kh={createRenderer:function(t,e){return document}};
769
+ function hh(t,e){var n=vh(t),r=vh(e);return n&&r?function i(t,e,n){for(var r=t[up()](),i=e[up()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(t,e,hh):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||lp(t,e)}var fh=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),dh=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function vh(t){return!!yh(t)&&(Array.isArray(t)||!(t instanceof Map)&&up()in t)}function yh(t){return null!==t&&("function"==typeof t||"object"==typeof t)}
770
770
  /**
771
771
  * @license
772
772
  * Copyright Google Inc. All Rights Reserved.
773
773
  *
774
774
  * Use of this source code is governed by an MIT-style license that can be
775
775
  * found in the LICENSE file at https://angular.io/license
776
- */
776
+ */var mh=0,gh=1;function _h(t){for(;Array.isArray(t);)t=t[nh];return t}function bh(t,e){return _h(e[t.index])}function wh(t,e){var n=e[t];return n.length>=$p?n:n[nh]}function xh(t){return 0!=(16384&t.flags)}function Eh(t){return t[Xp]}function Sh(t){var e=Eh(t);return e?Array.isArray(e)?e:e.lViewData:null}
777
777
  /**
778
778
  * @license
779
779
  * Copyright Google Inc. All Rights Reserved.
780
780
  *
781
781
  * Use of this source code is governed by an MIT-style license that can be
782
782
  * found in the LICENSE file at https://angular.io/license
783
- */
783
+ */function Ch(t,e,n){return{lViewData:t,nodeIndex:e,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Th(t,e){t[Xp]=e}function Ph(t,e){for(var n=t[Yp].firstChild;n;){if(bh(n,t)===e)return n.index;n=Ah(n)}return-1}function Ah(t){return t.child?t.child:t.next?t.next:t.parent&&t.parent.next||null}function Nh(t,e){var n=t[Yp].components;if(n)for(var r=0;r<n.length;r++){var i=n[r];if(wh(i,t)[sh]===e)return i}else if(wh($p,t)[sh]===e)return $p;return-1}function kh(t){return t.flags>>15}function Oh(t,e){var n=4095&t.flags;return n?e+n:-1}
784
784
  /**
785
785
  * @license
786
786
  * Copyright Google Inc. All Rights Reserved.
787
787
  *
788
788
  * Use of this source code is governed by an MIT-style license that can be
789
789
  * found in the LICENSE file at https://angular.io/license
790
- */
791
- function Oh(t,e){var n=Rh(t),r=Rh(e);return n&&r?function i(t,e,n){for(var r=t[up()](),i=e[up()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(t,e,Oh):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||lp(t,e)}var Mh=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Ih=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Rh(t){return!!Dh(t)&&(Array.isArray(t)||!(t instanceof Map)&&up()in t)}function Dh(t){return null!==t&&("function"==typeof t||"object"==typeof t)}
790
+ */function Mh(t,e,n,r){e&&(r.initHooks||(r.initHooks=[])).push(t,e),n&&((r.initHooks||(r.initHooks=[])).push(t,n),(r.checkHooks||(r.checkHooks=[])).push(t,n))}function Ih(t,e,n){t.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentInit),t.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,t.afterContentChecked))}function Dh(t,e,n){t.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewInit),t.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,t.afterViewChecked))}function Rh(t,e,n){null!=t.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,t.onDestroy)}function jh(t,e,n){16&t[Zp]&&(Lh(t,e.initHooks,e.checkHooks,n),t[Zp]&=-17)}function Lh(t,e,n,r){var i=r?e:n;i&&Fh(t,i)}function Fh(t,e){for(var n=0;n<e.length;n+=2)e[n+1].call(t[e[n]])}
792
791
  /**
793
792
  * @license
794
793
  * Copyright Google Inc. All Rights Reserved.
795
794
  *
796
795
  * Use of this source code is governed by an MIT-style license that can be
797
796
  * found in the LICENSE file at https://angular.io/license
798
- */function jh(t,e){return dh(e[t.index])}function Lh(t){return 0!=(16384&t.flags)}
797
+ */
798
+ var Vh,Bh=8,Hh=8,Uh=9,qh="ngProjectAs";function Kh(t){return!!t.listen}!function(t){t[t.Important=1]="Important",t[t.DashCase=2]="DashCase"}(Vh||(Vh={}));var zh={createRenderer:function(t,e){return document}},Wh=[];
799
799
  /**
800
800
  * @license
801
801
  * Copyright Google Inc. All Rights Reserved.
802
802
  *
803
803
  * Use of this source code is governed by an MIT-style license that can be
804
804
  * found in the LICENSE file at https://angular.io/license
805
- */var Fh=[];function Vh(t){for(var e=t[eh];e&&2===e.type;)e=(t=t[Yp])[eh];return t}function Bh(t,e,n,r,i){0===t?Nh(e)?e.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===t?Nh(e)?e.removeChild(n,r):n.removeChild(r):2===t&&e.destroyNode(r)}function Hh(t){if(-1===t[$p].childIndex)return null;var e=t[t[$p].childIndex];return e.data?e.data:e.dynamicLContainerNode.data}function Uh(t,e){var n;return t.length>=Xp&&(n=t[eh])&&2===n.type?function r(t,e){if(-1===t.index){var n=e[uh];return n>-1?e[Yp][n].dynamicLContainerNode:null}return function r(t,e){return null==t.parent?function n(t){var e=t[eh];return e&&2!==e.type?jh(e,t[Yp]):null}(e):jh(t.parent,e)}(t,e[Yp])}(n,t).data:t[Yp]===e?null:t[Yp]}function qh(t){if(t[$p]){var e=t;!function n(t){var e=t[$p].cleanup;if(null!=e){for(var n=0;n<e.length-1;n+=2)"string"==typeof e[n]?(dh(t[e[n+1]]).native.removeEventListener(e[n],t[rh][e[n+2]],e[n+3]),n+=2):"number"==typeof e[n]?(0,t[rh][e[n]])():e[n].call(t[rh][e[n+1]]);t[rh]=null}}(e),function r(t){var e,n=t[$p];null!=n&&null!=(e=n.destroyHooks)&&wh(t,e)}(e),function i(t){var e=t[$p]&&t[$p].pipeDestroyHooks;e&&wh(t,e)}
805
+ */function Qh(t){for(var e=t[rh];e&&2===e.type;)e=(t=t[Jp])[rh];return t}function Gh(t,e,n,r,i){0===t?Kh(e)?e.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===t?Kh(e)?e.removeChild(n,r):n.removeChild(r):2===t&&e.destroyNode(r)}function Xh(t){var e=t[Yp].childIndex;return-1===e?null:t[e]}function $h(t,e){var n;return t.length>=$p&&(n=t[rh])&&2===n.type?
806
806
  /**
807
807
  * @license
808
808
  * Copyright Google Inc. All Rights Reserved.
@@ -817,13 +817,14 @@ function Oh(t,e){var n=Rh(t),r=Rh(e);return n&&r?function i(t,e,n){for(var r=t[u
817
817
  * Use of this source code is governed by an MIT-style license that can be
818
818
  * found in the LICENSE file at https://angular.io/license
819
819
  */
820
+ function r(t,e){if(-1===t.index){var n=e[lh];return n>-1?e[Jp][n]:null}return e[Jp][t.parent.index]}(n,t):t[Jp]===e?null:t[Jp]}function Yh(t){if(t.length>=$p){var e=t;!function n(t){var e=t[Yp].cleanup;if(null!=e){for(var n=0;n<e.length-1;n+=2)"string"==typeof e[n]?(_h(t[e[n+1]]).removeEventListener(e[n],t[oh][e[n+2]],e[n+3]),n+=2):"number"==typeof e[n]?(0,t[oh][e[n]])():e[n].call(t[oh][e[n+1]]);t[oh]=null}}(e),function r(t){var e,n=t[Yp];null!=n&&null!=(e=n.destroyHooks)&&Fh(t,e)}(e),function i(t){var e=t[Yp]&&t[Yp].pipeDestroyHooks;e&&Fh(t,e)}
820
821
  /**
821
822
  * @license
822
823
  * Copyright Google Inc. All Rights Reserved.
823
824
  *
824
825
  * Use of this source code is governed by an MIT-style license that can be
825
826
  * found in the LICENSE file at https://angular.io/license
826
- */(e),-1===e[$p].id&&Nh(e[sh])&&e[sh].destroy()}}var Kh,zh,Wh,Qh,Gh,Xh,$h,Yh,Zh=Promise.resolve(null),Jh="__CIRCULAR__";function tf(){return zh}function ef(){return Yh}var nf=!1,rf=!0,of=-1,sf=[0,1];function af(t,e){var n=Yh;return Gh=t&&t[$p],$h=t&&1==(1&t[th]),rf=t&&Gh.firstTemplatePass,of=t&&Gh.bindingStartIndex,Kh=t&&t[sh],Wh=e,Qh=!0,Yh=t,n&&(n[Jp]=Xh),Xh=t&&t[Jp],n}function uf(t,e){e||(nf||bh(Yh,Gh.viewHooks,Gh.viewCheckHooks,$h),Yh[th]&=-6),Yh[th]|=16,Yh[nh]=Gh.bindingStartIndex,af(t,null)}function cf(){lf();var t=rf;Gh.firstTemplatePass=rf=!1,nf||_h(Yh,Gh,$h),function e(t){for(var e=Hh(t);null!==e;e=e[Zp])if(e.length<Xp&&null===e[Eh])for(var n=e,r=0;r<n[Sh].length;r++){var i=n[Sh][r];ff(i,i[$p],i[ih],2)}}(Yh),function n(t){if(null!=t.contentQueries)for(var e=0;e<t.contentQueries.length;e+=2){var n=t.contentQueries[e];t.data[n].contentQueriesRefresh(n-Xp,t.contentQueries[e+1])}}(Gh),nf||bh(Yh,Gh.contentHooks,Gh.contentCheckHooks,$h),function r(t,e){if(null!=t)for(var n=0;n<t.length;n++)Sf(t[n],e)}(Gh.components,t)}function lf(){if(Gh.expandoInstructions){of=Yh[nh]=Gh.expandoStartIndex;for(var t=-1,e=-1,n=0;n<Gh.expandoInstructions.length;n++){var r=Gh.expandoInstructions[n];"number"==typeof r?r<=0?(e=-r,"number"==typeof Yh[of]&&(of+=Ph),t=of):of+=r:(Yh[nh]=of,r(t-Xp,e),t++)}}}function pf(t,e,n,r,i){var o=e.blueprint.slice();return o[Yp]=o[ch]=Yh,o[th]=25|r,o[ih]=n,o[oh]=Yh?Yh[oh]:null,o[sh]=t,o[ah]=i||null,o}function hf(t,e,n,r,i,o){var s,a=Qh?Wh:Wh&&Wh.parent,u=a&&Yh&&a!==Yh[eh],c=u?a:null,l=null!=o,p=function h(t,e,n){return{native:e,data:n,dynamicLContainerNode:null}}(0,n,l?o:null);if(-1===t||2===e)s=(o?o[$p].node:null)||xf(e,t,null,null,c,null);else{var f=t+Xp,d=Gh.data;if(Yh[f]=p,null==d[f]){var v=d[f]=xf(e,f,r,i,c,null);!Qh&&Wh&&(Wh.next=v,Wh.dynamicContainerNode&&(Wh.dynamicContainerNode.next=v))}s=d[f],Gh.firstChild||3!==e||(Gh.firstChild=s),Qh&&Wh&&(null==Wh.child&&u||2===Wh.type)&&(Wh.child=s)}if(2==(2&e)&&l){var y=o;y[eh]=s,y[$p].firstTemplatePass&&(y[$p].node=s)}return Wh=s,Qh=!0,s}function ff(t,e,n,r){var i,o=Qh,s=Wh;if(64&t[th])Tf(t[ih]);else try{Qh=!0,Wh=null,i=af(t,t[eh]),mf(),e.template(r,n),2&r?cf():t[$p].firstTemplatePass=rf=!1}finally{uf(i,1==(1&r)),Qh=o,Wh=s}}function df(t,e,n){var r=af(t,t[eh]);try{zh.begin&&zh.begin(),n?(mf(),n(vf(t),e),cf()):(function i(){nf||(_h(Yh,Gh,$h),bh(Yh,Gh.contentHooks,Gh.contentCheckHooks,$h))}(),lf(),Sf(Xp,!1))}finally{zh.end&&zh.end(),uf(r)}}function vf(t){return 1&t[th]?3:2}var yf=null;function mf(){yf=null}function gf(t,e,n){if(null===n[e]){n[e]=Jh;var r=t.factory();return function i(t,e,n){var r=jh(Wh,Yh),i=Ef(t,e,n,r);return n.template&&(r.data[ih]=e),rf&&vh(t,n.onInit,n.doCheck,Gh),Wh&&Wh.attrs&&function o(t,e,n,r){var i=r.initialInputs;(void 0===i||t>=i.length)&&(i=function o(t,e,n){var r=n.initialInputs||(n.initialInputs=[]);r[t]=null;for(var i=n.attrs,o=0;o<i.length;){var s=i[o];if(1===s)break;if(0!==s){var a=e[s],u=i[o+1];void 0!==a&&(r[t]||(r[t]=[])).push(a,u),o+=2}else o+=4}return r}(t,n,r));var s=i[t];if(s)for(var a=0;a<s.length;a+=2)e[s[a]]=s[a+1]}(t,i,n.inputs,Wh),n.contentQueries&&n.contentQueries(),i}(n[e]=Yh.length,r,t)}return n[e]===Jh&&function o(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(t.type),null}function _f(t,e,n,r,i,o,s){var a=Xp+n,u=a+r,c=function l(t,e){var n=new Array(e).fill(null,0,t).fill(kf,t);return n[uh]=-1,n[nh]=t,n}(a,u);return c[$p]={id:t,blueprint:c,template:e,viewQuery:s,node:null,data:c.slice(),childIndex:-1,bindingStartIndex:a,expandoStartIndex:u,directives:null,expandoInstructions:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,currentMatches:null,firstChild:null}}function bf(t,e){zh=t;var n=t.createRenderer(null,null);return"string"==typeof e?Nh(n)?n.selectRootElement(e):n.querySelector(e):e}function wf(t,e,n,r){!function i(){Qh=!1,Wh=null}();var o=hf(0,3,e,null,null,pf(Kh,function s(t,e,n,r,i,o){return t.ngPrivateData||(t.ngPrivateData=_f(-1,t,e,n,r,i,o))}(n.template,n.consts,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery),null,n.onPush?4:2,r));return rf&&(Gh.expandoInstructions=sf.slice(),n.diPublic&&n.diPublic(n),o.flags=Yh.length<<15|4096),Yh[Xp]}function xf(t,e,n,r,i,o){return{type:t,index:e,injectorIndex:i?i.injectorIndex:-1,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:o,next:null,child:null,parent:i,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function Ef(t,e,n,r){if(ph(e,Yh),r&&ph(r.native,Yh),Yh[t]=e,rf){var i=Wh.flags;0===i?Wh.flags=t<<15|4096&i|1:Wh.flags++,Gh.data.push(n),Gh.blueprint.push(null),n.hostBindings&&function o(t,e){Gh.expandoInstructions.push(e.hostBindings,e.hostVars)}(0,n)}else{var s=n.diPublic;s&&s(n)}return null!=n.attributes&&3==Wh.type&&function a(t,e){for(var n=Nh(Kh),r=0;r<e.length;){var i=e[r];if(1===i)break;if(i===Ah)r+=2;else if(0===i){var o=e[r+1],s=e[r+2],a=e[r+3];n?Kh.setAttribute(t,s,a,o):t.setAttributeNS(o,s,a),r+=4}else a=e[r+1],n?Kh.setAttribute(t,i,a):t.setAttribute(i,a),r+=2}}(r.native,n.attributes),e}function Sf(t,e){var n=dh(Yh[t]).data;Cf(n)&&6&n[th]&&(e&&function r(t){for(var e=t[$p],n=t.length;n<e.blueprint.length;n++)t[n]=e.blueprint[n]}(n),Nf(n,n[ih]))}function Cf(t){return 8==(8&t[th])}function Tf(t){for(var e=0;e<t.components.length;e++){var n=t.components[e];df(fh(n),n)}}function Pf(t){Nf(function e(t){var e,n=hh(t);if(Array.isArray(n)){var r=function i(t,e){var n=t[$p].components;if(n)for(var r=0;r<n.length;r++){var i=n[r];if(dh(t[i]).data[ih]===e)return i}else if(t[Xp].data[ih]===e)return Xp;return-1}(n,t);(s=function o(t,e,n){return{lViewData:t,nodeIndex:e,native:n,component:void 0,directives:void 0,localRefs:void 0}}(n,r,(e=dh(n[r])).native)).component=t,ph(t,s),ph(s.native,s)}else{var s;e=dh((s=n).lViewData[s.nodeIndex])}return e}(t).data,t)}function Af(t){Tf(t[ih])}function Nf(t,e){var n=t[$p],r=af(t,t[eh]),i=n.template,o=n.viewQuery;try{mf(),function s(t,e,n){t&&1&e&&t(1,n)}(o,t[th],e),i(vf(t),e),cf(),function a(t,e){t&&t(2,e)}(o,e)}finally{uf(r)}}var kf={},Of=Zh;
827
+ */
827
828
  /**
828
829
  * @license
829
830
  * Copyright Google Inc. All Rights Reserved.
@@ -831,7 +832,6 @@ function Oh(t,e){var n=Rh(t),r=Rh(e);return n&&r?function i(t,e,n){for(var r=t[u
831
832
  * Use of this source code is governed by an MIT-style license that can be
832
833
  * found in the LICENSE file at https://angular.io/license
833
834
  */
834
- function Mf(t,e,n,r,i){var o=Ef(n.length,e.factory(),e,t);return r.components.push(o),t.data[ih]=o,i&&i.forEach(function(t){return t(o,e)}),n[$p].firstTemplatePass&&function s(t){for(var e=0;e<t;e++)Yh.push(kf),Gh.blueprint.push(kf),Gh.data.push(null)}(e.hostVars),lf(),o}function If(t,e){return{components:[],scheduler:t,clean:Of,playerHandler:e||null,flags:0}}function Rf(t,e){var n=fh(t)[$p],r=n.data.length-1;vh(r,e.onInit,e.doCheck,n),function i(t,e){if(e.firstTemplatePass)for(var n=t>>15,r=n+(4095&t),i=n;i<r;i++){var o=e.data[i];yh(o,e,i),mh(o,e,i),gh(o,e,i)}}(r<<15|1,n)}
835
835
  /**
836
836
  * @license
837
837
  * Copyright Google Inc. All Rights Reserved.
@@ -845,14 +845,14 @@ function Mf(t,e,n,r,i){var o=Ef(n.length,e.factory(),e,t);return r.components.pu
845
845
  *
846
846
  * Use of this source code is governed by an MIT-style license that can be
847
847
  * found in the LICENSE file at https://angular.io/license
848
- */
848
+ */(e),-1===e[Yp].id&&Kh(e[uh])&&e[uh].destroy()}}var Zh,Jh,tf,ef,nf,rf,of,sf,af=Promise.resolve(null),uf="__CIRCULAR__";function cf(){return Jh}var lf=!1,pf=!0,hf=-1;function ff(t,e){var n=sf;return nf=t&&t[Yp],of=t&&1==(1&t[Zp]),pf=t&&nf.firstTemplatePass,hf=t&&nf.bindingStartIndex,Zh=t&&t[uh],tf=e,ef=!0,sf=t,n&&(n[eh]=rf),rf=t&&t[eh],n}function df(t,e){e||(lf||Lh(sf,nf.viewHooks,nf.viewCheckHooks,of),sf[Zp]&=-6),sf[Zp]|=16,sf[ih]=nf.bindingStartIndex,ff(t,null)}function vf(){yf();var t=pf;nf.firstTemplatePass=pf=!1,lf||jh(sf,nf,of),function e(t){for(var e=Xh(t);null!==e;e=e[th])if(e.length<$p&&-1===e[mh])for(var n=e,r=0;r<n[gh].length;r++){var i=n[gh][r];bf(i,i[Yp],i[sh],2)}}(sf),function n(t){if(null!=t.contentQueries)for(var e=0;e<t.contentQueries.length;e+=2){var n=t.contentQueries[e];t.data[n].contentQueriesRefresh(n-$p,t.contentQueries[e+1])}}(nf),lf||Lh(sf,nf.contentHooks,nf.contentCheckHooks,of),function r(t,e){if(null!=t)for(var n=0;n<t.length;n++)Of(t[n],e)}(nf.components,t)}function yf(){if(nf.expandoInstructions){hf=sf[ih]=nf.expandoStartIndex;for(var t=-1,e=-1,n=0;n<nf.expandoInstructions.length;n++){var r=nf.expandoInstructions[n];"number"==typeof r?r<=0?(e=-r,"number"==typeof sf[hf]&&(hf+=Uh),t=hf):hf+=r:(sf[ih]=hf,r(t-$p,e),t++)}}}function mf(t,e,n,r,i){var o=e.blueprint.slice();return o[Zp]=25|r,o[Jp]=o[ph]=sf,o[sh]=n,o[ah]=sf?sf[ah]:null,o[uh]=t,o[ch]=i||null,o}function gf(t,e,n,r,i){var o=t+$p;sf[o]=n;var s=nf.data[o];return null==s&&(s=nf.data[o]=Nf(e,o,r,i,null),tf&&(!ef||null!=tf.child||null===s.parent&&2!==tf.type?ef||(tf.next=s):tf.child=s)),null==nf.firstChild&&3===e&&(nf.firstChild=s),tf=s,ef=!0,s}function _f(t,e){return null==e[Yp].node&&(e[Yp].node=Nf(2,t,null,null,null)),ef=!0,tf=e[rh]=e[Yp].node}function bf(t,e,n,r){var i,o=ef,s=tf;if(64&t[Zp])If(t[sh]);else try{ef=!0,tf=null,i=ff(t,t[rh]),Sf(),e.template(r,n),2&r?vf():t[Yp].firstTemplatePass=pf=!1}finally{df(i,1==(1&r)),ef=o,tf=s}}function wf(t,e,n){var r=ff(t,t[rh]);try{Jh.begin&&Jh.begin(),n?(Sf(),n(xf(t),e),vf()):(function i(){lf||(jh(sf,nf,of),Lh(sf,nf.contentHooks,nf.contentCheckHooks,of))}(),yf(),Of($p,!1))}finally{Jh.end&&Jh.end(),df(r)}}function xf(t){return 1&t[Zp]?3:2}var Ef=null;function Sf(){Ef=null}function Cf(t,e){var n=e||Zh;return Kh(n)?n.createElement(t,Ef):null===Ef?n.createElement(t):n.createElementNS(Ef,t)}function Tf(t,e,n){if(null===n[e]){n[e]=uf;var r=t.factory();return function i(t,e,n){var r=kf(t,e,n,bh(tf,sf));return n.template&&(wh(tf.index,sf)[sh]=e),pf&&Mh(t,n.onInit,n.doCheck,nf),tf&&tf.attrs&&function i(t,e,n,r){var i=r.initialInputs;(void 0===i||t>=i.length)&&(i=function o(t,e,n){var r=n.initialInputs||(n.initialInputs=[]);r[t]=null;for(var i=n.attrs,o=0;o<i.length;){var s=i[o];if(1===s)break;if(0!==s){var a=e[s],u=i[o+1];void 0!==a&&(r[t]||(r[t]=[])).push(a,u),o+=2}else o+=4}return r}(t,n,r));var s=i[t];if(s)for(var a=0;a<s.length;a+=2)e[s[a]]=s[a+1]}(t,r,n.inputs,tf),n.contentQueries&&n.contentQueries(),r}(n[e]=sf.length,r,t)}return n[e]===uf&&function o(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(t.type),null}function Pf(t,e,n,r,i,o,s){var a=$p+n,u=a+r,c=function l(t,e){var n=new Array(e).fill(null,0,t).fill(Lf,t);return n[lh]=-1,n[ih]=t,n}(a,u);return c[Yp]={id:t,blueprint:c,template:e,viewQuery:s,node:null,data:c.slice(),childIndex:-1,bindingStartIndex:a,expandoStartIndex:u,expandoInstructions:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,currentMatches:null,firstChild:null}}function Af(t,e){Jh=t;var n=t.createRenderer(null,null);return"string"==typeof e?Kh(n)?n.selectRootElement(e):n.querySelector(e):e}function Nf(t,e,n,r,i){var o=ef?tf:tf&&tf.parent,s=o&&sf&&o!==sf[rh]?o:null;return{type:t,index:e,injectorIndex:s?s.injectorIndex:-1,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:i,next:null,child:null,parent:s,detached:null,stylingTemplate:null,projection:null}}function kf(t,e,n,r){if(Th(e,sf),r&&Th(r,sf),sf[t]=e,pf){var i=tf.flags;0===i?tf.flags=t<<15|4096&i|1:tf.flags++,nf.data.push(n),nf.blueprint.push(null),n.hostBindings&&function o(t,e){nf.expandoInstructions.push(e.hostBindings,e.hostVars)}(0,n)}else{var s=n.diPublic;s&&s(n)}return null!=n.attributes&&3==tf.type&&function a(t,e){for(var n=Kh(Zh),r=0;r<e.length;){var i=e[r];if(1===i)break;if(i===qh)r+=2;else if(0===i){var o=e[r+1],s=e[r+2],a=e[r+3];n?Zh.setAttribute(t,s,a,o):t.setAttributeNS(o,s,a),r+=4}else a=e[r+1],n?Zh.setAttribute(t,i,a):t.setAttribute(i,a),r+=2}}(r,n.attributes),e}function Of(t,e){var n=wh(t,sf);Mf(n)&&6&n[Zp]&&(e&&function r(t){for(var e=t[Yp],n=t.length;n<e.blueprint.length;n++)t[n]=e.blueprint[n]}(n),jf(n,n[sh]))}function Mf(t){return 8==(8&t[Zp])}function If(t){for(var e=0;e<t.components.length;e++){var n=t.components[e];wf(Sh(n),n)}}function Df(t){jf(function e(t){var e,n=Eh(t);if(Array.isArray(n)){var r=Nh(n,t);(i=Ch(n,r,(e=wh(r,n))[nh])).component=t,Th(t,i),Th(i.native,i)}else{var i;e=wh((i=n).nodeIndex,i.lViewData)}return e}(t),t)}function Rf(t){If(t[sh])}function jf(t,e){var n=t[Yp],r=ff(t,t[rh]),i=n.template,o=n.viewQuery;try{Sf(),function s(t,e,n){t&&1&e&&t(1,n)}(o,t[Zp],e),i(xf(t),e),vf(),function a(t,e){t&&t(2,e)}(o,e)}finally{df(r)}}var Lf={},Ff=af,Vf=[0,1];function Bf(t,e,n,r,i,o){var s=kf(r.length,n.factory(),n,t);return i.components.push(s),e[sh]=s,o&&o.forEach(function(t){return t(s,n)}),r[Yp].firstTemplatePass&&function a(t){for(var e=0;e<t;e++)sf.push(Lf),nf.blueprint.push(Lf),nf.data.push(null)}(n.hostVars),yf(),s}function Hf(t,e){return{components:[],scheduler:t,clean:Ff,playerHandler:e||null,flags:0}}function Uf(t,e){var n=Sh(t)[Yp],r=n.data.length-1;Mh(r,e.onInit,e.doCheck,n),function i(t,e){if(e.firstTemplatePass)for(var n=t>>15,r=n+(4095&t),i=n;i<r;i++){var o=e.data[i];Ih(o,e,i),Dh(o,e,i),Rh(o,e,i)}}(r<<15|1,n)}
849
849
  /**
850
850
  * @license
851
851
  * Copyright Google Inc. All Rights Reserved.
852
852
  *
853
853
  * Use of this source code is governed by an MIT-style license that can be
854
854
  * found in the LICENSE file at https://angular.io/license
855
- */var Df,jf=function jf(){},Lf=(new Xl("Renderer2Interceptor"),function Lf(){});!function(t){t[t.Important=1]="Important",t[t.DashCase=2]="DashCase"}(Df||(Df={}));var Ff=function Ff(){};
855
+ */
856
856
  /**
857
857
  * @license
858
858
  * Copyright Google Inc. All Rights Reserved.
@@ -866,7 +866,7 @@ function Mf(t,e,n,r,i){var o=Ef(n.length,e.factory(),e,t);return r.components.pu
866
866
  *
867
867
  * Use of this source code is governed by an MIT-style license that can be
868
868
  * found in the LICENSE file at https://angular.io/license
869
- */function Vf(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Bf(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+Th]?-1:t.injectorIndex}function Hf(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[eh],r=1;n&&-1===n.injectorIndex;)n=(e=e[ch])[eh],r++;return n?n.injectorIndex|r<<15:-1}function Uf(t,e){for(var n=t>>15,r=e;n>0;)r=r[ch],n--;return r}function qf(t,e){var n=e.currentMatches;if(n)for(var r=0;r<n.length;r+=2){var i=n[r];if(i.type===t)return gf(i,r+1,n)}return null}function Kf(t,e,n){var r=e[$p].data[t+Ch].flags,i=4095&r;if(0!==i)for(var o=r>>15,s=o+i,a=e[$p].data,u=o;u<s;u++){var c=a[u];if(c.type===n&&c.diPublic)return e[u]}return null}function zf(t,e,n){var r=64&t,i=32&t;return!!((128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e])&1<<t)}function Wf(t,e){return 2&t||1&t&&e>>15>0}var Qf,Gf,Xf=function(){function t(t,e){this._tNode=t,this._hostView=e,this._injectorIndex=function n(t,e){var n=Bf(t,e);if(-1!==n)return n;var r=e[$p];r.firstTemplatePass&&(t.injectorIndex=e.length,Vf(r.data,t),Vf(e,null),Vf(r.blueprint,null));var i=Hf(t,e),o=32767&i,s=Uf(i,e),a=s[$p].data,u=t.injectorIndex;if(-1!==i)for(var c=0;c<Th;c++){var l=o+c;e[u+c]=s[l]|a[l]}return e[u+Th]=i,u}(t,e)}return t.prototype.get=function(t){return t===Ff?function e(t){var e=t[sh];if(Nh(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(this._hostView):(function n(t,e){Wh=t,Yh=e}(this._tNode,this._hostView),function r(t,e,n,i){void 0===i&&(i=0);var o=function s(t){var e=t[Ul];return"number"==typeof e?255&e:e}(n);if("function"==typeof o)return o();if(null!=o){var a=Bf(t,e),u=a,c=e,l=-1;for((4&i||-1===u)&&(Wf(i,l=-1===u?Hf(t,e):c[u+Th])?u=-1:(u=32767&l,c=Uf(l,c)));-1!==u;){for(;-1!==u&&!zf(o,u,c[$p].data);){if(Wf(i,l=c[u+Th])){u=-1;break}if(!zf(o,u,c)){u=-1;break}u=32767&l,c=Uf(l,c)}if(-1===u)break;var p=void 0;if(p=Kf(u,c,n))return p;if(u===a&&e===c&&(p=qf(n,c[$p])))return p;u=32767&l,c=Uf(l,c)}}var h=Lp(e[oh]);try{return Fp(n,i)}finally{Lp(h)}}(this._tNode,this._hostView,t))},t}(),$f=function $f(){},Yf=function Yf(){},Zf=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){
869
+ */function qf(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Kf(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+Hh]?-1:t.injectorIndex}function zf(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[rh],r=1;n&&-1===n.injectorIndex;)n=(e=e[ph])[rh],r++;return n?n.injectorIndex|r<<15:-1}function Wf(t,e){for(var n=t>>15,r=e;n>0;)r=r[ph],n--;return r}function Qf(t,e){var n=e.currentMatches;if(n)for(var r=0;r<n.length;r+=2){var i=n[r];if(i.type===t)return Tf(i,r+1,n)}return null}function Gf(t,e,n){var r=e[Yp].data[t+Bh].flags,i=4095&r;if(0!==i)for(var o=r>>15,s=o+i,a=e[Yp].data,u=o;u<s;u++){var c=a[u];if(c.type===n&&c.diPublic)return e[u]}return null}function Xf(t,e,n){var r=64&t,i=32&t;return!!((128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e])&1<<t)}function $f(t,e){return 2&t||1&t&&e>>15>0}var Yf,Zf,Jf=function(){function t(t,e){this._tNode=t,this._hostView=e,this._injectorIndex=function n(t,e){var n=Kf(t,e);if(-1!==n)return n;var r=e[Yp];r.firstTemplatePass&&(t.injectorIndex=e.length,qf(r.data,t),qf(e,null),qf(r.blueprint,null));var i=zf(t,e),o=32767&i,s=Wf(i,e),a=s[Yp].data,u=t.injectorIndex;if(-1!==i)for(var c=0;c<Hh;c++){var l=o+c;e[u+c]=s[l]|a[l]}return e[u+Hh]=i,u}(t,e)}return t.prototype.get=function(t){return function e(t,n){tf=t,sf=n}(this._tNode,this._hostView),function n(t,e,r,i){void 0===i&&(i=0);var o=function s(t){var e=t[Ul];return"number"==typeof e?255&e:e}(r);if("function"==typeof o)return o();if(null!=o){var a=Kf(t,e),u=a,c=e,l=-1;for((4&i||-1===u)&&($f(i,l=-1===u?zf(t,e):c[u+Hh])?u=-1:(u=32767&l,c=Wf(l,c)));-1!==u;){for(;-1!==u&&!Xf(o,u,c[Yp].data);){if($f(i,l=c[u+Hh])){u=-1;break}if(!Xf(o,u,c)){u=-1;break}u=32767&l,c=Wf(l,c)}if(-1===u)break;var p=void 0;if(p=Gf(u,c,r))return p;if(u===a&&e===c&&(p=Qf(r,c[Yp])))return p;u=32767&l,c=Wf(l,c)}}var h=Lp(e[ah]);try{return Fp(r,i)}finally{Lp(h)}}(this._tNode,this._hostView,t)},t}(),td=function td(){},ed=function ed(){},nd=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){
870
870
  /**
871
871
  * @license
872
872
  * Copyright Google Inc. All Rights Reserved.
@@ -874,7 +874,7 @@ function Mf(t,e,n,r,i){var o=Ef(n.length,e.factory(),e,t);return r.components.pu
874
874
  * Use of this source code is governed by an MIT-style license that can be
875
875
  * found in the LICENSE file at https://angular.io/license
876
876
  */
877
- throw function e(t){var e=Error("No component factory found for "+pp(t)+". Did you add it to @NgModule.entryComponents?");return e.ngComponent=t,e}(t)},t}(),Jf=function(){function t(){}return t.NULL=new Zf,t}(),td=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return o(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Yf),ed=function ed(){},nd=function nd(){},rd=function(){function t(t,e,n){this._context=e,this._componentIndex=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null,this._view=t}return Object.defineProperty(t.prototype,"context",{get:function(){return this._context?this._context:this._lookUpContext()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 32==(32&this._view[th])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewContainerRef&&Cf(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),function t(e){var n=e[sh];Nh(n)&&n.destroyNode&&function r(t,e,n,i,o){for(var s=t[$p].node,a=-1,u=t,c=s.child;c;){var l=null,p=i?i.native:null;if(3===c.type){var h=jh(c,u);Bh(e,n,p,h.native,o),h.dynamicLContainerNode&&Bh(e,n,p,h.dynamicLContainerNode.native,o)}else if(0===c.type){var f=u[c.index];Bh(e,n,p,f.native,o);var d=f.dynamicLContainerNode?f.dynamicLContainerNode.data:f.data;i&&(d[5]=i),d[Sh].length&&(l=(u=d[Sh][0])[$p].node,o=f.dynamicLContainerNode?f.dynamicLContainerNode.native:f.native)}else if(1===c.type){var v=Vh(u),y=v[eh].projection[c.projection];Fh[++a]=c,Fh[++a]=u,y&&(l=(u=v[Yp])[$p].data[y.index])}else l=c.child;if(null===l)for(null===c.next&&8192&c.flags&&(u=Fh[a--],c=Fh[a--]),l=c.next;!l;){if(null===(c=c.parent||u[$p].node)||c===s)return null;0===c.type&&(o=(u=u[Yp])[c.index].native),l=2===c.type&&u[Zp]?(u=u[Zp])[$p].node:c.next}c=l}}(e,2,n),function i(t){if(-1===t[$p].childIndex)return qh(t);for(var e=Hh(t);e;){var n=null;if(e.length>=Xp?e[$p].childIndex>-1&&(n=Hh(e)):e[Sh].length&&(n=e[Sh][0]),null==n){for(;e&&!e[Zp]&&e!==t;)qh(e),e=Uh(e,t);qh(e||t),n=e&&e[Zp]}e=n}}(e),e[th]|=32}(this._view)},t.prototype.onDestroy=function(t){!function e(t,n){(function r(t){return t[rh]||(t[rh]=[])})(t).push(n),t[$p].firstTemplatePass&&function i(t){return t[$p].cleanup||(t[$p].cleanup=[])}(t).push(t[rh].length-1,null)}(this._view,t)},t.prototype.markForCheck=function(){!function t(e){for(var n=e;n&&!(64&n[th]);)n[th]|=4,n=n[Yp];n[th]|=4;var r=n[ih],i=0===r.flags;r.flags|=1,i&&function o(t){var e;t.clean==Zh&&(t.clean=new Promise(function(t){return e=t}),t.scheduler(function(){if(1&t.flags&&(t.flags&=-2,Tf(t)),2&t.flags){t.flags&=-3;var n=t.playerHandler;n&&n.flushPlayers()}t.clean=Zh,e(null)}))}(r)}(this._view)},t.prototype.detach=function(){this._view[th]&=-9},t.prototype.reattach=function(){this._view[th]|=8},t.prototype.detectChanges=function(){var t=tf();t.begin&&t.begin(),Pf(this.context),t.end&&t.end()},t.prototype.checkNoChanges=function(){!function t(e){nf=!0;try{Pf(e)}finally{nf=!1}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t.prototype._lookUpContext=function(){return this._context=this._view[Yp][this._componentIndex]},t}(),id=function(t){function e(e){var n=t.call(this,e,null,-1)||this;return n._view=e,n}return o(e,t),e.prototype.detectChanges=function(){Af(this._view)},e.prototype.checkNoChanges=function(){!function t(e){nf=!0;try{Af(e)}finally{nf=!1}}(this._view)},e}(rd);
877
+ throw function e(t){var e=Error("No component factory found for "+pp(t)+". Did you add it to @NgModule.entryComponents?");return e.ngComponent=t,e}(t)},t}(),rd=function(){function t(){}return t.NULL=new nd,t}(),id=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return o(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(ed),od=function od(){},sd=function sd(){},ad=function(){function t(t,e,n){this._context=e,this._componentIndex=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null,this._view=t}return Object.defineProperty(t.prototype,"context",{get:function(){return this._context?this._context:this._lookUpContext()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 32==(32&this._view[Zp])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewContainerRef&&Mf(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),function t(e){var n=e[uh];Kh(n)&&n.destroyNode&&function r(t,e,n,i,o){for(var s,a=t[Yp].node,u=-1,c=t,l=a.child;l;){var p=null;if(3===l.type){Gh(e,n,i,bh(l,c),o);var h=c[l.index];s=h,Array.isArray(s)&&"number"==typeof s[mh]&&Gh(e,n,i,h[6],o)}else if(0===l.type){var f=c[l.index];Gh(e,n,i,f[6],o),i&&(f[7]=i),f[gh].length&&(p=(c=f[gh][0])[Yp].node,o=f[6])}else if(1===l.type){var d=Qh(c),v=d[rh].projection[l.projection];Wh[++u]=l,Wh[++u]=c,v&&(p=(c=d[Jp])[Yp].data[v.index])}else p=l.child;if(null===p)for(null===l.next&&8192&l.flags&&(c=Wh[u--],l=Wh[u--]),p=l.next;!p;){if(null===(l=l.parent||c[Yp].node)||l===a)return null;0===l.type&&(o=(c=c[Jp])[l.index][6]),p=2===l.type&&c[th]?(c=c[th])[Yp].node:l.next}l=p}}(e,2,n,null),function i(t){if(-1===t[Yp].childIndex)return Yh(t);for(var e=Xh(t);e;){var n=null;if(e.length>=$p?e[Yp].childIndex>-1&&(n=Xh(e)):e[gh].length&&(n=e[gh][0]),null==n){for(;e&&!e[th]&&e!==t;)Yh(e),e=$h(e,t);Yh(e||t),n=e&&e[th]}e=n}}(e),e[Zp]|=32}(this._view)},t.prototype.onDestroy=function(t){!function e(t,n){(function r(t){return t[oh]||(t[oh]=[])})(t).push(n),t[Yp].firstTemplatePass&&function i(t){return t[Yp].cleanup||(t[Yp].cleanup=[])}(t).push(t[oh].length-1,null)}(this._view,t)},t.prototype.markForCheck=function(){!function t(e){for(var n=e;n&&!(64&n[Zp]);)n[Zp]|=4,n=n[Jp];n[Zp]|=4;var r=n[sh],i=0===r.flags;r.flags|=1,i&&function o(t){var e;t.clean==af&&(t.clean=new Promise(function(t){return e=t}),t.scheduler(function(){if(1&t.flags&&(t.flags&=-2,If(t)),2&t.flags){t.flags&=-3;var n=t.playerHandler;n&&n.flushPlayers()}t.clean=af,e(null)}))}(r)}(this._view)},t.prototype.detach=function(){this._view[Zp]&=-9},t.prototype.reattach=function(){this._view[Zp]|=8},t.prototype.detectChanges=function(){var t=cf();t.begin&&t.begin(),Df(this.context),t.end&&t.end()},t.prototype.checkNoChanges=function(){!function t(e){lf=!0;try{Df(e)}finally{lf=!1}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t.prototype._lookUpContext=function(){return this._context=this._view[Jp][this._componentIndex]},t}(),ud=function(t){function e(e){var n=t.call(this,e,null,-1)||this;return n._view=e,n}return o(e,t),e.prototype.detectChanges=function(){Rf(this._view)},e.prototype.checkNoChanges=function(){!function t(e){lf=!0;try{Rf(e)}finally{lf=!1}}(this._view)},e}(ad);
878
878
  /**
879
879
  * @license
880
880
  * Copyright Google Inc. All Rights Reserved.
@@ -888,7 +888,7 @@ throw function e(t){var e=Error("No component factory found for "+pp(t)+". Did y
888
888
  *
889
889
  * Use of this source code is governed by an MIT-style license that can be
890
890
  * found in the LICENSE file at https://angular.io/license
891
- */function od(t,e,n){return Qf||(Qf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(t)),new Qf(jh(e,n).native)}
891
+ */function cd(t,e,n){return Yf||(Yf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(t)),new Yf(bh(e,n))}
892
892
  /**
893
893
  * @license
894
894
  * Copyright Google Inc. All Rights Reserved.
@@ -903,21 +903,28 @@ throw function e(t){var e=Error("No component factory found for "+pp(t)+". Did y
903
903
  * Use of this source code is governed by an MIT-style license that can be
904
904
  * found in the LICENSE file at https://angular.io/license
905
905
  */
906
- function sd(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}var ad=sd,ud=sd,cd=sd,ld=sd,pd=function(){function t(t){this.nativeElement=t}return t.__NG_ELEMENT_ID__=function(){return ad(t)},t}(),hd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.resolveComponentFactory=function(t){var e=function n(t){return t[Ll]||null}(t);return new md(e)},e}(Jf);function fd(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var dd=new Xl("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return If(Fp(vd))}}),vd=new Xl("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return"undefined"!=typeof requestAnimationFrame&&"undefined"!=typeof window?requestAnimationFrame.bind(window):setTimeout}}),yd=new Xl("WRAP_RENDERER_FACTORY2"),md=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return fd(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return fd(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var i,o=void 0===n;i=r?r.injector.get(yd,function(t){return t})(r.injector.get(Lf)):kh;var s=o?function a(t,e){var n=e||Kh;return Nh(n)?n.createElement(t,yf):null===yf?n.createElement(t):n.createElementNS(yf,t)}(this.selector,i.createRenderer(null,this.componentDef)):bf(i,n),u=this.componentDef.onPush?68:66,c=r&&!o?r.injector.get(dd):If(requestAnimationFrame.bind(window)),l=pf(i.createRenderer(s,this.componentDef),_f(-1,null,1,0,null,null,null),c,u);l[oh]=r&&r.injector||null;var p,h,f,d,v,y=af(l,null);try{if(i.begin&&i.begin(),h=wf(0,s,this.componentDef),f=function m(t){return v.data[t+Xp]}(0),e)for(var g=0,_=f.projection=[],b=0;b<e.length;b++){for(var w=e[b],x=null,E=null,S=0;S<w.length;S++){v=void 0,(v=(d=l)[$p]).firstTemplatePass&&(v.expandoStartIndex++,v.blueprint.push(null),d.push(null));var C=hf(++g,3,w[S],null,null);E?E.next=C:x=C,E=C}_.push(x)}p=Mf(h,this.componentDef,l,c,[Rf]);var T=h.data;ff(T,T[$p],p,1),T[th]&=-2}finally{af(y,null),i.end&&i.end()}var P=new gd(this.componentType,p,l,t,od(pd,f,l));return o&&(P.hostView._tViewNode.child=f),P},e}(Yf),gd=(new hd,function(t){function e(e,n,r,i,o){var s=t.call(this)||this;return s.location=o,s.destroyCbs=[],s.instance=n,s.hostView=s.changeDetectorRef=new id(r),s.hostView._tViewNode=hf(-1,2,null,null,null,r),s.injector=i,s.componentType=e,s}return o(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}($f)),_d=new Xl("The presence of this token marks an injector as being the root injector."),bd={},wd={},xd=[],Ed=void 0;function Sd(){return void 0===Ed&&(Ed=new xp),Ed}var Cd=function(){function t(t,e,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1,Ad([t],function(t){return r.processInjectorType(t,new Set)}),e&&Ad(e,function(t){return r.processProvider(t)}),this.records.set(wp,Pd(void 0,this)),this.isRootInjector=this.records.has(_d),this.injectorDefTypes.forEach(function(t){return r.get(t)})}return t.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=bp),void 0===n&&(n=0),this.assertNotDestroyed();var r=Lp(this);try{if(!(4&n)){var i=this.records.get(t);if(void 0===i){var o=function s(t){return"function"==typeof t||"object"==typeof t&&t instanceof Xl}
906
+ function ld(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}var pd,hd=ld,fd=ld,dd=ld,vd=ld,yd=ld,md=function(){function t(t){this.nativeElement=t}return t.__NG_ELEMENT_ID__=function(){return hd(t)},t}(),gd=function gd(){},_d=(new Xl("Renderer2Interceptor"),function _d(){});!function(t){t[t.Important=1]="Important",t[t.DashCase=2]="DashCase"}(pd||(pd={}));var bd=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return yd()},t}(),wd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.resolveComponentFactory=function(t){var e=function n(t){return t[Ll]||null}(t);return new Td(e)},e}(rd);
907
+ /**
908
+ * @license
909
+ * Copyright Google Inc. All Rights Reserved.
910
+ *
911
+ * Use of this source code is governed by an MIT-style license that can be
912
+ * found in the LICENSE file at https://angular.io/license
913
+ */function xd(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Ed=new Xl("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return Hf(Fp(Sd))}}),Sd=new Xl("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return"undefined"!=typeof requestAnimationFrame&&"undefined"!=typeof window?requestAnimationFrame.bind(window):setTimeout}}),Cd=new Xl("WRAP_RENDERER_FACTORY2"),Td=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return xd(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return xd(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var i,o=void 0===n;i=r?r.injector.get(Cd,function(t){return t})(r.injector.get(_d)):zh;var s=o?Cf(this.selector,i.createRenderer(null,this.componentDef)):Af(i,n),a=this.componentDef.onPush?68:66,u=r&&!o?r.injector.get(Ed):Hf(requestAnimationFrame.bind(window)),c=i.createRenderer(s,this.componentDef),l=mf(c,Pf(-1,null,1,0,null,null,null),u,a);l[ah]=r&&r.injector||null;var p,h,f,d,v=ff(l,null);try{i.begin&&i.begin();var y=function m(t,e,n,r,i){!function o(){ef=!1,tf=null}();var s=n[Yp],a=mf(r,function u(t,e,n,r,i,o){return t.ngPrivateData||(t.ngPrivateData=Pf(-1,t,e,n,r,i,o))}(e.template,e.consts,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery),null,e.onPush?4:2,i),c=gf(0,3,t,null,null);return s.firstTemplatePass&&(s.expandoInstructions=Vf.slice(),e.diPublic&&e.diPublic(e),c.flags=n.length<<15|4096),a[nh]=n[$p],a[rh]=c,n[$p]=a}(s,this.componentDef,l,c);if(h=function g(t,e){return e[Yp].data[t+$p]}(0,l),e)for(var _=0,b=h.projection=[],w=0;w<e.length;w++){for(var x=e[w],E=null,S=null,C=0;C<x.length;C++){d=void 0,(d=(f=l)[Yp]).firstTemplatePass&&(d.expandoStartIndex++,d.blueprint.push(null),f.push(null));var T=gf(++_,3,x[C],null,null);S?S.next=T:E=T,S=T}b.push(E)}p=Bf(s,y,this.componentDef,l,u,[Uf]),bf(y,y[Yp],p,1),y[Zp]&=-2}finally{ff(v,null),i.end&&i.end()}var P=new Pd(this.componentType,p,l,t,cd(md,h,l));return o&&(P.hostView._tViewNode.child=h),P},e}(ed),Pd=(new wd,function(t){function e(e,n,r,i,o){var s=t.call(this)||this;return s.location=o,s.destroyCbs=[],s.instance=n,s.hostView=s.changeDetectorRef=new ud(r),s.hostView._tViewNode=_f(-1,r),s.injector=i,s.componentType=e,s}return o(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(td)),Ad=new Xl("The presence of this token marks an injector as being the root injector."),Nd={},kd={},Od=[],Md=void 0;function Id(){return void 0===Md&&(Md=new xp),Md}var Dd=function(){function t(t,e,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1,Ld([t],function(t){return r.processInjectorType(t,new Set)}),e&&Ld(e,function(t){return r.processProvider(t)}),this.records.set(wp,jd(void 0,this)),this.isRootInjector=this.records.has(Ad),this.injectorDefTypes.forEach(function(t){return r.get(t)})}return t.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=bp),void 0===n&&(n=0),this.assertNotDestroyed();var r=Lp(this);try{if(!(4&n)){var i=this.records.get(t);if(void 0===i){var o=function s(t){return"function"==typeof t||"object"==typeof t&&t instanceof Xl}
907
914
  /**
908
915
  * @license
909
916
  * Copyright Google Inc. All Rights Reserved.
910
917
  *
911
918
  * Use of this source code is governed by an MIT-style license that can be
912
919
  * found in the LICENSE file at https://angular.io/license
913
- */(t)&&Kl(t);o&&this.injectableDefInScope(o)&&(i=Td(t),this.records.set(t,i))}if(void 0!==i)return this.hydrate(t,i)}return 2&n&&Sd(),this.parent.get(t,e)}finally{Lp(r)}},t.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e){var n=this,r=zl(t=fp(t)),i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=void 0!==i&&t.providers||xd;if(void 0!==i&&(r=zl(i)),null!=r){if(e.has(o))throw new Error("Circular dependency: type "+pp(o)+" ends up importing itself.");if(this.injectorDefTypes.add(o),this.records.set(o,Pd(r.factory)),null!=r.imports){e.add(o);try{Ad(r.imports,function(t){return n.processInjectorType(t,e)})}finally{e.delete(o)}}null!=r.providers&&Ad(r.providers,function(t){return n.processProvider(t)}),Ad(s,function(t){return n.processProvider(t)})}},t.prototype.processProvider=function(t){var e=Nd(t=fp(t))?t:fp(t.provide),n=function r(t){var e=fp(t),n=bd,r=void 0;if(Nd(t))return Td(t);if(e=fp(t.provide),function i(t){return Ap in t}(t))n=t.useValue;else if(function o(t){return!!t.useExisting}(t))r=function(){return Fp(t.useExisting)};else if(function s(t){return!!t.useFactory}(t))r=function(){return t.useFactory.apply(t,f(Vp(t.deps||[])))};else{var a=t.useClass||e;if(!function u(t){return!!t.deps}(t))return Td(a);r=function(){return new(a.bind.apply(a,f([void 0],Vp(t.deps))))}}return Pd(r,n)}(t);if(Nd(t)||!0!==t.multi){var i=this.records.get(e);if(i&&void 0!==i.multi)throw new Error("Mixed multi-provider for "+pp(e))}else{var o=this.records.get(e);if(o){if(void 0===o.multi)throw new Error("Mixed multi-provider for "+e+".")}else(o=Pd(void 0,bd,!0)).factory=function(){return Vp(o.multi)},this.records.set(e,o);e=t,o.multi.push(t)}this.records.set(e,n)},t.prototype.hydrate=function(t,e){if(e.value===wd)throw new Error("Circular dep for "+pp(t));return e.value===bd&&(e.value=wd,e.value=e.factory()),"object"==typeof e.value&&e.value&&function n(t){return"object"==typeof t&&null!=t&&t.ngOnDestroy&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||"root"===t.providedIn&&this.isRootInjector:this.injectorDefTypes.has(t.providedIn))},t}();function Td(t){var e=Kl(t);if(null===e){if(t instanceof Xl)throw new Error("Token "+pp(t)+" is missing an ngInjectableDef definition.");return Pd(function(){return new t})}return Pd(e.factory)}function Pd(t,e,n){return void 0===e&&(e=bd),void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function Ad(t,e){t.forEach(function(t){return Array.isArray(t)?Ad(t,e):e(t)})}function Nd(t){return"function"==typeof t}var kd={provide:Jf,useFactory:function(){return new hd},deps:[]},Od=function(t){function e(e,n){var r=t.call(this)||this;r._bootstrapComponents=[],r.destroyCbs=[];var i=function o(t){return t[Bl]||null}
920
+ */(t)&&Kl(t);o&&this.injectableDefInScope(o)&&(i=Rd(t),this.records.set(t,i))}if(void 0!==i)return this.hydrate(t,i)}return 2&n&&Id(),this.parent.get(t,e)}finally{Lp(r)}},t.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e){var n=this,r=zl(t=fp(t)),i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=void 0!==i&&t.providers||Od;if(void 0!==i&&(r=zl(i)),null!=r){if(e.has(o))throw new Error("Circular dependency: type "+pp(o)+" ends up importing itself.");if(this.injectorDefTypes.add(o),this.records.set(o,jd(r.factory)),null!=r.imports){e.add(o);try{Ld(r.imports,function(t){return n.processInjectorType(t,e)})}finally{e.delete(o)}}null!=r.providers&&Ld(r.providers,function(t){return n.processProvider(t)}),Ld(s,function(t){return n.processProvider(t)})}},t.prototype.processProvider=function(t){var e=Fd(t=fp(t))?t:fp(t.provide),n=function r(t){var e=fp(t),n=Nd,r=void 0;if(Fd(t))return Rd(t);if(e=fp(t.provide),function i(t){return Ap in t}(t))n=t.useValue;else if(function o(t){return!!t.useExisting}(t))r=function(){return Fp(t.useExisting)};else if(function s(t){return!!t.useFactory}(t))r=function(){return t.useFactory.apply(t,f(Vp(t.deps||[])))};else{var a=t.useClass||e;if(!function u(t){return!!t.deps}(t))return Rd(a);r=function(){return new(a.bind.apply(a,f([void 0],Vp(t.deps))))}}return jd(r,n)}(t);if(Fd(t)||!0!==t.multi){var i=this.records.get(e);if(i&&void 0!==i.multi)throw new Error("Mixed multi-provider for "+pp(e))}else{var o=this.records.get(e);if(o){if(void 0===o.multi)throw new Error("Mixed multi-provider for "+e+".")}else(o=jd(void 0,Nd,!0)).factory=function(){return Vp(o.multi)},this.records.set(e,o);e=t,o.multi.push(t)}this.records.set(e,n)},t.prototype.hydrate=function(t,e){if(e.value===kd)throw new Error("Circular dep for "+pp(t));return e.value===Nd&&(e.value=kd,e.value=e.factory()),"object"==typeof e.value&&e.value&&function n(t){return"object"==typeof t&&null!=t&&t.ngOnDestroy&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||"root"===t.providedIn&&this.isRootInjector:this.injectorDefTypes.has(t.providedIn))},t}();function Rd(t){var e=Kl(t);if(null===e){if(t instanceof Xl)throw new Error("Token "+pp(t)+" is missing an ngInjectableDef definition.");return jd(function(){return new t})}return jd(e.factory)}function jd(t,e,n){return void 0===e&&(e=Nd),void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function Ld(t,e){t.forEach(function(t){return Array.isArray(t)?Ld(t,e):e(t)})}function Fd(t){return"function"==typeof t}var Vd={provide:rd,useFactory:function(){return new wd},deps:[]},Bd=function(t){function e(e,n){var r=t.call(this)||this;r._bootstrapComponents=[],r.destroyCbs=[];var i=function o(t){return t[Bl]||null}
914
921
  /**
915
922
  * @license
916
923
  * Copyright Google Inc. All Rights Reserved.
917
924
  *
918
925
  * Use of this source code is governed by an MIT-style license that can be
919
926
  * found in the LICENSE file at https://angular.io/license
920
- */(e);return r._bootstrapComponents=i.bootstrap,r.injector=function s(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||Sd(),new Cd(t,n,e)}(e,n,[kd,{provide:ed,useValue:r}]),r.instance=r.injector.get(e),r.componentFactoryResolver=new hd,r}return o(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(ed);
927
+ */(e);return r._bootstrapComponents=i.bootstrap,r.injector=function s(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||Id(),new Dd(t,n,e)}(e,n,[Vd,{provide:od,useValue:r}]),r.instance=r.injector.get(e),r.componentFactoryResolver=new wd,r}return o(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(od);
921
928
  /**
922
929
  * @license
923
930
  * Copyright Google Inc. All Rights Reserved.
@@ -932,7 +939,7 @@ function sd(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}var ad=s
932
939
  * Use of this source code is governed by an MIT-style license that can be
933
940
  * found in the LICENSE file at https://angular.io/license
934
941
  */
935
- function Md(t){return"function"==typeof t}!function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,n}o(e,t),e.prototype.create=function(t){return new Od(this.moduleType,t)}}(nd);var Id=!1,Rd={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Id&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Id=t},get useDeprecatedSynchronousErrorHandling(){return Id}};function Dd(t){setTimeout(function(){throw t})}var jd={closed:!0,next:function(t){},error:function(t){if(Rd.useDeprecatedSynchronousErrorHandling)throw t;Dd(t)},complete:function(){}},Ld=Array.isArray||function(t){return t&&"number"==typeof t.length};function Fd(t){return null!=t&&"object"==typeof t}var Vd,Bd={e:{}};function Hd(){try{return Vd.apply(this,arguments)}catch(t){return Bd.e=t,Bd}}function Ud(t){return Vd=t,Hd}function qd(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}qd.prototype=Object.create(Error.prototype);var Kd=qd,zd=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,i=this._unsubscribe,o=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=r?r.length:0;n;)n.remove(this),n=++s<a&&r[s]||null;if(Md(i)&&Ud(i).call(this)===Bd&&(e=!0,t=t||(Bd.e instanceof Kd?Wd(Bd.e.errors):[Bd.e])),Ld(o))for(s=-1,a=o.length;++s<a;){var u=o[s];if(Fd(u)&&Ud(u.unsubscribe).call(u)===Bd){e=!0,t=t||[];var c=Bd.e;c instanceof Kd?t=t.concat(Wd(c.errors)):t.push(c)}}if(e)throw new Kd(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function Wd(t){return t.reduce(function(t,e){return t.concat(e instanceof Kd?e.errors:e)},[])}var Qd="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),Gd=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xd=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,o._parentSubscription=null,arguments.length){case 0:o.destination=jd;break;case 1:if(!n){o.destination=jd;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new $d(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new $d(o,n,r,i)}return o}return Gd(e,t),e.prototype[Qd]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this._parentSubscription=null,this},e}(zd),$d=function(t){function e(e,n,r,i){var o,s=t.call(this)||this;s._parentSubscriber=e;var a=s;return Md(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==jd&&(Md((a=Object.create(n)).unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=o,s._error=r,s._complete=i,s}return Gd(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;Rd.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=Rd.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Dd(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Dd(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};Rd.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),Rd.useDeprecatedSynchronousErrorHandling)throw t;Dd(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!Rd.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return Rd.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Dd(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(Xd),Yd="function"==typeof Symbol&&Symbol.observable||"@@observable";function Zd(){}var Jd=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=function o(t,e,n){if(t){if(t instanceof Xd)return t;if(t[Qd])return t[Qd]()}return t||e||n?new Xd(t,e,n):new Xd(jd)}(t,e,n);if(r?r.call(i,this.source):i.add(this.source||Rd.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Rd.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){Rd.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function e(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof Xd?e:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=tv(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[Yd]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:function n(t){return t?1===t.length?t[0]:function e(n){return t.reduce(function(t,e){return e(t)},n)}:Zd}(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=tv(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function tv(t){if(t||(t=Promise),!t)throw new Error("no Promise impl found");return t}function ev(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}ev.prototype=Object.create(Error.prototype);var nv=ev,rv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iv=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return rv(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(zd),ov=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sv=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return ov(e,t),e}(Xd),av=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return ov(e,t),e.prototype[Qd]=function(){return new sv(this)},e.prototype.lift=function(t){var e=new uv(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new nv;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new nv;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new nv;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new nv;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new nv;return this.hasError?(t.error(this.thrownError),zd.EMPTY):this.isStopped?(t.complete(),zd.EMPTY):(this.observers.push(t),new iv(this,t))},e.prototype.asObservable=function(){var t=new Jd;return t.source=this,t},e.create=function(t,e){return new uv(t,e)},e}(Jd),uv=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return ov(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):zd.EMPTY},e}(av),cv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function lv(){return function t(e){return e.lift(new pv(e))}}var pv=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new hv(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),hv=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return cv(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(Xd),fv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dv=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return fv(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new zd).add(this.source.subscribe(new yv(this.getSubject(),this))),t.closed?(this._connection=null,t=zd.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return lv()(this)},e}(Jd).prototype,vv={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:dv._subscribe},_isComplete:{value:dv._isComplete,writable:!0},getSubject:{value:dv.getSubject},connect:{value:dv.connect},refCount:{value:dv.refCount}},yv=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return fv(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(sv),mv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}fv(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),gv=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=r,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}mv(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new av,n.set(e,i);var o=new _v(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new _v(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new gv(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))}}(Xd),function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return mv(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(Xd)),_v=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return mv(e,t),e.prototype._subscribe=function(t){var e=new zd,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new bv(n)),e.add(r.subscribe(t)),e},e}(Jd),bv=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return mv(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(zd),wv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xv=(function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}wv(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new nv;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(av),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ev=function(t){function e(e,n){return t.call(this)||this}return xv(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(zd),Sv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cv=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return Sv(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(Ev),Tv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pv=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return Tv(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(Cv),Av=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),Nv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kv=function(t){function e(n,r){void 0===r&&(r=Av.now);var i=t.call(this,n,function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return Nv(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(Av),Ov=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mv=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ov(e,t),e}(kv))(Pv),Iv=new Jd(function(t){return t.complete()});function Rv(t){return t?function e(t){return new Jd(function(e){return t.schedule(function(){return e.complete()})})}(t):Iv}function Dv(t){return t&&"function"==typeof t.schedule}var jv=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}};function Lv(t,e){return new Jd(e?function(n){var r=new zd,i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:jv(t))}function Fv(t){t.subscriber.error(t.error)}var Vv=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(Dv(n)?t.pop():n=void 0,t.length){case 0:return Rv(n);case 1:return n?Lv(t,n):function r(t){var e=new Jd(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}(t[0]);default:return Lv(t,n)}}(this.value);case"E":return function e(t,n){return new Jd(n?function(e){return n.schedule(Fv,0,{error:t,subscriber:e})}:function(e){return e.error(t)})}(this.error);case"C":return Rv()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),Bv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hv=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return Bv(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new Uv(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Vv.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Vv.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Vv.createComplete()),this.unsubscribe()},e}(Xd),Uv=function Uv(t,e){this.notification=t,this.destination=e},qv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kv=(function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}qv(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Kv(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new nv;if(this.isStopped||this.hasError?e=zd.EMPTY:(this.observers.push(t),e=new iv(this,t)),i&&t.add(t=new Hv(t,i)),n)for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);else for(s=0;s<o&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||Mv).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}(av),function Kv(t,e){this.time=t,this.value=e}),zv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wv=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}zv(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),zd.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),zd.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)}}(av),1),Qv={},Gv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xv=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return Gv(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=Wv++,Qv[o]=i,Promise.resolve().then(function(){return function t(e){var n=Qv[e];n&&n()}(o)}),o)));var i,o},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(delete Qv[n],e.scheduled=void 0)},e}(Cv),$v=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yv=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $v(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(kv))(Xv),Zv=(new kv(Cv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Jv=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return Zv(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(Cv),ty=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ey=(new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ty(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(kv))(Jv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ny=(function(t){function e(e,n){void 0===e&&(e=ny),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}ey(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n.shift())&&(this.frame=e.delay)<=r&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(kv),function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return ey(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(Cv));function ry(t){return t}function iy(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}iy.prototype=Object.create(Error.prototype);var oy=iy,sy=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ay=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new uy(t,this.project,this.thisArg))},t}(),uy=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return sy(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Xd),cy=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ly=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cy(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(Xd),py=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hy=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return py(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(Xd),fy=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Dd),e}},dy=function vy(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),yy=function(t){return function(e){for(var n=t[dy]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}},my=function(t){return function(e){var n=t[Yd]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},gy=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function _y(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var by=function(t){if(t instanceof Jd)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[Yd])return my(t);if(gy(t))return jv(t);if(_y(t))return fy(t);if(t&&"function"==typeof t[dy])return yy(t);var e=Fd(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function wy(t,e,n,r,i){if(void 0===i&&(i=new hy(t,n,r)),!i.closed)return by(e)(i)}var xy=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ey={};!function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}xy(e,t),e.prototype._next=function(t){this.values.push(Ey),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(wy(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,s=this.toRespond?o[n]===Ey?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(ly);var Sy=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Cy=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new Ty(t,this.project,this.concurrent))},t}(),Ty=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return Sy(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new hy(this,void 0,void 0);this.destination.add(r),wy(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(ly),Py=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;o<i;o++){var s=wy(r,n[o],null,o);s&&r.add(s)}return r}Py(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.values,i=r.length;t._hasValue?(this.completed++,this.completed===i&&(n===i&&e.next(r),e.complete())):e.complete()}}(ly),new Jd(Zd);var Ay=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ny=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}Ay(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=wy(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ky=(function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:null,i.values=r,i}Ny(e,t),e.prototype._next=function(t){var e=this.iterators;Ld(t)?e.push(new Oy(t)):e.push("function"==typeof t[dy]?new ky(t[dy]()):new My(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.destination.add(r.subscribe(r,n)):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++)if("function"==typeof(s=t[r]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(r=0;r<e;r++){var s,a=(s=t[r]).next();if(s.hasCompleted()&&(i=!0),a.done)return void n.complete();o.push(a.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(Xd),function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}()),Oy=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[dy]=function(){return this},t.prototype.next=function(t){var e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),My=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return Ny(e,t),e.prototype[dy]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return wy(this,this.observable,this,e)},e}(ly),Iy=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return o(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=t.prototype.subscribe.call(this,i,o,s);return e instanceof zd&&e.add(a),a},e}(av),Ry=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ud(t,pd)},t}();function Dy(t){for(var e=null;t;){var n=[];t.values.push(n),e={next:e,list:t.list,predicate:t.predicate,values:n,containerValues:null},t=t.next}return e}function jy(t){for(var e=null;t;)e={next:e,list:t.list,predicate:t.predicate,values:[],containerValues:t.values},t=t.next;return e}function Ly(t,e){for(;e;)e.containerValues.splice(t,0,e.values),e=e.next}function Fy(t){for(;t;){var e=t.containerValues,n=e.indexOf(t.values);e.splice(n,1)[0].length&&t.list.setDirty(),t=t.next}}function Vy(t,e){var n=t.localNames;if(n)for(var r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function By(t,e,n){var r=n[Ul];if("function"==typeof r)return r();var i=function o(t,e,n){var r=e[$p].data;if(r)for(var i=t.flags,o=i>>15,s=o+(4095&i),a=o;a<s;a++){var u=r[a];if(u.type===n&&u.diPublic)return a}return null}(t,e,n);return null!==i?e[i]:null}function Hy(t,e){return 3===t.type||4===t.type?od(pd,t,e):0===t.type?function n(t,e,r,i){Gf||(Gf=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a._declarationParentView=e,a.elementRef=n,a._tView=r,a._renderer=i,a._queries=o,a._injectorIndex=s,a}return o(e,t),e.prototype.createEmbeddedView=function(t,e,n,r,i){var o=function s(t,e,n,r,i,o){var s=Qh,a=Wh;Qh=!0,Wh=null;var u=pf(r,t,e,2,function c(){return Yh&&Yh[ah]}());return u[ch]=n,i&&(u[Jp]=i.createView()),hf(-1,2,null,null,null,u),t.firstTemplatePass&&(t.node.injectorIndex=o),Qh=s,Wh=a,u}(this._tView,t,this._declarationParentView,this._renderer,this._queries,this._injectorIndex);e&&function a(t,e,n,r,i){var o=e[Sh];r>0&&(o[r-1][Zp]=t),r<o.length?(t[Zp]=o[r],o.splice(r,0,t)):(o.push(t),t[Zp]=null),i>-1&&(t[uh]=i,t[Yp]=n),t[Jp]&&t[Jp].insertView(r),t[th]|=8}(o,e,r,i,n.parent.index),ff(o,this._tView,t,1);var u=new rd(o,t,-1);return u._tViewNode=o[eh],u},e}(t));var s=jh(r,i);return new Gf(i,od(e,r,i),r.tViews,function a(){return Kh}(),s.data[Jp],r.injectorIndex)}(Ry,pd,t,e):null}function Uy(t,e){for(var n=ef();t;){var r=t.predicate,i=r.type;if(i)null!==(u=By(e,n,r.read||i))&&qy(t,u);else for(var o=r.selector,s=0;s<o.length;s++){var a=Vy(e,o[s]);if(null!==a){var u=null;null!==(u=r.read?By(e,n,r.read):a>-1?n[a]:Hy(e,n))&&qy(t,u)}}t=t.next}}function qy(t,e){t.values.push(e),t.list.setDirty()}function Ky(t,e,n,r){return{next:t,list:e,predicate:function i(t,e){var n=Array.isArray(t);return{type:n?null:t,selector:n?t:null,read:e}}(n,r),values:e._valuesTree,containerValues:null}}!function(){function t(t,e,n){this.parent=t,this.shallow=e,this.deep=n}t.prototype.track=function(t,e,n,r){n?this.deep=Ky(this.deep,t,e,null!=r?r:null):this.shallow=Ky(this.shallow,t,e,null!=r?r:null)},t.prototype.clone=function(){return new t(this,null,this.deep)},t.prototype.container=function(){var e=Dy(this.shallow),n=Dy(this.deep);return e||n?new t(this,e,n):null},t.prototype.createView=function(){var e=jy(this.shallow),n=jy(this.deep);return e||n?new t(this,e,n):null},t.prototype.insertView=function(t){Ly(t,this.shallow),Ly(t,this.deep)},t.prototype.addNode=function(t){return Uy(this.deep,t),Lh(t)?(Uy(this.shallow,t),t.parent&&Lh(t.parent)&&Uy(this.parent.shallow,t),this.parent):(function e(t){return null===t.parent||Lh(t.parent)}(t)&&Uy(this.shallow,t),this)},t.prototype.removeView=function(){Fy(this.shallow),Fy(this.deep)}}(),function(){function t(){this.dirty=!0,this.changes=new Iy,this._values=[],this._valuesTree=[]}Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){var t=this._values;return t.length?t[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){var t=this._values;return t.length?t[t.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._values.map(t)},t.prototype.filter=function(t){return this._values.filter(t)},t.prototype.find=function(t){return this._values.find(t)},t.prototype.reduce=function(t,e){return this._values.reduce(t,e)},t.prototype.forEach=function(t){this._values.forEach(t)},t.prototype.some=function(t){return this._values.some(t)},t.prototype.toArray=function(){return this._values.slice(0)},t.prototype[up()]=function(){return this._values[up()]()},t.prototype.toString=function(){return this._values.toString()},t.prototype.reset=function(t){this._values=function e(t){for(var e=[],n=0;n<t.length;){var r=t[n];Array.isArray(r)?r.length>0?(t=r.concat(t.slice(n+1)),n=0):n++:(e.push(r),n++)}return e}(t),this.dirty=!1},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()}}();var zy=!0;
942
+ function Hd(t){return"function"==typeof t}!function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,n}o(e,t),e.prototype.create=function(t){return new Bd(this.moduleType,t)}}(sd);var Ud=!1,qd={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Ud&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Ud=t},get useDeprecatedSynchronousErrorHandling(){return Ud}};function Kd(t){setTimeout(function(){throw t})}var zd={closed:!0,next:function(t){},error:function(t){if(qd.useDeprecatedSynchronousErrorHandling)throw t;Kd(t)},complete:function(){}},Wd=Array.isArray||function(t){return t&&"number"==typeof t.length};function Qd(t){return null!=t&&"object"==typeof t}var Gd,Xd={e:{}};function $d(){try{return Gd.apply(this,arguments)}catch(t){return Xd.e=t,Xd}}function Yd(t){return Gd=t,$d}function Zd(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}Zd.prototype=Object.create(Error.prototype);var Jd=Zd,tv=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,i=this._unsubscribe,o=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=r?r.length:0;n;)n.remove(this),n=++s<a&&r[s]||null;if(Hd(i)&&Yd(i).call(this)===Xd&&(e=!0,t=t||(Xd.e instanceof Jd?ev(Xd.e.errors):[Xd.e])),Wd(o))for(s=-1,a=o.length;++s<a;){var u=o[s];if(Qd(u)&&Yd(u.unsubscribe).call(u)===Xd){e=!0,t=t||[];var c=Xd.e;c instanceof Jd?t=t.concat(ev(c.errors)):t.push(c)}}if(e)throw new Jd(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function ev(t){return t.reduce(function(t,e){return t.concat(e instanceof Jd?e.errors:e)},[])}var nv="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),rv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iv=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,o._parentSubscription=null,arguments.length){case 0:o.destination=zd;break;case 1:if(!n){o.destination=zd;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new ov(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new ov(o,n,r,i)}return o}return rv(e,t),e.prototype[nv]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this._parentSubscription=null,this},e}(tv),ov=function(t){function e(e,n,r,i){var o,s=t.call(this)||this;s._parentSubscriber=e;var a=s;return Hd(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==zd&&(Hd((a=Object.create(n)).unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=o,s._error=r,s._complete=i,s}return rv(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;qd.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=qd.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Kd(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Kd(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};qd.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),qd.useDeprecatedSynchronousErrorHandling)throw t;Kd(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!qd.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return qd.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Kd(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(iv),sv="function"==typeof Symbol&&Symbol.observable||"@@observable";function av(){}var uv=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=function o(t,e,n){if(t){if(t instanceof iv)return t;if(t[nv])return t[nv]()}return t||e||n?new iv(t,e,n):new iv(zd)}(t,e,n);if(r?r.call(i,this.source):i.add(this.source||qd.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),qd.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){qd.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function e(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof iv?e:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=cv(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[sv]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:function n(t){return t?1===t.length?t[0]:function e(n){return t.reduce(function(t,e){return e(t)},n)}:av}(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=cv(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function cv(t){if(t||(t=Promise),!t)throw new Error("no Promise impl found");return t}function lv(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}lv.prototype=Object.create(Error.prototype);var pv=lv,hv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fv=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return hv(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(tv),dv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vv=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return dv(e,t),e}(iv),yv=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return dv(e,t),e.prototype[nv]=function(){return new vv(this)},e.prototype.lift=function(t){var e=new mv(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new pv;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new pv;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new pv;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new pv;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new pv;return this.hasError?(t.error(this.thrownError),tv.EMPTY):this.isStopped?(t.complete(),tv.EMPTY):(this.observers.push(t),new fv(this,t))},e.prototype.asObservable=function(){var t=new uv;return t.source=this,t},e.create=function(t,e){return new mv(t,e)},e}(uv),mv=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return dv(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):tv.EMPTY},e}(yv),gv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function _v(){return function t(e){return e.lift(new bv(e))}}var bv=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new wv(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),wv=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return gv(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(iv),xv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ev=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return xv(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new tv).add(this.source.subscribe(new Cv(this.getSubject(),this))),t.closed?(this._connection=null,t=tv.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return _v()(this)},e}(uv).prototype,Sv={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Ev._subscribe},_isComplete:{value:Ev._isComplete,writable:!0},getSubject:{value:Ev.getSubject},connect:{value:Ev.connect},refCount:{value:Ev.refCount}},Cv=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return xv(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(vv),Tv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}xv(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Pv=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=r,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}Tv(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new yv,n.set(e,i);var o=new Av(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new Av(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new Pv(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))}}(iv),function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return Tv(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(iv)),Av=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return Tv(e,t),e.prototype._subscribe=function(t){var e=new tv,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new Nv(n)),e.add(r.subscribe(t)),e},e}(uv),Nv=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return Tv(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(tv),kv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ov=(function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}kv(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new pv;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(yv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Mv=function(t){function e(e,n){return t.call(this)||this}return Ov(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(tv),Iv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dv=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return Iv(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(Mv),Rv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jv=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return Rv(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(Dv),Lv=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),Fv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vv=function(t){function e(n,r){void 0===r&&(r=Lv.now);var i=t.call(this,n,function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return Fv(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(Lv),Bv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hv=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bv(e,t),e}(Vv))(jv),Uv=new uv(function(t){return t.complete()});function qv(t){return t?function e(t){return new uv(function(e){return t.schedule(function(){return e.complete()})})}(t):Uv}function Kv(t){return t&&"function"==typeof t.schedule}var zv=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}};function Wv(t,e){return new uv(e?function(n){var r=new tv,i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:zv(t))}function Qv(t){t.subscriber.error(t.error)}var Gv=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(Kv(n)?t.pop():n=void 0,t.length){case 0:return qv(n);case 1:return n?Wv(t,n):function r(t){var e=new uv(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}(t[0]);default:return Wv(t,n)}}(this.value);case"E":return function e(t,n){return new uv(n?function(e){return n.schedule(Qv,0,{error:t,subscriber:e})}:function(e){return e.error(t)})}(this.error);case"C":return qv()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),Xv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$v=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return Xv(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new Yv(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Gv.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Gv.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Gv.createComplete()),this.unsubscribe()},e}(iv),Yv=function Yv(t,e){this.notification=t,this.destination=e},Zv=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jv=(function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}Zv(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Jv(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new pv;if(this.isStopped||this.hasError?e=tv.EMPTY:(this.observers.push(t),e=new fv(this,t)),i&&t.add(t=new $v(t,i)),n)for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);else for(s=0;s<o&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||Hv).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}(yv),function Jv(t,e){this.time=t,this.value=e}),ty=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ey=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}ty(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),tv.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),tv.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)}}(yv),1),ny={},ry=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iy=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return ry(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=ey++,ny[o]=i,Promise.resolve().then(function(){return function t(e){var n=ny[e];n&&n()}(o)}),o)));var i,o},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(delete ny[n],e.scheduled=void 0)},e}(Dv),oy=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sy=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oy(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(Vv))(iy),ay=(new Vv(Dv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),uy=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return ay(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(Dv),cy=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ly=(new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cy(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(Vv))(uy),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),py=(function(t){function e(e,n){void 0===e&&(e=py),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}ly(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n.shift())&&(this.frame=e.delay)<=r&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(Vv),function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return ly(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(Dv));function hy(t){return t}function fy(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}fy.prototype=Object.create(Error.prototype);var dy=fy,vy=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yy=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new my(t,this.project,this.thisArg))},t}(),my=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return vy(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(iv),gy=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gy(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(iv),by=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wy=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return by(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(iv),xy=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Kd),e}},Ey=function Sy(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Cy=function(t){return function(e){for(var n=t[Ey]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}},Ty=function(t){return function(e){var n=t[sv]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},Py=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function Ay(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Ny=function(t){if(t instanceof uv)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[sv])return Ty(t);if(Py(t))return zv(t);if(Ay(t))return xy(t);if(t&&"function"==typeof t[Ey])return Cy(t);var e=Qd(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function ky(t,e,n,r,i){if(void 0===i&&(i=new wy(t,n,r)),!i.closed)return Ny(e)(i)}var Oy=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),My={};!function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}Oy(e,t),e.prototype._next=function(t){this.values.push(My),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(ky(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,s=this.toRespond?o[n]===My?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(_y);var Iy=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Dy=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new Ry(t,this.project,this.concurrent))},t}(),Ry=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return Iy(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new wy(this,void 0,void 0);this.destination.add(r),ky(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(_y),jy=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;o<i;o++){var s=ky(r,n[o],null,o);s&&r.add(s)}return r}jy(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.values,i=r.length;t._hasValue?(this.completed++,this.completed===i&&(n===i&&e.next(r),e.complete())):e.complete()}}(_y),new uv(av);var Ly=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fy=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}Ly(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=ky(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Vy=(function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:null,i.values=r,i}Fy(e,t),e.prototype._next=function(t){var e=this.iterators;Wd(t)?e.push(new By(t)):e.push("function"==typeof t[Ey]?new Vy(t[Ey]()):new Hy(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.destination.add(r.subscribe(r,n)):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++)if("function"==typeof(s=t[r]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(r=0;r<e;r++){var s,a=(s=t[r]).next();if(s.hasCompleted()&&(i=!0),a.done)return void n.complete();o.push(a.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(iv),function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}()),By=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[Ey]=function(){return this},t.prototype.next=function(t){var e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Hy=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return Fy(e,t),e.prototype[Ey]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return ky(this,this.observable,this,e)},e}(_y),Uy=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return o(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=t.prototype.subscribe.call(this,i,o,s);return e instanceof tv&&e.add(a),a},e}(yv),qy=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return fd(t,md)},t}();function Ky(t){for(var e=null;t;){var n=[];t.values.push(n),e={next:e,list:t.list,predicate:t.predicate,values:n,containerValues:null},t=t.next}return e}function zy(t){for(var e=null;t;)e={next:e,list:t.list,predicate:t.predicate,values:[],containerValues:t.values},t=t.next;return e}function Wy(t,e){for(;e;)e.containerValues.splice(t,0,e.values),e=e.next}function Qy(t){for(;t;){var e=t.containerValues,n=e.indexOf(t.values);e.splice(n,1)[0].length&&t.list.setDirty(),t=t.next}}function Gy(t,e){var n=t.localNames;if(n)for(var r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function Xy(t,e,n){var r=n[Ul];if("function"==typeof r)return r();var i=function o(t,e,n){var r=e[Yp].data;if(r)for(var i=t.flags,o=i>>15,s=o+(4095&i),a=o;a<s;a++){var u=r[a];if(u.type===n&&u.diPublic)return a}return null}(t,e,n);return null!==i?e[i]:null}function $y(t,e){return 3===t.type||4===t.type?cd(md,t,e):0===t.type?function n(t,e,r,i){Zf||(Zf=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a._declarationParentView=e,a.elementRef=n,a._tView=r,a._renderer=i,a._queries=o,a._injectorIndex=s,a}return o(e,t),e.prototype.createEmbeddedView=function(t,e,n,r,i){var o=function s(t,e,n,r,i,o){var s=ef,a=tf;ef=!0,tf=null;var u=mf(r,t,e,2,function c(){return sf&&sf[ch]}());return u[ph]=n,i&&(u[eh]=i.createView()),_f(-1,u),t.firstTemplatePass&&(t.node.injectorIndex=o),ef=s,tf=a,u}(this._tView,t,this._declarationParentView,this._renderer,this._queries,this._injectorIndex);e&&function a(t,e,n,r,i){var o=e[gh];r>0&&(o[r-1][th]=t),r<o.length?(t[th]=o[r],o.splice(r,0,t)):(o.push(t),t[th]=null),i>-1&&(t[lh]=i,t[Jp]=n),t[eh]&&t[eh].insertView(r),t[Zp]|=8}(o,e,r,i,n.index),bf(o,this._tView,t,1);var u=new ad(o,t,-1);return u._tViewNode=o[rh],u},e}(t));var s=i[r.index];return new Zf(i,cd(e,r,i),r.tViews,function a(){return Zh}(),s[eh],r.injectorIndex)}(qy,md,t,e):null}function Yy(t,e){for(var n=function r(){return sf}();t;){var i=t.predicate,o=i.type;if(o)null!==(c=Xy(e,n,i.read||o))&&Zy(t,c);else for(var s=i.selector,a=0;a<s.length;a++){var u=Gy(e,s[a]);if(null!==u){var c=null;null!==(c=i.read?Xy(e,n,i.read):u>-1?n[u]:$y(e,n))&&Zy(t,c)}}t=t.next}}function Zy(t,e){t.values.push(e),t.list.setDirty()}function Jy(t,e,n,r){return{next:t,list:e,predicate:function i(t,e){var n=Array.isArray(t);return{type:n?null:t,selector:n?t:null,read:e}}(n,r),values:e._valuesTree,containerValues:null}}!function(){function t(t,e,n){this.parent=t,this.shallow=e,this.deep=n}t.prototype.track=function(t,e,n,r){n?this.deep=Jy(this.deep,t,e,null!=r?r:null):this.shallow=Jy(this.shallow,t,e,null!=r?r:null)},t.prototype.clone=function(){return new t(this,null,this.deep)},t.prototype.container=function(){var e=Ky(this.shallow),n=Ky(this.deep);return e||n?new t(this,e,n):null},t.prototype.createView=function(){var e=zy(this.shallow),n=zy(this.deep);return e||n?new t(this,e,n):null},t.prototype.insertView=function(t){Wy(t,this.shallow),Wy(t,this.deep)},t.prototype.addNode=function(t){return Yy(this.deep,t),xh(t)?(Yy(this.shallow,t),t.parent&&xh(t.parent)&&Yy(this.parent.shallow,t),this.parent):(function e(t){return null===t.parent||xh(t.parent)}(t)&&Yy(this.shallow,t),this)},t.prototype.removeView=function(){Qy(this.shallow),Qy(this.deep)}}(),function(){function t(){this.dirty=!0,this.changes=new Uy,this._values=[],this._valuesTree=[]}Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){var t=this._values;return t.length?t[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){var t=this._values;return t.length?t[t.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._values.map(t)},t.prototype.filter=function(t){return this._values.filter(t)},t.prototype.find=function(t){return this._values.find(t)},t.prototype.reduce=function(t,e){return this._values.reduce(t,e)},t.prototype.forEach=function(t){this._values.forEach(t)},t.prototype.some=function(t){return this._values.some(t)},t.prototype.toArray=function(){return this._values.slice(0)},t.prototype[up()]=function(){return this._values[up()]()},t.prototype.toString=function(){return this._values.toString()},t.prototype.reset=function(t){this._values=function e(t){for(var e=[],n=0;n<t.length;){var r=t[n];Array.isArray(r)?r.length>0?(t=r.concat(t.slice(n+1)),n=0):n++:(e.push(r),n++)}return e}(t),this.dirty=!1},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()}}();var tm=!0;
936
943
  /**
937
944
  * @license
938
945
  * Copyright Google Inc. All Rights Reserved.
@@ -960,7 +967,7 @@ function Md(t){return"function"==typeof t}!function(t){function e(e){var n=t.cal
960
967
  *
961
968
  * Use of this source code is governed by an MIT-style license that can be
962
969
  * found in the LICENSE file at https://angular.io/license
963
- */function Wy(){return zy}
970
+ */function em(){return tm}
964
971
  /**
965
972
  * @license
966
973
  * Copyright Google Inc. All Rights Reserved.
@@ -981,7 +988,7 @@ function Md(t){return"function"==typeof t}!function(t){function e(e){var n=t.cal
981
988
  *
982
989
  * Use of this source code is governed by an MIT-style license that can be
983
990
  * found in the LICENSE file at https://angular.io/license
984
- */function Qy(t){var e,n,r={};try{for(var i=p(t.split(",")),o=i.next();!o.done;o=i.next())r[o.value]=!0}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function Gy(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=p(n),s=o.next();!s.done;s=o.next()){var a=s.value;for(var u in a)a.hasOwnProperty(u)&&(i[u]=!0)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return i}var Xy,$y=Qy("area,br,col,hr,img,wbr"),Yy=Qy("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Zy=Qy("rp,rt"),Jy=Gy(Zy,Yy);Gy($y,Gy(Yy,Qy("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Gy(Zy,Qy("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Jy),Gy(Qy("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Qy("srcset"),Qy("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(Xy||(Xy={}));var tm=function tm(){};
991
+ */function nm(t){var e,n,r={};try{for(var i=p(t.split(",")),o=i.next();!o.done;o=i.next())r[o.value]=!0}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function rm(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=p(n),s=o.next();!s.done;s=o.next()){var a=s.value;for(var u in a)a.hasOwnProperty(u)&&(i[u]=!0)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return i}var im,om=nm("area,br,col,hr,img,wbr"),sm=nm("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),am=nm("rp,rt"),um=rm(am,sm);rm(om,rm(sm,nm("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),rm(am,nm("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),um),rm(nm("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),nm("srcset"),nm("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(im||(im={}));var cm=function cm(){};
985
992
  /**
986
993
  * @license
987
994
  * Copyright Google Inc. All Rights Reserved.
@@ -1052,7 +1059,7 @@ function Md(t){return"function"==typeof t}!function(t){function e(e){var n=t.cal
1052
1059
  * Use of this source code is governed by an MIT-style license that can be
1053
1060
  * found in the LICENSE file at https://angular.io/license
1054
1061
  */
1055
- function em(){}Dl({provide:String,useValue:Dl});var nm=em,rm=em,im=em,om=Dl({provide:String,useValue:Dl}),sm=[];function am(t,e){if(!e){var n=(u=new Wp).parameters(t);return function(){return new(t.bind.apply(t,f([void 0],Vp(n))))}}if(om in e){var r=e;return function(){return r.useValue}}if(e.useExisting){var i=e;return function(){return Fp(i.useExisting)}}if(e.useFactory){var o=e;return function(){return o.useFactory.apply(o,f(Vp(o.deps||sm)))}}if(e.useClass){var s=e,a=e.deps;if(!a){var u=new Wp;a=u.parameters(t)}return function(){var t;return new((t=s.useClass).bind.apply(t,f([void 0],Vp(a))))}}var c=e.deps;return c||(u=new Wp,c=u.parameters(t)),function(){return new(t.bind.apply(t,f([void 0],Vp(c))))}}Jl("Component",function(t){return void 0===t&&(t={}),a({changeDetection:Wl.Default},t)},Jl("Directive",function(t){return void 0===t&&(t={}),t},void 0,void 0,function(t,e){return rm(t,e)}),void 0,function(t,e){return nm(t,e)}),Jl("Pipe",function(t){return a({pure:!0},t)},void 0,void 0,function(t,e){return im(t,e)});
1062
+ function lm(){}Rl({provide:String,useValue:Rl});var pm=lm,hm=lm,fm=lm,dm=Rl({provide:String,useValue:Rl}),vm=[];function ym(t,e){if(!e){var n=(u=new Wp).parameters(t);return function(){return new(t.bind.apply(t,f([void 0],Vp(n))))}}if(dm in e){var r=e;return function(){return r.useValue}}if(e.useExisting){var i=e;return function(){return Fp(i.useExisting)}}if(e.useFactory){var o=e;return function(){return o.useFactory.apply(o,f(Vp(o.deps||vm)))}}if(e.useClass){var s=e,a=e.deps;if(!a){var u=new Wp;a=u.parameters(t)}return function(){var t;return new((t=s.useClass).bind.apply(t,f([void 0],Vp(a))))}}var c=e.deps;return c||(u=new Wp,c=u.parameters(t)),function(){return new(t.bind.apply(t,f([void 0],Vp(c))))}}Jl("Component",function(t){return void 0===t&&(t={}),a({changeDetection:Wl.Default},t)},Jl("Directive",function(t){return void 0===t&&(t={}),t},void 0,void 0,function(t,e){return hm(t,e)}),void 0,function(t,e){return pm(t,e)}),Jl("Pipe",function(t){return a({pure:!0},t)},void 0,void 0,function(t,e){return fm(t,e)});
1056
1063
  /**
1057
1064
  * @license
1058
1065
  * Copyright Google Inc. All Rights Reserved.
@@ -1060,14 +1067,14 @@ function em(){}Dl({provide:String,useValue:Dl});var nm=em,rm=em,im=em,om=Dl({pro
1060
1067
  * Use of this source code is governed by an MIT-style license that can be
1061
1068
  * found in the LICENSE file at https://angular.io/license
1062
1069
  */
1063
- var um=function(t){return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=e.constructor;o.hasOwnProperty(Hl)||function(t){var e=t.constructor,n=e.ngBaseDef,r=e.ngBaseDef={inputs:{},outputs:{},declaredInputs:{}};n&&(jl(r.inputs,n.inputs),jl(r.outputs,n.outputs),jl(r.declaredInputs,n.declaredInputs))}(e),t(o.ngBaseDef)[n]=r[0]}},cm=(np("Input",function(t){return{bindingPropertyName:t}},void 0,um(function(t){return t.inputs||{}})),np("Output",function(t){return{bindingPropertyName:t}},void 0,um(function(t){return t.outputs||{}})),np("HostBinding",function(t){return{hostPropertyName:t}}),np("HostListener",function(t,e){return{eventName:t,args:e}}),Jl("NgModule",function(t){return t},void 0,void 0,function(t,e){return function n(t,e){var n=e&&e.imports||[];e&&e.exports&&(n=f(n,[e.exports])),t.ngInjectorDef=function r(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}({factory:am(t,{useClass:t}),providers:e&&e.providers,imports:n})}(t,e)})),lm=function bt(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},pm=new lm("7.0.0-rc.1"),hm=Jl("Injectable",void 0,void 0,void 0,function(t,e){return function n(t,e){e&&void 0!==e.providedIn&&!Kl(t)&&(t.ngInjectableDef=ql({providedIn:e.providedIn,factory:am(t,e)}))}(t,e)}),fm="ngDebugContext",dm="ngOriginalError",vm="ngErrorLogger";function ym(t){return t[fm]}function mm(t){return t[dm]}function gm(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,f(e))}
1070
+ var mm=function(t){return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=e.constructor;o.hasOwnProperty(Hl)||function(t){var e=t.constructor,n=e.ngBaseDef,r=e.ngBaseDef={inputs:{},outputs:{},declaredInputs:{}};n&&(jl(r.inputs,n.inputs),jl(r.outputs,n.outputs),jl(r.declaredInputs,n.declaredInputs))}(e),t(o.ngBaseDef)[n]=r[0]}},gm=(np("Input",function(t){return{bindingPropertyName:t}},void 0,mm(function(t){return t.inputs||{}})),np("Output",function(t){return{bindingPropertyName:t}},void 0,mm(function(t){return t.outputs||{}})),np("HostBinding",function(t){return{hostPropertyName:t}}),np("HostListener",function(t,e){return{eventName:t,args:e}}),Jl("NgModule",function(t){return t},void 0,void 0,function(t,e){return function n(t,e){var n=e&&e.imports||[];e&&e.exports&&(n=f(n,[e.exports])),t.ngInjectorDef=function r(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}({factory:ym(t,{useClass:t}),providers:e&&e.providers,imports:n})}(t,e)})),_m=function bt(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},bm=new _m("7.0.0"),wm=Jl("Injectable",void 0,void 0,void 0,function(t,e){return function n(t,e){e&&void 0!==e.providedIn&&!Kl(t)&&(t.ngInjectableDef=ql({providedIn:e.providedIn,factory:ym(t,e)}))}(t,e)}),xm="ngDebugContext",Em="ngOriginalError",Sm="ngErrorLogger";function Cm(t){return t[xm]}function Tm(t){return t[Em]}function Pm(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,f(e))}
1064
1071
  /**
1065
1072
  * @license
1066
1073
  * Copyright Google Inc. All Rights Reserved.
1067
1074
  *
1068
1075
  * Use of this source code is governed by an MIT-style license that can be
1069
1076
  * found in the LICENSE file at https://angular.io/license
1070
- */var _m=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function i(t){return t[vm]||gm}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?ym(t)?ym(t):this._findContext(mm(t)):null},t.prototype._findOriginalError=function(t){for(var e=mm(t);e&&mm(e);)e=mm(e);return e},t}();function bm(t){return t.length>1?" ("+
1077
+ */var Am=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function i(t){return t[Sm]||Pm}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?Cm(t)?Cm(t):this._findContext(Tm(t)):null},t.prototype._findOriginalError=function(t){for(var e=Tm(t);e&&Tm(e);)e=Tm(e);return e},t}();function Nm(t){return t.length>1?" ("+
1071
1078
  /**
1072
1079
  * @license
1073
1080
  * Copyright Google Inc. All Rights Reserved.
@@ -1075,7 +1082,7 @@ var um=function(t){return function(e,n){for(var r=[],i=2;i<arguments.length;i++)
1075
1082
  * Use of this source code is governed by an MIT-style license that can be
1076
1083
  * found in the LICENSE file at https://angular.io/license
1077
1084
  */
1078
- function e(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(function(t){return pp(t.token)}).join(" -> ")+")":""}function wm(t,e,n,r){var i=[e],o=n(i),s=r?function a(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[dm]=e,r}(o,r):Error(o);return s.addKey=xm,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[dm]=r,s}function xm(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function Em(t,e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];n.push(o&&0!=o.length?o.map(pp).join(" "):"?")}return Error("Cannot resolve all parameters for '"+pp(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+pp(t)+"' is decorated with Injectable.")}
1085
+ function e(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(function(t){return pp(t.token)}).join(" -> ")+")":""}function km(t,e,n,r){var i=[e],o=n(i),s=r?function a(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[Em]=e,r}(o,r):Error(o);return s.addKey=Om,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[Em]=r,s}function Om(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function Mm(t,e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];n.push(o&&0!=o.length?o.map(pp).join(" "):"?")}return Error("Cannot resolve all parameters for '"+pp(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+pp(t)+"' is decorated with Injectable.")}
1079
1086
  /**
1080
1087
  * @license
1081
1088
  * Copyright Google Inc. All Rights Reserved.
@@ -1083,21 +1090,21 @@ function e(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.pu
1083
1090
  * Use of this source code is governed by an MIT-style license that can be
1084
1091
  * found in the LICENSE file at https://angular.io/license
1085
1092
  */
1086
- var Sm=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=pp(this.token)}return t.get=function(t){return Cm.get(fp(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Cm.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Cm=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Sm)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Sm(t,Sm.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),Tm=new(function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}())(new Wp),Pm=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),Am=[],Nm=function Nm(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]},km=function km(t,e){this.factory=t,this.dependencies=e};function Om(t){return new Nm(Sm.get(t.provide),[function e(t){var e,n;if(t.useClass){var r=fp(t.useClass);e=Tm.factory(r),n=Mm(r)}else t.useExisting?(e=function(t){return t},n=[Pm.fromKey(Sm.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function i(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return Im(t,e,n)})}return Mm(t)}(t.useFactory,t.deps)):(e=function(){return t.useValue},n=Am);return new km(e,n)}(t)],t.multi||!1)}function Mm(t){var e=Tm.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw Em(t,e);return e.map(function(n){return Im(t,n,e)})}function Im(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return Rm(e instanceof dp?e.token:e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof Bp?r=a:a instanceof dp?r=a.token:a instanceof vp?i=!0:a instanceof yp||a instanceof mp?o=a:a instanceof Xl&&(r=a)}if(null!=(r=fp(r)))return Rm(r,i,o);throw Em(t,n)}function Rm(t,e,n){return new Pm(Sm.get(t),e,n)}
1093
+ var Im=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=pp(this.token)}return t.get=function(t){return Dm.get(fp(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Dm.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Dm=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Im)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Im(t,Im.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),Rm=new(function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}())(new Wp),jm=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),Lm=[],Fm=function Fm(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]},Vm=function Vm(t,e){this.factory=t,this.dependencies=e};function Bm(t){return new Fm(Im.get(t.provide),[function e(t){var e,n;if(t.useClass){var r=fp(t.useClass);e=Rm.factory(r),n=Hm(r)}else t.useExisting?(e=function(t){return t},n=[jm.fromKey(Im.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function i(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return Um(t,e,n)})}return Hm(t)}(t.useFactory,t.deps)):(e=function(){return t.useValue},n=Lm);return new Vm(e,n)}(t)],t.multi||!1)}function Hm(t){var e=Rm.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw Mm(t,e);return e.map(function(n){return Um(t,n,e)})}function Um(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return qm(e instanceof dp?e.token:e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof Bp?r=a:a instanceof dp?r=a.token:a instanceof vp?i=!0:a instanceof yp||a instanceof mp?o=a:a instanceof Xl&&(r=a)}if(null!=(r=fp(r)))return qm(r,i,o);throw Mm(t,n)}function qm(t,e,n){return new jm(Im.get(t),e,n)}
1087
1094
  /**
1088
1095
  * @license
1089
1096
  * Copyright Google Inc. All Rights Reserved.
1090
1097
  *
1091
1098
  * Use of this source code is governed by an MIT-style license that can be
1092
1099
  * found in the LICENSE file at https://angular.io/license
1093
- */var Dm=new Object,jm=function(){function t(){}return t.resolve=function(t){return function e(t){var e=function n(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+i+" "+r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s;s=r.multiProvider?new Nm(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}(function t(e,n){return e.forEach(function(e){if(e instanceof Bp)n.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)n.push(e);else{if(!(e instanceof Array))throw function r(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}(e);t(e,n)}}),n}(t,[]).map(Om),new Map);return Array.from(e.values())}(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new Lm(t,e)},t}(),Lm=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=Dm}return t.prototype.get=function(t,e){return void 0===e&&(e=bp),this._getByKey(Sm.get(t),null,e)},t.prototype.resolveAndCreateChild=function(t){var e=jm.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n.parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(jm.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw function e(t){return Error("Index "+t+" is out-of-bounds.")}(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function e(t,n){return wm(t,n,function(t){return"Cannot instantiate cyclic dependency!"+bm(t)})}(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r,i=this,o=e.factory;try{n=e.dependencies.map(function(t){return i._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}try{r=o.apply(void 0,f(n))}catch(e){throw function s(t,e,n,r){return wm(t,r,function(t){var n=pp(t[0].token);return e.message+": Error during instantiation of "+n+"!"+bm(t)+"."},e)}(this,e,0,t.key)}return r},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:bp)},t.prototype._getByKey=function(e,n,r){return e===t.INJECTOR_KEY?this:n instanceof yp?this._getByKeySelf(e,r):this._getByKeyDefault(e,r,n)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Dm&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Dm},t.prototype._throwOrNull=function(t,e){if(e!==bp)return e;throw function n(t,e){return wm(t,e,function(t){return"No provider for "+pp(t[0].token)+"!"+bm(t)})}(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==Dm?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof mp?this.parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==Dm)return s;i=o.parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function t(e,n){for(var r=new Array(e._providers.length),i=0;i<e._providers.length;++i)r[i]=n(e.getProviderAtIndex(i));return r}
1100
+ */var Km=new Object,zm=function(){function t(){}return t.resolve=function(t){return function e(t){var e=function n(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+i+" "+r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s;s=r.multiProvider?new Fm(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}(function t(e,n){return e.forEach(function(e){if(e instanceof Bp)n.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)n.push(e);else{if(!(e instanceof Array))throw function r(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}(e);t(e,n)}}),n}(t,[]).map(Bm),new Map);return Array.from(e.values())}(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new Wm(t,e)},t}(),Wm=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=Km}return t.prototype.get=function(t,e){return void 0===e&&(e=bp),this._getByKey(Im.get(t),null,e)},t.prototype.resolveAndCreateChild=function(t){var e=zm.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n.parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(zm.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw function e(t){return Error("Index "+t+" is out-of-bounds.")}(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function e(t,n){return km(t,n,function(t){return"Cannot instantiate cyclic dependency!"+Nm(t)})}(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r,i=this,o=e.factory;try{n=e.dependencies.map(function(t){return i._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}try{r=o.apply(void 0,f(n))}catch(e){throw function s(t,e,n,r){return km(t,r,function(t){var n=pp(t[0].token);return e.message+": Error during instantiation of "+n+"!"+Nm(t)+"."},e)}(this,e,0,t.key)}return r},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:bp)},t.prototype._getByKey=function(e,n,r){return e===t.INJECTOR_KEY?this:n instanceof yp?this._getByKeySelf(e,r):this._getByKeyDefault(e,r,n)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Km&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Km},t.prototype._throwOrNull=function(t,e){if(e!==bp)return e;throw function n(t,e){return km(t,e,function(t){return"No provider for "+pp(t[0].token)+"!"+Nm(t)})}(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==Km?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof mp?this.parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==Km)return s;i=o.parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function t(e,n){for(var r=new Array(e._providers.length),i=0;i<e._providers.length;++i)r[i]=n(e.getProviderAtIndex(i));return r}
1094
1101
  /**
1095
1102
  * @license
1096
1103
  * Copyright Google Inc. All Rights Reserved.
1097
1104
  *
1098
1105
  * Use of this source code is governed by an MIT-style license that can be
1099
1106
  * found in the LICENSE file at https://angular.io/license
1100
- */(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t.INJECTOR_KEY=Sm.get(Ep),t}(),Fm=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vm=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}Fm(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=Ud(this.durationSelector)(t);if(e===Bd)this.destination.error(Bd.e);else{var n=wy(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Bm=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(wy(r,n)),r}Vm(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Hm=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}Bm(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)}}(Xd),function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}Bm(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var s=r[o];s.push(t),s.length===e&&(r.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Um=function Um(){this.buffer=[]};function qm(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function Km(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(zm,n,{subscriber:r,context:o})),this.schedule(t,e))}function zm(t){t.subscriber.closeContext(t.context)}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly)s.add(a.closeAction=o.schedule(qm,n,{subscriber:s,context:a,bufferTimeSpan:n}));else{var u={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(a.closeAction=o.schedule(zm,n,{subscriber:s,context:a})),s.add(o.schedule(Km,r,u))}return s}Hm(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(qm,n,{subscriber:this,context:t,bufferTimeSpan:n}))}},e.prototype.openContext=function(){var t=new Um;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)}}(Xd);var Wm=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qm=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(wy(i,n)),i}Wm(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.subscription;this.destination.next(t.buffer),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new zd,r={buffer:[],subscription:n};e.push(r);var i=wy(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Gm=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}Qm(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];var e=Ud(this.closingSelector)();e===Bd?this.error(Bd.e):(t=new zd,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(wy(this,e)),this.subscribing=!1)}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Xm=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}Gm(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new hy(this,void 0,void 0);this.add(r),wy(this,n,void 0,void 0,r)}}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),$m=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}Xm(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ym=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}$m(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=wy(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function Zm(t){t.debouncedNext()}!function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}Ym(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Zm,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}(Xd);var Jm,tg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}tg(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ng=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}eg(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new ng(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Vv.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(Vv.createComplete()),this.unsubscribe()}}(Xd),function ng(t,e){this.time=t,this.notification=e}),rg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ig=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}rg(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=wy(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}(ly),function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}rg(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new ig(t,this.source))}}(Jd),function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return rg(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(Xd)),og=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sg=(function(t){function e(e){return t.call(this,e)||this}og(e,t),e.prototype._next=function(t){t.observe(this.destination)}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ag=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=n,i.values=new Set,r&&i.add(wy(i,r)),i}sg(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ug=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}ag(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=Ud(this.keySelector)(t))===Bd)return this.destination.error(Bd.e);var n=!1;if(this.hasKey){if((n=Ud(this.compare)(this.key,e))===Bd)return this.destination.error(Bd.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),cg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}ug(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),lg=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=Zd,o._tapError=Zd,o._tapComplete=Zd,o._tapError=r||Zd,o._tapComplete=i||Zd,Md(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||Zd,o._tapError=n.error||Zd,o._tapComplete=n.complete||Zd),o}cg(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),pg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}lg(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),hg=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}pg(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),fg=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}hg(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(wy(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),dg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}fg(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new hy(this,void 0,void 0);this.destination.add(r),wy(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),vg=((function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}dg(e,t),e.dispatch=function(t){t.subscriber.subscribeToProjection(t.result,t.value,t.index)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);var i=Ud(this.project)(t,r);i===Bd?n.error(Bd.e):this.scheduler?this.destination.add(this.scheduler.schedule(e.dispatch,0,{subscriber:this,result:i,value:t,index:r})):this.subscribeToProjection(i,t,r)}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(wy(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}())(function yg(t,e){var n=Jm.call(this,t)||this;return n.add(new zd(e)),n},Jm=Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),mg=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}vg(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),gg=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}mg(e,t),e.prototype._next=function(t){}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),_g=(function(t){function e(e){return t.call(this,e)||this}gg(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),bg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}_g(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),wg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}bg(e,t),e.prototype._next=function(t){this.destination.next(this.value)}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),xg=(function(t){function e(e){return t.call(this,e)||this}wg(e,t),e.prototype._next=function(t){this.destination.next(Vv.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(Vv.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(Vv.createComplete()),t.complete()}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Eg=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}xg(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());!function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}Eg(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=Ud(this.accumulator)(this.acc,t);n===Bd?this.destination.error(Bd.e):(this.active++,this._innerSub(n,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){var r=new hy(this,void 0,void 0);this.destination.add(r),wy(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}(ly);var Sg=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}(),Cg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}Cg(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new hy(this,void 0,void 0);this.destination.add(e),wy(this,t,void 0,void 0,e)}else this.destination.complete()}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Pg=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}Tg(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ag=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}Pg(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ng=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}Ag(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){this.notifications=new av;var e=Ud(this.notifier)(this.notifications);if(e===Bd)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=wy(this,e)}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),kg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}Ng(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Og=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}kg(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new av,(r=Ud(this.notifier)(n))===Bd)return t.prototype.error.call(this,Bd.e);i=wy(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Mg=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}Og(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function Ig(t){var e=t.period;t.subscriber.notifyNext(),this.schedule(t,e)}!function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Ig,n,{subscriber:i,period:n})),i}Mg(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}(Xd);var Rg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparor=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Dg(e,i))),i}Rg(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparor;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;n?(o=Ud(n)(r,i))===Bd&&this.destination.error(Bd.e):o=r===i,o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}(Xd),function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return Rg(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(Xd));function jg(){return new av}var Lg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}Lg(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new oy)}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Vg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}Fg(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Bg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}Vg(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Hg=(function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var i=new hy(r,void 0,void 0);return r.add(i),r.innerSubscription=i,wy(r,n,void 0,void 0,i),r}Bg(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(t,e,n,r,i){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ug=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}Hg(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),qg=(function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Yv);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!function o(t){return!Ld(t)&&t-parseFloat(t)+1>=0}(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=Yv),i}Ug(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=Yv),new e(t,n,r)},e.dispatch=function(t){return this.add(t.source.subscribe(t.subscriber))},e.prototype._subscribe=function(t){return this.scheduler.schedule(e.dispatch,this.delayTime,{source:this.source,subscriber:t})}}(Jd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Kg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}qg(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new hy(this,void 0,void 0);this.destination.add(i),this.innerSubscription=wy(this,t,e,n,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),zg=(function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}Kg(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Wg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.index=0,r}zg(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Qg=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}Wg(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._sendValue;this._hasValue&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=wy(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function Gg(t){t.subscriber.clearThrottle()}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=r,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}Qg(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Gg,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}(Xd);var Xg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$g=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=r,s.withObservable=i,s.scheduler=o,s.action=null,s.scheduleTimeout(),s}Xg(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(wy(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Yg=(function(t){function e(e){var n=t.call(this,e)||this;return n.window=new av,e.next(n.window),n}$g(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new av;e.next(n)}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Zg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new av],i.count=0,e.next(i.windows[0]),i}Yg(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,s=0;s<o&&!this.closed;s++)i[s].next(t);var a=this.count-r+1;if(a>=0&&a%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var u=new av;i.push(u),n.next(u)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null}}(Xd),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Jg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return Zg(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(av);function t_(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function e_(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null};s.subscription=r.schedule(n_,e,{subscriber:n,window:o,context:s}),this.add(s.subscription),this.schedule(t,i)}function n_(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==r&&r>=0){var u={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(n_,n,{subscriber:s,window:a,context:null})),s.add(o.schedule(e_,r,u))}else s.add(o.schedule(t_,n,{subscriber:s,window:a,windowTimeSpan:n}));return s}Zg(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new Jg;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)}}(Xd);var r_=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i_=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=wy(i,n,n)),i}r_(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var o=Ud(this.closingSelector)(e);if(o===Bd)return this.error(Bd.e);var s=new av,a=new zd,u={window:s,subscription:a};this.contexts.push(u);var c=wy(this,o,u);c.closed?this.closeWindow(this.contexts.length-1):(c.context=u,a.add(c)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),o_=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}i_(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n=this.window=new av;this.destination.next(n);var r=Ud(this.closingSelector)();if(r===Bd){var i=Bd.e;this.destination.error(i),this.window.error(i)}else this.add(this.closingNotification=wy(this,r))}}(ly),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s_=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};
1107
+ */(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t.INJECTOR_KEY=Im.get(Ep),t}(),Qm=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gm=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}Qm(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=Yd(this.durationSelector)(t);if(e===Xd)this.destination.error(Xd.e);else{var n=ky(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Xm=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(ky(r,n)),r}Gm(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),$m=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}Xm(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)}}(iv),function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}Xm(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var s=r[o];s.push(t),s.length===e&&(r.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ym=function Ym(){this.buffer=[]};function Zm(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function Jm(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(tg,n,{subscriber:r,context:o})),this.schedule(t,e))}function tg(t){t.subscriber.closeContext(t.context)}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly)s.add(a.closeAction=o.schedule(Zm,n,{subscriber:s,context:a,bufferTimeSpan:n}));else{var u={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(a.closeAction=o.schedule(tg,n,{subscriber:s,context:a})),s.add(o.schedule(Jm,r,u))}return s}$m(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(Zm,n,{subscriber:this,context:t,bufferTimeSpan:n}))}},e.prototype.openContext=function(){var t=new Ym;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)}}(iv);var eg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ng=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(ky(i,n)),i}eg(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.subscription;this.destination.next(t.buffer),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new tv,r={buffer:[],subscription:n};e.push(r);var i=ky(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),rg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}ng(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];var e=Yd(this.closingSelector)();e===Xd?this.error(Xd.e):(t=new tv,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(ky(this,e)),this.subscribing=!1)}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ig=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}rg(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new wy(this,void 0,void 0);this.add(r),ky(this,n,void 0,void 0,r)}}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),og=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}ig(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),sg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}og(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=ky(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function ag(t){t.debouncedNext()}!function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}sg(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ag,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}(iv);var ug,cg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}cg(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),pg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}lg(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new pg(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Gv.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(Gv.createComplete()),this.unsubscribe()}}(iv),function pg(t,e){this.time=t,this.notification=e}),hg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}hg(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=ky(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}(_y),function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}hg(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new fg(t,this.source))}}(uv),function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return hg(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(iv)),dg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vg=(function(t){function e(e){return t.call(this,e)||this}dg(e,t),e.prototype._next=function(t){t.observe(this.destination)}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),yg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=n,i.values=new Set,r&&i.add(ky(i,r)),i}vg(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),mg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}yg(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=Yd(this.keySelector)(t))===Xd)return this.destination.error(Xd.e);var n=!1;if(this.hasKey){if((n=Yd(this.compare)(this.key,e))===Xd)return this.destination.error(Xd.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),gg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}mg(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),_g=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=av,o._tapError=av,o._tapComplete=av,o._tapError=r||av,o._tapComplete=i||av,Hd(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||av,o._tapError=n.error||av,o._tapComplete=n.complete||av),o}gg(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),bg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}_g(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),wg=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}bg(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),xg=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}wg(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(ky(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Eg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}xg(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new wy(this,void 0,void 0);this.destination.add(r),ky(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Sg=((function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}Eg(e,t),e.dispatch=function(t){t.subscriber.subscribeToProjection(t.result,t.value,t.index)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);var i=Yd(this.project)(t,r);i===Xd?n.error(Xd.e):this.scheduler?this.destination.add(this.scheduler.schedule(e.dispatch,0,{subscriber:this,result:i,value:t,index:r})):this.subscribeToProjection(i,t,r)}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(ky(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}())(function Cg(t,e){var n=ug.call(this,t)||this;return n.add(new tv(e)),n},ug=iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Tg=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}Sg(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Pg=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Tg(e,t),e.prototype._next=function(t){}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ag=(function(t){function e(e){return t.call(this,e)||this}Pg(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ng=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}Ag(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),kg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}Ng(e,t),e.prototype._next=function(t){this.destination.next(this.value)}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Og=(function(t){function e(e){return t.call(this,e)||this}kg(e,t),e.prototype._next=function(t){this.destination.next(Gv.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(Gv.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(Gv.createComplete()),t.complete()}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Mg=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}Og(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());!function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}Mg(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=Yd(this.accumulator)(this.acc,t);n===Xd?this.destination.error(Xd.e):(this.active++,this._innerSub(n,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){var r=new wy(this,void 0,void 0);this.destination.add(r),ky(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}(_y);var Ig=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}(),Dg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}Dg(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new wy(this,void 0,void 0);this.destination.add(e),ky(this,t,void 0,void 0,e)}else this.destination.complete()}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),jg=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}Rg(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Lg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}jg(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Fg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}Lg(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){this.notifications=new yv;var e=Yd(this.notifier)(this.notifications);if(e===Xd)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=ky(this,e)}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Vg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}Fg(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Bg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}Vg(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new yv,(r=Yd(this.notifier)(n))===Xd)return t.prototype.error.call(this,Xd.e);i=ky(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Hg=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}Bg(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function Ug(t){var e=t.period;t.subscriber.notifyNext(),this.schedule(t,e)}!function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Ug,n,{subscriber:i,period:n})),i}Hg(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}(iv);var qg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparor=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Kg(e,i))),i}qg(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparor;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;n?(o=Yd(n)(r,i))===Xd&&this.destination.error(Xd.e):o=r===i,o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}(iv),function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return qg(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(iv));function zg(){return new yv}var Wg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qg=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}Wg(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new dy)}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Gg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}Qg(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Xg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}Gg(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),$g=(function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var i=new wy(r,void 0,void 0);return r.add(i),r.innerSubscription=i,ky(r,n,void 0,void 0,i),r}Xg(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(t,e,n,r,i){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Yg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}$g(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Zg=(function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=sy);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!function o(t){return!Wd(t)&&t-parseFloat(t)+1>=0}(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=sy),i}Yg(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=sy),new e(t,n,r)},e.dispatch=function(t){return this.add(t.source.subscribe(t.subscriber))},e.prototype._subscribe=function(t){return this.scheduler.schedule(e.dispatch,this.delayTime,{source:this.source,subscriber:t})}}(uv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Jg=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}Zg(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new wy(this,void 0,void 0);this.destination.add(i),this.innerSubscription=ky(this,t,e,n,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),t_=(function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}Jg(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),e_=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.index=0,r}t_(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),n_=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}e_(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._sendValue;this._hasValue&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=ky(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function r_(t){t.subscriber.clearThrottle()}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=r,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}n_(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(r_,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}(iv);var i_=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o_=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=r,s.withObservable=i,s.scheduler=o,s.action=null,s.scheduleTimeout(),s}i_(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(ky(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s_=(function(t){function e(e){var n=t.call(this,e)||this;return n.window=new yv,e.next(n.window),n}o_(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new yv;e.next(n)}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),a_=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new yv],i.count=0,e.next(i.windows[0]),i}s_(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,s=0;s<o&&!this.closed;s++)i[s].next(t);var a=this.count-r+1;if(a>=0&&a%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var u=new yv;i.push(u),n.next(u)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null}}(iv),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),u_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return a_(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(yv);function c_(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function l_(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null};s.subscription=r.schedule(p_,e,{subscriber:n,window:o,context:s}),this.add(s.subscription),this.schedule(t,i)}function p_(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==r&&r>=0){var u={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(p_,n,{subscriber:s,window:a,context:null})),s.add(o.schedule(l_,r,u))}else s.add(o.schedule(c_,n,{subscriber:s,window:a,windowTimeSpan:n}));return s}a_(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new u_;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)}}(iv);var h_=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f_=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=ky(i,n,n)),i}h_(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var o=Yd(this.closingSelector)(e);if(o===Xd)return this.error(Xd.e);var s=new yv,a=new tv,u={window:s,subscription:a};this.contexts.push(u);var c=ky(this,o,u);c.closed?this.closeWindow(this.contexts.length-1):(c.context=u,a.add(c)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),d_=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}f_(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n=this.window=new yv;this.destination.next(n);var r=Yd(this.closingSelector)();if(r===Xd){var i=Xd.e;this.destination.error(i),this.window.error(i)}else this.add(this.closingNotification=ky(this,r))}}(_y),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),v_=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};
1101
1108
  /**
1102
1109
  * @license
1103
1110
  * Copyright Google Inc. All Rights Reserved.
@@ -1105,7 +1112,7 @@ var Sm=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("
1105
1112
  * Use of this source code is governed by an MIT-style license that can be
1106
1113
  * found in the LICENSE file at https://angular.io/license
1107
1114
  */
1108
- function a_(t){return!!t&&"function"==typeof t.then}!function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var s=0;s<o;s++)i.toRespond.push(s);for(s=0;s<o;s++){var a=n[s];i.add(wy(i,a,a,s))}return i}o_(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s_(arguments[e]));return t}([t],this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(ly);
1115
+ function y_(t){return!!t&&"function"==typeof t.then}!function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var s=0;s<o;s++)i.toRespond.push(s);for(s=0;s<o;s++){var a=n[s];i.add(ky(i,a,a,s))}return i}d_(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v_(arguments[e]));return t}([t],this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(_y);
1109
1116
  /**
1110
1117
  * @license
1111
1118
  * Copyright Google Inc. All Rights Reserved.
@@ -1113,7 +1120,7 @@ function a_(t){return!!t&&"function"==typeof t.then}!function(t){function e(e,n,
1113
1120
  * Use of this source code is governed by an MIT-style license that can be
1114
1121
  * found in the LICENSE file at https://angular.io/license
1115
1122
  */
1116
- var u_=new Xl("Application Initializer"),c_=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();a_(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},u([hm(),c(0,dp(u_)),c(0,vp()),l("design:paramtypes",[Array])],t)}(),l_={provide:new Xl("AppId"),useFactory:function p_(){return""+h_()+h_()+h_()},deps:[]};function h_(){return String.fromCharCode(97+Math.floor(25*Math.random()))}new Xl("Platform Initializer");var f_=new Xl("Platform ID"),d_=new Xl("appBootstrapListener"),v_=(new Xl("Application Packages Root URL"),function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},u([hm()],t)}());
1123
+ var m_=new Xl("Application Initializer"),g_=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();y_(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},u([wm(),c(0,dp(m_)),c(0,vp()),l("design:paramtypes",[Array])],t)}(),__={provide:new Xl("AppId"),useFactory:function b_(){return""+w_()+w_()+w_()},deps:[]};function w_(){return String.fromCharCode(97+Math.floor(25*Math.random()))}new Xl("Platform Initializer");var x_=new Xl("Platform ID"),E_=new Xl("appBootstrapListener"),S_=(new Xl("Application Packages Root URL"),function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},u([wm()],t)}());
1117
1124
  /**
1118
1125
  * @license
1119
1126
  * Copyright Google Inc. All Rights Reserved.
@@ -1121,21 +1128,21 @@ var u_=new Xl("Application Initializer"),c_=function(){function t(t){var e=this;
1121
1128
  * Use of this source code is governed by an MIT-style license that can be
1122
1129
  * found in the LICENSE file at https://angular.io/license
1123
1130
  */
1124
- function y_(){throw new Error("Runtime compiler is not loaded")}var m_,g_,__=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw y_()},t.prototype.compileModuleAsync=function(t){throw y_()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw y_()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw y_()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},u([hm()],t)}(),b_=(new Xl("compilerOptions"),function b_(){}),w_=function x_(){var t=op.wtf;return!(!t||!(m_=t.trace)||(g_=m_.events,0))}();function E_(t,e){return null}var S_=w_?function C_(t,e){return void 0===e&&(e=null),g_.createScope(t,e)}:function(t,e){return E_},T_=w_?function P_(t,e){return m_.leaveScope(t,e),e}
1131
+ function C_(){throw new Error("Runtime compiler is not loaded")}var T_,P_,A_=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw C_()},t.prototype.compileModuleAsync=function(t){throw C_()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw C_()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw C_()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},u([wm()],t)}(),N_=(new Xl("compilerOptions"),function N_(){}),k_=function O_(){var t=op.wtf;return!(!t||!(T_=t.trace)||(P_=T_.events,0))}();function M_(t,e){return null}var I_=k_?function D_(t,e){return void 0===e&&(e=null),P_.createScope(t,e)}:function(t,e){return M_},R_=k_?function j_(t,e){return T_.leaveScope(t,e),e}
1125
1132
  /**
1126
1133
  * @license
1127
1134
  * Copyright Google Inc. All Rights Reserved.
1128
1135
  *
1129
1136
  * Use of this source code is governed by an MIT-style license that can be
1130
1137
  * found in the LICENSE file at https://angular.io/license
1131
- */:function(t,e){return e},A_=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Iy(!1),this.onMicrotaskEmpty=new Iy(!1),this.onStable=new Iy(!1),this.onError=new Iy(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),function r(t){t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return M_(t),e.invokeTask(r,i,o,s)}finally{I_(t)}},onInvoke:function(e,n,r,i,o,s,a){try{return M_(t),e.invoke(r,i,o,s,a)}finally{I_(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,O_(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.runOutsideAngular(function(){return t.onError.emit(i)}),!1}})}(this)}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,k_,N_,N_);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function N_(){}var k_={};function O_(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function M_(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function I_(t){t._nesting--,O_(t)}var R_=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Iy,this.onMicrotaskEmpty=new Iy,this.onStable=new Iy,this.onError=new Iy}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),D_=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents(),t.run(function(){e.taskTrackingZone=Zone.current.get("TaskTrackingZone")})}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){A_.assertNotInAngularZone(),cp(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())cp(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}}):[]},t.prototype.addCallback=function(t,e,n){var r=this,i=-1;e&&e>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},u([hm(),l("design:paramtypes",[A_])],t)}(),j_=function(){function t(){this._applications=new Map,L_.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),L_.findTestabilityInTree(this,t,e)},u([hm(),l("design:paramtypes",[])],t)}(),L_=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}());
1138
+ */:function(t,e){return e},L_=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Uy(!1),this.onMicrotaskEmpty=new Uy(!1),this.onStable=new Uy(!1),this.onError=new Uy(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),function r(t){t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return H_(t),e.invokeTask(r,i,o,s)}finally{U_(t)}},onInvoke:function(e,n,r,i,o,s,a){try{return H_(t),e.invoke(r,i,o,s,a)}finally{U_(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,B_(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.runOutsideAngular(function(){return t.onError.emit(i)}),!1}})}(this)}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,V_,F_,F_);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function F_(){}var V_={};function B_(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function H_(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function U_(t){t._nesting--,B_(t)}var q_=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Uy,this.onMicrotaskEmpty=new Uy,this.onStable=new Uy,this.onError=new Uy}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),K_=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents(),t.run(function(){e.taskTrackingZone=Zone.current.get("TaskTrackingZone")})}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){L_.assertNotInAngularZone(),cp(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())cp(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}}):[]},t.prototype.addCallback=function(t,e,n){var r=this,i=-1;e&&e>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},u([wm(),l("design:paramtypes",[L_])],t)}(),z_=function(){function t(){this._applications=new Map,W_.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),W_.findTestabilityInTree(this,t,e)},u([wm(),l("design:paramtypes",[])],t)}(),W_=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}());
1132
1139
  /**
1133
1140
  * @license
1134
1141
  * Copyright Google Inc. All Rights Reserved.
1135
1142
  *
1136
1143
  * Use of this source code is governed by an MIT-style license that can be
1137
1144
  * found in the LICENSE file at https://angular.io/license
1138
- */new Xl("AllowMultipleToken");var F_=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n=this,r=function i(t){return"noop"===t?new R_:("zone.js"===t?void 0:t)||new A_({enableLongStackTrace:Wy()})}(e?e.ngZone:void 0),o=[{provide:A_,useValue:r}];return r.run(function(){var e=Ep.create({providers:o,parent:n.injector,name:t.moduleType.name}),i=t.create(e),s=i.injector.get(_m,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return H_(n._modules,i)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(t){s.handleError(t)}})}),function a(t,e,n){try{var r=n();return a_(r)?r.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):r}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}}(s,r,function(){var t=i.injector.get(c_);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=V_({},e);return function i(t,e,n){return t.get(b_).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(B_);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+pp(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),u([hm(),l("design:paramtypes",[Ep])],t)}();function V_(t,e){return Array.isArray(e)?e.reduce(V_,t):a({},t,e)}var B_=function(){function t(t,e,n,r,i,o){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Wy(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new Jd(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),u=new Jd(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){A_.assertNotInAngularZone(),cp(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){A_.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return Dv(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof Jd?t[0]:function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(i){return i.pipe(t(function(t,r){return function o(t,e){if(!e)return t instanceof Jd?t:new Jd(by(t));if(null!=t){if(function n(t){return t&&"function"==typeof t[Yd]}(t))return function r(t,e){return new Jd(e?function(n){var r=new zd;return r.add(e.schedule(function(){var i=t[Yd]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}:my(t))}(t,e);if(_y(t))return function i(t,e){return new Jd(e?function(n){var r=new zd;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}:fy(t))}(t,e);if(gy(t))return Lv(t,e);if(function o(t){return t&&"function"==typeof t[dy]}(t)||"string"==typeof t)return function s(t,e){if(!t)throw new Error("Iterable cannot be null");return new Jd(e?function(n){var r,i=new zd;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[dy](),i.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),i}:yy(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(e(t,r)).pipe(function i(t,e){return function n(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new ay(t,e))}}(function(e,i){return n(t,e,r,i)}))},r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new Cy(e,r))})}(ry,t)}(n)(Lv(t,r))}(a,u.pipe(function c(){return function(t){return lv()(function e(t,n){return function e(r){var i;if(i="function"==typeof t?t:function e(){return t},"function"==typeof n)return r.lift(new Sg(i,n));var o=Object.create(r,vv);return o.source=r,o.subjectFactory=i,o}}(jg)(t))}}()))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof Yf?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof td?null:this._injector.get(ed),o=n.create(Ep.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(D_,null);return s&&o.injector.get(j_).registerApplication(o.location.nativeElement,s),this._loadComponent(o),Wy()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,T_(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;H_(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(d_,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),H_(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=S_("ApplicationRef#tick()"),e=u([hm(),l("design:paramtypes",[A_,v_,Ep,_m,Jf,c_])],t)}();function H_(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}
1145
+ */new Xl("AllowMultipleToken");var Q_=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n=this,r=function i(t){return"noop"===t?new q_:("zone.js"===t?void 0:t)||new L_({enableLongStackTrace:em()})}(e?e.ngZone:void 0),o=[{provide:L_,useValue:r}];return r.run(function(){var e=Ep.create({providers:o,parent:n.injector,name:t.moduleType.name}),i=t.create(e),s=i.injector.get(Am,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return $_(n._modules,i)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(t){s.handleError(t)}})}),function a(t,e,n){try{var r=n();return y_(r)?r.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):r}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}}(s,r,function(){var t=i.injector.get(g_);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=G_({},e);return function i(t,e,n){return t.get(N_).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(X_);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+pp(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),u([wm(),l("design:paramtypes",[Ep])],t)}();function G_(t,e){return Array.isArray(e)?e.reduce(G_,t):a({},t,e)}var X_=function(){function t(t,e,n,r,i,o){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=em(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new uv(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),u=new uv(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){L_.assertNotInAngularZone(),cp(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){L_.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return Kv(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof uv?t[0]:function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(i){return i.pipe(t(function(t,r){return function o(t,e){if(!e)return t instanceof uv?t:new uv(Ny(t));if(null!=t){if(function n(t){return t&&"function"==typeof t[sv]}(t))return function r(t,e){return new uv(e?function(n){var r=new tv;return r.add(e.schedule(function(){var i=t[sv]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}:Ty(t))}(t,e);if(Ay(t))return function i(t,e){return new uv(e?function(n){var r=new tv;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}:xy(t))}(t,e);if(Py(t))return Wv(t,e);if(function o(t){return t&&"function"==typeof t[Ey]}(t)||"string"==typeof t)return function s(t,e){if(!t)throw new Error("Iterable cannot be null");return new uv(e?function(n){var r,i=new tv;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[Ey](),i.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),i}:Cy(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(e(t,r)).pipe(function i(t,e){return function n(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new yy(t,e))}}(function(e,i){return n(t,e,r,i)}))},r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new Dy(e,r))})}(hy,t)}(n)(Wv(t,r))}(a,u.pipe(function c(){return function(t){return _v()(function e(t,n){return function e(r){var i;if(i="function"==typeof t?t:function e(){return t},"function"==typeof n)return r.lift(new Ig(i,n));var o=Object.create(r,Sv);return o.source=r,o.subjectFactory=i,o}}(zg)(t))}}()))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof ed?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof id?null:this._injector.get(od),o=n.create(Ep.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(K_,null);return s&&o.injector.get(z_).registerApplication(o.location.nativeElement,s),this._loadComponent(o),em()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,R_(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;$_(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(E_,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),$_(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=I_("ApplicationRef#tick()"),e=u([wm(),l("design:paramtypes",[L_,S_,Ep,Am,rd,g_])],t)}();function $_(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}
1139
1146
  /**
1140
1147
  * @license
1141
1148
  * Copyright Google Inc. All Rights Reserved.
@@ -1156,28 +1163,35 @@ function y_(){throw new Error("Runtime compiler is not loaded")}var m_,g_,__=fun
1156
1163
  *
1157
1164
  * Use of this source code is governed by an MIT-style license that can be
1158
1165
  * found in the LICENSE file at https://angular.io/license
1159
- */var U_=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Iy,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[up()]=function(){return this._results[up()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}
1166
+ */
1167
+ /**
1168
+ * @license
1169
+ * Copyright Google Inc. All Rights Reserved.
1170
+ *
1171
+ * Use of this source code is governed by an MIT-style license that can be
1172
+ * found in the LICENSE file at https://angular.io/license
1173
+ */var Y_=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Uy,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[up()]=function(){return this._results[up()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}
1160
1174
  /**
1161
1175
  * @license
1162
1176
  * Copyright Google Inc. All Rights Reserved.
1163
1177
  *
1164
1178
  * Use of this source code is governed by an MIT-style license that can be
1165
1179
  * found in the LICENSE file at https://angular.io/license
1166
- */(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),q_=function q_(){},K_={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};function z_(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}
1180
+ */(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),Z_=function Z_(){},J_={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};function tb(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}
1167
1181
  /**
1168
1182
  * @license
1169
1183
  * Copyright Google Inc. All Rights Reserved.
1170
1184
  *
1171
1185
  * Use of this source code is governed by an MIT-style license that can be
1172
1186
  * found in the LICENSE file at https://angular.io/license
1173
- */!function(){function t(t,e){this._compiler=t,this._config=e||K_}t.prototype.load=function(t){return this._compiler instanceof __?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=h(t.split("#"),2),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then(function(t){return t[i]}).then(function(t){return z_(t,r,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=h(t.split("#"),2),n=e[0],r=e[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+i]}).then(function(t){return z_(t,n,r)})},t=u([hm(),c(1,vp()),l("design:paramtypes",[__,q_])],t)}();var W_=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ld(t,pd)},t}(),Q_=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return cd()},t}(),G_=(function(t){o(function e(){return null!==t&&t.apply(this,arguments)||this},t)}(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(Q_)),function G_(t,e){this.name=t,this.callback=e}),X_=function(){function t(t,e,n){this.nativeNode=t,this._debugContext=n,this.listeners=[],this.parent=null,e&&e instanceof $_&&e.addChild(this)}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),$_=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,f([i+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return Y_(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Z_(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(X_);
1187
+ */!function(){function t(t,e){this._compiler=t,this._config=e||J_}t.prototype.load=function(t){return this._compiler instanceof A_?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=h(t.split("#"),2),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then(function(t){return t[i]}).then(function(t){return tb(t,r,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=h(t.split("#"),2),n=e[0],r=e[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+i]}).then(function(t){return tb(t,n,r)})},t=u([wm(),c(1,vp()),l("design:paramtypes",[A_,Z_])],t)}();var eb=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return vd(t,md)},t}(),nb=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return dd()},t}(),rb=(function(t){o(function e(){return null!==t&&t.apply(this,arguments)||this},t)}(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(nb)),function rb(t,e){this.name=t,this.callback=e}),ib=function(){function t(t,e,n){this.nativeNode=t,this._debugContext=n,this.listeners=[],this.parent=null,e&&e instanceof ob&&e.addChild(this)}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),ob=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,f([i+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return sb(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return ab(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(ib);
1174
1188
  /**
1175
1189
  * @license
1176
1190
  * Copyright Google Inc. All Rights Reserved.
1177
1191
  *
1178
1192
  * Use of this source code is governed by an MIT-style license that can be
1179
1193
  * found in the LICENSE file at https://angular.io/license
1180
- */function Y_(t,e,n){t.childNodes.forEach(function(t){t instanceof $_&&(e(t)&&n.push(t),Y_(t,e,n))})}function Z_(t,e,n){t instanceof $_&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof $_&&Z_(t,e,n)})}var J_=new Map;function tb(t){return J_.get(t)||null}function eb(t){J_.set(t.nativeNode,t)}
1194
+ */function sb(t,e,n){t.childNodes.forEach(function(t){t instanceof ob&&(e(t)&&n.push(t),sb(t,e,n))})}function ab(t,e,n){t instanceof ob&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof ob&&ab(t,e,n)})}var ub=new Map;function cb(t){return ub.get(t)||null}function lb(t){ub.set(t.nativeNode,t)}
1181
1195
  /**
1182
1196
  * @license
1183
1197
  * Copyright Google Inc. All Rights Reserved.
@@ -1185,21 +1199,21 @@ function y_(){throw new Error("Runtime compiler is not loaded")}var m_,g_,__=fun
1185
1199
  * Use of this source code is governed by an MIT-style license that can be
1186
1200
  * found in the LICENSE file at https://angular.io/license
1187
1201
  */
1188
- var nb=function(){function t(){}return t.prototype.supports=function(t){return Rh(t)},t.prototype.create=function(t){return new ib(t)},t}(),rb=function(t,e){return e},ib=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||rb}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<ub(n,r,i)?e:n,s=ub(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;c<=h&&h<u&&(i[l]=p+1)}i[o.previousIndex]=c-u}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!Rh(t))throw new Error("Error trying to diff '"+pp(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(var a=0;a<this.length;a++)i=this._trackByFn(a,r=t[a]),null!==o&&lp(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),lp(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function u(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[up()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&lp(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),lp(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(lp(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(lp(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new ob(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ab),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ab),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),ob=function ob(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},sb=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&lp(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),ab=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new sb,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function ub(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}
1202
+ var pb=function(){function t(){}return t.prototype.supports=function(t){return vh(t)},t.prototype.create=function(t){return new fb(t)},t}(),hb=function(t,e){return e},fb=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||hb}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<mb(n,r,i)?e:n,s=mb(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;c<=h&&h<u&&(i[l]=p+1)}i[o.previousIndex]=c-u}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!vh(t))throw new Error("Error trying to diff '"+pp(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(var a=0;a<this.length;a++)i=this._trackByFn(a,r=t[a]),null!==o&&lp(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),lp(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function u(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[up()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&lp(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),lp(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(lp(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(lp(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new db(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new yb),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yb),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),db=function db(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},vb=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&lp(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),yb=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new vb,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function mb(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}
1189
1203
  /**
1190
1204
  * @license
1191
1205
  * Copyright Google Inc. All Rights Reserved.
1192
1206
  *
1193
1207
  * Use of this source code is governed by an MIT-style license that can be
1194
1208
  * found in the LICENSE file at https://angular.io/license
1195
- */var cb,lb=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Dh(t)},t.prototype.create=function(){return new pb},t}(),pb=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Dh(t)))throw new Error("Error trying to diff '"+pp(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new hb(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){lp(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),hb=function hb(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},fb=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new mp,new vp]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+function n(t){return t.name||typeof t}
1209
+ */var gb,_b=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||yh(t)},t.prototype.create=function(){return new bb},t}(),bb=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||yh(t)))throw new Error("Error trying to diff '"+pp(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new wb(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){lp(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),wb=function wb(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},xb=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new mp,new vp]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+function n(t){return t.name||typeof t}
1196
1210
  /**
1197
1211
  * @license
1198
1212
  * Copyright Google Inc. All Rights Reserved.
1199
1213
  *
1200
1214
  * Use of this source code is governed by an MIT-style license that can be
1201
1215
  * found in the LICENSE file at https://angular.io/license
1202
- */(t)+"'")},t.ngInjectableDef=ql({providedIn:"root",factory:function(){return new t([new nb])}}),t}(),db=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new mp,new vp]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),vb=[new lb],yb=new fb([new nb]),mb=new db(vb),gb=(function _b(t,e,n){void 0===n&&(n=[]);new Xl("Platform: "+e)}(0,"core",[{provide:f_,useValue:"unknown"},{provide:F_,deps:[Ep]},{provide:j_,deps:[]},{provide:v_,deps:[]}]),new Xl("LocaleId"));new Xl("Translations"),new Xl("TranslationsFormat"),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(cb||(cb={}));var bb=[{provide:B_,useClass:B_,deps:[A_,v_,Ep,_m,Jf,c_]},{provide:c_,useClass:c_,deps:[[new vp,u_]]},{provide:__,useClass:__,deps:[]},l_,{provide:fb,useFactory:
1216
+ */(t)+"'")},t.ngInjectableDef=ql({providedIn:"root",factory:function(){return new t([new pb])}}),t}(),Eb=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new mp,new vp]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Sb=[new _b],Cb=new xb([new pb]),Tb=new Eb(Sb),Pb=(function Ab(t,e,n){void 0===n&&(n=[]);new Xl("Platform: "+e)}(0,"core",[{provide:x_,useValue:"unknown"},{provide:Q_,deps:[Ep]},{provide:z_,deps:[]},{provide:S_,deps:[]}]),new Xl("LocaleId"));new Xl("Translations"),new Xl("TranslationsFormat"),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(gb||(gb={}));var Nb=[{provide:X_,useClass:X_,deps:[L_,S_,Ep,Am,rd,g_]},{provide:g_,useClass:g_,deps:[[new vp,m_]]},{provide:A_,useClass:A_,deps:[]},__,{provide:xb,useFactory:
1203
1217
  /**
1204
1218
  * @license
1205
1219
  * Copyright Google Inc. All Rights Reserved.
@@ -1207,7 +1221,7 @@ var nb=function(){function t(){}return t.prototype.supports=function(t){return R
1207
1221
  * Use of this source code is governed by an MIT-style license that can be
1208
1222
  * found in the LICENSE file at https://angular.io/license
1209
1223
  */
1210
- function wb(){return yb},deps:[]},{provide:db,useFactory:function xb(){return mb},deps:[]},{provide:gb,useFactory:function Eb(t){return t||"en-US"},deps:[[new dp(gb),new vp,new mp]]}];
1224
+ function kb(){return Cb},deps:[]},{provide:Eb,useFactory:function Ob(){return Tb},deps:[]},{provide:Pb,useFactory:function Mb(t){return t||"en-US"},deps:[[new dp(Pb),new vp,new mp]]}];
1211
1225
  /**
1212
1226
  * @license
1213
1227
  * Copyright Google Inc. All Rights Reserved.
@@ -1215,42 +1229,42 @@ function wb(){return yb},deps:[]},{provide:db,useFactory:function xb(){return mb
1215
1229
  * Use of this source code is governed by an MIT-style license that can be
1216
1230
  * found in the LICENSE file at https://angular.io/license
1217
1231
  */
1218
- function Sb(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Cb(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Tb(t,e){return t.nodes[e]}function Pb(t,e){return t.nodes[e]}function Ab(t,e){return t.nodes[e]}function Nb(t,e){return t.nodes[e]}function kb(t,e){return t.nodes[e]}!function(){function t(t){}t=u([cm({providers:bb}),l("design:paramtypes",[B_])],t)}();var Ob={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};
1232
+ function Ib(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Db(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Rb(t,e){return t.nodes[e]}function jb(t,e){return t.nodes[e]}function Lb(t,e){return t.nodes[e]}function Fb(t,e){return t.nodes[e]}function Vb(t,e){return t.nodes[e]}!function(){function t(t){}t=u([gm({providers:Nb}),l("design:paramtypes",[X_])],t)}();var Bb={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};
1219
1233
  /**
1220
1234
  * @license
1221
1235
  * Copyright Google Inc. All Rights Reserved.
1222
1236
  *
1223
1237
  * Use of this source code is governed by an MIT-style license that can be
1224
1238
  * found in the LICENSE file at https://angular.io/license
1225
- */function Mb(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function o(t,e){var n=new Error(t);return Ib(n,e),n}(i,t)}function Ib(t,e){t[fm]=e,t[vm]=e.logError.bind(e)}function Rb(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}
1239
+ */function Hb(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function o(t,e){var n=new Error(t);return Ub(n,e),n}(i,t)}function Ub(t,e){t[xm]=e,t[Sm]=e.logError.bind(e)}function qb(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}
1226
1240
  /**
1227
1241
  * @license
1228
1242
  * Copyright Google Inc. All Rights Reserved.
1229
1243
  *
1230
1244
  * Use of this source code is governed by an MIT-style license that can be
1231
1245
  * found in the LICENSE file at https://angular.io/license
1232
- */var Db=function(){},jb=new Map;function Lb(t){var e=jb.get(t);return e||(e=pp(t)+"_"+jb.size,jb.set(t,e)),e}function Fb(t,e,n,r){return!(!(2&t.state)&&lp(t.oldValues[e.bindingIndex+n],r))}function Vb(t,e,n,r){return!!Fb(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Bb(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Oh(i,r)){var o=e.bindings[n].name;throw Mb(Ob.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function Hb(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Ub(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function qb(t,e,n,r){try{return Hb(33554432&t.def.nodes[e].flags?Pb(t,e).componentView:t),Ob.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Kb(t){return t.parent?Pb(t.parent,t.parentNodeDef.nodeIndex):null}function zb(t){return t.parent?t.parentNodeDef.parent:null}function Wb(t,e){switch(201347067&e.flags){case 1:return Pb(t,e.nodeIndex).renderElement;case 2:return Tb(t,e.nodeIndex).renderText}}function Qb(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Gb(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Xb(t,e){return t.map(function(t){var n,r,i;return Array.isArray(t)?(i=(n=h(t,2))[0],r=n[1]):(i=0,r=t),r&&("function"==typeof r||"object"==typeof r)&&e&&Object.defineProperty(r,gp,{value:e,configurable:!0}),{flags:i,token:r,tokenKey:Lb(r)}})}function $b(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Up.Native?Pb(t,n.renderParent.nodeIndex).renderElement:void 0:e}var Yb=new WeakMap;function Zb(t){var e=Yb.get(t);return e||((e=t(function(){return Db})).factory=t,Yb.set(t,e)),e}function Jb(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(Wb(t,t.def.lastRenderRootNode))),tw(t,e,0,t.def.nodes.length-1,n,r,i)}function tw(t,e,n,r,i,o,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];11&u.flags&&nw(t,u,e,i,o,s),a+=u.childCount}}function ew(t,e,n,r,i,o){for(var s=t;s&&!Qb(s);)s=s.parent;for(var a=s.parent,u=zb(s),c=u.nodeIndex+u.childCount,l=u.nodeIndex+1;l<=c;l++){var p=a.def.nodes[l];p.ngContentIndex===e&&nw(a,p,n,r,i,o),l+=p.childCount}if(!a.parent){var h=t.root.projectableNodes[e];if(h)for(l=0;l<h.length;l++)rw(t,h[l],n,r,i,o)}}function nw(t,e,n,r,i,o){if(8&e.flags)ew(t,e.ngContent.index,n,r,i,o);else{var s=Wb(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&rw(t,s,n,r,i,o),32&e.bindingFlags&&rw(Pb(t,e.nodeIndex).componentView,s,n,r,i,o)):rw(t,s,n,r,i,o),16777216&e.flags)for(var a=Pb(t,e.nodeIndex).viewContainer._embeddedViews,u=0;u<a.length;u++)Jb(a[u],n,r,i,o);1&e.flags&&!e.element.name&&tw(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function rw(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}var iw=/^:([^:]+):(.+)$/;function ow(t){if(":"===t[0]){var e=t.match(iw);return[e[1],e[2]]}return["",t]}
1246
+ */var Kb=function(){},zb=new Map;function Wb(t){var e=zb.get(t);return e||(e=pp(t)+"_"+zb.size,zb.set(t,e)),e}function Qb(t,e,n,r){return!(!(2&t.state)&&lp(t.oldValues[e.bindingIndex+n],r))}function Gb(t,e,n,r){return!!Qb(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Xb(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!hh(i,r)){var o=e.bindings[n].name;throw Hb(Bb.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function $b(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Yb(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Zb(t,e,n,r){try{return $b(33554432&t.def.nodes[e].flags?jb(t,e).componentView:t),Bb.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Jb(t){return t.parent?jb(t.parent,t.parentNodeDef.nodeIndex):null}function tw(t){return t.parent?t.parentNodeDef.parent:null}function ew(t,e){switch(201347067&e.flags){case 1:return jb(t,e.nodeIndex).renderElement;case 2:return Rb(t,e.nodeIndex).renderText}}function nw(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function rw(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function iw(t,e){return t.map(function(t){var n,r,i;return Array.isArray(t)?(i=(n=h(t,2))[0],r=n[1]):(i=0,r=t),r&&("function"==typeof r||"object"==typeof r)&&e&&Object.defineProperty(r,gp,{value:e,configurable:!0}),{flags:i,token:r,tokenKey:Wb(r)}})}function ow(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Up.Native?jb(t,n.renderParent.nodeIndex).renderElement:void 0:e}var sw=new WeakMap;function aw(t){var e=sw.get(t);return e||((e=t(function(){return Kb})).factory=t,sw.set(t,e)),e}function uw(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(ew(t,t.def.lastRenderRootNode))),cw(t,e,0,t.def.nodes.length-1,n,r,i)}function cw(t,e,n,r,i,o,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];11&u.flags&&pw(t,u,e,i,o,s),a+=u.childCount}}function lw(t,e,n,r,i,o){for(var s=t;s&&!nw(s);)s=s.parent;for(var a=s.parent,u=tw(s),c=u.nodeIndex+u.childCount,l=u.nodeIndex+1;l<=c;l++){var p=a.def.nodes[l];p.ngContentIndex===e&&pw(a,p,n,r,i,o),l+=p.childCount}if(!a.parent){var h=t.root.projectableNodes[e];if(h)for(l=0;l<h.length;l++)hw(t,h[l],n,r,i,o)}}function pw(t,e,n,r,i,o){if(8&e.flags)lw(t,e.ngContent.index,n,r,i,o);else{var s=ew(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&hw(t,s,n,r,i,o),32&e.bindingFlags&&hw(jb(t,e.nodeIndex).componentView,s,n,r,i,o)):hw(t,s,n,r,i,o),16777216&e.flags)for(var a=jb(t,e.nodeIndex).viewContainer._embeddedViews,u=0;u<a.length;u++)uw(a[u],n,r,i,o);1&e.flags&&!e.element.name&&cw(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function hw(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}var fw=/^:([^:]+):(.+)$/;function dw(t){if(":"===t[0]){var e=t.match(fw);return[e[1],e[2]]}return["",t]}
1233
1247
  /**
1234
1248
  * @license
1235
1249
  * Copyright Google Inc. All Rights Reserved.
1236
1250
  *
1237
1251
  * Use of this source code is governed by an MIT-style license that can be
1238
1252
  * found in the LICENSE file at https://angular.io/license
1239
- */function sw(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,s=t.renderer;if(t.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=$b(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o,!!i.componentRendererType&&i.componentRendererType.encapsulation===Up.ShadowDom);if(i.attrs)for(var u=0;u<i.attrs.length;u++){var c=h(i.attrs[u],3);s.setAttribute(r,c[1],c[2],c[0])}return r}function aw(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=uw(t,n.nodeIndex,(p=o.eventName,(l=o.target)?l+":"+p:p)),a=o.target,u=t;"component"===o.target&&(a=null,u=e);var c=u.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=c}var l,p}function uw(t,e,n){return function(r){return qb(t,e,n,r)}}function cw(t,e,n,r){if(!Vb(t,e,n,r))return!1;var i=e.bindings[n],o=Pb(t,e.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function u(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}(t,i,s,i.ns,a,r);break;case 2:!function c(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,s,a,r);break;case 4:!function l(t,e,n,r,i){var o=t.root.sanitizer.sanitize(Xy.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}(t,i,s,a,r);break;case 8:!function p(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}
1253
+ */function vw(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,s=t.renderer;if(t.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=ow(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o,!!i.componentRendererType&&i.componentRendererType.encapsulation===Up.ShadowDom);if(i.attrs)for(var u=0;u<i.attrs.length;u++){var c=h(i.attrs[u],3);s.setAttribute(r,c[1],c[2],c[0])}return r}function yw(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=mw(t,n.nodeIndex,(p=o.eventName,(l=o.target)?l+":"+p:p)),a=o.target,u=t;"component"===o.target&&(a=null,u=e);var c=u.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=c}var l,p}function mw(t,e,n){return function(r){return Zb(t,e,n,r)}}function gw(t,e,n,r){if(!Gb(t,e,n,r))return!1;var i=e.bindings[n],o=jb(t,e.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function u(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}(t,i,s,i.ns,a,r);break;case 2:!function c(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,s,a,r);break;case 4:!function l(t,e,n,r,i){var o=t.root.sanitizer.sanitize(im.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}(t,i,s,a,r);break;case 8:!function p(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}
1240
1254
  /**
1241
1255
  * @license
1242
1256
  * Copyright Google Inc. All Rights Reserved.
1243
1257
  *
1244
1258
  * Use of this source code is governed by an MIT-style license that can be
1245
1259
  * found in the LICENSE file at https://angular.io/license
1246
- */(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}var lw=new Object,pw=Lb(Ep),hw=Lb(wp),fw=Lb(ed);function dw(t,e,n){void 0===n&&(n=Ep.THROW_IF_NOT_FOUND);var r=Lp(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var i=e.tokenKey;switch(i){case pw:case hw:case fw:return t}var o,s=t._def.providersByKey[i];if(s){var a=t._providers[s.index];return void 0===a&&(a=t._providers[s.index]=vw(t,s)),a===lw?void 0:a}if((o=Kl(e.token))&&function u(t,e){return null!=e.providedIn&&(function n(t,e){return t._def.modules.indexOf(e)>-1}(t,e.providedIn)||"root"===e.providedIn&&t._def.isRoot)}(t,o)){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:o.factory,deps:[],index:c,token:e.token},t._providers[c]=lw,t._providers[c]=vw(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Lp(r)}}function vw(t,e){var n;switch(201347067&e.flags){case 512:n=function r(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(dw(t,n[0]));case 2:return new e(dw(t,n[0]),dw(t,n[1]));case 3:return new e(dw(t,n[0]),dw(t,n[1]),dw(t,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=dw(t,n[o]);return new(e.bind.apply(e,f([void 0],i)))}}(t,e.value,e.deps);break;case 1024:n=function i(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(dw(t,n[0]));case 2:return e(dw(t,n[0]),dw(t,n[1]));case 3:return e(dw(t,n[0]),dw(t,n[1]),dw(t,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=dw(t,n[o]);return e.apply(void 0,f(i))}}(t,e.value,e.deps);break;case 2048:n=dw(t,e.deps[0]);break;case 256:n=e.value}return n===lw||null==n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?lw:n}function yw(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,bw(n,e),Ob.dirtyParentQueries(r),gw(r),r}function mw(t,e,n){var r=e?Wb(e,e.def.lastRenderRootNode):t.renderElement;Jb(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function gw(t){Jb(t,3,null,null,void 0)}function _w(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function bw(t,e){e>=t.length-1?t.pop():t.splice(e,1)}
1260
+ */(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}var _w=new Object,bw=Wb(Ep),ww=Wb(wp),xw=Wb(od);function Ew(t,e,n){void 0===n&&(n=Ep.THROW_IF_NOT_FOUND);var r=Lp(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var i=e.tokenKey;switch(i){case bw:case ww:case xw:return t}var o,s=t._def.providersByKey[i];if(s){var a=t._providers[s.index];return void 0===a&&(a=t._providers[s.index]=Sw(t,s)),a===_w?void 0:a}if((o=Kl(e.token))&&function u(t,e){return null!=e.providedIn&&(function n(t,e){return t._def.modules.indexOf(e)>-1}(t,e.providedIn)||"root"===e.providedIn&&t._def.isRoot)}(t,o)){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:o.factory,deps:[],index:c,token:e.token},t._providers[c]=_w,t._providers[c]=Sw(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Lp(r)}}function Sw(t,e){var n;switch(201347067&e.flags){case 512:n=function r(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Ew(t,n[0]));case 2:return new e(Ew(t,n[0]),Ew(t,n[1]));case 3:return new e(Ew(t,n[0]),Ew(t,n[1]),Ew(t,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=Ew(t,n[o]);return new(e.bind.apply(e,f([void 0],i)))}}(t,e.value,e.deps);break;case 1024:n=function i(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(Ew(t,n[0]));case 2:return e(Ew(t,n[0]),Ew(t,n[1]));case 3:return e(Ew(t,n[0]),Ew(t,n[1]),Ew(t,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=Ew(t,n[o]);return e.apply(void 0,f(i))}}(t,e.value,e.deps);break;case 2048:n=Ew(t,e.deps[0]);break;case 256:n=e.value}return n===_w||null==n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?_w:n}function Cw(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Nw(n,e),Bb.dirtyParentQueries(r),Pw(r),r}function Tw(t,e,n){var r=e?ew(e,e.def.lastRenderRootNode):t.renderElement;uw(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Pw(t){uw(t,3,null,null,void 0)}function Aw(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Nw(t,e){e>=t.length-1?t.pop():t.splice(e,1)}
1247
1261
  /**
1248
1262
  * @license
1249
1263
  * Copyright Google Inc. All Rights Reserved.
1250
1264
  *
1251
1265
  * Use of this source code is governed by an MIT-style license that can be
1252
1266
  * found in the LICENSE file at https://angular.io/license
1253
- */var ww=new Object;!function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=Zb(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=Ob.createRootView(t,e||[],n,i,r,ww),a=Ab(s,o).instance;return n&&s.renderer.setAttribute(Pb(s,0).renderElement,"ng-version",pm.full),new xw(s,new Tw(s),a)}}(Yf);var xw=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new pd(Pb(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new kw(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}($f);function Ew(t,e,n){return new Sw(t,e,n)}var Sw=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new pd(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new kw(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=zb(t),t=t.parent;return t?new kw(t,e):new kw(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=yw(this._data,t);Ob.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Tw(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof td||(i=o.get(ed));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t;
1267
+ */var kw=new Object;!function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=aw(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=Bb.createRootView(t,e||[],n,i,r,kw),a=Lb(s,o).instance;return n&&s.renderer.setAttribute(jb(s,0).renderElement,"ng-version",bm.full),new Ow(s,new Rw(s),a)}}(ed);var Ow=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new md(jb(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Vw(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(td);function Mw(t,e,n){return new Iw(t,e,n)}var Iw=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new md(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Vw(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=tw(t),t=t.parent;return t?new Vw(t,e):new Vw(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Cw(this._data,t);Bb.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Rw(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof id||(i=o.get(od));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t;
1254
1268
  /**
1255
1269
  * @license
1256
1270
  * Copyright Google Inc. All Rights Reserved.
@@ -1258,28 +1272,28 @@ function Sb(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.init
1258
1272
  * Use of this source code is governed by an MIT-style license that can be
1259
1273
  * found in the LICENSE file at https://angular.io/license
1260
1274
  */
1261
- return function r(t,e,n,i){var o=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),i.viewContainerParent=t,_w(o,n,i),function s(t,e){var n=Kb(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function i(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}(e.parent.def,e.parentNodeDef)}}(e,i),Ob.dirtyParentQueries(i),mw(e,n>0?o[n-1]:null,i)}(this._view,this._data,e,n._view),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(t._view);return function r(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];bw(r,e),null==n&&(n=r.length),_w(r,n,i),Ob.dirtyParentQueries(i),gw(i),mw(t,n>0?r[n-1]:null,i)}(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=yw(this._data,t);e&&Ob.destroyView(e)},t.prototype.detach=function(t){var e=yw(this._data,t);return e?new Tw(e):null},t}();function Cw(t){return new Tw(t)}var Tw=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return function t(e){var n=[];return Jb(e,0,void 0,void 0,n),n}(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Hb(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Ob.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Ob.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ob.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,gw(this._view),Ob.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Pw(t,e){return new Aw(t,e)}var Aw=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new Tw(Ob.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new pd(Pb(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Ry);function Nw(t,e){return new kw(t,e)}var kw=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Ep.THROW_IF_NOT_FOUND),Ob.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Lb(t)},e)},t}();function Ow(t){return new Mw(t.renderer)}var Mw=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=h(ow(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=h(ow(e),2),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function Iw(t,e,n,r){return new Rw(t,e,n,r)}var Rw=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function i(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=vw(t,i))}}(this)}return t.prototype.get=function(t,e,n){void 0===e&&(e=Ep.THROW_IF_NOT_FOUND),void 0===n&&(n=0);var r=0;return 4&n?r|=1:2&n&&(r|=4),dw(this,{token:t,tokenKey:Lb(t),flags:r},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(Jf)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+pp(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function t(e,n){for(var r=e._def,i=new Set,o=0;o<r.providers.length;o++)if(131072&r.providers[o].flags){var s=e._providers[o];if(s&&s!==lw){var a=s.ngOnDestroy;"function"!=typeof a||i.has(s)||(a.apply(s),i.add(s))}}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Dw=Lb(jf),jw=Lb(Ff),Lw=Lb(pd),Fw=Lb(W_),Vw=Lb(Ry),Bw=Lb(Q_),Hw=Lb(Ep),Uw=Lb(wp);
1275
+ return function r(t,e,n,i){var o=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),i.viewContainerParent=t,Aw(o,n,i),function s(t,e){var n=Jb(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function i(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}(e.parent.def,e.parentNodeDef)}}(e,i),Bb.dirtyParentQueries(i),Tw(e,n>0?o[n-1]:null,i)}(this._view,this._data,e,n._view),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(t._view);return function r(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];Nw(r,e),null==n&&(n=r.length),Aw(r,n,i),Bb.dirtyParentQueries(i),Pw(i),Tw(t,n>0?r[n-1]:null,i)}(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Cw(this._data,t);e&&Bb.destroyView(e)},t.prototype.detach=function(t){var e=Cw(this._data,t);return e?new Rw(e):null},t}();function Dw(t){return new Rw(t)}var Rw=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return function t(e){var n=[];return uw(e,0,void 0,void 0,n),n}(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){$b(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Bb.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Bb.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Bb.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Pw(this._view),Bb.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function jw(t,e){return new Lw(t,e)}var Lw=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new Rw(Bb.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new md(jb(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(qy);function Fw(t,e){return new Vw(t,e)}var Vw=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Ep.THROW_IF_NOT_FOUND),Bb.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Wb(t)},e)},t}();function Bw(t){return new Hw(t.renderer)}var Hw=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=h(dw(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=h(dw(e),2),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function Uw(t,e,n,r){return new qw(t,e,n,r)}var qw=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function i(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Sw(t,i))}}(this)}return t.prototype.get=function(t,e,n){void 0===e&&(e=Ep.THROW_IF_NOT_FOUND),void 0===n&&(n=0);var r=0;return 4&n?r|=1:2&n&&(r|=4),Ew(this,{token:t,tokenKey:Wb(t),flags:r},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(rd)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+pp(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function t(e,n){for(var r=e._def,i=new Set,o=0;o<r.providers.length;o++)if(131072&r.providers[o].flags){var s=e._providers[o];if(s&&s!==_w){var a=s.ngOnDestroy;"function"!=typeof a||i.has(s)||(a.apply(s),i.add(s))}}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Kw=Wb(gd),zw=Wb(bd),Ww=Wb(md),Qw=Wb(eb),Gw=Wb(qy),Xw=Wb(nb),$w=Wb(Ep),Yw=Wb(wp);
1262
1276
  /**
1263
1277
  * @license
1264
1278
  * Copyright Google Inc. All Rights Reserved.
1265
1279
  *
1266
1280
  * Use of this source code is governed by an MIT-style license that can be
1267
1281
  * found in the LICENSE file at https://angular.io/license
1268
- */function qw(t,e){return Qw(t,e)}function Kw(t,e){for(var n=t;n.parent&&!Qb(n);)n=n.parent;return Gw(n.parent,zb(n),!0,e.provider.value,e.provider.deps)}function zw(t,e){var n,r=Gw(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var o=e.outputs[i],s=r[o.propName];if(!(n=s)||"function"!=typeof n.subscribe)throw new Error("@Output "+o.propName+" not initialized in '"+r.constructor.name+"'.");var a=s.subscribe(Ww(t,e.parent.nodeIndex,o.eventName));t.disposables[e.outputIndex+i]=a.unsubscribe.bind(a)}return r}function Ww(t,e,n){return function(r){return qb(t,e,n,r)}}function Qw(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return Gw(t,e.parent,n,r.value,r.deps);case 1024:return function i(t,e,n,r,o){var s=o.length;switch(s){case 0:return r();case 1:return r(Yw(t,e,n,o[0]));case 2:return r(Yw(t,e,n,o[0]),Yw(t,e,n,o[1]));case 3:return r(Yw(t,e,n,o[0]),Yw(t,e,n,o[1]),Yw(t,e,n,o[2]));default:for(var a=Array(s),u=0;u<s;u++)a[u]=Yw(t,e,n,o[u]);return r.apply(void 0,f(a))}}(t,e.parent,n,r.value,r.deps);case 2048:return Yw(t,e.parent,n,r.deps[0]);case 256:return r.value}}function Gw(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(Yw(t,e,n,i[0]));case 2:return new r(Yw(t,e,n,i[0]),Yw(t,e,n,i[1]));case 3:return new r(Yw(t,e,n,i[0]),Yw(t,e,n,i[1]),Yw(t,e,n,i[2]));default:for(var s=new Array(o),a=0;a<o;a++)s[a]=Yw(t,e,n,i[a]);return new(r.bind.apply(r,f([void 0],s)))}}var Xw,$w={};function Yw(t,e,n,r,i){if(void 0===i&&(i=Ep.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;s===Bw&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);for(var a=t;a;){if(e)switch(s){case Dw:return Ow(Zw(a,e,n));case jw:return Zw(a,e,n).renderer;case Lw:return new pd(Pb(a,e.nodeIndex).renderElement);case Fw:return Pb(a,e.nodeIndex).viewContainer;case Vw:if(e.element.template)return Pb(a,e.nodeIndex).template;break;case Bw:return Cw(Zw(a,e,n));case Hw:case Uw:return Nw(a,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Ab(a,u.nodeIndex);return c||(c={instance:Qw(a,u)},a.nodes[u.nodeIndex]=c),c.instance}}n=Qb(a),e=zb(a),a=a.parent,4&r.flags&&(a=null)}var l=o.root.injector.get(r.token,$w);return l!==$w||i===$w?l:o.root.ngModule.injector.get(r.token,i)}function Zw(t,e,n){var r;if(n)r=Pb(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!Qb(r);)r=r.parent;return r}function Jw(t,e,n,r,i,o){if(32768&n.flags){var s=Pb(t,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}if(e.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var a=Mh.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Ih(a,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function tx(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],s=o.parent;for(!s&&o.flags&e&&nx(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&e&&(r=ex(t,s,e,r)),s=s.parent}}function ex(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&nx(t,i,o.flags&n,r++),i+=o.childCount}return r}function nx(t,e,n,r){var i=Ab(t,e);if(i){var o=i.instance;o&&(Ob.setCurrentNode(t,e),1048576&n&&Cb(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Cb(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}
1282
+ */function Zw(t,e){return nx(t,e)}function Jw(t,e){for(var n=t;n.parent&&!nw(n);)n=n.parent;return rx(n.parent,tw(n),!0,e.provider.value,e.provider.deps)}function tx(t,e){var n,r=rx(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var o=e.outputs[i],s=r[o.propName];if(!(n=s)||"function"!=typeof n.subscribe)throw new Error("@Output "+o.propName+" not initialized in '"+r.constructor.name+"'.");var a=s.subscribe(ex(t,e.parent.nodeIndex,o.eventName));t.disposables[e.outputIndex+i]=a.unsubscribe.bind(a)}return r}function ex(t,e,n){return function(r){return Zb(t,e,n,r)}}function nx(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return rx(t,e.parent,n,r.value,r.deps);case 1024:return function i(t,e,n,r,o){var s=o.length;switch(s){case 0:return r();case 1:return r(sx(t,e,n,o[0]));case 2:return r(sx(t,e,n,o[0]),sx(t,e,n,o[1]));case 3:return r(sx(t,e,n,o[0]),sx(t,e,n,o[1]),sx(t,e,n,o[2]));default:for(var a=Array(s),u=0;u<s;u++)a[u]=sx(t,e,n,o[u]);return r.apply(void 0,f(a))}}(t,e.parent,n,r.value,r.deps);case 2048:return sx(t,e.parent,n,r.deps[0]);case 256:return r.value}}function rx(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(sx(t,e,n,i[0]));case 2:return new r(sx(t,e,n,i[0]),sx(t,e,n,i[1]));case 3:return new r(sx(t,e,n,i[0]),sx(t,e,n,i[1]),sx(t,e,n,i[2]));default:for(var s=new Array(o),a=0;a<o;a++)s[a]=sx(t,e,n,i[a]);return new(r.bind.apply(r,f([void 0],s)))}}var ix,ox={};function sx(t,e,n,r,i){if(void 0===i&&(i=Ep.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;s===Xw&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);for(var a=t;a;){if(e)switch(s){case Kw:return Bw(ax(a,e,n));case zw:return ax(a,e,n).renderer;case Ww:return new md(jb(a,e.nodeIndex).renderElement);case Qw:return jb(a,e.nodeIndex).viewContainer;case Gw:if(e.element.template)return jb(a,e.nodeIndex).template;break;case Xw:return Dw(ax(a,e,n));case $w:case Yw:return Fw(a,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Lb(a,u.nodeIndex);return c||(c={instance:nx(a,u)},a.nodes[u.nodeIndex]=c),c.instance}}n=nw(a),e=tw(a),a=a.parent,4&r.flags&&(a=null)}var l=o.root.injector.get(r.token,ox);return l!==ox||i===ox?l:o.root.ngModule.injector.get(r.token,i)}function ax(t,e,n){var r;if(n)r=jb(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!nw(r);)r=r.parent;return r}function ux(t,e,n,r,i,o){if(32768&n.flags){var s=jb(t,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}if(e.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var a=fh.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new dh(a,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function cx(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],s=o.parent;for(!s&&o.flags&e&&px(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&e&&(r=lx(t,s,e,r)),s=s.parent}}function lx(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&px(t,i,o.flags&n,r++),i+=o.childCount}return r}function px(t,e,n,r){var i=Lb(t,e);if(i){var o=i.instance;o&&(Bb.setCurrentNode(t,e),1048576&n&&Db(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Db(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}
1269
1283
  /**
1270
1284
  * @license
1271
1285
  * Copyright Google Inc. All Rights Reserved.
1272
1286
  *
1273
1287
  * Use of this source code is governed by an MIT-style license that can be
1274
1288
  * found in the LICENSE file at https://angular.io/license
1275
- */function rx(t){for(var e=t.def.nodeMatchedQueries;t.parent&&Gb(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++)67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&kb(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o;134217728&(o=t.def.nodes[i]).flags&&536870912&o.flags&&kb(t,i).setDirty(),i+=o.childCount}}function ix(t,e){var n=kb(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=ox(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=Ab(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=ox(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function ox(t,e,n,r,i){for(var o=e;o<=n;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(sx(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Pb(t,o);if((s.childMatchedQueries&r.filterId)===r.filterId&&(ox(t,o+1,o+s.childCount,r,i),o+=s.childCount),16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=Kb(p);h&&h===u&&ox(p,0,p.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(l=0;l<f.length;l++){var d=f[l];ox(d,0,d.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function sx(t,e,n){if(null!=n)switch(n){case 1:return Pb(t,e.nodeIndex).renderElement;case 0:return new pd(Pb(t,e.nodeIndex).renderElement);case 2:return Pb(t,e.nodeIndex).template;case 3:return Pb(t,e.nodeIndex).viewContainer;case 4:return Ab(t,e.nodeIndex).instance}}
1289
+ */function hx(t){for(var e=t.def.nodeMatchedQueries;t.parent&&rw(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++)67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&Vb(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o;134217728&(o=t.def.nodes[i]).flags&&536870912&o.flags&&Vb(t,i).setDirty(),i+=o.childCount}}function fx(t,e){var n=Vb(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=dx(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=Lb(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=dx(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function dx(t,e,n,r,i){for(var o=e;o<=n;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(vx(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=jb(t,o);if((s.childMatchedQueries&r.filterId)===r.filterId&&(dx(t,o+1,o+s.childCount,r,i),o+=s.childCount),16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=Jb(p);h&&h===u&&dx(p,0,p.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(l=0;l<f.length;l++){var d=f[l];dx(d,0,d.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function vx(t,e,n){if(null!=n)switch(n){case 1:return jb(t,e.nodeIndex).renderElement;case 0:return new md(jb(t,e.nodeIndex).renderElement);case 2:return jb(t,e.nodeIndex).template;case 3:return jb(t,e.nodeIndex).viewContainer;case 4:return Lb(t,e.nodeIndex).instance}}
1276
1290
  /**
1277
1291
  * @license
1278
1292
  * Copyright Google Inc. All Rights Reserved.
1279
1293
  *
1280
1294
  * Use of this source code is governed by an MIT-style license that can be
1281
1295
  * found in the LICENSE file at https://angular.io/license
1282
- */function ax(t,e,n){var r=$b(t,e,n);r&&ew(t,n.ngContent.index,1,r,null,void 0)}
1296
+ */function yx(t,e,n){var r=ow(t,e,n);r&&lw(t,n.ngContent.index,1,r,null,void 0)}
1283
1297
  /**
1284
1298
  * @license
1285
1299
  * Copyright Google Inc. All Rights Reserved.
@@ -1294,21 +1308,21 @@ return function r(t,e,n,i){var o=e.viewContainer._embeddedViews;null!==n&&void 0
1294
1308
  * Use of this source code is governed by an MIT-style license that can be
1295
1309
  * found in the LICENSE file at https://angular.io/license
1296
1310
  */
1297
- function ux(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=$b(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function cx(t,e){return(null!=t?t.toString():"")+e.suffix}
1311
+ function mx(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=ow(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function gx(t,e){return(null!=t?t.toString():"")+e.suffix}
1298
1312
  /**
1299
1313
  * @license
1300
1314
  * Copyright Google Inc. All Rights Reserved.
1301
1315
  *
1302
1316
  * Use of this source code is governed by an MIT-style license that can be
1303
1317
  * found in the LICENSE file at https://angular.io/license
1304
- */function lx(t,e,n,r){var i=fx(t.root,t.renderer,t,e,n);return dx(i,t.component,r),vx(i),i}function px(t,e,n){var r=fx(t,t.renderer,null,null,e);return dx(r,n,n),vx(r),r}function hx(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,fx(t.root,i,t,e.element.componentProvider,n)}function fx(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function dx(t,e,n){t.component=e,t.context=n}function vx(t){var e;Qb(t)&&(e=Pb(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i];Ob.setCurrentNode(t,i);var s=void 0;switch(201347067&o.flags){case 1:var a=sw(t,e,o),u=void 0;if(33554432&o.flags){var c=Zb(o.element.componentView);u=Ob.createComponentView(t,o,c,a)}aw(t,u,o,a),s={renderElement:a,componentView:u,viewContainer:null,template:o.element.template?Pw(t,o):void 0},16777216&o.flags&&(s.viewContainer=Ew(t,o,s));break;case 2:s=ux(t,e,o);break;case 512:case 1024:case 2048:case 256:(s=r[i])||4096&o.flags||(s={instance:qw(t,o)});break;case 16:s={instance:Kw(t,o)};break;case 16384:(s=r[i])||(s={instance:zw(t,o)}),32768&o.flags&&dx(Pb(t,o.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new U_;break;case 8:ax(t,e,o),s=void 0}r[i]=s}Ex(t,Xw.CreateViewNodes),Px(t,201326592,268435456,0)}function yx(t){_x(t),Ob.updateDirectives(t,1),Sx(t,Xw.CheckNoChanges),Ob.updateRenderer(t,1),Ex(t,Xw.CheckNoChanges),t.state&=-97}function mx(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Sb(t,0,256),_x(t),Ob.updateDirectives(t,0),Sx(t,Xw.CheckAndUpdate),Px(t,67108864,536870912,0);var e=Sb(t,256,512);tx(t,2097152|(e?1048576:0)),Ob.updateRenderer(t,0),Ex(t,Xw.CheckAndUpdate),Px(t,134217728,536870912,0),tx(t,8388608|((e=Sb(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Sb(t,768,1024)}function gx(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?function d(t,e,n,r,i,o,s,a,u,c,l,p){switch(201347067&e.flags){case 1:return function h(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&cw(t,e,0,n)&&(f=!0),h>1&&cw(t,e,1,r)&&(f=!0),h>2&&cw(t,e,2,i)&&(f=!0),h>3&&cw(t,e,3,o)&&(f=!0),h>4&&cw(t,e,4,s)&&(f=!0),h>5&&cw(t,e,5,a)&&(f=!0),h>6&&cw(t,e,6,u)&&(f=!0),h>7&&cw(t,e,7,c)&&(f=!0),h>8&&cw(t,e,8,l)&&(f=!0),h>9&&cw(t,e,9,p)&&(f=!0),f}(t,e,n,r,i,o,s,a,u,c,l,p);case 2:return function f(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Vb(t,e,0,n)&&(h=!0),d>1&&Vb(t,e,1,r)&&(h=!0),d>2&&Vb(t,e,2,i)&&(h=!0),d>3&&Vb(t,e,3,o)&&(h=!0),d>4&&Vb(t,e,4,s)&&(h=!0),d>5&&Vb(t,e,5,a)&&(h=!0),d>6&&Vb(t,e,6,u)&&(h=!0),d>7&&Vb(t,e,7,c)&&(h=!0),d>8&&Vb(t,e,8,l)&&(h=!0),d>9&&Vb(t,e,9,p)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=cx(n,f[0])),d>1&&(v+=cx(r,f[1])),d>2&&(v+=cx(i,f[2])),d>3&&(v+=cx(o,f[3])),d>4&&(v+=cx(s,f[4])),d>5&&(v+=cx(a,f[5])),d>6&&(v+=cx(u,f[6])),d>7&&(v+=cx(c,f[7])),d>8&&(v+=cx(l,f[8])),d>9&&(v+=cx(p,f[9]));var y=Tb(t,e.nodeIndex).renderText;t.renderer.setValue(y,v)}return h}(t,e,n,r,i,o,s,a,u,c,l,p);case 16384:return function d(t,e,n,r,i,o,s,a,u,c,l,p){var h=Ab(t,e.nodeIndex),f=h.instance,d=!1,v=void 0,y=e.bindings.length;return y>0&&Fb(t,e,0,n)&&(d=!0,v=Jw(t,h,e,0,n,v)),y>1&&Fb(t,e,1,r)&&(d=!0,v=Jw(t,h,e,1,r,v)),y>2&&Fb(t,e,2,i)&&(d=!0,v=Jw(t,h,e,2,i,v)),y>3&&Fb(t,e,3,o)&&(d=!0,v=Jw(t,h,e,3,o,v)),y>4&&Fb(t,e,4,s)&&(d=!0,v=Jw(t,h,e,4,s,v)),y>5&&Fb(t,e,5,a)&&(d=!0,v=Jw(t,h,e,5,a,v)),y>6&&Fb(t,e,6,u)&&(d=!0,v=Jw(t,h,e,6,u,v)),y>7&&Fb(t,e,7,c)&&(d=!0,v=Jw(t,h,e,7,c,v)),y>8&&Fb(t,e,8,l)&&(d=!0,v=Jw(t,h,e,8,l,v)),y>9&&Fb(t,e,9,p)&&(d=!0,v=Jw(t,h,e,9,p,v)),v&&f.ngOnChanges(v),65536&e.flags&&Cb(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,i,o,s,a,u,c,l,p);case 32:case 64:case 128:return function v(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Vb(t,e,0,n)&&(f=!0),d>1&&Vb(t,e,1,r)&&(f=!0),d>2&&Vb(t,e,2,i)&&(f=!0),d>3&&Vb(t,e,3,o)&&(f=!0),d>4&&Vb(t,e,4,s)&&(f=!0),d>5&&Vb(t,e,5,a)&&(f=!0),d>6&&Vb(t,e,6,u)&&(f=!0),d>7&&Vb(t,e,7,c)&&(f=!0),d>8&&Vb(t,e,8,l)&&(f=!0),d>9&&Vb(t,e,9,p)&&(f=!0),f){var v=Nb(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=i),d>3&&(y[3]=o),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=i),d>3&&(y[h[3].name]=o),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 128:var m=n;switch(d){case 1:y=m.transform(n);break;case 2:y=m.transform(r);break;case 3:y=m.transform(r,i);break;case 4:y=m.transform(r,i,o);break;case 5:y=m.transform(r,i,o,s);break;case 6:y=m.transform(r,i,o,s,a);break;case 7:y=m.transform(r,i,o,s,a,u);break;case 8:y=m.transform(r,i,o,s,a,u,c);break;case 9:y=m.transform(r,i,o,s,a,u,c,l);break;case 10:y=m.transform(r,i,o,s,a,u,c,l,p)}}v.value=y}return f}(t,e,n,r,i,o,s,a,u,c,l,p);default:throw"unreachable"}}(t,e,r,i,o,s,a,u,c,l,p,h):function v(t,e,n){switch(201347067&e.flags){case 1:return function r(t,e,n){for(var r=!1,i=0;i<n.length;i++)cw(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function i(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Vb(t,e,o,n[o])&&(i=!0);if(i){var s="";for(o=0;o<n.length;o++)s+=cx(n[o],r[o]);s=e.text.prefix+s;var a=Tb(t,e.nodeIndex).renderText;t.renderer.setValue(a,s)}return i}(t,e,n);case 16384:return function o(t,e,n){for(var r=Ab(t,e.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)Fb(t,e,a,n[a])&&(o=!0,s=Jw(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),65536&e.flags&&Cb(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function s(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Vb(t,e,o,n[o])&&(i=!0);if(i){var s=Nb(t,e.nodeIndex),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:for(a={},o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,f(c))}s.value=a}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function _x(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=Pb(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,Ub(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function bx(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?function f(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Bb(t,e,0,n),h>1&&Bb(t,e,1,r),h>2&&Bb(t,e,2,i),h>3&&Bb(t,e,3,o),h>4&&Bb(t,e,4,s),h>5&&Bb(t,e,5,a),h>6&&Bb(t,e,6,u),h>7&&Bb(t,e,7,c),h>8&&Bb(t,e,8,l),h>9&&Bb(t,e,9,p)}(t,e,r,i,o,s,a,u,c,l,p,h):function d(t,e,n){for(var r=0;r<n.length;r++)Bb(t,e,r,n[r])}(t,e,r),!1}function wx(t,e){if(kb(t,e.nodeIndex).dirty)throw Mb(Ob.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function xx(t){if(!(128&t.state)){if(Sx(t,Xw.Destroy),Ex(t,Xw.Destroy),tx(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function n(t){if(16&t.state){var e=Kb(t);if(e){var n=e.template._projectedViews;n&&(bw(n,n.indexOf(t)),Ob.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function r(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(Pb(t,n).renderElement):2&r.flags?t.renderer.destroyNode(Tb(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&kb(t,n).destroy()}}(t),Qb(t)&&t.renderer.destroy(),t.state|=128}}function Ex(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?Cx(Pb(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Sx(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Pb(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)Cx(o[s],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Cx(t,e){var n=t.state;switch(e){case Xw.CheckNoChanges:0==(128&n)&&(12==(12&n)?yx(t):64&n&&Tx(t,Xw.CheckNoChangesProjectedViews));break;case Xw.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?yx(t):64&n&&Tx(t,e));break;case Xw.CheckAndUpdate:0==(128&n)&&(12==(12&n)?mx(t):64&n&&Tx(t,Xw.CheckAndUpdateProjectedViews));break;case Xw.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?mx(t):64&n&&Tx(t,e));break;case Xw.Destroy:xx(t);break;case Xw.CreateViewNodes:vx(t)}}function Tx(t,e){Sx(t,e),Ex(t,e)}function Px(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(Ob.setCurrentNode(t,s.nodeIndex),r){case 0:ix(t,s);break;case 1:wx(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}
1318
+ */function _x(t,e,n,r){var i=xx(t.root,t.renderer,t,e,n);return Ex(i,t.component,r),Sx(i),i}function bx(t,e,n){var r=xx(t,t.renderer,null,null,e);return Ex(r,n,n),Sx(r),r}function wx(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,xx(t.root,i,t,e.element.componentProvider,n)}function xx(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function Ex(t,e,n){t.component=e,t.context=n}function Sx(t){var e;nw(t)&&(e=jb(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i];Bb.setCurrentNode(t,i);var s=void 0;switch(201347067&o.flags){case 1:var a=vw(t,e,o),u=void 0;if(33554432&o.flags){var c=aw(o.element.componentView);u=Bb.createComponentView(t,o,c,a)}yw(t,u,o,a),s={renderElement:a,componentView:u,viewContainer:null,template:o.element.template?jw(t,o):void 0},16777216&o.flags&&(s.viewContainer=Mw(t,o,s));break;case 2:s=mx(t,e,o);break;case 512:case 1024:case 2048:case 256:(s=r[i])||4096&o.flags||(s={instance:Zw(t,o)});break;case 16:s={instance:Jw(t,o)};break;case 16384:(s=r[i])||(s={instance:tx(t,o)}),32768&o.flags&&Ex(jb(t,o.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new Y_;break;case 8:yx(t,e,o),s=void 0}r[i]=s}Mx(t,ix.CreateViewNodes),jx(t,201326592,268435456,0)}function Cx(t){Ax(t),Bb.updateDirectives(t,1),Ix(t,ix.CheckNoChanges),Bb.updateRenderer(t,1),Mx(t,ix.CheckNoChanges),t.state&=-97}function Tx(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Ib(t,0,256),Ax(t),Bb.updateDirectives(t,0),Ix(t,ix.CheckAndUpdate),jx(t,67108864,536870912,0);var e=Ib(t,256,512);cx(t,2097152|(e?1048576:0)),Bb.updateRenderer(t,0),Mx(t,ix.CheckAndUpdate),jx(t,134217728,536870912,0),cx(t,8388608|((e=Ib(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Ib(t,768,1024)}function Px(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?function d(t,e,n,r,i,o,s,a,u,c,l,p){switch(201347067&e.flags){case 1:return function h(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&gw(t,e,0,n)&&(f=!0),h>1&&gw(t,e,1,r)&&(f=!0),h>2&&gw(t,e,2,i)&&(f=!0),h>3&&gw(t,e,3,o)&&(f=!0),h>4&&gw(t,e,4,s)&&(f=!0),h>5&&gw(t,e,5,a)&&(f=!0),h>6&&gw(t,e,6,u)&&(f=!0),h>7&&gw(t,e,7,c)&&(f=!0),h>8&&gw(t,e,8,l)&&(f=!0),h>9&&gw(t,e,9,p)&&(f=!0),f}(t,e,n,r,i,o,s,a,u,c,l,p);case 2:return function f(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Gb(t,e,0,n)&&(h=!0),d>1&&Gb(t,e,1,r)&&(h=!0),d>2&&Gb(t,e,2,i)&&(h=!0),d>3&&Gb(t,e,3,o)&&(h=!0),d>4&&Gb(t,e,4,s)&&(h=!0),d>5&&Gb(t,e,5,a)&&(h=!0),d>6&&Gb(t,e,6,u)&&(h=!0),d>7&&Gb(t,e,7,c)&&(h=!0),d>8&&Gb(t,e,8,l)&&(h=!0),d>9&&Gb(t,e,9,p)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=gx(n,f[0])),d>1&&(v+=gx(r,f[1])),d>2&&(v+=gx(i,f[2])),d>3&&(v+=gx(o,f[3])),d>4&&(v+=gx(s,f[4])),d>5&&(v+=gx(a,f[5])),d>6&&(v+=gx(u,f[6])),d>7&&(v+=gx(c,f[7])),d>8&&(v+=gx(l,f[8])),d>9&&(v+=gx(p,f[9]));var y=Rb(t,e.nodeIndex).renderText;t.renderer.setValue(y,v)}return h}(t,e,n,r,i,o,s,a,u,c,l,p);case 16384:return function d(t,e,n,r,i,o,s,a,u,c,l,p){var h=Lb(t,e.nodeIndex),f=h.instance,d=!1,v=void 0,y=e.bindings.length;return y>0&&Qb(t,e,0,n)&&(d=!0,v=ux(t,h,e,0,n,v)),y>1&&Qb(t,e,1,r)&&(d=!0,v=ux(t,h,e,1,r,v)),y>2&&Qb(t,e,2,i)&&(d=!0,v=ux(t,h,e,2,i,v)),y>3&&Qb(t,e,3,o)&&(d=!0,v=ux(t,h,e,3,o,v)),y>4&&Qb(t,e,4,s)&&(d=!0,v=ux(t,h,e,4,s,v)),y>5&&Qb(t,e,5,a)&&(d=!0,v=ux(t,h,e,5,a,v)),y>6&&Qb(t,e,6,u)&&(d=!0,v=ux(t,h,e,6,u,v)),y>7&&Qb(t,e,7,c)&&(d=!0,v=ux(t,h,e,7,c,v)),y>8&&Qb(t,e,8,l)&&(d=!0,v=ux(t,h,e,8,l,v)),y>9&&Qb(t,e,9,p)&&(d=!0,v=ux(t,h,e,9,p,v)),v&&f.ngOnChanges(v),65536&e.flags&&Db(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,i,o,s,a,u,c,l,p);case 32:case 64:case 128:return function v(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Gb(t,e,0,n)&&(f=!0),d>1&&Gb(t,e,1,r)&&(f=!0),d>2&&Gb(t,e,2,i)&&(f=!0),d>3&&Gb(t,e,3,o)&&(f=!0),d>4&&Gb(t,e,4,s)&&(f=!0),d>5&&Gb(t,e,5,a)&&(f=!0),d>6&&Gb(t,e,6,u)&&(f=!0),d>7&&Gb(t,e,7,c)&&(f=!0),d>8&&Gb(t,e,8,l)&&(f=!0),d>9&&Gb(t,e,9,p)&&(f=!0),f){var v=Fb(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=i),d>3&&(y[3]=o),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=i),d>3&&(y[h[3].name]=o),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 128:var m=n;switch(d){case 1:y=m.transform(n);break;case 2:y=m.transform(r);break;case 3:y=m.transform(r,i);break;case 4:y=m.transform(r,i,o);break;case 5:y=m.transform(r,i,o,s);break;case 6:y=m.transform(r,i,o,s,a);break;case 7:y=m.transform(r,i,o,s,a,u);break;case 8:y=m.transform(r,i,o,s,a,u,c);break;case 9:y=m.transform(r,i,o,s,a,u,c,l);break;case 10:y=m.transform(r,i,o,s,a,u,c,l,p)}}v.value=y}return f}(t,e,n,r,i,o,s,a,u,c,l,p);default:throw"unreachable"}}(t,e,r,i,o,s,a,u,c,l,p,h):function v(t,e,n){switch(201347067&e.flags){case 1:return function r(t,e,n){for(var r=!1,i=0;i<n.length;i++)gw(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function i(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Gb(t,e,o,n[o])&&(i=!0);if(i){var s="";for(o=0;o<n.length;o++)s+=gx(n[o],r[o]);s=e.text.prefix+s;var a=Rb(t,e.nodeIndex).renderText;t.renderer.setValue(a,s)}return i}(t,e,n);case 16384:return function o(t,e,n){for(var r=Lb(t,e.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)Qb(t,e,a,n[a])&&(o=!0,s=ux(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),65536&e.flags&&Db(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function s(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Gb(t,e,o,n[o])&&(i=!0);if(i){var s=Fb(t,e.nodeIndex),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:for(a={},o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,f(c))}s.value=a}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function Ax(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=jb(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,Yb(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Nx(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?function f(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Xb(t,e,0,n),h>1&&Xb(t,e,1,r),h>2&&Xb(t,e,2,i),h>3&&Xb(t,e,3,o),h>4&&Xb(t,e,4,s),h>5&&Xb(t,e,5,a),h>6&&Xb(t,e,6,u),h>7&&Xb(t,e,7,c),h>8&&Xb(t,e,8,l),h>9&&Xb(t,e,9,p)}(t,e,r,i,o,s,a,u,c,l,p,h):function d(t,e,n){for(var r=0;r<n.length;r++)Xb(t,e,r,n[r])}(t,e,r),!1}function kx(t,e){if(Vb(t,e.nodeIndex).dirty)throw Hb(Bb.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function Ox(t){if(!(128&t.state)){if(Ix(t,ix.Destroy),Mx(t,ix.Destroy),cx(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function n(t){if(16&t.state){var e=Jb(t);if(e){var n=e.template._projectedViews;n&&(Nw(n,n.indexOf(t)),Bb.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function r(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(jb(t,n).renderElement):2&r.flags?t.renderer.destroyNode(Rb(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&Vb(t,n).destroy()}}(t),nw(t)&&t.renderer.destroy(),t.state|=128}}function Mx(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?Dx(jb(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Ix(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=jb(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)Dx(o[s],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Dx(t,e){var n=t.state;switch(e){case ix.CheckNoChanges:0==(128&n)&&(12==(12&n)?Cx(t):64&n&&Rx(t,ix.CheckNoChangesProjectedViews));break;case ix.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Cx(t):64&n&&Rx(t,e));break;case ix.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Tx(t):64&n&&Rx(t,ix.CheckAndUpdateProjectedViews));break;case ix.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Tx(t):64&n&&Rx(t,e));break;case ix.Destroy:Ox(t);break;case ix.CreateViewNodes:Sx(t)}}function Rx(t,e){Ix(t,e),Mx(t,e)}function jx(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(Bb.setCurrentNode(t,s.nodeIndex),r){case 0:fx(t,s);break;case 1:kx(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}
1305
1319
  /**
1306
1320
  * @license
1307
1321
  * Copyright Google Inc. All Rights Reserved.
1308
1322
  *
1309
1323
  * Use of this source code is governed by an MIT-style license that can be
1310
1324
  * found in the LICENSE file at https://angular.io/license
1311
- */!function(t){t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy"}(Xw||(Xw={}));var Ax=!1;function Nx(t,e,n,r,i,o){return px(Ox(t,i,i.injector.get(Lf),e,n),r,o)}function kx(t,e,n,r,i,o){var s=i.injector.get(Lf),a=Ox(t,i,new pE(s),e,n),u=zx(r);return cE(Dx.create,px,null,[a,u,o])}function Ox(t,e,n,r,i){var o=e.injector.get(tm),s=e.injector.get(_m);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function Mx(t,e,n,r){var i=zx(n);return cE(Dx.create,lx,null,[t,e,i,r])}function Ix(t,e,n,r){return n=Hx.get(e.element.componentProvider.provider.token)||zx(n),cE(Dx.create,hx,null,[t,e,n,r])}function Rx(t,e,n,r){return Iw(t,e,n,function i(t){var e=function n(t){var e=!1,n=!1;return 0===Vx.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=Vx.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(function(t){Bx.forEach(function(r,i){Kl(i).providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),r=e.hasDeprecatedOverrides;return e.hasOverrides?(function i(t){for(var e=0;e<t.providers.length;e++){var n=t.providers[e];r&&(n.flags|=4096);var i=Vx.get(n.token);i&&(n.flags=-3841&n.flags|i.flags,n.deps=Xb(i.deps),n.value=i.value)}if(Bx.size>0){var o=new Set(t.modules);Bx.forEach(function(e,n){if(o.has(Kl(n).providedIn)){var i={token:n,flags:e.flags|(r?4096:0),deps:Xb(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[Lb(n)]=i}})}}(t=t.factory(function(){return Db})),t):t}(r))}var Dx,jx,Lx,Fx,Vx=new Map,Bx=new Map,Hx=new Map;function Ux(t){var e;Vx.set(t.token,t),"function"==typeof t.token&&(e=Kl(t.token))&&"function"==typeof e.providedIn&&Bx.set(t.token,t)}function qx(t,e){var n=Zb(Zb(function r(t){return t.viewDefFactory}(e)).nodes[0].element.componentView);Hx.set(t,n)}function Kx(){Vx.clear(),Bx.clear(),Hx.clear()}function zx(t){if(0===Vx.size)return t;var e=function n(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Vx.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return Db});for(var r=0;r<e.length;r++)i(t,e[r]);return t;function i(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=Vx.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=Xb(o.deps),i.value=o.value)}}}}function Wx(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return gx(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?Nb(t,e).value:void 0}function Qx(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return bx(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?Nb(t,e).value:void 0}function Gx(t){return cE(Dx.detectChanges,mx,null,[t])}function Xx(t){return cE(Dx.checkNoChanges,yx,null,[t])}function $x(t){return cE(Dx.destroy,xx,null,[t])}function Yx(t,e){Lx=t,Fx=e}function Zx(t,e,n,r){return Yx(t,e),cE(Dx.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Jx(t,e){if(128&t.state)throw Rb(Dx[jx]);return Yx(t,oE(t,0)),t.def.updateDirectives(function n(t,r,i){for(var o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];var a=t.def.nodes[r];return 0===e?eE(t,a,i,o):nE(t,a,i,o),16384&a.flags&&Yx(t,oE(t,r)),224&a.flags?Nb(t,a.nodeIndex).value:void 0},t)}function tE(t,e){if(128&t.state)throw Rb(Dx[jx]);return Yx(t,sE(t,0)),t.def.updateRenderer(function n(t,r,i){for(var o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];var a=t.def.nodes[r];return 0===e?eE(t,a,i,o):nE(t,a,i,o),3&a.flags&&Yx(t,sE(t,r)),224&a.flags?Nb(t,a.nodeIndex).value:void 0},t)}function eE(t,e,n,r){if(gx.apply(void 0,f([t,e,n],r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=i[s];8&a.flags&&(o[(d=a.nonMinifiedName,"ng-reflect-"+(d=function c(t){return t.replace(rE,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}(d.replace(/[$@]/g,"_"))))]=iE(u))}var l=e.parent,p=Pb(t,l.nodeIndex).renderElement;if(l.element.name)for(var h in o)null!=(u=o[h])?t.renderer.setAttribute(p,h,u):t.renderer.removeAttribute(p,h);else t.renderer.setValue(p,"bindings="+JSON.stringify(o,null,2))}}var d}function nE(t,e,n,r){bx.apply(void 0,f([t,e,n],r))}!function(t){t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent"}(Dx||(Dx={}));var rE=/([A-Z])/g;function iE(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function oE(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function sE(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var aE=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=zb(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Pb(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Nw(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){uE(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&uE(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function e(t){for(;t&&!Qb(t);)t=t.parent;return t.parent?Pb(t.parent,zb(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?Wb(this.view,this.nodeDef):Wb(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var o=function s(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(e,n),a=-1;e.factory(function(){var e;return++a===o?(e=t.error).bind.apply(e,f([t],r)):Db}),a<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,f(r)))},t}();function uE(t,e,n){for(var r in e.references)n[r]=sx(t,e,e.references[r])}function cE(t,e,n,r){var i=jx,o=Lx,s=Fx;try{jx=t;var a=e.apply(n,r);return Lx=o,Fx=s,jx=i,a}catch(t){if(function u(t){return!!ym(t)}(t)||!Lx)throw t;throw function c(t,e){return t instanceof Error||(t=new Error(t.toString())),Ib(t,e),t}(t,lE())}}function lE(){return Lx?new aE(Lx,Fx):null}var pE=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new hE(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),hE=function(){function t(t){this.delegate=t,this.debugContextFactory=lE,this.data=this.delegate.data}return Object.defineProperty(t.prototype,"debugContext",{get:function(){return this.debugContextFactory()},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){!function e(t){J_.delete(t.nativeNode)}(tb(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=this.debugContext;if(r){var i=new $_(n,null,r);i.name=t,eb(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=this.debugContext;return n&&eb(new X_(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=this.debugContext;return n&&eb(new X_(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=tb(t),r=tb(e);n&&r&&n instanceof $_&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=tb(t),i=tb(e),o=tb(n);r&&i&&r instanceof $_&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=tb(t),r=tb(e);n&&r&&n instanceof $_&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t,e){var n=this.delegate.selectRootElement(t,e),r=lE();return r&&eb(new $_(n,null,r)),n},t.prototype.setAttribute=function(t,e,n,r){var i=tb(t);i&&i instanceof $_&&(i.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=tb(t);r&&r instanceof $_&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=tb(t);n&&n instanceof $_&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=tb(t);n&&n instanceof $_&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=tb(t);i&&i instanceof $_&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=tb(t);r&&r instanceof $_&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=tb(t);r&&r instanceof $_&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=tb(t);r&&r.listeners.push(new G_(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}();(function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}o(e,t),e.prototype.create=function(t){!function e(){if(!Ax){Ax=!0;var t=Wy()?function e(){return{setCurrentNode:Yx,createRootView:kx,createEmbeddedView:Mx,createComponentView:Ix,createNgModuleRef:Rx,overrideProvider:Ux,overrideComponentView:qx,clearOverrides:Kx,checkAndUpdateView:Gx,checkNoChangesView:Xx,destroyView:$x,createDebugContext:function(t,e){return new aE(t,e)},handleEvent:Zx,updateDirectives:Jx,updateRenderer:tE}}():function n(){return{setCurrentNode:function(){},createRootView:Nx,createEmbeddedView:lx,createComponentView:hx,createNgModuleRef:Iw,overrideProvider:Db,overrideComponentView:Db,clearOverrides:Db,checkAndUpdateView:mx,checkNoChangesView:yx,destroyView:xx,createDebugContext:function(t,e){return new aE(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?Wx:Qx,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?Wx:Qx,t)}}}();Ob.setCurrentNode=t.setCurrentNode,Ob.createRootView=t.createRootView,Ob.createEmbeddedView=t.createEmbeddedView,Ob.createComponentView=t.createComponentView,Ob.createNgModuleRef=t.createNgModuleRef,Ob.overrideProvider=t.overrideProvider,Ob.overrideComponentView=t.overrideComponentView,Ob.clearOverrides=t.clearOverrides,Ob.checkAndUpdateView=t.checkAndUpdateView,Ob.checkNoChangesView=t.checkNoChangesView,Ob.destroyView=t.destroyView,Ob.resolveDep=Yw,Ob.createDebugContext=t.createDebugContext,Ob.handleEvent=t.handleEvent,Ob.updateDirectives=t.updateDirectives,Ob.updateRenderer=t.updateRenderer,Ob.dirtyParentQueries=rx}}();var n=
1325
+ */!function(t){t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy"}(ix||(ix={}));var Lx=!1;function Fx(t,e,n,r,i,o){return bx(Bx(t,i,i.injector.get(_d),e,n),r,o)}function Vx(t,e,n,r,i,o){var s=i.injector.get(_d),a=Bx(t,i,new bE(s),e,n),u=tE(r);return gE(Kx.create,bx,null,[a,u,o])}function Bx(t,e,n,r,i){var o=e.injector.get(cm),s=e.injector.get(Am);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function Hx(t,e,n,r){var i=tE(n);return gE(Kx.create,_x,null,[t,e,i,r])}function Ux(t,e,n,r){return n=$x.get(e.element.componentProvider.provider.token)||tE(n),gE(Kx.create,wx,null,[t,e,n,r])}function qx(t,e,n,r){return Uw(t,e,n,function i(t){var e=function n(t){var e=!1,n=!1;return 0===Gx.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=Gx.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(function(t){Xx.forEach(function(r,i){Kl(i).providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),r=e.hasDeprecatedOverrides;return e.hasOverrides?(function i(t){for(var e=0;e<t.providers.length;e++){var n=t.providers[e];r&&(n.flags|=4096);var i=Gx.get(n.token);i&&(n.flags=-3841&n.flags|i.flags,n.deps=iw(i.deps),n.value=i.value)}if(Xx.size>0){var o=new Set(t.modules);Xx.forEach(function(e,n){if(o.has(Kl(n).providedIn)){var i={token:n,flags:e.flags|(r?4096:0),deps:iw(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[Wb(n)]=i}})}}(t=t.factory(function(){return Kb})),t):t}(r))}var Kx,zx,Wx,Qx,Gx=new Map,Xx=new Map,$x=new Map;function Yx(t){var e;Gx.set(t.token,t),"function"==typeof t.token&&(e=Kl(t.token))&&"function"==typeof e.providedIn&&Xx.set(t.token,t)}function Zx(t,e){var n=aw(aw(function r(t){return t.viewDefFactory}(e)).nodes[0].element.componentView);$x.set(t,n)}function Jx(){Gx.clear(),Xx.clear(),$x.clear()}function tE(t){if(0===Gx.size)return t;var e=function n(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Gx.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return Kb});for(var r=0;r<e.length;r++)i(t,e[r]);return t;function i(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=Gx.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=iw(o.deps),i.value=o.value)}}}}function eE(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Px(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?Fb(t,e).value:void 0}function nE(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Nx(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?Fb(t,e).value:void 0}function rE(t){return gE(Kx.detectChanges,Tx,null,[t])}function iE(t){return gE(Kx.checkNoChanges,Cx,null,[t])}function oE(t){return gE(Kx.destroy,Ox,null,[t])}function sE(t,e){Wx=t,Qx=e}function aE(t,e,n,r){return sE(t,e),gE(Kx.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function uE(t,e){if(128&t.state)throw qb(Kx[zx]);return sE(t,dE(t,0)),t.def.updateDirectives(function n(t,r,i){for(var o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];var a=t.def.nodes[r];return 0===e?lE(t,a,i,o):pE(t,a,i,o),16384&a.flags&&sE(t,dE(t,r)),224&a.flags?Fb(t,a.nodeIndex).value:void 0},t)}function cE(t,e){if(128&t.state)throw qb(Kx[zx]);return sE(t,vE(t,0)),t.def.updateRenderer(function n(t,r,i){for(var o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];var a=t.def.nodes[r];return 0===e?lE(t,a,i,o):pE(t,a,i,o),3&a.flags&&sE(t,vE(t,r)),224&a.flags?Fb(t,a.nodeIndex).value:void 0},t)}function lE(t,e,n,r){if(Px.apply(void 0,f([t,e,n],r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=i[s];8&a.flags&&(o[(d=a.nonMinifiedName,"ng-reflect-"+(d=function c(t){return t.replace(hE,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}(d.replace(/[$@]/g,"_"))))]=fE(u))}var l=e.parent,p=jb(t,l.nodeIndex).renderElement;if(l.element.name)for(var h in o)null!=(u=o[h])?t.renderer.setAttribute(p,h,u):t.renderer.removeAttribute(p,h);else t.renderer.setValue(p,"bindings="+JSON.stringify(o,null,2))}}var d}function pE(t,e,n,r){Nx.apply(void 0,f([t,e,n],r))}!function(t){t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent"}(Kx||(Kx={}));var hE=/([A-Z])/g;function fE(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function dE(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function vE(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var yE=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=tw(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return jb(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Fw(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){mE(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&mE(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function e(t){for(;t&&!nw(t);)t=t.parent;return t.parent?jb(t.parent,tw(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?ew(this.view,this.nodeDef):ew(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var o=function s(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(e,n),a=-1;e.factory(function(){var e;return++a===o?(e=t.error).bind.apply(e,f([t],r)):Kb}),a<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,f(r)))},t}();function mE(t,e,n){for(var r in e.references)n[r]=vx(t,e,e.references[r])}function gE(t,e,n,r){var i=zx,o=Wx,s=Qx;try{zx=t;var a=e.apply(n,r);return Wx=o,Qx=s,zx=i,a}catch(t){if(function u(t){return!!Cm(t)}(t)||!Wx)throw t;throw function c(t,e){return t instanceof Error||(t=new Error(t.toString())),Ub(t,e),t}(t,_E())}}function _E(){return Wx?new yE(Wx,Qx):null}var bE=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new wE(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),wE=function(){function t(t){this.delegate=t,this.debugContextFactory=_E,this.data=this.delegate.data}return t.prototype.createDebugContext=function(t){return this.debugContextFactory(t)},t.prototype.destroyNode=function(t){!function e(t){ub.delete(t.nativeNode)}(cb(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=this.createDebugContext(n);if(r){var i=new ob(n,null,r);i.name=t,lb(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=this.createDebugContext(e);return n&&lb(new ib(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&lb(new ib(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=cb(t),r=cb(e);n&&r&&n instanceof ob&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=cb(t),i=cb(e),o=cb(n);r&&i&&r instanceof ob&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=cb(t),r=cb(e);n&&r&&n instanceof ob&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t,e){var n=this.delegate.selectRootElement(t,e),r=_E()||null;return r&&lb(new ob(n,null,r)),n},t.prototype.setAttribute=function(t,e,n,r){var i=cb(t);i&&i instanceof ob&&(i.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=cb(t);r&&r instanceof ob&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=cb(t);n&&n instanceof ob&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=cb(t);n&&n instanceof ob&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=cb(t);i&&i instanceof ob&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=cb(t);r&&r instanceof ob&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=cb(t);r&&r instanceof ob&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=cb(t);r&&r.listeners.push(new rb(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}();function xE(t){var e=function n(t){var e=Eh(t);if(e){if(Array.isArray(e)){var n=e,r=void 0,i=void 0,o=void 0;if(function s(t){return t&&t.constructor&&t.constructor.ngComponentDef}(t)){if(-1==(r=Nh(n,t)))throw new Error("The provided component was not found in the application");i=t}else if(function a(t){return t&&t.constructor&&t.constructor.ngDirectiveDef}(t)){if(-1==(r=function u(t,e){for(var n=t[Yp].firstChild;n;){for(var r=kh(n),i=Oh(n,r),o=r;o<i;o++)if(t[o]===e)return n.index;n=Ah(n)}return-1}(n,t)))throw new Error("The provided directive was not found in the application");o=function c(t,e,n){var r=e[Yp].data[t],i=kh(r),o=Oh(r,i);return!n&&4096&r.flags&&i++,e.slice(i,o)}(r,n,!1)}else if(-1==(r=Ph(n,t)))return null;var l=Eh(m=_h(n[r])),p=l&&!Array.isArray(l)?l:Ch(n,r,m);if(i&&void 0===p.component&&(p.component=i,Th(p.component,p)),o&&void 0===p.directives){p.directives=o;for(var h=0;h<o.length;h++)Th(o[h],p)}Th(p.native,p),e=p}}else for(var f=t,d=f;d=d.parentNode;){var v=Eh(d);if(v){if(n=void 0,!(n=Array.isArray(v)?v:v.lViewData))return null;var y=Ph(n,f);if(y>=0){var m;Th(m=_h(n[y]),p=Ch(n,y,m)),e=p;break}}}return e||null}(t);if(!e)throw new Error("Invalid ng target");return e}!function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}o(e,t),e.prototype.create=function(t){!function e(){if(!Lx){Lx=!0;var t=em()?function e(){return{setCurrentNode:sE,createRootView:Vx,createEmbeddedView:Hx,createComponentView:Ux,createNgModuleRef:qx,overrideProvider:Yx,overrideComponentView:Zx,clearOverrides:Jx,checkAndUpdateView:rE,checkNoChangesView:iE,destroyView:oE,createDebugContext:function(t,e){return new yE(t,e)},handleEvent:aE,updateDirectives:uE,updateRenderer:cE}}():function n(){return{setCurrentNode:function(){},createRootView:Fx,createEmbeddedView:_x,createComponentView:wx,createNgModuleRef:Uw,overrideProvider:Kb,overrideComponentView:Kb,clearOverrides:Kb,checkAndUpdateView:Tx,checkNoChangesView:Cx,destroyView:Ox,createDebugContext:function(t,e){return new yE(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?eE:nE,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?eE:nE,t)}}}();Bb.setCurrentNode=t.setCurrentNode,Bb.createRootView=t.createRootView,Bb.createEmbeddedView=t.createEmbeddedView,Bb.createComponentView=t.createComponentView,Bb.createNgModuleRef=t.createNgModuleRef,Bb.overrideProvider=t.overrideProvider,Bb.overrideComponentView=t.overrideComponentView,Bb.clearOverrides=t.clearOverrides,Bb.checkAndUpdateView=t.checkAndUpdateView,Bb.checkNoChangesView=t.checkNoChangesView,Bb.destroyView=t.destroyView,Bb.resolveDep=sx,Bb.createDebugContext=t.createDebugContext,Bb.handleEvent=t.handleEvent,Bb.updateDirectives=t.updateDirectives,Bb.updateRenderer=t.updateRenderer,Bb.dirtyParentQueries=hx}}();var n=
1312
1326
  /**
1313
1327
  * @license
1314
1328
  * Copyright Google Inc. All Rights Reserved.
@@ -1316,42 +1330,43 @@ function ux(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=$b(t,e
1316
1330
  * Use of this source code is governed by an MIT-style license that can be
1317
1331
  * found in the LICENSE file at https://angular.io/license
1318
1332
  */
1319
- function r(t){var e=Array.from(t.providers),n=Array.from(t.modules),r={};for(var i in t.providersByKey)r[i]=t.providersByKey[i];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:r}}(Zb(this._ngModuleDefFactory));return Ob.createNgModuleRef(this.moduleType,t||Ep.NULL,this._bootstrapComponents,n)}})(nd),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}o(e,t),e.prototype.createRenderer=function(e,n){var r=t.prototype.createRenderer.call(this,e,n);return r.debugContextFactory=function(){return new fE(ef())},r}}(pE);var fE=function(){function t(t){this.viewData=t,this.nodeIndex=t?t.length:null}return Object.defineProperty(t.prototype,"view",{get:function(){return this.viewData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return null!==this.nodeIndex?new Xf(this.view[$p].data[this.nodeIndex],this.view):Ep.NULL},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(null===this.nodeIndex)return null;var t=this.view[$p].components;return t&&-1==t.indexOf(this.nodeIndex)?null:this.view[this.nodeIndex].data[ih]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=this.view[$p].data;if(null===this.nodeIndex||null==t)return[];var e=this.view[$p].data[this.nodeIndex],n=e>>15;return t.slice(n,n+(4095&e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){throw new Error("Not implemented yet in ivy")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return null===this.nodeIndex?null:this.view[this.nodeIndex].view[ih]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){throw new Error("Not implemented in ivy")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){throw new Error("Not implemented in ivy")},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,f(e))},t}(),dE=function(){function t(t,e){var n=this;this.host=t,this.getProgram=e,this.metadataCollector=new Gc({verboseInvalidExpression:!0}),t.directoryExists&&(this.directoryExists=function(t){return n.host.directoryExists(t)})}return t.prototype.fileExists=function(t){return!!this.host.getScriptSnapshot(t)},t.prototype.readFile=function(t){var e=this.host.getScriptSnapshot(t);if(e)return e.getText(0,e.getLength())},t.prototype.getSourceFileMetadata=function(t){var e=this.getProgram().getSourceFile(t);return e?this.metadataCollector.getMetadata(e):void 0},t.prototype.cacheMetadata=function(t){return t.endsWith(".d.ts")},t}(),vE=function(){function t(t,e,n){this.options=n,this.metadataReaderCache=function i(){return{data:new Map}}(),this.hostAdapter=new dE(e,t),this.moduleResolutionCache=r.createModuleResolutionCache(e.getCurrentDirectory(),function(t){return t})}return t.prototype.getMetadataFor=function(t){return function e(t,n,r){var i=r&&r.data.get(t);if(i)return i;if(n.fileExists(t))if(Yc.test(t))(i=function o(t,e){var n=e.replace(Yc,".metadata.json");if(t.fileExists(n))try{var r=JSON.parse(t.readFile(n)),i=r?Array.isArray(r)?r:[r]:[];if(i.length){var o=i.reduce(function(t,e){return t.version>e.version?t:e});o.version<Tc&&i.push(Zc(t,o,e))}return i}catch(t){throw console.error("Failed to read JSON file "+n),t}}(n,t))||(i=[Zc(n,{__symbolic:"module",version:1,metadata:{}},t)]);else{var s=n.getSourceFileMetadata(t);i=s?[s]:[]}return!r||n.cacheMetadata&&!n.cacheMetadata(t)||r.data.set(t,i),i}(t,this.hostAdapter,this.metadataReaderCache)},t.prototype.moduleNameToFileName=function(t,e){if(!e){if(0===t.indexOf("."))throw new Error("Resolution of relative paths requires a containing file.");e=n.join(this.options.basePath,"index.ts").replace(/\\/g,"/")}var i=r.resolveModuleName(t,e,this.options,this.hostAdapter).resolvedModule;return i?i.resolvedFileName:null},t.prototype.getOutputName=function(t){return t},t}(),yE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t,e,n,r){return void 0===n&&(n=!1),void 0===r&&(r=_e),new zr([],[])},e}(vo),mE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.get=function(t){return Promise.resolve("")},e}(zu),gE=function(){function t(t,e){this.host=t,this.tsService=e,this._staticSymbolCache=new qt,this._typeCache=[],this.modulesOutOfDate=!0,this.fileVersions=new Map}return t.prototype.setSite=function(t){this.service=t},Object.defineProperty(t.prototype,"resolver",{get:function(){var t=this;this.validate();var e=this._resolver;if(!e){var n=new Ks(this.reflector),r=new Be(this.reflector),i=new oa(this.reflector),o=new da,s=new mE,a=Lu(),u=new yE,c=new Bt({defaultEncapsulation:Up.Emulated,useJit:!1}),l=new Le(s,a,u,c);e=this._resolver=new Rs(c,u,n,r,i,new ju,o,l,new v_,this._staticSymbolCache,this.reflector,function(e,n){return t.collectError(e,n&&n.filePath)})}return e},enumerable:!0,configurable:!0}),t.prototype.getTemplateReferences=function(){return this.ensureTemplateMap(),this.templateReferences||[]},t.prototype.getTemplateAt=function(t,e){var n=this.getSourceFile(t);if(n){this.context=n.fileName;var r=this.findNode(n,e);if(r)return this.getSourceFromNode(t,this.host.getScriptVersion(n.fileName),r)}else{this.ensureTemplateMap();var i=this.fileToComponent.get(t);if(i)return this.getSourceFromType(t,this.host.getScriptVersion(t),i)}},t.prototype.getAnalyzedModules=function(){return this.updateAnalyzedModules(),this.ensureAnalyzedModules()},t.prototype.ensureAnalyzedModules=function(){var t=this.analyzedModules;return t||(t=0===this.host.getScriptFileNames().length?{files:[],ngModuleByPipeOrDirective:new Map,ngModules:[]}:function e(t,n,r,i){return function s(t){var e=[],n=new Map,r=new Set;t.forEach(function(t){t.ngModules.forEach(function(t){e.push(t),t.declaredDirectives.forEach(function(e){return n.set(e.reference,t)}),t.declaredPipes.forEach(function(e){return n.set(e.reference,t)})}),t.directives.forEach(function(t){return r.add(t)}),t.pipes.forEach(function(t){return r.add(t)})});var i=[];return r.forEach(function(t){n.has(t)||i.push(t)}),{ngModules:e,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:t}}(function o(t,e,n,r){var i=new Set,o=[],s=function(t){if(i.has(t)||!e.isSourceFile(t))return!1;i.add(t);var a=function u(t,e,n,r){var i=[],o=[],s=[],a=[],u=e.hasDecorators(r),c=!1;return r.endsWith(".d.ts")&&!u||e.getSymbolsOf(r).forEach(function(r){var u=e.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 p=n.getNgModuleMetadata(r,!1);p&&(l=!0,a.push(p))}else if(n.isInjectable(r)){l=!0;var h=n.getInjectableMetadata(r,null,!1);h&&s.push(h)}l||(c=c||function f(t,e){var n=!1;return ot(e,new(function(){function e(){}return e.prototype.visitArray=function(t,e){var n=this;t.forEach(function(t){return ot(t,n,e)})},e.prototype.visitStringMap=function(t,e){var n=this;Object.keys(t).forEach(function(r){return ot(t[r],n,e)})},e.prototype.visitPrimitive=function(t,e){},e.prototype.visitOther=function(e,r){e instanceof Ut&&!t.isSourceFile(e.filePath)&&(n=!0)},e}()),null),n}(t,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:c}}(e,n,r,t);o.push(a),a.ngModules.forEach(function(t){t.transitiveModule.modules.forEach(function(t){return s(t.reference.filePath)})})};return t.forEach(function(t){return s(t)}),o}(t,n,r,i))}(this.program.getSourceFiles().map(function(t){return t.fileName}),{isSourceFile:function(t){return!0}},this.staticSymbolResolver,this.resolver),this.analyzedModules=t),t},t.prototype.getTemplates=function(t){var e=this;if(this.ensureTemplateMap(),!this.fileToComponent.get(t)){var n=this.host.getScriptVersion(t),i=[],o=function(s){var a=e.getSourceFromNode(t,n,s);a?i.push(a):r.forEachChild(s,o)},s=this.getSourceFile(t);return s&&(this.context=s.path||s.fileName,r.forEachChild(s,o)),i.length?i:void 0}var a=this.getTemplateAt(t,0);if(a)return[a]},t.prototype.getDeclarations=function(t){var e=this,n=[],i=this.getSourceFile(t);if(i){var o=function(t){var s=e.getDeclarationFromNode(i,t);s?n.push(s):r.forEachChild(t,o)};r.forEachChild(i,o)}return n},t.prototype.getSourceFile=function(t){return this.tsService.getProgram().getSourceFile(t)},t.prototype.updateAnalyzedModules=function(){this.validate(),this.modulesOutOfDate&&(this.analyzedModules=null,this._reflector=null,this.templateReferences=null,this.fileToComponent=null,this.ensureAnalyzedModules(),this.modulesOutOfDate=!1)},Object.defineProperty(t.prototype,"program",{get:function(){return this.tsService.getProgram()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checker",{get:function(){var t=this._checker;return t||(t=this._checker=this.program.getTypeChecker()),t},enumerable:!0,configurable:!0}),t.prototype.validate=function(){var t,e,n=this,r=this.program;if(this.lastProgram!==r){var i=function(t){return n._staticSymbolResolver.invalidateFile(t)};this.clearCaches();var o=new Set;try{for(var s=p(this.program.getSourceFiles()),a=s.next();!a.done;a=s.next()){var u=a.value.fileName;o.add(u);var c=this.host.getScriptVersion(u);c!=this.fileVersions.get(u)&&(this.fileVersions.set(u,c),this._staticSymbolResolver&&i(u))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}var l=Array.from(this.fileVersions.keys()).filter(function(t){return!o.has(t)});l.forEach(function(t){return n.fileVersions.delete(t)}),this._staticSymbolResolver&&l.forEach(i),this.lastProgram=r}},t.prototype.clearCaches=function(){this._checker=null,this._typeCache=[],this._resolver=null,this.collectedErrors=null,this.modulesOutOfDate=!0},t.prototype.ensureTemplateMap=function(){var t,e,n,r;if(!this.fileToComponent||!this.templateReferences){var i=new Map,o=[],s=this.getAnalyzedModules(),a=Lu();try{for(var u=p(s.ngModules),c=u.next();!c.done;c=u.next()){var l=c.value;try{for(var h=p(l.declaredDirectives),f=h.next();!f.done;f=h.next()){var d=f.value,v=this.resolver.getNonNormalizedDirectiveMetadata(d.reference).metadata;if(v.isComponent&&v.template&&v.template.templateUrl){var y=a.resolve(this.reflector.componentModuleUrl(d.reference),v.template.templateUrl);i.set(y,d.reference),o.push(y)}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}this.fileToComponent=i,this.templateReferences=o}},t.prototype.getSourceFromDeclaration=function(t,e,n,r,i,o,s,a){var u=void 0,c=this;if(o)return{version:e,source:n,span:r,type:i,get members(){return function t(e,n,r,i){var o=n.getTypeAtLocation(i);return new ac(o,{node:r,program:e,checker:n}).members()}(c.program,c.checker,a,o)},get query(){if(!u){var e=c.service.getPipesAt(t,s.getStart());u=function n(t,e,r,i){return new rc(t,e,r,i)}(c.program,c.checker,a,function(){return function t(e,n,r,i){return new vc(i,{program:n,checker:r,node:e})}(a,c.program,c.checker,e)})}return u}}},t.prototype.getSourceFromNode=function(t,e,n){switch(n.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:var i=h(this.getTemplateClassDeclFromNode(n),2)[0];if(i&&i.name){var o=this.getSourceFile(t);if(o)return this.getSourceFromDeclaration(t,e,this.stringOf(n)||"",function s(t,e){return null==e&&(e=1),{start:t.start+e,end:t.end-e}}(_E(n)),this.reflector.getStaticSymbol(o.fileName,i.name.text),i,n,o)}}},t.prototype.getSourceFromType=function(t,e,n){var r=void 0,i=this.getTemplateClassFromStaticSymbol(n);if(i){var o=this.host.getScriptSnapshot(t);if(o){var s=o.getText(0,o.getLength());r=this.getSourceFromDeclaration(t,e,s,{start:0,end:s.length},n,i,i,i.getSourceFile())}}return r},Object.defineProperty(t.prototype,"reflectorHost",{get:function(){var t=this,r=this._reflectorHost;if(!r){if(!this.context){var i=this.host.getScriptFileNames();if(0===i.length)throw new Error("Internal error: no script file names found");this.context=i[0]}var o=this.tsService.getProgram().getSourceFile(this.context);if(!o)throw new Error("Internal error: no context could be determined");var s=function a(t){for(var r=n.dirname(t);e.existsSync(r);){var i=n.join(r,"tsconfig.json");if(e.existsSync(i))return i;var o=n.dirname(r);if(o===r)break;r=o}}(o.fileName),u=n.dirname(s||this.context),c={basePath:u,genDir:u},l=this.host.getCompilationSettings();l&&l.baseUrl&&(c.baseUrl=l.baseUrl),l&&l.paths&&(c.paths=l.paths),r=this._reflectorHost=new vE(function(){return t.tsService.getProgram()},this.host,c)}return r},enumerable:!0,configurable:!0}),t.prototype.collectError=function(t,e){if(e){var n=this.collectedErrors;n&&this.collectedErrors||(n=this.collectedErrors=new Map);var r=n.get(e);r||this.collectedErrors.set(e,r=[]),r.push(t)}},Object.defineProperty(t.prototype,"staticSymbolResolver",{get:function(){var t=this,e=this._staticSymbolResolver;return e||(this._summaryResolver=new Du({loadSummary:function(t){return null},isSourceFile:function(t){return!0},toSummaryFileName:function(t){return t},fromSummaryFileName:function(t){return t}},this._staticSymbolCache),e=this._staticSymbolResolver=new cu(this.reflectorHost,this._staticSymbolCache,this._summaryResolver,function(e,n){return t.collectError(e,n)})),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reflector",{get:function(){var t=this,e=this._reflector;return e||(e=this._reflector=new bu(this._summaryResolver,this.staticSymbolResolver,[],[],function(e,n){return t.collectError(e,n)})),e},enumerable:!0,configurable:!0}),t.prototype.getTemplateClassFromStaticSymbol=function(t){var e=this.getSourceFile(t.filePath);if(e)return r.forEachChild(e,function(e){if(e.kind===r.SyntaxKind.ClassDeclaration&&null!=e.name&&e.name.text===t.name)return e})},t.prototype.getTemplateClassDeclFromNode=function(e){var n=e.parent;if(!n)return t.missingTemplate;if(n.kind!==r.SyntaxKind.PropertyAssignment)return t.missingTemplate;if("template"!==n.name.text)return t.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.ObjectLiteralExpression)return t.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.CallExpression)return t.missingTemplate;var i=n.expression,o=n.parent;if(!o||o.kind!==r.SyntaxKind.Decorator)return t.missingTemplate;var s=o.parent;return s&&s.kind===r.SyntaxKind.ClassDeclaration?[s,i]:t.missingTemplate},t.prototype.getCollectedErrors=function(t,e){var n=this.collectedErrors&&this.collectedErrors.get(e.fileName);return n&&n.map(function(n){var i=function o(t,e,n){if(null!=e&&null!=n){var i=r.getPositionOfLineAndCharacter(t,e,n),o=r.forEachChild(t,function t(e){if(e.kind>r.SyntaxKind.LastToken&&e.pos<=i&&e.end>i)return r.forEachChild(e,t)||e});if(o)return{start:o.getStart(),end:o.getEnd()}}}(e,n.line||n.position&&n.position.line,n.column||n.position&&n.position.column)||t;return function s(t){return!!t[du]}
1333
+ function r(t){var e=Array.from(t.providers),n=Array.from(t.modules),r={};for(var i in t.providersByKey)r[i]=t.providersByKey[i];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:r}}(aw(this._ngModuleDefFactory));return Bb.createNgModuleRef(this.moduleType,t||Ep.NULL,this._bootstrapComponents,n)}}(sd),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}o(e,t),e.prototype.createRenderer=function(e,n){var r=t.prototype.createRenderer.call(this,e,n);return r.debugContextFactory=function(t){return new EE(t)},r}}(bE);
1320
1334
  /**
1321
1335
  * @license
1322
1336
  * Copyright Google Inc. All Rights Reserved.
1323
1337
  *
1324
1338
  * Use of this source code is governed by an MIT-style license that can be
1325
1339
  * found in the LICENSE file at https://angular.io/license
1326
- */(n)?function a(t,e){return{message:t.chain?function t(e){return{message:e.message,next:e.next?t(e.next):void 0}}(t.chain):t.message,span:e}}
1340
+ */
1341
+ var EE=function(){function t(t){this._nativeNode=t}return Object.defineProperty(t.prototype,"nodeIndex",{get:function(){return xE(this._nativeNode).nodeIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"view",{get:function(){return xE(this._nativeNode).lViewData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return function t(e){var n=xE(e);return new Jf(n.lViewData[Yp].data[n.nodeIndex],n.lViewData)}(this._nativeNode)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){
1327
1342
  /**
1328
1343
  * @license
1329
1344
  * Copyright Google Inc. All Rights Reserved.
1330
1345
  *
1331
1346
  * Use of this source code is governed by an MIT-style license that can be
1332
1347
  * found in the LICENSE file at https://angular.io/license
1333
- */(n,i):{message:n.message,span:i}})||[]},t.prototype.getDeclarationFromNode=function(t,e){var n,i;if(e.kind==r.SyntaxKind.ClassDeclaration&&e.decorators&&e.name)try{for(var o=p(e.decorators),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.expression&&a.expression.kind==r.SyntaxKind.CallExpression){var u=e;if(u.name){var c=a.expression.expression;if(this.checker.getTypeAtLocation(c)){var l=this.reflector.getStaticSymbol(t.fileName,u.name.text);try{if(this.resolver.isDirective(l)){var h=this.resolver.getNonNormalizedDirectiveMetadata(l).metadata;return{type:l,declarationSpan:f=_E(c),metadata:h,errors:this.getCollectedErrors(f,t)}}}catch(e){var f;if(e.message)return this.collectError(e,t.fileName),{type:l,declarationSpan:f=_E(c),errors:this.getCollectedErrors(f,t)}}}}}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.stringOf=function(t){switch(t.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:return t.text}},t.prototype.findNode=function(t,e){return function t(n){if(e>=n.getStart()&&e<n.getEnd())return r.forEachChild(n,t)||n}(t)},t.missingTemplate=[void 0,void 0],t}();
1348
+ */
1334
1349
  /**
1335
1350
  * @license
1336
1351
  * Copyright Google Inc. All Rights Reserved.
1337
1352
  *
1338
1353
  * Use of this source code is governed by an MIT-style license that can be
1339
1354
  * found in the LICENSE file at https://angular.io/license
1340
- */
1355
+ */return function t(e){var n=xE(e);return 4096&n.lViewData[Yp].data[n.nodeIndex].flags?wh(n.nodeIndex,n.lViewData)[sh]:null}(this._nativeNode)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=xE(this._nativeNode),e=t.lViewData[Yp].data[t.nodeIndex],n=4095&e.flags;if(n>0){var r=e.flags>>15;return this.view[Yp].data.slice(r,r+n).map(function(t){return t.type})}return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return function t(e){var n=xE(e);return void 0===n.localRefs&&(n.localRefs=function r(t,e){var n=t[Yp].data[e];if(n&&n.localNames){for(var r={},i=0;i<n.localNames.length;i+=2){var o=n.localNames[i+1];r[n.localNames[i]]=-1===o?bh(n,t):t[o]}return r}return null}(n.lViewData,n.nodeIndex)),n.localRefs||{}}(this._nativeNode)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){throw new Error("Not implemented in ivy")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){throw new Error("Not implemented in ivy")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){throw new Error("Not implemented in ivy")},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,f(e))},t}(),SE=function(){function t(t,e){var n=this;this.host=t,this.getProgram=e,this.metadataCollector=new Gc({verboseInvalidExpression:!0}),t.directoryExists&&(this.directoryExists=function(t){return n.host.directoryExists(t)})}return t.prototype.fileExists=function(t){return!!this.host.getScriptSnapshot(t)},t.prototype.readFile=function(t){var e=this.host.getScriptSnapshot(t);if(e)return e.getText(0,e.getLength())},t.prototype.getSourceFileMetadata=function(t){var e=this.getProgram().getSourceFile(t);return e?this.metadataCollector.getMetadata(e):void 0},t.prototype.cacheMetadata=function(t){return t.endsWith(".d.ts")},t}(),CE=function(){function t(t,e,n){this.options=n,this.metadataReaderCache=function i(){return{data:new Map}}(),this.hostAdapter=new SE(e,t),this.moduleResolutionCache=r.createModuleResolutionCache(e.getCurrentDirectory(),function(t){return t})}return t.prototype.getMetadataFor=function(t){return function e(t,n,r){var i=r&&r.data.get(t);if(i)return i;if(n.fileExists(t))if(Yc.test(t))(i=function o(t,e){var n=e.replace(Yc,".metadata.json");if(t.fileExists(n))try{var r=JSON.parse(t.readFile(n)),i=r?Array.isArray(r)?r:[r]:[];if(i.length){var o=i.reduce(function(t,e){return t.version>e.version?t:e});o.version<Tc&&i.push(Zc(t,o,e))}return i}catch(t){throw console.error("Failed to read JSON file "+n),t}}(n,t))||(i=[Zc(n,{__symbolic:"module",version:1,metadata:{}},t)]);else{var s=n.getSourceFileMetadata(t);i=s?[s]:[]}return!r||n.cacheMetadata&&!n.cacheMetadata(t)||r.data.set(t,i),i}(t,this.hostAdapter,this.metadataReaderCache)},t.prototype.moduleNameToFileName=function(t,e){if(!e){if(0===t.indexOf("."))throw new Error("Resolution of relative paths requires a containing file.");e=n.join(this.options.basePath,"index.ts").replace(/\\/g,"/")}var i=r.resolveModuleName(t,e,this.options,this.hostAdapter).resolvedModule;return i?i.resolvedFileName:null},t.prototype.getOutputName=function(t){return t},t}(),TE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t,e,n,r){return void 0===n&&(n=!1),void 0===r&&(r=_e),new zr([],[])},e}(vo),PE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.get=function(t){return Promise.resolve("")},e}(zu),AE=function(){function t(t,e){this.host=t,this.tsService=e,this._staticSymbolCache=new qt,this._typeCache=[],this.modulesOutOfDate=!0,this.fileVersions=new Map}return t.prototype.setSite=function(t){this.service=t},Object.defineProperty(t.prototype,"resolver",{get:function(){var t=this;this.validate();var e=this._resolver;if(!e){var n=new Ks(this.reflector),r=new Be(this.reflector),i=new oa(this.reflector),o=new da,s=new PE,a=Lu(),u=new TE,c=new Bt({defaultEncapsulation:Up.Emulated,useJit:!1}),l=new Le(s,a,u,c);e=this._resolver=new Ds(c,u,n,r,i,new ju,o,l,new S_,this._staticSymbolCache,this.reflector,function(e,n){return t.collectError(e,n&&n.filePath)})}return e},enumerable:!0,configurable:!0}),t.prototype.getTemplateReferences=function(){return this.ensureTemplateMap(),this.templateReferences||[]},t.prototype.getTemplateAt=function(t,e){var n=this.getSourceFile(t);if(n){this.context=n.fileName;var r=this.findNode(n,e);if(r)return this.getSourceFromNode(t,this.host.getScriptVersion(n.fileName),r)}else{this.ensureTemplateMap();var i=this.fileToComponent.get(t);if(i)return this.getSourceFromType(t,this.host.getScriptVersion(t),i)}},t.prototype.getAnalyzedModules=function(){return this.updateAnalyzedModules(),this.ensureAnalyzedModules()},t.prototype.ensureAnalyzedModules=function(){var t=this.analyzedModules;return t||(t=0===this.host.getScriptFileNames().length?{files:[],ngModuleByPipeOrDirective:new Map,ngModules:[]}:function e(t,n,r,i){return function s(t){var e=[],n=new Map,r=new Set;t.forEach(function(t){t.ngModules.forEach(function(t){e.push(t),t.declaredDirectives.forEach(function(e){return n.set(e.reference,t)}),t.declaredPipes.forEach(function(e){return n.set(e.reference,t)})}),t.directives.forEach(function(t){return r.add(t)}),t.pipes.forEach(function(t){return r.add(t)})});var i=[];return r.forEach(function(t){n.has(t)||i.push(t)}),{ngModules:e,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:t}}(function o(t,e,n,r){var i=new Set,o=[],s=function(t){if(i.has(t)||!e.isSourceFile(t))return!1;i.add(t);var a=function u(t,e,n,r){var i=[],o=[],s=[],a=[],u=e.hasDecorators(r),c=!1;return r.endsWith(".d.ts")&&!u||e.getSymbolsOf(r).forEach(function(r){var u=e.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 p=n.getNgModuleMetadata(r,!1);p&&(l=!0,a.push(p))}else if(n.isInjectable(r)){l=!0;var h=n.getInjectableMetadata(r,null,!1);h&&s.push(h)}l||(c=c||function f(t,e){var n=!1;return ot(e,new(function(){function e(){}return e.prototype.visitArray=function(t,e){var n=this;t.forEach(function(t){return ot(t,n,e)})},e.prototype.visitStringMap=function(t,e){var n=this;Object.keys(t).forEach(function(r){return ot(t[r],n,e)})},e.prototype.visitPrimitive=function(t,e){},e.prototype.visitOther=function(e,r){e instanceof Ut&&!t.isSourceFile(e.filePath)&&(n=!0)},e}()),null),n}(t,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:c}}(e,n,r,t);o.push(a),a.ngModules.forEach(function(t){t.transitiveModule.modules.forEach(function(t){return s(t.reference.filePath)})})};return t.forEach(function(t){return s(t)}),o}(t,n,r,i))}(this.program.getSourceFiles().map(function(t){return t.fileName}),{isSourceFile:function(t){return!0}},this.staticSymbolResolver,this.resolver),this.analyzedModules=t),t},t.prototype.getTemplates=function(t){var e=this;if(this.ensureTemplateMap(),!this.fileToComponent.get(t)){var n=this.host.getScriptVersion(t),i=[],o=function(s){var a=e.getSourceFromNode(t,n,s);a?i.push(a):r.forEachChild(s,o)},s=this.getSourceFile(t);return s&&(this.context=s.path||s.fileName,r.forEachChild(s,o)),i.length?i:void 0}var a=this.getTemplateAt(t,0);if(a)return[a]},t.prototype.getDeclarations=function(t){var e=this,n=[],i=this.getSourceFile(t);if(i){var o=function(t){var s=e.getDeclarationFromNode(i,t);s?n.push(s):r.forEachChild(t,o)};r.forEachChild(i,o)}return n},t.prototype.getSourceFile=function(t){return this.tsService.getProgram().getSourceFile(t)},t.prototype.updateAnalyzedModules=function(){this.validate(),this.modulesOutOfDate&&(this.analyzedModules=null,this._reflector=null,this.templateReferences=null,this.fileToComponent=null,this.ensureAnalyzedModules(),this.modulesOutOfDate=!1)},Object.defineProperty(t.prototype,"program",{get:function(){return this.tsService.getProgram()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checker",{get:function(){var t=this._checker;return t||(t=this._checker=this.program.getTypeChecker()),t},enumerable:!0,configurable:!0}),t.prototype.validate=function(){var t,e,n=this,r=this.program;if(this.lastProgram!==r){var i=function(t){return n._staticSymbolResolver.invalidateFile(t)};this.clearCaches();var o=new Set;try{for(var s=p(this.program.getSourceFiles()),a=s.next();!a.done;a=s.next()){var u=a.value.fileName;o.add(u);var c=this.host.getScriptVersion(u);c!=this.fileVersions.get(u)&&(this.fileVersions.set(u,c),this._staticSymbolResolver&&i(u))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}var l=Array.from(this.fileVersions.keys()).filter(function(t){return!o.has(t)});l.forEach(function(t){return n.fileVersions.delete(t)}),this._staticSymbolResolver&&l.forEach(i),this.lastProgram=r}},t.prototype.clearCaches=function(){this._checker=null,this._typeCache=[],this._resolver=null,this.collectedErrors=null,this.modulesOutOfDate=!0},t.prototype.ensureTemplateMap=function(){var t,e,n,r;if(!this.fileToComponent||!this.templateReferences){var i=new Map,o=[],s=this.getAnalyzedModules(),a=Lu();try{for(var u=p(s.ngModules),c=u.next();!c.done;c=u.next()){var l=c.value;try{for(var h=p(l.declaredDirectives),f=h.next();!f.done;f=h.next()){var d=f.value,v=this.resolver.getNonNormalizedDirectiveMetadata(d.reference).metadata;if(v.isComponent&&v.template&&v.template.templateUrl){var y=a.resolve(this.reflector.componentModuleUrl(d.reference),v.template.templateUrl);i.set(y,d.reference),o.push(y)}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}this.fileToComponent=i,this.templateReferences=o}},t.prototype.getSourceFromDeclaration=function(t,e,n,r,i,o,s,a){var u=void 0,c=this;if(o)return{version:e,source:n,span:r,type:i,get members(){return function t(e,n,r,i){var o=n.getTypeAtLocation(i);return new ac(o,{node:r,program:e,checker:n}).members()}(c.program,c.checker,a,o)},get query(){if(!u){var e=c.service.getPipesAt(t,s.getStart());u=function n(t,e,r,i){return new rc(t,e,r,i)}(c.program,c.checker,a,function(){return function t(e,n,r,i){return new vc(i,{program:n,checker:r,node:e})}(a,c.program,c.checker,e)})}return u}}},t.prototype.getSourceFromNode=function(t,e,n){switch(n.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:var i=h(this.getTemplateClassDeclFromNode(n),2)[0];if(i&&i.name){var o=this.getSourceFile(t);if(o)return this.getSourceFromDeclaration(t,e,this.stringOf(n)||"",function s(t,e){return null==e&&(e=1),{start:t.start+e,end:t.end-e}}(NE(n)),this.reflector.getStaticSymbol(o.fileName,i.name.text),i,n,o)}}},t.prototype.getSourceFromType=function(t,e,n){var r=void 0,i=this.getTemplateClassFromStaticSymbol(n);if(i){var o=this.host.getScriptSnapshot(t);if(o){var s=o.getText(0,o.getLength());r=this.getSourceFromDeclaration(t,e,s,{start:0,end:s.length},n,i,i,i.getSourceFile())}}return r},Object.defineProperty(t.prototype,"reflectorHost",{get:function(){var t=this,r=this._reflectorHost;if(!r){if(!this.context){var i=this.host.getScriptFileNames();if(0===i.length)throw new Error("Internal error: no script file names found");this.context=i[0]}var o=this.tsService.getProgram().getSourceFile(this.context);if(!o)throw new Error("Internal error: no context could be determined");var s=function a(t){for(var r=n.dirname(t);e.existsSync(r);){var i=n.join(r,"tsconfig.json");if(e.existsSync(i))return i;var o=n.dirname(r);if(o===r)break;r=o}}(o.fileName),u=n.dirname(s||this.context),c={basePath:u,genDir:u},l=this.host.getCompilationSettings();l&&l.baseUrl&&(c.baseUrl=l.baseUrl),l&&l.paths&&(c.paths=l.paths),r=this._reflectorHost=new CE(function(){return t.tsService.getProgram()},this.host,c)}return r},enumerable:!0,configurable:!0}),t.prototype.collectError=function(t,e){if(e){var n=this.collectedErrors;n&&this.collectedErrors||(n=this.collectedErrors=new Map);var r=n.get(e);r||this.collectedErrors.set(e,r=[]),r.push(t)}},Object.defineProperty(t.prototype,"staticSymbolResolver",{get:function(){var t=this,e=this._staticSymbolResolver;return e||(this._summaryResolver=new Ru({loadSummary:function(t){return null},isSourceFile:function(t){return!0},toSummaryFileName:function(t){return t},fromSummaryFileName:function(t){return t}},this._staticSymbolCache),e=this._staticSymbolResolver=new cu(this.reflectorHost,this._staticSymbolCache,this._summaryResolver,function(e,n){return t.collectError(e,n)})),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reflector",{get:function(){var t=this,e=this._reflector;return e||(e=this._reflector=new bu(this._summaryResolver,this.staticSymbolResolver,[],[],function(e,n){return t.collectError(e,n)})),e},enumerable:!0,configurable:!0}),t.prototype.getTemplateClassFromStaticSymbol=function(t){var e=this.getSourceFile(t.filePath);if(e)return r.forEachChild(e,function(e){if(e.kind===r.SyntaxKind.ClassDeclaration&&null!=e.name&&e.name.text===t.name)return e})},t.prototype.getTemplateClassDeclFromNode=function(e){var n=e.parent;if(!n)return t.missingTemplate;if(n.kind!==r.SyntaxKind.PropertyAssignment)return t.missingTemplate;if("template"!==n.name.text)return t.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.ObjectLiteralExpression)return t.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.CallExpression)return t.missingTemplate;var i=n.expression,o=n.parent;if(!o||o.kind!==r.SyntaxKind.Decorator)return t.missingTemplate;var s=o.parent;return s&&s.kind===r.SyntaxKind.ClassDeclaration?[s,i]:t.missingTemplate},t.prototype.getCollectedErrors=function(t,e){var n=this.collectedErrors&&this.collectedErrors.get(e.fileName);return n&&n.map(function(n){var i=function o(t,e,n){if(null!=e&&null!=n){var i=r.getPositionOfLineAndCharacter(t,e,n),o=r.forEachChild(t,function t(e){if(e.kind>r.SyntaxKind.LastToken&&e.pos<=i&&e.end>i)return r.forEachChild(e,t)||e});if(o)return{start:o.getStart(),end:o.getEnd()}}}(e,n.line||n.position&&n.position.line,n.column||n.position&&n.position.column)||t;return function s(t){return!!t[du]}
1341
1356
  /**
1342
1357
  * @license
1343
1358
  * Copyright Google Inc. All Rights Reserved.
1344
1359
  *
1345
1360
  * Use of this source code is governed by an MIT-style license that can be
1346
1361
  * found in the LICENSE file at https://angular.io/license
1347
- */
1362
+ */(n)?function a(t,e){return{message:t.chain?function t(e){return{message:e.message,next:e.next?t(e.next):void 0}}(t.chain):t.message,span:e}}
1348
1363
  /**
1349
1364
  * @license
1350
1365
  * Copyright Google Inc. All Rights Reserved.
1351
1366
  *
1352
1367
  * Use of this source code is governed by an MIT-style license that can be
1353
1368
  * found in the LICENSE file at https://angular.io/license
1354
- */function _E(t){return{start:t.getStart(),end:t.getEnd()}}var bE=new WeakMap,wE=new lm("7.0.0-rc.1");
1369
+ */(n,i):{message:n.message,span:i}})||[]},t.prototype.getDeclarationFromNode=function(t,e){var n,i;if(e.kind==r.SyntaxKind.ClassDeclaration&&e.decorators&&e.name)try{for(var o=p(e.decorators),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.expression&&a.expression.kind==r.SyntaxKind.CallExpression){var u=e;if(u.name){var c=a.expression.expression;if(this.checker.getTypeAtLocation(c)){var l=this.reflector.getStaticSymbol(t.fileName,u.name.text);try{if(this.resolver.isDirective(l)){var h=this.resolver.getNonNormalizedDirectiveMetadata(l).metadata;return{type:l,declarationSpan:f=NE(c),metadata:h,errors:this.getCollectedErrors(f,t)}}}catch(e){var f;if(e.message)return this.collectError(e,t.fileName),{type:l,declarationSpan:f=NE(c),errors:this.getCollectedErrors(f,t)}}}}}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.stringOf=function(t){switch(t.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:return t.text}},t.prototype.findNode=function(t,e){return function t(n){if(e>=n.getStart()&&e<n.getEnd())return r.forEachChild(n,t)||n}(t)},t.missingTemplate=[void 0,void 0],t}();function NE(t){return{start:t.getStart(),end:t.getEnd()}}var kE=new WeakMap,OE=new _m("7.0.0");
1355
1370
  /**
1356
1371
  * @license
1357
1372
  * Copyright Google Inc. All Rights Reserved.
@@ -1366,7 +1381,7 @@ function r(t){var e=Array.from(t.providers),n=Array.from(t.modules),r={};for(var
1366
1381
  * Use of this source code is governed by an MIT-style license that can be
1367
1382
  * found in the LICENSE file at https://angular.io/license
1368
1383
  */
1369
- t.createLanguageService=Il,t.TypeScriptServiceHost=gE,t.createLanguageServiceFromTypescript=
1384
+ t.createLanguageService=Il,t.TypeScriptServiceHost=AE,t.createLanguageServiceFromTypescript=
1370
1385
  /**
1371
1386
  * @license
1372
1387
  * Copyright Google Inc. All Rights Reserved.
@@ -1374,7 +1389,7 @@ t.createLanguageService=Il,t.TypeScriptServiceHost=gE,t.createLanguageServiceFro
1374
1389
  * Use of this source code is governed by an MIT-style license that can be
1375
1390
  * found in the LICENSE file at https://angular.io/license
1376
1391
  */
1377
- function xE(t,e){var n=new gE(t,e),r=Il(n);return n.setSite(r),r},t.VERSION=wE,t.getExternalFiles=function EE(t){var e=bE.get(t);if(e)return e.getTemplateReferences()},t.create=function SE(t){var e=Object.create(null),n=t.languageService;function i(t,e){if(!t||n.getProgram().getSourceFile(t))try{return e()}catch(t){return}}function o(t){return function(e){return i(e,function(){return t.call(y,e)})}}function s(t){return function(e,n){return i(e,function(){return t.call(y,e,n)})}}function a(t){return function(e,n,r){return i(e,function(){return t.call(y,e,n,r)})}}function u(t){return function(e,n,r,o){return i(e,function(){return t.call(y,e,n,r,o)})}}function c(t){return function(e,n,r,o,s,a){return i(e,function(){return t.call(y,e,n,r,o,s,a)})}}n=function l(t){return{cleanupSemanticCache:function(){return t.cleanupSemanticCache()},getSyntacticDiagnostics:o(t.getSyntacticDiagnostics),getSemanticDiagnostics:o(t.getSemanticDiagnostics),getCompilerOptionsDiagnostics:function(){return t.getCompilerOptionsDiagnostics()},getSyntacticClassifications:s(t.getSemanticClassifications),getSemanticClassifications:s(t.getSemanticClassifications),getEncodedSyntacticClassifications:s(t.getEncodedSyntacticClassifications),getEncodedSemanticClassifications:s(t.getEncodedSemanticClassifications),getCompletionsAtPosition:a(t.getCompletionsAtPosition),getCompletionEntryDetails:c(t.getCompletionEntryDetails),getCompletionEntrySymbol:u(t.getCompletionEntrySymbol),getJsxClosingTagAtPosition:s(t.getJsxClosingTagAtPosition),getQuickInfoAtPosition:s(t.getQuickInfoAtPosition),getNameOrDottedNameSpan:a(t.getNameOrDottedNameSpan),getBreakpointStatementAtPosition:s(t.getBreakpointStatementAtPosition),getSignatureHelpItems:a(t.getSignatureHelpItems),getRenameInfo:s(t.getRenameInfo),findRenameLocations:u(t.findRenameLocations),getDefinitionAtPosition:s(t.getDefinitionAtPosition),getTypeDefinitionAtPosition:s(t.getTypeDefinitionAtPosition),getImplementationAtPosition:s(t.getImplementationAtPosition),getReferencesAtPosition:s(t.getReferencesAtPosition),findReferences:s(t.findReferences),getDocumentHighlights:a(t.getDocumentHighlights),getOccurrencesAtPosition:s(t.getOccurrencesAtPosition),getNavigateToItems:function(e,n,r,o){return i(r,function(){return t.getNavigateToItems(e,n,r,o)})},getNavigationBarItems:o(t.getNavigationBarItems),getNavigationTree:o(t.getNavigationTree),getOutliningSpans:o(t.getOutliningSpans),getTodoComments:s(t.getTodoComments),getBraceMatchingAtPosition:s(t.getBraceMatchingAtPosition),getIndentationAtPosition:a(t.getIndentationAtPosition),getFormattingEditsForRange:u(t.getFormattingEditsForRange),getFormattingEditsForDocument:s(t.getFormattingEditsForDocument),getFormattingEditsAfterKeystroke:u(t.getFormattingEditsAfterKeystroke),getDocCommentTemplateAtPosition:s(t.getDocCommentTemplateAtPosition),isValidBraceCompletionAtPosition:a(t.isValidBraceCompletionAtPosition),getSpanOfEnclosingComment:a(t.getSpanOfEnclosingComment),getCodeFixesAtPosition:c(t.getCodeFixesAtPosition),applyCodeActionCommand:function(e){return i(void 0,function(){return t.applyCodeActionCommand(e)})},getEmitOutput:o(t.getEmitOutput),getProgram:function(){return t.getProgram()},dispose:function(){return t.dispose()},getApplicableRefactors:a(t.getApplicableRefactors),getEditsForRefactor:c(t.getEditsForRefactor),getDefinitionAndBoundSpan:s(t.getDefinitionAndBoundSpan),getCombinedCodeFix:function(e,n,r,o){return i(void 0,function(){return t.getCombinedCodeFix(e,n,r,o)})},getSuggestionDiagnostics:function(t){return[]},organizeImports:function(t,e){return[]},getEditsForFileRename:function(t,e,n,r){return[]}}}(n);var h=function(t){e[t]=function(){return n[t].apply(n,arguments)}};for(var f in n)h(f);function d(e,n){try{return n()}catch(n){return t.project.projectService.logger.info("Failed to "+e+": "+n.toString()),t.project.projectService.logger.info("Stack trace: "+n.stack),null}}var v=new gE(t.languageServiceHost,t.languageService),y=Il(v);return v.setSite(y),bE.set(t.project,v),e.getCompletionsAtPosition=function(t,e,r){var i=n.getCompletionsAtPosition(t,e,r)||{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:[]};return d("get completions",function(){var n,r,o,s=y.getCompletionsAt(t,e);if(s&&s.length){void 0===i&&(i={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:[]});try{for(var a=p(s),u=a.next();!u.done;u=a.next())i.entries.push({kind:(o=u.value).kind,name:o.name,sortText:o.sort,kindModifiers:""})}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}}),i},e.getQuickInfoAtPosition=function(t,e){var r=n.getQuickInfoAtPosition(t,e);return d("get quick info",function(){var n,i,o=y.getHoverAt(t,e);if(o){var s=[];try{for(var a=p(o.text),u=a.next();!u.done;u=a.next()){var c=u.value;s.push({kind:c.language||"angular",text:c.text})}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}var l=r&&r.tags;r={displayParts:s,documentation:[],kind:"angular",kindModifiers:"what does this do?",textSpan:{start:o.span.start,length:o.span.end-o.span.start}},l&&(r.tags=l)}}),r},e.getSemanticDiagnostics=function(e){var i=n.getSemanticDiagnostics(e)||[];return d("get diagnostics",function(){t.project.projectService.logger.info("Computing Angular semantic diagnostics...");var o=y.getDiagnostics(e);if(o&&o.length){var s=n.getProgram().getSourceFile(e);s&&i.push.apply(i,o.map(function(t){return function e(t,n){return{file:n,start:t.span.start,length:t.span.end-t.span.start,messageText:function i(t){return"string"==typeof t?t:function t(e){return{messageText:e.message,category:r.DiagnosticCategory.Error,code:0,next:e.next?t(e.next):void 0}}(t)}(t.message),category:r.DiagnosticCategory.Error,code:0,source:"ng"}}(t,s)}))}}),i},e.getDefinitionAtPosition=function(t,e){var r=n.getDefinitionAtPosition(t,e);return r&&r.length?r:d("get definition",function(){var n,i,o=y.getDefinitionAt(t,e);if(o&&o.length){r=r||[];try{for(var s=p(o),a=s.next();!a.done;a=s.next()){var u=a.value;r.push({fileName:u.fileName,textSpan:{start:u.span.start,length:u.span.end-u.span.start},name:"",kind:"definition",containerName:u.fileName,containerKind:"file"})}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}return r})||[]},e}
1392
+ function ME(t,e){var n=new AE(t,e),r=Il(n);return n.setSite(r),r},t.VERSION=OE,t.getExternalFiles=function IE(t){var e=kE.get(t);if(e)return e.getTemplateReferences()},t.create=function DE(t){var e=Object.create(null),n=t.languageService;function i(t,e){if(!t||n.getProgram().getSourceFile(t))try{return e()}catch(t){return}}function o(t){return function(e){return i(e,function(){return t.call(y,e)})}}function s(t){return function(e,n){return i(e,function(){return t.call(y,e,n)})}}function a(t){return function(e,n,r){return i(e,function(){return t.call(y,e,n,r)})}}function u(t){return function(e,n,r,o){return i(e,function(){return t.call(y,e,n,r,o)})}}function c(t){return function(e,n,r,o,s,a){return i(e,function(){return t.call(y,e,n,r,o,s,a)})}}n=function l(t){return{cleanupSemanticCache:function(){return t.cleanupSemanticCache()},getSyntacticDiagnostics:o(t.getSyntacticDiagnostics),getSemanticDiagnostics:o(t.getSemanticDiagnostics),getCompilerOptionsDiagnostics:function(){return t.getCompilerOptionsDiagnostics()},getSyntacticClassifications:s(t.getSemanticClassifications),getSemanticClassifications:s(t.getSemanticClassifications),getEncodedSyntacticClassifications:s(t.getEncodedSyntacticClassifications),getEncodedSemanticClassifications:s(t.getEncodedSemanticClassifications),getCompletionsAtPosition:a(t.getCompletionsAtPosition),getCompletionEntryDetails:c(t.getCompletionEntryDetails),getCompletionEntrySymbol:u(t.getCompletionEntrySymbol),getJsxClosingTagAtPosition:s(t.getJsxClosingTagAtPosition),getQuickInfoAtPosition:s(t.getQuickInfoAtPosition),getNameOrDottedNameSpan:a(t.getNameOrDottedNameSpan),getBreakpointStatementAtPosition:s(t.getBreakpointStatementAtPosition),getSignatureHelpItems:a(t.getSignatureHelpItems),getRenameInfo:s(t.getRenameInfo),findRenameLocations:u(t.findRenameLocations),getDefinitionAtPosition:s(t.getDefinitionAtPosition),getTypeDefinitionAtPosition:s(t.getTypeDefinitionAtPosition),getImplementationAtPosition:s(t.getImplementationAtPosition),getReferencesAtPosition:s(t.getReferencesAtPosition),findReferences:s(t.findReferences),getDocumentHighlights:a(t.getDocumentHighlights),getOccurrencesAtPosition:s(t.getOccurrencesAtPosition),getNavigateToItems:function(e,n,r,o){return i(r,function(){return t.getNavigateToItems(e,n,r,o)})},getNavigationBarItems:o(t.getNavigationBarItems),getNavigationTree:o(t.getNavigationTree),getOutliningSpans:o(t.getOutliningSpans),getTodoComments:s(t.getTodoComments),getBraceMatchingAtPosition:s(t.getBraceMatchingAtPosition),getIndentationAtPosition:a(t.getIndentationAtPosition),getFormattingEditsForRange:u(t.getFormattingEditsForRange),getFormattingEditsForDocument:s(t.getFormattingEditsForDocument),getFormattingEditsAfterKeystroke:u(t.getFormattingEditsAfterKeystroke),getDocCommentTemplateAtPosition:s(t.getDocCommentTemplateAtPosition),isValidBraceCompletionAtPosition:a(t.isValidBraceCompletionAtPosition),getSpanOfEnclosingComment:a(t.getSpanOfEnclosingComment),getCodeFixesAtPosition:c(t.getCodeFixesAtPosition),applyCodeActionCommand:function(e){return i(void 0,function(){return t.applyCodeActionCommand(e)})},getEmitOutput:o(t.getEmitOutput),getProgram:function(){return t.getProgram()},dispose:function(){return t.dispose()},getApplicableRefactors:a(t.getApplicableRefactors),getEditsForRefactor:c(t.getEditsForRefactor),getDefinitionAndBoundSpan:s(t.getDefinitionAndBoundSpan),getCombinedCodeFix:function(e,n,r,o){return i(void 0,function(){return t.getCombinedCodeFix(e,n,r,o)})},getSuggestionDiagnostics:function(t){return[]},organizeImports:function(t,e){return[]},getEditsForFileRename:function(t,e,n,r){return[]}}}(n);var h=function(t){e[t]=function(){return n[t].apply(n,arguments)}};for(var f in n)h(f);function d(e,n){try{return n()}catch(n){return t.project.projectService.logger.info("Failed to "+e+": "+n.toString()),t.project.projectService.logger.info("Stack trace: "+n.stack),null}}var v=new AE(t.languageServiceHost,t.languageService),y=Il(v);return v.setSite(y),kE.set(t.project,v),e.getCompletionsAtPosition=function(t,e,r){var i=n.getCompletionsAtPosition(t,e,r)||{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:[]};return d("get completions",function(){var n,r,o,s=y.getCompletionsAt(t,e);if(s&&s.length){void 0===i&&(i={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:[]});try{for(var a=p(s),u=a.next();!u.done;u=a.next())i.entries.push({kind:(o=u.value).kind,name:o.name,sortText:o.sort,kindModifiers:""})}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}}),i},e.getQuickInfoAtPosition=function(t,e){var r=n.getQuickInfoAtPosition(t,e);return d("get quick info",function(){var n,i,o=y.getHoverAt(t,e);if(o){var s=[];try{for(var a=p(o.text),u=a.next();!u.done;u=a.next()){var c=u.value;s.push({kind:c.language||"angular",text:c.text})}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}var l=r&&r.tags;r={displayParts:s,documentation:[],kind:"angular",kindModifiers:"what does this do?",textSpan:{start:o.span.start,length:o.span.end-o.span.start}},l&&(r.tags=l)}}),r},e.getSemanticDiagnostics=function(e){var i=n.getSemanticDiagnostics(e)||[];return d("get diagnostics",function(){t.project.projectService.logger.info("Computing Angular semantic diagnostics...");var o=y.getDiagnostics(e);if(o&&o.length){var s=n.getProgram().getSourceFile(e);s&&i.push.apply(i,o.map(function(t){return function e(t,n){return{file:n,start:t.span.start,length:t.span.end-t.span.start,messageText:function i(t){return"string"==typeof t?t:function t(e){return{messageText:e.message,category:r.DiagnosticCategory.Error,code:0,next:e.next?t(e.next):void 0}}(t)}(t.message),category:r.DiagnosticCategory.Error,code:0,source:"ng"}}(t,s)}))}}),i},e.getDefinitionAtPosition=function(t,e){var r=n.getDefinitionAtPosition(t,e);return r&&r.length?r:d("get definition",function(){var n,i,o=y.getDefinitionAt(t,e);if(o&&o.length){r=r||[];try{for(var s=p(o),a=s.next();!a.done;a=s.next()){var u=a.value;r.push({fileName:u.fileName,textSpan:{start:u.span.start,length:u.span.end-u.span.start},name:"",kind:"definition",containerName:u.fileName,containerKind:"file"})}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}return r})||[]},e}
1378
1393
  /**
1379
1394
  * @license
1380
1395
  * Copyright Google Inc. All Rights Reserved.