From e4904959fae03ac9eb30f5f090f8903aff87f27f Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Sat, 10 Jun 2017 16:28:49 +0300 Subject: [PATCH] Add example of finished app --- example/README.md | 1 + example/app.js | 767 +++++++++++++++++++++++++++++++++++++++++++ example/app/app.html | 19 ++ example/index.html | 18 + example/polyfills.js | 71 ++++ 5 files changed, 876 insertions(+) create mode 100644 example/README.md create mode 100644 example/app.js create mode 100644 example/app/app.html create mode 100644 example/index.html create mode 100644 example/polyfills.js diff --git a/example/README.md b/example/README.md new file mode 100644 index 0000000..a823f4e --- /dev/null +++ b/example/README.md @@ -0,0 +1 @@ +# minified exam example of finished product diff --git a/example/app.js b/example/app.js new file mode 100644 index 0000000..2e4a4b0 --- /dev/null +++ b/example/app.js @@ -0,0 +1,767 @@ +!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/build/",e(e.s=140)}({119:function(t,e,n){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},120:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(9),i=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(o.Observable);e.EmptyObservable=i},121:function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var o=n(37);e.getSymbolObservable=r,e.observable=r(o.root),e.$$observable=e.observable},122:function(t,e,n){"use strict";e.errorObject={e:{}}},123:function(t,e,n){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},124:function(t,e,n){"use strict";function r(t){return"function"==typeof t}e.isFunction=r},125:function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}e.isObject=r},126:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}e.isScheduler=r},127:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(135),o=n(20),i=n(86),s=n(49);n.d(e,"RESOURCE_CACHE_PROVIDER",function(){return h}),n.d(e,"platformBrowserDynamic",function(){return f}),n.d(e,"VERSION",function(){return p}),n.d(e,"ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS",function(){return c}),n.d(e,"ɵResourceLoaderImpl",function(){return u});var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){var r=o.response||o.responseText,i=1223===o.status?204:o.status;0===i&&(i=r?200:0),200<=i&&i<=300?e(r):n("Failed to load "+t)},o.onerror=function(){n("Failed to load "+t)},o.send(),r},e}(r.a);u.decorators=[{type:o.Injectable}],u.ctorParameters=function(){return[]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var c=[s["ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS"],{provide:o.COMPILER_OPTIONS,useValue:{providers:[{provide:r.a,useClass:u}]},multi:!0},{provide:o.PLATFORM_ID,useValue:i.b}],l=function(t){function e(){var e=t.call(this)||this;if(e._cache=o["ɵglobal"].$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return a(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(r.a),p=new o.Version("4.1.1"),h=[{provide:r.a,useClass:l}],f=n.i(o.createPlatformFactory)(r.b,"browserDynamic",c)},128:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0});var o=n(20),i=n(49),s=n(88),a=n(136),u=n(137),c=n(139),l=n(138),p=function(){function t(){}return t}();p=r([o.NgModule({imports:[i.BrowserModule,s.HttpModule,a.FormsModule],declarations:[u.AppComponent],providers:[c.ContactService,l.MemContactService],bootstrap:[u.AppComponent]})],p),e.AppModule=p},131:function(t,e,n){"use strict";var r=n(9),o=n(304);r.Observable.throw=o._throw},132:function(t,e,n){"use strict";var r=n(9),o=n(305);r.Observable.prototype.catch=o._catch,r.Observable.prototype._catch=o._catch},133:function(t,e,n){"use strict";var r=n(9),o=n(311);r.Observable.prototype.toPromise=o.toPromise},135:function(t,e,n){"use strict";function r(t,e,n){void 0===n&&(n=null);var r=[],o=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=o(t);e&&r.push(e)}),r}function o(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function i(t){return"ng-container"===o(t)[1]}function s(t){return"ng-content"===o(t)[1]}function a(t){return"ng-template"===o(t)[1]}function u(t){return null===t?null:o(t)[0]}function c(t,e){return t?":"+t+":"+e:e}function l(t){return vo[t.toLowerCase()]||mo}function p(t){return t.replace(So,function(){for(var t=[],e=0;e=55296&&r<=56319&&t.length>n+1){var o=t.charCodeAt(n+1);o>=56320&&o<=57343&&(n++,r=(r-55296<<10)+o-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 E(t){return t.replace(/\W/g,"_")}function C(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof lo)return e.name;if(e.__anonymousType)return e.__anonymousType;var r=n.i(Kr["ɵstringify"])(e);return r.indexOf("(")>=0?(r="anonymous_"+No++,e.__anonymousType=r):r=E(r),r}function S(t){var e=t.reference;return e instanceof lo?e.filePath:Kr["ɵreflector"].importUri(e)}function x(t,e){return"View_"+C({reference:t})+"_"+e}function T(t){return"RenderType_"+C({reference:t})}function P(t){return"HostView_"+C({reference:t})}function A(t){return C({reference:t})+"NgFactory"}function O(t){return null!=t.value?E(t.value):C(t.identifier)}function M(t){return null!=t.identifier?t.identifier.reference:t.value}function k(t,e,n){var r=_o.parse(e.selector)[0].getMatchingElementTemplate();return Vo.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Do({encapsulation:Kr.ViewEncapsulation.None,template:r,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:Kr.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:n,rendererType:{id:"__Host__",encapsulation:Kr.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function N(t){return t||[]}function I(t){return t.reduce(function(t,e){var n=Array.isArray(e)?I(e):e;return t.concat(n)},[])}function R(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function D(t,e,n){var r;return r=n.isInline?e.type.reference instanceof lo?e.type.reference.filePath+"."+e.type.reference.name+".html":C(t)+"/"+C(e.type)+".html":n.templateUrl,R(r)}function V(t,e){var n=t.moduleUrl.split(/\/\\/g);return R("css/"+e+n[n.length-1]+".ngstyle.js")}function L(t){return R(C(t.type)+"/module.ngfactory.js")}function F(t,e){return R(C(t)+"/"+C(e.type)+".ngfactory.js")}function j(t){return t>=vi&&t<=wi||t==Ki}function H(t){return ki<=t&&t<=Ni}function U(t){return t>=Fi&&t<=zi||t>=Ii&&t<=Vi}function B(t){return t>=Fi&&t<=Hi||t>=Ii&&t<=Di||H(t)}function q(){return function(t){return t}}/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +function G(t,e){if(n.i(Kr.isDevMode)()&&null!=e){if(!Array.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r;" or "&#x;" syntax'}function ft(t){return!j(t)||t===yi}function dt(t){return j(t)||t===Mi||t===Pi||t===Si||t===Ei||t===Oi}function yt(t){return(tNi)}function vt(t){return t==Ai||t==yi||!B(t)}function mt(t){return t==Ai||t==yi||!U(t)}function gt(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==Wi&&!r}function _t(t){return t===Oi||U(t)}function bt(t,e){return wt(t)==wt(e)}function wt(t){return t>=Fi&&t<=zi?t-Fi+Ii:t}function Et(t){for(var e=[],n=void 0,r=0;r0&&t[t.length-1]===e}function St(t){var e=new Bs(Us,t);return function(t,n,r,o){return e.toI18nMessage(t,n,r,o)}}function xt(t){return t.split(qs)[2]}function Tt(t,e,n,r){return new Zs(n,r).extract(t,e)}function Pt(t,e,n,r,o){return new Zs(r,o).merge(t,e,n)}function At(t){return!!(t instanceof _s&&t.value&&t.value.startsWith("i18n"))}function Ot(t){return!!(t instanceof _s&&t.value&&"/i18n"===t.value)}function Mt(t){return t.attrs.find(function(t){return t.name===zs})||null}function kt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ks),n=t.indexOf(Ws),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=r[0],i=r[1],s=n>-1?[o.slice(0,n),o.slice(n+1)]:["",o];return{meaning:s[0],description:s[1],id:i}}function Nt(t){return $s}/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +function It(t){return t.id||Vt(Dt(t.nodes).join("")+"["+t.meaning+"]")}function Rt(t){if(t.id)return t.id;var e=new na;return jt(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}function Dt(t){return t.map(function(t){return t.visit(ea,null)})}function Vt(t){var e=w(t),n=Qt(e,ra.Big),r=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];n[r>>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var p=0;p>>13,n=zt(n,r),n=zt(n,e),n^=e<<8,r=zt(r,e),r=zt(r,n),r^=n>>>13,e=zt(e,n),e=zt(e,r),e^=r>>>12,n=zt(n,r),n=zt(n,e),n^=e<<16,r=zt(r,e),r=zt(r,n),r^=n>>>5,e=zt(e,n),e=zt(e,r),e^=r>>>3,n=zt(n,r),n=zt(n,e),n^=e<<10,r=zt(r,e),r=zt(r,n),r^=n>>>15,[e,n,r]}function Bt(t,e){return qt(t,e)[1]}function qt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Gt(t,e){var n=t[0],r=t[1],o=e[0],i=e[1],s=qt(r,i),a=s[0],u=s[1];return[Bt(Bt(n,o),a),u]}function zt(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function Wt(t,e){return t<>>32-e}function Kt(t,e){var n=t[0],r=t[1];return[n<>>32-e,r<>>32-e]}function Qt(t,e){for(var n=Array(t.length+3>>>2),r=0;r=t.length?0:255&t.charCodeAt(e)}function Zt(t,e,n){var r=0;if(n===ra.Big)for(var o=0;o<4;o++)r+=Xt(t,e+o)<<24-8*o;else for(var o=0;o<4;o++)r+=Xt(t,e+o)<<8*o;return r}function Yt(t){return t.reduce(function(t,e){return t+$t(e)},"")}function $t(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function Jt(t){for(var e="",n=0;n>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function te(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=ee(e,ne(Xt(t,r),n)),n=ne(256,n);return e.split("").reverse().join("")}function ee(t,e){for(var n="",r=Math.max(t.length,e.length),o=0,i=0;o=10?(i=1,n+=s-10):(i=0,n+=s)}return n}function ne(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=ee(n,r)),r=ee(r,r);return n}function re(t){return t.map(function(t){return t.visit(aa)}).join("")}function oe(t){return fa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function ie(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function se(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function ae(t){return Rt(t)}function ue(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function ce(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}function le(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Ea;case"xtb":return new xa;case"xliff2":case"xlf2":return new ga;case"xliff":case"xlf":default:return new da}}function pe(t){var e=t.name;return Kr["ɵreflector"].resolveIdentifier(e,t.moduleUrl,null,t.runtime)}function he(t){return{reference:pe(t)}}function fe(t){return{identifier:t}}function de(t){return fe(he(t))}function ye(t){var e=new La;return new Da(ct(e,t),e.isExpanded,e.errors)}function ve(t,e){var n=t.cases.map(function(t){-1!=Ra.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Va(t.valueSourceSpan,'Plural cases should be "=" or one of '+Ra.join(", ")));var n=ye(t.expression);return e.push.apply(e,n.errors),new gs("ng-template",[new ms("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ms("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new gs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function me(t,e){var n=t.cases.map(function(t){var n=ye(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new gs("ng-template",[new ms("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new gs("ng-template",[new ms("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ms("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new gs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ge(t,e){var n=e.useExisting,r=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:o,multi:t.multi}}function _e(t,e){var n=e.eager,r=e.providers;return new so(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function be(t,e,n){var r=new Map;return t.forEach(function(t){we([{token:{identifier:t.type},useClass:t.type}],t.isComponent?ao.Component:ao.Directive,!0,e,n,r)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){we(t.providers,ao.PublicService,!1,e,n,r),we(t.viewProviders,ao.PrivateService,!1,e,n,r)}),r}function we(t,e,n,r,o,i){t.forEach(function(t){var s=i.get(M(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Fa("Mixing multi and non multi provider is not possible for token "+O(s.token),r)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new so(t.token,!!t.multi,n||u,[t],e,a,r),i.set(M(t.token),s)}})}function Ee(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return Se(n,{meta:t,queryId:e++})}),n}function Ce(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return Se(r,{meta:t,queryId:n++})})}),r}function Se(t,e){e.meta.selectors.forEach(function(n){var r=t.get(M(n));r||(r=[],t.set(M(n),r)),r.push(e)})}function xe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Wa);return null===e||"package"==e[1]||"asset"==e[1]}function Te(t,e,n){var r=[],o=n.replace(za,"").replace(Ga,function(){for(var n=[],o=0;o0&&(i=t.value)}),e=Me(e);var a=t.name.toLowerCase(),u=su.OTHER;return s(a)?u=su.NG_CONTENT:a==nu?u=su.STYLE:a==ru?u=su.SCRIPT:a==$a&&r==eu&&(u=su.STYLESHEET),new au(u,e,n,o,i)}function Me(t){return null===t||0===t.length?"*":t}function ke(t){return function(e){return-1===t.indexOf(e.msg)||(hu[e.msg]=(hu[e.msg]||0)+1,hu[e.msg]<=1)}}function Ne(t){return t.trim().split(/\s+/g)}function Ie(t,e){var n=new _o,r=o(t)[1];n.setElement(r);for(var i=0;i0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-- >0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+n}function qe(t){var e=t[Pu.Path];return e=null==e?"":Be(e),t[Pu.Path]=e,He(t[Pu.Scheme],t[Pu.UserInfo],t[Pu.Domain],t[Pu.Port],e,t[Pu.QueryData],t[Pu.Fragment])}function Ge(t,e){var n=Ue(encodeURI(e)),r=Ue(t);if(null!=n[Pu.Scheme])return qe(n);n[Pu.Scheme]=r[Pu.Scheme];for(var o=Pu.Scheme;o<=Pu.Port;o++)null==n[o]&&(n[o]=r[o]);if("/"==n[Pu.Path][0])return qe(n);var i=r[Pu.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+n[Pu.Path],n[Pu.Path]=i,qe(n)}function ze(t){return t instanceof Kr.Directive}function We(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function Ke(t){var e=Ze(t);return e[0]+".ngfactory"+e[1]}function Qe(t){return t.replace(Iu,".")}function Xe(t){return Iu.test(t)}function Ze(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function Ye(t){return t.replace(Nu,"")+".ngsummary.json"}/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +function $e(t,e){return Kr["ɵreflector"].hasLifecycleHook(e,Je(t))}function Je(t){switch(t){case Kr["ɵLifecycleHooks"].OnInit:return"ngOnInit";case Kr["ɵLifecycleHooks"].OnDestroy:return"ngOnDestroy";case Kr["ɵLifecycleHooks"].DoCheck:return"ngDoCheck";case Kr["ɵLifecycleHooks"].OnChanges:return"ngOnChanges";case Kr["ɵLifecycleHooks"].AfterContentInit:return"ngAfterContentInit";case Kr["ɵLifecycleHooks"].AfterContentChecked:return"ngAfterContentChecked";case Kr["ɵLifecycleHooks"].AfterViewInit:return"ngAfterViewInit";case Kr["ɵLifecycleHooks"].AfterViewChecked:return"ngAfterViewChecked"}}/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +function tn(t){return t instanceof Kr.NgModule}/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +function en(t){return t instanceof Kr.Pipe}function nn(t,e){if(void 0===e&&(e=[]),t)for(var r=0;r>2),e+=On((3&r)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":On((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":On(63&i)}return e}function An(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;t>>=5,t>0&&(n|=32),e+=On(n)}while(t>0);return e}function On(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Yc[t]}function Mn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace($c,function(){for(var t=[],n=0;n0?i.push(a):(i.length>0&&(r.push(i.join("")),n.push(Hl),i=[]),n.push(a)),a==Fl&&o++}return i.length>0&&(r.push(i.join("")),n.push(Hl)),new Bl(n.join(""),r)}function jn(t){var e="styles";return t&&(e+="_"+C(t.type)),e}function Hn(t,e,n,r){t||(t=new Jl);var o=Un({createLiteralArrayConverter:function(t){return function(t){return gn(t)}},createLiteralMapConverter:function(t){return function(e){return _n(t.map(function(t,n){return[t,e[n]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),i=new $l(t,e,r),s=[];Zn(o.visit(i,Zl.Statement),s),Wn(i.temporaryCount,r,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=Jn(c);l&&(u=$n(r),s[a]=u.set(l.cast(Ku).notIdentical(En(!1))).toDeclStmt(null,[xc.Final]))}return new Ql(s,u)}function Un(t,e){return qn(t,e)}function Bn(t,e,n,r){t||(t=new Jl);var o=Yn(r),i=[],s=new $l(t,e,r),a=n.visit(s,Zl.Expression);if(s.temporaryCount)for(var u=0;u=0;r--)n.unshift(zn(e,r))}function Kn(t,e){if(t!==Zl.Statement)throw new Error("Expected a statement, but saw "+e)}function Qn(t,e){if(t!==Zl.Expression)throw new Error("Expected an expression, but saw "+e)}function Xn(t,e){return t===Zl.Statement?e.toStmt():e}function Zn(t,e){Array.isArray(t)?t.forEach(function(t){return Zn(t,e)}):e.push(t)}function Yn(t){return dn("currVal_"+t)}function $n(t){return dn("pd_"+t)}function Jn(t){return t instanceof Oc?t.expr:t instanceof Mc?t.value:null}function tr(t){return t.multiProvider?er(t.providers):nr(t.providerType,t.providers[0])}function er(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return r.push(new hc(i,Ku)),n.push(or(e)),dn(i)})}var n=[],r=[],o=t.map(function(t,n){var r;if(t.useClass){var o=e(n,t.deps||t.useClass.diDeps);r=yn(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(n,t.deps||t.useFactory.diDeps);r=yn(t.useFactory).callFn(o)}else if(t.useExisting){var o=e(n,[{token:t.useExisting}]);r=o[0]}else r=xn(t.useValue);return r});return{providerExpr:wn(r,[new Mc(gn(o))],Qu),flags:512,depsExpr:gn(n)}}function nr(t,e){var n,r,o;return t===ao.Directive||t===ao.Component?(n=yn(e.useClass),r=8192,o=e.deps||e.useClass.diDeps):e.useClass?(n=yn(e.useClass),r=256,o=e.deps||e.useClass.diDeps):e.useFactory?(n=yn(e.useFactory),r=512,o=e.deps||e.useFactory.diDeps):e.useExisting?(n=Cc,r=1024,o=[{token:e.useExisting}]):(n=xn(e.useValue),r=128,o=[]),{providerExpr:n,flags:r,depsExpr:gn(o.map(function(t){return or(t)}))}}function rr(t){return t.identifier?yn(t.identifier):En(t.value)}function or(t){var e=t.isValue?xn(t.value):rr(t.token),n=0;return t.isSkipSelf&&(n|=1),t.isOptional&&(n|=2),t.isValue&&(n|=8),0===n?e:gn([En(n),e])}function ir(t){var e=t[t.length-1];return e instanceof ro?e.hasViewContainer:e instanceof no?i(e.name)&&e.children.length?ir(e.children):e.hasViewContainer:e instanceof uo}function sr(t){var e=0;switch(t){case Kr["ɵLifecycleHooks"].AfterContentChecked:e=1048576;break;case Kr["ɵLifecycleHooks"].AfterContentInit:e=524288;break;case Kr["ɵLifecycleHooks"].AfterViewChecked:e=4194304;break;case Kr["ɵLifecycleHooks"].AfterViewInit:e=2097152;break;case Kr["ɵLifecycleHooks"].DoCheck:e=131072;break;case Kr["ɵLifecycleHooks"].OnChanges:e=262144;break;case Kr["ɵLifecycleHooks"].OnDestroy:e=65536;break;case Kr["ɵLifecycleHooks"].OnInit:e=32768}return e}function ar(t,e){switch(t.type){case co.Attribute:return gn([En(1),En(t.name),En(t.securityContext)]);case co.Property:return gn([En(8),En(t.name),En(t.securityContext)]);case co.Animation:return gn([En(8|(e&&e.directive.isComponent?32:16)),En("@"+t.name),En(t.securityContext)]);case co.Class:return gn([En(2),En(t.name),Cc]);case co.Style:return gn([En(4),En(t.name),En(t.unit)])}}function ur(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],o=e[n];e[n]=null!=o?cr(n,o,r):r})}),gn(Object.keys(e).sort().map(function(t){return gn([En(t),En(e[t])])}))}function cr(t,e,n){return t==ep||t==np?e+" "+n:n}function lr(t,e){return e.length>10?ap.callFn([sp,En(t),En(1),gn(e)]):ap.callFn([sp,En(t),En(0)].concat(e))}function pr(t,e,n){return yn(he(Ia.unwrapValue)).callFn([sp,En(t),En(e),n])}function hr(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n=new Set,r=new Set,o=void 0;t instanceof no?(hr(t.children,e),t.children.forEach(function(t){var o=e.get(t);o.staticQueryIds.forEach(function(t){return n.add(t)}),o.dynamicQueryIds.forEach(function(t){return r.add(t)})}),o=t.queryMatches):t instanceof ro&&(hr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return r.add(t)})}),o=t.queryMatches),o&&o.forEach(function(t){return n.add(t.queryId)}),r.forEach(function(t){return n.delete(t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:r})}),e}function fr(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:n}}function dr(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=e.directive.entryComponents.map(function(t){return yn({reference:t.componentFactory})}),r=de(Ia.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:gn(n)},{token:r,isSkipSelf:!0,isOptional:!0},{token:de(Ia.NgModuleRef)}],lifecycleHooks:[],reference:pe(Ia.CodegenComponentFactoryResolver)};return new so(r,!1,!0,[{token:r,multi:!1,useClass:o}],ao.PrivateService,[],e.sourceSpan)}return null}function yr(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function vr(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=268435456:r|=134217728,r}/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +function mr(t,e,n,r){var o=new fp(e,t);n.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i=0;e--)if(void 0!==t[e])return t[e]}function Wr(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Kr=n(20);n.d(e,"b",function(){return Up}),n.d(e,"a",function(){return Cu});var Qr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Xr=(new Kr.Version("4.1.1"),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}()),Zr=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}(),Yr=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}(),$r=function(){function t(t,e,n,r,o,i){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===co.Animation},enumerable:!0,configurable:!0}),t}(),Jr=function(){function t(t,e,n,r,o){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=o}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),to=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),eo=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),no=function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=o,this.directives=i,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}(),ro=function(){function t(t,e,n,r,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=o,this.providers=i,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}(),oo=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}(),io=function(){function t(t,e,n,r,o,i){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),so=function(){function t(t,e,n,r,o,i,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),ao={};ao.PublicService=0,ao.PrivateService=1,ao.Component=2,ao.Directive=3,ao.Builtin=4,ao[ao.PublicService]="PublicService",ao[ao.PrivateService]="PrivateService",ao[ao.Component]="Component",ao[ao.Directive]="Directive",ao[ao.Builtin]="Builtin";var uo=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),co={};co.Property=0,co.Attribute=1,co.Class=2,co.Style=3,co.Animation=4,co[co.Property]="Property",co[co.Attribute]="Attribute",co[co.Class]="Class",co[co.Style]="Style",co[co.Animation]="Animation";var lo=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),po=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){n=n||[];var r=n.length?"."+n.join("."):"",o='"'+t+'".'+e+r,i=this.cache.get(o);return i||(i=new lo(t,e,n),this.cache.set(o,i)),i},t}(),ho={};ho.RAW_TEXT=0,ho.ESCAPABLE_RAW_TEXT=1,ho.PARSABLE_DATA=2,ho[ho.RAW_TEXT]="RAW_TEXT",ho[ho.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ho[ho.PARSABLE_DATA]="PARSABLE_DATA";var fo={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},yo=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?ho.PARSABLE_DATA:i,a=e.closedByParent,u=void 0!==a&&a,c=e.isVoid,l=void 0!==c&&c,p=e.ignoreFirstLf,h=void 0!==p&&p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),vo={base:new yo({isVoid:!0}),meta:new yo({isVoid:!0}),area:new yo({isVoid:!0}),embed:new yo({isVoid:!0}),link:new yo({isVoid:!0}),img:new yo({isVoid:!0}),input:new yo({isVoid:!0}),param:new yo({isVoid:!0}),hr:new yo({isVoid:!0}),br:new yo({isVoid:!0}),source:new yo({isVoid:!0}),track:new yo({isVoid:!0}),wbr:new yo({isVoid:!0}),p:new yo({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new yo({closedByChildren:["tbody","tfoot"]}),tbody:new yo({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new yo({closedByChildren:["tbody"],closedByParent:!0}),tr:new yo({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new yo({closedByChildren:["td","th"],closedByParent:!0}),th:new yo({closedByChildren:["td","th"],closedByParent:!0}),col:new yo({requiredParents:["colgroup"],isVoid:!0}),svg:new yo({implicitNamespacePrefix:"svg"}),math:new yo({implicitNamespacePrefix:"math"}),li:new yo({closedByChildren:["li"],closedByParent:!0}),dt:new yo({closedByChildren:["dt","dd"]}),dd:new yo({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new yo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new yo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new yo({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new yo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new yo({closedByChildren:["optgroup"],closedByParent:!0}),option:new yo({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new yo({ignoreFirstLf:!0}),listing:new yo({ignoreFirstLf:!0}),style:new yo({contentType:ho.RAW_TEXT}),script:new yo({contentType:ho.RAW_TEXT}),title:new yo({contentType:ho.ESCAPABLE_RAW_TEXT}),textarea:new yo({contentType:ho.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},mo=new yo,go=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),_o=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(go.lastIndex=0;n=go.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.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=i),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(r,i),i=s=new t}}return o(r,i),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":"<"+t+e+n+">"},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;e1&&(n=new wo(t),this._listContexts.push(n));for(var r=0;r0&&(!this.listContext||!this.listContext.alreadyMatched)){n=!bo.createNotMatcher(this.notSelectors).match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),Co="",So=/-+([a-z0-9])/g,xo=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return y(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(o){r[o]=y(t[o],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),To=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),Po="ngSyntaxError",Ao=Object.getPrototypeOf({}),Oo=(function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}}(),function(){function t(){}return t}()),Mo=(function(t){function e(e,n){var r=t.call(this)||this;return r.stateNameExpr=e,r.styles=n,r}Qr(e,t)}(Oo),function(t){function e(e,n){var r=t.call(this)||this;return r.stateChangeExpr=e,r.steps=n,r}Qr(e,t)}(Oo),function(){function t(){}return t}()),ko=(function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.steps=e,n}Qr(e,t)}(Mo),function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this)||this;return r.offset=e,r.styles=n,r}Qr(e,t)}(Mo),function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=t.call(this)||this;return r.timings=e,r.styles=n,r}Qr(e,t)}(Mo),function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.steps=e,n}return Qr(e,t),e}(Mo)),No=(function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}Qr(e,t)}(ko),function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}Qr(e,t)}(ko),0),Io={};Io.Pipe=0,Io.Directive=1,Io.NgModule=2,Io.Injectable=3,Io[Io.Pipe]="Pipe",Io[Io.Directive]="Directive",Io[Io.NgModule]="NgModule",Io[Io.Injectable]="Injectable";var Ro=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,o=e.styleUrls;this.moduleUrl=n||null,this.styles=N(r),this.styleUrls=N(o)}return t}(),Do=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,o=t.styles,i=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.styles=N(o),this.styleUrls=N(i),this.externalStylesheets=N(s),this.animations=a?I(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Vo=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,o=t.selector,i=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,y=t.viewQueries,v=t.entryComponents,m=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=o,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=N(h),this.viewProviders=N(f),this.queries=N(d),this.viewQueries=N(y),this.entryComponents=N(v),this.template=m,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var n=e.isHost,r=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,p=e.providers,f=e.viewProviders,d=e.queries,y=e.viewQueries,v=e.entryComponents,m=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},E={},C={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],n=t.match(/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/);null===n?C[t]=e:null!=n[1]?E[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=h(t,[t,t]);S[e[0]]=e[1]});var x={};return null!=c&&c.forEach(function(t){var e=h(t,[t,t]);x[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!o,selector:i,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:E,hostAttributes:C,providers:p,viewProviders:f,queries:d,viewQueries:y,entryComponents:v,template:m,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Io.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Lo=function(){function t(t){var e=t.type,n=t.name,r=t.pure;this.type=e,this.name=n,this.pure=!!r}return t.prototype.toSummary=function(){return{summaryKind:Io.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Fo=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,o=t.exportedDirectives,i=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=N(r),this.exportedDirectives=N(o),this.declaredPipes=N(i),this.exportedPipes=N(s),this.providers=N(n),this.entryComponents=N(a),this.bootstrapComponents=N(u),this.importedModules=N(c),this.exportedModules=N(l),this.schemas=N(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Io.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),jo=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Ho=function(){function t(t,e){var n=e.useClass,r=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=o,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}return t}(),Uo=function(){function t(t){var e=void 0===t?{}:t,n=e.defaultEncapsulation,r=void 0===n?Kr.ViewEncapsulation.Emulated:n,o=e.useJit,i=void 0===o||o,s=e.missingTranslation,a=e.enableLegacyTemplate;this.defaultEncapsulation=r,this.useJit=!!i,this.missingTranslation=s||null,this.enableLegacyTemplate=!1!==a}return t}(),Bo=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),qo=function(){function t(t,e){this.start=t,this.end=e}return t}(),Go=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}(),zo=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.prefix=n,i.uninterpretedExpression=r,i.location=o,i}return Qr(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}(Go),Wo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Go),Ko=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Go),Qo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Go),Xo=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.condition=n,i.trueExp=r,i.falseExp=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Go),Zo=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Go),Yo=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.value=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Go),$o=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Go),Jo=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Go),ti=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i.value=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Go),ei=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.exp=n,i.name=r,i.args=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Go),ni=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Go),ri=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Go),oi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keys=n,o.values=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Go),ii=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.strings=n,o.expressions=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Go),si=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.operation=n,i.left=r,i.right=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Go),ai=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Go),ui=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Go),ci=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Go),li=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.target=n,o.args=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Go),pi=function(t){function e(e,n,r,o){var i=t.call(this,new qo(0,null==n?0:n.length))||this;return i.ast=e,i.source=n,i.location=r,i.errors=o,i}return Qr(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}(Go),hi=function(){function t(t,e,n,r,o){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=o}return t}(),fi=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.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}(),di=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new ii(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new ni(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new Zo(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new Yo(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new $o(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new ui(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new ci(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new li(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new ri(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new oi(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new si(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new ai(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new Xo(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new ei(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new Jo(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new ti(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]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Zi=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(z("interpolation",e),new t(e[0],e[1])):Yi},t}(),Yi=new Zi("{{","}}"),$i={};$i.Character=0,$i.Identifier=1,$i.Keyword=2,$i.String=3,$i.Operator=4,$i.Number=5,$i.Error=6,$i[$i.Character]="Character",$i[$i.Identifier]="Identifier",$i[$i.Keyword]="Keyword",$i[$i.String]="String",$i[$i.Operator]="Operator",$i[$i.Number]="Number",$i[$i.Error]="Error";var Ji=["var","let","as","null","undefined","true","false","if","else","this"],ts=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new rs(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();ts.decorators=[{type:q}],ts.ctorParameters=function(){return[]};var es=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==$i.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==$i.Number},t.prototype.isString=function(){return this.type==$i.String},t.prototype.isOperator=function(t){return this.type==$i.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==$i.Identifier},t.prototype.isKeyword=function(){return this.type==$i.Keyword},t.prototype.isKeywordLet=function(){return this.type==$i.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==$i.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==$i.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==$i.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==$i.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==$i.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==$i.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==$i.Error},t.prototype.toNumber=function(){return this.type==$i.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case $i.Character:case $i.Identifier:case $i.Keyword:case $i.Operator:case $i.String:case $i.Error:return this.strValue;case $i.Number:return this.numValue.toString();default:return null}},t}(),ns=new es(-1,$i.Character,0,""),rs=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?yi:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=wi;){if(++r>=e){n=yi;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(J(n))return this.scanIdentifier();if(H(n))return this.scanNumber(r);var o=r;switch(n){case 46:return this.advance(),H(this.peek)?this.scanNumber(o):W(o,46);case 40:case 41:case Wi:case 125:case 91:case 93:case 44:case 58:case Ai:return this.scanCharacter(o,n);case Si:case Ei:return this.scanString();case 35:case xi:case Ti:case 42:case Pi:case 37:case 94:return this.scanOperator(o,String.fromCharCode(n));case 63:return this.scanComplexOperator(o,"?",46,".");case 60:case Mi:return this.scanComplexOperator(o,String.fromCharCode(n),Oi,"=");case 33:case Oi:return this.scanComplexOperator(o,String.fromCharCode(n),Oi,"=",Oi,"=");case 38:return this.scanComplexOperator(o,"&",38,"&");case 124:return this.scanComplexOperator(o,"|",124,"|");case Ki:for(;j(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(),W(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),X(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,o,i){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=o&&this.peek==o&&(this.advance(),s+=i),X(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();et(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Ji.indexOf(e)>-1?Q(t,e):K(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(H(this.peek));else if(46==this.peek)e=!1;else{if(!nt(this.peek))break;if(this.advance(),rt(this.peek)&&this.advance(),!H(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index);return Y(t,e?st(n):parseFloat(n))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,o=this.input;this.peek!=e;)if(92==this.peek){n+=o.substring(r,this.index),this.advance();var i=void 0;if(this.peek=this.peek,117==this.peek){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else i=it(this.peek),this.advance();n+=String.fromCharCode(i),r=this.index}else{if(this.peek==yi)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(r,this.index);return this.advance(),Z(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return $(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),os=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),is=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),ss=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=Yi),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new as(t,e,o,r.length,!0,this.errors,t.length-r.length).parseChain();return new pi(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=Yi);var r=this._parseBindingAst(t,e,n);return new pi(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=Yi);var r=this._parseBindingAst(t,e,n),o=us.check(r);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new pi(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new Bo(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 o=this._stripComments(t),i=this._lexer.tokenize(o);return new as(t,e,i,o.length,!1,this.errors,t.length-o.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(!tt(r))return null;var o=t.substring(n+1);return new zo(new qo(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,o)}return new as(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=Yi);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var o=[],i=0;i0?(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(o,c,n)+" in",e),s.push("$implict"),a.push(u))}return new os(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new pi(new ni(new qo(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=null,n=0;n1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",o=0;o":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new si(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==$i.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new si(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==$i.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new si(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==$i.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new si(this.span(t),e,new ni(new qo(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new ai(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 ti(this.span(t.span.start),t,e,n)}else t=new Jo(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(40))return t;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new li(this.span(t.span.start),t,r)}},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 ni(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new ni(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new ni(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new ni(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Ko(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new ri(this.span(t),n)}if(this.next.isCharacter(Wi))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Ko(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new ni(this.span(t),r)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new ni(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Wo(this.span(t))):(this.error("Unexpected token "+this.next),new Wo(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(Wi),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();t.push(r),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new oi(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 o=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var i=this.span(n);return e?new ci(i,t,r,o):new ui(i,t,r,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Wo(this.span(n))):new $o(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Wo(this.span(n));var s=this.parseConditional();return new Yo(this.span(n),t,r,s)}return new Zo(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(){for(var t=[],e=null,n=[];this.index0&&e<0;){o--,e++;var a=n.charCodeAt(o);if(a==mi){i--;var u=n.substr(0,o-1).lastIndexOf(String.fromCharCode(mi));s=u>0?o-u:o}else s--}for(;o0;){var a=n.charCodeAt(o);o++,e--,a==mi?(i++,s=0):s++}return new t(this.file,o,i,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 o=r,i=0,s=0;i0&&(r--,i++,"\n"!=n[r]||++s!=e););for(i=0,s=0;i]"+t.after+'")':"",n=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+n},t}(),ds=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),ys=function(){function t(t,e,n,r,o){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),vs=function(){function t(t,e,n,r,o){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),ms=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),gs=function(){function t(t,e,n,r,o,i){void 0===o&&(o=null),void 0===i&&(i=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),_s=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),bs={};bs.TAG_OPEN_START=0,bs.TAG_OPEN_END=1,bs.TAG_OPEN_END_VOID=2,bs.TAG_CLOSE=3,bs.TEXT=4,bs.ESCAPABLE_RAW_TEXT=5,bs.RAW_TEXT=6,bs.COMMENT_START=7,bs.COMMENT_END=8,bs.CDATA_START=9,bs.CDATA_END=10,bs.ATTR_NAME=11,bs.ATTR_VALUE=12,bs.DOC_TYPE=13,bs.EXPANSION_FORM_START=14,bs.EXPANSION_CASE_VALUE=15,bs.EXPANSION_CASE_EXP_START=16,bs.EXPANSION_CASE_EXP_END=17,bs.EXPANSION_FORM_END=18,bs.EOF=19,bs[bs.TAG_OPEN_START]="TAG_OPEN_START",bs[bs.TAG_OPEN_END]="TAG_OPEN_END",bs[bs.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",bs[bs.TAG_CLOSE]="TAG_CLOSE",bs[bs.TEXT]="TEXT",bs[bs.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",bs[bs.RAW_TEXT]="RAW_TEXT",bs[bs.COMMENT_START]="COMMENT_START",bs[bs.COMMENT_END]="COMMENT_END",bs[bs.CDATA_START]="CDATA_START",bs[bs.CDATA_END]="CDATA_END",bs[bs.ATTR_NAME]="ATTR_NAME",bs[bs.ATTR_VALUE]="ATTR_VALUE",bs[bs.DOC_TYPE]="DOC_TYPE",bs[bs.EXPANSION_FORM_START]="EXPANSION_FORM_START",bs[bs.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",bs[bs.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",bs[bs.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",bs[bs.EXPANSION_FORM_END]="EXPANSION_FORM_END",bs[bs.EOF]="EOF";var ws=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Es=function(t){function e(e,n,r){var o=t.call(this,r,e)||this;return o.tokenType=n,o}return Qr(e,t),e}(fs),Cs=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Ss=function(){function t(t){this.error=t}return t}(),xs=function(){function t(t,e,n,r){void 0===r&&(r=Yi),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(/\r\n?/g,"\n")},t.prototype.tokenize=function(){for(;this._peek!==yi;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Ti)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Pi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Ss))throw t;this.errors.push(t.error)}}return this._beginToken(bs.EOF),this._endToken([]),new Cs(Et(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(gt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(_t(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new cs(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 ps(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 ws(this._currentTokenType,t,new ps(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 Es(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ss(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(pt(yi),this._getSpan());this._peek===mi?(this._line++,this._column=0):this._peek!==mi&&this._peek!==bi&&this._column++,this._index++,this._peek=this._index>=this._length?yi:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?yi:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!bt(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(pt(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;rr.offset&&i.push(this._input.substring(r.offset,this._index));this._peek!==e;)i.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(i.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(bs.COMMENT_START,t),this._requireCharCode(Ti),this._endToken([]);var n=this._consumeRawText(!1,Ti,function(){return e._attemptStr("->")});this._beginToken(bs.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(bs.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(bs.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(bs.DOC_TYPE,t),this._attemptUntilChar(Mi),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;58!==this._peek&&!yt(this._peek);)this._advance();var n;return 58===this._peek?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(dt,this._index===n?1:0),[e,this._input.substring(n,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!U(this._peek))throw this._createError(pt(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),n=e.toLowerCase(),this._attemptCharCodeUntilFn(ft);this._peek!==Pi&&this._peek!==Mi;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ft),this._attemptCharCode(Oi)&&(this._attemptCharCodeUntilFn(ft),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ft);this._consumeTagOpenEnd()}catch(e){if(e instanceof Ss)return this._restorePosition(r),this._beginToken(bs.TEXT,t),void this._endToken(["<"]);throw e}var i=this._getTagDefinition(e).contentType;i===ho.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):i===ho.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(Pi)&&(n._attemptCharCodeUntilFn(ft),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(ft),n._attemptCharCode(Mi)))});this._beginToken(bs.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(bs.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(bs.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(bs.ATTR_VALUE);var t;if(this._peek===Si||this._peek===Ei){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(dt,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Pi)?bs.TAG_OPEN_END_VOID:bs.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Mi),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(bs.TAG_CLOSE,t),this._attemptCharCodeUntilFn(ft);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ft),this._requireCharCode(Mi),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(bs.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Wi),this._endToken([]),this._expansionCaseStack.push(bs.EXPANSION_FORM_START),this._beginToken(bs.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(ft),this._beginToken(bs.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(ft)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(bs.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Wi).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(ft),this._beginToken(bs.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Wi),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ft),this._expansionCaseStack.push(bs.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(bs.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ft),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(bs.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(bs.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===yi)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(gt(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];e0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===bs.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===bs.EXPANSION_FORM_START},t}(),Ts=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.elementName=e,o}return Qr(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(fs),Ps=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),As=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Yi);var o=lt(t,e,this.getTagDefinition,n,r),i=new Os(o.tokens,this.getTagDefinition).build();return new Ps(i.rootNodes,o.errors.concat(i.errors))},t}(),Os=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==bs.EOF;)this._peek.type===bs.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===bs.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===bs.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===bs.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===bs.TEXT||this._peek.type===bs.RAW_TEXT||this._peek.type===bs.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===bs.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Ps(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index0)return this._errors=this._errors.concat(i.errors),null;var s=new ps(e.sourceSpan.start,o.sourceSpan.end),a=new ps(n.sourceSpan.start,o.sourceSpan.end);return new vs(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[bs.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==bs.EXPANSION_FORM_START&&this._peek.type!==bs.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===bs.EXPANSION_CASE_EXP_END){if(!Ct(n,bs.EXPANSION_CASE_EXP_START))return this._errors.push(Ts.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===bs.EXPANSION_FORM_END){if(!Ct(n,bs.EXPANSION_FORM_START))return this._errors.push(Ts.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===bs.EOF)return this._errors.push(Ts.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new ds(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===bs.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var o=this._getElementFullName(e,n,this._getParentElement()),i=!1;if(this._peek.type===bs.TAG_OPEN_END_VOID){this._advance(),i=!0;var s=this.getTagDefinition(o);s.canSelfClose||null!==u(o)||s.isVoid||this._errors.push(Ts.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===bs.TAG_OPEN_END&&(this._advance(),i=!1);var a=this._peek.sourceSpan.start,c=new ps(t.sourceSpan.start,a),l=new gs(o,r,[],c,c,void 0);this._pushElement(l),i&&(this._popElement(o),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),o=r.parent,i=r.container;if(o&&n.requireExtraParent(o.name)){var s=new gs(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(Ts.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(Ts.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=c(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",o=void 0;if(this._peek.type===bs.ATTR_VALUE){var i=this._advance();r=i.parts[0],n=i.sourceSpan.end,o=i.sourceSpan}return new ms(e,r,new ps(t.sourceSpan.start,n),o)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!i(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=u(n.name)),c(t,e)},t}(),Ms=function(){function t(t,e,n,r,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=o,this.id=i,t.length?this.sources=[{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}]:this.sources=[]}return t}(),ks=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Ns=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),Is=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}(),Rs=function(){function t(t,e,n,r,o,i,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),Ds=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}(),Vs=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}(),Ls=function(){function t(){}return t.prototype.visitText=function(t,e){return new ks(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 Ns(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(o){return r[o]=t.cases[o].visit(n,e)});var o=new Is(t.expression,t.type,r,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new Rs(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new Ds(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new Vs(t.value,t.name,t.sourceSpan)},t}(),Fs=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}(),js={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"},Hs=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 o=t.toUpperCase(),i=js[o]||"TAG_"+o,s=this._generateUniqueName(n?i:"START_"+i);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=js[n]||"TAG_"+n,o=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var o=this._generateUniqueName(n);return this._signatureToName[r]=o,o},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.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}(),Us=new ss(new ts),Bs=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 ys,this._icuDepth=0,this._placeholderRegistry=new Hs,this._placeholderToContent={},this._placeholderToMessage={};var o=ct(this,t,{});return new Ms(o,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=ct(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var o=l(t.name).isVoid,i=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,o);this._placeholderToContent[i]=t.sourceSpan.toString();var s="";return o||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]=""),new Rs(t.name,r,i,s,n,o,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 o={},i=new Is(e.switchValue,e.type,o,e.sourceSpan);if(e.cases.forEach(function(t){o[t.value]=new Ns(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 i.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,i}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new Vs(i,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 ks(t,e);for(var r=[],o=new Ns(r,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u=n;r--){var o=this._messages[r].nodes;if(!(1==o.length&&o[0]instanceof ks)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),Ys=function(){function t(){this.closedByParent=!1,this.contentType=ho.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}(),$s=new Ys,Js=function(t){function e(){return t.call(this,Nt)||this}return Qr(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(As),ta=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'':''+t.children.map(function(t){return t.visit(n)}).join(", ")+''},t.prototype.visitPlaceholder=function(t,e){return t.value?''+t.value+"":''},t.prototype.visitIcuPlaceholder=function(t,e){return''+t.value.visit(this)+""},t}(),ea=new ta,na=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(ta),ra={};ra.Little=0,ra.Big=1,ra[ra.Little]="Little",ra[ra.Big]="Big";/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var oa=function(){function t(){}return t.prototype.write=function(t,e){},t.prototype.load=function(t,e){},t.prototype.digest=function(t){},t.prototype.createNameMapper=function(t){return null},t}(),ia=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return Qr(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(Fs),sa=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+""},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return""},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return""},t}(),aa=new sa,ua=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=oe(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),ca=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),la=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=oe(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),pa=function(){function t(t){this.value=oe(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),ha=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Qr(e,t),e}(pa),fa=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]],da=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.write=function(t,e){var n=new ya,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new la("context-group",{purpose:"location"});n.children.push(new ha(10),new la("context",{"context-type":"sourcefile"},[new pa(t.filePath)]),new ha(10),new la("context",{"context-type":"linenumber"},[new pa(""+t.startLine)]),new ha(8)),e.push(new ha(8),n)});var o=new la("trans-unit",{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new ha(8),new la("source",{},n.serialize(t.nodes)),new ha(8),new la("target")].concat(e)),t.description&&o.children.push(new ha(8),new la("note",{priority:"1",from:"description"},[new pa(t.description)])),t.meaning&&o.children.push(new ha(8),new la("note",{priority:"1",from:"meaning"},[new pa(t.meaning)])),o.children.push(new ha(6)),r.push(new ha(6),o);var i});var o=new la("body",{},r.concat([new ha(4)])),i=new la("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new ha(4),o,new ha(2)]),s=new la("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new ha(2),i,new ha]);return re([new ua({version:"1.0",encoding:"UTF-8"}),new ha,s,new ha])},e.prototype.load=function(t,e){var n=new va,r=n.parse(t,e),o=r.locale,i=r.msgIdToHtml,s=r.errors,a={},u=new ma;if(Object.keys(i).forEach(function(t){var n=u.convert(i[t],e),r=n.i18nNodes,o=n.errors;s.push.apply(s,o),a[t]=r}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return It(t)},e}(oa),ya=function(){function t(){}return t.prototype.visitText=function(t,e){return[new pa(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new pa("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new pa(e+" {")].concat(t.cases[e].visit(n),[new pa("} ")]))}),r.push(new pa("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=ie(t.tag),r=new la("x",{id:t.startName,ctype:n});if(t.isVoid)return[r];var o=new la("x",{id:t.closeName,ctype:n});return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){return[new la("x",{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new la("x",{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),va=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Js).parse(t,e,!1);return this._errors=n.errors,ct(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ct(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,' misses the "id" attribute');break;case"source":break;case"target":var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(o,i);this._unitMlString=a;break;case"file":var u=t.attrs.find(function(t){return"target-language"===t.name});u&&(this._locale=u.value),ct(this,t.children,null);break;default:ct(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),ma=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Js).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ct(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new ks(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});if(n)return new Ds("",n.value,t.sourceSpan);this._addError(t,' misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t,e){var n={};return ct(this,t.cases).forEach(function(e){n[e.value]=new Ns(e.nodes,t.sourceSpan)}),new Is(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ct(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),ga=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.write=function(t,e){var n=new _a,r=[];t.forEach(function(t){var e=new la("unit",{id:t.id});if(t.description||t.meaning){var o=new la("notes");t.description&&o.children.push(new ha(8),new la("note",{category:"description"},[new pa(t.description)])),t.meaning&&o.children.push(new ha(8),new la("note",{category:"meaning"},[new pa(t.meaning)])),o.children.push(new ha(6)),e.children.push(new ha(6),o)}var i=new la("segment");i.children.push(new ha(8),new la("source",{},n.serialize(t.nodes)),new ha(6)),e.children.push(new ha(6),i,new ha(4)),r.push(new ha(4),e)});var o=new la("file",{original:"ng.template",id:"ngi18n"},r.concat([new ha(2)])),i=new la("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new ha(2),o,new ha]);return re([new ua({version:"1.0",encoding:"UTF-8"}),new ha,i,new ha])},e.prototype.load=function(t,e){var n=new ba,r=n.parse(t,e),o=r.locale,i=r.msgIdToHtml,s=r.errors,a={},u=new wa;if(Object.keys(i).forEach(function(t){var n=u.convert(i[t],e),r=n.i18nNodes,o=n.errors;s.push.apply(s,o),a[t]=r}),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Rt(t)},e}(oa),_a=function(){function t(){}return t.prototype.visitText=function(t,e){return[new pa(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new pa("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new pa(e+" {")].concat(t.cases[e].visit(n),[new pa("} ")]))}),r.push(new pa("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=se(t.tag);if(t.isVoid){return[new la("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})]}var o=new la("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:""}),i=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return i.length?i.forEach(function(t){return o.children.push(t)}):o.children.push(new pa("")),[o]},t.prototype.visitPlaceholder=function(t,e){return[new la("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new la("ph",{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),ba=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Js).parse(t,e,!1);return this._errors=n.errors,ct(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ct(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,' misses the "id" attribute');break;case"source":break;case"target":var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(o,i);this._unitMlString=a;break;case"xliff":var u=t.attrs.find(function(t){return"trgLang"===t.name});u&&(this._locale=u.value);var c=t.attrs.find(function(t){return"version"===t.name});if(c){var l=c.value;"2.0"!==l?this._addError(t,"The XLIFF file version "+l+" is not compatible with XLIFF 2.0 serializer"):ct(this,t.children,null)}break;default:ct(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),wa=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Js).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],ct(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new ks(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new Ds("",r.value,t.sourceSpan)];this._addError(t,' misses the "equiv" attribute');break;case"pc":var o=t.attrs.find(function(t){return"equivStart"===t.name}),i=t.attrs.find(function(t){return"equivEnd"===t.name});if(o){if(i){var s=o.value,a=i.value,u=[];return u.concat.apply(u,[new Ds("",s,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new Ds("",a,t.sourceSpan)]))}this._addError(t,' misses the "equivEnd" attribute')}else this._addError(t,' misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return ct(this,t.cases).forEach(function(e){n[e.value]=new Ns(e.nodes,t.sourceSpan)}),new Is(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],ct(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),Ea=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.write=function(t,e){var n=new Sa,r=new Ca,o=new la("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new la("source",{},[new pa(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),o.children.push(new ha(2),new la("msg",e,n.concat(r.serialize(t.nodes))))}),o.children.push(new ha),re([new ua({version:"1.0",encoding:"UTF-8"}),new ha,new ca("messagebundle",'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'),new ha,n.addDefaultExamples(o),new ha])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return ae(t)},e.prototype.createNameMapper=function(t){return new ia(t,ue)},e}(oa),Ca=function(){function t(){}return t.prototype.visitText=function(t,e){return[new pa(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new pa("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new pa(e+" {")].concat(t.cases[e].visit(n),[new pa("} ")]))}),r.push(new pa("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new la("ex",{},[new pa("<"+t.tag+">")]),r=new la("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var o=new la("ex",{},[new pa("")]),i=new la("ph",{name:t.closeName},[o]);return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new la("ph",{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new la("ph",{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Sa=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new pa(t.attrs.name||"...");t.children=[new la("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),xa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=new Ta,r=n.parse(t,e),o=r.locale,i=r.msgIdToHtml,s=r.errors,a={},u=new Pa;if(Object.keys(i).forEach(function(t){ce(a,t,function(){var n=u.convert(i[t],e),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return ae(t)},e.prototype.createNameMapper=function(t){return new ia(t,ue)},e}(oa),Ta=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Js).parse(t,e,!1);return this._errors=n.errors,ct(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(t," elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),ct(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var o=r.value;if(this._msgIdToHtml.hasOwnProperty(o))this._addError(t,"Duplicated translations for msg "+o);else{var i=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content,u=a.slice(i,s);this._msgIdToHtml[o]=u}}else this._addError(t,' misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),Pa=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Js).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ct(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new ks(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return ct(this,t.cases).forEach(function(e){n[e.value]=new Ns(e.nodes,t.sourceSpan)}),new Is(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ct(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new Ds("",n.value,t.sourceSpan);this._addError(t,' misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),Aa=function(t){function e(){return t.call(this,l)||this}return Qr(e,t),e.prototype.parse=function(e,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=Yi),t.prototype.parse.call(this,e,n,r,o)},e}(As);Aa.decorators=[{type:q}],Aa.ctorParameters=function(){return[]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Oa=function(){function t(t,e,n,r,o,i){void 0===t&&(t={}),void 0===o&&(o=Kr.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new Ma(t,e,n,r,o,i)}return t.load=function(e,n,r,o,i){var s=r.load(e,n),a=s.locale;return new t(s.i18nNodesByMsgId,a,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Ma=function(){function t(t,e,n,r,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new Aa).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,o=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+o+"/>":"<"+r+" "+o+">"+t.children.map(function(t){return t.visit(n)}).join("")+""},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var e,n=this,r=this._digest(t),o=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(r))e=this._i18nNodesByMsgId[r],this._mapper=function(t){return o?o.toInternalName(t):t};else{if(this._missingTranslationStrategy===Kr.MissingTranslationStrategy.Error){var i=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+r+'"'+i)}else if(this._console&&this._missingTranslationStrategy===Kr.MissingTranslationStrategy.Warning){var i=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+r+'"'+i)}e=t.nodes,this._mapper=function(t){return t}}var s=e.map(function(t){return t.visit(n)}).join(""),a=this._contextStack.pop();return this._srcMsg=a.msg,this._mapper=a.mapper,s},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),ka=function(){function t(t,e,n,r,o){if(void 0===r&&(r=Kr.MissingTranslationStrategy.Warning),this._htmlParser=t,e){var i=le(n);this._translationBundle=Oa.load(e,"i18n",i,r,o)}}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Yi);var o=this._htmlParser.parse(t,e,n,r);return this._translationBundle?o.errors.length?new Ps(o.rootNodes,o.errors):Pt(o.rootNodes,this._translationBundle,r,[],{}):o},t}(),Na=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+n+"/"+e}("core"),Ia=function(){function t(){}return t}();Ia.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:Na,runtime:Kr.ANALYZE_FOR_ENTRY_COMPONENTS},Ia.ElementRef={name:"ElementRef",moduleUrl:Na,runtime:Kr.ElementRef},Ia.NgModuleRef={name:"NgModuleRef",moduleUrl:Na,runtime:Kr.NgModuleRef},Ia.ViewContainerRef={name:"ViewContainerRef",moduleUrl:Na,runtime:Kr.ViewContainerRef},Ia.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:Na,runtime:Kr.ChangeDetectorRef},Ia.QueryList={name:"QueryList",moduleUrl:Na,runtime:Kr.QueryList},Ia.TemplateRef={name:"TemplateRef",moduleUrl:Na,runtime:Kr.TemplateRef},Ia.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:Na,runtime:Kr["ɵCodegenComponentFactoryResolver"]},Ia.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:Na,runtime:Kr.ComponentFactoryResolver},Ia.ComponentFactory={name:"ComponentFactory",moduleUrl:Na,runtime:Kr.ComponentFactory},Ia.ComponentRef={name:"ComponentRef",moduleUrl:Na,runtime:Kr.ComponentRef},Ia.NgModuleFactory={name:"NgModuleFactory",moduleUrl:Na,runtime:Kr.NgModuleFactory},Ia.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:Na,runtime:Kr["ɵNgModuleInjector"]},Ia.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:Na,runtime:Kr["ɵregisterModuleFactory"]},Ia.Injector={name:"Injector",moduleUrl:Na,runtime:Kr.Injector},Ia.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:Na,runtime:Kr.ViewEncapsulation},Ia.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:Na,runtime:Kr.ChangeDetectionStrategy},Ia.SecurityContext={name:"SecurityContext",moduleUrl:Na,runtime:Kr.SecurityContext},Ia.LOCALE_ID={name:"LOCALE_ID",moduleUrl:Na,runtime:Kr.LOCALE_ID},Ia.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:Na,runtime:Kr.TRANSLATIONS_FORMAT},Ia.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:Na,runtime:Kr["ɵinlineInterpolate"]},Ia.interpolate={name:"ɵinterpolate",moduleUrl:Na,runtime:Kr["ɵinterpolate"]},Ia.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:Na,runtime:Kr["ɵEMPTY_ARRAY"]},Ia.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:Na,runtime:Kr["ɵEMPTY_MAP"]},Ia.Renderer={name:"Renderer",moduleUrl:Na,runtime:Kr.Renderer},Ia.viewDef={name:"ɵvid",moduleUrl:Na,runtime:Kr["ɵvid"]},Ia.elementDef={name:"ɵeld",moduleUrl:Na,runtime:Kr["ɵeld"]},Ia.anchorDef={name:"ɵand",moduleUrl:Na,runtime:Kr["ɵand"]},Ia.textDef={name:"ɵted",moduleUrl:Na,runtime:Kr["ɵted"]},Ia.directiveDef={name:"ɵdid",moduleUrl:Na,runtime:Kr["ɵdid"]},Ia.providerDef={name:"ɵprd",moduleUrl:Na,runtime:Kr["ɵprd"]},Ia.queryDef={name:"ɵqud",moduleUrl:Na,runtime:Kr["ɵqud"]},Ia.pureArrayDef={name:"ɵpad",moduleUrl:Na,runtime:Kr["ɵpad"]},Ia.pureObjectDef={name:"ɵpod",moduleUrl:Na,runtime:Kr["ɵpod"]},Ia.purePipeDef={name:"ɵppd",moduleUrl:Na,runtime:Kr["ɵppd"]},Ia.pipeDef={name:"ɵpid",moduleUrl:Na,runtime:Kr["ɵpid"]},Ia.nodeValue={name:"ɵnov",moduleUrl:Na,runtime:Kr["ɵnov"]},Ia.ngContentDef={name:"ɵncd",moduleUrl:Na,runtime:Kr["ɵncd"]},Ia.unwrapValue={name:"ɵunv",moduleUrl:Na,runtime:Kr["ɵunv"]},Ia.createRendererType2={name:"ɵcrt",moduleUrl:Na,runtime:Kr["ɵcrt"]},Ia.RendererType2={name:"RendererType2",moduleUrl:Na,runtime:null},Ia.ViewDefinition={name:"ɵViewDefinition",moduleUrl:Na,runtime:null},Ia.createComponentFactory={name:"ɵccf",moduleUrl:Na,runtime:Kr["ɵccf"]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Ra=["zero","one","two","few","many","other"],Da=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Va=function(t){function e(e,n){return t.call(this,e,n)||this}return Qr(e,t),e}(fs),La=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new gs(t.name,t.attrs,ct(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?ve(t,this.errors):me(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Fa=function(t){function e(e,n){return t.call(this,n,e)||this}return Qr(e,t),e}(fs),ja=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=Ee(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(M(t.token))&&e.viewProviders.set(M(t.token),!0)})}return t}(),Ha=function(){function t(t,e,n,r,o,i,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._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=be(l,u,t.errors),this._contentQueries=Ce(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=de(Ia.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||de(Ia.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(pe(Ia.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(M(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(){return Array.from(this._transformedProviders.values())},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,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,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,o=M(r),i=n.get(o);i||(i=[],n.set(o,i)),i.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,o=0;null!==r;)e=r._contentQueries.get(M(t)),e&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||o<=1})),r._directiveAsts.length>0&&o++,r=r._parent;return e=this.viewContext.viewQueries.get(M(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,o=this._allProviders.get(M(e));if(!o||(t===ao.Directive||t===ao.PublicService)&&o.providerType===ao.PrivateService||(t===ao.PrivateService||t===ao.PublicService)&&o.providerType===ao.Builtin)return null;var i=this._transformedProviders.get(M(e));if(i)return i;if(null!=this._seenProviders.get(M(e)))return this.viewContext.errors.push(new Fa("Cannot instantiate cyclic dependency! "+O(e),this._sourceSpan)),null;this._seenProviders.set(M(e),!0);var s=o.providers.map(function(t){var e=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(o.providerType,{token:t.useExisting},n);null!=a.token?i=a.token:(i=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(o.providerType,t,n)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(o.providerType,t,n)})}return ge(t,{useExisting:i,useValue:e,deps:s})});return i=_e(o,{eager:n,providers:s}),this._transformedProviders.set(M(e),i),i},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===ao.Directive||t===ao.Component){if(M(e.token)===pe(Ia.Renderer)||M(e.token)===pe(Ia.ElementRef)||M(e.token)===pe(Ia.ChangeDetectorRef)||M(e.token)===pe(Ia.TemplateRef))return e;M(e.token)===pe(Ia.ViewContainerRef)&&(this._hasViewContainer=!0)}if(M(e.token)===pe(Ia.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,o=n,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,n)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(o=!1),i=r._getLocalDependency(ao.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===M(e.token)||null!=this.viewContext.viewProviders.get(M(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Fa("No provider for "+O(e.token),this._sourceSpan)),i},t}(),Ua=function(){function t(t,e,n){var r=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){we([{token:{identifier:t},useClass:t}],ao.PublicService,!0,n,r._errors,r._allProviders)}),we(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),ao.PublicService,!1,n,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(M(t));if(!r)return null;var o=this._transformedProviders.get(M(t));if(o)return o;if(null!=this._seenProviders.get(M(t)))return this._errors.push(new Fa("Cannot instantiate cyclic dependency! "+O(t),r.sourceSpan)),null;this._seenProviders.set(M(t),!0);var i=r.providers.map(function(t){var o=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?i=a.token:(i=null,o=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return ge(t,{useExisting:i,useValue:o,deps:s})});return o=_e(r,{eager:e,providers:i}),this._transformedProviders.set(M(t),o),o},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(M(t.token)===pe(Ia.Injector)||M(t.token)===pe(Ia.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var o=t;return t.isSelf&&!r&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Fa("No provider for "+O(t.token),n))),o},t}(),Ba=function(){function t(){}return t.prototype.hasProperty=function(t,e,n){},t.prototype.hasElement=function(t,e){},t.prototype.securityContext=function(t,e,n){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(t){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(t){},t.prototype.validateAttribute=function(t){},t.prototype.normalizeAnimationStyleProperty=function(t){},t.prototype.normalizeAnimationStyleValue=function(t,e,n){},t}(),qa=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),Ga=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,za=/\/\*.+?\*\//g,Wa=/^([^:\/?#]+):/,Ka={};Ka.DEFAULT=0,Ka.LITERAL_ATTR=1,Ka.ANIMATION=2,Ka[Ka.DEFAULT]="DEFAULT",Ka[Ka.LITERAL_ATTR]="LITERAL_ATTR",Ka[Ka.ANIMATION]="ANIMATION";var Qa=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===Ka.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Ka.ANIMATION},enumerable:!0,configurable:!0}),t}(),Xa=function(){function t(t,e,n,r,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?r.parsePropertyBinding(e,i,!0,n,[],o):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",n)}),o.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?n.parseEvent(o,i,e,[],r):n._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,o,i){for(var s=this._parseTemplateBindings(t,e,n),a=0;a1)if("attr"==i[0]){o=i[1],this._validatePropertyOrAttributeName(o,e.sourceSpan,!0),s=Ae(this._schemaRegistry,t,o,!0);var a=o.indexOf(":");if(a>-1){var u=o.substring(0,a),l=o.substring(a+1);o=c(u,l)}r=co.Attribute}else"class"==i[0]?(o=i[1],r=co.Class,s=[Kr.SecurityContext.NONE]):"style"==i[0]&&(n=i.length>2?i[2]:null,o=i[1],r=co.Style,s=[Kr.SecurityContext.STYLE]);return null===o&&(o=this._schemaRegistry.getMappedPropName(e.name),s=Ae(this._schemaRegistry,t,o,!1),r=co.Property,this._validatePropertyOrAttributeName(o,e.sourceSpan,!1)),new $r(o,r,s[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,o){Pe(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,o)):this._parseEvent(t,e,n,r,o)},t.prototype._parseAnimationEvent=function(t,e,n,r){var o=f(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new Jr(i,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,o){var i=h(t,[null,t]),s=i[0],a=i[1],u=this._parseAction(e,n);r.push([t,u.source]),o.push(new Jr(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof Wo?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=hs.ERROR),this._targetErrors.push(new fs(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n element is deprecated. Use instead",hu={},fu=new Kr.InjectionToken("TemplateTransforms"),du=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return Qr(e,t),e}(fs),yu=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),vu=function(){function t(t,e,n,r,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=n,this._htmlParser=r,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,n,r,o,i){var s=this.tryParse(t,e,n,r,o,i),a=s.errors.filter(function(t){return t.level===hs.WARNING}).filter(ke(["The template attribute is deprecated. Use an ng-template element instead.",pu])),u=s.errors.filter(function(t){return t.level===hs.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){throw g("Template parse errors:\n"+u.join("\n"))}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,n,r,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,n,r,o)},t.prototype.tryParseHtml=function(t,e,n,o,i){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=De(n),l=De(o),p=new ja(e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new Xa(this._exprParser,h,this._schemaRegistry,l,a),d=new mu(this._config,p,c,f,this._schemaRegistry,i,a);s=ct(d,t.rootNodes,wu),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new yu(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new yu(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=ye(t.rootNodes);n.push.apply(n,r.errors),t=new Ps(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return Zi.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 o=new du('Reference "#'+r+'" is defined several times',t.sourceSpan,hs.ERROR);e.push(o)}})})},t}();vu.decorators=[{type:q}],vu.ctorParameters=function(){return[{type:Uo},{type:ss},{type:Ba},{type:ka},{type:Kr["ɵConsole"]},{type:Array,decorators:[{type:Kr.Optional},{type:Kr.Inject,args:[fu]}]}]};var mu=function(){function t(t,e,n,r,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=r,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new bo,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,n.forEach(function(t,e){var n=_o.parse(t.selector);a.selectorMatcher.addSelectables(n,t),a.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(lu),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new Zr(r,n,t.sourceSpan):new Xr(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new Yr(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,o=t.name,i=Oe(t);if(i.type===su.SCRIPT||i.type===su.STYLE)return null;if(i.type===su.STYLESHEET&&xe(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,y=[],v=Le(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,hs.WARNING)});t.attrs.forEach(function(t){var e,r,o=n._parseAttr(v,t,s,a,l,u,c),i=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==i?(n._reportError("The template attribute is deprecated. Use an ng-template element instead.",t.sourceSpan,hs.WARNING),e=t.value):i.startsWith("*")&&(e=t.value,r=i.substring("*".length)+":");var m=null!=e;m&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),o||m||(y.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var m=Ie(o,s),g=this._parseDirectives(this.selectorMatcher,m),_=g.directives,b=g.matchElement,w=[],E=new Set,C=this._createDirectiveAsts(v,t.name,_,a,u,t.sourceSpan,w,E),S=this._createElementPropertyAsts(t.name,a,E),x=e.isTemplateElement||d,T=new Ha(this.providerViewContext,e.providerContext,x,C,y,w,v,r,t.sourceSpan),P=ct(i.nonBindable?Eu:this,t.children,bu.create(v,C,v?e.providerContext:T));T.afterElement();var A,O=null!=i.projectAs?_o.parse(i.projectAs)[0]:m,M=e.findNgContentIndex(O);if(i.type===su.NG_CONTENT)t.children&&!t.children.every(Re)&&this._reportError(" element cannot have content.",t.sourceSpan),A=new uo(this.ngContentCount++,d?null:M,t.sourceSpan);else if(v)this._assertAllEventsPublishedByDirectives(C,l),this._assertNoComponentsNorElementBindingsOnTemplate(C,S,t.sourceSpan),A=new ro(y,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(C,t.sourceSpan);var k=d?null:e.findNgContentIndex(O);A=new no(o,y,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:k,t.sourceSpan,t.endSourceSpan||null)}if(d){var N=this.contentQueryStartId,I=Ie(uu,h),R=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,V=this._createDirectiveAsts(!0,t.name,R,p,[],t.sourceSpan,[],D),L=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(V,L,t.sourceSpan);var F=new Ha(this.providerViewContext,e.providerContext,e.isTemplateElement,V,[],[],!0,N,t.sourceSpan);F.afterElement(),A=new ro([],[],[],f,F.transformedDirectiveAsts,F.transformProviders,F.transformedHasViewContainer,F.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,n,r,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/),p=!1;if(null!==l)if(p=!0,null!=l[1])this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r);else if(l[2])if(t){var h=l[7];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[3]){var h=l[7];this._parseReference(h,u,c,i)}else l[4]?this._bindingParser.parseEvent(l[7],u,c,n,o):l[5]?(this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r),this._parseAssignmentEvent(l[7],u,c,n,o)):l[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[8]?(this._bindingParser.parsePropertyBinding(l[8],u,!1,c,n,r),this._parseAssignmentEvent(l[8],u,c,n,o)):l[9]?this._bindingParser.parsePropertyBinding(l[9],u,!1,c,n,r):l[10]&&this._bindingParser.parseEvent(l[10],u,c,n,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},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 eo(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 _u(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,o)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,n,r,o,i,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new ps(i.start,i.end,"Directive "+C(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new to(e.name,fe(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new io(t,p,h,f,d,n)});return o.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=de(Ia.TemplateRef)),s.push(new to(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);e&&!e.isLiteral||o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(r.add(s.name),Ve(s.expression)||n.push(new oo(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,o=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||o.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},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 C(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,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.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){var n=t.directive.outputs[e];r.add(n)})}),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(e.type===co.Property&&!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!Ve(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=hs.ERROR),this._targetErrors.push(new fs(e,t,n))},t}(),gu=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Oe(t);if(n.type===su.SCRIPT||n.type===su.STYLE||n.type===su.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),o=Ie(t.name,r),i=e.findNgContentIndex(o),s=ct(this,t.children,wu);return new no(t.name,ct(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new Yr(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(lu);return new Xr(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),_u=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),bu=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 o=new bo,i=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u0?e[0]:null},t}(),wu=new bu(!0,new bo,null,null),Eu=new gu,Cu=function(){function t(){}return t.prototype.get=function(t){return null},t}(),Su={provide:Kr.PACKAGE_ROOT_URL,useValue:"/"},xu=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=Ge(t,n));var r=Ue(n),o=this._packagePrefix;if(null!=o&&null!=r&&"package"==r[Pu.Scheme]){var i=r[Pu.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return n},t}();xu.decorators=[{type:q}],xu.ctorParameters=function(){return[{type:void 0,decorators:[{type:Kr.Inject,args:[Kr.PACKAGE_ROOT_URL]}]}]};var Tu=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Pu={};Pu.Scheme=1,Pu.UserInfo=2,Pu.Domain=3,Pu.Port=4,Pu.Path=5,Pu.QueryData=6,Pu.Fragment=7,Pu[Pu.Scheme]="Scheme",Pu[Pu.UserInfo]="UserInfo",Pu[Pu.Domain]="Domain",Pu[Pu.Port]="Port",Pu[Pu.Path]="Path",Pu[Pu.QueryData]="QueryData",Pu[Pu.Fragment]="Fragment";/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Au=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var e=this,r=null,o=void 0;if(v(t.template)){if(v(t.templateUrl))throw g("'"+n.i(Kr["ɵstringify"])(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw g("The template specified for component "+n.i(Kr["ɵstringify"])(t.componentType)+" is not a string");r=this.normalizeTemplateSync(t),o=Promise.resolve(r)}else{if(!v(t.templateUrl))throw g("No template specified for component "+n.i(Kr["ɵstringify"])(t.componentType));if("string"!=typeof t.templateUrl)throw g("The templateUrl specified for component "+n.i(Kr["ɵstringify"])(t.componentType)+" is not a string");o=this.normalizeTemplateAsync(t)}return r&&0===r.styleUrls.length?new To(r):new To(null,o.then(function(t){return e.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(n).then(function(r){return e.normalizeLoadedTemplate(t,r,n)})},t.prototype.normalizeLoadedTemplate=function(t,e,n){var r=!!t.template,o=Zi.fromArray(t.interpolation),i=this._htmlParser.parse(e,D({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,o);if(i.errors.length>0){throw g("Template parse errors:\n"+i.errors.join("\n"))}var s=this.normalizeStylesheet(new Ro({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),a=new Ou;ct(a,i.rootNodes);var u=this.normalizeStylesheet(new Ro({styles:a.styles,styleUrls:a.styleUrls,moduleUrl:n})),c=t.encapsulation;null==c&&(c=this._config.defaultEncapsulation);var l=s.styles.concat(u.styles),p=s.styleUrls.concat(u.styleUrls);return c===Kr.ViewEncapsulation.Emulated&&0===l.length&&0===p.length&&(c=Kr.ViewEncapsulation.None),new Do({encapsulation:c,template:e,templateUrl:n,styles:l,styleUrls:p,ngContentSelectors:a.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:r,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Do({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return n._fetch(t).then(function(r){var o=n.normalizeStylesheet(new Ro({styles:[r],moduleUrl:t}));return e.set(t,o),n._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(t){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(xe).map(function(t){return e._urlResolver.resolve(n,t)}),o=t.styles.map(function(t){var o=Te(e._urlResolver,n,t);return r.push.apply(r,o.styleUrls),o.style});return new Ro({styles:o,styleUrls:r,moduleUrl:n})},t}();Au.decorators=[{type:q}],Au.ctorParameters=function(){return[{type:Cu},{type:xu},{type:Aa},{type:Uo}]};var Ou=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=Oe(t);switch(n.type){case su.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case su.STYLE:var r="";t.children.forEach(function(t){t instanceof ds&&(r+=t.value)}),this.styles.push(r);break;case su.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,ct(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){ct(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){ct(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}(),Mu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n', or 'attr.'.");i["["+e.hostPropertyName+"]"]=t}else i["["+t+"]"]=t}),e[t].filter(function(t){return t&&t instanceof Kr.HostListener}).forEach(function(e){var n=e.args||[];i["("+e.eventName+")"]=t+"("+n.join(",")+")"});var u=We(e[t],function(t){return t instanceof Kr.Query});u&&(s[t]=u)}),this._merge(t,r,o,i,s,n)},t.prototype._extractPublicName=function(t){return h(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var o=t[r],i=this._extractPublicName(o);e.has(i)||(e.add(i),n.push(o))}return n.reverse()},t.prototype._merge=function(t,e,n,r,o,i){var s=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?Mu({},t.host,r):r,c=t.queries?Mu({},t.queries,o):o;return t instanceof Kr.Component?new Kr.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,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}):new Kr.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}();ku.decorators=[{type:q}],ku.ctorParameters=function(){return[{type:Kr["ɵReflectorReader"]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Nu=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Iu=/\.ngfactory\./,Ru=function(){function t(t){void 0===t&&(t=Kr["ɵreflector"]),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(tn)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var r=We(this._reflector.annotations(t),tn);if(r)return r;if(e)throw new Error("No NgModule metadata found for '"+n.i(Kr["ɵstringify"])(t)+"'.");return null},t}();Ru.decorators=[{type:q}],Ru.ctorParameters=function(){return[{type:Kr["ɵReflectorReader"]}]};var Du=function(){function t(t){void 0===t&&(t=Kr["ɵreflector"]),this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(n.i(Kr.resolveForwardRef)(t));return e&&e.some(en)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var r=this._reflector.annotations(n.i(Kr.resolveForwardRef)(t));if(r){var o=We(r,en);if(o)return o}if(e)throw new Error("No Pipe decorator found on "+n.i(Kr["ɵstringify"])(t));return null},t}();Du.decorators=[{type:q}],Du.ctorParameters=function(){return[{type:Kr["ɵReflectorReader"]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Vu=function(){function t(){}return t.prototype.isLibraryFile=function(t){return!1},t.prototype.getLibraryFileName=function(t){return null},t.prototype.resolveSummary=function(t){return null},t.prototype.getSymbolsOf=function(t){return[]},t.prototype.getImportAs=function(t){return t},t}();Vu.decorators=[{type:q}],Vu.ctorParameters=function(){return[]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Lu=new Kr.InjectionToken("ErrorCollector"),Fu=function(){function t(t,e,n,r,o,i,s,a,u,c,l){void 0===c&&(c=Kr["ɵreflector"]),this._config=t,this._ngModuleResolver=e,this._directiveResolver=n,this._pipeResolver=r,this._summaryResolver=o,this._schemaRegistry=i,this._directiveNormalizer=s,this._console=a,this._staticSymbolCache=u,this._reflector=c,this._errorCollector=l,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return 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 r=null,o=function(){if(!r)throw new Error("Illegal state: Class "+e+" for type "+n.i(Kr["ɵstringify"])(t)+" is not compiled yet!");return r.apply(this,arguments)};return o.setDelegate=function(t){r=t,o.prototype=t.prototype},o.overriddenName=e,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof lo?this._staticSymbolCache.get(Ke(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,x(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,P(t))},t.prototype.getHostComponentType=function(t){var e=C({reference:t})+"_Host";if(t instanceof lo)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof lo?this._staticSymbolCache.get(Ke(t.filePath),T(t)):{}},t.prototype.getComponentFactory=function(t,e,r,o){if(e instanceof lo)return this._staticSymbolCache.get(Ke(e.filePath),A(e));var i=this.getHostComponentViewClass(e);return n.i(Kr["ɵccf"])(t,e,i,r,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof lo||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n||null)}return n&&n.summaryKind===e?n:null},t.prototype._loadDirectiveMetadata=function(t,e,r){var o=this;if(this._directiveCache.has(e))return null;e=n.i(Kr.resolveForwardRef)(e);var i=this.getNonNormalizedDirectiveMetadata(e),s=i.annotation,a=i.metadata,u=function(t){var n=new Vo({isHost:!1,type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(e,n),o._summaryCache.set(e,n.toSummary()),n};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:an(this._reflector,e,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return l.syncResult?(u(l.syncResult),null):r?(this._reportError(ln(e),e),null):l.asyncResult.then(u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=n.i(Kr.resolveForwardRef)(t)))return null;var r=this._nonNormalizedDirectiveCache.get(t);if(r)return r;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i=void 0;if(o instanceof Kr.Component){G("styles",o.styles),G("styleUrls",o.styleUrls),z("interpolation",o.interpolation);var s=o.animations;i=new Do({encapsulation:m(o.encapsulation),template:m(o.template),templateUrl:m(o.templateUrl),styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:m(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=o.selector;o instanceof Kr.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+cn(t)+'"',[],t)),o.entryComponents&&(c=on(o.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(g("Directive "+cn(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+cn(t)+'"',[],t));var h=[],f=[];null!=o.queries&&(h=this._getQueriesMetadata(o.queries,!1,t),f=this._getQueriesMetadata(o.queries,!0,t));var d=Vo.create({isHost:!1,selector:l,exportAs:m(o.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs||[],outputs:o.outputs||[],host:o.host||{},providers:p||[],viewProviders:u||[],queries:h||[],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)),r={metadata:d,annotation:o},this._nonNormalizedDirectiveCache.set(t,r),r},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(g("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+cn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Io.Directive);return e||this._reportError(g("Illegal state: Could not load the summary for directive "+cn(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Io.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);e=n?n.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=this.getNgModuleMetadata(t,n),i=[];return o&&(o.declaredDirectives.forEach(function(n){var o=r._loadDirectiveMetadata(t,n.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,e){var r=this;void 0===e&&(e=!0),t=n.i(Kr.resolveForwardRef)(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,e);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[];i.imports&&on(i.imports).forEach(function(e){var n=void 0;if(sn(e))n=e;else if(e&&e.ngModule){var o=e;n=o.ngModule,o.providers&&p.push.apply(p,r._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+cn(n)+"'",[],e))}if(!n)return void r._reportError(g("Unexpected value '"+cn(e)+"' imported by the module '"+cn(t)+"'"),t);if(!r._checkSelfImport(t,n)){var i=r.getNgModuleSummary(n);if(!i)return void r._reportError(g("Unexpected "+r._getTypeDescriptor(e)+" '"+cn(e)+"' imported by the module '"+cn(t)+"'. Please add a @NgModule annotation."),t);c.push(i)}}),i.exports&&on(i.exports).forEach(function(e){if(!sn(e))return void r._reportError(g("Unexpected value '"+cn(e)+"' exported by the module '"+cn(t)+"'"),t);var n=r.getNgModuleSummary(e);n?l.push(n):a.push(r._getIdentifierMetadata(e))});var y=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&on(i.declarations).forEach(function(e){if(!sn(e))return void r._reportError(g("Unexpected value '"+cn(e)+"' declared by the module '"+cn(t)+"'"),t);var n=r._getIdentifierMetadata(e);if(r._directiveResolver.isDirective(e))y.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r._pipeResolver.isPipe(e))return void r._reportError(g("Unexpected "+r._getTypeDescriptor(e)+" '"+cn(e)+"' declared by the module '"+cn(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);y.addPipe(n),y.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}});var v=[],m=[];return a.forEach(function(e){if(y.directivesSet.has(e.reference))v.push(e),y.addExportedDirective(e);else{if(!y.pipesSet.has(e.reference))return void r._reportError(g("Can't export "+r._getTypeDescriptor(e.reference)+" "+cn(e.reference)+" from "+cn(t)+" as it was neither declared nor imported!"),t);m.push(e),y.addExportedPipe(e)}}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+cn(t)+"'",[],t)),i.entryComponents&&h.push.apply(h,on(i.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),i.bootstrap&&on(i.bootstrap).forEach(function(e){if(!sn(e))return void r._reportError(g("Unexpected value '"+cn(e)+"' used in the bootstrap property of module '"+cn(t)+"'"),t);f.push(r._getIdentifierMetadata(e))}),h.push.apply(h,f.map(function(t){return r._getEntryComponentMetadata(t.reference)})),i.schemas&&d.push.apply(d,on(i.schemas)),o=new Fo({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:v,declaredPipes:u,exportedPipes:m,importedModules:c,exportedModules:l,transitiveModule:y,id:i.id||null}),h.forEach(function(t){return y.addEntryComponent(t)}),p.forEach(function(t){return y.addProvider(t,o.type)}),y.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(g("'"+cn(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);if(n&&n!==e)return void this._reportError(g("Type "+cn(t)+" is part of the declarations of 2 modules: "+cn(n)+" and "+cn(e)+"! Please consider moving "+cn(t)+" to a higher module that imports "+cn(n)+" and "+cn(e)+". You can also create a new NgModule that exports and includes "+cn(t)+" then import that NgModule in "+cn(n)+" and "+cn(e)+"."),e);this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new jo,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 o=M(t.provider.token),i=r.get(o);i||(i=new Set,r.set(o,i));var s=t.module.reference;!e.has(o)&&i.has(s)||(i.add(s),e.add(o),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 t=n.i(Kr.resolveForwardRef)(t),{reference:t}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return t.constructor===Kr.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Io.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Io.Injectable);return n?n.type:this._getTypeMetadata(t,e)},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:Kr["ɵLIFECYCLE_HOOKS_VALUES"].filter(function(t){return $e(t,r.reference)})}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),t=n.i(Kr.resolveForwardRef)(t),{reference:t,diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(g("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+cn(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Io.Pipe);return e||this._reportError(g("Illegal state: Could not load the summary for pipe "+cn(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=n.i(Kr.resolveForwardRef)(t);var e=this._pipeResolver.resolve(t),r=new Lo({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,r),this._summaryCache.set(t,r.toSummary()),r},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=!1,i=e||this._reflector.parameters(t)||[],s=i.map(function(t){var e=!1,n=!1,i=!1,s=!1,a=!1,u=null;return Array.isArray(t)?t.forEach(function(t){t instanceof Kr.Host?n=!0:t instanceof Kr.Self?i=!0:t instanceof Kr.SkipSelf?s=!0:t instanceof Kr.Optional?a=!0:t instanceof Kr.Attribute?(e=!0,u=t.attributeName):t instanceof Kr.Inject?u=t.token:t instanceof Kr.InjectionToken?u=t:sn(t)&&null==u&&(u=t)}):u=t,null==u?(o=!0,null):{isAttribute:e,isHost:n,isSelf:i,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(o){var a=s.map(function(t){return t?cn(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+cn(t)+": ("+a+").";n?this._reportError(g(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v5.x")}return s},t.prototype._getTokenMetadata=function(t){t=n.i(Kr.resolveForwardRef)(t);return"string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,r,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,e,r,o);else{a=n.i(Kr.resolveForwardRef)(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Ho(a.provide,a);else{if(!sn(a)){if(void 0===a)return void s._reportError(g("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,n){return n0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new rl(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?kn(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,n){void 0===n&&(n=0);for(var r=new Zc(e),o=!1,i=function(){o||(r.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;s0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(t,e){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitDeclareVarStmt=function(t,e){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(t){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case $u.Super:n="super";break;case $u.This:n="this";break;case $u.CatchError:n=el.name;break;case $u.CatchStack:n=nl.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,Mn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitExternalExpr=function(t,e){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(t,e){},t.prototype.visitDeclareFunctionStmt=function(t,e){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case Zu.Equals:n="==";break;case Zu.Identical:n="===";break;case Zu.NotEquals:n="!=";break;case Zu.NotIdentical:n="!==";break;case Zu.And:n="&&";break;case Zu.Or:n="||";break;case Zu.Plus:n="+";break;case Zu.Minus:n="-";break;case Zu.Divide:n="/";break;case Zu.Multiply:n="*";break;case Zu.Modulo:n="%";break;case Zu.Lower:n="<";break;case Zu.LowerEquals:n="<=";break;case Zu.Bigger:n=">";break;case Zu.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var n=t.entries.length>1;return e.print(t,"[",n),e.incIndent(),this.visitAllExpressions(t.entries,e,",",n),e.decIndent(),e.print(t,"]",n),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.length>1;return e.print(t,"{",r),e.incIndent(),this.visitAllObjects(function(r){e.print(t,Mn(r.key,n._escapeDollarInStrings,r.quoted)+": "),r.value.visitExpression(n,e)},t.entries,e,",",r),e.decIndent(),e.print(t,"}",r),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n,r){var o=this;void 0===r&&(r=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,n,r)},t.prototype.visitAllObjects=function(t,e,n,r,o){void 0===o&&(o=!1);for(var i=0;i0&&n.print(null,r,o),t(e[i]);o&&n.println()},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),sl="/debug/lib",al=(function(){function t(t){this._importResolver=t}t.prototype.emitStatements=function(t,e,n,r,o){var i=this;void 0===o&&(o="");var s=new al(e,this._importResolver),a=ol.createRoot(r);s.visitAllStatements(n,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,n){var r=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+r+"} from '"+i._importResolver.fileNameToModuleName(n,e)+"';")}),s.importsWithPrefixes.forEach(function(t,n){u.push("import * as "+t+" from '"+i._importResolver.fileNameToModuleName(n,e)+"';")});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")}}(),function(t){function e(e,n){var r=t.call(this,!1)||this;return r._genFilePath=e,r._importResolver=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return Qr(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!=Qu?(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.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof uc&&!t.type){var n=this._resolveStaticSymbol(t.value.value),r=n.name,o=n.filePath;if(0===n.members.length&&o!==this._genFilePath){var i=this.reexports.get(o);return i||(i=[],this.reexports.set(o,i)),i.push({name:r,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(xc.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},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),e.isExportedVar(t.name)&&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(xc.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(xc.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(xc.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 e.print(t,"("),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.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&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 ("+el.name+") {"),e.incIndent();var n=[nl.set(el.prop("stack",null)).toDeclStmt(null,[xc.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case Bu.Bool:n="boolean";break;case Bu.Dynamic:n="any";break;case Bu.Function:n="Function";break;case Bu.Number:case Bu.Int:n="number";break;case Bu.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),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 rc.ConcatArray:e="concat";break;case rc.SubscribeObservable:e="subscribe";break;case rc.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._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof lo))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var n=this._importResolver.getTypeArity(e)||void 0,r=this._importResolver.getImportAs(e)||e;return{name:r.name,filePath:r.filePath,members:r.members,arity:n}},e.prototype._visitIdentifier=function(t,e,n){var r=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),n.print(null,c+".")}if(a.length?(n.print(null,i),n.print(null,"."),n.print(null,a.join("."))):n.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(n.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),p>0)for(var h=0;h0||l>0)&&n.print(null,","),n.print(null,"any");n.print(null,">")}}},e.prototype._printColonType=function(t,e,n){t!==Qu&&(e.print(null,":"),this.visitType(t,e,n))},e}(il)),ul={};In(Kr.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),In(Kr.SecurityContext.STYLE,["*|style"]),In(Kr.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),In(Kr.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var cl="boolean",ll="number",pl="string",hl="object",fl=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],dl={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},yl=function(t){function e(){var e=t.call(this)||this;return e._schema={},fl.forEach(function(t){var n={},r=t.split("|"),o=r[0],i=r[1],s=i.split(","),a=o.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){n[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=cl;break;case"#":n[t.substring(1)]=ll;break;case"%":n[t.substring(1)]=hl;break;default:n[t]=pl}})}),e}return Qr(e,t),e.prototype.hasProperty=function(t,e,n){if(n.some(function(t){return t.name===Kr.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(i(t)||s(t))return!1;if(n.some(function(t){return t.name===Kr.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]},e.prototype.hasElement=function(t,e){if(e.some(function(t){return t.name===Kr.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(i(t)||s(t))return!0;if(e.some(function(t){return t.name===Kr.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},e.prototype.securityContext=function(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var r=ul[t+"|"+e];return r||((r=ul["*|"+e])||Kr.SecurityContext.NONE)},e.prototype.getMappedPropName=function(t){return dl[t]||t},e.prototype.getDefaultComponentElementName=function(){return"ng-component"},e.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}}return{error:!1}},e.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}}return{error:!1}},e.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},e.prototype.normalizeAnimationStyleProperty=function(t){return p(t)},e.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",o=n.toString().trim(),i=null;if(Rn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(i="Please provide a CSS unit value for "+e+":"+n)}return{error:i,value:o+r}},e}(Ba);yl.decorators=[{type:q}],yl.ctorParameters=function(){return[]};var vl=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=Vn(t);return t=Dn(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(gl,function(){for(var t=[],e=0;e-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(wl,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return Al.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return Ln(t,function(t){var o=t.selector,i=t.content;return"@"!=t.selector[0]?o=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=r._scopeSelectors(t.content,e,n)),new Ul(o,i)})},t.prototype._scopeSelector=function(t,e,n,r){var o=this;return t.split(",").map(function(t){return t.trim().split(Ol)}).map(function(t){var i=t[0],s=t.slice(1);return[function(t){return o._selectorNeedsScoping(t,e)?r?o._applyStrictSelectorScope(t,e,n):o._applySelectorScope(t,e,n):t}(i)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+Ml,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(kl.lastIndex=0,kl.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Pl,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,o){return e+r+n+o})}).replace(kl,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){var r=this;e=e.replace(/\[is=([^\]]*)\]/g,function(t){for(var e=[],n=1;n-1)i=r._applySimpleSelectorScope(t,e,n);else{var s=t.replace(kl,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(i=a[1]+o+a[2]+a[3])}}return i},s=new ml(t);t=s.content();for(var a,u="",c=0,l=/( |>|\+|~(?!=))\s*/g,p=t.indexOf(Tl);null!==(a=l.exec(t));){var h=a[1],f=t.slice(c,a.index).trim();u+=(c>=p?i(f):f)+" "+h+" ",c=l.lastIndex}return u+=i(t.substring(c)),s.restore(u)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(Il,El).replace(Nl,wl)},t}(),ml=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var o="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+o})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),gl=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,_l=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,bl=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,wl="-shadowcsshost",El="-shadowcsscontext",Cl=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Sl=new RegExp("("+wl+Cl,"gim"),xl=new RegExp("("+El+Cl,"gim"),Tl=wl+"-no-combinator",Pl=/-shadowcsshost-no-combinator([^\s]*)/,Al=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Ol=/(?:>>>)|(?:\/deep\/)/g,Ml="([>\\s~+[.,{:][\\s\\S]*)?$",kl=/-shadowcsshost/gim,Nl=/:host/gim,Il=/:host-context/gim,Rl=/\/\*\s*[\s\S]*?\*\//g,Dl=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,Vl=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Ll=/([{}])/g,Fl="{",jl="}",Hl="%BLOCK%",Ul=function(){function t(t,e){this.selector=t,this.content=e}return t}(),Bl=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),ql=function(){function t(t,e,n,r){this.name=t,this.moduleUrl=e,this.isShimmed=n,this.valuePlaceholder=r}return t}(),Gl=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),zl=function(){function t(t,e,n,r,o){this.statements=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=o}return t}(),Wl=function(){function t(t){this._urlResolver=t,this._shadowCss=new vl}return t.prototype.compileComponent=function(t){var e=this,n=t.template,r=[],o=this._compileStyles(t,new Ro({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:S(t.type)}),!0);return n.externalStylesheets.forEach(function(n){var o=e._compileStyles(t,n,!1);r.push(o)}),new Gl(o,r)},t.prototype._compileStyles=function(t,e,n){for(var r=this,o=t.template.encapsulation===Kr.ViewEncapsulation.Emulated,i=e.styles.map(function(t){return En(r._shimIfNeeded(t,o))}),s=[],a=0;a":n=Zu.Bigger;break;case"<=":n=Zu.LowerEquals;break;case">=":n=Zu.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Xn(e,new dc(n,this.visit(t.left,Zl.Expression),this.visit(t.right,Zl.Expression)))},t.prototype.visitChain=function(t,e){return Kn(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return Xn(e,this.visit(t.condition,Zl.Expression).conditional(this.visit(t.trueExp,Zl.Expression),this.visit(t.falseExp,Zl.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,Zl.Expression);return n=t instanceof tp?t.converter(r):this.visit(t.target,Zl.Expression).callFn(r),Xn(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return Qn(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Qn(e,t);for(var n=[En(t.expressions.length)],r=0;r0?Ku:vn(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return x(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var n=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(n.purePipeNodeIndices[t.name]=n._createPipe(null,t))}),!this.parent){var o=fr(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var r=e+1,i=t.first?0:1,s=67108864|vr(o,r,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:yn(he(Ia.queryDef)).callFn([En(s),En(r),new _c([new gc(t.propertyName,En(i))])])}})})}r(this,e),this.parent&&(0===e.length||ir(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:yn(he(Ia.anchorDef)).callFn([En(0),Cc,Cc,En(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var e=this._createNodeExpressions(),n=e.updateRendererStmts,r=e.updateDirectivesStmts,o=e.nodeDefExprs,i=this._createUpdateFn(n),s=this._createUpdateFn(r),a=0;this.parent||this.component.changeDetection!==Kr.ChangeDetectionStrategy.OnPush||(a|=2);var u=new Ac(this.viewName,[new hc(ip.name)],[new Mc(yn(he(Ia.viewDef)).callFn([En(a),gn(o),s,i]))],vn(he(Ia.ViewDefinition)));return t.push(u),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&pn(t).has(up.name)&&n.push(up.set(sp.prop("component")).toDeclStmt(this.compType)),e=wn([new hc(ap.name,Qu),new hc(sp.name,Qu)],n.concat(t),Qu)}else e=Cc;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:4,nodeDef:yn(he(Ia.ngContentDef)).callFn([En(t.ngContentIndex),En(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:yn(he(Ia.textDef)).callFn([En(t.ngContentIndex),gn([En(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var o=t.value,i=o.ast,s=i.expressions.map(function(e,o){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:o,sourceSpan:t.sourceSpan,context:up,value:e})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:yn(he(Ia.textDef)).callFn([En(t.ngContentIndex),gn(i.strings.map(function(t){return En(t)}))]),updateRenderer:s}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var o=this._visitElementOrTemplate(r,t),i=o.flags,s=o.queryMatchesExpr,a=o.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(t.variables,t.children);var c=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|i,nodeDef:yn(he(Ia.anchorDef)).callFn([En(i),s,En(t.ngContentIndex),En(c),n._createElementHandleEventFn(r,a),dn(u.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,o=this.nodes.length;this.nodes.push(null);var s=i(t.name)?null:t.name,a=this._visitElementOrTemplate(o,t),u=a.flags,c=a.usedEvents,l=a.queryMatchesExpr,p=a.hostBindings,h=a.hostEvents,f=[],d=[],y=[];if(s){var v=t.inputs.map(function(t){return{context:up,inputAst:t,dirAst:null}}).concat(p);v.length&&(d=v.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:o,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),f=v.map(function(t){return ar(t.inputAst,t.dirAst)})),y=c.map(function(t){var e=t[0],n=t[1];return gn([En(e),En(n)])})}r(this,t.children);var m=this.nodes.length-o-1,g=t.directives.find(function(t){return t.directive.isComponent}),_=Cc,b=Cc;g&&(b=yn({reference:g.directive.componentViewType}),_=yn({reference:g.directive.rendererType})),this.nodes[o]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|u,nodeDef:yn(he(Ia.elementDef)).callFn([En(u),l,En(t.ngContentIndex),En(m),En(s),s?ur(t):Cc,f.length?gn(f):Cc,y.length?gn(y):Cc,n._createElementHandleEventFn(o,h),b,_]),updateRenderer:d}}},t.prototype._visitElementOrTemplate=function(t,e){var r=this,o=0;e.hasViewContainer&&(o|=8388608);var i=new Map;e.outputs.forEach(function(t){var e=yr(t,null),r=e.name,o=e.target;i.set(n.i(Kr["ɵelementEventFullName"])(o,r),[o,r])}),e.directives.forEach(function(t){t.hostEvents.forEach(function(e){var r=yr(e,t),o=r.name,s=r.target;i.set(n.i(Kr["ɵelementEventFullName"])(s,o),[s,o])})});var s=[],a=[],u=dr(e.directives);u&&this._visitProvider(u,e.queryMatches),e.providers.forEach(function(n,o){var u=void 0,c=void 0;if(e.directives.forEach(function(t,e){t.directive.type.reference===M(n.token)&&(u=t,c=e)}),u){var l=r._visitDirective(n,u,c,t,e.references,e.queryMatches,i,r.staticQueryIds.get(e)),p=l.hostBindings,h=l.hostEvents;s.push.apply(s,p),a.push.apply(a,h)}else r._visitProvider(n,e.queryMatches)});var c=[];return e.queryMatches.forEach(function(t){var e=void 0;M(t.value)===pe(Ia.ElementRef)?e=0:M(t.value)===pe(Ia.ViewContainerRef)?e=3:M(t.value)===pe(Ia.TemplateRef)&&(e=2),null!=e&&c.push(gn([En(t.queryId),En(e)]))}),e.references.forEach(function(e){var n=void 0;e.value?M(e.value)===pe(Ia.TemplateRef)&&(n=2):n=1,null!=n&&(r.refNodeIndices[e.name]=t,c.push(gn([En(e.name),En(n)])))}),e.outputs.forEach(function(t){a.push({context:up,eventAst:t,dirAst:null})}),{flags:o,usedEvents:Array.from(i.values()),queryMatchesExpr:c.length?gn(c):Cc,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,o,i,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,o=33554432|vr(a,r,t.first),i=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:o,nodeDef:yn(he(Ia.queryDef)).callFn([En(o),En(r),new _c([new gc(t.propertyName,En(i))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,i),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,y=p.depsExpr;o.forEach(function(e){e.value&&M(e.value)===M(t.token)&&(u.refNodeIndices[e.name]=c,f.push(gn([En(e.name),En(4)])))}),e.directive.isComponent&&(h|=16384);var v=e.inputs.map(function(t,e){var n=gn([En(e),En(t.directiveName)]);return new gc(t.directiveName,n,!1)}),m=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&m.push(new gc(t,En(e),!1))});var _=[];(e.inputs.length||(163840&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:up,value:t.value})}));var b=yn(he(Ia.nodeValue)).callFn([sp,En(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),E=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:8192|h,nodeDef:yn(he(Ia.directiveDef)).callFn([En(h),f.length?gn(f):Cc,En(l),d,y,v.length?new _c(v):Cc,m.length?new _c(m):Cc]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:E}},t.prototype._visitProvider=function(t,e){var n=this.nodes.length;this.nodes.push(null);var r=this._visitProviderOrDirective(t,e),o=r.flags,i=r.queryMatchExprs,s=r.providerExpr,a=r.depsExpr;this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:o,nodeDef:yn(he(Ia.providerDef)).callFn([En(o),i.length?gn(i):Cc,rr(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,e){var n=0;t.eager||(n|=2048),t.providerType===ao.PrivateService&&(n|=4096),t.lifecycleHooks.forEach(function(e){e!==Kr["ɵLifecycleHooks"].OnDestroy&&t.providerType!==ao.Directive&&t.providerType!==ao.Component||(n|=sr(e))});var r=[];e.forEach(function(e){M(e.value)===M(t.token)&&r.push(gn([En(e.queryId),En(4)]))});var o=tr(t),i=o.providerExpr,s=o.depsExpr,a=o.flags;return{flags:n|a,queryMatchExprs:r,providerExpr:i,depsExpr:s}},t.prototype.getLocal=function(t){if(t==Kl.event.name)return Kl.event;for(var e=sp,n=this;n;n=n.parent,e=e.prop("parent").cast(Ku)){var r=n.refNodeIndices[t];if(null!=r)return yn(he(Ia.nodeValue)).callFn([e,En(r)]);var o=n.variables.find(function(e){return e.name===t});if(o){var i=o.value||"$implicit";return e.prop("context").prop(i)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var n=yn(he(Ia.EMPTY_ARRAY));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:yn(he(Ia.pureArrayDef)).callFn([En(e)])}}),function(t){return lr(r,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var n=yn(he(Ia.EMPTY_MAP));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:yn(he(Ia.pureObjectDef)).callFn([gn(e.map(function(t){return En(t)}))])}}),function(t){return lr(r,t)}},t.prototype.createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var o=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:64,nodeDef:yn(he(Ia.purePipeDef)).callFn([En(n)])}});for(var i=sp,s=this;s.parent;)s=s.parent,i=i.prop("parent").cast(Ku);var a=s.purePipeNodeIndices[e],u=yn(he(Ia.nodeValue)).callFn([i,En(a)]);return function(e){return pr(t.nodeIndex,t.bindingIndex,lr(o,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=yn(he(Ia.nodeValue)).callFn([sp,En(c)]);return function(e){return pr(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,e){var n=this.nodes.length,r=0;e.type.lifecycleHooks.forEach(function(t){t===Kr["ɵLifecycleHooks"].OnDestroy&&(r|=sr(t))});var o=e.type.diDeps.map(or);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:8,nodeDef:yn(he(Ia.pipeDef)).callFn([En(r),yn(e.type),gn(o)])}}),n},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:Un({createLiteralArrayConverter:function(n){return e.createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e.createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e.createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,o,i){var s=[],a=o.map(function(t){var r=t.sourceSpan,o=t.context,i=t.value,a=""+n++,u=o===up?e:null,c=Bn(u,o,i,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return hn(t,r)})),fn(p,r)});return(o.length||i)&&s.push(hn(lr(t,a).toStmt(),r)),s}var e=this,n=0,r=[],o=[],i=this.nodes.map(function(e,n){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;return c&&r.push.apply(r,t(n,l,c,!1)),u&&o.push.apply(o,t(n,l,u,(163840&a)>0)),fn(3&a?new bc([ip.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:r,updateDirectivesStmts:o,nodeDefExprs:i}},t.prototype._createElementHandleEventFn=function(t,e){var r=this,o=[],i=0;e.forEach(function(t){var e=t.context,s=t.eventAst,a=t.dirAst,u=""+i++,c=e===up?r:null,l=Hn(c,e,s.handler,u),p=l.stmts,h=l.allowDefault,f=p;h&&f.push(lp.set(h.and(lp)).toStmt());var d=yr(s,a),y=d.target,v=d.name,m=n.i(Kr["ɵelementEventFullName"])(y,v);o.push(hn(new Vc(En(m).identical(cp),f),s.sourceSpan))});var s;if(o.length>0){var a=[lp.set(En(!0)).toDeclStmt(Xu)];!this.component.isHost&&pn(o).has(up.name)&&a.push(up.set(sp.prop("component")).toDeclStmt(this.compType)),s=wn([new hc(sp.name,Qu),new hc(cp.name,Qu),new hc(Kl.event.name,Qu)],a.concat(o,[new Mc(lp)]),Qu)}else s=Cc;return s},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),hp=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,this.source=n}return t}(),fp=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolResolver=e,r.summaryResolver=n,r.symbols=[],r.indexBySymbol=new Map,r.processedSummaryBySymbol=new Map,r.processedSummaries=[],r}return Qr(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var n={};Object.keys(e).forEach(function(t){"decorators"!==t&&(n[t]=e[t])}),e=n}var r=this.processedSummaryBySymbol.get(t.symbol);r||(r=this.processValue({symbol:t.symbol}),this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),null==r.metadata&&null!=e&&(r.metadata=this.processValue(e)),null==r.type&&null!=t.type&&(r.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var o=void 0;return t.summaryResolver.isLibraryFile(n.filePath)&&(o=n.name+"_"+r,e.push({symbol:n,exportAs:o})),{__symbol:r,name:n.name,filePath:t.summaryResolver.getLibraryFileName(n.filePath),importAs:o}})}),exportAs:e}},e.prototype.processValue=function(t){return y(t,this,null)},e.prototype.visitOther=function(t,e){if(t instanceof lo){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(n);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(n,r),this.symbols.push(n)),{__symbol:r,members:t.members}}},e}(xo),dp=function(t){function e(e){var n=t.call(this)||this;return n.symbolCache=e,n}return Qr(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t),r=[];return this.symbols=[],n.symbols.forEach(function(t){var n=e.symbolCache.get(t.filePath,t.name);e.symbols.push(n),t.importAs&&r.push({symbol:n,importAs:t.importAs})}),{summaries:y(n.summaries,this,null),importAs:r}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],o=e.members;return o.length?this.symbolCache.get(r.filePath,r.name,o):r}return t.prototype.visitStringMap.call(this,e,n)},e}(xo),yp=(function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=n,this._templateParser=r,this._styleCompiler=o,this._viewCompiler=i,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,n=xr(this._symbolResolver,t,this._host),r=Cr(n,this._host,this._metadataResolver),o=r.ngModuleByPipeOrDirective,i=r.files,s=r.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){return I(i.map(function(t){return e._compileSrcFile(t.srcUrl,o,t.directives,t.pipes,t.ngModules,t.injectables)}))})},t.prototype._compileSrcFile=function(t,e,n,r,o,i){var s=this,a=Ze(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,n,r,o,i,u,c)),c.push.apply(c,o.map(function(t){return s._compileModule(t,u)})),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(!r.isComponent)return Promise.resolve(null);var o=e.get(n);if(!o)throw new Error("Internal Error: cannot determine the module for component "+C(r.type)+"!");wr(r);var i=s._styleCompiler.compileComponent(r);i.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(r,o,o.transitiveModule.directives,i.componentStylesheet,a,u);c.push(s._compileComponentFactory(r,o,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,Ke(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,n,r,o,i,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=r.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),n.map(function(t){return a._metadataResolver.getPipeSummary(t)}),o.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=mr(this._summaryResolver,this._symbolResolver,u,c),p=l.json;return l.exportAs.forEach(function(t){i.push(dn(t.exportAs).set(yn({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new hp(t,Ye(t),p)},t.prototype._compileModule=function(t,e){var n=this._metadataResolver.getNgModuleMetadata(t),r=[];this._localeId&&r.push({token:de(Ia.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&r.push({token:de(Ia.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(n,r);return e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,n,r){var o=this._metadataResolver.getHostComponentType(t.type.reference),i=k(o,t,this._metadataResolver.getHostComponentViewClass(o)),s=this._compileComponent(i,e,[t.type],null,n,r).viewClassVar,a=A(t.type.reference),u=[];for(var c in t.inputs){var l=t.inputs[c];u.push(new gc(c,En(l),!1))}var p=[];for(var c in t.outputs){var l=t.outputs[c];p.push(new gc(c,En(l),!1))}return r.push(dn(a).set(yn(he(Ia.createComponentFactory)).callFn([En(t.selector),yn(t.type),dn(s),new _c(u),new _c(p),gn(t.template.ngContentSelectors.map(function(t){return En(t)}))])).toDeclStmt(vn(he(Ia.ComponentFactory),[vn(t.type)],[Hu.Const]),[xc.Final])),a},t.prototype._compileComponent=function(t,e,n,r,o,i){var s=this,a=n.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,D(e.type,t,t.template)),l=c.template,p=c.pipes,h=r?dn(r.stylesVar):gn([]),f=this._viewCompiler.compileComponent(t,l,h,p);return r&&i.push.apply(i,_r(this._symbolResolver,r,o)),i.push.apply(i,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,n){return _r(this._symbolResolver,e,n),this._codegenSourceModule(t,br(e.meta.moduleUrl,e.isShimmed,n),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,n,r){return new hp(t,e,this._outputEmitter.emitStatements(R(t),e,n,r,this._genFilePreamble))}}(),function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new Kr["ɵReflectionCapabilities"]}return t.install=function(e){Kr["ɵreflector"].updateCapabilities(new t(e))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return Pr(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return Pr(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return Pr(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return Pr(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.staticDelegate.resolveIdentifier(t,e,n)},t.prototype.resolveEnum=function(t,e){return Pr(t)?this.staticDelegate.resolveEnum(t,e):null},t}()),vp="@angular/core",mp=/^\$.*\$$/,gp={__symbolic:"ignore"},_p=function(){function t(t,e,n,r,o){void 0===n&&(n=[]),void 0===r&&(r=[]);var i=this;this.summaryResolver=t,this.symbolResolver=e,this.errorRecorder=o,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),n.forEach(function(t){return i._registerDecoratorOrConstructor(i.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return i._registerFunction(i.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Io.Directive,[Kr.Directive,Kr.Component]),this.annotationForParentClassWithSummaryKind.set(Io.Pipe,[Kr.Pipe]),this.annotationForParentClassWithSummaryKind.set(Io.NgModule,[Kr.NgModule]),this.annotationForParentClassWithSummaryKind.set(Io.Injectable,[Kr.Injectable,Kr.Pipe,Kr.Directive,Kr.Component,Kr.NgModule]),this.annotationNames.set(Kr.Directive,"Directive"),this.annotationNames.set(Kr.Component,"Component"),this.annotationNames.set(Kr.Pipe,"Pipe"),this.annotationNames.set(Kr.NgModule,"NgModule"),this.annotationNames.set(Kr.Injectable,"Injectable")}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,n){var r=this.getStaticSymbol(e,t),o=this.findDeclaration(e,t);return r!=o&&this.symbolResolver.recordImportAs(o,r),n&&n.length?this.getStaticSymbol(o.filePath,o.name,n):o},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof lo?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var n=t,r=(n.members||[]).concat(e);return this.getStaticSymbol(n.filePath,n.name,r)},t.prototype.annotations=function(t){var e=this,n=this.annotationCache.get(t);if(!n){n=[];var r=this.getTypeMetadata(t),o=this.findParentType(t,r);if(o){var i=this.annotations(o);n.push.apply(n,i)}var s=[];if(r.decorators&&(s=this.simplify(t,r.decorators),n.push.apply(n,s)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var a=this.summaryResolver.resolveSummary(o);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind);u.some(function(t){return s.some(function(e){return e instanceof t})})||this.reportError(g("Class "+t.name+" in "+t.filePath+" extends from a "+Io[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class."),t)}}this.annotationCache.set(t,n.filter(function(t){return!!t}))}return n},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var o=this.findParentType(t,r);if(o){var i=this.propMetadata(o);Object.keys(i).forEach(function(t){n[t]=i[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var o=s[r],i=o.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];n[r]&&a.push.apply(a,n[r]),n[r]=a,i&&i.decorators&&a.push.apply(a,e.simplify(t,i.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){if(!(t instanceof lo))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var n=this.getTypeMetadata(t),r=this.findParentType(t,n),o=n?n.members:null,i=o?o.__ctor__:null;if(i){var s=i.find(function(t){return"constructor"==t.__symbolic}),a=this.simplify(t,s.parameters||[]),u=this.simplify(t,s.parameterDecorators||[]);e=[],a.forEach(function(t,n){var r=[];t&&r.push(t);var o=u?u[n]:null;o&&r.push.apply(r,o),e.push(r)})}else r&&(e=this.parameters(r));e||(e=[]),this.parameterCache.set(t,e)}return e}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 o=this._methodNames(r);Object.keys(o).forEach(function(t){e[t]=o[t]})}var i=n.members||{};Object.keys(i).forEach(function(t){var n=i[t],r=n.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||r}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof lo)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof lo||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._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(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.injectionToken=this.findDeclaration(vp,"InjectionToken"),this.opaqueToken=this.findDeclaration(vp,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Host"),Kr.Host),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Injectable"),Kr.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Self"),Kr.Self),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"SkipSelf"),Kr.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Inject"),Kr.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Optional"),Kr.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Attribute"),Kr.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"ContentChild"),Kr.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"ContentChildren"),Kr.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"ViewChild"),Kr.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"ViewChildren"),Kr.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Input"),Kr.Input),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Output"),Kr.Output),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Pipe"),Kr.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"HostBinding"),Kr.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"HostListener"),Kr.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Directive"),Kr.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Component"),Kr.Component),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"NgModule"),Kr.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Host"),Kr.Host),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Self"),Kr.Self),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"SkipSelf"),Kr.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Optional"),Kr.Optional),this._registerFunction(this.findDeclaration(vp,"trigger"),Kr.trigger),this._registerFunction(this.findDeclaration(vp,"state"),Kr.state),this._registerFunction(this.findDeclaration(vp,"transition"),Kr.transition),this._registerFunction(this.findDeclaration(vp,"style"),Kr.style),this._registerFunction(this.findDeclaration(vp,"animate"),Kr.animate),this._registerFunction(this.findDeclaration(vp,"keyframes"),Kr.keyframes),this._registerFunction(this.findDeclaration(vp,"sequence"),Kr.sequence),this._registerFunction(this.findDeclaration(vp,"group"),Kr.group)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||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){function n(t,e,r){function a(t){var e=o.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,o,a){if(o&&"function"==o.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=o.value;if(u&&(0!=r||"error"!=u.__symbolic)){var l=o.parameters,p=o.defaults;a=a.map(function(e){return n(t,e,r+1)}).map(function(t){return Ar(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=bp.build(),f=0;f":return b>w;case"<=":return b<=w;case">=":return b>=w;case"<<":return b<>":return b>>w;case"+":return b+w;case"-":return b-w;case"*":return b*w;case"/":return b/w;case"%":return b%w}return null;case"if":return c(c(e.condition)?e.thenExpression:e.elseExpression);case"pre":var E=c(e.operand);if(Ar(E))return E;switch(e.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var C=c(e.expression),S=c(e.index);return C&&Nr(S)?C[S]:null;case"select":var x=e.member,T=t,P=c(e.expression);if(P instanceof lo){var A=P.members.concat(x);T=o.getStaticSymbol(P.filePath,P.name,A);var _=a(T);return _?n(T,_,r+1):T}return P&&Nr(x)?n(T,P[x],r+1):null;case"reference":var O=e.name,M=i.resolve(O);if(M!=bp.missing)return M;break;case"class":case"function":return t;case"new":case"call":if((g=n(t,e.expression,r+1))instanceof lo){if(g===o.injectionToken||g===o.opaqueToken)return t;var k=e.arguments||[],N=o.conversionMap.get(g);if(N){var I=k.map(function(e){return n(t,e,r+1)}).map(function(t){return Ar(t)?void 0:t});return N(t,I)}return u(g,a(g),k)}return gp;case"error":var R=Mr(e);return e.line?(R=R+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",o.reportError(Ir(R,t.filePath,e.line,e.character),t)):o.reportError(new Error(R),t),gp;case"ignore":return e}return null}return kr(e,function(t,e){return c(t)})}return gp}try{return c(e)}catch(e){var l=t.members.length?"."+t.members.join("."):"",p=e.message+", resolving symbol "+t.name+l+" in "+t.filePath;if(e.fileName)throw Ir(p,e.fileName,e.line,e.column);throw g(p)}}var r=this,o=this,i=bp.empty,s=new Map,a=this.errorRecorder?function(t,e,o){try{return n(t,e,o)}catch(e){r.reportError(e,t)}}(t,e,0):n(t,e,0);if(!Ar(a))return a},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),bp=function(){function t(){}return t.prototype.resolve=function(t){},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 wp(e):t.empty}}},t}();bp.missing={},bp.empty={resolve:function(t){return bp.missing}};var wp=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return Qr(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):bp.missing},e}(bp),Ep=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Cp=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e||((e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),n=this.getImportAs(e);return n?this.getStaticSymbol(n.filePath,n.name,t.members):null}var r=this.summaryResolver.getImportAs(t);return r||(r=this.importAs.get(t)),r},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Xe(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof lo;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var n=0,r=e;n=0?{__symbolic:"reference",name:p}:n.has(p)?i.getStaticSymbol(e,p):void 0},o}(xo),a=y(r,new s,[]);return a instanceof lo?this.createExport(t,a):new Ep(t,a)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new Ep(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:3,module:t,metadata:{}}),3!=e.version){var o=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 3";this.reportError(new Error(o))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to $ {\n containingFile\n } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}(),Sp=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Qe(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var n=Ye(t),r=void 0;try{r=this.host.loadSummary(n)}catch(t){throw console.error("Error loading summary file "+n),t}if(r){var o=gr(this.staticSymbolCache,r),i=o.summaries,s=o.importAs;i.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s.forEach(function(n){e.importAs.set(n.symbol,e.staticSymbolCache.get(Ke(t),n.importAs))})}}},t}(),xp=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Tp=function(){function t(t){this.value=t}return t}(),Pp=function(){function t(){}return t.prototype.debugAst=function(t){return Nn(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case $u.Super:return e.instance.__proto__;case $u.This:return e.instance;case $u.CatchError:n=Ap;break;case $u.CatchStack:n=Op;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),o=t.value.visitExpression(this,e);return n[r]=o,o},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case rc.ConcatArray:n=r.concat.apply(r,o);break;case rc.SubscribeObservable:n=r.subscribe({next:o[0]});break;case rc.Bind:n=r.bind.apply(r,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,o);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;return r instanceof Ju&&r.builtin===$u.Super?(e.instance.constructor.prototype.constructor.apply(e.instance,n),null):t.fn.visitExpression(this,e).apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new Tp(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Lr(t,e,this);return e.vars.set(t.name,n),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(Ap,r),n.vars.set(Op,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){return Fr(t.params.map(function(t){return t.name}),t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,Fr(n,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},o=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case Zu.Equals:return r()==o();case Zu.Identical:return r()===o();case Zu.NotEquals:return r()!=o();case Zu.NotIdentical:return r()!==o();case Zu.And:return r()&&o();case Zu.Or:return r()||o();case Zu.Plus:return r()+o();case Zu.Minus:return r()-o();case Zu.Divide:return r()/o();case Zu.Multiply:return r()*o();case Zu.Modulo:return r()%o();case Zu.Lower:return r()o();case Zu.BiggerEquals:return r()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n0&&(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.visitReadVarExpr=function(e,n){if(e.builtin===$u.This)n.print(e,"self");else{if(e.builtin===$u.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.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 Ju&&r.builtin===$u.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("),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 ("+el.name+") {"),e.incIndent();var n=[nl.set(el.prop("stack")).toDeclStmt(null,[xc.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 rc.ConcatArray:e="concat";break;case rc.SubscribeObservable:e="subscribe";break;case rc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(il),kp=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return Qr(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function C(t){return null!=t?z.compose(t.map(l)):null}function S(t){return null!=t?z.composeAsync(t.map(p)):null}function x(t,e){if(!t.hasOwnProperty("model"))return!1;var r=t.model;return!!r.isFirstChange()||!n.i(I["ɵlooseIdentical"])(e,r.currentValue)}function T(t){return ht.some(function(e){return t.constructor===e})}function P(t,e){if(!e)return null;var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){e.constructor===Y?n=e:T(e)?(r&&E(t,"More than one built-in value accessor matches form control with"),r=e):(o&&E(t,"More than one custom value accessor matches form control with"),o=e)}),o||(r||(n||(E(t,"No valid value accessor for form control with"),null)))}function A(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof bt?t.controls[e]||null:t instanceof wt?t.at(e)||null:null},t))}function O(t){return Array.isArray(t)?C(t):t||null}function M(t){return Array.isArray(t)?S(t):t||null}function k(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function N(t){return!(t instanceof Ft||t instanceof Vt||t instanceof Ht)}Object.defineProperty(e,"__esModule",{value:!0});var I=n(20),R=n(301),D=(n.n(R),n(302)),V=(n.n(D),n(306)),L=(n.n(V),n(49));n.d(e,"AbstractControlDirective",function(){return j}),n.d(e,"AbstractFormGroupDirective",function(){return ft}),n.d(e,"CheckboxControlValueAccessor",function(){return Q}),n.d(e,"ControlContainer",function(){return H}),n.d(e,"NG_VALUE_ACCESSOR",function(){return W}),n.d(e,"COMPOSITION_BUFFER_MODE",function(){return Z}),n.d(e,"DefaultValueAccessor",function(){return Y}),n.d(e,"NgControl",function(){return tt}),n.d(e,"NgControlStatus",function(){return vt}),n.d(e,"NgControlStatusGroup",function(){return mt}),n.d(e,"NgForm",function(){return St}),n.d(e,"NgModel",function(){return kt}),n.d(e,"NgModelGroup",function(){return At}),n.d(e,"RadioControlValueAccessor",function(){return rt}),n.d(e,"FormControlDirective",function(){return Rt}),n.d(e,"FormControlName",function(){return Bt}),n.d(e,"FormGroupDirective",function(){return Vt}),n.d(e,"FormArrayName",function(){return Ht}),n.d(e,"FormGroupName",function(){return Ft}),n.d(e,"NgSelectOption",function(){return ut}),n.d(e,"SelectControlValueAccessor",function(){return at}),n.d(e,"SelectMultipleControlValueAccessor",function(){return lt}),n.d(e,"CheckboxRequiredValidator",function(){return Wt}),n.d(e,"EmailValidator",function(){return Qt}),n.d(e,"MaxLengthValidator",function(){return $t}),n.d(e,"MinLengthValidator",function(){return Zt}),n.d(e,"PatternValidator",function(){return te}),n.d(e,"RequiredValidator",function(){return zt}),n.d(e,"FormBuilder",function(){return ee}),n.d(e,"AbstractControl",function(){return gt}),n.d(e,"FormArray",function(){return wt}),n.d(e,"FormControl",function(){return _t}),n.d(e,"FormGroup",function(){return bt}),n.d(e,"NG_ASYNC_VALIDATORS",function(){return q}),n.d(e,"NG_VALIDATORS",function(){return B}),n.d(e,"Validators",function(){return z}),n.d(e,"VERSION",function(){return ne}),n.d(e,"FormsModule",function(){return ue}),n.d(e,"ReactiveFormsModule",function(){return ce}),n.d(e,"ɵba",function(){return ae}),n.d(e,"ɵz",function(){return se}),n.d(e,"ɵx",function(){return oe}),n.d(e,"ɵy",function(){return ie}),n.d(e,"ɵa",function(){return K}),n.d(e,"ɵb",function(){return X}),n.d(e,"ɵc",function(){return dt}),n.d(e,"ɵd",function(){return yt}),n.d(e,"ɵe",function(){return Et}),n.d(e,"ɵf",function(){return Ot}),n.d(e,"ɵg",function(){return Pt}),n.d(e,"ɵbf",function(){return re}),n.d(e,"ɵbb",function(){return $}),n.d(e,"ɵbc",function(){return J}),n.d(e,"ɵh",function(){return et}),n.d(e,"ɵi",function(){return nt}),n.d(e,"ɵbd",function(){return ot}),n.d(e,"ɵbe",function(){return it}),n.d(e,"ɵj",function(){return It}),n.d(e,"ɵk",function(){return Ut}),n.d(e,"ɵl",function(){return Dt}),n.d(e,"ɵn",function(){return jt}),n.d(e,"ɵm",function(){return Lt}),n.d(e,"ɵo",function(){return st}),n.d(e,"ɵq",function(){return pt}),n.d(e,"ɵp",function(){return ct}),n.d(e,"ɵs",function(){return Gt}),n.d(e,"ɵt",function(){return Kt}),n.d(e,"ɵv",function(){return Yt}),n.d(e,"ɵu",function(){return Xt}),n.d(e,"ɵw",function(){return Jt}),n.d(e,"ɵr",function(){return qt});var F=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},j=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(j),U=Object.assign||function(t){for(var e,n=1,r=arguments.length;nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,o;return"string"==typeof e?(o="^"+e+"$",n=new RegExp(o)):(o=e.toString(),n=e),function(t){if(r(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:o,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(o);return 0==e.length?null:function(t){return u(s(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(o);return 0==e.length?null:function(t){var r=a(t,e).map(i);return V.map.call(n.i(R.forkJoin)(r),u)}},t}(),W=new I.InjectionToken("NgValueAccessor"),K={provide:W,useExisting:n.i(I.forwardRef)(function(){return Q}),multi:!0},Q=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();Q.decorators=[{type:I.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[K]}]}],Q.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var X={provide:W,useExisting:n.i(I.forwardRef)(function(){return Y}),multi:!0},Z=new I.InjectionToken("CompositionEventMode"),Y=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!c())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();Y.decorators=[{type:I.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[X]}]}],Y.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef},{type:void 0,decorators:[{type:I.Optional},{type:I.Inject,args:[Z]}]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var $={provide:W,useExisting:n.i(I.forwardRef)(function(){return J}),multi:!0},J=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();J.decorators=[{type:I.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[$]}]}],J.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef}]};var tt=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return F(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return h()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return h()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){},e}(j),et={provide:W,useExisting:n.i(I.forwardRef)(function(){return rt}),multi:!0},nt=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t}();nt.decorators=[{type:I.Injectable}],nt.ctorParameters=function(){return[]};var rt=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(tt),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}();rt.decorators=[{type:I.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[et]}]}],rt.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef},{type:nt},{type:I.Injector}]},rt.propDecorators={name:[{type:I.Input}],formControlName:[{type:I.Input}],value:[{type:I.Input}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var ot={provide:W,useExisting:n.i(I.forwardRef)(function(){return it}),multi:!0},it=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();it.decorators=[{type:I.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ot]}]}],it.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var st={provide:W,useExisting:n.i(I.forwardRef)(function(){return at}),multi:!0},at=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=I["ɵlooseIdentical"]}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=f(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=n,t(e._getOptionValue(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(gt),wt=function(t){function e(e,n,r){var o=t.call(this,n||null,r||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return F(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof _t?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(gt),Et={provide:H,useExisting:n.i(I.forwardRef)(function(){return St})},Ct=Promise.resolve(null),St=function(t){function e(e,n){var r=t.call(this)||this;return r._submitted=!1,r.ngSubmit=new I.EventEmitter,r.form=new bt({},C(e),S(n)),r}return F(e,t),Object.defineProperty(e.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Ct.then(function(){var n=e._findContainer(t.path);t._control=n.registerControl(t.name,t.control),g(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Ct.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.addFormGroup=function(t){var e=this;Ct.then(function(){var n=e._findContainer(t.path),r=new bt({});b(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Ct.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Ct.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(H);St.decorators=[{type:I.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[Et],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],St.ctorParameters=function(){return[{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var xt={formControlName:'\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n
\n
\n \n
\n
',ngModelWithFormGroup:'\n
\n \n \n
\n '},Tt=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+xt.formControlName+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+xt.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+xt.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+xt.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+xt.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+xt.ngModelGroup)},t}(),Pt={provide:H,useExisting:n.i(I.forwardRef)(function(){return At})},At=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return F(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof St||Tt.modelGroupParentException()},e}(ft);At.decorators=[{type:I.Directive,args:[{selector:"[ngModelGroup]",providers:[Pt],exportAs:"ngModelGroup"}]}],At.ctorParameters=function(){return[{type:H,decorators:[{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},At.propDecorators={name:[{type:I.Input,args:["ngModelGroup"]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Ot={provide:tt,useExisting:n.i(I.forwardRef)(function(){return kt})},Mt=Promise.resolve(null),kt=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i._control=new _t,i._registered=!1,i.update=new I.EventEmitter,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=P(i,o),i}return F(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),x(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?m(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return C(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){g(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof At)&&this._parent instanceof ft?Tt.formGroupNameException():this._parent instanceof At||this._parent instanceof St||Tt.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Tt.missingNameException()},e.prototype._updateValue=function(t){var e=this;Mt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Mt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(tt);kt.decorators=[{type:I.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Ot],exportAs:"ngModel"}]}],kt.ctorParameters=function(){return[{type:H,decorators:[{type:I.Optional},{type:I.Host}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[W]}]}]},kt.propDecorators={name:[{type:I.Input}],isDisabled:[{type:I.Input,args:["disabled"]}],model:[{type:I.Input,args:["ngModel"]}],options:[{type:I.Input,args:["ngModelOptions"]}],update:[{type:I.Output,args:["ngModelChange"]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Nt=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+xt.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+xt.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+xt.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+xt.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+xt.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+xt.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),It={provide:tt,useExisting:n.i(I.forwardRef)(function(){return Rt})},Rt=function(t){function e(e,n,r){var o=t.call(this)||this;return o.update=new I.EventEmitter,o._rawValidators=e||[],o._rawAsyncValidators=n||[],o.valueAccessor=P(o,r),o}return F(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(g(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),x(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return C(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e}(tt);Rt.decorators=[{type:I.Directive,args:[{selector:"[formControl]",providers:[It],exportAs:"ngForm"}]}],Rt.ctorParameters=function(){return[{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[W]}]}]},Rt.propDecorators={form:[{type:I.Input,args:["formControl"]}],model:[{type:I.Input,args:["ngModel"]}],update:[{type:I.Output,args:["ngModelChange"]}],isDisabled:[{type:I.Input,args:["disabled"]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Dt={provide:H,useExisting:n.i(I.forwardRef)(function(){return Vt})},Vt=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r._submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new I.EventEmitter,r}return F(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return g(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){k(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);b(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);b(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e._control!==n&&(_(e._control,e),n&&g(n,e),e._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=C(this._validators);this.form.validator=z.compose([this.form.validator,t]);var e=S(this._asyncValidators);this.form.asyncValidator=z.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Nt.missingFormException()},e}(H);Vt.decorators=[{type:I.Directive,args:[{selector:"[formGroup]",providers:[Dt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Vt.ctorParameters=function(){return[{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},Vt.propDecorators={form:[{type:I.Input,args:["formGroup"]}],ngSubmit:[{type:I.Output}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Lt={provide:H,useExisting:n.i(I.forwardRef)(function(){return Ft})},Ft=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return F(e,t),e.prototype._checkParentType=function(){N(this._parent)&&Nt.groupParentException()},e}(ft);Ft.decorators=[{type:I.Directive,args:[{selector:"[formGroupName]",providers:[Lt]}]}],Ft.ctorParameters=function(){return[{type:H,decorators:[{type:I.Optional},{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},Ft.propDecorators={name:[{type:I.Input,args:["formGroupName"]}]};var jt={provide:H,useExisting:n.i(I.forwardRef)(function(){return Ht})},Ht=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return F(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return m(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return C(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){N(this._parent)&&Nt.arrayParentException()},e}(H);Ht.decorators=[{type:I.Directive,args:[{selector:"[formArrayName]",providers:[jt]}]}],Ht.ctorParameters=function(){return[{type:H,decorators:[{type:I.Optional},{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},Ht.propDecorators={name:[{type:I.Input,args:["formArrayName"]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Ut={provide:tt,useExisting:n.i(I.forwardRef)(function(){return Bt})},Bt=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i._added=!1,i.update=new I.EventEmitter,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=P(i,o),i}return F(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),x(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return m(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return C(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Ft)&&this._parent instanceof ft?Nt.ngModelGroupException():this._parent instanceof Ft||this._parent instanceof Vt||this._parent instanceof Ht||Nt.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e}(tt);Bt.decorators=[{type:I.Directive,args:[{selector:"[formControlName]",providers:[Ut]}]}],Bt.ctorParameters=function(){return[{type:H,decorators:[{type:I.Optional},{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[W]}]}]},Bt.propDecorators={name:[{type:I.Input,args:["formControlName"]}],model:[{type:I.Input,args:["ngModel"]}],update:[{type:I.Output,args:["ngModelChange"]}],isDisabled:[{type:I.Input,args:["disabled"]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var qt={provide:B,useExisting:n.i(I.forwardRef)(function(){return zt}),multi:!0},Gt={provide:B,useExisting:n.i(I.forwardRef)(function(){return Wt}),multi:!0},zt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?z.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();zt.decorators=[{type:I.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[qt],host:{"[attr.required]":'required ? "" : null'}}]}],zt.ctorParameters=function(){return[]},zt.propDecorators={required:[{type:I.Input}]};var Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.validate=function(t){return this.required?z.requiredTrue(t):null},e}(zt);Wt.decorators=[{type:I.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Gt],host:{"[attr.required]":'required ? "" : null'}}]}],Wt.ctorParameters=function(){return[]};var Kt={provide:B,useExisting:n.i(I.forwardRef)(function(){return Qt}),multi:!0},Qt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?z.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Qt.decorators=[{type:I.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Kt]}]}],Qt.ctorParameters=function(){return[]},Qt.propDecorators={email:[{type:I.Input}]};var Xt={provide:B,useExisting:n.i(I.forwardRef)(function(){return Zt}),multi:!0},Zt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=z.minLength(parseInt(this.minlength,10))},t}();Zt.decorators=[{type:I.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Xt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Zt.ctorParameters=function(){return[]},Zt.propDecorators={minlength:[{type:I.Input}]};var Yt={provide:B,useExisting:n.i(I.forwardRef)(function(){return $t}),multi:!0},$t=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=z.maxLength(parseInt(this.maxlength,10))},t}();$t.decorators=[{type:I.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Yt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],$t.ctorParameters=function(){return[]},$t.propDecorators={maxlength:[{type:I.Input}]};var Jt={provide:B,useExisting:n.i(I.forwardRef)(function(){return te}),multi:!0},te=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=z.pattern(this.pattern)},t}();te.decorators=[{type:I.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Jt],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],te.ctorParameters=function(){return[]},te.propDecorators={pattern:[{type:I.Input}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var ee=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new bt(n,r,o)},t.prototype.control=function(t,e,n){return new _t(t,e,n)},t.prototype.array=function(t,e,n){var r=this,o=t.map(function(t){return r._createControl(t)});return new wt(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof _t||t instanceof bt||t instanceof wt)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t}();ee.decorators=[{type:I.Injectable}],ee.ctorParameters=function(){return[]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var ne=new I.Version("4.1.1"),re=function(){function t(){}return t}();re.decorators=[{type:I.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],re.ctorParameters=function(){return[]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var oe=[re,ut,pt,Y,J,it,Q,at,lt,rt,vt,mt,zt,Zt,$t,te,Wt,Qt],ie=[kt,At,St],se=[Rt,Vt,Bt,Ft,Ht],ae=function(){function t(){}return t}();ae.decorators=[{type:I.NgModule,args:[{declarations:oe,exports:oe}]}],ae.ctorParameters=function(){return[]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var ue=function(){function t(){}return t}();ue.decorators=[{type:I.NgModule,args:[{declarations:ie,providers:[nt],exports:[ae,ie]}]}],ue.ctorParameters=function(){return[]};var ce=function(){function t(){}return t}();ce.decorators=[{type:I.NgModule,args:[{declarations:[se],providers:[ee,nt],exports:[ae,se]}]}],ce.ctorParameters=function(){return[]}},137:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0});var o=n(20),i=function(){function t(){this.items=[{title:"Banaanid",price:1,quantity:0},{title:"Õunad",price:2,quantity:0}]}return t.prototype.increaseQuantity=function(t){t.quantity++},t.prototype.getTotal=function(){return this.items.map(function(t){return t.price*t.quantity}).reduce(function(t,e){return t+e},0)},t.prototype.decreaseQuantity=function(t){t.quantity>0&&t.quantity--},t}();i=r([o.Component({selector:"my-app",templateUrl:"app/app.html"})],i),e.AppComponent=i;!function(){function t(){}}()},138:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.contacts=[]}return t.prototype.clone=function(t){return JSON.parse(JSON.stringify(t))},t.prototype.getContacts=function(){return Promise.resolve(this.clone(this.contacts))},t.prototype.getContact=function(t){return Promise.resolve(this.clone(this.contacts).filter(function(e){return e._id===t}).pop())},t.prototype.saveContact=function(t){return t._id?(this.contacts=this.contacts.map(function(e){return e._id===t._id?t:e}),Promise.resolve()):(t._id=(Math.random()+"A").substr(2),this.contacts.push(t),Promise.resolve())},t.prototype.deleteContact=function(t){return this.contacts=this.contacts.filter(function(e){return e._id!==t}),Promise.resolve()},t.prototype.deleteAllContacts=function(t){return this.contacts=this.contacts.filter(function(e){return-1===t.indexOf(e._id)}),Promise.resolve()},t}();e.MemContactService=r},139:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(88),s=n(20),a=function(){function t(t,e){this.name=t,this.phone=e,this.selected=!1}return t}();e.Contact=a;var u=function(){function t(t){this.http=t}return t.prototype.getContacts=function(){return this.http.get("api/contacts").toPromise().then(function(t){return t.json()})},t.prototype.getContact=function(t){return this.http.get("api/contacts/"+t).toPromise().then(function(t){return t.json()})},t.prototype.saveContact=function(t){return this.http.post("api/contacts",t).toPromise().then(function(){return null})},t.prototype.deleteContact=function(t){return this.http.delete("api/contacts/"+t).toPromise().then(function(){return null})},t.prototype.deleteAllContacts=function(t){return this.http.post("api/contacts/delete",t).toPromise().then(function(){return null})},t}();u=r([s.Injectable(),o("design:paramtypes",[i.Http])],u),e.ContactService=u},140:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(131),n(132),n(133);var r=n(127),o=n(128);r.platformBrowserDynamic().bootstrapModule(o.AppModule)},20:function(t,e,n){"use strict";(function(t){function r(){if(!io){var t=oo.Symbol;if(t&&t.iterator)io=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n-1)return e.push(t[n]),e;e.push(t[n])}return e}function C(t){if(t.length>1){return" ("+E(t.slice().reverse()).map(function(t){return s(t.token)}).join(" -> ")+")"}return""}function S(t,e,n,r){var o=r?w("",r):Error();return o.addKey=x,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=n,o.message=o.constructResolvingMessage(),o[Go]=r,o}function x(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function T(t,e){return S(t,e,function(){return"No provider for "+s(this.keys[0].token)+"!"+C(this.keys)})}function P(t,e){return S(t,e,function(){return"Cannot instantiate cyclic dependency!"+C(this.keys)})}function A(t,e,n,r){return S(t,r,function(){var t=s(this.keys[0].token);return g(this).message+": Error during instantiation of "+t+"!"+C(this.keys)+"."},e)}function O(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function M(t,e){for(var n=[],r=0,o=e.length;r-1&&t.splice(n,1)}function dt(t,e){var n=ps.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);ps.set(t,e)}function yt(t){var e=ps.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function vt(t){return t.reduce(function(t,e){var n=Array.isArray(e)?vt(e):e;return t.concat(n)},[])}function mt(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function gt(t){return t.map(function(t){return t.nativeElement})}function _t(t,e,n){t.childNodes.forEach(function(t){t instanceof Cs&&(e(t)&&n.push(t),_t(t,e,n))})}function bt(t,e,n){t instanceof Cs&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Cs&&bt(t,e,n)})}function wt(t){return Ss.get(t)||null}function Et(t){Ss.set(t.nativeNode,t)}function Ct(t){Ss.delete(t.nativeNode)}/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +function St(t,e){var n=xt(t),r=xt(e);if(n&&r)return Tt(t,e,St);var o=t&&("object"==typeof t||"function"==typeof t),s=e&&("object"==typeof e||"function"==typeof e);return!(n||!o||r||!s)||i(t,e)}function xt(t){return!!At(t)&&(Array.isArray(t)||!(t instanceof Map)&&r()in t)}function Tt(t,e,n){for(var o=t[r()](),i=e[r()]();;){var s=o.next(),a=i.next();if(s.done&&a.done)return!0;if(s.done||a.done)return!1;if(!n(s.value,a.value))return!1}}function Pt(t,e){if(Array.isArray(t))for(var n=0;n0&&Te(t,e,0,n)&&(f=!0),h>1&&Te(t,e,1,r)&&(f=!0),h>2&&Te(t,e,2,o)&&(f=!0),h>3&&Te(t,e,3,i)&&(f=!0),h>4&&Te(t,e,4,s)&&(f=!0),h>5&&Te(t,e,5,a)&&(f=!0),h>6&&Te(t,e,6,u)&&(f=!0),h>7&&Te(t,e,7,c)&&(f=!0),h>8&&Te(t,e,8,l)&&(f=!0),h>9&&Te(t,e,9,p)&&(f=!0),f}function xe(t,e,n){for(var r=!1,o=0;o0?o[n-1]:null,r)}function Re(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];r.viewContainerParent=null,je(n,e);var o=$t(r);if(o&&o!==t){var i=o.template._projectedViews;je(i,i.indexOf(r))}return $s.dirtyParentQueries(r),Le(r),r}function De(t,e,n){var r=t.viewContainer._embeddedViews,o=r[e];return je(r,e),null==n&&(n=r.length),Fe(r,n,o),$s.dirtyParentQueries(o),Le(o),Ve(t,n>0?r[n-1]:null,o),o}function Ve(t,e,n){var r=e?te(e,e.def.lastRenderRootNode):t.renderElement;ce(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Le(t){ce(t,3,null,null,void 0)}function Fe(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function je(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function He(t,e,n,r,o,i){return new ca(t,e,n,r,o,i)}function Ue(t){return t.viewDefFactory}function Be(t,e,n){return new pa(t,e,n)}function qe(t){return new ha(t)}function Ge(t,e){return new fa(t,e)}function ze(t,e){return new da(t,e)}function We(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=It(t,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Nt(t,n.index).renderText;if(10120&n.flags)return Rt(t,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Ke(t){return new ya(t.renderer)}function Qe(t,e,n,r,o,i,s){var a=[];if(i)for(var u in i){var c=i[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=8192,Ye(t,e,n,r,r,o,a,h)}function Xe(t,e,n){return t|=8,Ye(t,null,0,e,e,n)}function Ze(t,e,n,r,o){return Ye(t,e,0,n,r,o)}function Ye(t,e,n,r,o,i,s,a){var u=ie(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=i.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:qt(e)}});return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:n,bindings:s,bindingFlags:ye(s),outputs:a,element:null,provider:{token:r,tokenKey:qt(r),value:o,deps:h},text:null,query:null,ngContent:null}}function $e(t,e){return 2048&e.flags?Ca:on(t,e)}function Je(t,e){for(var n=t;n.parent&&!ne(n);)n=n.parent;return sn(n.parent,Jt(n),!0,e.provider.value,e.provider.deps)}function tn(t,e){var n=(16384&e.flags)>0,r=sn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o0&&Kt(t,e,0,n)&&(d=!0,y=ln(t,h,e,0,n,y)),v>1&&Kt(t,e,1,r)&&(d=!0,y=ln(t,h,e,1,r,y)),v>2&&Kt(t,e,2,o)&&(d=!0,y=ln(t,h,e,2,o,y)),v>3&&Kt(t,e,3,i)&&(d=!0,y=ln(t,h,e,3,i,y)),v>4&&Kt(t,e,4,s)&&(d=!0,y=ln(t,h,e,4,s,y)),v>5&&Kt(t,e,5,a)&&(d=!0,y=ln(t,h,e,5,a,y)),v>6&&Kt(t,e,6,u)&&(d=!0,y=ln(t,h,e,6,u,y)),v>7&&Kt(t,e,7,c)&&(d=!0,y=ln(t,h,e,7,c,y)),v>8&&Kt(t,e,8,l)&&(d=!0,y=ln(t,h,e,8,l,y)),v>9&&Kt(t,e,9,p)&&(d=!0,y=ln(t,h,e,9,p,y)),y&&f.ngOnChanges(y),2&t.state&&32768&e.flags&&f.ngOnInit(),131072&e.flags&&f.ngDoCheck(),d}function rn(t,e,n){for(var r=Rt(t,e.index),o=r.instance,i=!1,s=void 0,a=0;a0,o=e.provider;switch(100673535&e.flags){case 256:n=sn(t,e.parent,r,o.value,o.deps);break;case 512:n=an(t,e.parent,r,o.value,o.deps);break;case 1024:n=un(t,e.parent,r,o.deps[0]);break;case 128:n=o.value}return n}function sn(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=new r;break;case 1:i=new r(un(t,e,n,o[0]));break;case 2:i=new r(un(t,e,n,o[0]),un(t,e,n,o[1]));break;case 3:i=new r(un(t,e,n,o[0]),un(t,e,n,o[1]),un(t,e,n,o[2]));break;default:for(var a=new Array(s),u=0;u0&&Qt(t,e,0,n)&&(f=!0),d>1&&Qt(t,e,1,r)&&(f=!0),d>2&&Qt(t,e,2,o)&&(f=!0),d>3&&Qt(t,e,3,i)&&(f=!0),d>4&&Qt(t,e,4,s)&&(f=!0),d>5&&Qt(t,e,5,a)&&(f=!0),d>6&&Qt(t,e,6,u)&&(f=!0),d>7&&Qt(t,e,7,c)&&(f=!0),d>8&&Qt(t,e,8,l)&&(f=!0),d>9&&Qt(t,e,9,p)&&(f=!0),f){var y=Dt(t,e.index),v=void 0;switch(100673535&e.flags){case 16:v=new Array(h.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=s),d>5&&(v[5]=a),d>6&&(v[6]=u),d>7&&(v[7]=c),d>8&&(v[8]=l),d>9&&(v[9]=p);break;case 32:v={},d>0&&(v[h[0].name]=n),d>1&&(v[h[1].name]=r),d>2&&(v[h[2].name]=o),d>3&&(v[h[3].name]=i),d>4&&(v[h[4].name]=s),d>5&&(v[h[5].name]=a),d>6&&(v[h[6].name]=u),d>7&&(v[h[7].name]=c),d>8&&(v[h[8].name]=l),d>9&&(v[h[9].name]=p);break;case 64:var m=n;switch(d){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,o);break;case 4:v=m.transform(r,o,i);break;case 5:v=m.transform(r,o,i,s);break;case 6:v=m.transform(r,o,i,s,a);break;case 7:v=m.transform(r,o,i,s,a,u);break;case 8:v=m.transform(r,o,i,s,a,u,c);break;case 9:v=m.transform(r,o,i,s,a,u,c,l);break;case 10:v=m.transform(r,o,i,s,a,u,c,l,p)}}y.value=v}return f}function bn(t,e,n){for(var r=e.bindings,o=!1,i=0;i0&&Qt(t,e,0,n)&&(h=!0),d>1&&Qt(t,e,1,r)&&(h=!0),d>2&&Qt(t,e,2,o)&&(h=!0),d>3&&Qt(t,e,3,i)&&(h=!0),d>4&&Qt(t,e,4,s)&&(h=!0),d>5&&Qt(t,e,5,a)&&(h=!0),d>6&&Qt(t,e,6,u)&&(h=!0),d>7&&Qt(t,e,7,c)&&(h=!0),d>8&&Qt(t,e,8,l)&&(h=!0),d>9&&Qt(t,e,9,p)&&(h=!0),h){var y=e.text.prefix;d>0&&(y+=kn(n,f[0])),d>1&&(y+=kn(r,f[1])),d>2&&(y+=kn(o,f[2])),d>3&&(y+=kn(i,f[3])),d>4&&(y+=kn(s,f[4])),d>5&&(y+=kn(a,f[5])),d>6&&(y+=kn(u,f[6])),d>7&&(y+=kn(c,f[7])),d>8&&(y+=kn(l,f[8])),d>9&&(y+=kn(p,f[9]));var v=Nt(t,e.index).renderText;t.renderer.setValue(v,y)}return h}function Mn(t,e,n){for(var r=e.bindings,o=!1,i=0;ic.index+c.childCount;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var y=e[f];y.index=f,y.parent=c,y.bindingIndex=o,y.outputIndex=i;var v=void 0;if(v=c&&1&c.flags&&!c.element.name?c.renderParent:c,y.renderParent=v,y.element){var m=y.element;m.publicProviders=c?c.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,l=!1,p=!1}if(In(c,y,e.length),s|=y.flags,u|=y.matchedQueryIds,y.element&&y.element.template&&(u|=y.element.template.nodeMatchedQueries),c?(c.childFlags|=y.flags,c.directChildFlags|=y.flags,c.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(c.childMatchedQueries|=y.element.template.nodeMatchedQueries)):a|=y.flags,o+=y.bindings.length,i+=y.outputs.length,!v&&3&y.flags&&(h=y),10112&y.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var g=0!=(4096&y.flags),_=0!=(16384&y.flags);!g||_?c.element.publicProviders[y.provider.tokenKey]=y:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[y.provider.tokenKey]=y),_&&(c.element.componentProvider=y)}y.childCount&&(c=y)}for(;c;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var b=function(t,n,r,o){return e[n].element.handleEvent(t,r,o)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Js,updateRenderer:r||Js,handleEvent:b||Js,bindingCount:o,outputCount:i,lastRenderRootNode:h}}function In(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&8388608&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(10112&e.flags){if(0==(1&(t?t.flags:0)))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!")}if(e.query){if(33554432&e.flags&&(!t||0==(8192&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(67108864&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var o=t?t.index+t.childCount:n-1;if(e.index<=o&&e.index+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function Rn(t,e,n){var r=Vn(t.root,t.renderer,t,e,e.element.template);return Ln(r,t.component,n),Fn(r),r}function Dn(t,e,n){var r=Vn(t,t.renderer,null,null,e);return Ln(r,n,n),Fn(r),r}function Vn(t,e,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s}}function Ln(t,e,n){t.component=e,t.context=n}function Fn(t){var e;if(ne(t)){var n=t.parentNodeDef;e=It(t.parent,n.parent.index).renderElement}for(var r=t.def,o=t.nodes,i=0;i0&&Xt(t,e,0,n),h>1&&Xt(t,e,1,r),h>2&&Xt(t,e,2,o),h>3&&Xt(t,e,3,i),h>4&&Xt(t,e,4,s),h>5&&Xt(t,e,5,a),h>6&&Xt(t,e,6,u),h>7&&Xt(t,e,7,c),h>8&&Xt(t,e,8,l),h>9&&Xt(t,e,9,p)}function Wn(t,e,n){for(var r=0;r=this._providers.length)throw k(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw P(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;n0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+s(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)},e}($i);Ji.decorators=[{type:Ro}],Ji.ctorParameters=function(){return[{type:Uo}]};var ts=function(){function t(){}return t.prototype.bootstrap=function(t){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),es=function(t){function e(e,r,i,s,a,u){var c=t.call(this)||this;c._zone=e,c._console=r,c._injector=i,c._exceptionHandler=s,c._componentFactoryResolver=a,c._initStatus=u,c._bootstrapListeners=[],c._rootComponents=[],c._rootComponentTypes=[],c._views=[],c._runningTick=!1,c._enforceNoNewChanges=!1,c._stable=!0,c._enforceNoNewChanges=st(),c._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var l=new Qr.Observable(function(t){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){t.next(c._stable),t.complete()})}),p=new Qr.Observable(function(t){var e=c._zone.onStable.subscribe(function(){Bi.assertNotInAngularZone(),o(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,t.next(!0))})}),n=c._zone.onUnstable.subscribe(function(){Bi.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return c._isStable=n.i(Xr.merge)(l,Zr.share.call(p)),c}return $r(e,t),e.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},e.prototype.detachView=function(t){var e=t;ft(this._views,e),e.detachFromAppRef()},e.prototype.bootstrap=function(t){var e=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.");var n;n=t instanceof Si?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var r=n instanceof ki?null:this._injector.get(Ni),o=n.create(Uo.NULL,[],n.selector,r);o.onDestroy(function(){e._unloadComponent(o)});var i=o.injector.get(qi,null);return i&&o.injector.get(Gi).registerApplication(o.location.nativeElement,i),this._loadComponent(o),st()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(vi,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},e.prototype._unloadComponent=function(t){this.detachView(t.hostView),ft(this._rootComponents,t)},e.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=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(t){this._exceptionHandler.handleError(t)}finally{this._runningTick=!1,Fi(t)}},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),e}(ts);es._tickScope=Li("ApplicationRef#tick()"),es.decorators=[{type:Ro}],es.ctorParameters=function(){return[{type:Bi},{type:gi},{type:Uo},{type:Wo},{type:Pi},{type:pi}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var ns=function(){function t(t,e,n,r,o,i){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i}return t}(),rs=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),os=function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,n){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,n){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,n){},t.prototype.listenGlobal=function(t,e,n){},t.prototype.setElementProperty=function(t,e,n){},t.prototype.setElementAttribute=function(t,e,n){},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){},t.prototype.setElementStyle=function(t,e,n){},t.prototype.invokeElementMethod=function(t,e,n){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,n,r,o,i,s){},t}(),is=(new to("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(t){},t}()),ss=function(){function t(){}return t.prototype.createRenderer=function(t,e){},t}(),as={};as.Important=1,as.DashCase=2,as[as.Important]="Important",as[as.DashCase]="DashCase";var us=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,n){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e,n){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,n,r){},t.prototype.removeStyle=function(t,e,n){},t.prototype.setProperty=function(t,e,n){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,n){},t}(),cs=function(){function t(t){this.nativeElement=t}return t}(),ls=function(){function t(){}return t.prototype.load=function(t){},t}(),ps=new Map,hs=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new Ui}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),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[r()]=function(){return this._results[r()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=vt(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),fs=function(){function t(){}return t}(),ds={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ys=function(){function t(t,e){this._compiler=t,this._config=e||ds}return t.prototype.load=function(t){return this._compiler instanceof bi?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),o=r[0],i=r[1];return void 0===i&&(i="default"),n(87)(o).then(function(t){return t[i]}).then(function(t){return mt(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n(87)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return mt(t,r,o)})},t}();ys.decorators=[{type:Ro}],ys.ctorParameters=function(){return[{type:bi},{type:fs,decorators:[{type:Io}]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var vs=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),ms=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(t){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,n){},t.prototype.createComponent=function(t,e,n,r,o){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),gs=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),_s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $r(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(gs),bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $r(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(_s),ws=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Es=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Cs?e.addChild(this):this.parent=null,this.listeners=[]}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}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),Cs=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return $r(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=this,r=this.childNodes.indexOf(t);-1!==r&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var o},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 _t(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return bt(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}(Es),Ss=new Map,xs=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ts=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof xs?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),Ps=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),As=function(){function t(){}return t.prototype.supports=function(t){return xt(t)},t.prototype.create=function(t,e){return new Ms(e||t)},t}(),Os=function(t,e){return e},Ms=function(){function t(t){this._length=0,this._collection=null,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||Os}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),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,o=null;e||n;){var i=!n||e&&e.currentIndex"+s(this.currentIndex)+"]"},t}(),Ns=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"+s(this.currentValue)+"]"},t}(),Ls=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}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 Vo,new Io]]}},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 '"+Mt(t)+"'")},t}(),Fs=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 Vo,new Io]]}},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}(),js=[new Rs],Hs=[new As],Us=new Ls(Hs),Bs=new Fs(js),qs=[{provide:yi,useValue:"unknown"},Ji,{provide:$i,useExisting:Ji},{provide:ti,useFactory:kt,deps:[]},{provide:Jo,useExisting:ti},Gi,gi],Gs=ut(null,"core",qs),zs=new to("LocaleId"),Ws=new to("Translations"),Ks=new to("TranslationsFormat"),Qs={};Qs.Error=0,Qs.Warning=1,Qs.Ignore=2,Qs[Qs.Error]="Error",Qs[Qs.Warning]="Warning",Qs[Qs.Ignore]="Ignore";var Xs={};Xs.NONE=0,Xs.HTML=1,Xs.STYLE=2,Xs.SCRIPT=3,Xs.URL=4,Xs.RESOURCE_URL=5,Xs[Xs.NONE]="NONE",Xs[Xs.HTML]="HTML",Xs[Xs.STYLE]="STYLE",Xs[Xs.SCRIPT]="SCRIPT",Xs[Xs.URL]="URL",Xs[Xs.RESOURCE_URL]="RESOURCE_URL";var Zs=function(){function t(){}return t.prototype.sanitize=function(t,e){},t}(),Ys=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(t){for(var e=[],n=1;n=0;e--){var n=Re(this._data,e);$s.destroyView(n)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ha(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,o){var i=n||this.parentInjector;o||t instanceof ki||(o=i.get(Ni));var s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var n=t,r=n._view;return Ie(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var n=this._embeddedViews.indexOf(t._view);return De(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Re(this._data,t);e&&$s.destroyView(e)},t.prototype.detach=function(t){var e=Re(this._data,t);return e?new ha(e):null},t}(),ha=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ue(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!=(16&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Zt(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){$s.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){$s.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)),$s.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Le(this._view),$s.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}(),fa=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return $r(e,t),e.prototype.createEmbeddedView=function(t){return new ha($s.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new cs(It(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(vs),da=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Uo.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(16777216&this.elDef.flags);return $s.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:qt(t)},e)},t}(),ya=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=de(e),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return t&&this.delegate.appendChild(t,i),i},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;n1?new e(t,r):1===o?new i.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;if(n>=r)return void o.complete();o.next(e[n]),o.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var i=0;i1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber)},297:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(9),i=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},e}(o.Observable);e.ErrorObservable=i},298:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(9),i=n(120),s=n(123),a=n(85),u=n(82),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(n))}var i=n(9),s=n(295),a=n(308),u=n(126);e.merge=r,e.mergeStatic=o},308:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(82),s=n(85);e.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();e.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return o(e,t),e.prototype._next=function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);e.MergeAllSubscriber=u},309:function(t,e,n){"use strict";function r(t,e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(n,e));var r=Object.create(this,o.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var o=n(296);e.multicast=r;var i=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(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();e.MulticastOperator=i},310:function(t,e,n){"use strict";function r(){return new s.Subject}function o(){return i.multicast.call(this,r).refCount()}var i=n(309),s=n(83);e.share=o},311:function(t,e,n){"use strict";function r(t){var e=this;if(t||(o.root.Rx&&o.root.Rx.config&&o.root.Rx.config.Promise?t=o.root.Rx.config.Promise:o.root.Promise&&(t=o.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})}var o=n(37);e.toPromise=r},312:function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i1;){var i=r.shift();o=o.hasOwnProperty(i)&&null!=o[i]?o[i]:o[i]={}}void 0!==o&&null!==o||(o={}),o[r.shift()]=n}/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + * @return {?} + */ +function c(){return!!window.history.pushState}function l(t,e){return function(){var n=r();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})}}function p(t){return n.i(V.getDebugNode)(t)}function h(t,e){var n=(t||[]).concat(e||[]);return r().setGlobalVar(rt,p),r().setGlobalVar(ot,et({},nt,f(n||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return yt.replace(ft,t)}function y(t){return dt.replace(ft,t)}function v(t,e,n){for(var r=0;r/g,">")}function T(t){Nt.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Nt.removeAttribute(t,n)});for(var e=0,n=Nt.childNodesAsList(t);e0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r-1},e}(ct);xt.decorators=[{type:V.Injectable}],xt.ctorParameters=function(){return[{type:void 0,decorators:[{type:V.Inject,args:[Q]}]},{type:St,decorators:[{type:V.Inject,args:[Ct]}]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Tt=["alt","control","meta","shift"],Pt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},At=function(t){function e(e){return t.call(this,e)||this}return F(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,o){var i=e.parseEventName(n),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,i.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(Tt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Tt.forEach(function(r){if(r!=n){(0,Pt[r])(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(ct);At.decorators=[{type:V.Injectable}],At.ctorParameters=function(){return[{type:void 0,decorators:[{type:V.Inject,args:[Q]}]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Ot=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Mt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,kt=null,Nt=null,It=E("area,br,col,hr,img,wbr"),Rt=E("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Dt=E("rp,rt"),Vt=C(Dt,Rt),Lt=C(Rt,E("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")),Ft=C(Dt,E("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")),jt=C(It,Lt,Ft,Vt),Ht=E("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ut=E("srcset"),Bt=E("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"),qt=C(Ht,Ut,Bt),Gt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(Nt.isElementNode(e)?this.startElement(e):Nt.isTextNode(e)?this.chars(Nt.nodeValue(e)):this.sanitizedSomething=!0,Nt.firstChild(e))e=Nt.firstChild(e);else for(;e;){Nt.isElementNode(e)&&this.endElement(e);var n=S(e,Nt.nextSibling(e));if(n){e=n;break}e=S(e,Nt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=Nt.nodeName(t).toLowerCase();if(!jt.hasOwnProperty(n))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(n),Nt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();if(!qt.hasOwnProperty(r))return void(e.sanitizedSomething=!0);Ht[r]&&(t=_(t)),Ut[r]&&(t=b(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(x(t)),e.buf.push('"')}),this.buf.push(">")},t.prototype.endElement=function(t){var e=Nt.nodeName(t).toLowerCase();jt.hasOwnProperty(e)&&!It.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),zt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wt=/([^\#-~ |!])/g,Kt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Qt=/^url\(([^)]+)\)$/,Xt=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),Zt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return F(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case V.SecurityContext.NONE:return e;case V.SecurityContext.HTML:return e instanceof $t?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),P(this._doc,String(e)));case V.SecurityContext.STYLE:return e instanceof Jt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case V.SecurityContext.SCRIPT:if(e instanceof te)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case V.SecurityContext.URL:return e instanceof ne||e instanceof ee?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case V.SecurityContext.RESOURCE_URL:if(e instanceof ne)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Yt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new $t(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Jt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new te(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new ee(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ne(t)},e}(Xt);Zt.decorators=[{type:V.Injectable}],Zt.ctorParameters=function(){return[{type:void 0,decorators:[{type:V.Inject,args:[Q]}]}]};var Yt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Yt),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Yt),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Yt),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Yt),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Yt),re=[{provide:V.PLATFORM_ID,useValue:D.b},{provide:V.PLATFORM_INITIALIZER,useValue:M,multi:!0},{provide:D.a,useClass:X},{provide:Q,useFactory:N,deps:[]}],oe=[{provide:V.Sanitizer,useExisting:Xt},{provide:Xt,useClass:Zt}],ie=n.i(V.createPlatformFactory)(V.platformCore,"browser",re),se=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:V.APP_ID,useValue:e.appId},{provide:Y,useExisting:V.APP_ID},$]}},t}();se.decorators=[{type:V.NgModule,args:[{providers:[oe,{provide:V.ErrorHandler,useFactory:k,deps:[]},{provide:at,useClass:wt,multi:!0},{provide:at,useClass:At,multi:!0},{provide:at,useClass:xt,multi:!0},{provide:Ct,useClass:St},vt,{provide:V.RendererFactory2,useExisting:vt},{provide:lt,useExisting:pt},pt,V.Testability,ut,st,Z,tt],exports:[D.c,V.ApplicationModule]}]}],se.ctorParameters=function(){return[{type:se,decorators:[{type:V.Optional},{type:V.SkipSelf}]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var ae="undefined"!=typeof window&&window||{},ue=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),ce=function(){function t(t){this.appRef=t.injector.get(V.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=ae.console.profile;e&&n&&ae.console.profile("Change Detection");for(var o=r().performanceNow(),i=0;i<5||r().performanceNow()-o<500;)this.appRef.tick(),i++;var s=r().performanceNow();e&&n&&ae.console.profileEnd("Change Detection");var a=(s-o)/i;return ae.console.log("ran "+i+" change detection cycles"),ae.console.log(a.toFixed(2)+" ms per check"),new ue(a,i)},t}(),le="ng.profiler",pe=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&r().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),he=new V.Version("4.1.1")},59:function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var o=n(123),i=n(125),s=n(124),a=n(318),u=n(122),c=n(314),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,p=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,y=p?p.length:0;l;)l.remove(this),l=++d-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function s(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(n)),i=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?F.One:F.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?F.One:F.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===n?F.One:F.Other;case"ar":return 0===n?F.Zero:1===n?F.One:2===n?F.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?F.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?F.Many:F.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?F.One:F.Other;case"be":return n%10==1&&n%100!=11?F.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?F.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?F.Many:F.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?F.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?F.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?F.Few:0!==n&&n%1e6==0?F.Many:F.Other;case"bs":case"hr":case"sr":return 0===i&&o%10==1&&o%100!=11||s%10==1&&s%100!=11?F.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?F.Few:F.Other;case"cs":case"sk":return 1===o&&0===i?F.One:o===Math.floor(o)&&o>=2&&o<=4&&0===i?F.Few:0!==i?F.Many:F.Other;case"cy":return 0===n?F.Zero:1===n?F.One:2===n?F.Two:3===n?F.Few:6===n?F.Many:F.Other;case"da":return 1===n||0!==a&&(0===o||1===o)?F.One:F.Other;case"dsb":case"hsb":return 0===i&&o%100==1||s%100==1?F.One:0===i&&o%100==2||s%100==2?F.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?F.Few:F.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?F.One:F.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!=4&&o%10!=6&&o%10!=9||0!==i&&s%10!=4&&s%10!=6&&s%10!=9?F.One:F.Other;case"ga":return 1===n?F.One:2===n?F.Two:n===Math.floor(n)&&n>=3&&n<=6?F.Few:n===Math.floor(n)&&n>=7&&n<=10?F.Many:F.Other;case"gd":return 1===n||11===n?F.One:2===n||12===n?F.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?F.Few:F.Other;case"gv":return 0===i&&o%10==1?F.One:0===i&&o%10==2?F.Two:0!==i||o%100!=0&&o%100!=20&&o%100!=40&&o%100!=60&&o%100!=80?0!==i?F.Many:F.Other:F.Few;case"he":return 1===o&&0===i?F.One:2===o&&0===i?F.Two:0!==i||n>=0&&n<=10||n%10!=0?F.Other:F.Many;case"is":return 0===a&&o%10==1&&o%100!=11||0!==a?F.One:F.Other;case"ksh":return 0===n?F.Zero:1===n?F.One:F.Other;case"kw":case"naq":case"se":case"smn":return 1===n?F.One:2===n?F.Two:F.Other;case"lag":return 0===n?F.Zero:0!==o&&1!==o||0===n?F.Other:F.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?F.Few:0!==s?F.Many:F.Other:F.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?F.Zero:n%10==1&&n%100!=11||2===i&&s%10==1&&s%100!=11||2!==i&&s%10==1?F.One:F.Other;case"mk":return 0===i&&o%10==1||s%10==1?F.One:F.Other;case"mt":return 1===n?F.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?F.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?F.Many:F.Other;case"pl":return 1===o&&0===i?F.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?F.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&o%10<=1||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&o%100<=14?F.Many:F.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?F.One:F.Other;case"ro":return 1===o&&0===i?F.One:0!==i||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?F.Few:F.Other;case"ru":case"uk":return 0===i&&o%10==1&&o%100!=11?F.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?F.Few:0===i&&o%10==0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?F.Many:F.Other;case"shi":return 0===o||1===n?F.One:n===Math.floor(n)&&n>=2&&n<=10?F.Few:F.Other;case"si":return 0===n||1===n||0===o&&1===s?F.One:F.Other;case"sl":return 0===i&&o%100==1?F.One:0===i&&o%100==2?F.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||0!==i?F.Few:F.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?F.One:F.Other;default:return F.Other}}function a(t){return t.name||typeof t}/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +function u(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+n.i(A["ɵstringify"])(t)+"'")}function c(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function l(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function p(t){return function(e,n){return t(e,n).split(" ")[0]}}function h(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=h(t,n,e);return r?r.substring(3):""}}function d(t,e){return t.hour12=e,t}function y(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function v(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function m(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,n){return h(e,n,t)}}function _(t,e,n){var r=ht[t];if(r)return r(e,n);var o=t,i=dt.get(o);if(!i){i=[];var s=void 0;pt.exec(t);for(var a=t;a;)s=pt.exec(a),s?(i=i.concat(s.slice(1)),a=i.pop()):(i.push(a),a=null);dt.set(o,i)}return i.reduce(function(t,r){var o=ft[r];return t+(o?o(e,n):b(r))},"")}function b(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function w(t,e,n,r,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&C(n)?+n:n))throw u(t,n);var a=void 0,c=void 0,l=void 0;if(r!==ct.Currency&&(a=1,c=0,l=3),o){var p=o.match(vt);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(a=E(p[1])),null!=p[3]&&(c=E(p[3])),null!=p[5]&&(l=E(p[5]))}return lt.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function E(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function C(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function x(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=P(t[9]+t[10]),r=P(t[9]+t[11])),o.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-n,a=P(t[5]||"0")-r,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}var A=n(20);n.d(e,"c",function(){return Tt}),n.d(e,"b",function(){return Pt}),n.d(e,"a",function(){return M});var O=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},M=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(t,e,n){},t.prototype.pushState=function(t,e,n){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),k=(new A.InjectionToken("Location Initialized"),function(){function t(){}return t.prototype.path=function(t){},t.prototype.prepareExternalUrl=function(t){},t.prototype.pushState=function(t,e,n,r){},t.prototype.replaceState=function(t,e,n,r){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(t){},t.prototype.getBaseHref=function(){},t}()),N=new A.InjectionToken("appBaseHref"),I=function(){function t(e){var n=this;this._subject=new A.EventEmitter,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(o(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,o(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();I.decorators=[{type:A.Injectable}],I.ctorParameters=function(){return[{type:k}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var R=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return O(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=I.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+I.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+I.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(k);R.decorators=[{type:A.Injectable}],R.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:A.Optional},{type:A.Inject,args:[N]}]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var D=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return O(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return I.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+I.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+I.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+I.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(k);D.decorators=[{type:A.Injectable}],D.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:A.Optional},{type:A.Inject,args:[N]}]}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var V=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}(),L=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return O(e,t),e.prototype.getPluralCategory=function(t){switch(s(this.locale,t)){case F.Zero:return"zero";case F.One:return"one";case F.Two:return"two";case F.Few:return"few";case F.Many:return"many";default:return"other"}},e}(V);L.decorators=[{type:A.Injectable}],L.ctorParameters=function(){return[{type:void 0,decorators:[{type:A.Inject,args:[A.LOCALE_ID]}]}]};var F={};F.Zero=0,F.One=1,F.Two=2,F.Few=3,F.Many=4,F.Other=5,F[F.Zero]="Zero",F[F.One]="One",F[F.Two]="Two",F[F.Few]="Few",F[F.Many]="Many",F[F.Other]="Other";/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var j=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(n.i(A["ɵisListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+n.i(A["ɵstringify"])(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();j.decorators=[{type:A.Directive,args:[{selector:"[ngClass]"}]}],j.ctorParameters=function(){return[{type:A.IterableDiffers},{type:A.KeyValueDiffers},{type:A.ElementRef},{type:A.Renderer}]},j.propDecorators={klass:[{type:A.Input,args:["class"]}],ngClass:[{type:A.Input}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var H=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(A.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(A.ComponentFactoryResolver),o=r.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(o,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();H.decorators=[{type:A.Directive,args:[{selector:"[ngComponentOutlet]"}]}],H.ctorParameters=function(){return[{type:A.ViewContainerRef}]},H.propDecorators={ngComponentOutlet:[{type:A.Input}],ngComponentOutletInjector:[{type:A.Input}],ngComponentOutletContent:[{type:A.Input}],ngComponentOutletNgModuleFactory:[{type:A.Input}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var U=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),B=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){n.i(A.isDevMode)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+a(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new U(null,e.ngForOf,-1,-1),o),s=new q(t,i);n.push(s)}else if(null==o)e._viewContainer.remove(r);else{var i=e._viewContainer.get(r);e._viewContainer.move(i,o);var s=new q(t,i);n.push(s)}});for(var r=0;r0){t.split("&").forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],o=r[0],i=r[1],s=e.get(o)||[];s.push(i),e.set(o,s)})}return e}function a(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function u(){var t="object"==typeof window?window:{};return null===L&&(L=t[V]={}),L}/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +function c(t,e){return t.createConnection(e).response}function l(t,e,n,r){var o=t;return e?o.merge(new X({method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):o.merge(new X({method:n,url:r}))}/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +function p(){return new K}function h(t,e){return new rt(t,e)}function f(t,e){return new ot(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var d=n(20),y=n(9),v=(n.n(y),n(49));n.d(e,"BrowserXhr",function(){return g}),n.d(e,"JSONPBackend",function(){return q}),n.d(e,"JSONPConnection",function(){return U}),n.d(e,"CookieXSRFStrategy",function(){return K}),n.d(e,"XHRBackend",function(){return Q}),n.d(e,"XHRConnection",function(){return W}),n.d(e,"BaseRequestOptions",function(){return Z}),n.d(e,"RequestOptions",function(){return X}),n.d(e,"BaseResponseOptions",function(){return T}),n.d(e,"ResponseOptions",function(){return x}),n.d(e,"ReadyState",function(){return b}),n.d(e,"RequestMethod",function(){return _}),n.d(e,"ResponseContentType",function(){return C}),n.d(e,"ResponseType",function(){return w}),n.d(e,"Headers",function(){return S}),n.d(e,"Http",function(){return rt}),n.d(e,"Jsonp",function(){return ot}),n.d(e,"HttpModule",function(){return it}),n.d(e,"JsonpModule",function(){return st}),n.d(e,"Connection",function(){return A}),n.d(e,"ConnectionBackend",function(){return P}),n.d(e,"XSRFStrategy",function(){return O}),n.d(e,"Request",function(){return Y}),n.d(e,"Response",function(){return R}),n.d(e,"QueryEncoder",function(){return k}),n.d(e,"URLSearchParams",function(){return N}),n.d(e,"VERSION",function(){return at}),n.d(e,"ɵg",function(){return F}),n.d(e,"ɵa",function(){return G}),n.d(e,"ɵf",function(){return I}),n.d(e,"ɵb",function(){return p}),n.d(e,"ɵc",function(){return h}),n.d(e,"ɵd",function(){return f});var m=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},g=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();g.decorators=[{type:d.Injectable}],g.ctorParameters=function(){return[]};var _={};_.Get=0,_.Post=1,_.Put=2,_.Delete=3,_.Options=4,_.Head=5,_.Patch=6,_[_.Get]="Get",_[_.Post]="Post",_[_.Put]="Put",_[_.Delete]="Delete",_[_.Options]="Options",_[_.Head]="Head",_[_.Patch]="Patch";var b={};b.Unsent=0,b.Open=1,b.HeadersReceived=2,b.Loading=3,b.Done=4,b.Cancelled=5,b[b.Unsent]="Unsent",b[b.Open]="Open",b[b.HeadersReceived]="HeadersReceived",b[b.Loading]="Loading",b[b.Done]="Done",b[b.Cancelled]="Cancelled";var w={};w.Basic=0,w.Cors=1,w.Default=2,w.Error=3,w.Opaque=4,w[w.Basic]="Basic",w[w.Cors]="Cors",w[w.Default]="Default",w[w.Error]="Error",w[w.Opaque]="Opaque";var E={};E.NONE=0,E.JSON=1,E.FORM=2,E.FORM_DATA=3,E.TEXT=4,E.BLOB=5,E.ARRAY_BUFFER=6,E[E.NONE]="NONE",E[E.JSON]="JSON",E[E.FORM]="FORM",E[E.FORM_DATA]="FORM_DATA",E[E.TEXT]="TEXT",E[E.BLOB]="BLOB",E[E.ARRAY_BUFFER]="ARRAY_BUFFER";var C={};C.Text=0,C.Json=1,C.ArrayBuffer=2,C.Blob=3,C[C.Text]="Text",C[C.Json]="Json",C[C.ArrayBuffer]="ArrayBuffer",C[C.Blob]="Blob";var S=function(){function t(e){var n=this;if(this._headers=new Map,this._normalizedNames=new Map,e)return e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):void Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),r.forEach(function(e){return n.append(t,e)})})}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),o=t.slice(e+1).trim();n.set(r,o)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(t){return o.push.apply(o,t.split(","))}),e[t._normalizedNames.get(r)]=o}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase())||null:null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),x=function(){function t(t){var e=void 0===t?{}:t,n=e.body,r=e.status,o=e.headers,i=e.statusText,s=e.type,a=e.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=o?o:null,this.statusText=null!=i?i:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),T=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:w.Default,headers:new S})||this}return m(e,t),e}(x);T.decorators=[{type:d.Injectable}],T.ctorParameters=function(){return[]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var P=function(){function t(){}return t.prototype.createConnection=function(t){},t}(),A=function(){function t(){}return t}(),O=function(){function t(){}return t.prototype.configureRequest=function(t){},t}(),M=function(t){return t>=200&&t<300},k=function(){function t(){}return t.prototype.encodeKey=function(t){return a(t)},t.prototype.encodeValue=function(t){return a(t)},t}(),N=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new k),this.rawParams=t,this.queryEncoder=e,this.paramsMap=s(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this.delete(t);var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],o=0;o=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return m(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(I),D=0,V="__ng_jsonp__",L=null,F=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+D++},t.prototype.requestCallback=function(t){return V+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){u()[t]=e},t.prototype.removeConnection=function(t){u()[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();F.decorators=[{type:d.Injectable}],F.ctorParameters=function(){return[]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var j="JSONP injected script did not invoke callback.",H="JSONP requests must use GET request method.",U=function(){function t(){}return t.prototype.finished=function(t){},t}(),B=function(t){function e(e,n,r){var o=t.call(this)||this;if(o._dom=n,o.baseResponseOptions=r,o._finished=!1,e.method!==_.Get)throw new TypeError(H);return o.request=e,o.response=new y.Observable(function(t){o.readyState=b.Loading;var i=o._id=n.nextRequestID();n.exposeConnection(i,o);var s=n.requestCallback(o._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+"="+s);var u=o._script=n.build(a),c=function(e){if(o.readyState!==b.Cancelled){if(o.readyState=b.Done,n.cleanup(u),!o._finished){var i=new x({body:j,type:w.Error,url:a});return r&&(i=r.merge(i)),void t.error(new R(i))}var s=new x({body:o._responseData,url:a});o.baseResponseOptions&&(s=o.baseResponseOptions.merge(s)),t.next(new R(s)),t.complete()}},l=function(e){if(o.readyState!==b.Cancelled){o.readyState=b.Done,n.cleanup(u);var i=new x({body:e.message,type:w.Error});r&&(i=r.merge(i)),t.error(new R(i))}};return u.addEventListener("load",c),u.addEventListener("error",l),n.send(u),function(){o.readyState=b.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),o._dom.cleanup(u)}}),o}return m(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==b.Cancelled&&(this._responseData=t)},e}(U),q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(P),G=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return m(e,t),e.prototype.createConnection=function(t){return new B(t,this._browserJSONP,this._baseResponseOptions)},e}(q);G.decorators=[{type:d.Injectable}],G.ctorParameters=function(){return[{type:F},{type:x}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var z=/^\)\]\}',?\n/,W=function(){function t(t,e,n){var r=this;this.request=t,this.response=new y.Observable(function(i){var s=e.build();s.open(_[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,r=null;204!==e&&"string"==typeof(r=void 0===s.response?s.responseText:s.response)&&(r=r.replace(z,"")),0===e&&(e=r?200:0);var a=S.fromResponseHeaderString(s.getAllResponseHeaders()),u=o(s)||t.url,c=s.statusText||"OK",l=new x({body:r,status:e,headers:a,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new R(l);if(p.ok=M(e),p.ok)return i.next(p),void i.complete();i.error(p)},u=function(t){var e=new x({body:t,type:w.Error,status:s.status,statusText:s.statusText});null!=n&&(e=n.merge(e)),i.error(new R(e))};if(r.setDetectedContentType(t,s),null==t.headers&&(t.headers=new S),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case C.ArrayBuffer:s.responseType="arraybuffer";break;case C.Json:s.responseType="json";break;case C.Text:s.responseType="text";break;case C.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(r.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case E.NONE:break;case E.JSON:e.setRequestHeader("content-type","application/json");break;case E.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case E.TEXT:e.setRequestHeader("content-type","text/plain");break;case E.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),K=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=n.i(v["ɵgetDOM"])().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),Q=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new W(t,this._browserXHR,this._baseResponseOptions)},t}();Q.decorators=[{type:d.Injectable}],Q.ctorParameters=function(){return[{type:g},{type:x},{type:O}]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var X=function(){function t(t){var e=void 0===t?{}:t,n=e.method,o=e.headers,i=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=n?r(n):null,this.headers=null!=o?o:null,this.body=null!=i?i:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c:null,this.responseType=null!=l?l:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new S(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof N?t.clone():"string"==typeof t?new N(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new N;return Object.keys(t).forEach(function(r){var o=t[r];Array.isArray(o)?o.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,o,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Z=function(t){function e(){return t.call(this,{method:_.Get,headers:new S})||this}return m(e,t),e}(X);Z.decorators=[{type:d.Injectable}],Z.ctorParameters=function(){return[]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var Y=function(t){function e(e){var n=t.call(this)||this,o=e.url;if(n.url=e.url,e.params){var i=e.params.toString();if(i.length>0){var s="?";-1!=n.url.indexOf("?")&&(s="&"==n.url[n.url.length-1]?"":"&"),n.url=o+s+i}}return n._body=e.body,n.method=r(e.method),n.headers=new S(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return m(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return E.JSON;case"application/x-www-form-urlencoded":return E.FORM;case"multipart/form-data":return E.FORM_DATA;case"text/plain":case"text/html":return E.TEXT;case"application/octet-stream":return this._body instanceof nt?E.ARRAY_BUFFER:E.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?E.NONE:this._body instanceof N?E.FORM:this._body instanceof tt?E.FORM_DATA:this._body instanceof et?E.BLOB:this._body instanceof nt?E.ARRAY_BUFFER:this._body&&"object"==typeof this._body?E.JSON:E.TEXT},e.prototype.getBody=function(){switch(this.contentType){case E.JSON:case E.FORM:return this.text();case E.FORM_DATA:return this._body;case E.TEXT:return this.text();case E.BLOB:return this.blob();case E.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(I),$=function(){},J="object"==typeof window?window:$,tt=J.FormData||$,et=J.Blob||$,nt=J.ArrayBuffer||$,rt=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=c(this._backend,new Y(l(this._defaultOptions,e,_.Get,t)));else{if(!(t instanceof Y))throw new Error("First argument must be a url string or Request instance.");n=c(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new Y(l(this._defaultOptions,e,_.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new Y(l(this._defaultOptions.merge(new X({body:e})),n,_.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new Y(l(this._defaultOptions.merge(new X({body:e})),n,_.Put,t)))},t.prototype.delete=function(t,e){return this.request(new Y(l(this._defaultOptions,e,_.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new Y(l(this._defaultOptions.merge(new X({body:e})),n,_.Patch,t)))},t.prototype.head=function(t,e){return this.request(new Y(l(this._defaultOptions,e,_.Head,t)))},t.prototype.options=function(t,e){return this.request(new Y(l(this._defaultOptions,e,_.Options,t)))},t}();rt.decorators=[{type:d.Injectable}],rt.ctorParameters=function(){return[{type:P},{type:X}]};var ot=function(t){function e(e,n){return t.call(this,e,n)||this}return m(e,t),e.prototype.request=function(t,e){if("string"==typeof t&&(t=new Y(l(this._defaultOptions,e,_.Get,t))),!(t instanceof Y))throw new Error("First argument must be a url string or Request instance.");if(t.method!==_.Get)throw new Error("JSONP requests must use GET request method.");return c(this._backend,t)},e}(rt);ot.decorators=[{type:d.Injectable}],ot.ctorParameters=function(){return[{type:P},{type:X}]};var it=function(){function t(){}return t}();it.decorators=[{type:d.NgModule,args:[{providers:[{provide:rt,useFactory:h,deps:[Q,X]},g,{provide:X,useClass:Z},{provide:x,useClass:T},Q,{provide:O,useFactory:p}]}]}],it.ctorParameters=function(){return[]};var st=function(){function t(){}return t}();st.decorators=[{type:d.NgModule,args:[{providers:[{provide:ot,useFactory:f,deps:[q,X]},F,{provide:X,useClass:Z},{provide:x,useClass:T},{provide:q,useClass:G}]}]}],st.ctorParameters=function(){return[]};/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var at=new d.Version("4.1.1")},9:function(t,e,n){"use strict";var r=n(37),o=n(317),i=n(121),s=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=o.toSubscriber(t,e,n);if(r?r.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o;o=n.subscribe(function(e){if(o)try{t(e)}catch(t){r(t),o.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.observable]=function(){return this},t.create=function(e){return new t(e)},t}();e.Observable=s}}); \ No newline at end of file diff --git a/example/app/app.html b/example/app/app.html new file mode 100644 index 0000000..2d290dd --- /dev/null +++ b/example/app/app.html @@ -0,0 +1,19 @@ + + +
+ {{ item.title }} ({{ item.price }} EUR/KG) +  -  + +  +  +
+ +
+Kokku: {{ getTotal() }} EUR + +

+ + diff --git a/example/index.html b/example/index.html new file mode 100644 index 0000000..36c0c6b --- /dev/null +++ b/example/index.html @@ -0,0 +1,18 @@ + + + + + cart + + + + + + + + + + + + + diff --git a/example/polyfills.js b/example/polyfills.js new file mode 100644 index 0000000..49f486c --- /dev/null +++ b/example/polyfills.js @@ -0,0 +1,71 @@ +!function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="/build/",n(n.s=141)}([function(t,n,e){var r=e(4),o=e(28),i=e(14),u=e(12),a=e(23),c=function(t,n,e){var s,f,l,h,p=t&c.F,v=t&c.G,d=t&c.S,y=t&c.P,g=t&c.B,m=v?r:d?r[n]||(r[n]={}):(r[n]||{}).prototype,_=v?o:o[n]||(o[n]={}),b=_.prototype||(_.prototype={});v&&(e=n);for(s in e)f=!p&&m&&void 0!==m[s],l=(f?m:e)[s],h=g&&f?a(l,r):y&&"function"==typeof l?a(Function.call,l):l,m&&u(m,s,l,t&c.U),_[s]!=l&&i(_,s,h),y&&b[s]!=l&&(b[s]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n,e){var r=e(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(56)("wks"),o=e(36),i=e(4).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(1),o=e(96),i=e(32),u=Object.defineProperty;n.f=e(7)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){t.exports=!e(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(31),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},,function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(0),o=e(2),i=e(24),u=function(t,n,e,r){var o=String(i(t)),u="<"+n;return""!==e&&(u+=" "+e+'="'+String(r).replace(/"/g,""")+'"'),u+">"+o+""};t.exports=function(t,n){var e={};e[t]=n(u),r(r.P+r.F*o(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",e)}},function(t,n,e){var r=e(4),o=e(14),i=e(10),u=e(36)("src"),a=Function.toString,c=(""+a).split("toString");e(28).inspectSource=function(t){return a.call(t)},(t.exports=function(t,n,e,a){var s="function"==typeof e;s&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(s&&(i(e,u)||o(e,u,t[n]?""+t[n]:c.join(String(n)))),t===r?t[n]=e:a?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||a.call(this)})},function(t,n,e){var r=e(24);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(6),o=e(30);t.exports=e(7)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(2);t.exports=function(t,n){return!!t&&r(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,e){var r=e(47),o=e(24);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(23),o=e(47),i=e(13),u=e(8),a=e(144);t.exports=function(t,n){var e=1==t,c=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l,p=n||a;return function(n,a,v){for(var d,y,g=i(n),m=o(g),_=r(a,v,3),b=u(m.length),w=0,k=e?p(n,b):c?p(n,0):void 0;b>w;w++)if((h||w in m)&&(d=m[w],y=_(d,w,g),t))if(e)k[w]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return w;case 2:k.push(d)}else if(f)return!1;return l?-1:s||f?f:k}}},function(t,n,e){var r=e(10),o=e(13),i=e(76)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(0),o=e(28),i=e(2);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},,function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(21);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(115),o=e(0),i=e(56)("metadata"),u=i.store||(i.store=new(e(118))),a=function(t,n,e){var o=u.get(t);if(!o){if(!e)return;u.set(t,o=new r)}var i=o.get(n);if(!i){if(!e)return;o.set(n,i=new r)}return i},c=function(t,n,e){var r=a(n,e,!1);return void 0!==r&&r.has(t)},s=function(t,n,e){var r=a(n,e,!1);return void 0===r?void 0:r.get(t)},f=function(t,n,e,r){a(e,r,!0).set(t,n)},l=function(t,n){var e=a(t,n,!1),r=[];return e&&e.forEach(function(t,n){r.push(n)}),r},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},p=function(t){o(o.S,"Reflect",t)};t.exports={store:u,map:a,has:c,get:s,set:f,keys:l,key:h,exp:p}},function(t,n,e){var r=e(55),o=e(30),i=e(16),u=e(32),a=e(10),c=e(96),s=Object.getOwnPropertyDescriptor;n.f=e(7)?s:function(t,n){if(t=i(t),n=u(n,!0),c)try{return s(t,n)}catch(t){}if(a(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){"use strict";if(e(7)){var r=e(39),o=e(4),i=e(2),u=e(0),a=e(58),c=e(80),s=e(23),f=e(38),l=e(30),h=e(14),p=e(41),v=e(31),d=e(8),y=e(35),g=e(32),m=e(10),_=e(109),b=e(50),w=e(3),k=e(13),S=e(69),T=e(33),E=e(18),x=e(34).f,O=e(81),P=e(36),F=e(5),j=e(17),M=e(62),I=e(77),A=e(114),D=e(48),N=e(53),C=e(42),R=e(61),z=e(90),Z=e(6),L=e(26),W=Z.f,B=L.f,U=o.RangeError,H=o.TypeError,q=o.Uint8Array,V=Array.prototype,G=c.ArrayBuffer,X=c.DataView,K=j(0),Y=j(2),J=j(3),Q=j(4),$=j(5),tt=j(6),nt=M(!0),et=M(!1),rt=A.values,ot=A.keys,it=A.entries,ut=V.lastIndexOf,at=V.reduce,ct=V.reduceRight,st=V.join,ft=V.sort,lt=V.slice,ht=V.toString,pt=V.toLocaleString,vt=F("iterator"),dt=F("toStringTag"),yt=P("typed_constructor"),gt=P("def_constructor"),mt=a.CONSTR,_t=a.TYPED,bt=a.VIEW,wt=j(1,function(t,n){return Ot(I(t,t[gt]),n)}),kt=i(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),St=!!q&&!!q.prototype.set&&i(function(){new q(1).set({})}),Tt=function(t,n){if(void 0===t)throw H("Wrong length!");var e=+t,r=d(t);if(n&&!_(e,r))throw U("Wrong length!");return r},Et=function(t,n){var e=v(t);if(e<0||e%n)throw U("Wrong offset!");return e},xt=function(t){if(w(t)&&_t in t)return t;throw H(t+" is not a typed array!")},Ot=function(t,n){if(!(w(t)&&yt in t))throw H("It is not a typed array constructor!");return new t(n)},Pt=function(t,n){return Ft(I(t,t[gt]),n)},Ft=function(t,n){for(var e=0,r=n.length,o=Ot(t,r);r>e;)o[e]=n[e++];return o},jt=function(t,n,e){W(t,n,{get:function(){return this._d[e]}})},Mt=function(t){var n,e,r,o,i,u,a=k(t),c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=O(a);if(void 0!=h&&!S(h)){for(u=h.call(a),r=[],n=0;!(i=u.next()).done;n++)r.push(i.value);a=r}for(l&&c>2&&(f=s(f,arguments[2],2)),n=0,e=d(a.length),o=Ot(this,e);e>n;n++)o[n]=l?f(a[n],n):a[n];return o},It=function(){for(var t=0,n=arguments.length,e=Ot(this,n);n>t;)e[t]=arguments[t++];return e},At=!!q&&i(function(){pt.call(new q(1))}),Dt=function(){return pt.apply(At?lt.call(xt(this)):xt(this),arguments)},Nt={copyWithin:function(t,n){return z.call(xt(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(xt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(xt(this),arguments)},filter:function(t){return Pt(this,Y(xt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return $(xt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(xt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(xt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return et(xt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(xt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return st.apply(xt(this),arguments)},lastIndexOf:function(t){return ut.apply(xt(this),arguments)},map:function(t){return wt(xt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(xt(this),arguments)},reduceRight:function(t){return ct.apply(xt(this),arguments)},reverse:function(){for(var t,n=this,e=xt(n).length,r=Math.floor(e/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return ft.call(xt(this),t)},subarray:function(t,n){var e=xt(this),r=e.length,o=y(t,r);return new(I(e,e[gt]))(e.buffer,e.byteOffset+o*e.BYTES_PER_ELEMENT,d((void 0===n?r:y(n,r))-o))}},Ct=function(t,n){return Pt(this,lt.call(xt(this),t,n))},Rt=function(t){xt(this);var n=Et(arguments[1],1),e=this.length,r=k(t),o=d(r.length),i=0;if(o+n>e)throw U("Wrong length!");for(;i255?255:255&r),o.v[v](e*n+o.o,r,kt)},F=function(t,n){W(t,n,{get:function(){return O(this,n)},set:function(t){return P(this,n,t)},enumerable:!0})};_?(y=e(function(t,e,r,o){f(t,y,s,"_d");var i,u,a,c,l=0,p=0;if(w(e)){if(!(e instanceof G||"ArrayBuffer"==(c=b(e))||"SharedArrayBuffer"==c))return _t in e?Ft(y,e):Mt.call(y,e);i=e,p=Et(r,n);var v=e.byteLength;if(void 0===o){if(v%n)throw U("Wrong length!");if((u=v-p)<0)throw U("Wrong length!")}else if((u=d(o)*n)+p>v)throw U("Wrong length!");a=u/n}else a=Tt(e,!0),u=a*n,i=new G(u);for(h(t,"_d",{b:i,o:p,l:u,e:a,v:new X(i)});l0?r:e)(t)}},function(t,n,e){var r=e(3);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(1),o=e(104),i=e(64),u=e(76)("IE_PROTO"),a=function(){},c=function(){var t,n=e(63)("iframe"),r=i.length;for(n.style.display="none",e(67).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("