text: !function(a){function b(a,b,e){return 4===arguments.length?c.apply(this,arguments):void d(a,{declarative:!0,deps:b,declare:e})}function c(a,b,c,e){d(a,{declarative:!1,deps:b,executingRequire:c,execute:e})}function d(a,b){b.name=a,a in o||(o[a]=b),b.normalizedDeps=b.deps}function e(a,b){if(b[a.groupIndex]=b[a.groupIndex]||[],-1==p.call(b[a.groupIndex],a)){b[a.groupIndex].push(a);for(var c=0,d=a.normalizedDeps.length;d>c;c++){var f=a.normalizedDeps[c],g=o[f];if(g&&!g.evaluated){var h=a.groupIndex+(g.declarative!=a.declarative);if(void 0===g.groupIndex||g.groupIndex<h){if(void 0!==g.groupIndex&&(b[g.groupIndex].splice(p.call(b[g.groupIndex],g),1),0==b[g.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");g.groupIndex=h}e(g,b)}}}}function f(a){var b=o[a];b.groupIndex=0;var c=[];e(b,c);for(var d=!!b.declarative==c.length%2,f=c.length-1;f>=0;f--){for(var g=c[f],i=0;i<g.length;i++){var k=g[i];d?h(k):j(k)}d=!d}}function g(a){return s[a]||(s[a]={name:a,dependencies:[],exports:{},importers:[]})}function h(b){if(!b.module){var c=b.module=g(b.name),d=b.module.exports,e=b.declare.call(a,function(a,b){if(c.locked=!0,"object"==typeof a)for(var e in a)d[e]=a[e];else d[a]=b;for(var f=0,g=c.importers.length;g>f;f++){var h=c.importers[f];if(!h.locked)for(var i=0;i<h.dependencies.length;++i)h.dependencies[i]===c&&h.setters[i](d)}return c.locked=!1,b},{id:b.name});c.setters=e.setters,c.execute=e.execute;for(var f=0,i=b.normalizedDeps.length;i>f;f++){var j,k=b.normalizedDeps[f],l=o[k],m=s[k];m?j=m.exports:l&&!l.declarative?j=l.esModule:l?(h(l),m=l.module,j=m.exports):j=n(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](j)}}}function i(a){var b,c=o[a];if(c)c.declarative?m(a,[]):c.evaluated||j(c),b=c.module.exports;else if(b=n(a),!b)throw new Error("Unable to load dependency "+a+".");return(!c||c.declarative)&&b&&b.__useDefault?b.default:b}function j(b){if(!b.module){var c={},d=b.module={exports:c,id:b.name};if(!b.executingRequire)for(var e=0,f=b.normalizedDeps.length;f>e;e++){var g=b.normalizedDeps[e],h=o[g];h&&j(h)}b.evaluated=!0;var l=b.execute.call(a,function(a){for(var c=0,d=b.deps.length;d>c;c++)if(b.deps[c]==a)return i(b.normalizedDeps[c]);throw new TypeError("Module "+a+" not declared as a dependency.")},c,d);void 0!==typeof l&&(d.exports=l),c=d.exports,c&&c.__esModule?b.esModule=c:b.esModule=k(c)}}function k(b){var c={};if(("object"==typeof b||"function"==typeof b)&&b!==a)if(q)for(var d in b)"default"!==d&&l(c,b,d);else{var e=b&&b.hasOwnProperty;for(var d in b)"default"===d||e&&!b.hasOwnProperty(d)||(c[d]=b[d])}return c.default=b,r(c,"__useDefault",{value:!0}),c}function l(a,b,c){try{var d;(d=Object.getOwnPropertyDescriptor(b,c))&&r(a,c,d)}catch(d){return a[c]=b[c],!1}}function m(b,c){var d=o[b];if(d&&!d.evaluated&&d.declarative){c.push(b);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==p.call(c,g)&&(o[g]?m(g,c):n(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(a))}}function n(a){if(u[a])return u[a];if("@node/"==a.substr(0,6))return u[a]=k(t(a.substr(6)));var b=o[a];if(!b)throw"Module "+a+" not present.";return f(a),m(a,[]),o[a]=void 0,b.declarative&&r(b.module.exports,"__esModule",{value:!0}),u[a]=b.declarative?b.module.exports:b.esModule}var o={},p=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},q=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(a){q=!1}var r;!function(){try{Object.defineProperty({},"a",{})&&(r=Object.defineProperty)}catch(a){r=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(a){}}}}();var s={},t="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,u={"@empty":{}};return function(a,d,e,f){return function(g){g(function(g){for(var h={_nodeRequire:t,register:b,registerDynamic:c,get:n,set:function(a,b){u[a]=b},newModule:function(a){return a}},i=0;i<d.length;i++)(function(a,b){b&&b.__esModule?u[a]=b:u[a]=k(b)})(d[i],arguments[i]);f(h);var j=n(a[0]);if(a.length>1)for(var i=1;i<a.length;i++)n(a[i]);return e?j.default:j})}}}("undefined"!=typeof self?self:global)(["1"],[],!0,function(a){var b=this.require,c=this.exports,d=this.module;!function(b){function c(a,b){a=a.replace(h,"");var c=a.match(k),d=(c[1].split(",")[b]||"require").replace(l,""),e=m[d]||(m[d]=new RegExp(i+d+j,"g"));e.lastIndex=0;for(var f,g=[];f=e.exec(a);)g.push(f[2]||f[3]);return g}function d(a,b,c,e){if("object"==typeof a&&!(a instanceof Array))return d.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if("string"==typeof a&&"function"==typeof b&&(a=[a]),!(a instanceof Array)){if("string"==typeof a){var g=f.get(a);return g.__useDefault?g.default:g}throw new TypeError("Invalid require")}for(var h=[],i=0;i<a.length;i++)h.push(f.import(a[i],e));Promise.all(h).then(function(a){b&&b.apply(null,a)},c)}function e(a,e,h){"string"!=typeof a&&(h=e,e=a,a=null),e instanceof Array||(h=e,e=["require","exports","module"].splice(0,h.length)),"function"!=typeof h&&(h=function(a){return function(){return a}}(h)),void 0===e[e.length-1]&&e.pop();var i,j,k;-1!=(i=g.call(e,"require"))&&(e.splice(i,1),a||(e=e.concat(c(h.toString(),i)))),-1!=(j=g.call(e,"exports"))&&e.splice(j,1),-1!=(k=g.call(e,"module"))&&e.splice(k,1);var l={name:a,deps:e,execute:function(a,c,g){for(var l=[],m=0;m<e.length;m++)l.push(a(e[m]));g.uri=g.id,g.config=function(){},-1!=k&&l.splice(k,0,g),-1!=j&&l.splice(j,0,c),-1!=i&&l.splice(i,0,function(b,c,e){return"string"==typeof b&&"function"!=typeof c?a(b):d.call(f,b,c,e,g.id)});var n=h.apply(-1==j?b:c,l);return"undefined"==typeof n&&g&&(n=g.exports),"undefined"!=typeof n?n:void 0}};if(a)n.anonDefine||n.isBundle?n.anonDefine&&n.anonDefine.name&&(n.anonDefine=null):n.anonDefine=l,n.isBundle=!0,f.registerDynamic(l.name,l.deps,!1,l.execute);else{if(n.anonDefine&&!n.anonDefine.name)throw new Error("Multiple anonymous defines in module "+a);n.anonDefine=l}}var f=a,g=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},h=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,i="(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])",j="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",k=/\(([^\)]*)\)/,l=/^\s+|\s+$/g,m={};e.amd={};var n={isBundle:!1,anonDefine:null};f.amdDefine=e,f.amdRequire=d}("undefined"!=typeof self?self:global),function(){var e=a.amdDefine;!function(a,f){"object"==typeof c&&"undefined"!=typeof d?f(c,b("@angular/core")):"function"==typeof e&&e.amd?e("2",["exports","3"],f):f((a.ng=a.ng||{},a.ng.compiler=a.ng.compiler||{}),a.ng.core)}(this,function(a,b){"use strict";function c(a,b,c){void 0===c&&(c=null);var d=[],e=a.visit?function(b){return a.visit(b,c)||b.visit(a,c)}:function(b){return b.visit(a,c)};return b.forEach(function(a){var b=e(a);b&&d.push(b)}),d}function d(a){return null!=a}function e(a){return null==a}function f(a){return"object"==typeof a&&null!==a&&Object.getPrototypeOf(a)===he}function g(a){if("string"==typeof a)return a;if(void 0===a||null===a)return""+a;if(a.overriddenName)return a.overriddenName;if(a.name)return a.name;var b=a.toString(),c=b.indexOf("\n");return c===-1?b:b.substring(0,c)}function h(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function i(a){return!h(a)}function j(a){return a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function k(a,b){if(d(a))for(var c=0;c<a.length;c++){var e=a[c];Array.isArray(e)?k(e,b):b.push(e)}return b}function l(a){if(":"!=a[0])return[null,a];var b=a.indexOf(":",1);if(b==-1)throw new Error('Unsupported format "'+a+'" expecting ":namespace:name"');return[a.slice(1,b),a.slice(b+1)]}function m(a){return null===a?null:l(a)[0]}function n(a,b){return a?":"+a+":"+b:b}function o(a){return pe[a.toLowerCase()]||qe}function p(a,b){return r(a,":",b)}function q(a,b){return r(a,".",b)}function r(a,b,c){var d=a.indexOf(b);return d==-1?c:[a.slice(0,d).trim(),a.slice(d+1).trim()]}function s(a){return a.replace(/\W/g,"_")}function t(a,b,c){return Array.isArray(a)?b.visitArray(a,c):f(a)?b.visitStringMap(a,c):e(a)||i(a)?b.visitPrimitive(a,c):b.visitOther(a,c)}function u(){throw new Error("unimplemented")}function v(a){var c=se.parse(a.selector)[0].getMatchingElementTemplate();return We.create({type:new Se({reference:Object,name:a.type.name+"_Host",moduleUrl:a.type.moduleUrl,isHost:!0}),template:new Ve({encapsulation:b.ViewEncapsulation.None,template:c,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:b.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function w(a){var b=new Map;return a.forEach(function(a){b.get(a.identifier.reference)||b.set(a.identifier.reference,a)}),ke.values(b)}function x(a){return a||[]}function y(a){return"object"==typeof a&&null!==a&&a.name&&a.filePath}function z(a){return a>=af&&a<=ff||a==_f}function A(a){return Cf<=a&&a<=Df}function B(a){return a>=Of&&a<=Xf||a>=Ef&&a<=If}function C(a){return a>=Of&&a<=Qf||a>=Ef&&a<=Gf||A(a)}function D(a,c){if(b.isDevMode()&&!e(c)){if(!Array.isArray(c))throw new Error("Expected '"+a+"' to be an array of strings.");for(var d=0;d<c.length;d+=1)if("string"!=typeof c[d])throw new Error("Expected '"+a+"' to be an array of strings.")}}function E(a,c){if(d(c)&&(!Array.isArray(c)||2!=c.length))throw new Error("Expected '"+a+"' to be an array, [start, end].");if(b.isDevMode()&&!e(c)){var f=c[0],g=c[1];bg.forEach(function(a){if(a.test(f)||a.test(g))throw new Error("['"+f+"', '"+g+"'] contains unusable interpolation symbol.")})}}function F(b,c){return new Hg(b,a.TokenType.Character,c,String.fromCharCode(c))}function G(b,c){return new Hg(b,a.TokenType.Identifier,0,c)}function H(b,c){return new Hg(b,a.TokenType.Keyword,0,c)}function I(b,c){return new Hg(b,a.TokenType.Operator,0,c)}function J(b,c){return new Hg(b,a.TokenType.String,0,c)}function K(b,c){return new Hg(b,a.TokenType.Number,c,"")}function L(b,c){return new Hg(b,a.TokenType.Error,0,c)}function M(a){return Of<=a&&a<=Xf||Ef<=a&&a<=If||a==Nf||a==kf}function N(a){if(0==a.length)return!1;var b=new Jg(a);if(!M(b.peek))return!1;for(b.advance();b.peek!==_e;){if(!O(b.peek))return!1;b.advance()}return!0}function O(a){return B(a)||A(a)||a==Nf||a==kf}function P(a){return a==Pf||a==Ff}function Q(a){return a==tf||a==rf}function R(a){return a===nf||a===hf||a===ag}function S(a){switch(a){case Rf:return bf;case Qf:return df;case Sf:return ef;case Tf:return af;case Vf:return cf;default:return a}}function T(a){var b=j(a.start)+"([\\s\\S]*?)"+j(a.end);return new RegExp(b,"g")}function U(a,b,c){void 0===c&&(c=null);var d=[],e=a.visit?function(b){return a.visit(b,c)||b.visit(a,c)}:function(b){return b.visit(a,c)};return b.forEach(function(a){var b=e(a);b&&d.push(b)}),d}function V(a,b,c,d,e){return void 0===d&&(d=!1),void 0===e&&(e=dg),new fh(new Qg(a,b),c,d,e).tokenize()}function W(a){var b=a===_e?"EOF":String.fromCharCode(a);return'Unexpected character "'+b+'"'}function X(a){return'Unknown entity "'+a+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function Y(a){return!z(a)||a===_e}function Z(a){return z(a)||a===Af||a===vf||a===nf||a===hf||a===zf}function $(a){return(a<Of||Xf<a)&&(a<Ef||If<a)&&(a<Cf||a>Df)}function _(a){return a==xf||a==_e||!C(a)}function aa(a){return a==xf||a==_e||!B(a)}function ba(a,b,c){var d=!!c&&a.indexOf(c.start,b)==b;return a.charCodeAt(b)==Yf&&!d}function ca(a){return a===zf||B(a)}function da(a,b){return ea(a)==ea(b)}function ea(a){return a>=Of&&a<=Xf?a-Of+Ef:a}function fa(a){for(var b,c=[],d=0;d<a.length;d++){var e=a[d];b&&b.type==Sg.TEXT&&e.type==Sg.TEXT?(b.parts[0]+=e.parts[0],b.sourceSpan.end=e.sourceSpan.end):(b=e,c.push(b))}return c}function ga(a,b){return a.length>0&&a[a.length-1]===b}function ha(a){return ja(ia(a.nodes).join("")+("["+a.meaning+"]"))}function ia(a){return a.map(function(a){return a.visit(mh,null)})}function ja(a){var b=ka(a),c=ma(b),d=8*b.length,e=new Array(80),f=[1732584193,4023233417,2562383102,271733878,3285377520],g=f[0],h=f[1],i=f[2],j=f[3],k=f[4];c[d>>5]|=128<<24-d%32,c[(d+64>>9<<4)+15]=d;for(var l=0;l<c.length;l+=16){for(var m=[g,h,i,j,k],n=m[0],o=m[1],p=m[2],q=m[3],r=m[4],s=0;s<80;s++){s<16?e[s]=c[l+s]:e[s]=qa(e[s-3]^e[s-8]^e[s-14]^e[s-16],1);var t=oa(s,h,i,j),u=t[0],v=t[1],w=[qa(g,5),u,k,v,e[s]].reduce(pa);A=[j,i,qa(h,30),g,w],k=A[0],j=A[1],i=A[2],h=A[3],g=A[4]}B=[pa(g,n),pa(h,o),pa(i,p),pa(j,q),pa(k,r)],g=B[0],h=B[1],i=B[2],j=B[3],k=B[4]}for(var x=na([g,h,i,j,k]),y="",l=0;l<x.length;l++){var z=x.charCodeAt(l);y+=(z>>>4&15).toString(16)+(15&z).toString(16)}return y.toLowerCase();var A,B}function ka(a){for(var b="",c=0;c<a.length;c++){var d=la(a,c);d<=127?b+=String.fromCharCode(d):d<=2047?b+=String.fromCharCode(192|d>>>6,128|63&d):d<=65535?b+=String.fromCharCode(224|d>>>12,128|d>>>6&63,128|63&d):d<=2097151&&(b+=String.fromCharCode(240|d>>>18,128|d>>>12&63,128|d>>>6&63,128|63&d))}return b}function la(a,b){if(b<0||b>=a.length)throw new Error("index="+b+' is out of range in "'+a+'"');var c,d=a.charCodeAt(b);return d>=55296&&d<=57343&&a.length>b+1&&(c=a.charCodeAt(b+1),c>=56320&&c<=57343)?1024*(d-55296)+c-56320+65536:d}function ma(a){for(var b=Array(a.length>>>2),c=0;c<b.length;c++)b[c]=0;for(var c=0;c<a.length;c++)b[c>>>2]|=(255&a.charCodeAt(c))<<8*(3-c&3);return b}function na(a){for(var b="",c=0;c<4*a.length;c++)b+=String.fromCharCode(a[c>>>2]>>>8*(3-c&3)&255);return b}function oa(a,b,c,d){return a<20?[b&c|~b&d,1518500249]:a<40?[b^c^d,1859775393]:a<60?[b&c|b&d|c&d,2400959708]:[b^c^d,3395469782]}function pa(a,b){var c=(65535&a)+(65535&b),d=(a>>16)+(b>>16)+(c>>16);return d<<16|65535&c}function qa(a,b){return a<<b|a>>>32-b}function ra(a){var b=new xh(wh,a);return function(a,c,d){return b.toI18nMessage(a,c,d)}}function sa(a){return a.split(yh)[1]}function ta(a,b,c,d){var e=new Gh(c,d);return e.extract(a,b)}function ua(a,b,c,d,e){var f=new Gh(d,e);return f.merge(a,b,c)}function va(a){return a instanceof Zg&&a.value&&a.value.startsWith("i18n")}function wa(a){return a instanceof Zg&&a.value&&"/i18n"===a.value}function xa(a){return a.attrs.find(function(a){return a.name===Bh})||null}function ya(a){if(!a)return["",""];var b=a.indexOf("|");return b==-1?["",a]:[a.slice(0,b),a.slice(b+1)]}function za(a){return Jh}function Aa(a){var b=a.getMessageMap(),c={};return Object.keys(b).forEach(function(a){c[a]=b[a].placeholders}),c}function Ba(a){var b=a.getMessageMap(),c={};return Object.keys(b).forEach(function(a){c[a]=b[a].placeholderToMsgIds}),c}function Ca(a){return a.map(function(a){return a.visit(Oh)}).join("")}function Da(a){return Uh.reduce(function(a,b){return a.replace(b[0],b[1])},a)}function Ea(a){switch(a.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+a}}function Fa(a,b,c){return void 0===b&&(b=null),void 0===c&&(c="src"),null==b?"asset:@angular/lib/"+a+"/index":"asset:@angular/lib/"+a+"/src/"+b}function Ga(a){return new Ne({name:a.name,moduleUrl:a.moduleUrl,reference:Li.resolveIdentifier(a.name,a.moduleUrl,a.runtime)})}function Ha(a){return new Re({identifier:a})}function Ia(a){return Ha(Ga(a))}function Ja(a,b){var c=Li.resolveEnum(a.reference,b);return new Ne({name:a.name+"."+b,moduleUrl:a.moduleUrl,reference:c})}function Ka(a){var b=new nj;return new lj(U(b,a),b.isExpanded,b.errors)}function La(a,b){var c=a.cases.map(function(a){kj.indexOf(a.value)!=-1||a.value.match(/^=\d+$/)||b.push(new mj(a.valueSourceSpan,'Plural cases should be "=<number>" or one of '+kj.join(", ")));var c=Ka(a.expression);return b.push.apply(b,c.errors),new Yg("template",[new Xg("ngPluralCase",""+a.value,a.valueSourceSpan)],c.nodes,a.sourceSpan,a.sourceSpan,a.sourceSpan)}),d=new Xg("[ngPlural]",a.switchValue,a.switchValueSourceSpan);return new Yg("ng-container",[d],c,a.sourceSpan,a.sourceSpan,a.sourceSpan)}function Ma(a,b){var c=a.cases.map(function(a){var c=Ka(a.expression);return b.push.apply(b,c.errors),new Yg("template",[new Xg("ngSwitchCase",""+a.value,a.valueSourceSpan)],c.nodes,a.sourceSpan,a.sourceSpan,a.sourceSpan)}),d=new Xg("[ngSwitch]",a.switchValue,a.switchValueSourceSpan);return new Yg("ng-container",[d],c,a.sourceSpan,a.sourceSpan,a.sourceSpan)}function Na(a,b){var c=b.useExisting,d=b.useValue,e=b.deps;return new Pe({token:a.token,useClass:a.useClass,useExisting:c,useFactory:a.useFactory,useValue:d,deps:e,multi:a.multi})}function Oa(a,b){var c=b.eager,d=b.providers;return new ee(a.token,a.multiProvider,a.eager||c,d,a.providerType,a.lifecycleHooks,a.sourceSpan)}function Pa(a,b,c,e){return void 0===e&&(e=null),e||(e=[]),d(a)&&a.forEach(function(a){if(Array.isArray(a))Pa(a,b,c,e);else{var f=void 0;a instanceof Pe?f=a:a instanceof Se?f=new Pe({token:new Re({identifier:a}),useClass:a}):c.push(new pj("Unknown provider type "+a,b)),d(f)&&e.push(f)}}),e}function Qa(b,c,d){var e=new Map;b.forEach(function(b){var f=new Pe({token:new Re({identifier:b.type}),useClass:b.type});Ra([f],b.isComponent?a.ProviderAstType.Component:a.ProviderAstType.Directive,!0,c,d,e)});var f=b.filter(function(a){return a.isComponent}).concat(b.filter(function(a){return!a.isComponent}));return f.forEach(function(b){Ra(Pa(b.providers,c,d),a.ProviderAstType.PublicService,!1,c,d,e),Ra(Pa(b.viewProviders,c,d),a.ProviderAstType.PrivateService,!1,c,d,e)}),e}function Ra(a,b,c,e,f,g){a.forEach(function(a){var h=g.get(a.token.reference);if(d(h)&&h.multiProvider!==a.multi&&f.push(new pj("Mixing multi and non multi provider is not possible for token "+h.token.name,e)),h)a.multi||(h.providers.length=0),h.providers.push(a);else{var i=a.token.identifier&&a.token.identifier instanceof Se?a.token.identifier.lifecycleHooks:[];h=new ee(a.token,a.multi,c||i.length>0,[a],b,i,e),g.set(a.token.reference,h)}})}function Sa(a){var b=new Map;return d(a.viewQueries)&&a.viewQueries.forEach(function(a){return Ua(b,a)}),a.type.diDeps.forEach(function(a){d(a.viewQuery)&&Ua(b,a.viewQuery)}),b}function Ta(a){var b=new Map;return a.forEach(function(a){d(a.queries)&&a.queries.forEach(function(a){return Ua(b,a)}),a.type.diDeps.forEach(function(a){d(a.query)&&Ua(b,a.query)})}),b}function Ua(a,b){b.selectors.forEach(function(c){var d=a.get(c.reference);d||(d=[],a.set(c.reference,d)),d.push(b)})}function Va(a){if(e(a)||0===a.length||"/"==a[0])return!1;var b=a.match(wj);return null===b||"package"==b[1]||"asset"==b[1]}function Wa(a,b,c){var d=[],e=c.replace(vj,function(){for(var c=[],e=0;e<arguments.length;e++)c[e-0]=arguments[e];var f=c[1]||c[2];return Va(f)?(d.push(a.resolve(b,f)),""):c[0]});return new uj(e,d)}function Xa(a){return"@"==a[0]}function Ya(a,c,d,e){var f=[];return se.parse(c).forEach(function(b){var c=b.element?[b.element]:a.allKnownElementNames(),g=new Set(b.notSelectors.filter(function(a){return a.isElementSelector()}).map(function(a){return a.element})),h=c.filter(function(a){return!g.has(a)});f.push.apply(f,h.map(function(b){return a.securityContext(b,d,e)}))}),0===f.length?[b.SecurityContext.NONE]:Array.from(new Set(f)).sort()}function Za(a){var b=null,c=null,d=null,e=!1,f=null;a.attrs.forEach(function(a){var g=a.name.toLowerCase();g==Hj?b=a.value:g==Lj?c=a.value:g==Kj?d=a.value:a.name==Pj?e=!0:a.name==Qj&&a.value.length>0&&(f=a.value)}),b=$a(b);var g=a.name.toLowerCase(),h=Dj.OTHER;return l(g)[1]==Ij?h=Dj.NG_CONTENT:g==Nj?h=Dj.STYLE:g==Oj?h=Dj.SCRIPT:g==Jj&&d==Mj&&(h=Dj.STYLESHEET),new Sj(h,b,c,e,f)}function $a(a){return null===a||0===a.length?"*":a}function _a(a){return a.trim().split(/\s+/g)}function ab(a,b){var c=new se,d=l(a)[1];c.setElement(d);for(var e=0;e<b.length;e++){var f=b[e][0],g=l(f)[1],h=b[e][1];if(c.addAttribute(g,h),f.toLowerCase()==gk){var i=_a(h);i.forEach(function(a){return c.addClassName(a)})}}return c}function bb(a){return a instanceof Ug&&0==a.value.trim().length}function cb(){throw new Error("unimplemented")}function db(a,b,c){var d=new wl(a,b);return c.visitExpression(d,null)}function eb(a){var b=new xl;return b.visitAllStatements(a,null),b.varNames}function fb(a,b){return void 0===b&&(b=null),new Lk(a,b)}function gb(a,b){return void 0===b&&(b=null),new Uk(a,null,b)}function hb(a,b,c){return void 0===b&&(b=null),void 0===c&&(c=null),d(a)?new Ak(a,b,c):null}function ib(a,b){return void 0===b&&(b=null),new bl(a,b)}function jb(a,b){return void 0===b&&(b=null),new cl(a,b)}function kb(a){return new Wk(a)}function lb(a,b,c){return void 0===c&&(c=null),new Zk(a,b,c)}function mb(a,b){return void 0===b&&(b=null),new Tk(a,b)}function nb(a,b){var c=mb(Vi);switch(b){case Vi:return a.equals(c);case Ti:return mb(!0);default:return a.equals(mb(b))}}function ob(a){if(a instanceof Fl&&a.duration>0&&2==a.keyframes.length){var b=pb(a.keyframes[0])[0],c=pb(a.keyframes[1])[0];return 0===Object.keys(b).length&&0===Object.keys(c).length}return!1}function pb(a){return a.styles.styles}function qb(a,b){var c=[];a.styles.styles.forEach(function(a){"object"==typeof a&&null!==a?c.push(a):b.push(new hm("State based animations cannot contain references to other states"))});var d=new Gl(c),e=a.stateNameExpr.split(/\s*,\s*/);return e.map(function(a){return new Cl(a,d)})}function rb(a,b,c){var d=new cm,e=[],f=a.stateChangeExpr.split(/\s*,\s*/);f.forEach(function(a){e.push.apply(e,tb(a,c))});var g=ub(a.steps),h=wb(g,b,c),i=Bb(h,0,d,b,c);0==c.length&&Cb(i,d,c);var j=i instanceof Il?i:new Kl([i]);return new El(e,j)}function sb(a,b){switch(a){case":enter":return"void => *";case":leave":return"* => void";default:return b.push(new hm('the transition alias value "'+a+'" is not supported')),"* => *"}}function tb(a,b){var c=[];":"==a[0]&&(a=sb(a,b));var e=a.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(!d(e)||e.length<4)return b.push(new hm("the provided "+a+" is not of a supported format")),c;var f=e[1],g=e[2],h=e[3];c.push(new Dl(f,h));var i=f==Ti&&h==Ti;return"<"!=g[0]||i||c.push(new Dl(h,f)),c}function ub(a){return Array.isArray(a)?new Le(a):a}function vb(a,b,c){var d=[];return a.styles.forEach(function(a){"string"==typeof a?d.push.apply(d,zb(a,b,c)):d.push(a)}),d}function wb(a,b,c){var d=yb(a,b,c);return a instanceof Me?new Me(d):new Le(d)}function xb(a,b){if("object"==typeof b&&null!==b&&a.length>0){var c=a.length-1,d=a[c];if("object"==typeof d&&null!==d)return void(a[c]=le.merge(d,b))}a.push(b)}function yb(a,b,c){var e;if(!(a instanceof Ke))return[a];e=a.steps;var f,g=[];return e.forEach(function(a){if(a instanceof Ie)d(f)||(f=[]),vb(a,b,c).forEach(function(a){xb(f,a)});else{if(d(f)&&(g.push(new Ie(0,f)),f=null),a instanceof Je){var e=a.styles;e instanceof Ie?e.styles=vb(e,b,c):e instanceof He&&e.steps.forEach(function(a){a.styles=vb(a,b,c)})}else if(a instanceof Ke){var h=yb(a,b,c);a=a instanceof Me?new Me(h):new Le(h)}g.push(a)}}),d(f)&&g.push(new Ie(0,f)),g}function zb(a,b,c){var e=[];if(":"!=a[0])c.push(new hm('Animation states via styles must be prefixed with a ":"'));else{var f=a.substring(1),g=b[f];d(g)?g.styles.forEach(function(a){"object"==typeof a&&null!==a&&e.push(a)}):c.push(new hm('Unable to apply styles due to missing a state: "'+f+'"'))}return e}function Ab(a,b,c,e,f){var g=a.steps.length,h=0;a.steps.forEach(function(a){return h+=d(a.offset)?1:0}),h>0&&h<g&&(f.push(new hm("Not all style() entries contain an offset for the provided keyframe()")),h=g);var i=g-1,j=0==h?1/i:0,k=[],l=0,m=!1,n=0;a.steps.forEach(function(a){var b=a.offset,c={};a.styles.forEach(function(a){Object.keys(a).forEach(function(b){"offset"!=b&&(c[b]=a[b])})}),d(b)?m=m||b<n:b=l==i?fm:j*l,k.push([b,c]),n=b,l++}),m&&k.sort(function(a,b){return a[0]<=b[0]?-1:1});var o=k[0];o[0]!=em&&k.splice(0,0,o=[em,{}]);var p=o[1];i=k.length-1;var q=k[i];q[0]!=fm&&(k.push(q=[fm,{}]),i++);for(var r=q[1],s=1;s<=i;s++){var t=k[s],u=t[1];Object.keys(u).forEach(function(a){d(p[a])||(p[a]=Wi)})}for(var v=function(a){var b=k[a],c=b[1];Object.keys(c).forEach(function(a){d(r[a])||(r[a]=c[a])})},s=i-1;s>=0;s--)v(s);return k.map(function(a){return new Hl(a[0],new Gl([a[1]]))})}function Bb(a,b,c,e,f){var g,h=0,i=b;if(a instanceof Ke){var j,k=0,l=[],m=a instanceof Me;if(a.steps.forEach(function(a){var g=m?i:b;if(a instanceof Ie)return a.styles.forEach(function(a){var b=a;Object.keys(b).forEach(function(a){c.insertAtTime(a,g,b[a])})}),void(j=a.styles);var n=Bb(a,g,c,e,f);if(d(j)){if(a instanceof Ke){var o=new Gl(j);l.push(new Fl(o,[],0,0,""))}else{var p=n;(r=p.startingStyles.styles).push.apply(r,j)}j=null}var q=n.playTime;b+=q,h+=q,k=Math.max(q,k),l.push(n);var r}),d(j)){var n=new Gl(j);l.push(new Fl(n,[],0,0,""))}m?(g=new Jl(l),h=k,b=i+h):g=new Kl(l)}else if(a instanceof Je){var o,p=Db(a.timings,f),q=a.styles;if(q instanceof He)o=Ab(q,b,c,e,f);else{var r=q,s=fm,t=new Gl(r.styles),u=new Hl(s,t);o=[u]}g=new Fl(new Gl([]),o,p.duration,p.delay,p.easing),h=p.duration+p.delay,b+=h,o.forEach(function(a){return a.styles.styles.forEach(function(a){return Object.keys(a).forEach(function(d){c.insertAtTime(d,b,a[d])})})})}else g=new Fl(null,[],0,0,"");return g.playTime=h,g.startTime=i,g}function Cb(a,b,c){if(a instanceof Fl&&a.keyframes.length>0){var d=a.keyframes;if(1==d.length){var e=d[0],f=Eb(e,a.startTime,a.playTime,b,c);a.keyframes=[f,e]}}else a instanceof Il&&a.steps.forEach(function(a){return Cb(a,b,c)})}function Db(a,b){var c,f=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,g=0,h=null;if("string"==typeof a){var i=a.match(f);if(null===i)return b.push(new hm('The provided timing value "'+a+'" is invalid.')),new km(0,0,null);var j=parseFloat(i[1]),k=i[2];"s"==k&&(j*=gm),c=Math.floor(j);var l=i[3],m=i[4];if(d(l)){var n=parseFloat(l);d(m)&&"s"==m&&(n*=gm),g=Math.floor(n)}var o=i[5];e(o)||(h=o)}else c=a;return new km(c,g,h)}function Eb(a,b,c,e,f){var g={},h=b+c;return a.styles.styles.forEach(function(a){Object.keys(a).forEach(function(c){var i=a[c];if("offset"!=c){var j,k,l,m=e.indexOfAtOrBeforeTime(c,b);d(m)?(j=e.getByIndex(c,m),l=j.value,k=e.getByIndex(c,m+1)):l=Wi,d(k)&&!k.matches(h,i)&&f.push(new hm('The animated CSS property "'+c+'" unexpectedly changes between steps "'+j.time+'ms" and "'+h+'ms" at "'+k.time+'ms"')),g[c]=l}})}),new Hl(em,new Gl([g]))}function Fb(a){return d(a.value)?mb(a.value):a.identifierIsInstance?gb(a.identifier).instantiate([],hb(a.identifier,[],[Rj.Const])):gb(a.identifier)}function Gb(a){if(0===a.length)return gb(Ga(gj.EMPTY_INLINE_ARRAY));var b=Math.log(a.length)/Math.log(2),c=Math.ceil(b),d=c<gj.inlineArrays.length?gj.inlineArrays[c]:gj.InlineArrayDynamic,e=Ga(d);return gb(e).instantiate([mb(a.length)].concat(a))}function Hb(a,b,c,d){d.fields.push(new nl(c.name,null));var e=b<gj.pureProxies.length?gj.pureProxies[b]:null;if(!e)throw new Error("Unsupported number of argument for pure functions: "+b);d.ctorStmts.push(dl.prop(c.name).set(gb(Ga(e)).callFn([a])).toStmt())}function Ib(a,b){var c=Object.keys(a.runtime).find(function(c){return a.runtime[c]===b});if(!c)throw new Error("Unknown enum value "+b+" in "+a.name);return gb(Ja(Ga(a),c))}function Jb(a){var b=""+a.fields.length,c=Lb(b);return a.fields.push(new nl(c.name,null,[Pk.Private])),a.ctorStmts.push(dl.prop(c.name).set(gb(Ga(gj.UNINITIALIZED))).toStmt()),new lm(c,b)}function Kb(a,b,c,d){var e=gb(Ga(gj.checkBinding)).callFn([c,b,a.currValExpr]);return a.forceUpdate&&(e=a.forceUpdate.or(e)),a.stmts.concat([new rl(e,d.concat([dl.prop(b.name).set(a.currValExpr).toStmt()]))])}function Lb(a){return dl.prop("_expr_"+a)}function Mb(a,b,c,d,e){var f=Yb(e),g=[];b||(b=new sm);var h=new rm(a,b,c,mm,e,!1),i=d.visit(h,gl.Expression);if(!i)return null;if(h.temporaryCount)for(var j=0;j<h.temporaryCount;j++)g.push(Qb(e,j));if(h.needsValueUnwrapper){var k=mm.callMethod("reset",[]).toStmt();g.push(k)}return g.push(f.set(i).toDeclStmt(null,[Pk.Final])),h.needsValueUnwrapper?new om(g,f,mm.prop("hasWrappedValue")):new om(g,f,null)}function Nb(a,b,c,d,e){b||(b=new sm);var f=new rm(a,b,c,null,e,!0),g=[];Vb(d.visit(f,gl.Statement),g),Rb(f.temporaryCount,e,g);var h=g.length-1,i=null;if(h>=0){var j=g[h],k=$b(j);k&&(i=Zb(e),g[h]=i.set(k.cast(Dk).notIdentical(mb(!1))).toDeclStmt(null,[Pk.Final]))}return new pm(g,i)}function Ob(a){var b=[],c=eb(a);return c.has(mm.name)&&b.push(mm.set(gb(Ga(gj.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[Pk.Final])),b}function Pb(a,b){return"tmp_"+a+"_"+b}function Qb(a,b){return new il(Pb(a,b),fl)}function Rb(a,b,c){for(var d=a-1;d>=0;d--)c.unshift(Qb(b,d))}function Sb(a,b){if(a!==gl.Statement)throw new Error("Expected a statement, but saw "+b)}function Tb(a,b){if(a!==gl.Expression)throw new Error("Expected an expression, but saw "+b)}function Ub(a,b){return a===gl.Statement?b.toStmt():b}function Vb(a,b){Array.isArray(a)?a.forEach(function(a){return Vb(a,b)}):b.push(a)}function Wb(a,b){if(0===b.length)return gb(Ga(gj.EMPTY_ARRAY));for(var c=dl.prop("_arr_"+a.fields.length),d=[],e=[],f=0;f<b.length;f++){var g="p"+f;d.push(new Yk(g)),e.push(fb(g))}return Hb(lb(d,[new ll(ib(e))],new Bk(Dk)),b.length,c,a),c.callFn(b)}function Xb(a,b){if(0===b.length)return gb(Ga(gj.EMPTY_MAP));for(var c=dl.prop("_map_"+a.fields.length),d=[],e=[],f=[],g=0;g<b.length;g++){var h="p"+g;d.push(new Yk(h)),e.push([b[g][0],fb(h)]),f.push(b[g][1])}return Hb(lb(d,[new ll(jb(e))],new Ck(Dk)),b.length,c,a),c.callFn(f)}function Yb(a){return fb("currVal_"+a)}function Zb(a){return fb("pd_"+a)}function $b(a){return a instanceof kl?a.expr:a instanceof ll?a.value:null}function _b(b,c,e,f,g,h){var i=[],j=b.prop("renderer");switch(f=ac(b,c,f,h),c.type){case a.PropertyBindingType.Property:g&&i.push(gb(Ga(gj.setBindingDebugInfo)).callFn([j,e,mb(c.name),f]).toStmt()),i.push(j.callMethod("setElementProperty",[e,mb(c.name),f]).toStmt());break;case a.PropertyBindingType.Attribute:f=f.isBlank().conditional(fl,f.callMethod("toString",[])),i.push(j.callMethod("setElementAttribute",[e,mb(c.name),f]).toStmt());break;case a.PropertyBindingType.Class:i.push(j.callMethod("setElementClass",[e,mb(c.name),f]).toStmt());break;case a.PropertyBindingType.Style:var k=f.callMethod("toString",[]);d(c.unit)&&(k=k.plus(mb(c.unit))),f=f.isBlank().conditional(fl,k),i.push(j.callMethod("setElementStyle",[e,mb(c.name),f]).toStmt());break;case a.PropertyBindingType.Animation:throw new Error("Illegal state: Should not come here!")}return i}function ac(a,c,d,e){if(c.securityContext===b.SecurityContext.NONE)return d;if(c.needsRuntimeSecurityContext||(e=Ib(gj.SecurityContext,c.securityContext)),!e)throw new Error("internal error, no SecurityContext given "+c.name);var f=a.prop("viewUtils").prop("sanitizer"),g=[e,d];return f.callMethod("sanitize",g)}function bc(a){var b=a.parentArgs||[],c=a.parent?[el.callFn(b).toStmt()]:[],d=cc(Array.isArray(a.builders)?a.builders:[a.builders]),e=new ol(null,a.ctorParams||[],c.concat(d.ctorStmts));return new ql(a.name,a.parent,d.fields,d.getters,e,d.methods,a.modifiers||[])}function cc(a){return{fields:(b=[]).concat.apply(b,a.map(function(a){return a.fields||[]})),methods:(c=[]).concat.apply(c,a.map(function(a){return a.methods||[]})),getters:(d=[]).concat.apply(d,a.map(function(a){return a.getters||[]})),ctorStmts:(e=[]).concat.apply(e,a.map(function(a){return a.ctorStmts||[]}))};var b,c,d,e}function dc(a){var b=fb("changed"),c=[b.set(dl.prop(wm)).toDeclStmt(),dl.prop(wm).set(mb(!1)).toStmt()],d=[];if(a.genChanges){var e=[];a.ngOnChanges&&e.push(dl.prop(um).callMethod("ngOnChanges",[dl.prop(vm)]).toStmt()),a.compilerConfig.logBindingUpdate&&e.push(gb(Ga(gj.setBindingDebugInfoForChanges)).callFn([Am.prop("renderer"),Bm,dl.prop(vm)]).toStmt()),e.push(Cm),d.push(new rl(b,e))}a.ngOnInit&&d.push(new rl(Am.prop("numberOfChecks").identical(new Tk(0)),[dl.prop(um).callMethod("ngOnInit",[]).toStmt()])),a.ngDoCheck&&d.push(dl.prop(um).callMethod("ngDoCheck",[]).toStmt()),d.length>0&&c.push(new rl(kb(ym),d)),c.push(new ll(b)),a.methods.push(new ol("detectChangesInInputProps",[new Yk(Am.name,hb(Ga(gj.AppView),[Dk])),new Yk(Bm.name,Dk),new Yk(ym.name,Ek)],c,Ek))}function ec(a,b){var c=Jb(b),d=[dl.prop(wm).set(mb(!0)).toStmt(),dl.prop(um).prop(a).set(xm).toStmt()];b.genChanges&&d.push(dl.prop(vm).key(mb(a)).set(gb(Ga(gj.SimpleChange)).instantiate([c.expression,xm])).toStmt());var e=Kb({currValExpr:xm,forceUpdate:zm,
  stmts:[]},c.expression,ym,d);b.methods.push(new ol("check_"+a,[new Yk(xm.name,Dk),new Yk(ym.name,Ek),new Yk(zm.name,Ek)],e))}function fc(a,b){var c=[],d=[new Yk(Am.name,hb(Ga(gj.AppView),[Dk])),new Yk(Bm.name,Dk),new Yk(ym.name,Ek)];a.forEach(function(a){var e=Jb(b),f=Mb(b,null,dl.prop(um),a.value,e.bindingId);if(f){var g;a.needsRuntimeSecurityContext&&(g=fb("secCtx_"+d.length),d.push(new Yk(g.name,hb(Ga(gj.SecurityContext))))),c.push.apply(c,Kb(f,e.expression,ym,_b(Am,a,Bm,f.currValExpr,b.compilerConfig.logBindingUpdate,g)))}}),b.methods.push(new ol("detectChangesInHostProps",d,c))}function gc(a,b,c){var d=[],e=new Fj(b,dg,c,[],d),f=a.type.moduleUrl?"in Directive "+a.type.name+" in "+a.type.moduleUrl:"in Directive "+a.type.name,g=new Qg("",f),h=new Rg(new Pg(g,null,null,null),new Pg(g,null,null,null)),i=e.createDirectiveHostPropertyAsts(a,h),j=e.createDirectiveHostEventAsts(a,h);return new Fm(i,j,d)}function hc(b,c){var d=b.filter(function(b){return b.level===a.ParseErrorLevel.WARNING}),e=b.filter(function(b){return b.level===a.ParseErrorLevel.FATAL});if(d.length>0&&this._console.warn("Directive parse warnings:\n"+d.join("\n")),e.length>0)throw new Error("Directive parse errors:\n"+e.join("\n"))}function ic(a,b){return void 0===b&&(b=null),t(a,new Gm,b)}function jc(a,b,c){if(b===c)return a;for(var e=dl,f=b;f!==c&&d(f.declarationElement.view);)f=f.declarationElement.view,e=e.prop("parent");if(f!==c)throw new Error("Internal error: Could not calculate a property in a parent view: "+a);return a.visitExpression(new Lm(e,c),null)}function kc(a,b){var c=[Fb(a)];return b&&c.push(fl),dl.prop("parentInjector").callMethod("get",c)}function lc(a,b){return"viewFactory_"+a.type.name+b}function mc(a){for(var b=[],c=ib([]),d=0;d<a.length;d++){var e=a[d];e.type instanceof Bk?(b.length>0&&(c=c.callMethod(Kk.ConcatArray,[ib(b)]),b=[]),c=c.callMethod(Kk.ConcatArray,[e])):b.push(e)}return b.length>0&&(c=c.callMethod(Kk.ConcatArray,[ib(b)])),c}function nc(a){return me.flatten(a.values.map(function(a){return a instanceof Mm?oc(a.view.declarationElement.appElement,a.view,nc(a)):a}))}function oc(a,b,c){var d=c.map(function(a){return db(dl.name,fb("nestedView"),a)});return a.callMethod("mapNestedViews",[fb(b.className),lb([new Yk("nestedView",b.classType)],[new ll(ib(d))],Dk)])}function pc(a,b,c,d){d.fields.push(new nl(c,hb(Ga(gj.QueryList),[Dk])));var e=dl.prop(c);return d.createMethod.addStmt(dl.prop(c).set(gb(Ga(gj.QueryList),[Dk]).instantiate([])).toStmt()),e}function qc(a,b){b.meta.selectors.forEach(function(c){var d=a.get(c.reference);d||(d=[],a.set(c.reference,d)),d.push(b)})}function rc(a,b,c,d){var e;return e=b>0?mb(a).lowerEquals(Tm.requestNodeIndex).and(Tm.requestNodeIndex.lowerEquals(mb(a+b))):mb(a).identical(Tm.requestNodeIndex),new rl(Tm.token.identical(Fb(c.token)).and(e),[new ll(d)])}function sc(a,b,c,d,e,f){var g,h,i=f.view;if(d?(g=ib(c),h=new Bk(Dk)):(g=c[0],h=c[0].type),h||(h=Dk),e)i.fields.push(new nl(a,h)),i.createMethod.addStmt(dl.prop(a).set(g).toStmt());else{var j="_"+a;i.fields.push(new nl(j,h));var k=new Jm(i);k.resetDebugInfo(f.nodeIndex,f.sourceAst),k.addStmt(new rl(dl.prop(j).isBlank(),[dl.prop(j).set(g).toStmt()])),k.addStmt(new ll(dl.prop(j))),i.getters.push(new pl(a,k.finish(),h))}return dl.prop(a)}function tc(a,b){for(var c=null,d=a.pipeMetas.length-1;d>=0;d--){var e=a.pipeMetas[d];if(e.name==b){c=e;break}}if(!c)throw new Error("Illegal state: Could not find pipe "+b+" although the parser should have detected this error!");return c}function uc(a,b){return b>0?Ci.EMBEDDED:a.type.isHost?Ci.HOST:Ci.COMPONENT}function vc(a,b,c){var d=[];return a.forEach(function(a){var b=cn.getOrCreate(c,a.target,a.name,a.phase,d);b.addAction(a,null,null)}),b.forEach(function(a){var b=c.instances.get(Ha(a.directive.type).reference);a.hostEvents.forEach(function(e){var f=cn.getOrCreate(c,e.target,e.name,e.phase,d);f.addAction(e,a.directive,b)})}),d.forEach(function(a){return a.finishMethod()}),d}function wc(a,b,c){Object.keys(a.directive.outputs).forEach(function(d){var e=a.directive.outputs[d];c.filter(function(a){return a.eventName==e}).forEach(function(a){a.listenToDirective(b,d)})})}function xc(a){a.forEach(function(a){a.isAnimation||a.listenToRenderer()})}function yc(a){return a.replace(/[^a-zA-Z_]/g,"_")}function zc(a,b,c){var d=c.view,e=a.type.lifecycleHooks,f=d.afterContentLifecycleCallbacksMethod;f.resetDebugInfo(c.nodeIndex,c.sourceAst),e.indexOf(ti.AfterContentInit)!==-1&&f.addStmt(new rl(dn,[b.callMethod("ngAfterContentInit",[]).toStmt()])),e.indexOf(ti.AfterContentChecked)!==-1&&f.addStmt(b.callMethod("ngAfterContentChecked",[]).toStmt())}function Ac(a,b,c){var d=c.view,e=a.type.lifecycleHooks,f=d.afterViewLifecycleCallbacksMethod;f.resetDebugInfo(c.nodeIndex,c.sourceAst),e.indexOf(ti.AfterViewInit)!==-1&&f.addStmt(new rl(dn,[b.callMethod("ngAfterViewInit",[]).toStmt()])),e.indexOf(ti.AfterViewChecked)!==-1&&f.addStmt(b.callMethod("ngAfterViewChecked",[]).toStmt())}function Bc(a,b,c){var d=c.view.destroyMethod;d.resetDebugInfo(c.nodeIndex,c.sourceAst),a.lifecycleHooks.indexOf(ti.OnDestroy)!==-1&&d.addStmt(b.callMethod("ngOnDestroy",[]).toStmt())}function Cc(a,b,c){var d=c.destroyMethod;a.type.lifecycleHooks.indexOf(ti.OnDestroy)!==-1&&d.addStmt(b.callMethod("ngOnDestroy",[]).toStmt())}function Dc(a,b,c){var d=Jb(c),e=Mb(c,c,c.componentContext,a.value,d.bindingId);return e?(c.detectChangesRenderPropertiesMethod.resetDebugInfo(b.nodeIndex,a),void c.detectChangesRenderPropertiesMethod.addStmts(Kb(e,d.expression,Um.throwOnChange,[dl.prop("renderer").callMethod("setText",[b.renderNode,e.currValExpr]).toStmt()]))):null}function Ec(b,c,d,e,f){var g=d.view,h=d.renderNode;b.forEach(function(b){var i=Jb(g);g.detectChangesRenderPropertiesMethod.resetDebugInfo(d.nodeIndex,b);var j=Mb(g,e?null:g,c,b.value,i.bindingId),k=[],l=g.detectChangesRenderPropertiesMethod;switch(b.type){case a.PropertyBindingType.Property:case a.PropertyBindingType.Attribute:case a.PropertyBindingType.Class:case a.PropertyBindingType.Style:k.push.apply(k,_b(dl,b,h,j.currValExpr,g.genConfig.logBindingUpdate));break;case a.PropertyBindingType.Animation:l=g.animationBindingsMethod;var m=[],n=b.name,o=e?d.appElement.prop("componentView"):dl,p=o.prop("componentType").prop("animations").key(mb(n)),q=mb(Vi),r=gb(Ga(gj.UNINITIALIZED)),s=fb("animationTransition_"+n);k.push(s.set(p.callFn([dl,h,i.expression.equals(r).conditional(q,i.expression),j.currValExpr.equals(r).conditional(q,j.currValExpr)])).toDeclStmt()),m.push(s.set(p.callFn([dl,h,i.expression,q])).toDeclStmt()),f.forEach(function(a){if(a.isAnimation&&a.eventName===n){var b=a.listenToAnimation(s);k.push(b),m.push(b)}}),g.detachMethod.addStmts(m)}l.addStmts(Kb(j,i.expression,Um.throwOnChange,k))})}function Fc(a,b,c){Ec(a,b.view.componentContext,b,!1,c)}function Gc(b,c,d,e,f,g){Ec(b.hostProperties.filter(function(a){return a.isAnimation}),c.prop("context"),d,!0,e);var h=[dl,d.renderNode,Um.throwOnChange];b.hostProperties.filter(function(a){return a.needsRuntimeSecurityContext}).forEach(function(b){var c;switch(b.type){case a.PropertyBindingType.Property:c=g.securityContext(f,b.name,!1);break;case a.PropertyBindingType.Attribute:c=g.securityContext(f,b.name,!0);break;default:throw new Error("Illegal state: Only property / attribute bindings can have an unknown security context! Binding "+b.name)}h.push(Ib(gj.SecurityContext,c))}),d.view.detectChangesRenderPropertiesMethod.addStmt(c.callMethod("detectChangesInHostProps",h).toStmt())}function Hc(a,b,c,d){var e=d.view,f=e.detectChangesInInputsMethod;f.resetDebugInfo(d.nodeIndex,d.sourceAst),a.inputs.forEach(function(a,g){var h=d.nodeIndex+"_"+c+"_"+g;f.resetDebugInfo(d.nodeIndex,a);var i=Mb(e,e,e.componentContext,a.value,h);i&&(f.addStmts(i.stmts),f.addStmt(b.callMethod("check_"+a.directiveName,[i.currValExpr,Um.throwOnChange,i.forceUpdate||mb(!1)]).toStmt()))});var g=a.directive.isComponent&&!ri(a.directive.changeDetection),h=b.callMethod("detectChangesInInputProps",[dl,d.renderNode,Um.throwOnChange]),i=g?new rl(h,[d.appElement.prop("componentView").callMethod("markAsCheckOnce",[]).toStmt()]):h.toStmt();f.addStmt(i)}function Ic(a,b,d){var e=new en(a,d);c(e,b),a.pipes.forEach(function(a){Cc(a.meta,a.instance,a.view)})}function Jc(a,b,d){var e=new mn(a,d);return c(e,b,a.declarationElement.isNull()?a.declarationElement:a.declarationElement.parent),e.nestedViewCount}function Kc(a,b){a.afterNodes(),Rc(a,b),a.nodes.forEach(function(a){a instanceof $m&&a.hasEmbeddedView&&Kc(a.embeddedView,b)})}function Lc(a){for(var b=a.view;Nc(a.parent,b);)a=a.parent;return a}function Mc(a){for(var b=a.view;Nc(a,b);)a=a.parent;return a}function Nc(a,b){return!a.isNull()&&a.sourceAst.name===jn&&a.view===b}function Oc(a,b){var c={};Object.keys(a).forEach(function(b){c[b]=a[b]}),b.forEach(function(a){Object.keys(a.hostAttributes).forEach(function(b){var e=a.hostAttributes[b],f=c[b];c[b]=d(f)?Qc(b,f,e):e})});var e=[];return Object.keys(c).sort().forEach(function(a){e.push(a,c[a])}),e}function Pc(a){var b={};return a.forEach(function(a){b[a.name]=a.value}),b}function Qc(a,b,c){return a==gn||a==hn?b+" "+c:c}function Rc(a,b){var c=fl;a.genConfig.genDebugInfo&&(c=fb("nodeDebugInfos_"+a.component.type.name+a.viewIndex),b.push(c.set(ib(a.nodes.map(Sc),new Bk(new Ak(Ga(gj.StaticNodeDebugInfo)),[Rj.Const]))).toDeclStmt(null,[Pk.Final])));var d=fb("renderType_"+a.component.type.name);0===a.viewIndex&&b.push(d.set(fl).toDeclStmt(hb(Ga(gj.RenderComponentType))));var e=Tc(a,d,c);b.push(e),b.push(Uc(a,e,d))}function Sc(a){var b=a instanceof $m?a:null,c=[],e=fl,f=[];return d(b)&&(c=b.getProviderTokens(),d(b.component)&&(e=Fb(Ha(b.component.type))),Object.keys(b.referenceTokens).forEach(function(a){var c=b.referenceTokens[a];f.push([a,d(c)?Fb(c):fl])})),gb(Ga(gj.StaticNodeDebugInfo)).instantiate([ib(c,new Bk(Dk,[Rj.Const])),e,jb(f,new Ck(Dk,[Rj.Const]))],hb(Ga(gj.StaticNodeDebugInfo),null,[Rj.Const]))}function Tc(a,b,c){var d=[new Yk(Rm.viewUtils.name,hb(Ga(gj.ViewUtils))),new Yk(Rm.parentInjector.name,hb(Ga(gj.Injector))),new Yk(Rm.declarationEl.name,hb(Ga(gj.AppElement)))],e=[fb(a.className),b,Om.fromValue(a.viewType),Rm.viewUtils,Rm.parentInjector,Rm.declarationEl,Qm.fromValue(Zc(a))];a.genConfig.genDebugInfo&&e.push(c);var f=[new ol("createInternal",[new Yk(ln.name,Gk)],Vc(a),hb(Ga(gj.AppElement))),new ol("injectorGetInternal",[new Yk(Tm.token.name,Dk),new Yk(Tm.requestNodeIndex.name,Fk),new Yk(Tm.notFoundResult.name,Dk)],Xc(a.injectorGetMethod.finish(),Tm.notFoundResult),Dk),new ol("detectChangesInternal",[new Yk(Um.throwOnChange.name,Ek)],Wc(a)),new ol("dirtyParentQueriesInternal",[],a.dirtyParentQueriesMethod.finish()),new ol("destroyInternal",[],a.destroyMethod.finish()),new ol("detachInternal",[],a.detachMethod.finish())].filter(function(a){return a.body.length>0}),g=a.genConfig.genDebugInfo?gj.DebugAppView:gj.AppView,h=bc({name:a.className,parent:gb(Ga(g),[Yc(a)]),parentArgs:e,ctorParams:d,builders:[{methods:f},a]});return h}function Uc(a,b,c){var d,e=[new Yk(Rm.viewUtils.name,hb(Ga(gj.ViewUtils))),new Yk(Rm.parentInjector.name,hb(Ga(gj.Injector))),new Yk(Rm.declarationEl.name,hb(Ga(gj.AppElement)))],f=[];if(d=a.component.template.templateUrl==a.component.type.moduleUrl?a.component.type.moduleUrl+" class "+a.component.type.name+" - inline template":a.component.template.templateUrl,0===a.viewIndex){var g=jb(a.animations.map(function(a){return[a.name,a.fnExp]}));f=[new rl(c.identical(fl),[c.set(Rm.viewUtils.callMethod("createRenderComponentType",[mb(a.genConfig.genDebugInfo?d:""),mb(a.component.template.ngContentSelectors.length),Pm.fromValue(a.component.template.encapsulation),a.styles,g])).toStmt()])]}return lb(e,f.concat([new ll(fb(b.name).instantiate(b.constructorMethod.params.map(function(a){return fb(a.name)})))]),hb(Ga(gj.AppView),[Yc(a)])).toDeclStmt(a.viewFactory.name,[Pk.Final])}function Vc(a){var b=fl,c=[];a.viewType===Ci.COMPONENT&&(b=Sm.renderer.callMethod("createViewRoot",[dl.prop("declarationAppElement").prop("nativeElement")]),c=[kn.set(b).toDeclStmt(hb(a.genConfig.renderTypes.renderNode),[Pk.Final])]);var d;return d=a.viewType===Ci.HOST?a.nodes[0].appElement:fl,c.concat(a.createMethod.finish(),[dl.callMethod("init",[mc(a.rootNodesOrAppElements),ib(a.nodes.map(function(a){return a.renderNode})),ib(a.disposables),ib(a.subscriptions)]).toStmt(),new ll(d)])}function Wc(a){var b=[];if(a.animationBindingsMethod.isEmpty()&&a.detectChangesInInputsMethod.isEmpty()&&a.updateContentQueriesMethod.isEmpty()&&a.afterContentLifecycleCallbacksMethod.isEmpty()&&a.detectChangesRenderPropertiesMethod.isEmpty()&&a.updateViewQueriesMethod.isEmpty()&&a.afterViewLifecycleCallbacksMethod.isEmpty())return b;b.push.apply(b,a.animationBindingsMethod.finish()),b.push.apply(b,a.detectChangesInInputsMethod.finish()),b.push(dl.callMethod("detectContentChildrenChanges",[Um.throwOnChange]).toStmt());var c=a.updateContentQueriesMethod.finish().concat(a.afterContentLifecycleCallbacksMethod.finish());c.length>0&&b.push(new rl(kb(Um.throwOnChange),c)),b.push.apply(b,a.detectChangesRenderPropertiesMethod.finish()),b.push(dl.callMethod("detectViewChildrenChanges",[Um.throwOnChange]).toStmt());var d=a.updateViewQueriesMethod.finish().concat(a.afterViewLifecycleCallbacksMethod.finish());d.length>0&&b.push(new rl(kb(Um.throwOnChange),d));var e=[],f=eb(b);return f.has(Um.changed.name)&&e.push(Um.changed.set(mb(!0)).toDeclStmt(Ek)),f.has(Um.changes.name)&&e.push(Um.changes.set(fl).toDeclStmt(new Ck(hb(Ga(gj.SimpleChange))))),e.push.apply(e,Ob(b)),e.concat(b)}function Xc(a,b){return a.length>0?a.concat([new ll(b)]):a}function Yc(a){return a.viewType===Ci.COMPONENT?hb(a.component.type):Dk}function Zc(a){var b;return b=a.viewType===Ci.COMPONENT?ri(a.component.changeDetection)?si.CheckAlways:si.CheckOnce:si.CheckAlways}function $c(a,b,c){var d=gd(a,c),e=d.ngModules,f=d.pipesAndDirectives,g=new Map;e.forEach(function(a){b.transitiveModules?a.transitiveModule.modules.forEach(function(a){g.set(a.type.reference,a)}):g.set(a.type.reference,a)});var h=ke.values(g),i=new Map,j=new Map,k=new Map,l=new Set;h.forEach(function(a){var b=a.type.reference.filePath;l.add(b),j.set(b,(j.get(b)||[]).concat(a.type.reference)),a.declaredDirectives.forEach(function(b){var c=b.type.reference.filePath;l.add(c),k.set(c,(k.get(c)||[]).concat(b.type.reference)),i.set(b.type.reference,a)}),a.declaredPipes.forEach(function(b){var c=b.type.reference.filePath;l.add(c),i.set(b.type.reference,a)})});var m=f.filter(function(a){return!i.has(a)});if(m.length){var n=m.map(function(a){return"Cannot determine the module for class "+a.name+" in "+a.filePath+"!"});throw new Error(n.join("\n"))}var o=[];return l.forEach(function(a){var b=k.get(a)||[],c=j.get(a)||[];o.push({srcUrl:a,directives:b,ngModules:c})}),{ngModuleByPipeOrDirective:i,files:o}}function _c(a){return a.dependencies.forEach(function(a){if(a instanceof Vm){var b=a;b.placeholder.moduleUrl=bd(b.comp.moduleUrl)}else if(a instanceof Wm){var c=a;c.placeholder.name=cd(c.comp),c.placeholder.moduleUrl=bd(c.comp.moduleUrl)}else if(a instanceof Xm){var d=a;d.placeholder.moduleUrl=bd(d.dir.moduleUrl)}}),a.statements}function ad(a,b){return a.dependencies.forEach(function(a){a.valuePlaceholder.moduleUrl=dd(a.moduleUrl,a.isShimmed,b)}),a.statements}function bd(a){var b=fd(a);return b[0]+".ngfactory"+b[1]}function cd(a){return a.name+"NgFactory"}function dd(a,b,c){return b?a+".shim"+c:""+a+c}function ed(a){if(!a.isComponent)throw new Error("Could not compile '"+a.type.name+"' because it is not a component.")}function fd(a){if(a.endsWith(".d.ts"))return[a.slice(0,-5),".ts"];var b=a.lastIndexOf(".");return b!==-1?[a.substring(0,b),a.substring(b)]:[a,""]}function gd(a,b){var c=[],d=[];return a.forEach(function(a){var e=b.getNgModuleMetadata(a,!1),f=b.getDirectiveMetadata(a,!1),g=b.getPipeMetadata(a,!1);e?c.push(e):f?d.push(a):g&&d.push(a)}),{ngModules:c,pipesAndDirectives:d}}function hd(){return new un}function id(){return new un(sn)}function jd(a){var b=ld(a);return b&&b[qm.Scheme]||""}function kd(a,b,c,e,f,g,h){var i=[];return d(a)&&i.push(a+":"),d(c)&&(i.push("//"),d(b)&&i.push(b+"@"),i.push(c),d(e)&&i.push(":"+e)),d(f)&&i.push(f),d(g)&&i.push("?"+g),d(h)&&i.push("#"+h),i.join("")}function ld(a){return a.match(vn)}function md(a){if("/"==a)return"/";for(var b="/"==a[0]?"/":"",c="/"===a[a.length-1]?"/":"",d=a.split("/"),e=[],f=0,g=0;g<d.length;g++){var h=d[g];switch(h){case"":case".":break;case"..":e.length>0?e.pop():f++;break;default:e.push(h)}}if(""==b){for(;f-- >0;)e.unshift("..");0===e.length&&e.push(".")}return b+e.join("/")+c}function nd(a){var b=a[qm.Path];return b=e(b)?"":md(b),a[qm.Path]=b,kd(a[qm.Scheme],a[qm.UserInfo],a[qm.Domain],a[qm.Port],b,a[qm.QueryData],a[qm.Fragment])}function od(a,b){var c=ld(encodeURI(b)),f=ld(a);if(d(c[qm.Scheme]))return nd(c);c[qm.Scheme]=f[qm.Scheme];for(var g=qm.Scheme;g<=qm.Port;g++)e(c[g])&&(c[g]=f[g]);if("/"==c[qm.Path][0])return nd(c);var h=f[qm.Path];e(h)&&(h="/");var i=h.lastIndexOf("/");return h=h.substring(0,i+1)+c[qm.Path],c[qm.Path]=h,nd(c)}function pd(a,b){return new We({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,template:b})}function qd(a){return a instanceof b.Directive}function rd(a,b){return Li.hasLifecycleHook(b,sd(a))}function sd(a){switch(a){case ti.OnInit:return"ngOnInit";case ti.OnDestroy:return"ngOnDestroy";case ti.DoCheck:return"ngDoCheck";case ti.OnChanges:return"ngOnChanges";case ti.AfterContentInit:return"ngAfterContentInit";case ti.AfterContentChecked:return"ngAfterContentChecked";case ti.AfterViewInit:return"ngAfterViewInit";case ti.AfterViewChecked:return"ngAfterViewChecked"}}function td(a){return a instanceof b.NgModule}function ud(a){return a instanceof b.Pipe}function vd(a,b,c,d){return void 0===c&&(c=[]),void 0===d&&(d=new Set),a.forEach(function(a){if(!d.has(a.type.reference)){d.add(a.type.reference);var e=b?a.importedModules.concat(a.exportedModules):a.exportedModules;vd(e,b,c,d),c.push(a)}}),c}function wd(a,c){if(void 0===c&&(c=[]),a)for(var d=0;d<a.length;d++){var e=b.resolveForwardRef(a[d]);Array.isArray(e)?wd(e,c):c.push(e)}return c}function xd(a){return y(a)||a instanceof b.Type}function yd(a){return y(a)?a.filePath:null}function zd(a,b,c){if(y(b))return yd(b);var d=c.moduleId;if("string"==typeof d){var e=jd(d);return e?d:"package:"+d+we}if(null!==d&&void 0!==d)throw new Error('moduleId should be a string in "'+g(b)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return a.importUri(b)}function Ad(a,b){return t(a,new Dn,b)}function Bd(a,b,c){if(void 0===c&&(c=!0),e(a))return null;var d=a.replace(Kn,function(){for(var a=[],c=0;c<arguments.length;c++)a[c-0]=arguments[c];return"$"==a[0]?b?"\\$":"$":"\n"==a[0]?"\\n":"\r"==a[0]?"\\r":"\\"+a[0]}),f=c||!Ln.test(d);return f?"'"+d+"'":d}function Cd(a){for(var b="",c=0;c<a;c++)b+="  ";return b}function Dd(a){var b=new Un(Sn),c=Pn.createRoot([]),d=Array.isArray(a)?a:[a];return d.forEach(function(a){if(a instanceof hl)a.visitStatement(b,c);else if(a instanceof Jk)a.visitExpression(b,c);else{if(!(a instanceof xk))throw new Error("Don't know how to print debug info for "+a);a.visitType(b,c)}}),c.toSource()}function Ed(a,b){var c=a.concat([new ll(fb(b))]),e=new Vn(null,null,null,new Map),f=new Xn,g=f.visitAllStatements(c,e);return d(g)?g.value:null}function Fd(a,b,c,e,f){for(var g=e.createChildWihtLocalVars(),h=0;h<a.length;h++)g.vars.set(a[h],b[h]);var i=f.visitAllStatements(c,g);return d(i)?i.value:null}function Gd(a,b,c){var d={};a.getters.forEach(function(e){d[e.name]={configurable:!1,get:function(){var d=new Vn(b,this,a.name,b.vars);return Fd([],[],e.body,d,c)}}}),a.methods.forEach(function(e){var f=e.params.map(function(a){return a.name});d[e.name]={writable:!1,configurable:!1,value:function(){for(var d=[],g=0;g<arguments.length;g++)d[g-0]=arguments[g];var h=new Vn(b,this,a.name,b.vars);return Fd(f,d,e.body,h,c)}}});var e=a.constructorMethod.params.map(function(a){return a.name}),f=function(){for(var d=this,f=[],g=0;g<arguments.length;g++)f[g-0]=arguments[g];var h=new Vn(b,this,a.name,b.vars);a.fields.forEach(function(a){d[a.name]=void 0}),Fd(e,f,a.constructorMethod.body,h,c)},g=a.parent?a.parent.visitExpression(c,b):Object;return f.prototype=Object.create(g.prototype,d),f}function Hd(a,b,c,d){return function(){for(var e=[],f=0;f<arguments.length;f++)e[f-0]=arguments[f];return Fd(a,e,b,c,d)}}function Id(a,b,c,d){var e=c+"\nreturn "+b+"\n//# sourceURL="+a,f=[],g=[];for(var h in d)f.push(h),g.push(d[h]);return(new(Function.bind.apply(Function,[void 0].concat(f.concat(e))))).apply(void 0,g)}function Jd(a,b,c){var d=new bo,e=Pn.createRoot([c]);return d.visitAllStatements(b,e),Id(a,c,e.toSource(),d.getArgs())}function Kd(a){return a.replace(uo,"")}function Ld(a){var b=a.match(vo);return b?b[0]:""}function Md(a,b){var c=Nd(a),d=0;return c.escapedString.replace(wo,function(){for(var a=[],e=0;e<arguments.length;e++)a[e-0]=arguments[e];var f=a[2],g="",h=a[4],i="";h&&h.startsWith("{"+Ao)&&(g=c.blocks[d++],h=h.substring(Ao.length+1),i="{");var j=b(new Bo(f,g));return""+a[1]+j.selector+a[3]+i+j.content+h})}function Nd(a){for(var b=a.split(xo),c=[],d=[],e=0,f=[],g=0;g<b.length;g++){var h=b[g];h==zo&&e--,e>0?f.push(h):(f.length>0&&(d.push(f.join("")),c.push(Ao),f=[]),c.push(h)),h==yo&&e++}return f.length>0&&(d.push(f.join("")),c.push(Ao)),new Co(c.join(""),d)}function Od(a){var b="styles";return a&&(b+="_"+a.type.name),b}function Pd(a){if(!a.isComponent)throw new Error("Could not compile '"+a.type.name+"' because it is not a component.")}function Qd(a,b){for(var c=0,d=b;c<d.length;c++){var e=d[c];No[e.toLowerCase()]=a}}function Rd(){Li.reflectionCapabilities=new Ni}function Sd(a){return{useDebug:Td(a.map(function(a){return a.useDebug})),useJit:Td(a.map(function(a){return a.useJit})),defaultEncapsulation:Td(a.map(function(a){return a.defaultEncapsulation})),providers:Ud(a.map(function(a){return a.providers}))}}function Td(a){for(var b=a.length-1;b>=0;b--)if(void 0!==a[b])return a[b]}function Ud(a){var b=[];return a.forEach(function(a){return a&&b.push.apply(b,a)}),b}var Vd=function(){function a(a,b,c){this.value=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitText(this,b)},a}(),Wd=function(){function a(a,b,c){this.value=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitBoundText(this,b)},a}(),Xd=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitAttr(this,b)},a}(),Yd=function(){function b(a,b,c,d,e,f,g){this.name=a,this.type=b,this.securityContext=c,this.needsRuntimeSecurityContext=d,this.value=e,this.unit=f,this.sourceSpan=g}return b.prototype.visit=function(a,b){return a.visitElementProperty(this,b)},Object.defineProperty(b.prototype,"isAnimation",{get:function(){return this.type===a.PropertyBindingType.Animation},enumerable:!0,configurable:!0}),b}(),Zd=function(){function a(a,b,c,d,e){this.name=a,this.target=b,this.phase=c,this.handler=d,this.sourceSpan=e}return a.prototype.visit=function(a,b){return a.visitEvent(this,b)},Object.defineProperty(a.prototype,"fullName",{get:function(){return this.target?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),a}(),$d=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitReference(this,b)},a}(),_d=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitVariable(this,b)},a}(),ae=function(){function a(a,b,c,d,e,f,g,h,i,j,k,l){this.name=a,this.attrs=b,this.inputs=c,this.outputs=d,this.references=e,this.directives=f,this.providers=g,this.hasViewContainer=h,this.children=i,this.ngContentIndex=j,this.sourceSpan=k,this.endSourceSpan=l}return a.prototype.visit=function(a,b){return a.visitElement(this,b)},a}(),be=function(){function a(a,b,c,d,e,f,g,h,i,j){this.attrs=a,this.outputs=b,this.references=c,this.variables=d,this.directives=e,this.providers=f,this.hasViewContainer=g,this.children=h,this.ngContentIndex=i,this.sourceSpan=j}return a.prototype.visit=function(a,b){return a.visitEmbeddedTemplate(this,b)},a}(),ce=function(){function a(a,b,c,d){this.directiveName=a,this.templateName=b,this.value=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitDirectiveProperty(this,b)},a}(),de=function(){function a(a,b,c,d,e){this.directive=a,this.inputs=b,this.hostProperties=c,this.hostEvents=d,this.sourceSpan=e}return a.prototype.visit=function(a,b){return a.visitDirective(this,b)},a}(),ee=function(){function a(a,b,c,d,e,f,g){this.token=a,this.multiProvider=b,this.eager=c,this.providers=d,this.providerType=e,this.lifecycleHooks=f,this.sourceSpan=g}return a.prototype.visit=function(a,b){return null},a}();a.ProviderAstType,function(a){a[a.PublicService=0]="PublicService",a[a.PrivateService=1]="PrivateService",a[a.Component=2]="Component",a[a.Directive=3]="Directive",a[a.Builtin=4]="Builtin"}(a.ProviderAstType||(a.ProviderAstType={}));var fe=function(){function a(a,b,c){this.index=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitNgContent(this,b)},a}();a.PropertyBindingType,function(a){a[a.Property=0]="Property",a[a.Attribute=1]="Attribute",a[a.Class=2]="Class",a[a.Style=3]="Style",a[a.Animation=4]="Animation"}(a.PropertyBindingType||(a.PropertyBindingType={}));var ge,he=Object.getPrototypeOf({}),ie=function(){function a(){}return a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new Error("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new Error("Invalid integer literal when parsing "+a+" in base "+b)},a.isNumeric=function(a){return!isNaN(a-parseFloat(a))},a}(),je=function(){try{if((new Map).values().next)return function(a,b){return b?Array.from(a.values()):Array.from(a.keys())}}catch(a){}return function(a,b){var c=new Array(a.size),d=0;return a.forEach(function(a,e){c[d]=b?a:e,d++}),c}}(),ke=function(){function a(){}return a.createFromStringMap=function(a){var b=new Map;for(var c in a)b.set(c,a[c]);return b},a.keys=function(a){return je(a,!1)},a.values=function(a){return je(a,!0)},a}(),le=function(){function a(){}return a.merge=function(a,b){for(var c={},d=0,e=Object.keys(a);d<e.length;d++){var f=e[d];c[f]=a[f]}for(var g=0,h=Object.keys(b);g<h.length;g++){var f=h[g];c[f]=b[f]}return c},a.equals=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e=0;e<c.length;e++){var f=c[e];if(a[f]!==b[f])return!1}return!0},a}(),me=function(){function a(){}return a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1&&(a.splice(c,1),!0)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.maximum=function(a,b){if(0==a.length)return null;for(var c=null,d=-(1/0),e=0;e<a.length;e++){var f=a[e];if(null!=f){var g=b(f);g>d&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return k(a,b),b},a}();!function(a){a[a.RAW_TEXT=0]="RAW_TEXT",a[a.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",a[a.PARSABLE_DATA=2]="PARSABLE_DATA"}(ge||(ge={}));var ne={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:"‌"},oe=function(){function a(a){var b=this,c=void 0===a?{}:a,d=c.closedByChildren,e=c.requiredParents,f=c.implicitNamespacePrefix,g=c.contentType,h=void 0===g?ge.PARSABLE_DATA:g,i=c.closedByParent,j=void 0!==i&&i,k=c.isVoid,l=void 0!==k&&k,m=c.ignoreFirstLf,n=void 0!==m&&m;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,d&&d.length>0&&d.forEach(function(a){return b.closedByChildren[a]=!0}),this.isVoid=l,this.closedByParent=j||l,e&&e.length>0&&(this.requiredParents={},this.parentToAdd=e[0],e.forEach(function(a){return b.requiredParents[a]=!0})),this.implicitNamespacePrefix=f,this.contentType=h,this.ignoreFirstLf=n}return a.prototype.requireExtraParent=function(a){if(!this.requiredParents)return!1;if(!a)return!0;var b=a.toLowerCase();return 1!=this.requiredParents[b]&&"template"!=b},a.prototype.isClosedByChild=function(a){return this.isVoid||a.toLowerCase()in this.closedByChildren},a}(),pe={base:new oe({isVoid:!0}),meta:new oe({isVoid:!0}),area:new oe({isVoid:!0}),embed:new oe({isVoid:!0}),link:new oe({isVoid:!0}),img:new oe({isVoid:!0}),input:new oe({isVoid:!0}),param:new oe({isVoid:!0}),hr:new oe({isVoid:!0}),br:new oe({isVoid:!0}),source:new oe({isVoid:!0}),track:new oe({isVoid:!0}),wbr:new oe({isVoid:!0}),p:new oe({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 oe({closedByChildren:["tbody","tfoot"]}),tbody:new oe({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new oe({closedByChildren:["tbody"],
  closedByParent:!0}),tr:new oe({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new oe({closedByChildren:["td","th"],closedByParent:!0}),th:new oe({closedByChildren:["td","th"],closedByParent:!0}),col:new oe({requiredParents:["colgroup"],isVoid:!0}),svg:new oe({implicitNamespacePrefix:"svg"}),math:new oe({implicitNamespacePrefix:"math"}),li:new oe({closedByChildren:["li"],closedByParent:!0}),dt:new oe({closedByChildren:["dt","dd"]}),dd:new oe({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new oe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new oe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new oe({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new oe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new oe({closedByChildren:["optgroup"],closedByParent:!0}),option:new oe({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new oe({ignoreFirstLf:!0}),listing:new oe({ignoreFirstLf:!0}),style:new oe({contentType:ge.RAW_TEXT}),script:new oe({contentType:ge.RAW_TEXT}),title:new oe({contentType:ge.ESCAPABLE_RAW_TEXT}),textarea:new oe({contentType:ge.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},qe=new oe,re=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)","g"),se=function(){function a(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return a.parse=function(b){var c,d=[],e=function(a,b){b.notSelectors.length>0&&!b.element&&0==b.classNames.length&&0==b.attrs.length&&(b.element="*"),a.push(b)},f=new a,g=f,h=!1;for(re.lastIndex=0;c=re.exec(b);){if(c[1]){if(h)throw new Error("Nesting :not is not allowed in a selector");h=!0,g=new a,f.notSelectors.push(g)}if(c[2]&&g.setElement(c[2]),c[3]&&g.addClassName(c[3]),c[4]&&g.addAttribute(c[4],c[5]),c[6]&&(h=!1,g=f),c[7]){if(h)throw new Error("Multiple selectors in :not are not supported");e(d,f),f=g=new a}}return e(d,f),d},a.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},a.prototype.hasElementSelector=function(){return!!this.element},a.prototype.setElement=function(a){void 0===a&&(a=null),this.element=a},a.prototype.getMatchingElementTemplate=function(){for(var a=this.element||"div",b=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",c="",d=0;d<this.attrs.length;d+=2){var e=this.attrs[d],f=""!==this.attrs[d+1]?'="'+this.attrs[d+1]+'"':"";c+=" "+e+f}return o(a).isVoid?"<"+a+b+c+"/>":"<"+a+b+c+"></"+a+">"},a.prototype.addAttribute=function(a,b){void 0===b&&(b=""),this.attrs.push(a,b&&b.toLowerCase()||"")},a.prototype.addClassName=function(a){this.classNames.push(a.toLowerCase())},a.prototype.toString=function(){var a=this.element||"";if(this.classNames&&this.classNames.forEach(function(b){return a+="."+b}),this.attrs)for(var b=0;b<this.attrs.length;b+=2){var c=this.attrs[b],d=this.attrs[b+1];a+="["+c+(d?"="+d:"")+"]"}return this.notSelectors.forEach(function(b){return a+=":not("+b+")"}),a},a}(),te=function(){function a(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return a.createNotMatcher=function(b){var c=new a;return c.addSelectables(b,null),c},a.prototype.addSelectables=function(a,b){var c=null;a.length>1&&(c=new ue(a),this._listContexts.push(c));for(var d=0;d<a.length;d++)this._addSelectable(a[d],b,c)},a.prototype._addSelectable=function(a,b,c){var d=this,e=a.element,f=a.classNames,g=a.attrs,h=new ve(a,b,c);if(e){var i=0===g.length&&0===f.length;i?this._addTerminal(d._elementMap,e,h):d=this._addPartial(d._elementPartialMap,e)}if(f)for(var j=0;j<f.length;j++){var i=0===g.length&&j===f.length-1,k=f[j];i?this._addTerminal(d._classMap,k,h):d=this._addPartial(d._classPartialMap,k)}if(g)for(var j=0;j<g.length;j+=2){var i=j===g.length-2,l=g[j],m=g[j+1];if(i){var n=d._attrValueMap,o=n.get(l);o||(o=new Map,n.set(l,o)),this._addTerminal(o,m,h)}else{var p=d._attrValuePartialMap,q=p.get(l);q||(q=new Map,p.set(l,q)),d=this._addPartial(q,m)}}},a.prototype._addTerminal=function(a,b,c){var d=a.get(b);d||(d=[],a.set(b,d)),d.push(c)},a.prototype._addPartial=function(b,c){var d=b.get(c);return d||(d=new a,b.set(c,d)),d},a.prototype.match=function(a,b){for(var c=!1,d=a.element,e=a.classNames,f=a.attrs,g=0;g<this._listContexts.length;g++)this._listContexts[g].alreadyMatched=!1;if(c=this._matchTerminal(this._elementMap,d,a,b)||c,c=this._matchPartial(this._elementPartialMap,d,a,b)||c,e)for(var g=0;g<e.length;g++){var h=e[g];c=this._matchTerminal(this._classMap,h,a,b)||c,c=this._matchPartial(this._classPartialMap,h,a,b)||c}if(f)for(var g=0;g<f.length;g+=2){var i=f[g],j=f[g+1],k=this._attrValueMap.get(i);j&&(c=this._matchTerminal(k,"",a,b)||c),c=this._matchTerminal(k,j,a,b)||c;var l=this._attrValuePartialMap.get(i);j&&(c=this._matchPartial(l,"",a,b)||c),c=this._matchPartial(l,j,a,b)||c}return c},a.prototype._matchTerminal=function(a,b,c,d){if(!a||"string"!=typeof b)return!1;var e=a.get(b),f=a.get("*");if(f&&(e=e.concat(f)),!e)return!1;for(var g,h=!1,i=0;i<e.length;i++)g=e[i],h=g.finalize(c,d)||h;return h},a.prototype._matchPartial=function(a,b,c,d){if(!a||"string"!=typeof b)return!1;var e=a.get(b);return!!e&&e.match(c,d)},a}(),ue=function(){function a(a){this.selectors=a,this.alreadyMatched=!1}return a}(),ve=function(){function a(a,b,c){this.selector=a,this.cbContext=b,this.listContext=c,this.notSelectors=a.notSelectors}return a.prototype.finalize=function(a,b){var c=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var d=te.createNotMatcher(this.notSelectors);c=!d.match(a,null)}return!c||!b||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),b(this.selector,this.cbContext)),c},a}(),we="",xe=function(){function a(){}return a.prototype.visitArray=function(a,b){var c=this;return a.map(function(a){return t(a,c,b)})},a.prototype.visitStringMap=function(a,b){var c=this,d={};return Object.keys(a).forEach(function(e){d[e]=t(a[e],c,b)}),d},a.prototype.visitPrimitive=function(a,b){return a},a.prototype.visitOther=function(a,b){return a},a}(),ye=function(){function a(a,b){void 0===b&&(b=null),this.syncResult=a,this.asyncResult=b,b||(this.asyncResult=Promise.resolve(a))}return a}(),ze=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Ae=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Be=function(){function a(){}return Object.defineProperty(a.prototype,"identifier",{get:function(){return u()},enumerable:!0,configurable:!0}),a}(),Ce=function(){function a(a,b){void 0===a&&(a=null),void 0===b&&(b=null),this.name=a,this.definitions=b}return a}(),De=function(){function a(){}return a}(),Ee=function(a){function b(b,c){a.call(this),this.stateNameExpr=b,this.styles=c}return ze(b,a),b}(De),Fe=function(a){function b(b,c){a.call(this),this.stateChangeExpr=b,this.steps=c}return ze(b,a),b}(De),Ge=function(){function a(){}return a}(),He=function(a){function b(b){void 0===b&&(b=[]),a.call(this),this.steps=b}return ze(b,a),b}(Ge),Ie=function(a){function b(b,c){void 0===c&&(c=null),a.call(this),this.offset=b,this.styles=c}return ze(b,a),b}(Ge),Je=function(a){function b(b,c){void 0===b&&(b=0),void 0===c&&(c=null),a.call(this),this.timings=b,this.styles=c}return ze(b,a),b}(Ge),Ke=function(a){function b(b){void 0===b&&(b=null),a.call(this),this.steps=b}return ze(b,a),b}(Ge),Le=function(a){function b(b){void 0===b&&(b=null),a.call(this,b)}return ze(b,a),b}(Ke),Me=function(a){function b(b){void 0===b&&(b=null),a.call(this,b)}return ze(b,a),b}(Ke),Ne=function(){function a(a){var b=void 0===a?{}:a,c=b.reference,d=b.name,e=b.moduleUrl,f=b.prefix,g=b.value;this.reference=c,this.name=d,this.prefix=f,this.moduleUrl=e,this.value=g}return Object.defineProperty(a.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),a}(),Oe=function(){function a(a){var b=void 0===a?{}:a,c=b.isAttribute,d=b.isSelf,e=b.isHost,f=b.isSkipSelf,g=b.isOptional,h=b.isValue,i=b.query,j=b.viewQuery,k=b.token,l=b.value;this.isAttribute=!!c,this.isSelf=!!d,this.isHost=!!e,this.isSkipSelf=!!f,this.isOptional=!!g,this.isValue=!!h,this.query=i,this.viewQuery=j,this.token=k,this.value=l}return a}(),Pe=function(){function a(a){var b=a.token,c=a.useClass,d=a.useValue,e=a.useExisting,f=a.useFactory,g=a.deps,h=a.multi;this.token=b,this.useClass=c,this.useValue=d,this.useExisting=e,this.useFactory=f,this.deps=g||null,this.multi=!!h}return a}(),Qe=function(a){function b(b){var c=b.reference,d=b.name,e=b.moduleUrl,f=b.prefix,g=b.diDeps,h=b.value;a.call(this,{reference:c,name:d,prefix:f,moduleUrl:e,value:h}),this.diDeps=x(g)}return ze(b,a),b}(Ne),Re=function(){function a(a){var b=a.value,c=a.identifier,d=a.identifierIsInstance;this.value=b,this.identifier=c,this.identifierIsInstance=!!d}return Object.defineProperty(a.prototype,"reference",{get:function(){return d(this.identifier)?this.identifier.reference:this.value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"name",{get:function(){return d(this.value)?s(this.value):this.identifier.name},enumerable:!0,configurable:!0}),a}(),Se=function(a){function b(b){var c=void 0===b?{}:b,d=c.reference,e=c.name,f=c.moduleUrl,g=c.prefix,h=c.isHost,i=c.value,j=c.diDeps,k=c.lifecycleHooks;a.call(this,{reference:d,name:e,moduleUrl:f,prefix:g,value:i}),this.isHost=!!h,this.diDeps=x(j),this.lifecycleHooks=x(k)}return ze(b,a),b}(Ne),Te=function(){function a(a){var b=void 0===a?{}:a,c=b.selectors,d=b.descendants,e=b.first,f=b.propertyName,g=b.read;this.selectors=c,this.descendants=!!d,this.first=!!e,this.propertyName=f,this.read=g}return a}(),Ue=function(){function a(a){var b=void 0===a?{}:a,c=b.moduleUrl,d=b.styles,e=b.styleUrls;this.moduleUrl=c,this.styles=x(d),this.styleUrls=x(e)}return a}(),Ve=function(){function a(a){var b=void 0===a?{}:a,c=b.encapsulation,d=b.template,e=b.templateUrl,f=b.styles,g=b.styleUrls,h=b.externalStylesheets,i=b.animations,j=b.ngContentSelectors,k=b.interpolation;if(this.encapsulation=c,this.template=d,this.templateUrl=e,this.styles=x(f),this.styleUrls=x(g),this.externalStylesheets=x(h),this.animations=i?me.flatten(i):[],this.ngContentSelectors=j||[],k&&2!=k.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=k}return a}(),We=function(){function a(a){var b=void 0===a?{}:a,c=b.type,d=b.isComponent,e=b.selector,f=b.exportAs,g=b.changeDetection,h=b.inputs,i=b.outputs,j=b.hostListeners,k=b.hostProperties,l=b.hostAttributes,m=b.providers,n=b.viewProviders,o=b.queries,p=b.viewQueries,q=b.entryComponents,r=b.template;this.type=c,this.isComponent=d,this.selector=e,this.exportAs=f,this.changeDetection=g,this.inputs=h,this.outputs=i,this.hostListeners=j,this.hostProperties=k,this.hostAttributes=l,this.providers=x(m),this.viewProviders=x(n),this.queries=x(o),this.viewQueries=x(p),this.entryComponents=x(q),this.template=r}return a.create=function(b){var c=void 0===b?{}:b,e=c.type,f=c.isComponent,g=c.selector,h=c.exportAs,i=c.changeDetection,j=c.inputs,k=c.outputs,l=c.host,m=c.providers,n=c.viewProviders,o=c.queries,q=c.viewQueries,r=c.entryComponents,s=c.template,t={},u={},v={};d(l)&&Object.keys(l).forEach(function(a){var b=l[a],c=a.match(Ae);null===c?v[a]=b:d(c[1])?u[c[1]]=b:d(c[2])&&(t[c[2]]=b)});var w={};d(j)&&j.forEach(function(a){var b=p(a,[a,a]);w[b[0]]=b[1]});var x={};return d(k)&&k.forEach(function(a){var b=p(a,[a,a]);x[b[0]]=b[1]}),new a({type:e,isComponent:!!f,selector:g,exportAs:h,changeDetection:i,inputs:w,outputs:x,hostListeners:t,hostProperties:u,hostAttributes:v,providers:m,viewProviders:n,queries:o,viewQueries:q,entryComponents:r,template:s})},Object.defineProperty(a.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),a}(),Xe=function(){function a(a){var b=void 0===a?{}:a,c=b.type,d=b.name,e=b.pure;this.type=c,this.name=d,this.pure=!!e}return Object.defineProperty(a.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),a}(),Ye=function(){function a(a){var b=void 0===a?{}:a,c=b.type,d=b.providers,e=b.declaredDirectives,f=b.exportedDirectives,g=b.declaredPipes,h=b.exportedPipes,i=b.entryComponents,j=b.bootstrapComponents,k=b.importedModules,l=b.exportedModules,m=b.schemas,n=b.transitiveModule,o=b.id;this.type=c,this.declaredDirectives=x(e),this.exportedDirectives=x(f),this.declaredPipes=x(g),this.exportedPipes=x(h),this.providers=x(d),this.entryComponents=x(i),this.bootstrapComponents=x(j),this.importedModules=x(k),this.exportedModules=x(l),this.schemas=x(m),this.id=o,this.transitiveModule=n}return Object.defineProperty(a.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),a}(),Ze=function(){function a(a,b,c,d,e){var f=this;this.modules=a,this.providers=b,this.entryComponents=c,this.directives=d,this.pipes=e,this.directivesSet=new Set,this.pipesSet=new Set,d.forEach(function(a){return f.directivesSet.add(a.type.reference)}),e.forEach(function(a){return f.pipesSet.add(a.type.reference)})}return a}(),$e=function(){function a(a,b){var c=b.useClass,d=b.useValue,e=b.useExisting,f=b.useFactory,g=b.deps,h=b.multi;this.token=a,this.useClass=c,this.useValue=d,this.useExisting=e,this.useFactory=f,this.dependencies=g,this.multi=!!h}return a}(),_e=0,af=9,bf=10,cf=11,df=12,ef=13,ff=32,gf=33,hf=34,jf=35,kf=36,lf=37,mf=38,nf=39,of=40,pf=41,qf=42,rf=43,sf=44,tf=45,uf=46,vf=47,wf=58,xf=59,yf=60,zf=61,Af=62,Bf=63,Cf=48,Df=57,Ef=65,Ff=69,Gf=70,Hf=88,If=90,Jf=91,Kf=92,Lf=93,Mf=94,Nf=95,Of=97,Pf=101,Qf=102,Rf=110,Sf=114,Tf=116,Uf=117,Vf=118,Wf=120,Xf=122,Yf=123,Zf=124,$f=125,_f=160,ag=96,bg=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],cg=function(){function a(a,b){this.start=a,this.end=b}return a.fromArray=function(b){return b?(E("interpolation",b),new a(b[0],b[1])):dg},a}(),dg=new cg("{{","}}"),eg=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},fg=function(){function a(a,b,c,d){this.input=b,this.errLocation=c,this.ctxLocation=d,this.message="Parser Error: "+a+" "+c+" ["+b+"] in "+d}return a}(),gg=function(){function a(a,b){this.start=a,this.end=b}return a}(),hg=function(){function a(a){this.span=a}return a.prototype.visit=function(a,b){return void 0===b&&(b=null),null},a.prototype.toString=function(){return"AST"},a}(),ig=function(a){function b(b,c,d,e){a.call(this,b),this.prefix=c,this.uninterpretedExpression=d,this.location=e}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitQuote(this,b)},b.prototype.toString=function(){return"Quote"},b}(hg),jg=function(a){function b(){a.apply(this,arguments)}return eg(b,a),b.prototype.visit=function(a,b){void 0===b&&(b=null)},b}(hg),kg=function(a){function b(){a.apply(this,arguments)}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitImplicitReceiver(this,b)},b}(hg),lg=function(a){function b(b,c){a.call(this,b),this.expressions=c}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitChain(this,b)},b}(hg),mg=function(a){function b(b,c,d,e){a.call(this,b),this.condition=c,this.trueExp=d,this.falseExp=e}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitConditional(this,b)},b}(hg),ng=function(a){function b(b,c,d){a.call(this,b),this.receiver=c,this.name=d}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPropertyRead(this,b)},b}(hg),og=function(a){function b(b,c,d,e){a.call(this,b),this.receiver=c,this.name=d,this.value=e}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPropertyWrite(this,b)},b}(hg),pg=function(a){function b(b,c,d){a.call(this,b),this.receiver=c,this.name=d}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafePropertyRead(this,b)},b}(hg),qg=function(a){function b(b,c,d){a.call(this,b),this.obj=c,this.key=d}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedRead(this,b)},b}(hg),rg=function(a){function b(b,c,d,e){a.call(this,b),this.obj=c,this.key=d,this.value=e}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedWrite(this,b)},b}(hg),sg=function(a){function b(b,c,d,e){a.call(this,b),this.exp=c,this.name=d,this.args=e}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPipe(this,b)},b}(hg),tg=function(a){function b(b,c){a.call(this,b),this.value=c}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralPrimitive(this,b)},b}(hg),ug=function(a){function b(b,c){a.call(this,b),this.expressions=c}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralArray(this,b)},b}(hg),vg=function(a){function b(b,c,d){a.call(this,b),this.keys=c,this.values=d}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralMap(this,b)},b}(hg),wg=function(a){function b(b,c,d){a.call(this,b),this.strings=c,this.expressions=d}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitInterpolation(this,b)},b}(hg),xg=function(a){function b(b,c,d,e){a.call(this,b),this.operation=c,this.left=d,this.right=e}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitBinary(this,b)},b}(hg),yg=function(a){function b(b,c){a.call(this,b),this.expression=c}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPrefixNot(this,b)},b}(hg),zg=function(a){function b(b,c,d,e){a.call(this,b),this.receiver=c,this.name=d,this.args=e}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitMethodCall(this,b)},b}(hg),Ag=function(a){function b(b,c,d,e){a.call(this,b),this.receiver=c,this.name=d,this.args=e}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafeMethodCall(this,b)},b}(hg),Bg=function(a){function b(b,c,d){a.call(this,b),this.target=c,this.args=d}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitFunctionCall(this,b)},b}(hg),Cg=function(a){function b(b,c,d,f){a.call(this,new gg(0,e(c)?0:c.length)),this.ast=b,this.source=c,this.location=d,this.errors=f}return eg(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),this.ast.visit(a,b)},b.prototype.toString=function(){return this.source+" in "+this.location},b}(hg),Dg=function(){function a(a,b,c,d){this.key=a,this.keyIsVar=b,this.name=c,this.expression=d}return a}(),Eg=function(){function a(){}return a.prototype.visitBinary=function(a,b){return a.left.visit(this),a.right.visit(this),null},a.prototype.visitChain=function(a,b){return this.visitAll(a.expressions,b)},a.prototype.visitConditional=function(a,b){return a.condition.visit(this),a.trueExp.visit(this),a.falseExp.visit(this),null},a.prototype.visitPipe=function(a,b){return a.exp.visit(this),this.visitAll(a.args,b),null},a.prototype.visitFunctionCall=function(a,b){return a.target.visit(this),this.visitAll(a.args,b),null},a.prototype.visitImplicitReceiver=function(a,b){return null},a.prototype.visitInterpolation=function(a,b){return this.visitAll(a.expressions,b)},a.prototype.visitKeyedRead=function(a,b){return a.obj.visit(this),a.key.visit(this),null},a.prototype.visitKeyedWrite=function(a,b){return a.obj.visit(this),a.key.visit(this),a.value.visit(this),null},a.prototype.visitLiteralArray=function(a,b){return this.visitAll(a.expressions,b)},a.prototype.visitLiteralMap=function(a,b){return this.visitAll(a.values,b)},a.prototype.visitLiteralPrimitive=function(a,b){return null},a.prototype.visitMethodCall=function(a,b){return a.receiver.visit(this),this.visitAll(a.args,b)},a.prototype.visitPrefixNot=function(a,b){return a.expression.visit(this),null},a.prototype.visitPropertyRead=function(a,b){return a.receiver.visit(this),null},a.prototype.visitPropertyWrite=function(a,b){return a.receiver.visit(this),a.value.visit(this),null},a.prototype.visitSafePropertyRead=function(a,b){return a.receiver.visit(this),null},a.prototype.visitSafeMethodCall=function(a,b){return a.receiver.visit(this),this.visitAll(a.args,b)},a.prototype.visitAll=function(a,b){var c=this;return a.forEach(function(a){return a.visit(c,b)}),null},a.prototype.visitQuote=function(a,b){return null},a}();a.TokenType,function(a){a[a.Character=0]="Character",a[a.Identifier=1]="Identifier",a[a.Keyword=2]="Keyword",a[a.String=3]="String",a[a.Operator=4]="Operator",a[a.Number=5]="Number",a[a.Error=6]="Error"}(a.TokenType||(a.TokenType={}));var Fg=["var","let","null","undefined","true","false","if","else","this"],Gg=function(){function a(){}return a.prototype.tokenize=function(a){for(var b=new Jg(a),c=[],d=b.scanToken();null!=d;)c.push(d),d=b.scanToken();return c},a.decorators=[{type:b.Injectable}],a.ctorParameters=[],a}(),Hg=function(){function b(a,b,c,d){this.index=a,this.type=b,this.numValue=c,this.strValue=d}return b.prototype.isCharacter=function(b){return this.type==a.TokenType.Character&&this.numValue==b},b.prototype.isNumber=function(){return this.type==a.TokenType.Number},b.prototype.isString=function(){return this.type==a.TokenType.String},b.prototype.isOperator=function(b){return this.type==a.TokenType.Operator&&this.strValue==b},b.prototype.isIdentifier=function(){return this.type==a.TokenType.Identifier},b.prototype.isKeyword=function(){return this.type==a.TokenType.Keyword},b.prototype.isKeywordLet=function(){return this.type==a.TokenType.Keyword&&"let"==this.strValue},b.prototype.isKeywordNull=function(){return this.type==a.TokenType.Keyword&&"null"==this.strValue},b.prototype.isKeywordUndefined=function(){return this.type==a.TokenType.Keyword&&"undefined"==this.strValue},b.prototype.isKeywordTrue=function(){return this.type==a.TokenType.Keyword&&"true"==this.strValue},b.prototype.isKeywordFalse=function(){return this.type==a.TokenType.Keyword&&"false"==this.strValue},b.prototype.isKeywordThis=function(){return this.type==a.TokenType.Keyword&&"this"==this.strValue},b.prototype.isError=function(){return this.type==a.TokenType.Error},b.prototype.toNumber=function(){return this.type==a.TokenType.Number?this.numValue:-1},b.prototype.toString=function(){switch(this.type){case a.TokenType.Character:case a.TokenType.Identifier:case a.TokenType.Keyword:case a.TokenType.Operator:case a.TokenType.String:case a.TokenType.Error:return this.strValue;case a.TokenType.Number:return this.numValue.toString();default:return null}},b}(),Ig=new Hg(-1,a.TokenType.Character,0,""),Jg=function(){function a(a){this.input=a,this.peek=0,this.index=-1,this.length=a.length,this.advance()}return a.prototype.advance=function(){this.peek=++this.index>=this.length?_e:this.input.charCodeAt(this.index)},a.prototype.scanToken=function(){for(var a=this.input,b=this.length,c=this.peek,d=this.index;c<=ff;){if(++d>=b){c=_e;break}c=a.charCodeAt(d)}if(this.peek=c,this.index=d,d>=b)return null;if(M(c))return this.scanIdentifier();if(A(c))return this.scanNumber(d);var e=d;switch(c){case uf:return this.advance(),A(this.peek)?this.scanNumber(e):F(e,uf);case of:case pf:case Yf:case $f:case Jf:case Lf:case sf:case wf:case xf:return this.scanCharacter(e,c);case nf:case hf:return this.scanString();case jf:case rf:case tf:case qf:case vf:case lf:case Mf:return this.scanOperator(e,String.fromCharCode(c));case Bf:return this.scanComplexOperator(e,"?",uf,".");case yf:case Af:return this.scanComplexOperator(e,String.fromCharCode(c),zf,"=");case gf:case zf:return this.scanComplexOperator(e,String.fromCharCode(c),zf,"=",zf,"=");case mf:return this.scanComplexOperator(e,"&",mf,"&");case Zf:return this.scanComplexOperator(e,"|",Zf,"|");case _f:for(;z(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(c)+"]",0)},a.prototype.scanCharacter=function(a,b){return this.advance(),F(a,b)},a.prototype.scanOperator=function(a,b){return this.advance(),I(a,b)},a.prototype.scanComplexOperator=function(a,b,c,e,f,g){this.advance();var h=b;return this.peek==c&&(this.advance(),h+=e),d(f)&&this.peek==f&&(this.advance(),h+=g),I(a,h)},a.prototype.scanIdentifier=function(){var a=this.index;for(this.advance();O(this.peek);)this.advance();var b=this.input.substring(a,this.index);return Fg.indexOf(b)>-1?H(a,b):G(a,b)},a.prototype.scanNumber=function(a){var b=this.index===a;for(this.advance();;){if(A(this.peek));else if(this.peek==uf)b=!1;else{if(!P(this.peek))break;if(this.advance(),Q(this.peek)&&this.advance(),!A(this.peek))return this.error("Invalid exponent",-1);b=!1}this.advance()}var c=this.input.substring(a,this.index),d=b?ie.parseIntAutoRadix(c):parseFloat(c);return K(a,d)},a.prototype.scanString=function(){var a=this.index,b=this.peek;this.advance();for(var c="",d=this.index,e=this.input;this.peek!=b;)if(this.peek==Kf){c+=e.substring(d,this.index),this.advance();var f=void 0;if(this.peek==Uf){var g=e.substring(this.index+1,this.index+5);try{f=ie.parseInt(g,16)}catch(a){return this.error("Invalid unicode escape [\\u"+g+"]",0)}for(var h=0;h<5;h++)this.advance()}else f=S(this.peek),this.advance();c+=String.fromCharCode(f),d=this.index}else{if(this.peek==_e)return this.error("Unterminated quote",0);this.advance()}var i=e.substring(d,this.index);return this.advance(),J(a,c+i)},a.prototype.error=function(a,b){var c=this.index+b;return L(c,"Lexer Error: "+a+" at column "+c+" in expression ["+this.input+"]")},a}(),Kg=function(){function a(a,b,c){this.strings=a,this.expressions=b,this.offsets=c}return a}(),Lg=function(){function a(a,b,c){this.templateBindings=a,this.warnings=b,this.errors=c}return a}(),Mg=function(){function a(a){this._lexer=a,this.errors=[]}return a.prototype.parseAction=function(a,b,c){void 0===c&&(c=dg),this._checkNoInterpolation(a,b,c);var d=this._stripComments(a),e=this._lexer.tokenize(this._stripComments(a)),f=new Ng(a,b,e,d.length,!0,this.errors,a.length-d.length).parseChain();return new Cg(f,a,b,this.errors)},a.prototype.parseBinding=function(a,b,c){void 0===c&&(c=dg);var d=this._parseBindingAst(a,b,c);return new Cg(d,a,b,this.errors)},a.prototype.parseSimpleBinding=function(a,b,c){void 0===c&&(c=dg);var d=this._parseBindingAst(a,b,c),e=Og.check(d);return e.length>0&&this._reportError("Host binding expression cannot contain "+e.join(" "),a,b),new Cg(d,a,b,this.errors)},a.prototype._reportError=function(a,b,c,d){this.errors.push(new fg(a,b,c,d))},a.prototype._parseBindingAst=function(a,b,c){var e=this._parseQuote(a,b);if(d(e))return e;this._checkNoInterpolation(a,b,c);var f=this._stripComments(a),g=this._lexer.tokenize(f);return new Ng(a,b,g,f.length,!1,this.errors,a.length-f.length).parseChain()},a.prototype._parseQuote=function(a,b){if(e(a))return null;var c=a.indexOf(":");if(c==-1)return null;var d=a.substring(0,c).trim();if(!N(d))return null;var f=a.substring(c+1);return new ig(new gg(0,a.length),d,f,b)},a.prototype.parseTemplateBindings=function(a,b){var c=this._lexer.tokenize(a);return new Ng(a,b,c,a.length,!1,this.errors,0).parseTemplateBindings()},a.prototype.parseInterpolation=function(a,b,c){void 0===c&&(c=dg);var d=this.splitInterpolation(a,b,c);if(null==d)return null;for(var f=[],g=0;g<d.expressions.length;++g){var h=d.expressions[g],i=this._stripComments(h),j=this._lexer.tokenize(this._stripComments(d.expressions[g])),k=new Ng(a,b,j,i.length,!1,this.errors,d.offsets[g]+(h.length-i.length)).parseChain();f.push(k)}return new Cg(new wg(new gg(0,e(a)?0:a.length),d.strings,f),a,b,this.errors)},a.prototype.splitInterpolation=function(a,b,c){void 0===c&&(c=dg);var d=T(c),e=a.split(d);if(e.length<=1)return null;for(var f=[],g=[],h=[],i=0,j=0;j<e.length;j++){var k=e[j];j%2===0?(f.push(k),i+=k.length):k.trim().length>0?(i+=c.start.length,g.push(k),h.push(i),i+=k.length+c.end.length):this._reportError("Blank expressions are not allowed in interpolated strings",a,"at column "+this._findInterpolationErrorColumn(e,j,c)+" in",b)}return new Kg(f,g,h)},a.prototype.wrapLiteralPrimitive=function(a,b){return new Cg(new tg(new gg(0,e(a)?0:a.length),a),a,b,this.errors)},a.prototype._stripComments=function(a){var b=this._commentStart(a);return d(b)?a.substring(0,b).trim():a},a.prototype._commentStart=function(a){for(var b=null,c=0;c<a.length-1;c++){var d=a.charCodeAt(c),f=a.charCodeAt(c+1);if(d===vf&&f==vf&&e(b))return c;b===d?b=null:e(b)&&R(d)&&(b=d)}return null},a.prototype._checkNoInterpolation=function(a,b,c){var d=T(c),e=a.split(d);e.length>1&&this._reportError("Got interpolation ("+c.start+c.end+") where expression was expected",a,"at column "+this._findInterpolationErrorColumn(e,1,c)+" in",b)},a.prototype._findInterpolationErrorColumn=function(a,b,c){for(var d="",e=0;e<b;e++)d+=e%2===0?a[e]:""+c.start+a[e]+c.end;return d.length},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:Gg}],a}(),Ng=function(){function b(a,b,c,d,e,f,g){this.input=a,this.location=b,this.tokens=c,this.inputLength=d,this.parseAction=e,this.errors=f,this.offset=g,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return b.prototype.peek=function(a){var b=this.index+a;return b<this.tokens.length?this.tokens[b]:Ig},Object.defineProperty(b.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),b.prototype.span=function(a){return new gg(a,this.inputIndex)},b.prototype.advance=function(){this.index++},b.prototype.optionalCharacter=function(a){return!!this.next.isCharacter(a)&&(this.advance(),!0)},b.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},b.prototype.expectCharacter=function(a){this.optionalCharacter(a)||this.error("Missing expected "+String.fromCharCode(a))},b.prototype.optionalOperator=function(a){return!!this.next.isOperator(a)&&(this.advance(),!0)},b.prototype.expectOperator=function(a){this.optionalOperator(a)||this.error("Missing expected operator "+a)},b.prototype.expectIdentifierOrKeyword=function(){var a=this.next;return a.isIdentifier()||a.isKeyword()?(this.advance(),a.toString()):(this.error("Unexpected token "+a+", expected identifier or keyword"),"")},b.prototype.expectIdentifierOrKeywordOrString=function(){var a=this.next;return a.isIdentifier()||a.isKeyword()||a.isString()?(this.advance(),a.toString()):(this.error("Unexpected token "+a+", expected identifier, keyword, or string"),"")},b.prototype.parseChain=function(){for(var a=[],b=this.inputIndex;this.index<this.tokens.length;){var c=this.parsePipe();if(a.push(c),this.optionalCharacter(xf))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(xf););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==a.length?new jg(this.span(b)):1==a.length?a[0]:new lg(this.span(b),a)},b.prototype.parsePipe=function(){var a=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var b=this.expectIdentifierOrKeyword(),c=[];this.optionalCharacter(wf);)c.push(this.parseExpression());a=new sg(this.span(a.span.start-this.offset),a,b,c)}while(this.optionalOperator("|"))}return a},b.prototype.parseExpression=function(){return this.parseConditional()},b.prototype.parseConditional=function(){var a=this.inputIndex,b=this.parseLogicalOr();if(this.optionalOperator("?")){var c=this.parsePipe(),d=void 0;if(this.optionalCharacter(wf))d=this.parsePipe();else{var e=this.inputIndex,f=this.input.substring(a,e);this.error("Conditional expression "+f+" requires all 3 expressions"),
  d=new jg(this.span(a))}return new mg(this.span(a),b,c,d)}return b},b.prototype.parseLogicalOr=function(){for(var a=this.parseLogicalAnd();this.optionalOperator("||");){var b=this.parseLogicalAnd();a=new xg(this.span(a.span.start),"||",a,b)}return a},b.prototype.parseLogicalAnd=function(){for(var a=this.parseEquality();this.optionalOperator("&&");){var b=this.parseEquality();a=new xg(this.span(a.span.start),"&&",a,b)}return a},b.prototype.parseEquality=function(){for(var b=this.parseRelational();this.next.type==a.TokenType.Operator;){var c=this.next.strValue;switch(c){case"==":case"===":case"!=":case"!==":this.advance();var d=this.parseRelational();b=new xg(this.span(b.span.start),c,b,d);continue}break}return b},b.prototype.parseRelational=function(){for(var b=this.parseAdditive();this.next.type==a.TokenType.Operator;){var c=this.next.strValue;switch(c){case"<":case">":case"<=":case">=":this.advance();var d=this.parseAdditive();b=new xg(this.span(b.span.start),c,b,d);continue}break}return b},b.prototype.parseAdditive=function(){for(var b=this.parseMultiplicative();this.next.type==a.TokenType.Operator;){var c=this.next.strValue;switch(c){case"+":case"-":this.advance();var d=this.parseMultiplicative();b=new xg(this.span(b.span.start),c,b,d);continue}break}return b},b.prototype.parseMultiplicative=function(){for(var b=this.parsePrefix();this.next.type==a.TokenType.Operator;){var c=this.next.strValue;switch(c){case"*":case"%":case"/":this.advance();var d=this.parsePrefix();b=new xg(this.span(b.span.start),c,b,d);continue}break}return b},b.prototype.parsePrefix=function(){if(this.next.type==a.TokenType.Operator){var b=this.inputIndex,c=this.next.strValue,d=void 0;switch(c){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),d=this.parsePrefix(),new xg(this.span(b),c,new tg(new gg(b,b),0),d);case"!":return this.advance(),d=this.parsePrefix(),new yg(this.span(b),d)}}return this.parseCallChain()},b.prototype.parseCallChain=function(){for(var a=this.parsePrimary();;)if(this.optionalCharacter(uf))a=this.parseAccessMemberOrMethodCall(a,!1);else if(this.optionalOperator("?."))a=this.parseAccessMemberOrMethodCall(a,!0);else if(this.optionalCharacter(Jf)){this.rbracketsExpected++;var b=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(Lf),this.optionalOperator("=")){var c=this.parseConditional();a=new rg(this.span(a.span.start),a,b,c)}else a=new qg(this.span(a.span.start),a,b)}else{if(!this.optionalCharacter(of))return a;this.rparensExpected++;var d=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(pf),a=new Bg(this.span(a.span.start),a,d)}},b.prototype.parsePrimary=function(){var a=this.inputIndex;if(this.optionalCharacter(of)){this.rparensExpected++;var b=this.parsePipe();return this.rparensExpected--,this.expectCharacter(pf),b}if(this.next.isKeywordNull())return this.advance(),new tg(this.span(a),null);if(this.next.isKeywordUndefined())return this.advance(),new tg(this.span(a),void 0);if(this.next.isKeywordTrue())return this.advance(),new tg(this.span(a),!0);if(this.next.isKeywordFalse())return this.advance(),new tg(this.span(a),!1);if(this.next.isKeywordThis())return this.advance(),new kg(this.span(a));if(this.optionalCharacter(Jf)){this.rbracketsExpected++;var c=this.parseExpressionList(Lf);return this.rbracketsExpected--,this.expectCharacter(Lf),new ug(this.span(a),c)}if(this.next.isCharacter(Yf))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new kg(this.span(a)),!1);if(this.next.isNumber()){var d=this.next.toNumber();return this.advance(),new tg(this.span(a),d)}if(this.next.isString()){var e=this.next.toString();return this.advance(),new tg(this.span(a),e)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new jg(this.span(a))):(this.error("Unexpected token "+this.next),new jg(this.span(a)))},b.prototype.parseExpressionList=function(a){var b=[];if(!this.next.isCharacter(a))do b.push(this.parsePipe());while(this.optionalCharacter(sf));return b},b.prototype.parseLiteralMap=function(){var a=[],b=[],c=this.inputIndex;if(this.expectCharacter(Yf),!this.optionalCharacter($f)){this.rbracesExpected++;do{var d=this.expectIdentifierOrKeywordOrString();a.push(d),this.expectCharacter(wf),b.push(this.parsePipe())}while(this.optionalCharacter(sf));this.rbracesExpected--,this.expectCharacter($f)}return new vg(this.span(c),a,b)},b.prototype.parseAccessMemberOrMethodCall=function(a,b){void 0===b&&(b=!1);var c=a.span.start,d=this.expectIdentifierOrKeyword();if(this.optionalCharacter(of)){this.rparensExpected++;var e=this.parseCallArguments();this.expectCharacter(pf),this.rparensExpected--;var f=this.span(c);return b?new Ag(f,a,d,e):new zg(f,a,d,e)}if(b)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new jg(this.span(c))):new pg(this.span(c),a,d);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new jg(this.span(c));var g=this.parseConditional();return new og(this.span(c),a,d,g)}return new ng(this.span(c),a,d)},b.prototype.parseCallArguments=function(){if(this.next.isCharacter(pf))return[];var a=[];do a.push(this.parsePipe());while(this.optionalCharacter(sf));return a},b.prototype.expectTemplateBindingKey=function(){var a="",b=!1;do a+=this.expectIdentifierOrKeywordOrString(),b=this.optionalOperator("-"),b&&(a+="-");while(b);return a.toString()},b.prototype.parseTemplateBindings=function(){for(var a=[],b=null,c=[];this.index<this.tokens.length;){var d=this.peekKeywordLet();d&&this.advance();var e=this.expectTemplateBindingKey();d||(null==b?b=e:e=b+e[0].toUpperCase()+e.substring(1)),this.optionalCharacter(wf);var f=null,g=null;if(d)f=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==Ig&&!this.peekKeywordLet()){var h=this.inputIndex,i=this.parsePipe(),j=this.input.substring(h,this.inputIndex);g=new Cg(i,j,this.location,this.errors)}a.push(new Dg(e,d,f,g)),this.optionalCharacter(xf)||this.optionalCharacter(sf)}return new Lg(a,c,this.errors)},b.prototype.error=function(a,b){void 0===b&&(b=null),this.errors.push(new fg(a,this.input,this.locationText(b),this.location)),this.skip()},b.prototype.locationText=function(a){return void 0===a&&(a=null),e(a)&&(a=this.index),a<this.tokens.length?"at column "+(this.tokens[a].index+1)+" in":"at the end of the expression"},b.prototype.skip=function(){for(var a=this.next;this.index<this.tokens.length&&!a.isCharacter(xf)&&(this.rparensExpected<=0||!a.isCharacter(pf))&&(this.rbracesExpected<=0||!a.isCharacter($f))&&(this.rbracketsExpected<=0||!a.isCharacter(Lf));)this.next.isError()&&this.errors.push(new fg(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),a=this.next},b}(),Og=function(){function a(){this.errors=[]}return a.check=function(b){var c=new a;return b.visit(c),c.errors},a.prototype.visitImplicitReceiver=function(a,b){},a.prototype.visitInterpolation=function(a,b){},a.prototype.visitLiteralPrimitive=function(a,b){},a.prototype.visitPropertyRead=function(a,b){},a.prototype.visitPropertyWrite=function(a,b){},a.prototype.visitSafePropertyRead=function(a,b){},a.prototype.visitMethodCall=function(a,b){},a.prototype.visitSafeMethodCall=function(a,b){},a.prototype.visitFunctionCall=function(a,b){},a.prototype.visitLiteralArray=function(a,b){this.visitAll(a.expressions)},a.prototype.visitLiteralMap=function(a,b){this.visitAll(a.values)},a.prototype.visitBinary=function(a,b){},a.prototype.visitPrefixNot=function(a,b){},a.prototype.visitConditional=function(a,b){},a.prototype.visitPipe=function(a,b){this.errors.push("pipes")},a.prototype.visitKeyedRead=function(a,b){},a.prototype.visitKeyedWrite=function(a,b){},a.prototype.visitAll=function(a){var b=this;return a.map(function(a){return a.visit(b)})},a.prototype.visitChain=function(a,b){},a.prototype.visitQuote=function(a,b){},a}(),Pg=function(){function a(a,b,c,d){this.file=a,this.offset=b,this.line=c,this.col=d}return a.prototype.toString=function(){return d(this.offset)?this.file.url+"@"+this.line+":"+this.col:this.file.url},a}(),Qg=function(){function a(a,b){this.content=a,this.url=b}return a}(),Rg=function(){function a(a,b,c){void 0===c&&(c=null),this.start=a,this.end=b,this.details=c}return a.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},a}();a.ParseErrorLevel,function(a){a[a.WARNING=0]="WARNING",a[a.FATAL=1]="FATAL"}(a.ParseErrorLevel||(a.ParseErrorLevel={}));var Sg,Tg=function(){function b(b,c,d){void 0===d&&(d=a.ParseErrorLevel.FATAL),this.span=b,this.msg=c,this.level=d}return b.prototype.toString=function(){var a=this.span.start.file.content,b=this.span.start.offset,c="",e="";if(d(b)){b>a.length-1&&(b=a.length-1);for(var f=b,g=0,h=0;g<100&&b>0&&(b--,g++,"\n"!=a[b]||3!=++h););for(g=0,h=0;g<100&&f<a.length-1&&(f++,g++,"\n"!=a[f]||3!=++h););var i=a.substring(b,this.span.start.offset)+"[ERROR ->]"+a.substring(this.span.start.offset,f+1);c=' ("'+i+'")'}return this.span.details&&(e=", "+this.span.details),""+this.msg+c+": "+this.span.start+e},b}(),Ug=function(){function a(a,b){this.value=a,this.sourceSpan=b}return a.prototype.visit=function(a,b){return a.visitText(this,b)},a}(),Vg=function(){function a(a,b,c,d,e){this.switchValue=a,this.type=b,this.cases=c,this.sourceSpan=d,this.switchValueSourceSpan=e}return a.prototype.visit=function(a,b){return a.visitExpansion(this,b)},a}(),Wg=function(){function a(a,b,c,d,e){this.value=a,this.expression=b,this.sourceSpan=c,this.valueSourceSpan=d,this.expSourceSpan=e}return a.prototype.visit=function(a,b){return a.visitExpansionCase(this,b)},a}(),Xg=function(){function a(a,b,c,d){this.name=a,this.value=b,this.sourceSpan=c,this.valueSpan=d}return a.prototype.visit=function(a,b){return a.visitAttribute(this,b)},a}(),Yg=function(){function a(a,b,c,d,e,f){this.name=a,this.attrs=b,this.children=c,this.sourceSpan=d,this.startSourceSpan=e,this.endSourceSpan=f}return a.prototype.visit=function(a,b){return a.visitElement(this,b)},a}(),Zg=function(){function a(a,b){this.value=a,this.sourceSpan=b}return a.prototype.visit=function(a,b){return a.visitComment(this,b)},a}(),$g=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};!function(a){a[a.TAG_OPEN_START=0]="TAG_OPEN_START",a[a.TAG_OPEN_END=1]="TAG_OPEN_END",a[a.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",a[a.TAG_CLOSE=3]="TAG_CLOSE",a[a.TEXT=4]="TEXT",a[a.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",a[a.RAW_TEXT=6]="RAW_TEXT",a[a.COMMENT_START=7]="COMMENT_START",a[a.COMMENT_END=8]="COMMENT_END",a[a.CDATA_START=9]="CDATA_START",a[a.CDATA_END=10]="CDATA_END",a[a.ATTR_NAME=11]="ATTR_NAME",a[a.ATTR_VALUE=12]="ATTR_VALUE",a[a.DOC_TYPE=13]="DOC_TYPE",a[a.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",a[a.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",a[a.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",a[a.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",a[a.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",a[a.EOF=19]="EOF"}(Sg||(Sg={}));var _g,ah=function(){function a(a,b,c){this.type=a,this.parts=b,this.sourceSpan=c}return a}(),bh=function(a){function b(b,c,d){a.call(this,d,b),this.tokenType=c}return $g(b,a),b}(Tg),ch=function(){function a(a,b){this.tokens=a,this.errors=b}return a}(),dh=/\r\n?/g,eh=function(){function a(a){this.error=a}return a}(),fh=function(){function a(a,b,c,d){void 0===d&&(d=dg),this._file=a,this._getTagDefinition=b,this._tokenizeIcu=c,this._interpolationConfig=d,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=a.content,this._length=a.content.length,this._advance()}return a.prototype._processCarriageReturns=function(a){return a.replace(dh,"\n")},a.prototype.tokenize=function(){for(;this._peek!==_e;){var a=this._getLocation();try{this._attemptCharCode(yf)?this._attemptCharCode(gf)?this._attemptCharCode(Jf)?this._consumeCdata(a):this._attemptCharCode(tf)?this._consumeComment(a):this._consumeDocType(a):this._attemptCharCode(vf)?this._consumeTagClose(a):this._consumeTagOpen(a):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(a){if(!(a instanceof eh))throw a;this.errors.push(a.error)}}return this._beginToken(Sg.EOF),this._endToken([]),new ch(fa(this.tokens),this.errors)},a.prototype._tokenizeExpansionForm=function(){if(ba(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(ca(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===$f){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},a.prototype._getLocation=function(){return new Pg(this._file,this._index,this._line,this._column)},a.prototype._getSpan=function(a,b){return void 0===a&&(a=this._getLocation()),void 0===b&&(b=this._getLocation()),new Rg(a,b)},a.prototype._beginToken=function(a,b){void 0===b&&(b=this._getLocation()),this._currentTokenStart=b,this._currentTokenType=a},a.prototype._endToken=function(a,b){void 0===b&&(b=this._getLocation());var c=new ah(this._currentTokenType,a,new Rg(this._currentTokenStart,b));return this.tokens.push(c),this._currentTokenStart=null,this._currentTokenType=null,c},a.prototype._createError=function(a,b){this._isInExpansionForm()&&(a+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var c=new bh(a,this._currentTokenType,b);return this._currentTokenStart=null,this._currentTokenType=null,new eh(c)},a.prototype._advance=function(){if(this._index>=this._length)throw this._createError(W(_e),this._getSpan());this._peek===bf?(this._line++,this._column=0):this._peek!==bf&&this._peek!==ef&&this._column++,this._index++,this._peek=this._index>=this._length?_e:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?_e:this._input.charCodeAt(this._index+1)},a.prototype._attemptCharCode=function(a){return this._peek===a&&(this._advance(),!0)},a.prototype._attemptCharCodeCaseInsensitive=function(a){return!!da(this._peek,a)&&(this._advance(),!0)},a.prototype._requireCharCode=function(a){var b=this._getLocation();if(!this._attemptCharCode(a))throw this._createError(W(this._peek),this._getSpan(b,b))},a.prototype._attemptStr=function(a){var b=a.length;if(this._index+b>this._length)return!1;for(var c=this._savePosition(),d=0;d<b;d++)if(!this._attemptCharCode(a.charCodeAt(d)))return this._restorePosition(c),!1;return!0},a.prototype._attemptStrCaseInsensitive=function(a){for(var b=0;b<a.length;b++)if(!this._attemptCharCodeCaseInsensitive(a.charCodeAt(b)))return!1;return!0},a.prototype._requireStr=function(a){var b=this._getLocation();if(!this._attemptStr(a))throw this._createError(W(this._peek),this._getSpan(b))},a.prototype._attemptCharCodeUntilFn=function(a){for(;!a(this._peek);)this._advance()},a.prototype._requireCharCodeUntilFn=function(a,b){var c=this._getLocation();if(this._attemptCharCodeUntilFn(a),this._index-c.offset<b)throw this._createError(W(this._peek),this._getSpan(c,c))},a.prototype._attemptUntilChar=function(a){for(;this._peek!==a;)this._advance()},a.prototype._readChar=function(a){if(a&&this._peek===mf)return this._decodeEntity();var b=this._index;return this._advance(),this._input[b]},a.prototype._decodeEntity=function(){var a=this._getLocation();if(this._advance(),!this._attemptCharCode(jf)){var b=this._savePosition();if(this._attemptCharCodeUntilFn(aa),this._peek!=xf)return this._restorePosition(b),"&";this._advance();var c=this._input.substring(a.offset+1,this._index-1),d=ne[c];if(!d)throw this._createError(X(c),this._getSpan(a));return d}var e=this._attemptCharCode(Wf)||this._attemptCharCode(Hf),f=this._getLocation().offset;if(this._attemptCharCodeUntilFn(_),this._peek!=xf)throw this._createError(W(this._peek),this._getSpan());this._advance();var g=this._input.substring(f,this._index-1);try{var h=parseInt(g,e?16:10);return String.fromCharCode(h)}catch(b){var i=this._input.substring(a.offset+1,this._index-1);throw this._createError(X(i),this._getSpan(a))}},a.prototype._consumeRawText=function(a,b,c){var d,e=this._getLocation();this._beginToken(a?Sg.ESCAPABLE_RAW_TEXT:Sg.RAW_TEXT,e);for(var f=[];;){if(d=this._getLocation(),this._attemptCharCode(b)&&c())break;for(this._index>d.offset&&f.push(this._input.substring(d.offset,this._index));this._peek!==b;)f.push(this._readChar(a))}return this._endToken([this._processCarriageReturns(f.join(""))],d)},a.prototype._consumeComment=function(a){var b=this;this._beginToken(Sg.COMMENT_START,a),this._requireCharCode(tf),this._endToken([]);var c=this._consumeRawText(!1,tf,function(){return b._attemptStr("->")});this._beginToken(Sg.COMMENT_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeCdata=function(a){var b=this;this._beginToken(Sg.CDATA_START,a),this._requireStr("CDATA["),this._endToken([]);var c=this._consumeRawText(!1,Lf,function(){return b._attemptStr("]>")});this._beginToken(Sg.CDATA_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeDocType=function(a){this._beginToken(Sg.DOC_TYPE,a),this._attemptUntilChar(Af),this._advance(),this._endToken([this._input.substring(a.offset+2,this._index-1)])},a.prototype._consumePrefixAndName=function(){for(var a=this._index,b=null;this._peek!==wf&&!$(this._peek);)this._advance();var c;this._peek===wf?(this._advance(),b=this._input.substring(a,this._index-1),c=this._index):c=a,this._requireCharCodeUntilFn(Z,this._index===c?1:0);var d=this._input.substring(c,this._index);return[b,d]},a.prototype._consumeTagOpen=function(a){var b,c,d=this._savePosition();try{if(!B(this._peek))throw this._createError(W(this._peek),this._getSpan());var e=this._index;for(this._consumeTagOpenStart(a),b=this._input.substring(e,this._index),c=b.toLowerCase(),this._attemptCharCodeUntilFn(Y);this._peek!==vf&&this._peek!==Af;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Y),this._attemptCharCode(zf)&&(this._attemptCharCodeUntilFn(Y),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Y);this._consumeTagOpenEnd()}catch(b){if(b instanceof eh)return this._restorePosition(d),this._beginToken(Sg.TEXT,a),void this._endToken(["<"]);throw b}var f=this._getTagDefinition(b).contentType;f===ge.RAW_TEXT?this._consumeRawTextWithTagClose(c,!1):f===ge.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(c,!0)},a.prototype._consumeRawTextWithTagClose=function(a,b){var c=this,d=this._consumeRawText(b,yf,function(){return!!c._attemptCharCode(vf)&&(c._attemptCharCodeUntilFn(Y),!!c._attemptStrCaseInsensitive(a)&&(c._attemptCharCodeUntilFn(Y),c._attemptCharCode(Af)))});this._beginToken(Sg.TAG_CLOSE,d.sourceSpan.end),this._endToken([null,a])},a.prototype._consumeTagOpenStart=function(a){this._beginToken(Sg.TAG_OPEN_START,a);var b=this._consumePrefixAndName();this._endToken(b)},a.prototype._consumeAttributeName=function(){this._beginToken(Sg.ATTR_NAME);var a=this._consumePrefixAndName();this._endToken(a)},a.prototype._consumeAttributeValue=function(){this._beginToken(Sg.ATTR_VALUE);var a;if(this._peek===nf||this._peek===hf){var b=this._peek;this._advance();for(var c=[];this._peek!==b;)c.push(this._readChar(!0));a=c.join(""),this._advance()}else{var d=this._index;this._requireCharCodeUntilFn(Z,1),a=this._input.substring(d,this._index)}this._endToken([this._processCarriageReturns(a)])},a.prototype._consumeTagOpenEnd=function(){var a=this._attemptCharCode(vf)?Sg.TAG_OPEN_END_VOID:Sg.TAG_OPEN_END;this._beginToken(a),this._requireCharCode(Af),this._endToken([])},a.prototype._consumeTagClose=function(a){this._beginToken(Sg.TAG_CLOSE,a),this._attemptCharCodeUntilFn(Y);var b=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Y),this._requireCharCode(Af),this._endToken(b)},a.prototype._consumeExpansionFormStart=function(){this._beginToken(Sg.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Yf),this._endToken([]),this._expansionCaseStack.push(Sg.EXPANSION_FORM_START),this._beginToken(Sg.RAW_TEXT,this._getLocation());var a=this._readUntil(sf);this._endToken([a],this._getLocation()),this._requireCharCode(sf),this._attemptCharCodeUntilFn(Y),this._beginToken(Sg.RAW_TEXT,this._getLocation());var b=this._readUntil(sf);this._endToken([b],this._getLocation()),this._requireCharCode(sf),this._attemptCharCodeUntilFn(Y)},a.prototype._consumeExpansionCaseStart=function(){this._beginToken(Sg.EXPANSION_CASE_VALUE,this._getLocation());var a=this._readUntil(Yf).trim();this._endToken([a],this._getLocation()),this._attemptCharCodeUntilFn(Y),this._beginToken(Sg.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Yf),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Y),this._expansionCaseStack.push(Sg.EXPANSION_CASE_EXP_START)},a.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Sg.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode($f),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Y),this._expansionCaseStack.pop()},a.prototype._consumeExpansionFormEnd=function(){this._beginToken(Sg.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode($f),this._endToken([]),this._expansionCaseStack.pop()},a.prototype._consumeText=function(){var a=this._getLocation();this._beginToken(Sg.TEXT,a);var b=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(b.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._attemptStr(this._interpolationConfig.end)&&this._inInterpolation?(b.push(this._interpolationConfig.end),this._inInterpolation=!1):b.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(b.join(""))])},a.prototype._isTextEnd=function(){if(this._peek===yf||this._peek===_e)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(ba(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===$f&&this._isInExpansionCase())return!0}return!1},a.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},a.prototype._readUntil=function(a){var b=this._index;return this._attemptUntilChar(a),this._input.substring(b,this._index)},a.prototype._restorePosition=function(a){this._peek=a[0],this._index=a[1],this._column=a[2],this._line=a[3];var b=a[4];b<this.tokens.length&&(this.tokens=this.tokens.slice(0,b))},a.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Sg.EXPANSION_CASE_EXP_START},a.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Sg.EXPANSION_FORM_START},a}(),gh=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},hh=function(a){function b(b,c,d){a.call(this,c,d),this.elementName=b}return gh(b,a),b.create=function(a,c,d){return new b(a,c,d)},b}(Tg),ih=function(){function a(a,b){this.rootNodes=a,this.errors=b}return a}(),jh=function(){function a(a){this.getTagDefinition=a}return a.prototype.parse=function(a,b,c,d){void 0===c&&(c=!1),void 0===d&&(d=dg);var e=V(a,b,this.getTagDefinition,c,d),f=new kh(e.tokens,this.getTagDefinition).build();return new ih(f.rootNodes,e.errors.concat(f.errors))},a}(),kh=function(){function a(a,b){this.tokens=a,this.getTagDefinition=b,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return a.prototype.build=function(){for(;this._peek.type!==Sg.EOF;)this._peek.type===Sg.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Sg.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Sg.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Sg.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Sg.TEXT||this._peek.type===Sg.RAW_TEXT||this._peek.type===Sg.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Sg.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new ih(this._rootNodes,this._errors)},a.prototype._advance=function(){var a=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],a},a.prototype._advanceIf=function(a){return this._peek.type===a?this._advance():null},a.prototype._consumeCdata=function(a){this._consumeText(this._advance()),this._advanceIf(Sg.CDATA_END)},a.prototype._consumeComment=function(a){var b=this._advanceIf(Sg.RAW_TEXT);this._advanceIf(Sg.COMMENT_END);var c=d(b)?b.parts[0].trim():null;this._addToParent(new Zg(c,a.sourceSpan))},a.prototype._consumeExpansion=function(a){for(var b=this._advance(),c=this._advance(),d=[];this._peek.type===Sg.EXPANSION_CASE_VALUE;){var e=this._parseExpansionCase();if(!e)return;d.push(e)}if(this._peek.type!==Sg.EXPANSION_FORM_END)return void this._errors.push(hh.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var f=new Rg(a.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Vg(b.parts[0],c.parts[0],d,f,b.sourceSpan)),this._advance()},a.prototype._parseExpansionCase=function(){var b=this._advance();if(this._peek.type!==Sg.EXPANSION_CASE_EXP_START)return this._errors.push(hh.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var c=this._advance(),d=this._collectExpansionExpTokens(c);if(!d)return null;var e=this._advance();d.push(new ah(Sg.EOF,[],e.sourceSpan));var f=new a(d,this.getTagDefinition).build();if(f.errors.length>0)return this._errors=this._errors.concat(f.errors),null;var g=new Rg(b.sourceSpan.start,e.sourceSpan.end),h=new Rg(c.sourceSpan.start,e.sourceSpan.end);return new Wg(b.parts[0],f.rootNodes,g,b.sourceSpan,h)},a.prototype._collectExpansionExpTokens=function(a){for(var b=[],c=[Sg.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Sg.EXPANSION_FORM_START&&this._peek.type!==Sg.EXPANSION_CASE_EXP_START||c.push(this._peek.type),this._peek.type===Sg.EXPANSION_CASE_EXP_END){if(!ga(c,Sg.EXPANSION_CASE_EXP_START))return this._errors.push(hh.create(null,a.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(c.pop(),0==c.length)return b}if(this._peek.type===Sg.EXPANSION_FORM_END){if(!ga(c,Sg.EXPANSION_FORM_START))return this._errors.push(hh.create(null,a.sourceSpan,"Invalid ICU message. Missing '}'.")),null;c.pop()}if(this._peek.type===Sg.EOF)return this._errors.push(hh.create(null,a.sourceSpan,"Invalid ICU message. Missing '}'.")),null;b.push(this._advance())}},a.prototype._consumeText=function(a){var b=a.parts[0];if(b.length>0&&"\n"==b[0]){var c=this._getParentElement();d(c)&&0==c.children.length&&this.getTagDefinition(c.name).ignoreFirstLf&&(b=b.substring(1))}b.length>0&&this._addToParent(new Ug(b,a.sourceSpan))},a.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var a=this._elementStack[this._elementStack.length-1];this.getTagDefinition(a.name).isVoid&&this._elementStack.pop()}},a.prototype._consumeStartTag=function(a){for(var b=a.parts[0],c=a.parts[1],d=[];this._peek.type===Sg.ATTR_NAME;)d.push(this._consumeAttr(this._advance()));var e=this._getElementFullName(b,c,this._getParentElement()),f=!1;if(this._peek.type===Sg.TAG_OPEN_END_VOID){this._advance(),f=!0;var g=this.getTagDefinition(e);g.canSelfClose||null!==m(e)||g.isVoid||this._errors.push(hh.create(e,a.sourceSpan,'Only void and foreign elements can be self closed "'+a.parts[1]+'"'))}else this._peek.type===Sg.TAG_OPEN_END&&(this._advance(),f=!1);var h=this._peek.sourceSpan.start,i=new Rg(a.sourceSpan.start,h),j=new Yg(e,d,[],i,i,null);this._pushElement(j),f&&(this._popElement(e),j.endSourceSpan=i)},a.prototype._pushElement=function(a){if(this._elementStack.length>0){var b=this._elementStack[this._elementStack.length-1];this.getTagDefinition(b.name).isClosedByChild(a.name)&&this._elementStack.pop()}var c=this.getTagDefinition(a.name),e=this._getParentElementSkippingContainers(),f=e.parent,g=e.container;if(d(f)&&c.requireExtraParent(f.name)){var h=new Yg(c.parentToAdd,[],[],a.sourceSpan,a.startSourceSpan,a.endSourceSpan);this._insertBeforeContainer(f,g,h)}this._addToParent(a),this._elementStack.push(a)},a.prototype._consumeEndTag=function(a){var b=this._getElementFullName(a.parts[0],a.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=a.sourceSpan),this.getTagDefinition(b).isVoid?this._errors.push(hh.create(b,a.sourceSpan,'Void elements do not have end tags "'+a.parts[1]+'"')):this._popElement(b)||this._errors.push(hh.create(b,a.sourceSpan,'Unexpected closing tag "'+a.parts[1]+'"'))},a.prototype._popElement=function(a){for(var b=this._elementStack.length-1;b>=0;b--){var c=this._elementStack[b];if(c.name==a)return this._elementStack.splice(b,this._elementStack.length-b),!0;if(!this.getTagDefinition(c.name).closedByParent)return!1}return!1},a.prototype._consumeAttr=function(a){var b,c=n(a.parts[0],a.parts[1]),d=a.sourceSpan.end,e="";if(this._peek.type===Sg.ATTR_VALUE){var f=this._advance();e=f.parts[0],d=f.sourceSpan.end,b=f.sourceSpan}return new Xg(c,e,new Rg(a.sourceSpan.start,d),b)},a.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},a.prototype._getParentElementSkippingContainers=function(){for(var a=null,b=this._elementStack.length-1;b>=0;b--){if("ng-container"!==this._elementStack[b].name)return{parent:this._elementStack[b],container:a};a=this._elementStack[b]}return{parent:this._elementStack[this._elementStack.length-1],container:a}},a.prototype._addToParent=function(a){var b=this._getParentElement();d(b)?b.children.push(a):this._rootNodes.push(a)},a.prototype._insertBeforeContainer=function(a,b,c){if(b){if(a){var d=a.children.indexOf(b);a.children[d]=c}else this._rootNodes.push(c);c.children.push(b),this._elementStack.splice(this._elementStack.indexOf(b),0,c)}else this._addToParent(c),this._elementStack.push(c)},a.prototype._getElementFullName=function(a,b,c){return e(a)&&(a=this.getTagDefinition(b).implicitNamespacePrefix,e(a)&&d(c)&&(a=m(c.name))),n(a,b)},a}(),lh=function(){function a(){}return a.prototype.visitText=function(a,b){return a.value},a.prototype.visitContainer=function(a,b){var c=this;return"["+a.children.map(function(a){return a.visit(c)}).join(", ")+"]"},a.prototype.visitIcu=function(a,b){var c=this,d=Object.keys(a.cases).map(function(b){return b+" {"+a.cases[b].visit(c)+"}"});return"{"+a.expression+", "+a.type+", "+d.join(", ")+"}"},a.prototype.visitTagPlaceholder=function(a,b){var c=this;return a.isVoid?'<ph tag name="'+a.startName+'"/>':'<ph tag name="'+a.startName+'">'+a.children.map(function(a){return a.visit(c)}).join(", ")+'</ph name="'+a.closeName+'">'},a.prototype.visitPlaceholder=function(a,b){return'<ph name="'+a.name+'">'+a.value+"</ph>"},a.prototype.visitIcuPlaceholder=function(a,b){return'<ph icu name="'+a.name+'">'+a.value.visit(this)+"</ph>"},a}(),mh=new lh,nh=function(){function a(a,b,c,d,e){this.nodes=a,this.placeholders=b,this.placeholderToMsgIds=c,this.meaning=d,this.description=e}return a}(),oh=function(){function a(a,b){this.value=a,this.sourceSpan=b}return a.prototype.visit=function(a,b){return a.visitText(this,b)},a}(),ph=function(){function a(a,b){this.children=a,this.sourceSpan=b}return a.prototype.visit=function(a,b){return a.visitContainer(this,b)},a}(),qh=function(){function a(a,b,c,d){this.expression=a,this.type=b,this.cases=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitIcu(this,b)},a}(),rh=function(){function a(a,b,c,d,e,f,g){this.tag=a,this.attrs=b,this.startName=c,this.closeName=d,this.children=e,
  this.isVoid=f,this.sourceSpan=g}return a.prototype.visit=function(a,b){return a.visitTagPlaceholder(this,b)},a}(),sh=function(){function a(a,b,c){void 0===b&&(b=""),this.value=a,this.name=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitPlaceholder(this,b)},a}(),th=function(){function a(a,b,c){void 0===b&&(b=""),this.value=a,this.name=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitIcuPlaceholder(this,b)},a}(),uh={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"},vh=function(){function a(){this._placeHolderNameCounts={},this._signatureToName={}}return a.prototype.getStartTagPlaceholderName=function(a,b,c){var d=this._hashTag(a,b,c);if(this._signatureToName[d])return this._signatureToName[d];var e=a.toUpperCase(),f=uh[e]||"TAG_"+e,g=this._generateUniqueName(c?f:"START_"+f);return this._signatureToName[d]=g,g},a.prototype.getCloseTagPlaceholderName=function(a){var b=this._hashClosingTag(a);if(this._signatureToName[b])return this._signatureToName[b];var c=a.toUpperCase(),d=uh[c]||"TAG_"+c,e=this._generateUniqueName("CLOSE_"+d);return this._signatureToName[b]=e,e},a.prototype.getPlaceholderName=function(a,b){var c=a.toUpperCase(),d="PH: "+c+"="+b;if(this._signatureToName[d])return this._signatureToName[d];var e=this._generateUniqueName(c);return this._signatureToName[d]=e,e},a.prototype._hashTag=function(a,b,c){var d="<"+a,e=Object.keys(b).sort().map(function(a){return" "+a+"="+b[a]}).join(""),f=c?"/>":"></"+a+">";return d+e+f},a.prototype._hashClosingTag=function(a){return this._hashTag("/"+a,{},!1)},a.prototype._generateUniqueName=function(a){var b=a,c=this._placeHolderNameCounts[b];return c?(b+="_"+c,c++):c=1,this._placeHolderNameCounts[a]=c,b},a}(),wh=new Mg(new Gg),xh=function(){function a(a,b){this._expressionParser=a,this._interpolationConfig=b}return a.prototype.toI18nMessage=function(a,b,c){this._isIcu=1==a.length&&a[0]instanceof Vg,this._icuDepth=0,this._placeholderRegistry=new vh,this._placeholderToContent={},this._placeholderToIds={};var d=U(this,a,{});return new nh(d,this._placeholderToContent,this._placeholderToIds,b,c)},a.prototype.visitElement=function(a,b){var c=U(this,a.children),d={};a.attrs.forEach(function(a){d[a.name]=a.value});var e=o(a.name).isVoid,f=this._placeholderRegistry.getStartTagPlaceholderName(a.name,d,e);this._placeholderToContent[f]=a.sourceSpan.toString();var g="";return e||(g=this._placeholderRegistry.getCloseTagPlaceholderName(a.name),this._placeholderToContent[g]="</"+a.name+">"),new rh(a.name,d,f,g,c,e,a.sourceSpan)},a.prototype.visitAttribute=function(a,b){return this._visitTextWithInterpolation(a.value,a.sourceSpan)},a.prototype.visitText=function(a,b){return this._visitTextWithInterpolation(a.value,a.sourceSpan)},a.prototype.visitComment=function(a,b){return null},a.prototype.visitExpansion=function(b,c){var d=this;this._icuDepth++;var e={},f=new qh(b.switchValue,b.type,e,b.sourceSpan);if(b.cases.forEach(function(a){e[a.value]=new ph(a.expression.map(function(a){return a.visit(d,{})}),a.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0)return f;var g=this._placeholderRegistry.getPlaceholderName("ICU",b.sourceSpan.toString()),h=new a(this._expressionParser,this._interpolationConfig);return this._placeholderToIds[g]=ha(h.toI18nMessage([b],"","")),new th(f,g,b.sourceSpan)},a.prototype.visitExpansionCase=function(a,b){throw new Error("Unreachable code")},a.prototype._visitTextWithInterpolation=function(a,b){var c=this._expressionParser.splitInterpolation(a,b.start.toString(),this._interpolationConfig);if(!c)return new oh(a,b);for(var d=[],e=new ph(d,b),f=this._interpolationConfig,g=f.start,h=f.end,i=0;i<c.strings.length-1;i++){var j=c.expressions[i],k=sa(j)||"INTERPOLATION",l=this._placeholderRegistry.getPlaceholderName(k,j);c.strings[i].length&&d.push(new oh(c.strings[i],b)),d.push(new sh(j,l,b)),this._placeholderToContent[l]=g+j+h}var m=c.strings.length-1;return c.strings[m].length&&d.push(new oh(c.strings[m],b)),e},a}(),yh=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*"([\s\S]*?)"[\s\S]*\)/g,zh=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Ah=function(a){function b(b,c){a.call(this,b,c)}return zh(b,a),b}(Tg),Bh="i18n",Ch="i18n-",Dh=/^i18n:?/,Eh=function(){function a(a,b){this.messages=a,this.errors=b}return a}();!function(a){a[a.Extract=0]="Extract",a[a.Merge=1]="Merge"}(_g||(_g={}));var Fh,Gh=function(){function a(a,b){this._implicitTags=a,this._implicitAttrs=b}return a.prototype.extract=function(a,b){var c=this;return this._init(_g.Extract,b),a.forEach(function(a){return a.visit(c,null)}),this._inI18nBlock&&this._reportError(a[a.length-1],"Unclosed block"),new Eh(this._messages,this._errors)},a.prototype.merge=function(a,b,c){this._init(_g.Merge,c),this._translations=b;var d=new Yg("wrapper",[],a,null,null,null),e=d.visit(this,null);return this._inI18nBlock&&this._reportError(a[a.length-1],"Unclosed block"),new ih(e.children,this._errors)},a.prototype.visitExpansionCase=function(a,b){var c=U(this,a.expression,b);if(this._mode===_g.Merge)return new Wg(a.value,c,a.sourceSpan,a.valueSourceSpan,a.expSourceSpan)},a.prototype.visitExpansion=function(a,b){this._mayBeAddBlockChildren(a);var c=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([a]),this._inIcu=!0);var d=U(this,a.cases,b);return this._mode===_g.Merge&&(a=new Vg(a.switchValue,a.type,d,a.sourceSpan,a.switchValueSourceSpan)),this._inIcu=c,a},a.prototype.visitComment=function(a,b){var c=va(a);if(c&&this._isInTranslatableSection)return void this._reportError(a,"Could not start a block inside a translatable section");var d=wa(a);if(d&&!this._inI18nBlock)return void this._reportError(a,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(d){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(a,this._blockChildren),this._inI18nBlock=!1;var e=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),f=this._translateMessage(a,e);return U(this,f)}return void this._reportError(a,"I18N blocks should not cross element boundaries")}}else c&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=a.value.replace(Dh,"").trim(),this._openTranslatableSection(a))},a.prototype.visitText=function(a,b){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(a),a},a.prototype.visitElement=function(a,b){var c=this;this._mayBeAddBlockChildren(a),this._depth++;var d,e=this._inI18nNode,f=this._inImplicitNode,g=xa(a),h=this._implicitTags.some(function(b){return a.name===b})&&!this._inIcu&&!this._isInTranslatableSection,i=!f&&h;if(this._inImplicitNode=this._inImplicitNode||h,this._isInTranslatableSection||this._inIcu)(g||i)&&this._reportError(a,"Could not mark an element as translatable inside a translatable section"),this._mode==_g.Extract&&U(this,a.children),this._mode==_g.Merge&&(d=[],a.children.forEach(function(a){var e=a.visit(c,b);e&&!c._isInTranslatableSection&&(d=d.concat(e))}));else{if(g){this._inI18nNode=!0;var j=this._addMessage(a.children,g.value);d=this._translateMessage(a,j)}else if(i){this._inI18nNode=!0;var j=this._addMessage(a.children);d=this._translateMessage(a,j)}if(this._mode==_g.Extract){var k=g||i;k&&this._openTranslatableSection(a),U(this,a.children),k&&this._closeTranslatableSection(a,a.children)}this._mode!==_g.Merge||g||i||(d=[],a.children.forEach(function(a){var e=a.visit(c,b);e&&!c._isInTranslatableSection&&(d=d.concat(e))}))}if(this._visitAttributesOf(a),this._depth--,this._inI18nNode=e,this._inImplicitNode=f,this._mode===_g.Merge){var l=this._translateAttributes(a);return new Yg(a.name,l,d,a.sourceSpan,a.startSourceSpan,a.endSourceSpan)}},a.prototype.visitAttribute=function(a,b){throw new Error("unreachable code")},a.prototype._init=function(a,b){this._mode=a,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=ra(b)},a.prototype._visitAttributesOf=function(a){var b=this,c={},d=this._implicitAttrs[a.name]||[];a.attrs.filter(function(a){return a.name.startsWith(Ch)}).forEach(function(a){return c[a.name.slice(Ch.length)]=a.value}),a.attrs.forEach(function(a){a.name in c?b._addMessage([a],c[a.name]):d.some(function(b){return a.name===b})&&b._addMessage([a])})},a.prototype._addMessage=function(a,b){if(!(0==a.length||1==a.length&&a[0]instanceof Xg&&!a[0].value)){var c=ya(b),d=c[0],e=c[1],f=this._createI18nMessage(a,d,e);return this._messages.push(f),f}},a.prototype._translateMessage=function(a,b){if(b&&this._mode===_g.Merge){var c=ha(b),d=this._translations.get(c);if(d)return d;this._reportError(a,'Translation unavailable for message id="'+c+'"')}return[]},a.prototype._translateAttributes=function(a){var b=this,c=a.attrs,d={};c.forEach(function(a){a.name.startsWith(Ch)&&(d[a.name.slice(Ch.length)]=ya(a.value)[0])});var e=[];return c.forEach(function(c){if(c.name!==Bh&&!c.name.startsWith(Ch))if(c.value&&""!=c.value&&d.hasOwnProperty(c.name)){var f=d[c.name],g=b._createI18nMessage([c],f,""),h=ha(g),i=b._translations.get(h);if(i)if(i[0]instanceof Ug){var j=i[0].value;e.push(new Xg(c.name,j,c.sourceSpan))}else b._reportError(a,'Unexpected translation for attribute "'+c.name+'" (id="'+h+'")');else b._reportError(a,'Translation unavailable for attribute "'+c.name+'" (id="'+h+'")')}else e.push(c)}),e},a.prototype._mayBeAddBlockChildren=function(a){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(a)},a.prototype._openTranslatableSection=function(a){this._isInTranslatableSection?this._reportError(a,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(a.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),a.prototype._closeTranslatableSection=function(a,b){if(!this._isInTranslatableSection)return void this._reportError(a,"Unexpected section end");var c=this._msgCountAtSectionStart,d=b.reduce(function(a,b){return a+(b instanceof Zg?0:1)},0);if(1==d)for(var e=this._messages.length-1;e>=c;e--){var f=this._messages[e].nodes;if(!(1==f.length&&f[0]instanceof oh)){this._messages.splice(e,1);break}}this._msgCountAtSectionStart=void 0},a.prototype._reportError=function(a,b){this._errors.push(new Ah(a.sourceSpan,b))},a}(),Hh=function(){function a(a,b,c){this._htmlParser=a,this._implicitTags=b,this._implicitAttrs=c,this._messageMap={}}return a.prototype.updateFromTemplate=function(a,b,c){var d=this,e=this._htmlParser.parse(a,b,!0,c);if(e.errors.length)return e.errors;var f=ta(e.rootNodes,c,this._implicitTags,this._implicitAttrs);return f.errors.length?f.errors:void f.messages.forEach(function(a){d._messageMap[ha(a)]=a})},a.prototype.getMessageMap=function(){return this._messageMap},a.prototype.write=function(a){return a.write(this._messageMap)},a}(),Ih=function(){function a(){this.closedByParent=!1,this.contentType=ge.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return a.prototype.requireExtraParent=function(a){return!1},a.prototype.isClosedByChild=function(a){return!1},a}(),Jh=new Ih,Kh=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Lh=function(a){function b(){a.call(this,za)}return Kh(b,a),b.prototype.parse=function(b,c,d){return void 0===d&&(d=!1),a.prototype.parse.call(this,b,c,d,null)},b}(jh),Mh=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Nh=function(){function a(){}return a.prototype.visitTag=function(a){var b=this,c=this._serializeAttributes(a.attrs);if(0==a.children.length)return"<"+a.name+c+"/>";var d=a.children.map(function(a){return a.visit(b)});return"<"+a.name+c+">"+d.join("")+"</"+a.name+">"},a.prototype.visitText=function(a){return a.value},a.prototype.visitDeclaration=function(a){return"<?xml"+this._serializeAttributes(a.attrs)+" ?>"},a.prototype._serializeAttributes=function(a){var b=Object.keys(a).map(function(b){return b+'="'+a[b]+'"'}).join(" ");return b.length>0?" "+b:""},a.prototype.visitDoctype=function(a){return"<!DOCTYPE "+a.rootTag+" [\n"+a.dtd+"\n]>"},a}(),Oh=new Nh,Ph=function(){function a(a){var b=this;this.attrs={},Object.keys(a).forEach(function(c){b.attrs[c]=Da(a[c])})}return a.prototype.visit=function(a){return a.visitDeclaration(this)},a}(),Qh=function(){function a(a,b){this.rootTag=a,this.dtd=b}return a.prototype.visit=function(a){return a.visitDoctype(this)},a}(),Rh=function(){function a(a,b,c){var d=this;void 0===b&&(b={}),void 0===c&&(c=[]),this.name=a,this.children=c,this.attrs={},Object.keys(b).forEach(function(a){d.attrs[a]=Da(b[a])})}return a.prototype.visit=function(a){return a.visitTag(this)},a}(),Sh=function(){function a(a){this.value=Da(a)}return a.prototype.visit=function(a){return a.visitText(this)},a}(),Th=function(a){function b(b){void 0===b&&(b=0),a.call(this,"\n"+new Array(b+1).join(" "))}return Mh(b,a),b}(Sh),Uh=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],Vh="1.2",Wh="urn:oasis:names:tc:xliff:document:1.2",Xh="en",Yh="x",Zh="source",$h="target",_h="trans-unit",ai=function(){function a(a,b){this._htmlParser=a,this._interpolationConfig=b}return a.prototype.write=function(a){var b=new bi,c=[];Object.keys(a).forEach(function(d){var e=a[d],f=new Rh(_h,{id:d,datatype:"html"});f.children.push(new Th(8),new Rh(Zh,{},b.serialize(e.nodes)),new Th(8),new Rh($h)),e.description&&f.children.push(new Th(8),new Rh("note",{priority:"1",from:"description"},[new Sh(e.description)])),e.meaning&&f.children.push(new Th(8),new Rh("note",{priority:"1",from:"meaning"},[new Sh(e.meaning)])),f.children.push(new Th(6)),c.push(new Th(6),f)});var d=new Rh("body",{},c.concat([new Th(4)])),e=new Rh("file",{"source-language":Xh,datatype:"plaintext",original:"ng2.template"},[new Th(4),d,new Th(2)]),f=new Rh("xliff",{version:Vh,xmlns:Wh},[new Th(2),e,new Th]);return Ca([new Ph({version:"1.0",encoding:"UTF-8"}),new Th,f,new Th])},a.prototype.load=function(a,b,c){var d=this,e=(new Lh).parse(a,b);if(e.errors.length)throw new Error("xtb parse errors:\n"+e.errors.join("\n"));var f=(new ci).parse(e.rootNodes,c),g=f.messages,h=f.errors;if(h.length)throw new Error("xtb parse errors:\n"+h.join("\n"));var i={},j=[];if(Object.keys(g).forEach(function(a){var c=d._htmlParser.parse(g[a],b,!0,d._interpolationConfig);j.push.apply(j,c.errors),i[a]=c.rootNodes}),j.length)throw new Error("xtb parse errors:\n"+j.join("\n"));return i},a}(),bi=function(){function a(){}return a.prototype.visitText=function(a,b){return[new Sh(a.value)]},a.prototype.visitContainer=function(a,b){var c=this,d=[];return a.children.forEach(function(a){return d.push.apply(d,a.visit(c))}),d},a.prototype.visitIcu=function(a,b){if(this._isInIcu)throw new Error("xliff does not support nested ICU messages");this._isInIcu=!0;var c=[];return this._isInIcu=!1,c},a.prototype.visitTagPlaceholder=function(a,b){var c=Ea(a.tag),d=new Rh(Yh,{id:a.startName,ctype:c});if(a.isVoid)return[d];var e=new Rh(Yh,{id:a.closeName,ctype:c});return[d].concat(this.serialize(a.children),[e])},a.prototype.visitPlaceholder=function(a,b){return[new Rh(Yh,{id:a.name})]},a.prototype.visitIcuPlaceholder=function(a,b){return[new Rh(Yh,{id:a.name})]},a.prototype.serialize=function(a){var b=this;return this._isInIcu=!1,me.flatten(a.map(function(a){return a.visit(b)}))},a}(),ci=function(){function a(){}return a.prototype.parse=function(a,b){var c=this;this._messageNodes=[],this._translatedMessages={},this._msgId="",this._target=[],this._errors=[],U(this,a,null);var d=b.getMessageMap(),e=Aa(b),f=Ba(b);return this._messageNodes.filter(function(a){return d.hasOwnProperty(a[0])}).sort(function(a,b){return 0==Object.keys(d[a[0]].placeholderToMsgIds).length?-1:0==Object.keys(d[b[0]].placeholderToMsgIds).length?1:0}).forEach(function(a){var b=a[0];c._placeholders=e[b]||{},c._placeholderToIds=f[b]||{},c._translatedMessages[b]=U(c,a[1]).join("")}),{messages:this._translatedMessages,errors:this._errors}},a.prototype.visitElement=function(a,b){switch(a.name){case _h:this._target=null;var c=a.attrs.find(function(a){return"id"===a.name});c?this._msgId=c.value:this._addError(a,"<"+_h+'> misses the "id" attribute'),U(this,a.children,null),null!==this._msgId&&this._messageNodes.push([this._msgId,this._target]);break;case Zh:break;case $h:this._target=a.children;break;case Yh:var d=a.attrs.find(function(a){return"id"===a.name});if(d){var e=d.value;if(this._placeholders.hasOwnProperty(e))return this._placeholders[e];if(this._placeholderToIds.hasOwnProperty(e)&&this._translatedMessages.hasOwnProperty(this._placeholderToIds[e]))return this._translatedMessages[this._placeholderToIds[e]];this._addError(a,'The placeholder "'+e+'" does not exists in the source message')}else this._addError(a,"<"+Yh+'> misses the "id" attribute');break;default:U(this,a.children,null)}},a.prototype.visitAttribute=function(a,b){throw new Error("unreachable code")},a.prototype.visitText=function(a,b){return a.value},a.prototype.visitComment=function(a,b){return""},a.prototype.visitExpansion=function(a,b){throw new Error("unreachable code")},a.prototype.visitExpansionCase=function(a,b){throw new Error("unreachable code")},a.prototype._addError=function(a,b){this._errors.push(new Ah(a.sourceSpan,b))},a}(),di="messagebundle",ei="msg",fi="ph",gi="ex",hi='<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>',ii=function(){function a(){}return a.prototype.write=function(a){var b=new ji,c=new Rh(di);return Object.keys(a).forEach(function(d){var e=a[d],f={id:d};e.description&&(f.desc=e.description),e.meaning&&(f.meaning=e.meaning),c.children.push(new Th(2),new Rh(ei,f,b.serialize(e.nodes)))}),c.children.push(new Th),Ca([new Ph({version:"1.0",encoding:"UTF-8"}),new Th,new Qh(di,hi),new Th,c,new Th])},a.prototype.load=function(a,b,c){throw new Error("Unsupported")},a}(),ji=function(){function a(){}return a.prototype.visitText=function(a,b){return[new Sh(a.value)]},a.prototype.visitContainer=function(a,b){var c=this,d=[];return a.children.forEach(function(a){return d.push.apply(d,a.visit(c))}),d},a.prototype.visitIcu=function(a,b){var c=this,d=[new Sh("{"+a.expression+", "+a.type+", ")];return Object.keys(a.cases).forEach(function(b){d.push.apply(d,[new Sh(b+" {")].concat(a.cases[b].visit(c),[new Sh("} ")]))}),d.push(new Sh("}")),d},a.prototype.visitTagPlaceholder=function(a,b){var c=new Rh(gi,{},[new Sh("<"+a.tag+">")]),d=new Rh(fi,{name:a.startName},[c]);if(a.isVoid)return[d];var e=new Rh(gi,{},[new Sh("</"+a.tag+">")]),f=new Rh(fi,{name:a.closeName},[e]);return[d].concat(this.serialize(a.children),[f])},a.prototype.visitPlaceholder=function(a,b){return[new Rh(fi,{name:a.name})]},a.prototype.visitIcuPlaceholder=function(a,b){return[new Rh(fi,{name:a.name})]},a.prototype.serialize=function(a){var b=this;return me.flatten(a.map(function(a){return a.visit(b)}))},a}(),ki="translationbundle",li="translation",mi="ph",ni=function(){function a(a,b){this._htmlParser=a,this._interpolationConfig=b}return a.prototype.write=function(a){throw new Error("Unsupported")},a.prototype.load=function(a,b,c){var d=this,e=(new Lh).parse(a,b);if(e.errors.length)throw new Error("xtb parse errors:\n"+e.errors.join("\n"));var f=(new oi).parse(e.rootNodes,c),g=f.messages,h=f.errors;if(h.length)throw new Error("xtb parse errors:\n"+h.join("\n"));var i={},j=[];if(Object.keys(g).forEach(function(a){var c=d._htmlParser.parse(g[a],b,!0,d._interpolationConfig);j.push.apply(j,c.errors),i[a]=c.rootNodes}),j.length)throw new Error("xtb parse errors:\n"+j.join("\n"));return i},a}(),oi=function(){function a(){}return a.prototype.parse=function(a,b){var c=this;this._messageNodes=[],this._translatedMessages={},this._bundleDepth=0,this._translationDepth=0,this._errors=[],U(this,a,null);var d=b.getMessageMap(),e=Aa(b),f=Ba(b);return this._messageNodes.filter(function(a){return d.hasOwnProperty(a[0])}).sort(function(a,b){return 0==Object.keys(d[a[0]].placeholderToMsgIds).length?-1:0==Object.keys(d[b[0]].placeholderToMsgIds).length?1:0}).forEach(function(a){var b=a[0];c._placeholders=e[b]||{},c._placeholderToIds=f[b]||{},c._translatedMessages[b]=U(c,a[1]).join("")}),{messages:this._translatedMessages,errors:this._errors}},a.prototype.visitElement=function(a,b){switch(a.name){case ki:this._bundleDepth++,this._bundleDepth>1&&this._addError(a,"<"+ki+"> elements can not be nested"),U(this,a.children,null),this._bundleDepth--;break;case li:this._translationDepth++,this._translationDepth>1&&this._addError(a,"<"+li+"> elements can not be nested");var c=a.attrs.find(function(a){return"id"===a.name});c?this._messageNodes.push([c.value,a.children]):this._addError(a,"<"+li+'> misses the "id" attribute'),this._translationDepth--;break;case mi:var d=a.attrs.find(function(a){return"name"===a.name});if(d){var e=d.value;if(this._placeholders.hasOwnProperty(e))return this._placeholders[e];if(this._placeholderToIds.hasOwnProperty(e)&&this._translatedMessages.hasOwnProperty(this._placeholderToIds[e]))return this._translatedMessages[this._placeholderToIds[e]];this._addError(a,'The placeholder "'+e+'" does not exists in the source message')}else this._addError(a,"<"+mi+'> misses the "name" attribute');break;default:this._addError(a,"Unexpected tag")}},a.prototype.visitAttribute=function(a,b){throw new Error("unreachable code")},a.prototype.visitText=function(a,b){return a.value},a.prototype.visitComment=function(a,b){return""},a.prototype.visitExpansion=function(a,b){var c=this;a.cases.map(function(a){return a.visit(c,null)});return"{"+a.switchValue+", "+a.type+", strCases.join(' ')}"},a.prototype.visitExpansionCase=function(a,b){return a.value+" {"+U(this,a.expression,null)+"}"},a.prototype._addError=function(a,b){this._errors.push(new Ah(a.sourceSpan,b))},a}(),pi=function(){function a(a){void 0===a&&(a={}),this._messageMap=a}return a.load=function(b,c,d,e){return new a(e.load(b,c,d))},a.prototype.get=function(a){return this._messageMap[a]},a.prototype.has=function(a){return a in this._messageMap},a}(),qi=function(){function a(a,b,c){this._htmlParser=a,this._translations=b,this._translationsFormat=c}return a.prototype.parse=function(a,b,c,d){void 0===c&&(c=!1),void 0===d&&(d=dg);var e=this._htmlParser.parse(a,b,c,d);if(!this._translations||""===this._translations)return e;var f=new Hh(this._htmlParser,[],{}),g=f.updateFromTemplate(a,b,d);if(g&&g.length)return new ih(e.rootNodes,e.errors.concat(g));var h=this._createSerializer(d),i=pi.load(this._translations,b,f,h);return ua(e.rootNodes,i,d,[],{})},a.prototype._createSerializer=function(a){var b=(this._translationsFormat||"xlf").toLowerCase();switch(b){case"xmb":return new ii;case"xtb":return new ni(this._htmlParser,a);case"xliff":case"xlf":default:return new ai(this._htmlParser,a)}},a}(),ri=b.__core_private__.isDefaultChangeDetectionStrategy,si=b.__core_private__.ChangeDetectorStatus,ti=b.__core_private__.LifecycleHooks,ui=b.__core_private__.LIFECYCLE_HOOKS_VALUES,vi=b.__core_private__.ReflectorReader,wi=b.__core_private__.AppElement,xi=b.__core_private__.CodegenComponentFactoryResolver,yi=b.__core_private__.AppView,zi=b.__core_private__.DebugAppView,Ai=b.__core_private__.NgModuleInjector,Bi=b.__core_private__.registerModuleFactory,Ci=b.__core_private__.ViewType,Di=b.__core_private__.view_utils,Ei=b.__core_private__.DebugContext,Fi=b.__core_private__.StaticNodeDebugInfo,Gi=b.__core_private__.devModeEqual,Hi=b.__core_private__.UNINITIALIZED,Ii=b.__core_private__.ValueUnwrapper,Ji=b.__core_private__.TemplateRef_,Ki=b.__core_private__.Console,Li=b.__core_private__.reflector,Mi=b.__core_private__.Reflector,Ni=b.__core_private__.ReflectionCapabilities,Oi=b.__core_private__.NoOpAnimationPlayer,Pi=b.__core_private__.AnimationSequencePlayer,Qi=b.__core_private__.AnimationGroupPlayer,Ri=b.__core_private__.AnimationKeyframe,Si=b.__core_private__.AnimationStyles,Ti=b.__core_private__.ANY_STATE,Ui=b.__core_private__.DEFAULT_STATE,Vi=b.__core_private__.EMPTY_STATE,Wi=b.__core_private__.FILL_STYLE_FLAG,Xi=b.__core_private__.prepareFinalAnimationStyles,Yi=b.__core_private__.balanceAnimationKeyframes,Zi=b.__core_private__.clearStyles,$i=b.__core_private__.collectAndResolveStyles,_i=b.__core_private__.renderStyles,aj=b.__core_private__.ComponentStillLoadingError,bj=b.__core_private__.AnimationTransition,cj=Fa("core","linker/view"),dj=Fa("core","linker/view_utils"),ej=Fa("core","change_detection/change_detection"),fj=Fa("core","animation/animation_style_util"),gj=function(){function a(){}return a.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:Fa("core","metadata/di"),runtime:b.ANALYZE_FOR_ENTRY_COMPONENTS},a.ViewUtils={name:"ViewUtils",moduleUrl:Fa("core","linker/view_utils"),runtime:Di.ViewUtils},a.AppView={name:"AppView",moduleUrl:cj,runtime:yi},a.DebugAppView={name:"DebugAppView",moduleUrl:cj,runtime:zi},a.AppElement={name:"AppElement",moduleUrl:Fa("core","linker/element"),runtime:wi},a.ElementRef={name:"ElementRef",moduleUrl:Fa("core","linker/element_ref"),runtime:b.ElementRef},a.ViewContainerRef={name:"ViewContainerRef",moduleUrl:Fa("core","linker/view_container_ref"),runtime:b.ViewContainerRef},a.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:Fa("core","change_detection/change_detector_ref"),runtime:b.ChangeDetectorRef},a.RenderComponentType={name:"RenderComponentType",moduleUrl:Fa("core","render/api"),runtime:b.RenderComponentType},a.QueryList={name:"QueryList",moduleUrl:Fa("core","linker/query_list"),runtime:b.QueryList},a.TemplateRef={name:"TemplateRef",moduleUrl:Fa("core","linker/template_ref"),runtime:b.TemplateRef},a.TemplateRef_={name:"TemplateRef_",moduleUrl:Fa("core","linker/template_ref"),runtime:Ji},a.CodegenComponentFactoryResolver={name:"CodegenComponentFactoryResolver",moduleUrl:Fa("core","linker/component_factory_resolver"),runtime:xi},a.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:Fa("core","linker/component_factory_resolver"),runtime:b.ComponentFactoryResolver},a.ComponentFactory={name:"ComponentFactory",runtime:b.ComponentFactory,moduleUrl:Fa("core","linker/component_factory")},a.NgModuleFactory={name:"NgModuleFactory",runtime:b.NgModuleFactory,moduleUrl:Fa("core","linker/ng_module_factory")},a.NgModuleInjector={name:"NgModuleInjector",runtime:Ai,moduleUrl:Fa("core","linker/ng_module_factory")},a.RegisterModuleFactoryFn={name:"registerModuleFactory",runtime:Bi,moduleUrl:Fa("core","linker/ng_module_factory_loader")},a.ValueUnwrapper={name:"ValueUnwrapper",moduleUrl:ej,runtime:Ii},a.Injector={name:"Injector",moduleUrl:Fa("core","di/injector"),runtime:b.Injector},a.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:Fa("core","metadata/view"),runtime:b.ViewEncapsulation},a.ViewType={name:"ViewType",moduleUrl:Fa("core","linker/view_type"),runtime:Ci},a.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:ej,runtime:b.ChangeDetectionStrategy},a.StaticNodeDebugInfo={name:"StaticNodeDebugInfo",moduleUrl:Fa("core","linker/debug_context"),runtime:Fi},a.DebugContext={name:"DebugContext",moduleUrl:Fa("core","linker/debug_context"),runtime:Ei},a.Renderer={name:"Renderer",moduleUrl:Fa("core","render/api"),runtime:b.Renderer},a.SimpleChange={name:"SimpleChange",moduleUrl:ej,runtime:b.SimpleChange},a.UNINITIALIZED={name:"UNINITIALIZED",moduleUrl:ej,runtime:Hi},a.ChangeDetectorStatus={name:"ChangeDetectorStatus",moduleUrl:ej,runtime:si},a.checkBinding={name:"checkBinding",moduleUrl:dj,runtime:Di.checkBinding},a.flattenNestedViewRenderNodes={name:"flattenNestedViewRenderNodes",moduleUrl:dj,runtime:Di.flattenNestedViewRenderNodes},a.devModeEqual={name:"devModeEqual",moduleUrl:ej,runtime:Gi},a.interpolate={name:"interpolate",moduleUrl:dj,runtime:Di.interpolate},a.castByValue={name:"castByValue",moduleUrl:dj,runtime:Di.castByValue},a.EMPTY_ARRAY={name:"EMPTY_ARRAY",moduleUrl:dj,runtime:Di.EMPTY_ARRAY},a.EMPTY_MAP={name:"EMPTY_MAP",moduleUrl:dj,runtime:Di.EMPTY_MAP},a.createRenderElement={name:"createRenderElement",moduleUrl:dj,runtime:Di.createRenderElement},a.selectOrCreateRenderHostElement={name:"selectOrCreateRenderHostElement",moduleUrl:dj,runtime:Di.selectOrCreateRenderHostElement},a.pureProxies=[null,{name:"pureProxy1",moduleUrl:dj,runtime:Di.pureProxy1},{name:"pureProxy2",moduleUrl:dj,runtime:Di.pureProxy2},{name:"pureProxy3",moduleUrl:dj,runtime:Di.pureProxy3},{name:"pureProxy4",moduleUrl:dj,runtime:Di.pureProxy4},{name:"pureProxy5",moduleUrl:dj,runtime:Di.pureProxy5},{name:"pureProxy6",moduleUrl:dj,runtime:Di.pureProxy6},{name:"pureProxy7",moduleUrl:dj,runtime:Di.pureProxy7},{name:"pureProxy8",moduleUrl:dj,runtime:Di.pureProxy8},{name:"pureProxy9",moduleUrl:dj,runtime:Di.pureProxy9},{name:"pureProxy10",moduleUrl:dj,runtime:Di.pureProxy10}],a.SecurityContext={name:"SecurityContext",moduleUrl:Fa("core","security"),runtime:b.SecurityContext},a.AnimationKeyframe={name:"AnimationKeyframe",moduleUrl:Fa("core","animation/animation_keyframe"),runtime:Ri},a.AnimationStyles={name:"AnimationStyles",moduleUrl:Fa("core","animation/animation_styles"),runtime:Si},a.NoOpAnimationPlayer={name:"NoOpAnimationPlayer",moduleUrl:Fa("core","animation/animation_player"),runtime:Oi},a.AnimationGroupPlayer={name:"AnimationGroupPlayer",moduleUrl:Fa("core","animation/animation_group_player"),runtime:Qi},a.AnimationSequencePlayer={name:"AnimationSequencePlayer",moduleUrl:Fa("core","animation/animation_sequence_player"),runtime:Pi},a.prepareFinalAnimationStyles={name:"prepareFinalAnimationStyles",moduleUrl:fj,runtime:Xi},a.balanceAnimationKeyframes={name:"balanceAnimationKeyframes",moduleUrl:fj,runtime:Yi},a.clearStyles={name:"clearStyles",moduleUrl:fj,runtime:Zi},a.renderStyles={name:"renderStyles",moduleUrl:fj,runtime:_i},a.collectAndResolveStyles={name:"collectAndResolveStyles",moduleUrl:fj,runtime:$i},a.LOCALE_ID={name:"LOCALE_ID",moduleUrl:Fa("core","i18n/tokens"),runtime:b.LOCALE_ID},a.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:Fa("core","i18n/tokens"),runtime:b.TRANSLATIONS_FORMAT},a.setBindingDebugInfo={name:"setBindingDebugInfo",moduleUrl:dj,runtime:Di.setBindingDebugInfo},a.setBindingDebugInfoForChanges={name:"setBindingDebugInfoForChanges",moduleUrl:dj,runtime:Di.setBindingDebugInfoForChanges},a.AnimationTransition={name:"AnimationTransition",moduleUrl:Fa("core","animation/animation_transition"),runtime:bj},a.InlineArray={name:"InlineArray",moduleUrl:dj,runtime:null},a.inlineArrays=[{name:"InlineArray2",moduleUrl:dj,runtime:Di.InlineArray2},{name:"InlineArray2",moduleUrl:dj,runtime:Di.InlineArray2},{name:"InlineArray4",moduleUrl:dj,runtime:Di.InlineArray4},{name:"InlineArray8",moduleUrl:dj,runtime:Di.InlineArray8
  },{name:"InlineArray16",moduleUrl:dj,runtime:Di.InlineArray16}],a.EMPTY_INLINE_ARRAY={name:"EMPTY_INLINE_ARRAY",moduleUrl:dj,runtime:Di.EMPTY_INLINE_ARRAY},a.InlineArrayDynamic={name:"InlineArrayDynamic",moduleUrl:dj,runtime:Di.InlineArrayDynamic},a}(),hj=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},ij=function(a){function c(){a.call(this,o)}return hj(c,a),c.prototype.parse=function(b,c,d,e){return void 0===d&&(d=!1),void 0===e&&(e=dg),a.prototype.parse.call(this,b,c,d,e)},c.decorators=[{type:b.Injectable}],c.ctorParameters=[],c}(jh),jj=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},kj=["zero","one","two","few","many","other"],lj=function(){function a(a,b,c){this.nodes=a,this.expanded=b,this.errors=c}return a}(),mj=function(a){function b(b,c){a.call(this,b,c)}return jj(b,a),b}(Tg),nj=function(){function a(){this.isExpanded=!1,this.errors=[]}return a.prototype.visitElement=function(a,b){return new Yg(a.name,a.attrs,U(this,a.children),a.sourceSpan,a.startSourceSpan,a.endSourceSpan)},a.prototype.visitAttribute=function(a,b){return a},a.prototype.visitText=function(a,b){return a},a.prototype.visitComment=function(a,b){return a},a.prototype.visitExpansion=function(a,b){return this.isExpanded=!0,"plural"==a.type?La(a,this.errors):Ma(a,this.errors)},a.prototype.visitExpansionCase=function(a,b){throw new Error("Should not be reached")},a}(),oj=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},pj=function(a){function b(b,c){a.call(this,c,b)}return oj(b,a),b}(Tg),qj=function(){function a(a,b){var c=this;this.component=a,this.sourceSpan=b,this.errors=[],this.viewQueries=Sa(a),this.viewProviders=new Map,Pa(a.viewProviders,b,this.errors).forEach(function(a){e(c.viewProviders.get(a.token.reference))&&c.viewProviders.set(a.token.reference,!0)})}return a}(),rj=function(){function b(a,b,c,e,f,g,h){var i=this;this.viewContext=a,this._parent=b,this._isViewRoot=c,this._directiveAsts=e,this._sourceSpan=h,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._attrs={},f.forEach(function(a){return i._attrs[a.name]=a.value});var j=e.map(function(a){return a.directive});this._allProviders=Qa(j,h,a.errors),this._contentQueries=Ta(j);var k=new Map;ke.values(this._allProviders).forEach(function(a){i._addQueryReadsTo(a.token,k)}),g.forEach(function(a){i._addQueryReadsTo(new Re({value:a.name}),k)}),d(k.get(Ia(gj.ViewContainerRef).reference))&&(this._hasViewContainer=!0),ke.values(this._allProviders).forEach(function(a){var b=a.eager||d(k.get(a.token.reference));b&&i._getOrCreateLocalProvider(a.providerType,a.token,!0)})}return b.prototype.afterElement=function(){var a=this;ke.values(this._allProviders).forEach(function(b){a._getOrCreateLocalProvider(b.providerType,b.token,!1)})},Object.defineProperty(b.prototype,"transformProviders",{get:function(){return ke.values(this._transformedProviders)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"transformedDirectiveAsts",{get:function(){var a=this.transformProviders.map(function(a){return a.token.identifier}),b=this._directiveAsts.slice();return b.sort(function(b,c){return a.indexOf(b.directive.type)-a.indexOf(c.directive.type)}),b},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),b.prototype._addQueryReadsTo=function(a,b){this._getQueriesFor(a).forEach(function(c){var d=c.read||a;e(b.get(d.reference))&&b.set(d.reference,!0)})},b.prototype._getQueriesFor=function(a){for(var b,c=[],e=this,f=0;null!==e;)b=e._contentQueries.get(a.reference),d(b)&&c.push.apply(c,b.filter(function(a){return a.descendants||f<=1})),e._directiveAsts.length>0&&f++,e=e._parent;return b=this.viewContext.viewQueries.get(a.reference),d(b)&&c.push.apply(c,b),c},b.prototype._getOrCreateLocalProvider=function(b,c,e){var f=this,g=this._allProviders.get(c.reference);if(!g||(b===a.ProviderAstType.Directive||b===a.ProviderAstType.PublicService)&&g.providerType===a.ProviderAstType.PrivateService||(b===a.ProviderAstType.PrivateService||b===a.ProviderAstType.PublicService)&&g.providerType===a.ProviderAstType.Builtin)return null;var h=this._transformedProviders.get(c.reference);if(d(h))return h;if(d(this._seenProviders.get(c.reference)))return this.viewContext.errors.push(new pj("Cannot instantiate cyclic dependency! "+c.name,this._sourceSpan)),null;this._seenProviders.set(c.reference,!0);var i=g.providers.map(function(a){var b,c=a.useValue,h=a.useExisting;if(d(a.useExisting)){var i=f._getDependency(g.providerType,new Oe({token:a.useExisting}),e);d(i.token)?h=i.token:(h=null,c=i.value)}else if(d(a.useFactory)){var j=a.deps||a.useFactory.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,e)})}else if(d(a.useClass)){var j=a.deps||a.useClass.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,e)})}return Na(a,{useExisting:h,useValue:c,deps:b})});return h=Oa(g,{eager:e,providers:i}),this._transformedProviders.set(c.reference,h),h},b.prototype._getLocalDependency=function(b,c,e){if(void 0===e&&(e=null),c.isAttribute){var f=this._attrs[c.token.value];return new Oe({isValue:!0,value:null==f?null:f})}if(d(c.query)||d(c.viewQuery))return c;if(d(c.token)){if(b===a.ProviderAstType.Directive||b===a.ProviderAstType.Component){if(c.token.reference===Ia(gj.Renderer).reference||c.token.reference===Ia(gj.ElementRef).reference||c.token.reference===Ia(gj.ChangeDetectorRef).reference||c.token.reference===Ia(gj.TemplateRef).reference)return c;c.token.reference===Ia(gj.ViewContainerRef).reference&&(this._hasViewContainer=!0)}if(c.token.reference===Ia(gj.Injector).reference)return c;if(d(this._getOrCreateLocalProvider(b,c.token,e)))return c}return null},b.prototype._getDependency=function(b,c,e){void 0===e&&(e=null);var f=this,g=e,h=null;if(c.isSkipSelf||(h=this._getLocalDependency(b,c,e)),c.isSelf)!h&&c.isOptional&&(h=new Oe({isValue:!0,value:null}));else{for(;!h&&d(f._parent);){var i=f;f=f._parent,i._isViewRoot&&(g=!1),h=f._getLocalDependency(a.ProviderAstType.PublicService,c,g)}h||(h=!c.isHost||this.viewContext.component.type.isHost||this.viewContext.component.type.reference===c.token.reference||d(this.viewContext.viewProviders.get(c.token.reference))?c:c.isOptional?h=new Oe({isValue:!0,value:null}):null)}return h||this.viewContext.errors.push(new pj("No provider for "+c.token.name,this._sourceSpan)),h},b}(),sj=function(){function b(b,c,d){var e=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map;var f=b.transitiveModule.modules.map(function(a){return a.type});f.forEach(function(b){var c=new Pe({token:new Re({identifier:b}),useClass:b});Ra([c],a.ProviderAstType.PublicService,!0,d,e._errors,e._allProviders)}),Ra(Pa(b.transitiveModule.providers.concat(c),d,this._errors),a.ProviderAstType.PublicService,!1,d,this._errors,this._allProviders)}return b.prototype.parse=function(){var a=this;if(ke.values(this._allProviders).forEach(function(b){a._getOrCreateLocalProvider(b.token,b.eager)}),this._errors.length>0){var b=this._errors.join("\n");throw new Error("Provider parse errors:\n"+b)}return ke.values(this._transformedProviders)},b.prototype._getOrCreateLocalProvider=function(a,b){var c=this,e=this._allProviders.get(a.reference);if(!e)return null;var f=this._transformedProviders.get(a.reference);if(d(f))return f;if(d(this._seenProviders.get(a.reference)))return this._errors.push(new pj("Cannot instantiate cyclic dependency! "+a.name,e.sourceSpan)),null;this._seenProviders.set(a.reference,!0);var g=e.providers.map(function(a){var f,g=a.useValue,h=a.useExisting;if(d(a.useExisting)){var i=c._getDependency(new Oe({token:a.useExisting}),b,e.sourceSpan);d(i.token)?h=i.token:(h=null,g=i.value)}else if(d(a.useFactory)){var j=a.deps||a.useFactory.diDeps;f=j.map(function(a){return c._getDependency(a,b,e.sourceSpan)})}else if(d(a.useClass)){var j=a.deps||a.useClass.diDeps;f=j.map(function(a){return c._getDependency(a,b,e.sourceSpan)})}return Na(a,{useExisting:h,useValue:g,deps:f})});return f=Oa(e,{eager:b,providers:g}),this._transformedProviders.set(a.reference,f),f},b.prototype._getDependency=function(a,b,c){void 0===b&&(b=null);var e=!1;!a.isSkipSelf&&d(a.token)&&(a.token.reference===Ia(gj.Injector).reference||a.token.reference===Ia(gj.ComponentFactoryResolver).reference?e=!0:d(this._getOrCreateLocalProvider(a.token,b))&&(e=!0));var f=a;return a.isSelf&&!e&&(a.isOptional?f=new Oe({isValue:!0,value:null}):this._errors.push(new pj("No provider for "+a.token.name,c))),f},b}(),tj=function(){function a(){}return a}(),uj=function(){function a(a,b){this.style=a,this.styleUrls=b}return a}(),vj=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,wj=/^([^:\/?#]+):/,xj=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},yj=".",zj="attr",Aj="class",Bj="style",Cj="animate-";!function(a){a[a.DEFAULT=0]="DEFAULT",a[a.LITERAL_ATTR=1]="LITERAL_ATTR",a[a.ANIMATION=2]="ANIMATION"}(Fh||(Fh={}));var Dj,Ej=function(){function a(a,b,c,d){this.name=a,this.expression=b,this.type=c,this.sourceSpan=d}return Object.defineProperty(a.prototype,"isLiteral",{get:function(){return this.type===Fh.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isAnimation",{get:function(){return this.type===Fh.ANIMATION},enumerable:!0,configurable:!0}),a}(),Fj=function(){function c(a,b,c,d,e){var f=this;this._exprParser=a,this._interpolationConfig=b,this._schemaRegistry=c,this._targetErrors=e,this.pipesByName=new Map,d.forEach(function(a){return f.pipesByName.set(a.name,a)})}return c.prototype.createDirectiveHostPropertyAsts=function(a,b){var c=this;if(a.hostProperties){var d=[];return Object.keys(a.hostProperties).forEach(function(e){var f=a.hostProperties[e];"string"==typeof f?c.parsePropertyBinding(e,f,!0,b,[],d):c._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+f+'" ('+typeof f+")",b)}),d.map(function(b){return c.createElementPropertyAst(a.selector,b)})}},c.prototype.createDirectiveHostEventAsts=function(a,b){var c=this;if(a.hostListeners){var d=[];return Object.keys(a.hostListeners).forEach(function(e){var f=a.hostListeners[e];"string"==typeof f?c.parseEvent(e,f,b,[],d):c._reportError('Value of the host listener "'+e+'" needs to be a string representing an expression but got "'+f+'" ('+typeof f+")",b)}),d}},c.prototype.parseInterpolation=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseInterpolation(a,c,this._interpolationConfig);if(d&&this._reportExpressionParserErrors(d.errors,b),this._checkPipes(d,b),d&&d.ast.expressions.length>Di.MAX_INTERPOLATION_VALUES)throw new Error("Only support at most "+Di.MAX_INTERPOLATION_VALUES+" interpolation values!");return d}catch(a){return this._reportError(""+a,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},c.prototype.parseInlineTemplateBinding=function(a,b,c,e,f,g){for(var h=this._parseTemplateBindings(b,c),i=0;i<h.length;i++){var j=h[i];j.keyIsVar?g.push(new _d(j.key,j.name,c)):d(j.expression)?this._parsePropertyAst(j.key,j.expression,c,e,f):(e.push([j.key,""]),this.parseLiteralAttr(j.key,null,c,e,f))}},c.prototype._parseTemplateBindings=function(b,c){var e=this,f=c.start.toString();try{var g=this._exprParser.parseTemplateBindings(b,f);return this._reportExpressionParserErrors(g.errors,c),g.templateBindings.forEach(function(a){d(a.expression)&&e._checkPipes(a.expression,c)}),g.warnings.forEach(function(b){e._reportError(b,c,a.ParseErrorLevel.WARNING)}),g.templateBindings}catch(a){return this._reportError(""+a,c),[]}},c.prototype.parseLiteralAttr=function(b,c,d,e,f){Xa(b)?(b=b.substring(1),c&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',d,a.ParseErrorLevel.FATAL),this._parseAnimation(b,c,d,e,f)):f.push(new Ej(b,this._exprParser.wrapLiteralPrimitive(c,""),Fh.LITERAL_ATTR,d))},c.prototype.parsePropertyBinding=function(a,b,c,d,e,f){var g=!1;a.startsWith(Cj)?(g=!0,a=a.substring(Cj.length)):Xa(a)&&(g=!0,a=a.substring(1)),g?this._parseAnimation(a,b,d,e,f):this._parsePropertyAst(a,this._parseBinding(b,c,d),d,e,f)},c.prototype.parsePropertyInterpolation=function(a,b,c,e,f){var g=this.parseInterpolation(b,c);return!!d(g)&&(this._parsePropertyAst(a,g,c,e,f),!0)},c.prototype._parsePropertyAst=function(a,b,c,d,e){d.push([a,b.source]),e.push(new Ej(a,b,Fh.DEFAULT,c))},c.prototype._parseAnimation=function(a,b,c,d,e){var f=this._parseBinding(b||"null",!1,c);d.push([a,f.source]),e.push(new Ej(a,f,Fh.ANIMATION,c))},c.prototype._parseBinding=function(a,b,c){var d=c.start.toString();try{var e=b?this._exprParser.parseSimpleBinding(a,d,this._interpolationConfig):this._exprParser.parseBinding(a,d,this._interpolationConfig);return e&&this._reportExpressionParserErrors(e.errors,c),this._checkPipes(e,c),e}catch(a){return this._reportError(""+a,c),this._exprParser.wrapLiteralPrimitive("ERROR",d)}},c.prototype.createElementPropertyAst=function(c,d){if(d.isAnimation)return new Yd(d.name,a.PropertyBindingType.Animation,b.SecurityContext.NONE,!1,d.expression,null,d.sourceSpan);var e,f,g,h=null,i=d.name.split(yj);if(1===i.length){var j=i[0];f=this._schemaRegistry.getMappedPropName(j),g=Ya(this._schemaRegistry,c,f,!1),e=a.PropertyBindingType.Property,this._validatePropertyOrAttributeName(f,d.sourceSpan,!1)}else if(i[0]==zj){f=i[1],this._validatePropertyOrAttributeName(f,d.sourceSpan,!0),g=Ya(this._schemaRegistry,c,f,!0);var k=f.indexOf(":");if(k>-1){var l=f.substring(0,k),m=f.substring(k+1);f=n(l,m)}e=a.PropertyBindingType.Attribute}else i[0]==Aj?(f=i[1],e=a.PropertyBindingType.Class,g=[b.SecurityContext.NONE]):i[0]==Bj?(h=i.length>2?i[2]:null,f=i[1],e=a.PropertyBindingType.Style,g=[b.SecurityContext.STYLE]):(this._reportError("Invalid property name '"+d.name+"'",d.sourceSpan),e=null,g=[]);return new Yd(f,e,1===g.length?g[0]:null,g.length>1,d.expression,h,d.sourceSpan)},c.prototype.parseEvent=function(a,b,c,d,e){Xa(a)?(a=a.substr(1),this._parseAnimationEvent(a,b,c,e)):this._parseEvent(a,b,c,d,e)},c.prototype._parseAnimationEvent=function(a,b,c,d){var e=q(a,[a,""]),f=e[0],g=e[1].toLowerCase();if(g)switch(g){case"start":case"done":var h=this._parseAction(b,c);d.push(new Zd(f,null,g,h,c));break;default:this._reportError('The provided animation output phase value "'+g+'" for "@'+f+'" is not supported (use start or done)',c)}else this._reportError("The animation trigger output event (@"+f+") is missing its phase value name (start or done are currently supported)",c)},c.prototype._parseEvent=function(a,b,c,d,e){var f=p(a,[null,a]),g=f[0],h=f[1],i=this._parseAction(b,c);d.push([a,i.source]),e.push(new Zd(h,g,null,i,c))},c.prototype._parseAction=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseAction(a,c,this._interpolationConfig);return d&&this._reportExpressionParserErrors(d.errors,b),!d||d.ast instanceof jg?(this._reportError("Empty expressions are not allowed",b),this._exprParser.wrapLiteralPrimitive("ERROR",c)):(this._checkPipes(d,b),d)}catch(a){return this._reportError(""+a,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},c.prototype._reportError=function(b,c,d){void 0===d&&(d=a.ParseErrorLevel.FATAL),this._targetErrors.push(new Tg(c,b,d))},c.prototype._reportExpressionParserErrors=function(a,b){for(var c=0,d=a;c<d.length;c++){var e=d[c];this._reportError(e.message,b)}},c.prototype._checkPipes=function(a,b){var c=this;if(d(a)){var e=new Gj;a.visit(e),e.pipes.forEach(function(a){c.pipesByName.has(a)||c._reportError("The pipe '"+a+"' could not be found",b)})}},c.prototype._validatePropertyOrAttributeName=function(b,c,d){var e=d?this._schemaRegistry.validateAttribute(b):this._schemaRegistry.validateProperty(b);e.error&&this._reportError(e.msg,c,a.ParseErrorLevel.FATAL)},c}(),Gj=function(a){function b(){a.apply(this,arguments),this.pipes=new Set}return xj(b,a),b.prototype.visitPipe=function(a,b){return this.pipes.add(a.name),a.exp.visit(this),this.visitAll(a.args,b),null},b}(Eg),Hj="select",Ij="ng-content",Jj="link",Kj="rel",Lj="href",Mj="stylesheet",Nj="style",Oj="script",Pj="ngNonBindable",Qj="ngProjectAs";!function(a){a[a.NG_CONTENT=0]="NG_CONTENT",a[a.STYLE=1]="STYLE",a[a.STYLESHEET=2]="STYLESHEET",a[a.SCRIPT=3]="SCRIPT",a[a.OTHER=4]="OTHER"}(Dj||(Dj={}));var Rj,Sj=function(){function a(a,b,c,d,e){this.type=a,this.selectAttr=b,this.hrefAttr=c,this.nonBindable=d,this.projectAs=e}return a}(),Tj=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Uj=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,Vj=1,Wj=2,Xj=3,Yj=4,Zj=5,$j=6,_j=7,ak=8,bk=9,ck=10,dk="template",ek="template",fk="*",gk="class",hk=se.parse("*")[0],ik=new b.OpaqueToken("TemplateTransforms"),jk=function(a){function b(b,c,d){a.call(this,c,b,d)}return Tj(b,a),b}(Tg),kk=function(){function a(a,b){this.templateAst=a,this.errors=b}return a}(),lk=function(){function e(a,b,c,d,e){this._exprParser=a,this._schemaRegistry=b,this._htmlParser=c,this._console=d,this.transforms=e}return e.prototype.parse=function(b,c,d,e,f,g){var h=this.tryParse(b,c,d,e,f,g),i=h.errors.filter(function(b){return b.level===a.ParseErrorLevel.WARNING}),j=h.errors.filter(function(b){return b.level===a.ParseErrorLevel.FATAL});if(i.length>0&&this._console.warn("Template parse warnings:\n"+i.join("\n")),j.length>0){var k=j.join("\n");throw new Error("Template parse errors:\n"+k)}return h.templateAst},e.prototype.tryParse=function(a,b,c,d,e,f){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(b,f,!0,this.getInterpolationConfig(a))),a,b,c,d,e,f)},e.prototype.tryParseHtml=function(a,b,e,f,g,h,i){var j,k=a.errors;if(a.rootNodes.length>0){var l=w(f),m=w(g),n=new qj(b,a.rootNodes[0].sourceSpan),o=void 0;b.template&&b.template.interpolation&&(o={start:b.template.interpolation[0],end:b.template.interpolation[1]});var p=new Fj(this._exprParser,o,this._schemaRegistry,m,k),q=new mk(n,l,p,this._schemaRegistry,h,k);j=U(q,a.rootNodes,qk),k.push.apply(k,n.errors)}else j=[];return this._assertNoReferenceDuplicationOnTemplate(j,k),k.length>0?new kk(j,k):(d(this.transforms)&&this.transforms.forEach(function(a){j=c(a,j)}),new kk(j,k))},e.prototype.expandHtml=function(a,b){void 0===b&&(b=!1);var c=a.errors;if(0==c.length||b){var d=Ka(a.rootNodes);c.push.apply(c,d.errors),a=new ih(d.nodes,c)}return a},e.prototype.getInterpolationConfig=function(a){if(a.template)return cg.fromArray(a.template.interpolation)},e.prototype._assertNoReferenceDuplicationOnTemplate=function(b,c){var d=[];b.filter(function(a){return!!a.references}).forEach(function(b){return b.references.forEach(function(b){var e=b.name;if(d.indexOf(e)<0)d.push(e);else{var f=new jk('Reference "#'+e+'" is defined several times',b.sourceSpan,a.ParseErrorLevel.FATAL);c.push(f)}})})},e.decorators=[{type:b.Injectable}],e.ctorParameters=[{type:Mg},{type:tj},{type:qi},{type:Ki},{type:Array,decorators:[{type:b.Optional},{type:b.Inject,args:[ik]}]}],e}(),mk=function(){function b(a,b,c,d,e,f){var g=this;this.providerViewContext=a,this._bindingParser=c,this._schemaRegistry=d,this._schemas=e,this._targetErrors=f,this.selectorMatcher=new te,this.directivesIndex=new Map,this.ngContentCount=0,b.forEach(function(a,b){var c=se.parse(a.selector);g.selectorMatcher.addSelectables(c,a),g.directivesIndex.set(a,b)})}return b.prototype.visitExpansion=function(a,b){return null},b.prototype.visitExpansionCase=function(a,b){return null},b.prototype.visitText=function(a,b){var c=b.findNgContentIndex(hk),e=this._bindingParser.parseInterpolation(a.value,a.sourceSpan);return d(e)?new Wd(e,c,a.sourceSpan):new Vd(a.value,c,a.sourceSpan)},b.prototype.visitAttribute=function(a,b){return new Xd(a.name,a.value,a.sourceSpan)},b.prototype.visitComment=function(a,b){return null},b.prototype.visitElement=function(a,b){var c=this,e=a.name,f=Za(a);if(f.type===Dj.SCRIPT||f.type===Dj.STYLE)return null;if(f.type===Dj.STYLESHEET&&Va(f.hrefAttr))return null;var g=[],h=[],i=[],j=[],k=[],m=[],n=[],o=[],p=!1,q=[],r=l(e.toLowerCase())[1],s=r==dk;a.attrs.forEach(function(a){var b,e=c._parseAttr(s,a,g,h,k,i,j);if(c._normalizeAttributeName(a.name)==ek)b=a.value;else if(a.name.startsWith(fk)){var f=a.name.substring(fk.length);b=0==a.value.length?f:f+" "+a.value}var l=d(b);l&&(p&&c._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",a.sourceSpan),p=!0,c._bindingParser.parseInlineTemplateBinding(a.name,b,a.sourceSpan,n,m,o)),e||l||(q.push(c.visitAttribute(a,null)),g.push([a.name,a.value]))});var t=ab(e,g),u=this._parseDirectives(this.selectorMatcher,t),v=u.directives,w=u.matchElement,x=[],y=this._createDirectiveAsts(s,a.name,v,h,i,a.sourceSpan,x),z=this._createElementPropertyAsts(a.name,h,y),A=b.isTemplateElement||p,B=new rj(this.providerViewContext,b.providerContext,A,y,q,x,a.sourceSpan),C=U(f.nonBindable?rk:this,a.children,pk.create(s,y,s?b.providerContext:B));B.afterElement();var D,E=d(f.projectAs)?se.parse(f.projectAs)[0]:t,F=b.findNgContentIndex(E);if(f.type===Dj.NG_CONTENT)a.children&&!a.children.every(bb)&&this._reportError("<ng-content> element cannot have content.",a.sourceSpan),D=new fe(this.ngContentCount++,p?null:F,a.sourceSpan);else if(s)this._assertAllEventsPublishedByDirectives(y,k),this._assertNoComponentsNorElementBindingsOnTemplate(y,z,a.sourceSpan),D=new be(q,k,x,j,B.transformedDirectiveAsts,B.transformProviders,B.transformedHasViewContainer,C,p?null:F,a.sourceSpan);else{this._assertElementExists(w,a),this._assertOnlyOneComponent(y,a.sourceSpan);var G=p?null:b.findNgContentIndex(E);D=new ae(e,q,z,k,x,B.transformedDirectiveAsts,B.transformProviders,B.transformedHasViewContainer,C,p?null:G,a.sourceSpan,a.endSourceSpan),this._findComponentDirectives(y).forEach(function(a){return c._validateElementAnimationInputOutputs(a.hostProperties,a.hostEvents,a.directive.template)});var H=B.viewContext.component.template;this._validateElementAnimationInputOutputs(z,k,H)}if(p){var I=ab(dk,n),J=this._parseDirectives(this.selectorMatcher,I).directives,K=this._createDirectiveAsts(!0,a.name,J,m,[],a.sourceSpan,[]),L=this._createElementPropertyAsts(a.name,m,K);this._assertNoComponentsNorElementBindingsOnTemplate(K,L,a.sourceSpan);var M=new rj(this.providerViewContext,b.providerContext,b.isTemplateElement,K,[],[],a.sourceSpan);M.afterElement(),D=new be([],[],[],o,M.transformedDirectiveAsts,M.transformProviders,M.transformedHasViewContainer,[D],F,a.sourceSpan)}return D},b.prototype._validateElementAnimationInputOutputs=function(a,b,c){var d=this,e=new Set;c.animations.forEach(function(a){e.add(a.name)});var f=a.filter(function(a){return a.isAnimation});f.forEach(function(a){var b=a.name;e.has(b)||d._reportError("Couldn't find an animation entry for \""+b+'"',a.sourceSpan)}),b.forEach(function(a){if(a.isAnimation){var b=f.find(function(b){return b.name==a.name});b||d._reportError("Unable to listen on (@"+a.name+"."+a.phase+") because the animation trigger [@"+a.name+"] isn't being used on the same element",a.sourceSpan)}})},b.prototype._parseAttr=function(a,b,c,e,f,g,h){var i=this._normalizeAttributeName(b.name),j=b.value,k=b.sourceSpan,l=i.match(Uj),m=!1;if(null!==l)if(m=!0,d(l[Vj]))this._bindingParser.parsePropertyBinding(l[_j],j,!1,k,c,e);else if(l[Wj])if(a){var n=l[_j];this._parseVariable(n,j,k,h)}else this._reportError('"let-" is only supported on template elements.',k);else if(l[Xj]){var n=l[_j];this._parseReference(n,j,k,g)}else l[Yj]?this._bindingParser.parseEvent(l[_j],j,k,c,f):l[Zj]?(this._bindingParser.parsePropertyBinding(l[_j],j,!1,k,c,e),this._parseAssignmentEvent(l[_j],j,k,c,f)):l[$j]?this._bindingParser.parseLiteralAttr(i,j,k,c,e):l[ak]?(this._bindingParser.parsePropertyBinding(l[ak],j,!1,k,c,e),this._parseAssignmentEvent(l[ak],j,k,c,f)):l[bk]?this._bindingParser.parsePropertyBinding(l[bk],j,!1,k,c,e):l[ck]&&this._bindingParser.parseEvent(l[ck],j,k,c,f);else m=this._bindingParser.parsePropertyInterpolation(i,j,k,c,e);return m||this._bindingParser.parseLiteralAttr(i,j,k,c,e),m},b.prototype._normalizeAttributeName=function(a){return/^data-/i.test(a)?a.substring(5):a},b.prototype._parseVariable=function(a,b,c,d){a.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',c),d.push(new _d(a,b,c))},b.prototype._parseReference=function(a,b,c,d){a.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',c),d.push(new ok(a,b,c))},b.prototype._parseAssignmentEvent=function(a,b,c,d,e){this._bindingParser.parseEvent(a+"Change",b+"=$event",c,d,e)},b.prototype._parseDirectives=function(a,b){var c=this,d=new Array(this.directivesIndex.size),e=!1;return a.match(b,function(a,b){d[c.directivesIndex.get(b)]=b,e=e||a.hasElementSelector()}),{directives:d.filter(function(a){return!!a}),matchElement:e}},b.prototype._createDirectiveAsts=function(a,b,c,d,e,f,g){var h=this,i=new Set,j=null,k=c.map(function(a){var c=new Rg(f.start,f.end,"Directive "+a.type.name);a.isComponent&&(j=a);var k=[],l=h._bindingParser.createDirectiveHostPropertyAsts(a,c);h._checkPropertiesInSchema(b,l);var m=h._bindingParser.createDirectiveHostEventAsts(a,c);return h._createDirectivePropertyAsts(a.inputs,d,k),e.forEach(function(b){(0===b.value.length&&a.isComponent||a.exportAs==b.value)&&(g.push(new $d(b.name,Ha(a.type),b.sourceSpan)),i.add(b.name))}),new de(a,k,l,m,c)});return e.forEach(function(b){if(b.value.length>0)i.has(b.name)||h._reportError('There is no directive with "exportAs" set to "'+b.value+'"',b.sourceSpan);else if(!j){var c=null;a&&(c=Ia(gj.TemplateRef)),g.push(new $d(b.name,c,b.sourceSpan))}}),k},b.prototype._createDirectivePropertyAsts=function(a,b,c){if(a){var d=new Map;b.forEach(function(a){var b=d.get(a.name);b&&!b.isLiteral||d.set(a.name,a)}),Object.keys(a).forEach(function(b){var e=a[b],f=d.get(e);f&&c.push(new ce(b,f.name,f.expression,f.sourceSpan))})}},b.prototype._createElementPropertyAsts=function(a,b,c){var d=this,e=[],f=new Map;return c.forEach(function(a){a.inputs.forEach(function(a){f.set(a.templateName,a)})}),b.forEach(function(b){b.isLiteral||f.get(b.name)||e.push(d._bindingParser.createElementPropertyAst(a,b))}),this._checkPropertiesInSchema(a,e),e},b.prototype._findComponentDirectives=function(a){return a.filter(function(a){return a.directive.isComponent})},b.prototype._findComponentDirectiveNames=function(a){return this._findComponentDirectives(a).map(function(a){return a.directive.type.name})},b.prototype._assertOnlyOneComponent=function(a,b){var c=this._findComponentDirectiveNames(a);c.length>1&&this._reportError("More than one component: "+c.join(","),b)},b.prototype._assertElementExists=function(a,b){var c=b.name.replace(/^:xhtml:/,"");if(!a&&!this._schemaRegistry.hasElement(c,this._schemas)){var d="'"+c+"' is not a known element:\n"+("1. If '"+c+"' is an Angular component, then verify that it is part of this module.\n")+("2. If '"+c+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.");this._reportError(d,b.sourceSpan)}},b.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(a,b,c){var d=this,e=this._findComponentDirectiveNames(a);e.length>0&&this._reportError("Components on an embedded template: "+e.join(","),c),b.forEach(function(a){d._reportError("Property binding "+a.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 "directives" section.',c)})},b.prototype._assertAllEventsPublishedByDirectives=function(a,b){var c=this,e=new Set;a.forEach(function(a){Object.keys(a.directive.outputs).forEach(function(b){var c=a.directive.outputs[b];e.add(c)})}),b.forEach(function(a){!d(a.target)&&e.has(a.name)||c._reportError("Event binding "+a.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 "directives" section.',a.sourceSpan)})},b.prototype._checkPropertiesInSchema=function(b,c){var d=this;c.forEach(function(c){if(c.type===a.PropertyBindingType.Property&&!d._schemaRegistry.hasProperty(b,c.name,d._schemas)){var e="Can't bind to '"+c.name+"' since it isn't a known property of '"+b+"'.";b.indexOf("-")>-1&&(e+="\n1. If '"+b+"' is an Angular component and it has '"+c.name+"' input, then verify that it is part of this module."+("\n2. If '"+b+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.\n")),d._reportError(e,c.sourceSpan)}})},b.prototype._reportError=function(b,c,d){void 0===d&&(d=a.ParseErrorLevel.FATAL),this._targetErrors.push(new Tg(c,b,d))},b}(),nk=function(){function a(){}return a.prototype.visitElement=function(a,b){var c=Za(a);if(c.type===Dj.SCRIPT||c.type===Dj.STYLE||c.type===Dj.STYLESHEET)return null;var d=a.attrs.map(function(a){return[a.name,a.value]}),e=ab(a.name,d),f=b.findNgContentIndex(e),g=U(this,a.children,qk);return new ae(a.name,U(this,a.attrs),[],[],[],[],[],!1,g,f,a.sourceSpan,a.endSourceSpan)},a.prototype.visitComment=function(a,b){return null},a.prototype.visitAttribute=function(a,b){return new Xd(a.name,a.value,a.sourceSpan)},a.prototype.visitText=function(a,b){var c=b.findNgContentIndex(hk);return new Vd(a.value,c,a.sourceSpan)},a.prototype.visitExpansion=function(a,b){return a},a.prototype.visitExpansionCase=function(a,b){return a},a}(),ok=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a}(),pk=function(){function a(a,b,c,d){this.isTemplateElement=a,this._ngContentIndexMatcher=b,this._wildcardNgContentIndex=c,this.providerContext=d}return a.create=function(b,c,d){var e=new te,f=null,g=c.find(function(a){return a.directive.isComponent});if(g)for(var h=g.directive.template.ngContentSelectors,i=0;i<h.length;i++){var j=h[i];"*"===j?f=i:e.addSelectables(se.parse(h[i]),i)}return new a(b,e,f,d)},a.prototype.findNgContentIndex=function(a){var b=[];return this._ngContentIndexMatcher.match(a,function(a,c){b.push(c)}),b.sort(),d(this._wildcardNgContentIndex)&&b.push(this._wildcardNgContentIndex),b.length>0?b[0]:null},a}(),qk=new pk(!0,new te,null,null),rk=new nk,sk=function(){function a(a){var c=void 0===a?{}:a,d=c.renderTypes,e=void 0===d?new uk:d,f=c.defaultEncapsulation,g=void 0===f?b.ViewEncapsulation.Emulated:f,h=c.genDebugInfo,i=c.logBindingUpdate,j=c.useJit,k=void 0===j||j;this.renderTypes=e,this.defaultEncapsulation=g,this._genDebugInfo=h,this._logBindingUpdate=i,this.useJit=k}return Object.defineProperty(a.prototype,"genDebugInfo",{get:function(){return void 0===this._genDebugInfo?b.isDevMode():this._genDebugInfo},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"logBindingUpdate",{get:function(){return void 0===this._logBindingUpdate?b.isDevMode():this._logBindingUpdate},enumerable:!0,configurable:!0}),a}(),tk=function(){function a(){}return Object.defineProperty(a.prototype,"renderer",{get:function(){return cb()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderText",{get:function(){return cb()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderElement",{get:function(){return cb()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderComment",{
  get:function(){return cb()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderNode",{get:function(){return cb()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderEvent",{get:function(){return cb()},enumerable:!0,configurable:!0}),a}(),uk=function(){function a(){this.renderText=null,this.renderElement=null,this.renderComment=null,this.renderNode=null,this.renderEvent=null}return Object.defineProperty(a.prototype,"renderer",{get:function(){return Ga(gj.Renderer)},enumerable:!0,configurable:!0}),a}(),vk=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};!function(a){a[a.Const=0]="Const"}(Rj||(Rj={}));var wk,xk=function(){function a(a){void 0===a&&(a=null),this.modifiers=a,a||(this.modifiers=[])}return a.prototype.hasModifier=function(a){return this.modifiers.indexOf(a)!==-1},a}();!function(a){a[a.Dynamic=0]="Dynamic",a[a.Bool=1]="Bool",a[a.String=2]="String",a[a.Int=3]="Int",a[a.Number=4]="Number",a[a.Function=5]="Function"}(wk||(wk={}));var yk,zk=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.name=b}return vk(b,a),b.prototype.visitType=function(a,b){return a.visitBuiltintType(this,b)},b}(xk),Ak=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,d),this.value=b,this.typeParams=c}return vk(b,a),b.prototype.visitType=function(a,b){return a.visitExternalType(this,b)},b}(xk),Bk=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.of=b}return vk(b,a),b.prototype.visitType=function(a,b){return a.visitArrayType(this,b)},b}(xk),Ck=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.valueType=b}return vk(b,a),b.prototype.visitType=function(a,b){return a.visitMapType(this,b)},b}(xk),Dk=new zk(wk.Dynamic),Ek=new zk(wk.Bool),Fk=(new zk(wk.Int),new zk(wk.Number)),Gk=new zk(wk.String),Hk=new zk(wk.Function);!function(a){a[a.Equals=0]="Equals",a[a.NotEquals=1]="NotEquals",a[a.Identical=2]="Identical",a[a.NotIdentical=3]="NotIdentical",a[a.Minus=4]="Minus",a[a.Plus=5]="Plus",a[a.Divide=6]="Divide",a[a.Multiply=7]="Multiply",a[a.Modulo=8]="Modulo",a[a.And=9]="And",a[a.Or=10]="Or",a[a.Lower=11]="Lower",a[a.LowerEquals=12]="LowerEquals",a[a.Bigger=13]="Bigger",a[a.BiggerEquals=14]="BiggerEquals"}(yk||(yk={}));var Ik,Jk=function(){function a(a){this.type=a}return a.prototype.prop=function(a){return new _k(this,a)},a.prototype.key=function(a,b){return void 0===b&&(b=null),new al(this,a,b)},a.prototype.callMethod=function(a,b){return new Qk(this,a,b)},a.prototype.callFn=function(a){return new Rk(this,a)},a.prototype.instantiate=function(a,b){return void 0===b&&(b=null),new Sk(this,a,b)},a.prototype.conditional=function(a,b){return void 0===b&&(b=null),new Vk(this,a,b)},a.prototype.equals=function(a){return new $k(yk.Equals,this,a)},a.prototype.notEquals=function(a){return new $k(yk.NotEquals,this,a)},a.prototype.identical=function(a){return new $k(yk.Identical,this,a)},a.prototype.notIdentical=function(a){return new $k(yk.NotIdentical,this,a)},a.prototype.minus=function(a){return new $k(yk.Minus,this,a)},a.prototype.plus=function(a){return new $k(yk.Plus,this,a)},a.prototype.divide=function(a){return new $k(yk.Divide,this,a)},a.prototype.multiply=function(a){return new $k(yk.Multiply,this,a)},a.prototype.modulo=function(a){return new $k(yk.Modulo,this,a)},a.prototype.and=function(a){return new $k(yk.And,this,a)},a.prototype.or=function(a){return new $k(yk.Or,this,a)},a.prototype.lower=function(a){return new $k(yk.Lower,this,a)},a.prototype.lowerEquals=function(a){return new $k(yk.LowerEquals,this,a)},a.prototype.bigger=function(a){return new $k(yk.Bigger,this,a)},a.prototype.biggerEquals=function(a){return new $k(yk.BiggerEquals,this,a)},a.prototype.isBlank=function(){return this.equals(fl)},a.prototype.cast=function(a){return new Xk(this,a)},a.prototype.toStmt=function(){return new kl(this)},a}();!function(a){a[a.This=0]="This",a[a.Super=1]="Super",a[a.CatchError=2]="CatchError",a[a.CatchStack=3]="CatchStack"}(Ik||(Ik={}));var Kk,Lk=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),"string"==typeof b?(this.name=b,this.builtin=null):(this.name=null,this.builtin=b)}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitReadVarExpr(this,b)},b.prototype.set=function(a){return new Mk(this.name,a)},b}(Jk),Mk=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d||c.type),this.name=b,this.value=c}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitWriteVarExpr(this,b)},b.prototype.toDeclStmt=function(a,b){return void 0===a&&(a=null),void 0===b&&(b=null),new il(this.name,this.value,a,b)},b}(Jk),Nk=function(a){function b(b,c,d,e){void 0===e&&(e=null),a.call(this,e||d.type),this.receiver=b,this.index=c,this.value=d}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitWriteKeyExpr(this,b)},b}(Jk),Ok=function(a){function b(b,c,d,e){void 0===e&&(e=null),a.call(this,e||d.type),this.receiver=b,this.name=c,this.value=d}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitWritePropExpr(this,b)},b}(Jk);!function(a){a[a.ConcatArray=0]="ConcatArray",a[a.SubscribeObservable=1]="SubscribeObservable",a[a.Bind=2]="Bind"}(Kk||(Kk={}));var Pk,Qk=function(a){function b(b,c,d,e){void 0===e&&(e=null),a.call(this,e),this.receiver=b,this.args=d,"string"==typeof c?(this.name=c,this.builtin=null):(this.name=null,this.builtin=c)}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitInvokeMethodExpr(this,b)},b}(Jk),Rk=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.fn=b,this.args=c}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitInvokeFunctionExpr(this,b)},b}(Jk),Sk=function(a){function b(b,c,d){a.call(this,d),this.classExpr=b,this.args=c}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitInstantiateExpr(this,b)},b}(Jk),Tk=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.value=b}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralExpr(this,b)},b}(Jk),Uk=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,c),this.value=b,this.typeParams=d}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitExternalExpr(this,b)},b}(Jk),Vk=function(a){function b(b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,e||c.type),this.condition=b,this.falseCase=d,this.trueCase=c}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitConditionalExpr(this,b)},b}(Jk),Wk=function(a){function b(b){a.call(this,Ek),this.condition=b}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitNotExpr(this,b)},b}(Jk),Xk=function(a){function b(b,c){a.call(this,c),this.value=b}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitCastExpr(this,b)},b}(Jk),Yk=function(){function a(a,b){void 0===b&&(b=null),this.name=a,this.type=b}return a}(),Zk=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.params=b,this.statements=c}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitFunctionExpr(this,b)},b.prototype.toDeclStmt=function(a,b){return void 0===b&&(b=null),new jl(a,this.params,this.statements,this.type,b)},b}(Jk),$k=function(a){function b(b,c,d,e){void 0===e&&(e=null),a.call(this,e||c.type),this.operator=b,this.rhs=d,this.lhs=c}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitBinaryOperatorExpr(this,b)},b}(Jk),_k=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.receiver=b,this.name=c}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitReadPropExpr(this,b)},b.prototype.set=function(a){return new Ok(this.receiver,this.name,a)},b}(Jk),al=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.receiver=b,this.index=c}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitReadKeyExpr(this,b)},b.prototype.set=function(a){return new Nk(this.receiver,this.index,a)},b}(Jk),bl=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.entries=b}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralArrayExpr(this,b)},b}(Jk),cl=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.entries=b,this.valueType=null,d(c)&&(this.valueType=c.valueType)}return vk(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralMapExpr(this,b)},b}(Jk),dl=new Lk(Ik.This),el=new Lk(Ik.Super),fl=(new Lk(Ik.CatchError),new Lk(Ik.CatchStack),new Tk(null,null));!function(a){a[a.Final=0]="Final",a[a.Private=1]="Private"}(Pk||(Pk={}));var gl,hl=function(){function a(a){void 0===a&&(a=null),this.modifiers=a,a||(this.modifiers=[])}return a.prototype.hasModifier=function(a){return this.modifiers.indexOf(a)!==-1},a}(),il=function(a){function b(b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,e),this.name=b,this.value=c,this.type=d||c.type}return vk(b,a),b.prototype.visitStatement=function(a,b){return a.visitDeclareVarStmt(this,b)},b}(hl),jl=function(a){function b(b,c,d,e,f){void 0===e&&(e=null),void 0===f&&(f=null),a.call(this,f),this.name=b,this.params=c,this.statements=d,this.type=e}return vk(b,a),b.prototype.visitStatement=function(a,b){return a.visitDeclareFunctionStmt(this,b)},b}(hl),kl=function(a){function b(b){a.call(this),this.expr=b}return vk(b,a),b.prototype.visitStatement=function(a,b){return a.visitExpressionStmt(this,b)},b}(hl),ll=function(a){function b(b){a.call(this),this.value=b}return vk(b,a),b.prototype.visitStatement=function(a,b){return a.visitReturnStmt(this,b)},b}(hl),ml=function(){function a(a,b){void 0===a&&(a=null),this.type=a,this.modifiers=b,b||(this.modifiers=[])}return a.prototype.hasModifier=function(a){return this.modifiers.indexOf(a)!==-1},a}(),nl=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,c,d),this.name=b}return vk(b,a),b}(ml),ol=function(a){function b(b,c,d,e,f){void 0===e&&(e=null),void 0===f&&(f=null),a.call(this,e,f),this.name=b,this.params=c,this.body=d}return vk(b,a),b}(ml),pl=function(a){function b(b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,d,e),this.name=b,this.body=c}return vk(b,a),b}(ml),ql=function(a){function b(b,c,d,e,f,g,h){void 0===h&&(h=null),a.call(this,h),this.name=b,this.parent=c,this.fields=d,this.getters=e,this.constructorMethod=f,this.methods=g}return vk(b,a),b.prototype.visitStatement=function(a,b){return a.visitDeclareClassStmt(this,b)},b}(hl),rl=function(a){function b(b,c,d){void 0===d&&(d=[]),a.call(this),this.condition=b,this.trueCase=c,this.falseCase=d}return vk(b,a),b.prototype.visitStatement=function(a,b){return a.visitIfStmt(this,b)},b}(hl),sl=(function(a){function b(b){a.call(this),this.comment=b}return vk(b,a),b.prototype.visitStatement=function(a,b){return a.visitCommentStmt(this,b)},b}(hl),function(a){function b(b,c){a.call(this),this.bodyStmts=b,this.catchStmts=c}return vk(b,a),b.prototype.visitStatement=function(a,b){return a.visitTryCatchStmt(this,b)},b}(hl)),tl=function(a){function b(b){a.call(this),this.error=b}return vk(b,a),b.prototype.visitStatement=function(a,b){return a.visitThrowStmt(this,b)},b}(hl),ul=function(){function a(){}return a.prototype.visitReadVarExpr=function(a,b){return a},a.prototype.visitWriteVarExpr=function(a,b){return new Mk(a.name,a.value.visitExpression(this,b))},a.prototype.visitWriteKeyExpr=function(a,b){return new Nk(a.receiver.visitExpression(this,b),a.index.visitExpression(this,b),a.value.visitExpression(this,b))},a.prototype.visitWritePropExpr=function(a,b){return new Ok(a.receiver.visitExpression(this,b),a.name,a.value.visitExpression(this,b))},a.prototype.visitInvokeMethodExpr=function(a,b){var c=a.builtin||a.name;return new Qk(a.receiver.visitExpression(this,b),c,this.visitAllExpressions(a.args,b),a.type)},a.prototype.visitInvokeFunctionExpr=function(a,b){return new Rk(a.fn.visitExpression(this,b),this.visitAllExpressions(a.args,b),a.type)},a.prototype.visitInstantiateExpr=function(a,b){return new Sk(a.classExpr.visitExpression(this,b),this.visitAllExpressions(a.args,b),a.type)},a.prototype.visitLiteralExpr=function(a,b){return a},a.prototype.visitExternalExpr=function(a,b){return a},a.prototype.visitConditionalExpr=function(a,b){return new Vk(a.condition.visitExpression(this,b),a.trueCase.visitExpression(this,b),a.falseCase.visitExpression(this,b))},a.prototype.visitNotExpr=function(a,b){return new Wk(a.condition.visitExpression(this,b))},a.prototype.visitCastExpr=function(a,b){return new Xk(a.value.visitExpression(this,b),b)},a.prototype.visitFunctionExpr=function(a,b){return a},a.prototype.visitBinaryOperatorExpr=function(a,b){return new $k(a.operator,a.lhs.visitExpression(this,b),a.rhs.visitExpression(this,b),a.type)},a.prototype.visitReadPropExpr=function(a,b){return new _k(a.receiver.visitExpression(this,b),a.name,a.type)},a.prototype.visitReadKeyExpr=function(a,b){return new al(a.receiver.visitExpression(this,b),a.index.visitExpression(this,b),a.type)},a.prototype.visitLiteralArrayExpr=function(a,b){return new bl(this.visitAllExpressions(a.entries,b))},a.prototype.visitLiteralMapExpr=function(a,b){var c=this,d=a.entries.map(function(a){return[a[0],a[1].visitExpression(c,b)]});return new cl(d)},a.prototype.visitAllExpressions=function(a,b){var c=this;return a.map(function(a){return a.visitExpression(c,b)})},a.prototype.visitDeclareVarStmt=function(a,b){return new il(a.name,a.value.visitExpression(this,b),a.type,a.modifiers)},a.prototype.visitDeclareFunctionStmt=function(a,b){return a},a.prototype.visitExpressionStmt=function(a,b){return new kl(a.expr.visitExpression(this,b))},a.prototype.visitReturnStmt=function(a,b){return new ll(a.value.visitExpression(this,b))},a.prototype.visitDeclareClassStmt=function(a,b){return a},a.prototype.visitIfStmt=function(a,b){return new rl(a.condition.visitExpression(this,b),this.visitAllStatements(a.trueCase,b),this.visitAllStatements(a.falseCase,b))},a.prototype.visitTryCatchStmt=function(a,b){return new sl(this.visitAllStatements(a.bodyStmts,b),this.visitAllStatements(a.catchStmts,b))},a.prototype.visitThrowStmt=function(a,b){return new tl(a.error.visitExpression(this,b))},a.prototype.visitCommentStmt=function(a,b){return a},a.prototype.visitAllStatements=function(a,b){var c=this;return a.map(function(a){return a.visitStatement(c,b)})},a}(),vl=function(){function a(){}return a.prototype.visitReadVarExpr=function(a,b){return a},a.prototype.visitWriteVarExpr=function(a,b){return a.value.visitExpression(this,b),a},a.prototype.visitWriteKeyExpr=function(a,b){return a.receiver.visitExpression(this,b),a.index.visitExpression(this,b),a.value.visitExpression(this,b),a},a.prototype.visitWritePropExpr=function(a,b){return a.receiver.visitExpression(this,b),a.value.visitExpression(this,b),a},a.prototype.visitInvokeMethodExpr=function(a,b){return a.receiver.visitExpression(this,b),this.visitAllExpressions(a.args,b),a},a.prototype.visitInvokeFunctionExpr=function(a,b){return a.fn.visitExpression(this,b),this.visitAllExpressions(a.args,b),a},a.prototype.visitInstantiateExpr=function(a,b){return a.classExpr.visitExpression(this,b),this.visitAllExpressions(a.args,b),a},a.prototype.visitLiteralExpr=function(a,b){return a},a.prototype.visitExternalExpr=function(a,b){return a},a.prototype.visitConditionalExpr=function(a,b){return a.condition.visitExpression(this,b),a.trueCase.visitExpression(this,b),a.falseCase.visitExpression(this,b),a},a.prototype.visitNotExpr=function(a,b){return a.condition.visitExpression(this,b),a},a.prototype.visitCastExpr=function(a,b){return a.value.visitExpression(this,b),a},a.prototype.visitFunctionExpr=function(a,b){return a},a.prototype.visitBinaryOperatorExpr=function(a,b){return a.lhs.visitExpression(this,b),a.rhs.visitExpression(this,b),a},a.prototype.visitReadPropExpr=function(a,b){return a.receiver.visitExpression(this,b),a},a.prototype.visitReadKeyExpr=function(a,b){return a.receiver.visitExpression(this,b),a.index.visitExpression(this,b),a},a.prototype.visitLiteralArrayExpr=function(a,b){return this.visitAllExpressions(a.entries,b),a},a.prototype.visitLiteralMapExpr=function(a,b){var c=this;return a.entries.forEach(function(a){return a[1].visitExpression(c,b)}),a},a.prototype.visitAllExpressions=function(a,b){var c=this;a.forEach(function(a){return a.visitExpression(c,b)})},a.prototype.visitDeclareVarStmt=function(a,b){return a.value.visitExpression(this,b),a},a.prototype.visitDeclareFunctionStmt=function(a,b){return a},a.prototype.visitExpressionStmt=function(a,b){return a.expr.visitExpression(this,b),a},a.prototype.visitReturnStmt=function(a,b){return a.value.visitExpression(this,b),a},a.prototype.visitDeclareClassStmt=function(a,b){return a},a.prototype.visitIfStmt=function(a,b){return a.condition.visitExpression(this,b),this.visitAllStatements(a.trueCase,b),this.visitAllStatements(a.falseCase,b),a},a.prototype.visitTryCatchStmt=function(a,b){return this.visitAllStatements(a.bodyStmts,b),this.visitAllStatements(a.catchStmts,b),a},a.prototype.visitThrowStmt=function(a,b){return a.error.visitExpression(this,b),a},a.prototype.visitCommentStmt=function(a,b){return a},a.prototype.visitAllStatements=function(a,b){var c=this;a.forEach(function(a){return a.visitStatement(c,b)})},a}(),wl=function(a){function b(b,c){a.call(this),this._varName=b,this._newValue=c}return vk(b,a),b.prototype.visitReadVarExpr=function(a,b){return a.name==this._varName?this._newValue:a},b}(ul),xl=function(a){function b(){a.apply(this,arguments),this.varNames=new Set}return vk(b,a),b.prototype.visitReadVarExpr=function(a,b){return this.varNames.add(a.name),null},b}(vl),yl=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},zl=function(){function a(){this.startTime=0,this.playTime=0}return a}(),Al=function(a){function b(){a.apply(this,arguments)}return yl(b,a),b}(zl),Bl=function(a){function b(b,c,d){a.call(this),this.name=b,this.stateDeclarations=c,this.stateTransitions=d}return yl(b,a),b.prototype.visit=function(a,b){return a.visitAnimationEntry(this,b)},b}(zl),Cl=function(a){function b(b,c){a.call(this),this.stateName=b,this.styles=c}return yl(b,a),b.prototype.visit=function(a,b){return a.visitAnimationStateDeclaration(this,b)},b}(Al),Dl=function(){function a(a,b){this.fromState=a,this.toState=b}return a}(),El=function(a){function b(b,c){a.call(this),this.stateChanges=b,this.animation=c}return yl(b,a),b.prototype.visit=function(a,b){return a.visitAnimationStateTransition(this,b)},b}(Al),Fl=function(a){function b(b,c,d,e,f){a.call(this),this.startingStyles=b,this.keyframes=c,this.duration=d,this.delay=e,this.easing=f}return yl(b,a),b.prototype.visit=function(a,b){return a.visitAnimationStep(this,b)},b}(zl),Gl=function(a){function b(b){a.call(this),this.styles=b}return yl(b,a),b.prototype.visit=function(a,b){return a.visitAnimationStyles(this,b)},b}(zl),Hl=function(a){function b(b,c){a.call(this),this.offset=b,this.styles=c}return yl(b,a),b.prototype.visit=function(a,b){return a.visitAnimationKeyframe(this,b)},b}(zl),Il=function(a){function b(b){a.call(this),this.steps=b}return yl(b,a),b}(zl),Jl=function(a){function b(b){a.call(this,b)}return yl(b,a),b.prototype.visit=function(a,b){return a.visitAnimationGroup(this,b)},b}(Il),Kl=function(a){function b(b){a.call(this,b)}return yl(b,a),b.prototype.visit=function(a,b){return a.visitAnimationSequence(this,b)},b}(Il),Ll=function(){function a(a,b,c){this.name=a,this.statements=b,this.fnExp=c}return a}(),Ml=function(){function a(){}return a.prototype.compile=function(a,b){return b.map(function(b){var c=a+"_"+b.name,d=new $l(b.name,c);return d.build(b)})},a}(),Nl=fb("element"),Ol=fb("defaultStateStyles"),Pl=fb("view"),Ql=Pl.prop("animationContext"),Rl=Pl.prop("renderer"),Sl=fb("currentState"),Tl=fb("nextState"),Ul=fb("player"),Vl=fb("totalTime"),Wl=fb("startStateStyles"),Xl=fb("endStateStyles"),Yl=fb("collectedStyles"),Zl=jb([]),$l=function(){function a(a,b){this.animationName=a,this._fnVarName=b+"_factory",this._statesMapVarName=b+"_states",this._statesMapVar=fb(this._statesMapVarName)}return a.prototype.visitAnimationStyles=function(a,b){var c=[];return b.isExpectingFirstStyleStep&&(c.push(Wl),b.isExpectingFirstStyleStep=!1),a.styles.forEach(function(a){var b=Object.keys(a).map(function(b){return[b,mb(a[b])]});c.push(jb(b))}),gb(Ga(gj.AnimationStyles)).instantiate([gb(Ga(gj.collectAndResolveStyles)).callFn([Yl,ib(c)])])},a.prototype.visitAnimationKeyframe=function(a,b){return gb(Ga(gj.AnimationKeyframe)).instantiate([mb(a.offset),a.styles.visit(this,b)])},a.prototype.visitAnimationStep=function(a,b){var c=this;if(b.endStateAnimateStep===a)return this._visitEndStateAnimation(a,b);var d=a.startingStyles.visit(this,b),e=a.keyframes.map(function(a){return a.visit(c,b)});return this._callAnimateMethod(a,d,ib(e),b)},a.prototype._visitEndStateAnimation=function(a,b){var c=this,d=a.startingStyles.visit(this,b),e=a.keyframes.map(function(a){return a.visit(c,b)}),f=gb(Ga(gj.balanceAnimationKeyframes)).callFn([Yl,Xl,ib(e)]);return this._callAnimateMethod(a,d,f,b)},a.prototype._callAnimateMethod=function(a,b,c,d){return d.totalTransitionTime+=a.duration+a.delay,Rl.callMethod("animate",[Nl,b,c,mb(a.duration),mb(a.delay),mb(a.easing)])},a.prototype.visitAnimationSequence=function(a,b){var c=this,d=a.steps.map(function(a){return a.visit(c,b)});return gb(Ga(gj.AnimationSequencePlayer)).instantiate([ib(d)])},a.prototype.visitAnimationGroup=function(a,b){var c=this,d=a.steps.map(function(a){return a.visit(c,b)});return gb(Ga(gj.AnimationGroupPlayer)).instantiate([ib(d)])},a.prototype.visitAnimationStateDeclaration=function(a,b){var c={};pb(a).forEach(function(a){Object.keys(a).forEach(function(b){c[b]=a[b]})}),b.stateMap.registerState(a.stateName,c)},a.prototype.visitAnimationStateTransition=function(a,b){var c=a.animation.steps,d=c[c.length-1];ob(d)&&(b.endStateAnimateStep=d),b.totalTransitionTime=0,b.isExpectingFirstStyleStep=!0;var e=[];a.stateChanges.forEach(function(a){e.push(nb(Sl,a.fromState).and(nb(Tl,a.toState))),a.fromState!=Ti&&b.stateMap.registerState(a.fromState),a.toState!=Ti&&b.stateMap.registerState(a.toState)});var f=a.animation.visit(this,b),g=e.reduce(function(a,b){return a.or(b)}),h=Ul.equals(fl).and(g),i=Ul.set(f).toStmt(),j=Vl.set(mb(b.totalTransitionTime)).toStmt();return new rl(h,[i,j])},a.prototype.visitAnimationEntry=function(a,b){var c=this;a.stateDeclarations.forEach(function(a){return a.visit(c,b)}),b.stateMap.registerState(Ui,{});var d=[];d.push(Ql.callMethod("cancelActiveAnimation",[Nl,mb(this.animationName),Tl.equals(mb(Vi))]).toStmt()),d.push(Yl.set(Zl).toDeclStmt()),d.push(Ul.set(fl).toDeclStmt()),d.push(Vl.set(mb(0)).toDeclStmt()),d.push(Ol.set(this._statesMapVar.key(mb(Ui))).toDeclStmt()),d.push(Wl.set(this._statesMapVar.key(Sl)).toDeclStmt()),d.push(new rl(Wl.equals(fl),[Wl.set(Ol).toStmt()])),d.push(Xl.set(this._statesMapVar.key(Tl)).toDeclStmt()),d.push(new rl(Xl.equals(fl),[Xl.set(Ol).toStmt()]));var e=gb(Ga(gj.renderStyles));return d.push(e.callFn([Nl,Rl,gb(Ga(gj.clearStyles)).callFn([Wl])]).toStmt()),a.stateTransitions.forEach(function(a){return d.push(a.visit(c,b))}),d.push(new rl(Ul.equals(fl),[Ul.set(gb(Ga(gj.NoOpAnimationPlayer)).instantiate([])).toStmt()])),d.push(Ul.callMethod("onDone",[lb([],[e.callFn([Nl,Rl,gb(Ga(gj.prepareFinalAnimationStyles)).callFn([Wl,Xl])]).toStmt()])]).toStmt()),d.push(Ql.callMethod("queueAnimation",[Nl,mb(this.animationName),Ul]).toStmt()),d.push(new ll(gb(Ga(gj.AnimationTransition)).instantiate([Ul,Sl,Tl,Vl]))),lb([new Yk(Pl.name,hb(Ga(gj.AppView),[Dk])),new Yk(Nl.name,Dk),new Yk(Sl.name,Dk),new Yk(Tl.name,Dk)],d,hb(Ga(gj.AnimationTransition)))},a.prototype.build=function(a){var b=new _l,c=a.visit(this,b).toDeclStmt(this._fnVarName),e=fb(this._fnVarName),f=[];Object.keys(b.stateMap.states).forEach(function(a){var c=b.stateMap.states[a],e=Zl;if(d(c)){var g=[];Object.keys(c).forEach(function(a){g.push([a,mb(c[a])])}),e=jb(g)}f.push([a,e])});var g=this._statesMapVar.set(jb(f)).toDeclStmt(),h=[g,c];return new Ll(this.animationName,h,e)},a}(),_l=function(){function a(){this.stateMap=new am,this.endStateAnimateStep=null,this.isExpectingFirstStyleStep=!1,this.totalTransitionTime=0}return a}(),am=function(){function a(){this._states={}}return Object.defineProperty(a.prototype,"states",{get:function(){return this._states},enumerable:!0,configurable:!0}),a.prototype.registerState=function(a,b){void 0===b&&(b=null);var c=this._states[a];c||(this._states[a]=b)},a}(),bm=function(){function a(a,b){this.time=a,this.value=b}return a.prototype.matches=function(a,b){return a==this.time&&b==this.value},a}(),cm=function(){function a(){this.styles={}}return a.prototype.insertAtTime=function(a,b,c){var e=new bm(b,c),f=this.styles[a];d(f)||(f=this.styles[a]=[]);for(var g=0,h=f.length-1;h>=0;h--)if(f[h].time<=b){g=h+1;break}f.splice(g,0,e)},a.prototype.getByIndex=function(a,b){var c=this.styles[a];return d(c)?b>=c.length?null:c[b]:null},a.prototype.indexOfAtOrBeforeTime=function(a,b){var c=this.styles[a];if(d(c))for(var e=c.length-1;e>=0;e--)if(c[e].time<=b)return e;return null},a}(),dm=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},em=0,fm=1,gm=1e3,hm=function(a){function b(b){a.call(this,null,b)}return dm(b,a),b.prototype.toString=function(){return""+this.msg},b}(Tg),im=function(){function a(a,b){this.ast=a,this.errors=b}return a}(),jm=function(){function a(){}return a.prototype.parseComponent=function(a){var b=this,c=[],d=a.type.name,e=new Set,f=a.template.animations.map(function(a){var f=b.parseEntry(a),g=f.ast,h=g.name;if(e.has(h)?f.errors.push(new hm('The animation trigger "'+h+'" has already been registered for the '+d+" component")):e.add(h),f.errors.length>0){var i='- Unable to parse the animation sequence for "'+h+'" on the '+d+" component due to the following errors:";f.errors.forEach(function(a){i+="\n-- "+a.msg}),c.push(i)}return g});if(c.length>0){var g=c.join("\n");throw new Error("Animation parse errors:\n"+g)}return f},a.prototype.parseEntry=function(a){var b=[],c={},d=[],e=[];a.definitions.forEach(function(a){a instanceof Ee?qb(a,b).forEach(function(a){e.push(a),c[a.stateName]=a.styles}):d.push(a)});var f=d.map(function(a){return rb(a,c,b)}),g=new Bl(a.name,e,f);return new im(g,b)},a}(),km=function(){function a(a,b,c){this.duration=a,this.delay=b,this.easing=c}return a}(),lm=function(){function a(a,b){this.expression=a,this.bindingId=b}return a}(),mm=fb("valUnwrapper"),nm=function(){function a(){}return a.event=fb("$event"),a}(),om=function(){function a(a,b,c){this.stmts=a,this.currValExpr=b,this.forceUpdate=c}return a}(),pm=function(){function a(a,b){this.stmts=a,this.preventDefault=b}return a}();!function(a){a[a.Statement=0]="Statement",a[a.Expression=1]="Expression"}(gl||(gl={}));var qm,rm=function(){function a(a,b,c,d,e,f){this._builder=a,this._nameResolver=b,this._implicitReceiver=c,this._valueUnwrapper=d,this.bindingId=e,this.isAction=f,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.needsValueUnwrapper=!1,this.temporaryCount=0}return a.prototype.visitBinary=function(a,b){var c;switch(a.operation){case"+":c=yk.Plus;break;case"-":c=yk.Minus;break;case"*":c=yk.Multiply;break;case"/":c=yk.Divide;break;case"%":c=yk.Modulo;break;case"&&":c=yk.And;break;case"||":c=yk.Or;break;case"==":c=yk.Equals;break;case"!=":c=yk.NotEquals;break;case"===":c=yk.Identical;break;case"!==":c=yk.NotIdentical;break;case"<":c=yk.Lower;break;case">":c=yk.Bigger;break;case"<=":c=yk.LowerEquals;break;case">=":c=yk.BiggerEquals;break;default:throw new Error("Unsupported operation "+a.operation)}return Ub(b,new $k(c,this.visit(a.left,gl.Expression),this.visit(a.right,gl.Expression)))},a.prototype.visitChain=function(a,b){return Sb(b,a),this.visitAll(a.expressions,b)},a.prototype.visitConditional=function(a,b){var c=this.visit(a.condition,gl.Expression);return Ub(b,c.conditional(this.visit(a.trueExp,gl.Expression),this.visit(a.falseExp,gl.Expression)))},a.prototype.visitPipe=function(a,b){var c=this.visit(a.exp,gl.Expression),d=this.visitAll(a.args,gl.Expression),e=this._nameResolver.callPipe(a.name,c,d);if(!e)throw new Error("Illegal state: Pipe "+a.name+" is not allowed here!");return this.needsValueUnwrapper=!0,Ub(b,this._valueUnwrapper.callMethod("unwrap",[e]))},a.prototype.visitFunctionCall=function(a,b){return Ub(b,this.visit(a.target,gl.Expression).callFn(this.visitAll(a.args,gl.Expression)))},a.prototype.visitImplicitReceiver=function(a,b){return Tb(b,a),this._implicitReceiver},a.prototype.visitInterpolation=function(a,b){Tb(b,a);for(var c=[mb(a.expressions.length)],d=0;d<a.strings.length-1;d++)c.push(mb(a.strings[d])),c.push(this.visit(a.expressions[d],gl.Expression));return c.push(mb(a.strings[a.strings.length-1])),gb(Ga(gj.interpolate)).callFn(c)},a.prototype.visitKeyedRead=function(a,b){return Ub(b,this.visit(a.obj,gl.Expression).key(this.visit(a.key,gl.Expression)))},a.prototype.visitKeyedWrite=function(a,b){var c=this.visit(a.obj,gl.Expression),d=this.visit(a.key,gl.Expression),e=this.visit(a.value,gl.Expression);return Ub(b,c.key(d).set(e))},a.prototype.visitLiteralArray=function(a,b){var c=this.visitAll(a.expressions,b),d=this.isAction?ib(c):Wb(this._builder,c);return Ub(b,d)},a.prototype.visitLiteralMap=function(a,b){for(var c=[],d=0;d<a.keys.length;d++)c.push([a.keys[d],this.visit(a.values[d],gl.Expression)]);var e=this.isAction?jb(c):Xb(this._builder,c);return Ub(b,e)},a.prototype.visitLiteralPrimitive=function(a,b){return Ub(b,mb(a.value))},a.prototype._getLocal=function(a){return this.isAction&&a==nm.event.name?nm.event:this._nameResolver.getLocal(a)},a.prototype.visitMethodCall=function(a,b){var c=this.leftMostSafeNode(a);if(c)return this.convertSafeAccess(a,c,b);var f=this.visitAll(a.args,gl.Expression),g=null,h=this.visit(a.receiver,gl.Expression);if(h===this._implicitReceiver){var i=this._getLocal(a.name);d(i)&&(g=i.callFn(f))}return e(g)&&(g=h.callMethod(a.name,f)),Ub(b,g)},a.prototype.visitPrefixNot=function(a,b){return Ub(b,kb(this.visit(a.expression,gl.Expression)))},a.prototype.visitPropertyRead=function(a,b){var c=this.leftMostSafeNode(a);if(c)return this.convertSafeAccess(a,c,b);var d=null,f=this.visit(a.receiver,gl.Expression);return f===this._implicitReceiver&&(d=this._getLocal(a.name)),e(d)&&(d=f.prop(a.name)),Ub(b,d)},a.prototype.visitPropertyWrite=function(a,b){var c=this.visit(a.receiver,gl.Expression);if(c===this._implicitReceiver){var e=this._getLocal(a.name);if(d(e))throw new Error("Cannot assign to a reference or variable!")}return Ub(b,c.prop(a.name).set(this.visit(a.value,gl.Expression)))},a.prototype.visitSafePropertyRead=function(a,b){return this.convertSafeAccess(a,this.leftMostSafeNode(a),b)},a.prototype.visitSafeMethodCall=function(a,b){return this.convertSafeAccess(a,this.leftMostSafeNode(a),b)},a.prototype.visitAll=function(a,b){var c=this;return a.map(function(a){return c.visit(a,b)})},a.prototype.visitQuote=function(a,b){throw new Error("Quotes are not supported for evaluation!")},a.prototype.visit=function(a,b){var c=this._resultMap.get(a);return c?c:(this._nodeMap.get(a)||a).visit(this,b)},a.prototype.convertSafeAccess=function(a,b,c){var d,e=this.visit(b.receiver,gl.Expression);this.needsTemporary(b.receiver)&&(d=this.allocateTemporary(),e=d.set(e),this._resultMap.set(b.receiver,d));var f=e.isBlank();b instanceof Ag?this._nodeMap.set(b,new zg(b.span,b.receiver,b.name,b.args)):this._nodeMap.set(b,new ng(b.span,b.receiver,b.name));var g=this.visit(a,gl.Expression);return this._nodeMap.delete(b),d&&this.releaseTemporary(d),Ub(c,f.conditional(mb(null),g))},a.prototype.leftMostSafeNode=function(a){var b=this,c=function(a,c){
  return(b._nodeMap.get(c)||c).visit(a)};return a.visit({visitBinary:function(a){return null},visitChain:function(a){return null},visitConditional:function(a){return null},visitFunctionCall:function(a){return null},visitImplicitReceiver:function(a){return null},visitInterpolation:function(a){return null},visitKeyedRead:function(a){return c(this,a.obj)},visitKeyedWrite:function(a){return null},visitLiteralArray:function(a){return null},visitLiteralMap:function(a){return null},visitLiteralPrimitive:function(a){return null},visitMethodCall:function(a){return c(this,a.receiver)},visitPipe:function(a){return null},visitPrefixNot:function(a){return null},visitPropertyRead:function(a){return c(this,a.receiver)},visitPropertyWrite:function(a){return null},visitQuote:function(a){return null},visitSafeMethodCall:function(a){return c(this,a.receiver)||a},visitSafePropertyRead:function(a){return c(this,a.receiver)||a}})},a.prototype.needsTemporary=function(a){var b=this,c=function(a,c){return c&&(b._nodeMap.get(c)||c).visit(a)},d=function(a,b){return b.some(function(b){return c(a,b)})};return a.visit({visitBinary:function(a){return c(this,a.left)||c(this,a.right)},visitChain:function(a){return!1},visitConditional:function(a){return c(this,a.condition)||c(this,a.trueExp)||c(this,a.falseExp)},visitFunctionCall:function(a){return!0},visitImplicitReceiver:function(a){return!1},visitInterpolation:function(a){return d(this,a.expressions)},visitKeyedRead:function(a){return!1},visitKeyedWrite:function(a){return!1},visitLiteralArray:function(a){return!0},visitLiteralMap:function(a){return!0},visitLiteralPrimitive:function(a){return!1},visitMethodCall:function(a){return!0},visitPipe:function(a){return!0},visitPrefixNot:function(a){return c(this,a.expression)},visitPropertyRead:function(a){return!1},visitPropertyWrite:function(a){return!1},visitQuote:function(a){return!1},visitSafeMethodCall:function(a){return!0},visitSafePropertyRead:function(a){return!1}})},a.prototype.allocateTemporary=function(){var a=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Lk(Pb(this.bindingId,a))},a.prototype.releaseTemporary=function(a){if(this._currentTemporary--,a.name!=Pb(this.bindingId,this._currentTemporary))throw new Error("Temporary "+a.name+" released out of order")},a}(),sm=function(){function a(){}return a.prototype.callPipe=function(a,b,c){return null},a.prototype.getLocal=function(a){return null},a}(),tm=function(){function a(a,b){this.statements=a,this.dirWrapperClassVar=b}return a}(),um="context",vm="changes",wm="changed",xm=fb("currValue"),ym=fb("throwOnChange"),zm=fb("forceUpdate"),Am=fb("view"),Bm=fb("el"),Cm=dl.prop(vm).set(jb([])).toStmt(),Dm=function(){function a(a,b,c,d){this.compilerConfig=a,this._exprParser=b,this._schemaRegistry=c,this._console=d}return a.dirWrapperClassName=function(a){return"Wrapper_"+a.name},a.prototype.compile=function(a){var b=new Em(this.compilerConfig,a);Object.keys(a.inputs).forEach(function(a){ec(a,b)}),dc(b);var c=gc(a,this._exprParser,this._schemaRegistry);hc(c.errors,this._console),fc(c.hostProps.filter(function(a){return!a.isAnimation}),b);var d=b.build();return new tm([d],d.name)},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:sk},{type:Mg},{type:tj},{type:Ki}],a}(),Em=function(){function a(a,b){this.compilerConfig=a,this.dirMeta=b,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[];var c=b.type.lifecycleHooks;this.genChanges=c.indexOf(ti.OnChanges)!==-1||this.compilerConfig.logBindingUpdate,this.ngOnChanges=c.indexOf(ti.OnChanges)!==-1,this.ngOnInit=c.indexOf(ti.OnInit)!==-1,this.ngDoCheck=c.indexOf(ti.DoCheck)!==-1}return a.prototype.build=function(){for(var a=[],b=0;b<this.dirMeta.type.diDeps.length;b++)a.push("p"+b);var c=[new nl(um,hb(this.dirMeta.type)),new nl(wm,Ek)],d=[dl.prop(wm).set(mb(!1)).toStmt()];return this.genChanges&&(c.push(new nl(vm,new Ck(Dk))),d.push(Cm)),d.push(dl.prop(um).set(gb(this.dirMeta.type).instantiate(a.map(function(a){return fb(a)}))).toStmt()),bc({name:Dm.dirWrapperClassName(this.dirMeta.type),ctorParams:a.map(function(a){return new Yk(a,Dk)}),builders:[{fields:c,ctorStmts:d},this]})},a}(),Fm=function(){function a(a,b,c){this.hostProps=a,this.hostListeners=b,this.errors=c}return a}(),Gm=function(){function a(){}return a.prototype.visitArray=function(a,b){var c=this;return ib(a.map(function(a){return t(a,c,null)}),b)},a.prototype.visitStringMap=function(a,b){var c=this,d=[];return Object.keys(a).forEach(function(b){d.push([b,t(a[b],c,null)])}),jb(d,b)},a.prototype.visitPrimitive=function(a,b){return mb(a,b)},a.prototype.visitOther=function(a,b){if(a instanceof Ne)return gb(a);if(a instanceof Jk)return a;throw new Error("Illegal state: Don't now how to compile value "+a)},a}(),Hm=function(){function a(a,b){this.nodeIndex=a,this.sourceAst=b}return a}(),Im=new Hm(null,null),Jm=function(){function a(a){this._view=a,this._newState=Im,this._currState=Im,this._bodyStatements=[],this._debugEnabled=this._view.genConfig.genDebugInfo}return a.prototype._updateDebugContextIfNeeded=function(){if(this._newState.nodeIndex!==this._currState.nodeIndex||this._newState.sourceAst!==this._currState.sourceAst){var a=this._updateDebugContext(this._newState);d(a)&&this._bodyStatements.push(a.toStmt())}},a.prototype._updateDebugContext=function(a){if(this._currState=this._newState=a,this._debugEnabled){var b=d(a.sourceAst)?a.sourceAst.sourceSpan.start:null;return dl.callMethod("debug",[mb(a.nodeIndex),d(b)?mb(b.line):fl,d(b)?mb(b.col):fl])}return null},a.prototype.resetDebugInfoExpr=function(a,b){var c=this._updateDebugContext(new Hm(a,b));return c||fl},a.prototype.resetDebugInfo=function(a,b){this._newState=new Hm(a,b)},a.prototype.push=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];this.addStmts(a)},a.prototype.addStmt=function(a){this._updateDebugContextIfNeeded(),this._bodyStatements.push(a)},a.prototype.addStmts=function(a){this._updateDebugContextIfNeeded(),(b=this._bodyStatements).push.apply(b,a);var b},a.prototype.finish=function(){return this._bodyStatements},a.prototype.isEmpty=function(){return 0===this._bodyStatements.length},a}(),Km=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Lm=function(a){function b(b,c){a.call(this),this._viewExpr=b,this._view=c}return Km(b,a),b.prototype._isThis=function(a){return a instanceof Lk&&a.builtin===Ik.This},b.prototype.visitReadVarExpr=function(a,b){return this._isThis(a)?this._viewExpr:a},b.prototype.visitReadPropExpr=function(b,c){return this._isThis(b.receiver)&&(this._view.fields.some(function(a){return a.name==b.name})||this._view.getters.some(function(a){return a.name==b.name}))?this._viewExpr.cast(this._view.classType).prop(b.name):a.prototype.visitReadPropExpr.call(this,b,c)},b}(ul),Mm=function(){function a(a,b){this.view=a,this.values=b}return a}(),Nm=function(){function a(a,b,c,d){this.meta=a,this.queryList=b,this.ownerDirectiveExpression=c,this.view=d,this._values=new Mm(d,[])}return a.prototype.addValue=function(a,b){for(var c=b,e=[];d(c)&&c!==this.view;){var f=c.declarationElement;e.unshift(f),c=f.view}var g=jc(this.queryList,b,this.view),h=this._values;e.forEach(function(a){var b=h.values.length>0?h.values[h.values.length-1]:null;if(b instanceof Mm&&b.view===a.embeddedView)h=b;else{var c=new Mm(a.embeddedView,[]);h.values.push(c),h=c}}),h.values.push(a),e.length>0&&b.dirtyParentQueriesMethod.addStmt(g.callMethod("setDirty",[]).toStmt())},a.prototype._isStatic=function(){return!this._values.values.some(function(a){return a instanceof Mm})},a.prototype.afterChildren=function(a,b){var c=nc(this._values),e=[this.queryList.callMethod("reset",[ib(c)]).toStmt()];if(d(this.ownerDirectiveExpression)){var f=this.meta.first?this.queryList.prop("first"):this.queryList;e.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(f).toStmt())}this.meta.first||e.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt()),this.meta.first&&this._isStatic()?a.addStmts(e):b.addStmt(new rl(this.queryList.prop("dirty"),e))},a}(),Om=function(){function a(){}return a.fromValue=function(a){return Ib(gj.ViewType,a)},a}(),Pm=function(){function a(){}return a.fromValue=function(a){return Ib(gj.ViewEncapsulation,a)},a}(),Qm=function(){function a(){}return a.fromValue=function(a){return Ib(gj.ChangeDetectorStatus,a)},a}(),Rm=function(){function a(){}return a.viewUtils=fb("viewUtils"),a.parentInjector=fb("parentInjector"),a.declarationEl=fb("declarationEl"),a}(),Sm=function(){function a(){}return a.renderer=dl.prop("renderer"),a.projectableNodes=dl.prop("projectableNodes"),a.viewUtils=dl.prop("viewUtils"),a}(),Tm=function(){function a(){}return a.token=fb("token"),a.requestNodeIndex=fb("requestNodeIndex"),a.notFoundResult=fb("notFoundResult"),a}(),Um=function(){function a(){}return a.throwOnChange=fb("throwOnChange"),a.changes=fb("changes"),a.changed=fb("changed"),a}(),Vm=function(){function a(a,b){this.comp=a,this.placeholder=b}return a}(),Wm=function(){function a(a,b){this.comp=a,this.placeholder=b}return a}(),Xm=function(){function a(a,b){this.dir=a,this.placeholder=b}return a}(),Ym=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Zm=function(){function a(a,b,c,d,e){this.parent=a,this.view=b,this.nodeIndex=c,this.renderNode=d,this.sourceAst=e}return a.prototype.isNull=function(){return!this.renderNode},a.prototype.isRootElement=function(){return this.view!=this.parent.view},a}(),$m=function(b){function c(a,c,e,f,g,h,i,j,k,l,m,n){var o=this;b.call(this,a,c,e,f,g),this.component=h,this._directives=i,this._resolvedProvidersArray=j,this.hasViewContainer=k,this.hasEmbeddedView=l,this._targetDependencies=n,this._compViewExpr=null,this.instances=new Map,this.directiveWrapperInstance=new Map,this._queryCount=0,this._queries=new Map,this._componentConstructorViewQueryLists=[],this.contentNodesByNgContentIndex=null,this.referenceTokens={},m.forEach(function(a){return o.referenceTokens[a.name]=a.value}),this.elementRef=gb(Ga(gj.ElementRef)).instantiate([this.renderNode]),this.instances.set(Ia(gj.ElementRef).reference,this.elementRef),this.injector=dl.callMethod("injector",[mb(this.nodeIndex)]),this.instances.set(Ia(gj.Injector).reference,this.injector),this.instances.set(Ia(gj.Renderer).reference,dl.prop("renderer")),(this.hasViewContainer||this.hasEmbeddedView||d(this.component))&&this._createAppElement(),this.component&&this._createComponentFactoryResolver()}return Ym(c,b),c.createNull=function(){return new c(null,null,null,null,null,null,[],[],!1,!1,[],[])},c.prototype._createAppElement=function(){var a="_appEl_"+this.nodeIndex,b=this.isRootElement()?null:this.parent.nodeIndex;this.view.fields.push(new nl(a,hb(Ga(gj.AppElement)),[Pk.Private]));var c=dl.prop(a).set(gb(Ga(gj.AppElement)).instantiate([mb(this.nodeIndex),mb(b),dl,this.renderNode])).toStmt();this.view.createMethod.addStmt(c),this.appElement=dl.prop(a),this.instances.set(Ia(gj.AppElement).reference,this.appElement)},c.prototype._createComponentFactoryResolver=function(){var b=this,c=this.component.entryComponents.map(function(a){var c=new Ne({name:a.name});return b._targetDependencies.push(new Wm(a,c)),c});if(c&&0!==c.length){var d=gb(Ga(gj.CodegenComponentFactoryResolver)).instantiate([ib(c.map(function(a){return gb(a)})),kc(Ia(gj.ComponentFactoryResolver),!1)]),e=new Pe({token:Ia(gj.ComponentFactoryResolver),useValue:d});this._resolvedProvidersArray.unshift(new ee(e.token,!1,!0,[e],a.ProviderAstType.PrivateService,[],this.sourceAst.sourceSpan))}},c.prototype.setComponentView=function(a){this._compViewExpr=a,this.contentNodesByNgContentIndex=new Array(this.component.template.ngContentSelectors.length);for(var b=0;b<this.contentNodesByNgContentIndex.length;b++)this.contentNodesByNgContentIndex[b]=[]},c.prototype.setEmbeddedView=function(b){if(this.embeddedView=b,d(b)){var c=gb(Ga(gj.TemplateRef_)).instantiate([this.appElement,this.embeddedView.viewFactory]),e=new Pe({token:Ia(gj.TemplateRef),useValue:c});this._resolvedProvidersArray.unshift(new ee(e.token,!1,!0,[e],a.ProviderAstType.Builtin,[],this.sourceAst.sourceSpan))}},c.prototype.beforeChildren=function(){var b=this;this.hasViewContainer&&this.instances.set(Ia(gj.ViewContainerRef).reference,this.appElement.prop("vcRef")),this._resolvedProviders=new Map,this._resolvedProvidersArray.forEach(function(a){return b._resolvedProviders.set(a.token.reference,a)}),ke.values(this._resolvedProviders).forEach(function(c){var e=c.providerType===a.ProviderAstType.Component||c.providerType===a.ProviderAstType.Directive,f=c.providers.map(function(a){if(d(a.useExisting))return b._getDependency(c.providerType,new Oe({token:a.useExisting}));if(d(a.useFactory)){var f=a.deps||a.useFactory.diDeps,g=f.map(function(a){return b._getDependency(c.providerType,a)});return gb(a.useFactory).callFn(g)}if(d(a.useClass)){var f=a.deps||a.useClass.diDeps,g=f.map(function(a){return b._getDependency(c.providerType,a)});if(e){var h=new Ne({name:Dm.dirWrapperClassName(a.useClass)});return b._targetDependencies.push(new Xm(a.useClass,h)),gb(h).instantiate(g,hb(h))}return gb(a.useClass).instantiate(g,hb(a.useClass))}return ic(a.useValue)}),g="_"+c.token.name+"_"+b.nodeIndex+"_"+b.instances.size,h=sc(g,c,f,c.multiProvider,c.eager,b);e?(b.directiveWrapperInstance.set(c.token.reference,h),b.instances.set(c.token.reference,h.prop("context"))):b.instances.set(c.token.reference,h)});for(var c=0;c<this._directives.length;c++){var e=this._directives[c],f=this.instances.get(Ha(e.type).reference);e.queries.forEach(function(a){b._addQuery(a,f)})}var g=[];if(ke.values(this._resolvedProviders).forEach(function(a){var c=b._getQueriesFor(a.token);g.push.apply(g,c.map(function(b){return new _m(b,a.token)}))}),Object.keys(this.referenceTokens).forEach(function(a){var c,e=b.referenceTokens[a];c=d(e)?b.instances.get(e.reference):b.renderNode,b.view.locals.set(a,c);var f=new Re({value:a});g.push.apply(g,b._getQueriesFor(f).map(function(a){return new _m(a,f)}))}),g.forEach(function(a){var c;if(d(a.read.identifier))c=b.instances.get(a.read.reference);else{var e=b.referenceTokens[a.read.value];c=d(e)?b.instances.get(e.reference):b.elementRef}d(c)&&a.query.addValue(c,b.view)}),d(this.component)){var h=d(this.component)?ib(this._componentConstructorViewQueryLists):fl,i=d(this.getComponent())?this.getComponent():fl;this.view.createMethod.addStmt(this.appElement.callMethod("initComponent",[i,h,this._compViewExpr]).toStmt())}},c.prototype.afterChildren=function(b){var c=this;ke.values(this._resolvedProviders).forEach(function(d){var e=c.instances.get(d.token.reference),f=d.providerType===a.ProviderAstType.PrivateService?0:b;c.view.injectorGetMethod.addStmt(rc(c.nodeIndex,f,d,e))}),ke.values(this._queries).forEach(function(a){return a.forEach(function(a){return a.afterChildren(c.view.createMethod,c.view.updateContentQueriesMethod)})})},c.prototype.addContentNode=function(a,b){this.contentNodesByNgContentIndex[a].push(b)},c.prototype.getComponent=function(){return d(this.component)?this.instances.get(Ha(this.component.type).reference):null},c.prototype.getProviderTokens=function(){return ke.values(this._resolvedProviders).map(function(a){return Fb(a.token)})},c.prototype._getQueriesFor=function(a){for(var b,c=[],e=this,f=0;!e.isNull();)b=e._queries.get(a.reference),d(b)&&c.push.apply(c,b.filter(function(a){return a.meta.descendants||f<=1})),e._directives.length>0&&f++,e=e.parent;return b=this.view.componentView.viewQueries.get(a.reference),d(b)&&c.push.apply(c,b),c},c.prototype._addQuery=function(a,b){var c="_query_"+a.selectors[0].name+"_"+this.nodeIndex+"_"+this._queryCount++,d=pc(a,b,c,this.view),e=new Nm(a,d,b,this.view);return qc(this._queries,e),e},c.prototype._getLocalDependency=function(b,c){var e=null;if(!e&&d(c.query)&&(e=this._addQuery(c.query,null).queryList),!e&&d(c.viewQuery)&&(e=pc(c.viewQuery,null,"_viewQuery_"+c.viewQuery.selectors[0].name+"_"+this.nodeIndex+"_"+this._componentConstructorViewQueryLists.length,this.view),this._componentConstructorViewQueryLists.push(e)),d(c.token)){if(!e&&c.token.reference===Ia(gj.ChangeDetectorRef).reference)return b===a.ProviderAstType.Component?this._compViewExpr.prop("ref"):jc(dl.prop("ref"),this.view,this.view.componentView);if(!e){var f=this._resolvedProviders.get(c.token.reference);if(f&&(b===a.ProviderAstType.Directive||b===a.ProviderAstType.PublicService)&&f.providerType===a.ProviderAstType.PrivateService)return null;e=this.instances.get(c.token.reference)}}return e},c.prototype._getDependency=function(b,c){var d=this,e=null;for(c.isValue&&(e=mb(c.value)),e||c.isSkipSelf||(e=this._getLocalDependency(b,c));!e&&!d.parent.isNull();)d=d.parent,e=d._getLocalDependency(a.ProviderAstType.PublicService,new Oe({token:c.token}));return e||(e=kc(c.token,c.isOptional)),e||(e=fl),jc(e,this.view,d.view)},c}(Zm),_m=function(){function a(a,b){this.query=a,this.read=a.meta.read||b}return a}(),an=function(){function a(a,b){var c=this;this.view=a,this.meta=b,this._purePipeProxyCount=0,this.instance=dl.prop("_pipe_"+b.name+"_"+a.pipeCount++);var d=this.meta.type.diDeps.map(function(a){return a.token.reference===Ia(gj.ChangeDetectorRef).reference?jc(dl.prop("ref"),c.view,c.view.componentView):kc(a.token,!1)});this.view.fields.push(new nl(this.instance.name,hb(this.meta.type))),this.view.createMethod.resetDebugInfo(null,null),this.view.createMethod.addStmt(dl.prop(this.instance.name).set(gb(this.meta.type).instantiate(d)).toStmt())}return a.call=function(b,c,d){var e,f=b.componentView,g=tc(f,c);return g.pure?(e=f.purePipes.get(c),e||(e=new a(f,g),f.purePipes.set(c,e),f.pipes.push(e))):(e=new a(b,g),b.pipes.push(e)),e._call(b,d)},Object.defineProperty(a.prototype,"pure",{get:function(){return this.meta.pure},enumerable:!0,configurable:!0}),a.prototype._call=function(a,b){if(this.meta.pure){var c=dl.prop(this.instance.name+"_"+this._purePipeProxyCount++),d=jc(this.instance,a,this.view);return Hb(d.prop("transform").callMethod(Kk.Bind,[d]),b.length,c,{fields:a.fields,ctorStmts:a.createMethod}),gb(Ga(gj.castByValue)).callFn([c,d.prop("transform")]).callFn(b)}return jc(this.instance,a,this.view).callMethod("transform",b)},a}(),bn=function(){function a(a,b,c,e,f,g,h,i){var j=this;this.component=a,this.genConfig=b,this.pipeMetas=c,this.styles=e,this.animations=f,this.viewIndex=g,this.declarationElement=h,this.templateVariableBindings=i,this.nodes=[],this.rootNodesOrAppElements=[],this.methods=[],this.ctorStmts=[],this.fields=[],this.getters=[],this.disposables=[],this.subscriptions=[],this.purePipes=new Map,this.pipes=[],this.locals=new Map,this.literalArrayCount=0,this.literalMapCount=0,this.pipeCount=0,this.createMethod=new Jm(this),this.animationBindingsMethod=new Jm(this),this.injectorGetMethod=new Jm(this),this.updateContentQueriesMethod=new Jm(this),this.dirtyParentQueriesMethod=new Jm(this),this.updateViewQueriesMethod=new Jm(this),this.detectChangesInInputsMethod=new Jm(this),this.detectChangesRenderPropertiesMethod=new Jm(this),this.afterContentLifecycleCallbacksMethod=new Jm(this),this.afterViewLifecycleCallbacksMethod=new Jm(this),this.destroyMethod=new Jm(this),this.detachMethod=new Jm(this),this.viewType=uc(a,g),this.className="_View_"+a.type.name+g,this.classType=hb(new Ne({name:this.className})),this.viewFactory=fb(lc(a,g)),this.viewType===Ci.COMPONENT||this.viewType===Ci.HOST?this.componentView=this:this.componentView=this.declarationElement.view.componentView,this.componentContext=jc(dl.prop("context"),this,this.componentView);var k=new Map;if(this.viewType===Ci.COMPONENT){var l=dl.prop("context");this.component.viewQueries.forEach(function(a,b){var c="_viewQuery_"+a.selectors[0].name+"_"+b,d=pc(a,l,c,j),e=new Nm(a,d,l,j);qc(k,e)});var m=0;this.component.type.diDeps.forEach(function(a){if(d(a.viewQuery)){var b=dl.prop("declarationAppElement").prop("componentConstructorViewQueries").key(mb(m++)),c=new Nm(a.viewQuery,b,null,j);qc(k,c)}})}this.viewQueries=k,i.forEach(function(a){j.locals.set(a[1],dl.prop("context").prop(a[0]))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return a.prototype.callPipe=function(a,b,c){return an.call(this,a,[b].concat(c))},a.prototype.getLocal=function(a){if(a==nm.event.name)return nm.event;for(var b=this,c=b.locals.get(a);!c&&d(b.declarationElement.view);)b=b.declarationElement.view,c=b.locals.get(a);return d(c)?jc(c,this,b):null},a.prototype.afterNodes=function(){var a=this;ke.values(this.viewQueries).forEach(function(b){return b.forEach(function(b){return b.afterChildren(a.createMethod,a.updateViewQueriesMethod)})})},a}(),cn=function(){function a(a,b,c,d,e){this.compileElement=a,this.eventTarget=b,this.eventName=c,this.eventPhase=d,this._hasComponentHostListener=!1,this._actionResultExprs=[],this._method=new Jm(a.view),this._methodName="_handle_"+yc(c)+"_"+a.nodeIndex+"_"+e,this._eventParam=new Yk(nm.event.name,hb(this.compileElement.view.genConfig.renderTypes.renderEvent))}return a.getOrCreate=function(b,c,d,e,f){var g=f.find(function(a){return a.eventTarget==c&&a.eventName==d&&a.eventPhase==e});return g||(g=new a(b,c,d,e,f.length),f.push(g)),g},Object.defineProperty(a.prototype,"methodName",{get:function(){return this._methodName},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isAnimation",{get:function(){return!!this.eventPhase},enumerable:!0,configurable:!0}),a.prototype.addAction=function(a,b,c){d(b)&&b.isComponent&&(this._hasComponentHostListener=!0),this._method.resetDebugInfo(this.compileElement.nodeIndex,a);var e=c||this.compileElement.view.componentContext,f=this.compileElement.view,g=Nb(f,b?null:f,e,a.handler,this.compileElement.nodeIndex+"_"+this._actionResultExprs.length);g.preventDefault&&this._actionResultExprs.push(g.preventDefault),this._method.addStmts(g.stmts)},a.prototype.finishMethod=function(){var a=this._hasComponentHostListener?this.compileElement.appElement.prop("componentView"):dl,b=mb(!0);this._actionResultExprs.forEach(function(a){b=b.and(a)});var c=[a.callMethod("markPathToRootAsCheckOnce",[]).toStmt()].concat(this._method.finish()).concat([new ll(b)]);this.compileElement.view.methods.push(new ol(this._methodName,[this._eventParam],c,Ek,[Pk.Private]))},a.prototype.listenToRenderer=function(){var a,b=dl.callMethod("eventHandler",[dl.prop(this._methodName).callMethod(Kk.Bind,[dl])]);a=d(this.eventTarget)?Sm.renderer.callMethod("listenGlobal",[mb(this.eventTarget),mb(this.eventName),b]):Sm.renderer.callMethod("listen",[this.compileElement.renderNode,mb(this.eventName),b]);var c=fb("disposable_"+this.compileElement.view.disposables.length);this.compileElement.view.disposables.push(c),this.compileElement.view.createMethod.addStmt(c.set(a).toDeclStmt(Hk,[Pk.Private]))},a.prototype.listenToAnimation=function(a){var b="start"==this.eventPhase?"onStart":"onDone";return a.callMethod(b,[dl.prop(this.methodName).callMethod(Kk.Bind,[dl])]).toStmt()},a.prototype.listenToDirective=function(a,b){var c=fb("subscription_"+this.compileElement.view.subscriptions.length);this.compileElement.view.subscriptions.push(c);var d=dl.callMethod("eventHandler",[dl.prop(this._methodName).callMethod(Kk.Bind,[dl])]);this.compileElement.view.createMethod.addStmt(c.set(a.prop(b).callMethod(Kk.SubscribeObservable,[d])).toDeclStmt(null,[Pk.Final]))},a}(),dn=dl.prop("numberOfChecks").identical(new Tk(0)),en=(kb(Um.throwOnChange),function(){function a(a,b){this.view=a,this._schemaRegistry=b,this._nodeIndex=0}return a.prototype.visitBoundText=function(a,b){var c=this.view.nodes[this._nodeIndex++];return Dc(a,c,this.view),null},a.prototype.visitText=function(a,b){return this._nodeIndex++,null},a.prototype.visitNgContent=function(a,b){return null},a.prototype.visitElement=function(a,b){var d=this,e=this.view.nodes[this._nodeIndex++],f=[];return vc(a.outputs,a.directives,e).forEach(function(a){f.push(a)}),Fc(a.inputs,e,f),xc(f),a.directives.forEach(function(b,c){var g=e.instances.get(b.directive.type.reference),h=e.directiveWrapperInstance.get(b.directive.type.reference);Hc(b,h,c,e),Gc(b,h,e,f,a.name,d._schemaRegistry),wc(b,g,f)}),c(this,a.children,e),a.directives.forEach(function(a){var b=e.instances.get(a.directive.type.reference);zc(a.directive,b,e),Ac(a.directive,b,e)}),a.providers.forEach(function(a){var b=e.instances.get(a.token.reference);Bc(a,b,e)}),null},a.prototype.visitEmbeddedTemplate=function(a,b){var c=this.view.nodes[this._nodeIndex++],d=vc(a.outputs,a.directives,c);return a.directives.forEach(function(a,b){var e=c.instances.get(a.directive.type.reference),f=c.directiveWrapperInstance.get(a.directive.type.reference);Hc(a,f,b,c),wc(a,e,d),zc(a.directive,e,c),Ac(a.directive,e,c)}),a.providers.forEach(function(a){var b=c.instances.get(a.token.reference);Bc(a,b,c)}),Ic(c.embeddedView,a.children,this._schemaRegistry),null},a.prototype.visitAttr=function(a,b){return null},a.prototype.visitDirective=function(a,b){return null},a.prototype.visitEvent=function(a,b){return null},a.prototype.visitReference=function(a,b){return null},a.prototype.visitVariable=function(a,b){return null},a.prototype.visitDirectiveProperty=function(a,b){return null},a.prototype.visitElementProperty=function(a,b){return null},a}()),fn="$implicit",gn="class",hn="style",jn="ng-container",kn=fb("parentRenderNode"),ln=fb("rootSelector"),mn=function(){function a(a,b){this.view=a,this.targetDependencies=b,this.nestedViewCount=0}return a.prototype._isRootNode=function(a){return a.view!==this.view},a.prototype._addRootNodeAndProject=function(a){var b=Lc(a),c=b.parent,e=b.sourceAst.ngContentIndex,f=a instanceof $m&&a.hasViewContainer?a.appElement:null;this._isRootNode(c)?this.view.viewType!==Ci.COMPONENT&&this.view.rootNodesOrAppElements.push(f||a.renderNode):d(c.component)&&d(e)&&c.addContentNode(e,f||a.renderNode)},a.prototype._getParentRenderNode=function(a){return a=Mc(a),this._isRootNode(a)?this.view.viewType===Ci.COMPONENT?kn:fl:d(a.component)&&a.component.template.encapsulation!==b.ViewEncapsulation.Native?fl:a.renderNode},a.prototype.visitBoundText=function(a,b){return this._visitText(a,"",b)},a.prototype.visitText=function(a,b){return this._visitText(a,a.value,b)},a.prototype._visitText=function(a,b,c){var d="_text_"+this.view.nodes.length;this.view.fields.push(new nl(d,hb(this.view.genConfig.renderTypes.renderText)));var e=dl.prop(d),f=new Zm(c,this.view,this.view.nodes.length,e,a),g=dl.prop(d).set(Sm.renderer.callMethod("createText",[this._getParentRenderNode(c),mb(b),this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length,a)])).toStmt();return this.view.nodes.push(f),this.view.createMethod.addStmt(g),this._addRootNodeAndProject(f),e},a.prototype.visitNgContent=function(a,b){this.view.createMethod.resetDebugInfo(null,a);var c=this._getParentRenderNode(b),e=Sm.projectableNodes.key(mb(a.index),new Bk(hb(this.view.genConfig.renderTypes.renderNode)));return c!==fl?this.view.createMethod.addStmt(Sm.renderer.callMethod("projectNodes",[c,gb(Ga(gj.flattenNestedViewRenderNodes)).callFn([e])]).toStmt()):this._isRootNode(b)?this.view.viewType!==Ci.COMPONENT&&this.view.rootNodesOrAppElements.push(e):d(b.component)&&d(a.ngContentIndex)&&b.addContentNode(a.ngContentIndex,e),null},a.prototype.visitElement=function(a,b){var e,f=this.view.nodes.length,g=this.view.createMethod.resetDebugInfoExpr(f,a),h=a.directives.map(function(a){return a.directive}),i=h.find(function(a){return a.isComponent});if(a.name===jn)e=Sm.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(b),g]);else{var j=Pc(a.attrs),k=Gb(Oc(j,h).map(function(a){return mb(a)}));e=0===f&&this.view.viewType===Ci.HOST?gb(Ga(gj.selectOrCreateRenderHostElement)).callFn([Sm.renderer,mb(a.name),k,ln,g]):gb(Ga(gj.createRenderElement)).callFn([Sm.renderer,this._getParentRenderNode(b),mb(a.name),k,g])}var l="_el_"+f;this.view.fields.push(new nl(l,hb(this.view.genConfig.renderTypes.renderElement))),this.view.createMethod.addStmt(dl.prop(l).set(e).toStmt());var m=dl.prop(l),n=new $m(b,this.view,f,m,a,i,h,a.providers,a.hasViewContainer,!1,a.references,this.targetDependencies);this.view.nodes.push(n);var o=null;if(d(i)){var p=new Ne({name:lc(i,0)});this.targetDependencies.push(new Vm(i.type,p)),o=fb("compView_"+f),n.setComponentView(o),this.view.createMethod.addStmt(o.set(gb(p).callFn([Sm.viewUtils,n.injector,n.appElement])).toDeclStmt())}if(n.beforeChildren(),this._addRootNodeAndProject(n),c(this,a.children,n),n.afterChildren(this.view.nodes.length-f-1),d(o)){var q;q=this.view.component.type.isHost?Sm.projectableNodes:ib(n.contentNodesByNgContentIndex.map(function(a){return mc(a)})),this.view.createMethod.addStmt(o.callMethod("create",[n.getComponent(),q,fl]).toStmt())}return null},a.prototype.visitEmbeddedTemplate=function(a,b){var c=this.view.nodes.length,d="_anchor_"+c;this.view.fields.push(new nl(d,hb(this.view.genConfig.renderTypes.renderComment))),this.view.createMethod.addStmt(dl.prop(d).set(Sm.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(b),this.view.createMethod.resetDebugInfoExpr(c,a)])).toStmt());var e=dl.prop(d),f=a.variables.map(function(a){return[a.value.length>0?a.value:fn,a.name]}),g=a.directives.map(function(a){return a.directive}),h=new $m(b,this.view,c,e,a,null,g,a.providers,a.hasViewContainer,!0,a.references,this.targetDependencies);this.view.nodes.push(h),this.nestedViewCount++;var i=new bn(this.view.component,this.view.genConfig,this.view.pipeMetas,fl,this.view.animations,this.view.viewIndex+this.nestedViewCount,h,f);return this.nestedViewCount+=Jc(i,a.children,this.targetDependencies),h.beforeChildren(),this._addRootNodeAndProject(h),h.afterChildren(0),null},a.prototype.visitAttr=function(a,b){return null},a.prototype.visitDirective=function(a,b){return null},a.prototype.visitEvent=function(a,b){return null},a.prototype.visitReference=function(a,b){return null},a.prototype.visitVariable=function(a,b){return null},a.prototype.visitDirectiveProperty=function(a,b){return null},a.prototype.visitElementProperty=function(a,b){return null},a}(),nn=function(){function a(a,b,c){this.statements=a,this.viewFactoryVar=b,this.dependencies=c}return a}(),on=function(){function a(a,b){this._genConfig=a,this._schemaRegistry=b}return a.prototype.compileComponent=function(a,b,c,d,e){var f=[],g=new bn(a,this._genConfig,d,c,e,0,$m.createNull(),[]),h=[];return Jc(g,b,f),Ic(g,b,this._schemaRegistry),Kc(g,h),new nn(h,g.viewFactory.name,f)},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:sk},{type:tj}],a}(),pn=function(){function a(a,b,c){this.fileUrl=a,this.moduleUrl=b,this.source=c}return a}(),qn=function(){function a(a,b,c,d,e,f,g,h,i,j){this._metadataResolver=a,this._directiveNormalizer=b,this._templateParser=c,this._styleCompiler=d,this._viewCompiler=e,this._dirWrapperCompiler=f,this._ngModuleCompiler=g,this._outputEmitter=h,this._localeId=i,this._translationFormat=j,this._animationParser=new jm,this._animationCompiler=new Ml}return a.prototype.clearCache=function(){this._directiveNormalizer.clearCache(),this._metadataResolver.clearCache()},a.prototype.compileModules=function(a,b){var c=this,d=$c(a,b,this._metadataResolver),e=d.ngModuleByPipeOrDirective,f=d.files,g=f.map(function(a){return c._compileSrcFile(a.srcUrl,e,a.directives,a.ngModules)});return Promise.all(g).then(function(a){return me.flatten(a)})},a.prototype._compileSrcFile=function(a,b,c,d){var e=this,f=fd(a)[1],g=[],h=[],i=[];return h.push.apply(h,d.map(function(a){return e._compileModule(a,g)})),h.push.apply(h,c.map(function(a){return e._compileDirectiveWrapper(a,g)})),Promise.all(c.map(function(c){var d=e._metadataResolver.getDirectiveMetadata(c);if(!d.isComponent)return Promise.resolve(null);var j=b.get(c);if(!j)throw new Error("Internal Error: cannot determine the module for component "+d.type.name+"!");return Promise.all([d].concat(j.transitiveModule.directives).map(function(a){
  return e._directiveNormalizer.normalizeDirective(a).asyncResult})).then(function(b){var c=b[0],d=b.slice(1);ed(c);var k=e._styleCompiler.compileComponent(c);k.externalStylesheets.forEach(function(b){i.push(e._codgenStyles(a,b,f))}),h.push(e._compileComponentFactory(c,f,g),e._compileComponent(c,d,j.transitiveModule.pipes,j.schemas,k.componentStylesheet,f,g))})})).then(function(){if(g.length>0){var b=e._codegenSourceModule(a,bd(a),g,h);i.unshift(b)}return i})},a.prototype._compileModule=function(a,b){var c=this._metadataResolver.getNgModuleMetadata(a),d=[];this._localeId&&d.push(new Pe({token:Ia(gj.LOCALE_ID),useValue:this._localeId})),this._translationFormat&&d.push(new Pe({token:Ia(gj.TRANSLATIONS_FORMAT),useValue:this._translationFormat}));var e=this._ngModuleCompiler.compile(c,d);return e.dependencies.forEach(function(a){a.placeholder.name=cd(a.comp),a.placeholder.moduleUrl=bd(a.comp.moduleUrl)}),b.push.apply(b,e.statements),e.ngModuleFactoryVar},a.prototype._compileDirectiveWrapper=function(a,b){var c=this._metadataResolver.getDirectiveMetadata(a),d=this._dirWrapperCompiler.compile(c);return b.push.apply(b,d.statements),d.dirWrapperClassVar},a.prototype._compileComponentFactory=function(a,b,c){var d=v(a),e=this._compileComponent(d,[a],[],[],null,b,c),f=cd(a.type);return c.push(fb(f).set(gb(Ga(gj.ComponentFactory),[hb(a.type)]).instantiate([mb(a.selector),fb(e),gb(a.type)],hb(Ga(gj.ComponentFactory),[hb(a.type)],[Rj.Const]))).toDeclStmt(null,[Pk.Final])),f},a.prototype._compileComponent=function(a,b,c,d,e,f,g){var h=this._animationParser.parseComponent(a),i=this._templateParser.parse(a,a.template.template,b,c,d,a.type.name),j=e?fb(e.stylesVar):ib([]),k=this._animationCompiler.compile(a.type.name,h),l=this._viewCompiler.compileComponent(a,i,j,c,k);return e&&g.push.apply(g,ad(e,f)),k.forEach(function(a){a.statements.forEach(function(a){g.push(a)})}),g.push.apply(g,_c(l)),l.viewFactoryVar},a.prototype._codgenStyles=function(a,b,c){return ad(b,c),this._codegenSourceModule(a,dd(b.meta.moduleUrl,b.isShimmed,c),b.statements,[b.stylesVar])},a.prototype._codegenSourceModule=function(a,b,c,d){return new pn(a,b,this._outputEmitter.emitStatements(b,c,d))},a}(),rn=function(){function a(){}return a.prototype.get=function(a){return null},a}(),sn="asset:",tn={provide:b.PACKAGE_ROOT_URL,useValue:"/"},un=function(){function a(a){void 0===a&&(a=null),this._packagePrefix=a}return a.prototype.resolve=function(a,b){var c=b;d(a)&&a.length>0&&(c=od(a,c));var e=ld(c),f=this._packagePrefix;if(d(f)&&d(e)&&"package"==e[qm.Scheme]){var g=e[qm.Path];if(this._packagePrefix!==sn)return f=f.replace(/\/+$/,""),g=g.replace(/^\/+/,""),f+"/"+g;var h=g.split(/\//);c="asset:"+h[0]+"/lib/"+h.slice(1).join("/")}return c},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:void 0,decorators:[{type:b.Inject,args:[b.PACKAGE_ROOT_URL]}]}],a}(),vn=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");!function(a){a[a.Scheme=1]="Scheme",a[a.UserInfo=2]="UserInfo",a[a.Domain=3]="Domain",a[a.Port=4]="Port",a[a.Path=5]="Path",a[a.QueryData=6]="QueryData",a[a.Fragment=7]="Fragment"}(qm||(qm={}));var wn=function(){function a(a,b,c,d){this._resourceLoader=a,this._urlResolver=b,this._htmlParser=c,this._config=d,this._resourceLoaderCache=new Map}return a.prototype.clearCache=function(){this._resourceLoaderCache.clear()},a.prototype.clearCacheFor=function(a){var b=this;a.isComponent&&(this._resourceLoaderCache.delete(a.template.templateUrl),a.template.externalStylesheets.forEach(function(a){b._resourceLoaderCache.delete(a.moduleUrl)}))},a.prototype._fetch=function(a){var b=this._resourceLoaderCache.get(a);return b||(b=this._resourceLoader.get(a),this._resourceLoaderCache.set(a,b)),b},a.prototype.normalizeDirective=function(a){var b=this;if(!a.isComponent)return new ye(a,Promise.resolve(a));var c,e=null;if(d(a.template.template))e=this.normalizeTemplateSync(a.type,a.template),c=Promise.resolve(e);else{if(!a.template.templateUrl)throw new Error("No template specified for component "+a.type.name);c=this.normalizeTemplateAsync(a.type,a.template)}if(e&&0===e.styleUrls.length){var f=pd(a,e);return new ye(f,Promise.resolve(f))}return new ye(null,c.then(function(a){return b.normalizeExternalStylesheets(a)}).then(function(b){return pd(a,b)}))},a.prototype.normalizeTemplateSync=function(a,b){return this.normalizeLoadedTemplate(a,b,b.template,a.moduleUrl)},a.prototype.normalizeTemplateAsync=function(a,b){var c=this,d=this._urlResolver.resolve(a.moduleUrl,b.templateUrl);return this._fetch(d).then(function(e){return c.normalizeLoadedTemplate(a,b,e,d)})},a.prototype.normalizeLoadedTemplate=function(a,c,d,f){var g=cg.fromArray(c.interpolation),h=this._htmlParser.parse(d,a.name,!1,g);if(h.errors.length>0){var i=h.errors.join("\n");throw new Error("Template parse errors:\n"+i)}var j=this.normalizeStylesheet(new Ue({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:a.moduleUrl})),k=new xn;U(k,h.rootNodes);var l=this.normalizeStylesheet(new Ue({styles:k.styles,styleUrls:k.styleUrls,moduleUrl:f})),m=c.encapsulation;e(m)&&(m=this._config.defaultEncapsulation);var n=j.styles.concat(l.styles),o=j.styleUrls.concat(l.styleUrls);return m===b.ViewEncapsulation.Emulated&&0===n.length&&0===o.length&&(m=b.ViewEncapsulation.None),new Ve({encapsulation:m,template:d,templateUrl:f,styles:n,styleUrls:o,externalStylesheets:c.externalStylesheets,ngContentSelectors:k.ngContentSelectors,animations:c.animations,interpolation:c.interpolation})},a.prototype.normalizeExternalStylesheets=function(a){return this._loadMissingExternalStylesheets(a.styleUrls).then(function(b){return new Ve({encapsulation:a.encapsulation,template:a.template,templateUrl:a.templateUrl,styles:a.styles,styleUrls:a.styleUrls,externalStylesheets:b,ngContentSelectors:a.ngContentSelectors,animations:a.animations,interpolation:a.interpolation})})},a.prototype._loadMissingExternalStylesheets=function(a,b){var c=this;return void 0===b&&(b=new Map),Promise.all(a.filter(function(a){return!b.has(a)}).map(function(a){return c._fetch(a).then(function(d){var e=c.normalizeStylesheet(new Ue({styles:[d],moduleUrl:a}));return b.set(a,e),c._loadMissingExternalStylesheets(e.styleUrls,b)})})).then(function(a){return ke.values(b)})},a.prototype.normalizeStylesheet=function(a){var b=this,c=a.styleUrls.filter(Va).map(function(c){return b._urlResolver.resolve(a.moduleUrl,c)}),d=a.styles.map(function(d){var e=Wa(b._urlResolver,a.moduleUrl,d);return c.push.apply(c,e.styleUrls),e.style});return new Ue({styles:d,styleUrls:c,moduleUrl:a.moduleUrl})},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:rn},{type:un},{type:ij},{type:sk}],a}(),xn=function(){function a(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return a.prototype.visitElement=function(a,b){var c=Za(a);switch(c.type){case Dj.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(c.selectAttr);break;case Dj.STYLE:var d="";a.children.forEach(function(a){a instanceof Ug&&(d+=a.value)}),this.styles.push(d);break;case Dj.STYLESHEET:this.styleUrls.push(c.hrefAttr)}return c.nonBindable&&this.ngNonBindableStackCount++,U(this,a.children),c.nonBindable&&this.ngNonBindableStackCount--,null},a.prototype.visitComment=function(a,b){return null},a.prototype.visitAttribute=function(a,b){return null},a.prototype.visitText=function(a,b){return null},a.prototype.visitExpansion=function(a,b){return null},a.prototype.visitExpansionCase=function(a,b){return null},a}(),yn=function(){function a(a){void 0===a&&(a=Li),this._reflector=a}return a.prototype.resolve=function(a,c){void 0===c&&(c=!0);var d=this._reflector.annotations(b.resolveForwardRef(a));if(d){var e=d.find(qd);if(e){var f=this._reflector.propMetadata(a);return this._mergeWithPropertyMetadata(e,f,a)}}if(c)throw new Error("No Directive annotation found on "+g(a));return null},a.prototype._mergeWithPropertyMetadata=function(a,c,d){var e=[],f=[],g={},h={};return Object.keys(c).forEach(function(a){c[a].forEach(function(c){if(c instanceof b.Input)c.bindingPropertyName?e.push(a+": "+c.bindingPropertyName):e.push(a);else if(c instanceof b.Output){var d=c;d.bindingPropertyName?f.push(a+": "+d.bindingPropertyName):f.push(a)}else if(c instanceof b.HostBinding){var i=c;if(i.hostPropertyName){var j=i.hostPropertyName[0];if("("===j)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===j)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");g["["+i.hostPropertyName+"]"]=a}else g["["+a+"]"]=a}else if(c instanceof b.HostListener){var k=c,l=k.args||[];g["("+k.eventName+")"]=a+"("+l.join(",")+")"}else c instanceof b.Query&&(h[a]=c)})}),this._merge(a,e,f,g,h,d)},a.prototype._extractPublicName=function(a){return p(a,[null,a])[1].trim()},a.prototype._merge=function(a,c,d,e,f,h){var i=this,j=c;if(a.inputs){var k=a.inputs.map(function(a){return i._extractPublicName(a)});c.forEach(function(a){var b=i._extractPublicName(a);if(k.indexOf(b)>-1)throw new Error("Input '"+b+"' defined multiple times in '"+g(h)+"'")}),j.unshift.apply(j,a.inputs)}var l=d;if(a.outputs){var m=a.outputs.map(function(a){return i._extractPublicName(a)});d.forEach(function(a){var b=i._extractPublicName(a);if(m.indexOf(b)>-1)throw new Error("Output event '"+b+"' defined multiple times in '"+g(h)+"'")}),l.unshift.apply(l,a.outputs)}var n=a.host?le.merge(a.host,e):e,o=a.queries?le.merge(a.queries,f):f;return a instanceof b.Component?new b.Component({selector:a.selector,inputs:j,outputs:l,host:n,exportAs:a.exportAs,moduleId:a.moduleId,queries:o,changeDetection:a.changeDetection,providers:a.providers,viewProviders:a.viewProviders,entryComponents:a.entryComponents,template:a.template,templateUrl:a.templateUrl,styles:a.styles,styleUrls:a.styleUrls,encapsulation:a.encapsulation,animations:a.animations,interpolation:a.interpolation}):new b.Directive({selector:a.selector,inputs:j,outputs:l,host:n,exportAs:a.exportAs,queries:o,providers:a.providers})},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:vi}],a}(),zn=function(){function a(a){void 0===a&&(a=Li),this._reflector=a}return a.prototype.resolve=function(a,b){void 0===b&&(b=!0);var c=this._reflector.annotations(a).find(td);if(d(c))return c;if(b)throw new Error("No NgModule metadata found for '"+g(a)+"'.");return null},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:vi}],a}(),An=function(){function a(a){void 0===a&&(a=Li),this._reflector=a}return a.prototype.resolve=function(a,c){void 0===c&&(c=!0);var e=this._reflector.annotations(b.resolveForwardRef(a));if(d(e)){var f=e.find(ud);if(d(f))return f}if(c)throw new Error("No Pipe decorator found on "+g(a));return null},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:vi}],a}(),Bn=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Cn=function(){function a(a,b,c,d,e){void 0===e&&(e=Li),this._ngModuleResolver=a,this._directiveResolver=b,this._pipeResolver=c,this._schemaRegistry=d,this._reflector=e,this._directiveCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map,this._anonymousTypes=new Map,this._anonymousTypeIndex=0}return a.prototype.sanitizeTokenName=function(a){var b=g(a);if(b.indexOf("(")>=0){var c=this._anonymousTypes.get(a);c||(this._anonymousTypes.set(a,this._anonymousTypeIndex++),c=this._anonymousTypes.get(a)),b="anonymous_token_"+c+"_"}return s(b)},a.prototype.clearCacheFor=function(a){this._directiveCache.delete(a),this._pipeCache.delete(a),this._ngModuleOfTypes.delete(a),this._ngModuleCache.clear()},a.prototype.clearCache=function(){this._directiveCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear()},a.prototype.getAnimationEntryMetadata=function(a){var b=this,c=a.definitions.map(function(a){return b.getAnimationStateMetadata(a)});return new Ce(a.name,c)},a.prototype.getAnimationStateMetadata=function(a){if(a instanceof b.AnimationStateDeclarationMetadata){var c=this.getAnimationStyleMetadata(a.styles);return new Ee(a.stateNameExpr,c)}return a instanceof b.AnimationStateTransitionMetadata?new Fe(a.stateChangeExpr,this.getAnimationMetadata(a.steps)):null},a.prototype.getAnimationStyleMetadata=function(a){return new Ie(a.offset,a.styles)},a.prototype.getAnimationMetadata=function(a){var c=this;if(a instanceof b.AnimationStyleMetadata)return this.getAnimationStyleMetadata(a);if(a instanceof b.AnimationKeyframesSequenceMetadata)return new He(a.steps.map(function(a){return c.getAnimationStyleMetadata(a)}));if(a instanceof b.AnimationAnimateMetadata){var d=this.getAnimationMetadata(a.styles);return new Je(a.timings,d)}if(a instanceof b.AnimationWithStepsMetadata){var e=a.steps.map(function(a){return c.getAnimationMetadata(a)});return a instanceof b.AnimationGroupMetadata?new Me(e):new Le(e)}return null},a.prototype.getDirectiveMetadata=function(a,c){var e=this;void 0===c&&(c=!0),a=b.resolveForwardRef(a);var f=this._directiveCache.get(a);if(!f){var h=this._directiveResolver.resolve(a,c);if(!h)return null;var i=null,j=null,k=[],l=yd(a),m=[],n=h.selector;if(h instanceof b.Component){D("styles",h.styles),D("styleUrls",h.styleUrls),E("interpolation",h.interpolation);var o=h.animations?h.animations.map(function(a){return e.getAnimationEntryMetadata(a)}):null;i=new Ve({encapsulation:h.encapsulation,template:h.template,templateUrl:h.templateUrl,styles:h.styles,styleUrls:h.styleUrls,animations:o,interpolation:h.interpolation}),j=h.changeDetection,h.viewProviders&&(k=this.getProvidersMetadata(h.viewProviders,m,'viewProviders for "'+g(a)+'"')),l=zd(this._reflector,a,h),h.entryComponents&&(m=wd(h.entryComponents).map(function(a){return e.getTypeMetadata(a,yd(a))}).concat(m)),n||(n=this._schemaRegistry.getDefaultComponentElementName())}else if(!n)throw new Error("Directive "+g(a)+" has no selector, please add it!");var p=[];d(h.providers)&&(p=this.getProvidersMetadata(h.providers,m,'providers for "'+g(a)+'"'));var q=[],r=[];d(h.queries)&&(q=this.getQueriesMetadata(h.queries,!1,a),r=this.getQueriesMetadata(h.queries,!0,a)),f=We.create({selector:n,exportAs:h.exportAs,isComponent:!!i,type:this.getTypeMetadata(a,l),template:i,changeDetection:j,inputs:h.inputs,outputs:h.outputs,host:h.host,providers:p,viewProviders:k,queries:q,viewQueries:r,entryComponents:m}),this._directiveCache.set(a,f)}return f},a.prototype.getNgModuleMetadata=function(a,c){var d=this;void 0===c&&(c=!0),a=b.resolveForwardRef(a);var e=this._ngModuleCache.get(a);if(!e){var f=this._ngModuleResolver.resolve(a,c);if(!f)return null;var h=[],i=[],j=[],k=[],l=[],m=[],n=[],o=[],p=[],q=[];f.imports&&wd(f.imports).forEach(function(b){var c;if(xd(b))c=b;else if(b&&b.ngModule){var e=b;c=e.ngModule,e.providers&&n.push.apply(n,d.getProvidersMetadata(e.providers,o,"provider for the NgModule '"+g(c)+"'"))}if(!c)throw new Error("Unexpected value '"+g(b)+"' imported by the module '"+g(a)+"'");var f=d.getNgModuleMetadata(c,!1);if(null===f)throw new Error("Unexpected "+d._getTypeDescriptor(b)+" '"+g(b)+"' imported by the module '"+g(a)+"'");l.push(f)}),f.exports&&wd(f.exports).forEach(function(b){if(!xd(b))throw new Error("Unexpected value '"+g(b)+"' exported by the module '"+g(a)+"'");var c,e,f;if(c=d.getDirectiveMetadata(b,!1))i.push(c);else if(e=d.getPipeMetadata(b,!1))k.push(e);else{if(!(f=d.getNgModuleMetadata(b,!1)))throw new Error("Unexpected "+d._getTypeDescriptor(b)+" '"+g(b)+"' exported by the module '"+g(a)+"'");m.push(f)}});var r=this._getTransitiveNgModuleMetadata(l,m);if(f.declarations&&wd(f.declarations).forEach(function(b){if(!xd(b))throw new Error("Unexpected value '"+g(b)+"' declared by the module '"+g(a)+"'");var c,e;if(c=d.getDirectiveMetadata(b,!1))d._addDirectiveToModule(c,a,r,h,!0);else{if(!(e=d.getPipeMetadata(b,!1)))throw new Error("Unexpected "+d._getTypeDescriptor(b)+" '"+g(b)+"' declared by the module '"+g(a)+"'");d._addPipeToModule(e,a,r,j,!0)}}),f.providers&&n.push.apply(n,this.getProvidersMetadata(f.providers,o,"provider for the NgModule '"+g(a)+"'")),f.entryComponents&&o.push.apply(o,wd(f.entryComponents).map(function(a){return d.getTypeMetadata(a,yd(a))})),f.bootstrap){var s=wd(f.bootstrap).map(function(b){if(!xd(b))throw new Error("Unexpected value '"+g(b)+"' used in the bootstrap property of module '"+g(a)+"'");return d.getTypeMetadata(b,yd(b))});p.push.apply(p,s)}o.push.apply(o,p),f.schemas&&q.push.apply(q,wd(f.schemas)),(t=r.entryComponents).push.apply(t,o),(u=r.providers).push.apply(u,n),e=new Ye({type:this.getTypeMetadata(a,yd(a)),providers:n,entryComponents:o,bootstrapComponents:p,schemas:q,declaredDirectives:h,exportedDirectives:i,declaredPipes:j,exportedPipes:k,importedModules:l,exportedModules:m,transitiveModule:r,id:f.id}),r.modules.push(e),this._verifyModule(e),this._ngModuleCache.set(a,e)}return e;var t,u},a.prototype._verifyModule=function(a){a.exportedDirectives.forEach(function(b){if(!a.transitiveModule.directivesSet.has(b.type.reference))throw new Error("Can't export directive "+g(b.type.reference)+" from "+g(a.type.reference)+" as it was neither declared nor imported!")}),a.exportedPipes.forEach(function(b){if(!a.transitiveModule.pipesSet.has(b.type.reference))throw new Error("Can't export pipe "+g(b.type.reference)+" from "+g(a.type.reference)+" as it was neither declared nor imported!")})},a.prototype._getTypeDescriptor=function(a){return this._directiveResolver.resolve(a,!1)?"directive":this._pipeResolver.resolve(a,!1)?"pipe":this._ngModuleResolver.resolve(a,!1)?"module":a.provide?"provider":"value"},a.prototype._addTypeToModule=function(a,b){var c=this._ngModuleOfTypes.get(a);if(c&&c!==b)throw new Error("Type "+g(a)+" is part of the declarations of 2 modules: "+g(c)+" and "+g(b)+"! "+("Please consider moving "+g(a)+" to a higher module that imports "+g(c)+" and "+g(b)+". ")+("You can also create a new NgModule that exports and includes "+g(a)+" then import that NgModule in "+g(c)+" and "+g(b)+"."));this._ngModuleOfTypes.set(a,b)},a.prototype._getTransitiveNgModuleMetadata=function(a,b){var c=vd(a.concat(b),!0),d=wd(c.map(function(a){return a.providers})),e=wd(c.map(function(a){return a.entryComponents})),f=vd(a,!1),g=wd(f.map(function(a){return a.exportedDirectives})),h=wd(f.map(function(a){return a.exportedPipes}));return new Ze(c,d,e,g,h)},a.prototype._addDirectiveToModule=function(a,b,c,d,e){return void 0===e&&(e=!1),!(!e&&c.directivesSet.has(a.type.reference))&&(c.directivesSet.add(a.type.reference),c.directives.push(a),d.push(a),this._addTypeToModule(a.type.reference,b),!0)},a.prototype._addPipeToModule=function(a,b,c,d,e){return void 0===e&&(e=!1),!(!e&&c.pipesSet.has(a.type.reference))&&(c.pipesSet.add(a.type.reference),c.pipes.push(a),d.push(a),this._addTypeToModule(a.type.reference,b),!0)},a.prototype.getTypeMetadata=function(a,c,d){return void 0===d&&(d=null),a=b.resolveForwardRef(a),new Se({name:this.sanitizeTokenName(a),moduleUrl:c,reference:a,diDeps:this.getDependenciesMetadata(a,d),lifecycleHooks:ui.filter(function(b){return rd(b,a)})})},a.prototype.getFactoryMetadata=function(a,c,d){return void 0===d&&(d=null),a=b.resolveForwardRef(a),new Qe({name:this.sanitizeTokenName(a),moduleUrl:c,reference:a,diDeps:this.getDependenciesMetadata(a,d)})},a.prototype.getPipeMetadata=function(a,c){void 0===c&&(c=!0),a=b.resolveForwardRef(a);var d=this._pipeCache.get(a);if(!d){var e=this._pipeResolver.resolve(a,c);if(!e)return null;d=new Xe({type:this.getTypeMetadata(a,yd(a)),name:e.name,pure:e.pure}),this._pipeCache.set(a,d)}return d},a.prototype.getDependenciesMetadata=function(a,c){var d=this,f=!1,h=c||this._reflector.parameters(a)||[],i=h.map(function(c){var g=!1,h=!1,i=!1,j=!1,k=!1,l=null,m=null,n=null;return Array.isArray(c)?c.forEach(function(a){a instanceof b.Host?h=!0:a instanceof b.Self?i=!0:a instanceof b.SkipSelf?j=!0:a instanceof b.Optional?k=!0:a instanceof b.Attribute?(g=!0,n=a.attributeName):a instanceof b.Query?a.isViewQuery?m=a:l=a:a instanceof b.Inject?n=a.token:xd(a)&&e(n)&&(n=a)}):n=c,e(n)?(f=!0,null):new Oe({isAttribute:g,isHost:h,isSelf:i,isSkipSelf:j,isOptional:k,query:l?d.getQueryMetadata(l,null,a):null,viewQuery:m?d.getQueryMetadata(m,null,a):null,token:d.getTokenMetadata(n)})});if(f){var j=i.map(function(a){return a?g(a.token):"?"}).join(", ");throw new Error("Can't resolve all parameters for "+g(a)+": ("+j+").")}return i},a.prototype.getTokenMetadata=function(a){a=b.resolveForwardRef(a);var c;return c=new Re("string"==typeof a?{value:a}:{identifier:new Ne({reference:a,name:this.sanitizeTokenName(a),moduleUrl:yd(a)})})},a.prototype.getProvidersMetadata=function(a,c,d){var e=this,f=[];return a.forEach(function(h,i){h=b.resolveForwardRef(h),h&&"object"==typeof h&&h.hasOwnProperty("provide")&&(h=new $e(h.provide,h));var j;if(Array.isArray(h))j=e.getProvidersMetadata(h,c,d);else if(h instanceof $e){var k=e.getTokenMetadata(h.token);k.reference===Ia(gj.ANALYZE_FOR_ENTRY_COMPONENTS).reference?c.push.apply(c,e._getEntryComponentsFromProvider(h)):j=e.getProviderMetadata(h)}else{if(!xd(h)){var l=a.reduce(function(a,b,c){return c<i?a.push(""+g(b)):c==i?a.push("?"+g(b)+"?"):c==i+1&&a.push("..."),a},[]).join(", ");throw new Error("Invalid "+(d?d:"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]")}j=e.getTypeMetadata(h,yd(h))}j&&f.push(j)}),f},a.prototype._getEntryComponentsFromProvider=function(a){var b=this,c=[],d=[];if(a.useFactory||a.useExisting||a.useClass)throw new Error("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!");if(!a.multi)throw new Error("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!");return Ad(a.useValue,d),d.forEach(function(a){var d=b.getDirectiveMetadata(a.reference,!1);d&&c.push(d.type)}),c},a.prototype.getProviderMetadata=function(a){var b,c=null,d=null;return a.useClass?(c=this.getTypeMetadata(a.useClass,yd(a.useClass),a.dependencies),b=c.diDeps):a.useFactory&&(d=this.getFactoryMetadata(a.useFactory,yd(a.useFactory),a.dependencies),b=d.diDeps),new Pe({token:this.getTokenMetadata(a.token),useClass:c,useValue:Ad(a.useValue,[]),useFactory:d,useExisting:a.useExisting?this.getTokenMetadata(a.useExisting):null,deps:b,multi:a.multi})},a.prototype.getQueriesMetadata=function(a,b,c){var d=this,e=[];return Object.keys(a).forEach(function(f){var g=a[f];g.isViewQuery===b&&e.push(d.getQueryMetadata(g,f,c))}),e},a.prototype._queryVarBindings=function(a){return a.split(/\s*,\s*/)},a.prototype.getQueryMetadata=function(a,b,c){var d,e=this;if("string"==typeof a.selector)d=this._queryVarBindings(a.selector).map(function(a){return e.getTokenMetadata(a)});else{if(!a.selector)throw new Error("Can't construct a query for the property \""+b+'" of "'+g(c)+"\" since the query selector wasn't defined.");d=[this.getTokenMetadata(a.selector)]}return new Te({selectors:d,first:a.first,descendants:a.descendants,propertyName:b,read:a.read?this.getTokenMetadata(a.read):null})},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:zn},{type:yn},{type:An},{type:tj},{type:vi}],a}(),Dn=function(a){function b(){a.apply(this,arguments)}return Bn(b,a),b.prototype.visitOther=function(a,b){var c;return c=new Ne(y(a)?{name:a.name,moduleUrl:a.filePath,reference:a}:{reference:a}),b.push(c),c},b}(xe),En=function(){function a(a,b){this.comp=a,this.placeholder=b}return a}(),Fn=function(){function a(a,b,c){this.statements=a,this.ngModuleFactoryVar=b,this.dependencies=c}return a}(),Gn=function(){function a(){}return a.prototype.compile=function(a,b){var c=d(a.type.moduleUrl)?"in NgModule "+a.type.name+" in "+a.type.moduleUrl:"in NgModule "+a.type.name,e=new Qg("",c),f=new Rg(new Pg(e,null,null,null),new Pg(e,null,null,null)),g=[],h=[],i=a.transitiveModule.entryComponents.map(function(b){var c=new Ne({name:b.name});return a.bootstrapComponents.indexOf(b)>-1&&h.push(c),g.push(new En(b,c)),c}),j=new Hn(a,i,h,f),k=new sj(a,b,f);k.parse().forEach(function(a){return j.addProvider(a)});var l=j.build(),m=a.type.name+"NgFactory",n=fb(m).set(gb(Ga(gj.NgModuleFactory)).instantiate([fb(l.name),gb(a.type)],hb(Ga(gj.NgModuleFactory),[hb(a.type)],[Rj.Const]))).toDeclStmt(null,[Pk.Final]),o=[l,n];if(a.id){var p=gb(Ga(gj.RegisterModuleFactoryFn)).callFn([mb(a.id),fb(m)]).toStmt();o.push(p)}return new Fn(o,m,g)},a.decorators=[{type:b.Injectable}],a.ctorParameters=[],a}(),Hn=function(){function a(a,b,c,d){this._ngModuleMeta=a,this._entryComponentFactories=b,this._bootstrapComponentFactories=c,this._sourceSpan=d,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return a.prototype.addProvider=function(a){var b=this,c=a.providers.map(function(a){return b._getProviderValue(a)}),d="_"+a.token.name+"_"+this._instances.size,e=this._createProviderProperty(d,a,c,a.multiProvider,a.eager);a.lifecycleHooks.indexOf(ti.OnDestroy)!==-1&&this._destroyStmts.push(e.callMethod("ngOnDestroy",[]).toStmt()),this._tokens.push(a.token),this._instances.set(a.token.reference,e)},a.prototype.build=function(){var a=this,b=this._tokens.map(function(b){var c=a._instances.get(b.reference);return new rl(Jn.token.identical(Fb(b)),[new ll(c)])}),c=[new ol("createInternal",[],this._createStmts.concat(new ll(this._instances.get(this._ngModuleMeta.type.reference))),hb(this._ngModuleMeta.type)),new ol("getInternal",[new Yk(Jn.token.name,Dk),new Yk(Jn.notFoundResult.name,Dk)],b.concat([new ll(Jn.notFoundResult)]),Dk),new ol("destroyInternal",[],this._destroyStmts)],d=[fb(In.parent.name),ib(this._entryComponentFactories.map(function(a){return gb(a)})),ib(this._bootstrapComponentFactories.map(function(a){return gb(a)}))],e=this._ngModuleMeta.type.name+"Injector";return bc({name:e,ctorParams:[new Yk(In.parent.name,hb(Ga(gj.Injector)))],parent:gb(Ga(gj.NgModuleInjector),[hb(this._ngModuleMeta.type)]),parentArgs:d,builders:[{methods:c},this]})},a.prototype._getProviderValue=function(a){var b,c=this;if(d(a.useExisting))b=this._getDependency(new Oe({token:a.useExisting}));else if(d(a.useFactory)){var e=a.deps||a.useFactory.diDeps,f=e.map(function(a){return c._getDependency(a)});b=gb(a.useFactory).callFn(f)}else if(d(a.useClass)){var e=a.deps||a.useClass.diDeps,f=e.map(function(a){return c._getDependency(a)});b=gb(a.useClass).instantiate(f,hb(a.useClass))}else b=ic(a.useValue);return b},a.prototype._createProviderProperty=function(a,b,c,d,e){var f,g;if(d?(f=ib(c),g=new Bk(Dk)):(f=c[0],g=c[0].type),g||(g=Dk),e)this.fields.push(new nl(a,g)),this._createStmts.push(dl.prop(a).set(f).toStmt());else{var h="_"+a;this.fields.push(new nl(h,g));var i=[new rl(dl.prop(h).isBlank(),[dl.prop(h).set(f).toStmt()]),new ll(dl.prop(h))];this.getters.push(new pl(a,i,g))}return dl.prop(a)},a.prototype._getDependency=function(a){var b=null;if(a.isValue&&(b=mb(a.value)),a.isSkipSelf||(!a.token||a.token.reference!==Ia(gj.Injector).reference&&a.token.reference!==Ia(gj.ComponentFactoryResolver).reference||(b=dl),b||(b=this._instances.get(a.token.reference))),!b){var c=[Fb(a.token)];a.isOptional&&c.push(fl),b=In.parent.callMethod("get",c)}return b},a}(),In=function(){function a(){}return a.parent=dl.prop("parent"),a}(),Jn=function(){function a(){}return a.token=fb("token"),a.notFoundResult=fb("notFoundResult"),a}(),Kn=/'|\\|\n|\r|\$/g,Ln=/^[$A-Z_][0-9A-Z_$]*$/i,Mn=fb("error"),Nn=fb("stack"),On=function(){function a(a){this.indent=a,this.parts=[]}return a}(),Pn=function(){function a(a,b){this._exportedVars=a,this._indent=b,this._classes=[],this._lines=[new On(b)]}return a.createRoot=function(b){return new a(b,0)},Object.defineProperty(a.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),a.prototype.isExportedVar=function(a){return this._exportedVars.indexOf(a)!==-1},a.prototype.println=function(a){void 0===a&&(a=""),this.print(a,!0)},a.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},a.prototype.print=function(a,b){void 0===b&&(b=!1),a.length>0&&this._currentLine.parts.push(a),b&&this._lines.push(new On(this._indent))},a.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},a.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},a.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},a.prototype.pushClass=function(a){this._classes.push(a)},a.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(a.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),a.prototype.toSource=function(){var a=this._lines;return 0===a[a.length-1].parts.length&&(a=a.slice(0,a.length-1)),a.map(function(a){return a.parts.length>0?Cd(a.indent)+a.parts.join(""):""}).join("\n")},a}(),Qn=function(){function a(a){this._escapeDollarInStrings=a}return a.prototype.visitExpressionStmt=function(a,b){return a.expr.visitExpression(this,b),b.println(";"),null},a.prototype.visitReturnStmt=function(a,b){return b.print("return "),a.value.visitExpression(this,b),b.println(";"),null},a.prototype.visitIfStmt=function(a,b){b.print("if ("),a.condition.visitExpression(this,b),b.print(") {");var c=d(a.falseCase)&&a.falseCase.length>0;return a.trueCase.length<=1&&!c?(b.print(" "),this.visitAllStatements(a.trueCase,b),b.removeEmptyLastLine(),b.print(" ")):(b.println(),b.incIndent(),this.visitAllStatements(a.trueCase,b),b.decIndent(),c&&(b.println("} else {"),b.incIndent(),this.visitAllStatements(a.falseCase,b),b.decIndent())),b.println("}"),null},a.prototype.visitThrowStmt=function(a,b){return b.print("throw "),a.error.visitExpression(this,b),b.println(";"),null},a.prototype.visitCommentStmt=function(a,b){var c=a.comment.split("\n");return c.forEach(function(a){b.println("// "+a)}),null},a.prototype.visitWriteVarExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),b.print(a.name+" = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitWriteKeyExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),a.receiver.visitExpression(this,b),b.print("["),a.index.visitExpression(this,b),b.print("] = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitWritePropExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),a.receiver.visitExpression(this,b),b.print("."+a.name+" = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitInvokeMethodExpr=function(a,b){a.receiver.visitExpression(this,b);var c=a.name;return d(a.builtin)&&(c=this.getBuiltinMethodName(a.builtin),e(c))?null:(b.print("."+c+"("),this.visitAllExpressions(a.args,b,","),b.print(")"),null)},a.prototype.visitInvokeFunctionExpr=function(a,b){return a.fn.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},a.prototype.visitReadVarExpr=function(a,b){var c=a.name;if(d(a.builtin))switch(a.builtin){case Ik.Super:c="super";break;case Ik.This:c="this";break;case Ik.CatchError:c=Mn.name;break;case Ik.CatchStack:c=Nn.name;break;default:throw new Error("Unknown builtin variable "+a.builtin)}return b.print(c),null},a.prototype.visitInstantiateExpr=function(a,b){return b.print("new "),a.classExpr.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},a.prototype.visitLiteralExpr=function(a,b,c){void 0===c&&(c="null");var d=a.value;return"string"==typeof d?b.print(Bd(d,this._escapeDollarInStrings)):e(d)?b.print(c):b.print(""+d),null},a.prototype.visitConditionalExpr=function(a,b){return b.print("("),a.condition.visitExpression(this,b),b.print("? "),a.trueCase.visitExpression(this,b),b.print(": "),a.falseCase.visitExpression(this,b),b.print(")"),null},a.prototype.visitNotExpr=function(a,b){return b.print("!"),a.condition.visitExpression(this,b),null},a.prototype.visitBinaryOperatorExpr=function(a,b){var c;switch(a.operator){
  case yk.Equals:c="==";break;case yk.Identical:c="===";break;case yk.NotEquals:c="!=";break;case yk.NotIdentical:c="!==";break;case yk.And:c="&&";break;case yk.Or:c="||";break;case yk.Plus:c="+";break;case yk.Minus:c="-";break;case yk.Divide:c="/";break;case yk.Multiply:c="*";break;case yk.Modulo:c="%";break;case yk.Lower:c="<";break;case yk.LowerEquals:c="<=";break;case yk.Bigger:c=">";break;case yk.BiggerEquals:c=">=";break;default:throw new Error("Unknown operator "+a.operator)}return b.print("("),a.lhs.visitExpression(this,b),b.print(" "+c+" "),a.rhs.visitExpression(this,b),b.print(")"),null},a.prototype.visitReadPropExpr=function(a,b){return a.receiver.visitExpression(this,b),b.print("."),b.print(a.name),null},a.prototype.visitReadKeyExpr=function(a,b){return a.receiver.visitExpression(this,b),b.print("["),a.index.visitExpression(this,b),b.print("]"),null},a.prototype.visitLiteralArrayExpr=function(a,b){var c=a.entries.length>1;return b.print("[",c),b.incIndent(),this.visitAllExpressions(a.entries,b,",",c),b.decIndent(),b.print("]",c),null},a.prototype.visitLiteralMapExpr=function(a,b){var c=this,d=a.entries.length>1;return b.print("{",d),b.incIndent(),this.visitAllObjects(function(a){b.print(Bd(a[0],c._escapeDollarInStrings,!1)+": "),a[1].visitExpression(c,b)},a.entries,b,",",d),b.decIndent(),b.print("}",d),null},a.prototype.visitAllExpressions=function(a,b,c,d){var e=this;void 0===d&&(d=!1),this.visitAllObjects(function(a){return a.visitExpression(e,b)},a,b,c,d)},a.prototype.visitAllObjects=function(a,b,c,d,e){void 0===e&&(e=!1);for(var f=0;f<b.length;f++)f>0&&c.print(d,e),a(b[f]);e&&c.println()},a.prototype.visitAllStatements=function(a,b){var c=this;a.forEach(function(a){return a.visitStatement(c,b)})},a}(),Rn=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Sn="asset://debug/lib",Tn=function(){function a(a){this._importGenerator=a}return a.prototype.emitStatements=function(a,b,c){var d=this,e=new Un(a),f=Pn.createRoot(c);e.visitAllStatements(b,f);var g=[];return e.importsWithPrefixes.forEach(function(b,c){g.push("imp"+("ort * as "+b+" from '"+d._importGenerator.getImportPath(a,c)+"';"))}),g.push(f.toSource()),g.join("\n")},a}(),Un=function(a){function b(b){a.call(this,!1),this._moduleUrl=b,this.importsWithPrefixes=new Map}return Rn(b,a),b.prototype.visitType=function(a,b,c){void 0===c&&(c="any"),d(a)?a.visitType(this,b):b.print(c)},b.prototype.visitLiteralExpr=function(b,c){a.prototype.visitLiteralExpr.call(this,b,c,"(null as any)")},b.prototype.visitLiteralArrayExpr=function(b,c){0===b.entries.length&&c.print("(");var d=a.prototype.visitLiteralArrayExpr.call(this,b,c);return 0===b.entries.length&&c.print(" as any[])"),d},b.prototype.visitExternalExpr=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitDeclareVarStmt=function(a,b){return b.isExportedVar(a.name)&&b.print("export "),a.hasModifier(Pk.Final)?b.print("const"):b.print("var"),b.print(" "+a.name+":"),this.visitType(a.type,b),b.print(" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return b.print("(<"),a.type.visitType(this,b),b.print(">"),a.value.visitExpression(this,b),b.print(")"),null},b.prototype.visitDeclareClassStmt=function(a,b){var c=this;return b.pushClass(a),b.isExportedVar(a.name)&&b.print("export "),b.print("class "+a.name),d(a.parent)&&(b.print(" extends "),a.parent.visitExpression(this,b)),b.println(" {"),b.incIndent(),a.fields.forEach(function(a){return c._visitClassField(a,b)}),d(a.constructorMethod)&&this._visitClassConstructor(a,b),a.getters.forEach(function(a){return c._visitClassGetter(a,b)}),a.methods.forEach(function(a){return c._visitClassMethod(a,b)}),b.decIndent(),b.println("}"),b.popClass(),null},b.prototype._visitClassField=function(a,b){a.hasModifier(Pk.Private)&&b.print("/*private*/ "),b.print(a.name),b.print(":"),this.visitType(a.type,b),b.println(";")},b.prototype._visitClassGetter=function(a,b){a.hasModifier(Pk.Private)&&b.print("private "),b.print("get "+a.name+"()"),b.print(":"),this.visitType(a.type,b),b.println(" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassConstructor=function(a,b){b.print("constructor("),this._visitParams(a.constructorMethod.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.constructorMethod.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassMethod=function(a,b){a.hasModifier(Pk.Private)&&b.print("private "),b.print(a.name+"("),this._visitParams(a.params,b),b.print("):"),this.visitType(a.type,b,"void"),b.println(" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype.visitFunctionExpr=function(a,b){return b.print("("),this._visitParams(a.params,b),b.print("):"),this.visitType(a.type,b,"void"),b.println(" => {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return b.isExportedVar(a.name)&&b.print("export "),b.print("function "+a.name+"("),this._visitParams(a.params,b),b.print("):"),this.visitType(a.type,b,"void"),b.println(" {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.visitTryCatchStmt=function(a,b){b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+Mn.name+") {"),b.incIndent();var c=[Nn.set(Mn.prop("stack")).toDeclStmt(null,[Pk.Final])].concat(a.catchStmts);return this.visitAllStatements(c,b),b.decIndent(),b.println("}"),null},b.prototype.visitBuiltintType=function(a,b){var c;switch(a.name){case wk.Bool:c="boolean";break;case wk.Dynamic:c="any";break;case wk.Function:c="Function";break;case wk.Number:c="number";break;case wk.Int:c="number";break;case wk.String:c="string";break;default:throw new Error("Unsupported builtin type "+a.name)}return b.print(c),null},b.prototype.visitExternalType=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitArrayType=function(a,b){return this.visitType(a.of,b),b.print("[]"),null},b.prototype.visitMapType=function(a,b){return b.print("{[key: string]:"),this.visitType(a.valueType,b),b.print("}"),null},b.prototype.getBuiltinMethodName=function(a){var b;switch(a){case Kk.ConcatArray:b="concat";break;case Kk.SubscribeObservable:b="subscribe";break;case Kk.Bind:b="bind";break;default:throw new Error("Unknown builtin method: "+a)}return b},b.prototype._visitParams=function(a,b){var c=this;this.visitAllObjects(function(a){b.print(a.name),b.print(":"),c.visitType(a.type,b)},a,b,",")},b.prototype._visitIdentifier=function(a,b,c){var f=this;if(e(a.name))throw new Error("Internal error: unknown identifier "+a);if(d(a.moduleUrl)&&a.moduleUrl!=this._moduleUrl){var g=this.importsWithPrefixes.get(a.moduleUrl);e(g)&&(g="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(a.moduleUrl,g)),c.print(g+".")}a.reference&&a.reference.members?(c.print(a.reference.name),c.print("."),c.print(a.reference.members.join("."))):c.print(a.name),d(b)&&b.length>0&&(c.print("<"),this.visitAllObjects(function(a){return a.visitType(f,c)},b,c,","),c.print(">"))},b}(Qn),Vn=function(){function a(a,b,c,d){this.parent=a,this.instance=b,this.className=c,this.vars=d}return a.prototype.createChildWihtLocalVars=function(){return new a(this,this.instance,this.className,new Map)},a}(),Wn=function(){function a(a){this.value=a}return a}(),Xn=function(){function a(){}return a.prototype.debugAst=function(a){return Dd(a)},a.prototype.visitDeclareVarStmt=function(a,b){return b.vars.set(a.name,a.value.visitExpression(this,b)),null},a.prototype.visitWriteVarExpr=function(a,b){for(var c=a.value.visitExpression(this,b),d=b;null!=d;){if(d.vars.has(a.name))return d.vars.set(a.name,c),c;d=d.parent}throw new Error("Not declared variable "+a.name)},a.prototype.visitReadVarExpr=function(a,b){var c=a.name;if(d(a.builtin))switch(a.builtin){case Ik.Super:return b.instance.__proto__;case Ik.This:return b.instance;case Ik.CatchError:c=Yn;break;case Ik.CatchStack:c=Zn;break;default:throw new Error("Unknown builtin variable "+a.builtin)}for(var e=b;null!=e;){if(e.vars.has(c))return e.vars.get(c);e=e.parent}throw new Error("Not declared variable "+c)},a.prototype.visitWriteKeyExpr=function(a,b){var c=a.receiver.visitExpression(this,b),d=a.index.visitExpression(this,b),e=a.value.visitExpression(this,b);return c[d]=e,e},a.prototype.visitWritePropExpr=function(a,b){var c=a.receiver.visitExpression(this,b),d=a.value.visitExpression(this,b);return c[a.name]=d,d},a.prototype.visitInvokeMethodExpr=function(a,b){var c,e=a.receiver.visitExpression(this,b),f=this.visitAllExpressions(a.args,b);if(d(a.builtin))switch(a.builtin){case Kk.ConcatArray:c=e.concat(f[0]);break;case Kk.SubscribeObservable:c=e.subscribe({next:f[0]});break;case Kk.Bind:c=e.bind(f[0]);break;default:throw new Error("Unknown builtin method "+a.builtin)}else c=e[a.name].apply(e,f);return c},a.prototype.visitInvokeFunctionExpr=function(a,b){var c=this.visitAllExpressions(a.args,b),d=a.fn;if(d instanceof Lk&&d.builtin===Ik.Super)return b.instance.constructor.prototype.constructor.apply(b.instance,c),null;var e=a.fn.visitExpression(this,b);return e.apply(null,c)},a.prototype.visitReturnStmt=function(a,b){return new Wn(a.value.visitExpression(this,b))},a.prototype.visitDeclareClassStmt=function(a,b){var c=Gd(a,b,this);return b.vars.set(a.name,c),null},a.prototype.visitExpressionStmt=function(a,b){return a.expr.visitExpression(this,b)},a.prototype.visitIfStmt=function(a,b){var c=a.condition.visitExpression(this,b);return c?this.visitAllStatements(a.trueCase,b):d(a.falseCase)?this.visitAllStatements(a.falseCase,b):null},a.prototype.visitTryCatchStmt=function(a,b){try{return this.visitAllStatements(a.bodyStmts,b)}catch(d){var c=b.createChildWihtLocalVars();return c.vars.set(Yn,d),c.vars.set(Zn,d.stack),this.visitAllStatements(a.catchStmts,c)}},a.prototype.visitThrowStmt=function(a,b){throw a.error.visitExpression(this,b)},a.prototype.visitCommentStmt=function(a,b){return null},a.prototype.visitInstantiateExpr=function(a,b){var c=this.visitAllExpressions(a.args,b),d=a.classExpr.visitExpression(this,b);return new(d.bind.apply(d,[void 0].concat(c)))},a.prototype.visitLiteralExpr=function(a,b){return a.value},a.prototype.visitExternalExpr=function(a,b){return a.value.reference},a.prototype.visitConditionalExpr=function(a,b){return a.condition.visitExpression(this,b)?a.trueCase.visitExpression(this,b):d(a.falseCase)?a.falseCase.visitExpression(this,b):null},a.prototype.visitNotExpr=function(a,b){return!a.condition.visitExpression(this,b)},a.prototype.visitCastExpr=function(a,b){return a.value.visitExpression(this,b)},a.prototype.visitFunctionExpr=function(a,b){var c=a.params.map(function(a){return a.name});return Hd(c,a.statements,b,this)},a.prototype.visitDeclareFunctionStmt=function(a,b){var c=a.params.map(function(a){return a.name});return b.vars.set(a.name,Hd(c,a.statements,b,this)),null},a.prototype.visitBinaryOperatorExpr=function(a,b){var c=this,d=function(){return a.lhs.visitExpression(c,b)},e=function(){return a.rhs.visitExpression(c,b)};switch(a.operator){case yk.Equals:return d()==e();case yk.Identical:return d()===e();case yk.NotEquals:return d()!=e();case yk.NotIdentical:return d()!==e();case yk.And:return d()&&e();case yk.Or:return d()||e();case yk.Plus:return d()+e();case yk.Minus:return d()-e();case yk.Divide:return d()/e();case yk.Multiply:return d()*e();case yk.Modulo:return d()%e();case yk.Lower:return d()<e();case yk.LowerEquals:return d()<=e();case yk.Bigger:return d()>e();case yk.BiggerEquals:return d()>=e();default:throw new Error("Unknown operator "+a.operator)}},a.prototype.visitReadPropExpr=function(a,b){var c,d=a.receiver.visitExpression(this,b);return c=d[a.name]},a.prototype.visitReadKeyExpr=function(a,b){var c=a.receiver.visitExpression(this,b),d=a.index.visitExpression(this,b);return c[d]},a.prototype.visitLiteralArrayExpr=function(a,b){return this.visitAllExpressions(a.entries,b)},a.prototype.visitLiteralMapExpr=function(a,b){var c=this,d={};return a.entries.forEach(function(a){return d[a[0]]=a[1].visitExpression(c,b)}),d},a.prototype.visitAllExpressions=function(a,b){var c=this;return a.map(function(a){return a.visitExpression(c,b)})},a.prototype.visitAllStatements=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=d.visitStatement(this,b);if(e instanceof Wn)return e}return null},a}(),Yn="error",Zn="stack",$n=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},_n=function(a){function b(){a.call(this,!1)}return $n(b,a),b.prototype.visitDeclareClassStmt=function(a,b){var c=this;return b.pushClass(a),this._visitClassConstructor(a,b),d(a.parent)&&(b.print(a.name+".prototype = Object.create("),a.parent.visitExpression(this,b),b.println(".prototype);")),a.getters.forEach(function(d){return c._visitClassGetter(a,d,b)}),a.methods.forEach(function(d){return c._visitClassMethod(a,d,b)}),b.popClass(),null},b.prototype._visitClassConstructor=function(a,b){b.print("function "+a.name+"("),d(a.constructorMethod)&&this._visitParams(a.constructorMethod.params,b),b.println(") {"),b.incIndent(),d(a.constructorMethod)&&a.constructorMethod.body.length>0&&(b.println("var self = this;"),this.visitAllStatements(a.constructorMethod.body,b)),b.decIndent(),b.println("}")},b.prototype._visitClassGetter=function(a,b,c){c.println("Object.defineProperty("+a.name+".prototype, '"+b.name+"', { get: function() {"),c.incIndent(),b.body.length>0&&(c.println("var self = this;"),this.visitAllStatements(b.body,c)),c.decIndent(),c.println("}});")},b.prototype._visitClassMethod=function(a,b,c){c.print(a.name+".prototype."+b.name+" = function("),this._visitParams(b.params,c),c.println(") {"),c.incIndent(),b.body.length>0&&(c.println("var self = this;"),this.visitAllStatements(b.body,c)),c.decIndent(),c.println("};")},b.prototype.visitReadVarExpr=function(b,c){if(b.builtin===Ik.This)c.print("self");else{if(b.builtin===Ik.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");a.prototype.visitReadVarExpr.call(this,b,c)}return null},b.prototype.visitDeclareVarStmt=function(a,b){return b.print("var "+a.name+" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return a.value.visitExpression(this,b),null},b.prototype.visitInvokeFunctionExpr=function(b,c){var d=b.fn;return d instanceof Lk&&d.builtin===Ik.Super?(c.currentClass.parent.visitExpression(this,c),c.print(".call(this"),b.args.length>0&&(c.print(", "),this.visitAllExpressions(b.args,c,",")),c.print(")")):a.prototype.visitInvokeFunctionExpr.call(this,b,c),null},b.prototype.visitFunctionExpr=function(a,b){return b.print("function("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return b.print("function "+a.name+"("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.visitTryCatchStmt=function(a,b){b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+Mn.name+") {"),b.incIndent();var c=[Nn.set(Mn.prop("stack")).toDeclStmt(null,[Pk.Final])].concat(a.catchStmts);return this.visitAllStatements(c,b),b.decIndent(),b.println("}"),null},b.prototype._visitParams=function(a,b){this.visitAllObjects(function(a){return b.print(a.name)},a,b,",")},b.prototype.getBuiltinMethodName=function(a){var b;switch(a){case Kk.ConcatArray:b="concat";break;case Kk.SubscribeObservable:b="subscribe";break;case Kk.Bind:b="bind";break;default:throw new Error("Unknown builtin method: "+a)}return b},b}(Qn),ao=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},bo=function(a){function b(){a.apply(this,arguments),this._evalArgNames=[],this._evalArgValues=[]}return ao(b,a),b.prototype.getArgs=function(){for(var a={},b=0;b<this._evalArgNames.length;b++)a[this._evalArgNames[b]]=this._evalArgValues[b];return a},b.prototype.visitExternalExpr=function(a,b){var c=a.value.reference,e=this._evalArgValues.indexOf(c);if(e===-1){e=this._evalArgValues.length,this._evalArgValues.push(c);var f=d(a.value.name)?s(a.value.name):"val";this._evalArgNames.push(s("jit_"+f+e))}return b.print(this._evalArgNames[e]),null},b}(_n),co=function(){function a(){this.strictStyling=!0}return a.prototype.shimCssText=function(a,b,c){void 0===c&&(c="");var d=Ld(a);return a=Kd(a),a=this._insertDirectives(a),this._scopeCssText(a,b,c)+d},a.prototype._insertDirectives=function(a){return a=this._insertPolyfillDirectivesInCssText(a),this._insertPolyfillRulesInCssText(a)},a.prototype._insertPolyfillDirectivesInCssText=function(a){return a.replace(eo,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a[2]+"{"})},a.prototype._insertPolyfillRulesInCssText=function(a){return a.replace(fo,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var c=a[0].replace(a[1],"").replace(a[2],"");return a[4]+c})},a.prototype._scopeCssText=function(a,b,c){var d=this._extractUnscopedRulesFromCssText(a);return a=this._insertPolyfillHostInCssText(a),a=this._convertColonHost(a),a=this._convertColonHostContext(a),a=this._convertShadowDOMSelectors(a),b&&(a=this._scopeSelectors(a,b,c)),a=a+"\n"+d,a.trim()},a.prototype._extractUnscopedRulesFromCssText=function(a){var b,c="";for(go.lastIndex=0;null!==(b=go.exec(a));){var d=b[0].replace(b[2],"").replace(b[1],b[4]);c+=d+"\n\n"}return c},a.prototype._convertColonHost=function(a){return this._convertColonRule(a,ko,this._colonHostPartReplacer)},a.prototype._convertColonHostContext=function(a){return this._convertColonRule(a,lo,this._colonHostContextPartReplacer)},a.prototype._convertColonRule=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];if(a[2]){for(var d=a[2].split(","),e=[],f=0;f<d.length;f++){var g=d[f].trim();if(!g)break;e.push(c(mo,g,a[3]))}return e.join(",")}return mo+a[3]})},a.prototype._colonHostContextPartReplacer=function(a,b,c){return b.indexOf(ho)>-1?this._colonHostPartReplacer(a,b,c):a+b+c+", "+b+" "+a+c},a.prototype._colonHostPartReplacer=function(a,b,c){return a+b.replace(ho,"")+c},a.prototype._convertShadowDOMSelectors=function(a){return oo.reduce(function(a,b){return a.replace(b," ")},a)},a.prototype._scopeSelectors=function(a,b,c){var d=this;return Md(a,function(a){var e=a.selector,f=a.content;return"@"!=a.selector[0]?e=d._scopeSelector(a.selector,b,c,d.strictStyling):(a.selector.startsWith("@media")||a.selector.startsWith("@supports")||a.selector.startsWith("@page")||a.selector.startsWith("@document"))&&(f=d._scopeSelectors(a.content,b,c)),new Bo(e,f)})},a.prototype._scopeSelector=function(a,b,c,d){var e=this;return a.split(",").map(function(a){return a.trim().split(po)}).map(function(a){var f=a[0],g=a.slice(1),h=function(a){return e._selectorNeedsScoping(a,b)?d?e._applyStrictSelectorScope(a,b,c):e._applySelectorScope(a,b,c):a};return[h(f)].concat(g).join(" ")}).join(", ")},a.prototype._selectorNeedsScoping=function(a,b){var c=this._makeScopeMatcher(b);return!c.test(a)},a.prototype._makeScopeMatcher=function(a){var b=/\[/g,c=/\]/g;return a=a.replace(b,"\\[").replace(c,"\\]"),new RegExp("^("+a+")"+qo,"m")},a.prototype._applySelectorScope=function(a,b,c){return this._applySimpleSelectorScope(a,b,c)},a.prototype._applySimpleSelectorScope=function(a,b,c){if(ro.lastIndex=0,ro.test(a)){var d=this.strictStyling?"["+c+"]":b;return a.replace(no,function(a,b){return":"===b[0]?d+b:b+d}).replace(ro,d+" ")}return b+" "+a},a.prototype._applyStrictSelectorScope=function(a,b,c){var d=this,e=/\[is=([^\]]*)\]/g;b=b.replace(e,function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];return b[0]});var f="["+b+"]",g=function(a){var e=a.trim();if(!e)return"";if(a.indexOf(mo)>-1)e=d._applySimpleSelectorScope(a,b,c);else{var g=a.replace(ro,"");if(g.length>0){var h=g.match(/([^:]*)(:*)(.*)/);null!==h&&(e=h[1]+f+h[2]+h[3])}}return e},h=0,i=[];a=a.replace(/\[[^\]]*\]/g,function(a){var b="__attr_sel_"+h+"__";return i.push(a),h++,b});for(var j,k="",l=0,m=/( |>|\+|~(?!=))\s*/g,n=a.indexOf(mo);null!==(j=m.exec(a));){var o=j[1],p=a.slice(l,j.index).trim(),q=l>=n?g(p):p;k+=q+" "+o+" ",l=m.lastIndex}return k+=g(a.substring(l)),k.replace(/__attr_sel_(\d+)__/g,function(a,b){return i[+b]})},a.prototype._insertPolyfillHostInCssText=function(a){return a.replace(to,io).replace(so,ho)},a}(),eo=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,fo=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,go=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,ho="-shadowcsshost",io="-shadowcsscontext",jo=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",ko=new RegExp("("+ho+jo,"gim"),lo=new RegExp("("+io+jo,"gim"),mo=ho+"-no-combinator",no=/-shadowcsshost-no-combinator([^\s]*)/,oo=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],po=/(?:>>>)|(?:\/deep\/)/g,qo="([>\\s~+[.,{:][\\s\\S]*)?$",ro=/-shadowcsshost/gim,so=/:host/gim,to=/:host-context/gim,uo=/\/\*\s*[\s\S]*?\*\//g,vo=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,wo=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,xo=/([{}])/g,yo="{",zo="}",Ao="%BLOCK%",Bo=function(){function a(a,b){this.selector=a,this.content=b}return a}(),Co=function(){function a(a,b){this.escapedString=a,this.blocks=b}return a}(),Do="%COMP%",Eo="_nghost-"+Do,Fo="_ngcontent-"+Do,Go=function(){function a(a,b,c){this.moduleUrl=a,this.isShimmed=b,this.valuePlaceholder=c}return a}(),Ho=function(){function a(a,b){this.componentStylesheet=a,this.externalStylesheets=b}return a}(),Io=function(){function a(a,b,c,d,e){this.statements=a,this.stylesVar=b,this.dependencies=c,this.isShimmed=d,this.meta=e}return a}(),Jo=function(){function a(a){this._urlResolver=a,this._shadowCss=new co}return a.prototype.compileComponent=function(a){var b=this,c=[],d=this._compileStyles(a,new Ue({styles:a.template.styles,styleUrls:a.template.styleUrls,moduleUrl:a.type.moduleUrl}),!0);return a.template.externalStylesheets.forEach(function(d){var e=b._compileStyles(a,d,!1);c.push(e)}),new Ho(d,c)},a.prototype._compileStyles=function(a,c,d){for(var e=this,f=a.template.encapsulation===b.ViewEncapsulation.Emulated,g=c.styles.map(function(a){return mb(e._shimIfNeeded(a,f))}),h=[],i=0;i<c.styleUrls.length;i++){var j=new Ne({name:Od(null)});h.push(new Go(c.styleUrls[i],f,j)),g.push(new Uk(j))}var k=Od(d?a:null),l=fb(k).set(ib(g,new Bk(Dk,[Rj.Const]))).toDeclStmt(null,[Pk.Final]);return new Io([l],k,h,f,c)},a.prototype._shimIfNeeded=function(a,b){return b?this._shadowCss.shimCssText(a,Fo,Eo):a},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:un}],a}(),Ko=function(){function a(a,b,c,d,e,f,g,h,i){this._injector=a,this._metadataResolver=b,this._templateNormalizer=c,this._templateParser=d,this._styleCompiler=e,this._viewCompiler=f,this._ngModuleCompiler=g,this._directiveWrapperCompiler=h,this._compilerConfig=i,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._animationParser=new jm,this._animationCompiler=new Ml}return Object.defineProperty(a.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),a.prototype.compileModuleSync=function(a){return this._compileModuleAndComponents(a,!0).syncResult},a.prototype.compileModuleAsync=function(a){return this._compileModuleAndComponents(a,!1).asyncResult},a.prototype.compileModuleAndAllComponentsSync=function(a){return this._compileModuleAndAllComponents(a,!0).syncResult},a.prototype.compileModuleAndAllComponentsAsync=function(a){return this._compileModuleAndAllComponents(a,!1).asyncResult},a.prototype._compileModuleAndComponents=function(a,b){var c=this._compileComponents(a,b),d=this._compileModule(a);return new ye(d,c.then(function(){return d}))},a.prototype._compileModuleAndAllComponents=function(a,c){var d=this,e=this._compileComponents(a,c),f=this._compileModule(a),g=this._metadataResolver.getNgModuleMetadata(a),h=[],i=new Set;g.transitiveModule.modules.forEach(function(a){a.declaredDirectives.forEach(function(b){if(b.isComponent){var c=d._createCompiledHostTemplate(b.type.reference,a);i.add(c),h.push(c.proxyComponentFactory)}})});var j=new b.ModuleWithComponentFactories(f,h),k=function(){return i.forEach(function(a){d._compileTemplate(a)}),j},l=c?Promise.resolve(k()):e.then(k);return new ye(j,l)},a.prototype._compileModule=function(a){var c=this,d=this._compiledNgModuleCache.get(a);if(!d){var e=this._metadataResolver.getNgModuleMetadata(a),f=[this._metadataResolver.getProviderMetadata(new $e(b.Compiler,{useFactory:function(){return new Mo(c,e.type.reference)}}))],g=this._ngModuleCompiler.compile(e,f);g.dependencies.forEach(function(a){a.placeholder.reference=c._assertComponentKnown(a.comp.reference,!0).proxyComponentFactory,a.placeholder.name="compFactory_"+a.comp.name}),d=this._compilerConfig.useJit?Jd("/"+e.type.name+"/module.ngfactory.js",g.statements,g.ngModuleFactoryVar):Ed(g.statements,g.ngModuleFactoryVar),this._compiledNgModuleCache.set(e.type.reference,d)}return d},a.prototype._compileComponents=function(a,b){var c=this,d=new Set,e=[],f=this._metadataResolver.getNgModuleMetadata(a),g=new Map;f.transitiveModule.modules.forEach(function(a){a.declaredDirectives.forEach(function(b){g.set(b.type.reference,a),c._compileDirectiveWrapper(b,a),b.isComponent&&d.add(c._createCompiledTemplate(b,a))})}),f.transitiveModule.modules.forEach(function(a){a.declaredDirectives.forEach(function(a){a.isComponent&&a.entryComponents.forEach(function(a){var b=g.get(a.reference);d.add(c._createCompiledHostTemplate(a.reference,b))})}),a.entryComponents.forEach(function(a){var b=g.get(a.reference);d.add(c._createCompiledHostTemplate(a.reference,b))})}),d.forEach(function(a){if(a.loading){if(b)throw new aj(a.compType.reference);e.push(a.loading)}});var h=function(){d.forEach(function(a){c._compileTemplate(a)})};return b?(h(),Promise.resolve(null)):Promise.all(e).then(h)},a.prototype.clearCacheFor=function(a){this._compiledNgModuleCache.delete(a),this._metadataResolver.clearCacheFor(a),this._compiledHostTemplateCache.delete(a);var b=this._compiledTemplateCache.get(a);b&&(this._templateNormalizer.clearCacheFor(b.normalizedCompMeta),this._compiledTemplateCache.delete(a))},a.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._templateNormalizer.clearCache(),this._compiledNgModuleCache.clear()},a.prototype._createCompiledHostTemplate=function(a,b){if(!b)throw new Error("Component "+g(a)+" is not part of any NgModule or the module has not been imported into your module.");var c=this._compiledHostTemplateCache.get(a);if(!c){var d=this._metadataResolver.getDirectiveMetadata(a);Pd(d);var e=v(d);c=new Lo(!0,d.selector,d.type,b,[d],this._templateNormalizer.normalizeDirective(e)),this._compiledHostTemplateCache.set(a,c)}return c},a.prototype._createCompiledTemplate=function(a,b){var c=this._compiledTemplateCache.get(a.type.reference);return c||(Pd(a),c=new Lo(!1,a.selector,a.type,b,b.transitiveModule.directives,this._templateNormalizer.normalizeDirective(a)),this._compiledTemplateCache.set(a.type.reference,c)),c},a.prototype._assertComponentKnown=function(a,b){var c=b?this._compiledHostTemplateCache.get(a):this._compiledTemplateCache.get(a);if(!c)throw new Error("Illegal state: Compiled view for component "+g(a)+" does not exist!");return c},a.prototype._assertComponentLoaded=function(a,b){var c=this._assertComponentKnown(a,b);if(c.loading)throw new Error("Illegal state: CompiledTemplate for "+g(a)+" (isHost: "+b+") is still loading!");return c},a.prototype._assertDirectiveWrapper=function(a){var b=this._compiledDirectiveWrapperCache.get(a);if(!b)throw new Error("Illegal state: Directive wrapper for "+g(a)+" has not been compiled!");return b},a.prototype._compileDirectiveWrapper=function(a,b){var c,d=this._directiveWrapperCompiler.compile(a),e=d.statements;c=this._compilerConfig.useJit?Jd("/"+b.type.name+"/"+a.type.name+"/wrapper.ngfactory.js",e,d.dirWrapperClassVar):Ed(e,d.dirWrapperClassVar),this._compiledDirectiveWrapperCache.set(a.type.reference,c)},a.prototype._compileTemplate=function(a){var b=this;if(!a.isCompiled){var c=a.normalizedCompMeta,d=new Map,e=this._styleCompiler.compileComponent(c);e.externalStylesheets.forEach(function(a){d.set(a.meta.moduleUrl,a)}),this._resolveStylesCompileResult(e.componentStylesheet,d);var f=a.viewComponentTypes.map(function(a){return b._assertComponentLoaded(a,!1).normalizedCompMeta}),g=this._animationParser.parseComponent(c),h=this._templateParser.parse(c,c.template.template,a.viewDirectives.concat(f),a.viewPipes,a.schemas,c.type.name),i=this._animationCompiler.compile(c.type.name,g),j=this._viewCompiler.compileComponent(c,h,fb(e.componentStylesheet.stylesVar),a.viewPipes,i);j.dependencies.forEach(function(a){var c;if(a instanceof Vm){var d=a;c=b._assertComponentLoaded(d.comp.reference,!1),d.placeholder.reference=c.proxyViewFactory,d.placeholder.name="viewFactory_"+d.comp.name}else if(a instanceof Wm){var e=a;c=b._assertComponentLoaded(e.comp.reference,!0),e.placeholder.reference=c.proxyComponentFactory,e.placeholder.name="compFactory_"+e.comp.name}else if(a instanceof Xm){var f=a;f.placeholder.reference=b._assertDirectiveWrapper(f.dir.reference)}});var k=e.componentStylesheet.statements.concat(j.statements);i.forEach(function(a){a.statements.forEach(function(a){k.push(a)})});var l;l=this._compilerConfig.useJit?Jd("/"+a.ngModule.type.name+"/"+a.compType.name+"/"+(a.isHost?"host":"component")+".ngfactory.js",k,j.viewFactoryVar):Ed(k,j.viewFactoryVar),a.compiled(l)}},a.prototype._resolveStylesCompileResult=function(a,b){var c=this;a.dependencies.forEach(function(a,d){var e=b.get(a.moduleUrl),f=c._resolveAndEvalStylesCompileResult(e,b);a.valuePlaceholder.reference=f,a.valuePlaceholder.name="importedStyles"+d})},a.prototype._resolveAndEvalStylesCompileResult=function(a,b){return this._resolveStylesCompileResult(a,b),this._compilerConfig.useJit?Jd("/"+a.meta.moduleUrl+".css.js",a.statements,a.stylesVar):Ed(a.statements,a.stylesVar)},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:b.Injector},{type:Cn},{type:wn},{type:lk},{type:Jo},{type:on},{type:Gn},{type:Dm},{type:sk}],a}(),Lo=function(){function a(a,c,d,e,f,h){var i=this;this.isHost=a,this.compType=d,this.ngModule=e,this._viewFactory=null,this.loading=null,this._normalizedCompMeta=null,this.isCompiled=!1,this.isCompiledWithDeps=!1,this.viewComponentTypes=[],this.viewDirectives=[],this.viewPipes=e.transitiveModule.pipes,this.schemas=e.schemas,f.forEach(function(a){a.isComponent?i.viewComponentTypes.push(a.type.reference):i.viewDirectives.push(a)}),this.proxyViewFactory=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];if(!i._viewFactory)throw new Error("Illegal state: CompiledTemplate for "+g(i.compType)+" is not compiled yet!");return i._viewFactory.apply(null,a)},this.proxyComponentFactory=a?new b.ComponentFactory(c,this.proxyViewFactory,d.reference):null,h.syncResult?this._normalizedCompMeta=h.syncResult:this.loading=h.asyncResult.then(function(a){i._normalizedCompMeta=a,i.loading=null})}return Object.defineProperty(a.prototype,"normalizedCompMeta",{get:function(){if(this.loading)throw new Error("Template is still loading for "+this.compType.name+"!");return this._normalizedCompMeta},enumerable:!0,
  configurable:!0}),a.prototype.compiled=function(a){this._viewFactory=a,this.isCompiled=!0},a.prototype.depsCompiled=function(){this.isCompiledWithDeps=!0},a}(),Mo=function(){function a(a,b){this._delegate=a,this._ngModule=b}return Object.defineProperty(a.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),a.prototype.compileModuleSync=function(a){return this._delegate.compileModuleSync(a)},a.prototype.compileModuleAsync=function(a){return this._delegate.compileModuleAsync(a)},a.prototype.compileModuleAndAllComponentsSync=function(a){return this._delegate.compileModuleAndAllComponentsSync(a)},a.prototype.compileModuleAndAllComponentsAsync=function(a){return this._delegate.compileModuleAndAllComponentsAsync(a)},a.prototype.clearCache=function(){this._delegate.clearCache()},a.prototype.clearCacheFor=function(a){this._delegate.clearCacheFor(a)},a}(),No={};Qd(b.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Qd(b.SecurityContext.STYLE,["*|style"]),Qd(b.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"]),Qd(b.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"]);var Oo=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Po="boolean",Qo="number",Ro="string",So="object",To=["[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"],Uo={class:"className",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Vo=function(a){function c(){var b=this;a.call(this),this._schema={},To.forEach(function(a){var c={},d=a.split("|"),e=d[0],f=d[1],g=f.split(","),h=e.split("^"),i=h[0],j=h[1];i.split(",").forEach(function(a){return b._schema[a.toLowerCase()]=c});var k=j&&b._schema[j.toLowerCase()];k&&Object.keys(k).forEach(function(a){c[a]=k[a]}),g.forEach(function(a){if(a.length>0)switch(a[0]){case"*":break;case"!":c[a.substring(1)]=Po;break;case"#":c[a.substring(1)]=Qo;break;case"%":c[a.substring(1)]=So;break;default:c[a]=Ro}})})}return Oo(c,a),c.prototype.hasProperty=function(a,c,d){if(d.some(function(a){return a.name===b.NO_ERRORS_SCHEMA.name}))return!0;if(a.indexOf("-")>-1){if("ng-container"===a||"ng-content"===a)return!1;if(d.some(function(a){return a.name===b.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var e=this._schema[a.toLowerCase()]||this._schema.unknown;return!!e[c]},c.prototype.hasElement=function(a,c){if(c.some(function(a){return a.name===b.NO_ERRORS_SCHEMA.name}))return!0;if(a.indexOf("-")>-1){if("ng-container"===a||"ng-content"===a)return!0;if(c.some(function(a){return a.name===b.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[a.toLowerCase()]},c.prototype.securityContext=function(a,c,d){d&&(c=this.getMappedPropName(c)),a=a.toLowerCase(),c=c.toLowerCase();var e=No[a+"|"+c];return e?e:(e=No["*|"+c],e?e:b.SecurityContext.NONE)},c.prototype.getMappedPropName=function(a){return Uo[a]||a},c.prototype.getDefaultComponentElementName=function(){return"ng-component"},c.prototype.validateProperty=function(a){if(a.toLowerCase().startsWith("on")){var b="Binding to event property '"+a+"' is disallowed for security reasons, "+("please use ("+a.slice(2)+")=...")+("\nIf '"+a+"' is a directive input, make sure the directive is imported by the")+" current module.";return{error:!0,msg:b}}return{error:!1}},c.prototype.validateAttribute=function(a){if(a.toLowerCase().startsWith("on")){var b="Binding to event attribute '"+a+"' is disallowed for security reasons, "+("please use ("+a.slice(2)+")=...");return{error:!0,msg:b}}return{error:!1}},c.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},c.decorators=[{type:b.Injectable}],c.ctorParameters=[],c}(tj),Wo={get:function(a){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+a+'"')}},Xo=[{provide:Mi,useValue:Li},{provide:vi,useExisting:Mi},{provide:rn,useValue:Wo},Ki,Gg,Mg,ij,{provide:qi,useFactory:function(a,b,c){return new qi(a,b,c)},deps:[ij,[new b.Optional,new b.Inject(b.TRANSLATIONS)],[new b.Optional,new b.Inject(b.TRANSLATIONS_FORMAT)]]},lk,wn,Cn,tn,Jo,on,Gn,Dm,{provide:sk,useValue:new sk},Ko,{provide:b.Compiler,useExisting:Ko},Vo,{provide:tj,useExisting:Vo},un,yn,An,zn],Yo=function(){function a(a){this._defaultOptions=[{useDebug:b.isDevMode(),useJit:!0,defaultEncapsulation:b.ViewEncapsulation.Emulated}].concat(a)}return a.prototype.createCompiler=function(a){void 0===a&&(a=[]);var c=Sd(this._defaultOptions.concat(a)),d=b.ReflectiveInjector.resolveAndCreate([Xo,{provide:sk,useFactory:function(){return new sk({genDebugInfo:c.useDebug,useJit:c.useJit,defaultEncapsulation:c.defaultEncapsulation,logBindingUpdate:c.useDebug})},deps:[]},c.providers]);return d.get(b.Compiler)},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:Array,decorators:[{type:b.Inject,args:[b.COMPILER_OPTIONS]}]}],a}(),Zo=b.createPlatformFactory(b.platformCore,"coreDynamic",[{provide:b.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:b.CompilerFactory,useClass:Yo},{provide:b.PLATFORM_INITIALIZER,useValue:Rd,multi:!0}]),$o=/asset:([^\/]+)\/([^\/]+)\/(.+)/,_o=function(){function a(){}return a.parseAssetUrl=function(a){return ap.parse(a)},a}(),ap=function(){function a(a,b,c){this.packageName=a,this.firstLevelDir=b,this.modulePath=c}return a.parse=function(b,c){void 0===c&&(c=!0);var d=b.match($o);if(null!==d)return new a(d[1],d[2],d[3]);if(c)return null;throw new Error("Url "+b+" is not a valid asset: url")},a}();a.TEMPLATE_TRANSFORMS=ik,a.CompilerConfig=sk,a.RenderTypes=tk,a.RuntimeCompiler=Ko,a.DirectiveResolver=yn,a.PipeResolver=An,a.NgModuleResolver=zn,a.DEFAULT_INTERPOLATION_CONFIG=dg,a.InterpolationConfig=cg,a.NgModuleCompiler=Gn,a.DirectiveWrapperCompiler=Dm,a.ViewCompiler=on,a.TextAst=Vd,a.BoundTextAst=Wd,a.AttrAst=Xd,a.BoundElementPropertyAst=Yd,a.BoundEventAst=Zd,a.ReferenceAst=$d,a.VariableAst=_d,a.ElementAst=ae,a.EmbeddedTemplateAst=be,a.BoundDirectivePropertyAst=ce,a.DirectiveAst=de,a.ProviderAst=ee,a.NgContentAst=fe,a.templateVisitAll=c,a.CompileMetadataWithIdentifier=Be,a.CompileAnimationEntryMetadata=Ce,a.CompileAnimationStateMetadata=De,a.CompileAnimationStateDeclarationMetadata=Ee,a.CompileAnimationStateTransitionMetadata=Fe,a.CompileAnimationMetadata=Ge,a.CompileAnimationKeyframesSequenceMetadata=He,a.CompileAnimationStyleMetadata=Ie,a.CompileAnimationAnimateMetadata=Je,a.CompileAnimationWithStepsMetadata=Ke,a.CompileAnimationSequenceMetadata=Le,a.CompileAnimationGroupMetadata=Me,a.CompileIdentifierMetadata=Ne,a.CompileDiDependencyMetadata=Oe,a.CompileProviderMetadata=Pe,a.CompileFactoryMetadata=Qe,a.CompileTokenMetadata=Re,a.CompileTypeMetadata=Se,a.CompileQueryMetadata=Te,a.CompileStylesheetMetadata=Ue,a.CompileTemplateMetadata=Ve,a.CompileDirectiveMetadata=We,a.createHostComponentMeta=v,a.CompilePipeMetadata=Xe,a.CompileNgModuleMetadata=Ye,a.TransitiveCompileNgModuleMetadata=Ze,a.removeIdentifierDuplicates=w,a.isStaticSymbol=y,a.ProviderMeta=$e,a.SourceModule=pn,a.analyzeNgModules=$c,a.OfflineCompiler=qn,a.createUrlResolverWithoutPackagePrefix=hd,a.createOfflineCompileUrlResolver=id,a.DEFAULT_PACKAGE_URL_PROVIDER=tn,a.UrlResolver=un,a.getUrlScheme=jd,a.ResourceLoader=rn,a.COMPILER_PROVIDERS=Xo,a.RuntimeCompilerFactory=Yo,a.platformCoreDynamic=Zo,a.ElementSchemaRegistry=tj,a.I18NHtmlParser=qi,a.MessageBundle=Hh,a.Xliff=ai,a.Xmb=ii,a.Xtb=ni,a.DirectiveNormalizer=wn,a.Lexer=Gg,a.Token=Hg,a.EOF=Ig,a.isIdentifier=N,a.isQuote=R,a.SplitInterpolation=Kg,a.TemplateBindingParseResult=Lg,a.Parser=Mg,a._ParseAST=Ng,a.CompileMetadataResolver=Cn,a.HtmlParser=ij,a.ParseTreeResult=ih,a.TreeError=hh,a.ImportGenerator=_o,a.AssetUrl=ap,a.debugOutputAstAsTypeScript=Dd,a.TypeScriptEmitter=Tn,a.ParseLocation=Pg,a.ParseSourceFile=Qg,a.ParseSourceSpan=Rg,a.ParseError=Tg,a.DomElementSchemaRegistry=Vo,a.CssSelector=se,a.SelectorMatcher=te,a.SelectorListContext=ue,a.SelectorContext=ve,a.StylesCompileDependency=Go,a.StylesCompileResult=Ho,a.CompiledStylesheet=Io,a.StyleCompiler=Jo,a.TemplateParseError=jk,a.TemplateParseResult=kk,a.TemplateParser=lk,a.splitClasses=_a})}(),function(){var e=a.amdDefine;!function(a,f){"object"==typeof c&&"undefined"!=typeof d?f(c,b("@angular/compiler"),b("@angular/core"),b("@angular/platform-browser")):"function"==typeof e&&e.amd?e("4",["exports","2","3","5"],f):f((a.ng=a.ng||{},a.ng.platformBrowserDynamic=a.ng.platformBrowserDynamic||{}),a.ng.compiler,a.ng.core,a.ng.platformBrowser)}(this,function(a,b,c,d){"use strict";var e,f=d.__platform_browser_private__.INTERNAL_BROWSER_PLATFORM_PROVIDERS,g=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},h=function(a){function b(){a.apply(this,arguments)}return g(b,a),b.prototype.get=function(a){var b,c,d=new Promise(function(a,d){b=a,c=d}),e=new XMLHttpRequest;return e.open("GET",a,!0),e.responseType="text",e.onload=function(){var d=e.response||e.responseText,f=1223===e.status?204:e.status;0===f&&(f=d?200:0),200<=f&&f<=300?b(d):c("Failed to load "+a)},e.onerror=function(){c("Failed to load "+a)},e.send(),d},b.decorators=[{type:c.Injectable}],b.ctorParameters=[],b}(b.ResourceLoader),i=[f,{provide:c.COMPILER_OPTIONS,useValue:{providers:[{provide:b.ResourceLoader,useClass:h}]},multi:!0}];e="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var j=e;j.assert=function(a){};var k=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},l=function(a){function b(){if(a.call(this),this._cache=j.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}return k(b,a),b.prototype.get=function(a){return this._cache.hasOwnProperty(a)?Promise.resolve(this._cache[a]):Promise.reject("CachedResourceLoader: Did not find cached template for "+a)},b}(b.ResourceLoader),m={INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:i,ResourceLoaderImpl:h},n=[{provide:b.ResourceLoader,useClass:l}],o=c.createPlatformFactory(b.platformCoreDynamic,"browserDynamic",i);a.RESOURCE_CACHE_PROVIDER=n,a.platformBrowserDynamic=o,a.__platform_browser_dynamic_private__=m})}(),a.registerDynamic("6",["3"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=f<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(f<3?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g}),e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=a("3"),g=function(){function a(){this.name="Angular 2 on Express"}return a=d([f.Component({selector:"my-app",styles:["h1 {\n\tcolor: white;\n\tbackground: darkgray;\n\tpadding: 20px;\n}\n"],template:"\n<h1>AV Timelogs</h1>\n<router-outlet></router-outlet>\n\n<a [routerLink]=\"['/']\">Home</a> | <a [routerLink]=\"['/about/', { id: 2 }]\">Logs</a>"}),e("design:paramtypes",[])],a)}();return b.AppComponent=g,c.exports}),a.registerDynamic("7",["8","9","a"],!0,function(a,b,c){"use strict";function d(a){var b=a[k.$$iterator];if(!b&&"string"==typeof a)return new m(a);if(!b&&void 0!==a.length)return new n(a);if(!b)throw new TypeError("object is not iterable");return a[k.$$iterator]()}function e(a){var b=+a.length;return isNaN(b)?0:0!==b&&f(b)?(b=g(b)*Math.floor(Math.abs(b)),b<=0?0:b>o?o:b):b}function f(a){return"number"==typeof a&&i.root.isFinite(a)}function g(a){var b=+a;return 0===b?b:isNaN(b)?b:b<0?-1:1}var h=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),i=a("8"),j=a("9"),k=a("a"),l=function(a){function b(b,c){if(a.call(this),this.scheduler=c,null==b)throw new Error("iterator cannot be null.");this.iterator=d(b)}return h(b,a),b.create=function(a,c){return new b(a,c)},b.dispatch=function(a){var b=a.index,c=a.hasError,d=a.iterator,e=a.subscriber;if(c)return void e.error(a.error);var f=d.next();return f.done?void e.complete():(e.next(f.value),a.index=b+1,void(e.closed||this.schedule(a)))},b.prototype._subscribe=function(a){var c=0,d=this,e=d.iterator,f=d.scheduler;if(f)return f.schedule(b.dispatch,0,{index:c,iterator:e,subscriber:a});for(;;){var g=e.next();if(g.done){a.complete();break}if(a.next(g.value),a.closed)break}},b}(j.Observable);b.IteratorObservable=l;var m=function(){function a(a,b,c){void 0===b&&(b=0),void 0===c&&(c=a.length),this.str=a,this.idx=b,this.len=c}return a.prototype[k.$$iterator]=function(){return this},a.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},a}(),n=function(){function a(a,b,c){void 0===b&&(b=0),void 0===c&&(c=e(a)),this.arr=a,this.idx=b,this.len=c}return a.prototype[k.$$iterator]=function(){return this},a.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},a}(),o=Math.pow(2,53)-1;return c.exports}),a.registerDynamic("b",["9","c","d"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=a("9"),f=a("c"),g=a("d"),h=function(a){function b(b,c){a.call(this),this.arrayLike=b,this.scheduler=c,c||1!==b.length||(this._isScalar=!0,this.value=b[0])}return d(b,a),b.create=function(a,c){var d=a.length;return 0===d?new g.EmptyObservable:1===d?new f.ScalarObservable(a[0],c):new b(a,c)},b.dispatch=function(a){var b=a.arrayLike,c=a.index,d=a.length,e=a.subscriber;if(!e.closed){if(c>=d)return void e.complete();e.next(b[c]),a.index=c+1,this.schedule(a)}},b.prototype._subscribe=function(a){var c=0,d=this,e=d.arrayLike,f=d.scheduler,g=e.length;if(f)return f.schedule(b.dispatch,0,{arrayLike:e,index:c,length:g,subscriber:a});for(var h=0;h<g&&!a.closed;h++)a.next(e[h]);a.complete()},b}(e.Observable);return b.ArrayLikeObservable=h,c.exports}),a.registerDynamic("e",["9"],!0,function(a,b,c){"use strict";var d=(this||self,a("9")),e=function(){function a(a,b,c){this.kind=a,this.value=b,this.exception=c,this.hasValue="N"===a}return a.prototype.observe=function(a){switch(this.kind){case"N":return a.next&&a.next(this.value);case"E":return a.error&&a.error(this.exception);case"C":return a.complete&&a.complete()}},a.prototype.do=function(a,b,c){var d=this.kind;switch(d){case"N":return a&&a(this.value);case"E":return b&&b(this.exception);case"C":return c&&c()}},a.prototype.accept=function(a,b,c){return a&&"function"==typeof a.next?this.observe(a):this.do(a,b,c)},a.prototype.toObservable=function(){var a=this.kind;switch(a){case"N":return d.Observable.of(this.value);case"E":return d.Observable.throw(this.exception);case"C":return d.Observable.empty()}throw new Error("unexpected notification kind value")},a.createNext=function(b){return"undefined"!=typeof b?new a("N",b):this.undefinedValueNotification},a.createError=function(b){return new a("E",void 0,b)},a.createComplete=function(){return this.completeNotification},a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0),a}();return b.Notification=e,c.exports}),a.registerDynamic("f",["10","e"],!0,function(a,b,c){"use strict";function d(a,b){return void 0===b&&(b=0),this.lift(new h(a,b))}var e=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=a("10"),g=a("e");b.observeOn=d;var h=function(){function a(a,b){void 0===b&&(b=0),this.scheduler=a,this.delay=b}return a.prototype.call=function(a,b){return b._subscribe(new i(a,this.scheduler,this.delay))},a}();b.ObserveOnOperator=h;var i=function(a){function b(b,c,d){void 0===d&&(d=0),a.call(this,b),this.scheduler=c,this.delay=d}return e(b,a),b.dispatch=function(a){var b=a.notification,c=a.destination;b.observe(c)},b.prototype.scheduleMessage=function(a){this.add(this.scheduler.schedule(b.dispatch,this.delay,new j(a,this.destination)))},b.prototype._next=function(a){this.scheduleMessage(g.Notification.createNext(a))},b.prototype._error=function(a){this.scheduleMessage(g.Notification.createError(a))},b.prototype._complete=function(){this.scheduleMessage(g.Notification.createComplete())},b}(f.Subscriber);b.ObserveOnSubscriber=i;var j=function(){function a(a,b){this.notification=a,this.destination=b}return a}();return b.ObserveOnMessage=j,c.exports}),a.registerDynamic("11",["12","13","14","7","15","b","a","9","f","16"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=a("12"),f=a("13"),g=a("14"),h=a("7"),i=a("15"),j=a("b"),k=a("a"),l=a("9"),m=a("f"),n=a("16"),o=function(a){return a&&"number"==typeof a.length},p=function(a){function b(b,c){a.call(this,null),this.ish=b,this.scheduler=c}return d(b,a),b.create=function(a,c){if(null!=a){if("function"==typeof a[n.$$observable])return a instanceof l.Observable&&!c?a:new b(a,c);if(e.isArray(a))return new i.ArrayObservable(a,c);if(f.isPromise(a))return new g.PromiseObservable(a,c);if("function"==typeof a[k.$$iterator]||"string"==typeof a)return new h.IteratorObservable(a,c);if(o(a))return new j.ArrayLikeObservable(a,c)}throw new TypeError((null!==a&&typeof a||a)+" is not observable")},b.prototype._subscribe=function(a){var b=this.ish,c=this.scheduler;return null==c?b[n.$$observable]().subscribe(a):b[n.$$observable]().subscribe(new m.ObserveOnSubscriber(a,c,0))},b}(l.Observable);return b.FromObservable=p,c.exports}),a.registerDynamic("17",["11"],!0,function(a,b,c){"use strict";var d=(this||self,a("11"));return b.from=d.FromObservable.create,c.exports}),a.registerDynamic("c",["9"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=a("9"),f=function(a){function b(b,c){a.call(this),this.value=b,this.scheduler=c,this._isScalar=!0,c&&(this._isScalar=!1)}return d(b,a),b.create=function(a,c){return new b(a,c)},b.dispatch=function(a){var b=a.done,c=a.value,d=a.subscriber;return b?void d.complete():(d.next(c),void(d.closed||(a.done=!0,this.schedule(a))))},b.prototype._subscribe=function(a){var c=this.value,d=this.scheduler;return d?d.schedule(b.dispatch,0,{done:!1,value:c,subscriber:a}):(a.next(c),void(a.closed||a.complete()))},b}(e.Observable);return b.ScalarObservable=f,c.exports}),a.registerDynamic("d",["9"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=a("9"),f=function(a){function b(b){a.call(this),this.scheduler=b}return d(b,a),b.create=function(a){return new b(a)},b.dispatch=function(a){var b=a.subscriber;b.complete()},b.prototype._subscribe=function(a){var c=this.scheduler;return c?c.schedule(b.dispatch,0,{subscriber:a}):void a.complete()},b}(e.Observable);return b.EmptyObservable=f,c.exports}),a.registerDynamic("18",[],!0,function(a,b,c){"use strict";function d(a){return a&&"function"==typeof a.schedule}this||self;return b.isScheduler=d,c.exports}),a.registerDynamic("15",["9","c","d","18"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=a("9"),f=a("c"),g=a("d"),h=a("18"),i=function(a){function b(b,c){a.call(this),this.array=b,this.scheduler=c,c||1!==b.length||(this._isScalar=!0,this.value=b[0])}return d(b,a),b.create=function(a,c){return new b(a,c)},b.of=function(){for(var a=[],c=0;c<arguments.length;c++)a[c-0]=arguments[c];var d=a[a.length-1];h.isScheduler(d)?a.pop():d=null;var e=a.length;return e>1?new b(a,d):1===e?new f.ScalarObservable(a[0],d):new g.EmptyObservable(d)},b.dispatch=function(a){var b=a.array,c=a.index,d=a.count,e=a.subscriber;return c>=d?void e.complete():(e.next(b[c]),void(e.closed||(a.index=c+1,this.schedule(a))))},b.prototype._subscribe=function(a){var c=0,d=this.array,e=d.length,f=this.scheduler;if(f)return f.schedule(b.dispatch,0,{array:d,index:c,count:e,subscriber:a});for(var g=0;g<e&&!a.closed;g++)a.next(d[g]);a.complete()},b}(e.Observable);return b.ArrayObservable=i,c.exports}),a.registerDynamic("19",["15"],!0,function(a,b,c){"use strict";var d=(this||self,a("15"));return b.of=d.ArrayObservable.of,c.exports}),a.registerDynamic("1a",["1b"],!0,function(a,b,c){"use strict";function d(a,b){return this.lift(new e.MergeMapOperator(a,b,1))}var e=(this||self,a("1b"));return b.concatMap=d,c.exports}),a.registerDynamic("1c",["10"],!0,function(a,b,c){"use strict";
  function d(a,b){return this.lift(new g(a,b,this))}var e=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=a("10");b.every=d;var g=function(){function a(a,b,c){this.predicate=a,this.thisArg=b,this.source=c}return a.prototype.call=function(a,b){return b._subscribe(new h(a,this.predicate,this.thisArg,this.source))},a}(),h=function(a){function b(b,c,d,e){a.call(this,b),this.predicate=c,this.thisArg=d,this.source=e,this.index=0,this.thisArg=d||this}return e(b,a),b.prototype.notifyComplete=function(a){this.destination.next(a),this.destination.complete()},b.prototype._next=function(a){var b=!1;try{b=this.predicate.call(this.thisArg,a,this.index++,this.source)}catch(a){return void this.destination.error(a)}b||this.notifyComplete(!1)},b.prototype._complete=function(){this.notifyComplete(!0)},b}(f.Subscriber);return c.exports}),a.registerDynamic("1b",["1d","1e"],!0,function(a,b,c){"use strict";function d(a,b,c){return void 0===c&&(c=Number.POSITIVE_INFINITY),"number"==typeof b&&(c=b,b=null),this.lift(new h(a,b,c))}var e=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=a("1d"),g=a("1e");b.mergeMap=d;var h=function(){function a(a,b,c){void 0===c&&(c=Number.POSITIVE_INFINITY),this.project=a,this.resultSelector=b,this.concurrent=c}return a.prototype.call=function(a,b){return b._subscribe(new i(a,this.project,this.resultSelector,this.concurrent))},a}();b.MergeMapOperator=h;var i=function(a){function b(b,c,d,e){void 0===e&&(e=Number.POSITIVE_INFINITY),a.call(this,b),this.project=c,this.resultSelector=d,this.concurrent=e,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return e(b,a),b.prototype._next=function(a){this.active<this.concurrent?this._tryNext(a):this.buffer.push(a)},b.prototype._tryNext=function(a){var b,c=this.index++;try{b=this.project(a,c)}catch(a){return void this.destination.error(a)}this.active++,this._innerSub(b,a,c)},b.prototype._innerSub=function(a,b,c){this.add(f.subscribeToResult(this,a,b,c))},b.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},b.prototype.notifyNext=function(a,b,c,d,e){this.resultSelector?this._notifyResultSelector(a,b,c,d):this.destination.next(b)},b.prototype._notifyResultSelector=function(a,b,c,d){var e;try{e=this.resultSelector(a,b,c,d)}catch(a){return void this.destination.error(a)}this.destination.next(e)},b.prototype.notifyComplete=function(a){var b=this.buffer;this.remove(a),this.active--,b.length>0?this._next(b.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},b}(g.OuterSubscriber);return b.MergeMapSubscriber=i,c.exports}),a.registerDynamic("1f",["10"],!0,function(a,b,c){"use strict";function d(a,b){return this.lift(new g(a,b))}var e=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=a("10");b.reduce=d;var g=function(){function a(a,b){this.accumulator=a,this.seed=b}return a.prototype.call=function(a,b){return b._subscribe(new h(a,this.accumulator,this.seed))},a}();b.ReduceOperator=g;var h=function(a){function b(b,c,d){a.call(this,b),this.accumulator=c,this.hasValue=!1,this.acc=d,this.accumulator=c,this.hasSeed="undefined"!=typeof d}return e(b,a),b.prototype._next=function(a){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(a):(this.acc=a,this.hasValue=!0)},b.prototype._tryReduce=function(a){var b;try{b=this.accumulator(this.acc,a)}catch(a){return void this.destination.error(a)}this.acc=b},b.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},b}(f.Subscriber);return b.ReduceSubscriber=h,c.exports}),a.registerDynamic("20",["1e","1d"],!0,function(a,b,c){"use strict";function d(a){var b=new h(a),c=this.lift(b);return b.caught=c}var e=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=a("1e"),g=a("1d");b._catch=d;var h=function(){function a(a){this.selector=a}return a.prototype.call=function(a,b){return b._subscribe(new i(a,this.selector,this.caught))},a}(),i=function(a){function b(b,c,d){a.call(this,b),this.selector=c,this.caught=d}return e(b,a),b.prototype.error=function(a){if(!this.isStopped){var b=void 0;try{b=this.selector(a,this.caught)}catch(a){return void this.destination.error(a)}this.unsubscribe(),this.destination.remove(this),g.subscribeToResult(this,b)}},b}(f.OuterSubscriber);return c.exports}),a.registerDynamic("1e",["10"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=a("10"),f=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.notifyNext=function(a,b,c,d,e){this.destination.next(b)},b.prototype.notifyError=function(a,b){this.destination.error(a)},b.prototype.notifyComplete=function(a){this.destination.complete()},b}(e.Subscriber);return b.OuterSubscriber=f,c.exports}),a.registerDynamic("13",[],!0,function(a,b,c){"use strict";function d(a){return a&&"function"!=typeof a.subscribe&&"function"==typeof a.then}this||self;return b.isPromise=d,c.exports}),a.registerDynamic("a",["8"],!0,function(a,b,c){"use strict";var d=(this||self,a("8")),e=d.root.Symbol;if("function"==typeof e)e.iterator?b.$$iterator=e.iterator:"function"==typeof e.for&&(b.$$iterator=e.for("iterator"));else if(d.root.Set&&"function"==typeof(new d.root.Set)["@@iterator"])b.$$iterator="@@iterator";else if(d.root.Map)for(var f=Object.getOwnPropertyNames(d.root.Map.prototype),g=0;g<f.length;++g){var h=f[g];if("entries"!==h&&"size"!==h&&d.root.Map.prototype[h]===d.root.Map.prototype.entries){b.$$iterator=h;break}}else b.$$iterator="@@iterator";return c.exports}),a.registerDynamic("21",["10"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=a("10"),f=function(a){function b(b,c,d){a.call(this),this.parent=b,this.outerValue=c,this.outerIndex=d,this.index=0}return d(b,a),b.prototype._next=function(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex,this.index++,this)},b.prototype._error=function(a){this.parent.notifyError(a,this),this.unsubscribe()},b.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},b}(e.Subscriber);return b.InnerSubscriber=f,c.exports}),a.registerDynamic("1d",["8","12","13","9","a","21","16"],!0,function(a,b,c){"use strict";function d(a,b,c,d){var l=new j.InnerSubscriber(a,c,d);if(l.closed)return null;if(b instanceof h.Observable)return b._isScalar?(l.next(b.value),l.complete(),null):b.subscribe(l);if(f.isArray(b)){for(var m=0,n=b.length;m<n&&!l.closed;m++)l.next(b[m]);l.closed||l.complete()}else{if(g.isPromise(b))return b.then(function(a){l.closed||(l.next(a),l.complete())},function(a){return l.error(a)}).then(null,function(a){e.root.setTimeout(function(){throw a})}),l;if("function"==typeof b[i.$$iterator])for(var o=b[i.$$iterator]();;){var p=o.next();if(p.done){l.complete();break}if(l.next(p.value),l.closed)break}else if("function"==typeof b[k.$$observable]){var q=b[k.$$observable]();if("function"==typeof q.subscribe)return q.subscribe(new j.InnerSubscriber(a,c,d));l.error(new Error("invalid observable"))}else l.error(new TypeError("unknown type returned"))}return null}var e=(this||self,a("8")),f=a("12"),g=a("13"),h=a("9"),i=a("a"),j=a("21"),k=a("16");return b.subscribeToResult=d,c.exports}),a.registerDynamic("22",["1e","1d"],!0,function(a,b,c){"use strict";function d(a){return void 0===a&&(a=Number.POSITIVE_INFINITY),this.lift(new h(a))}var e=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=a("1e"),g=a("1d");b.mergeAll=d;var h=function(){function a(a){this.concurrent=a}return a.prototype.call=function(a,b){return b._subscribe(new i(a,this.concurrent))},a}();b.MergeAllOperator=h;var i=function(a){function b(b,c){a.call(this,b),this.concurrent=c,this.hasCompleted=!1,this.buffer=[],this.active=0}return e(b,a),b.prototype._next=function(a){this.active<this.concurrent?(this.active++,this.add(g.subscribeToResult(this,a))):this.buffer.push(a)},b.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},b.prototype.notifyComplete=function(a){var b=this.buffer;this.remove(a),this.active--,b.length>0?this._next(b.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},b}(f.OuterSubscriber);return b.MergeAllSubscriber=i,c.exports}),a.registerDynamic("23",["22"],!0,function(a,b,c){"use strict";function d(){return this.lift(new e.MergeAllOperator(1))}var e=(this||self,a("22"));return b.concatAll=d,c.exports}),a.registerDynamic("24",["10","25"],!0,function(a,b,c){"use strict";function d(a,b,c){return this.lift(new h(a,b,c,this))}var e=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=a("10"),g=a("25");b.first=d;var h=function(){function a(a,b,c,d){this.predicate=a,this.resultSelector=b,this.defaultValue=c,this.source=d}return a.prototype.call=function(a,b){return b._subscribe(new i(a,this.predicate,this.resultSelector,this.defaultValue,this.source))},a}(),i=function(a){function b(b,c,d,e,f){a.call(this,b),this.predicate=c,this.resultSelector=d,this.defaultValue=e,this.source=f,this.index=0,this.hasCompleted=!1}return e(b,a),b.prototype._next=function(a){var b=this.index++;this.predicate?this._tryPredicate(a,b):this._emit(a,b)},b.prototype._tryPredicate=function(a,b){var c;try{c=this.predicate(a,b,this.source)}catch(a){return void this.destination.error(a)}c&&this._emit(a,b)},b.prototype._emit=function(a,b){return this.resultSelector?void this._tryResultSelector(a,b):void this._emitFinal(a)},b.prototype._tryResultSelector=function(a,b){var c;try{c=this.resultSelector(a,b)}catch(a){return void this.destination.error(a)}this._emitFinal(c)},b.prototype._emitFinal=function(a){var b=this.destination;b.next(a),b.complete(),this.hasCompleted=!0},b.prototype._complete=function(){var a=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||a.error(new g.EmptyError):(a.next(this.defaultValue),a.complete())},b}(f.Subscriber);return c.exports}),a.registerDynamic("14",["8","9"],!0,function(a,b,c){"use strict";function d(a){var b=a.value,c=a.subscriber;c.closed||(c.next(b),c.complete())}function e(a){var b=a.err,c=a.subscriber;c.closed||c.error(b)}var f=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),g=a("8"),h=a("9"),i=function(a){function b(b,c){a.call(this),this.promise=b,this.scheduler=c}return f(b,a),b.create=function(a,c){return new b(a,c)},b.prototype._subscribe=function(a){var b=this,c=this.promise,f=this.scheduler;if(null==f)this._isScalar?a.closed||(a.next(this.value),a.complete()):c.then(function(c){b.value=c,b._isScalar=!0,a.closed||(a.next(c),a.complete())},function(b){a.closed||a.error(b)}).then(null,function(a){g.root.setTimeout(function(){throw a})});else if(this._isScalar){if(!a.closed)return f.schedule(d,0,{value:this.value,subscriber:a})}else c.then(function(c){b.value=c,b._isScalar=!0,a.closed||a.add(f.schedule(d,0,{value:c,subscriber:a}))},function(b){a.closed||a.add(f.schedule(e,0,{err:b,subscriber:a}))}).then(null,function(a){g.root.setTimeout(function(){throw a})})},b}(h.Observable);return b.PromiseObservable=i,c.exports}),a.registerDynamic("26",["14"],!0,function(a,b,c){"use strict";var d=(this||self,a("14"));return b.fromPromise=d.PromiseObservable.create,c.exports}),a.registerDynamic("25",[],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=function(a){function b(){var b=a.call(this,"no elements in sequence");this.name=b.name="EmptyError",this.stack=b.stack,this.message=b.message}return d(b,a),b}(Error);return b.EmptyError=e,c.exports}),a.registerDynamic("27",["10","25"],!0,function(a,b,c){"use strict";function d(a,b,c){return this.lift(new h(a,b,c,this))}var e=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=a("10"),g=a("25");b.last=d;var h=function(){function a(a,b,c,d){this.predicate=a,this.resultSelector=b,this.defaultValue=c,this.source=d}return a.prototype.call=function(a,b){return b._subscribe(new i(a,this.predicate,this.resultSelector,this.defaultValue,this.source))},a}(),i=function(a){function b(b,c,d,e,f){a.call(this,b),this.predicate=c,this.resultSelector=d,this.defaultValue=e,this.source=f,this.hasValue=!1,this.index=0,"undefined"!=typeof e&&(this.lastValue=e,this.hasValue=!0)}return e(b,a),b.prototype._next=function(a){var b=this.index++;if(this.predicate)this._tryPredicate(a,b);else{if(this.resultSelector)return void this._tryResultSelector(a,b);this.lastValue=a,this.hasValue=!0}},b.prototype._tryPredicate=function(a,b){var c;try{c=this.predicate(a,b,this.source)}catch(a){return void this.destination.error(a)}if(c){if(this.resultSelector)return void this._tryResultSelector(a,b);this.lastValue=a,this.hasValue=!0}},b.prototype._tryResultSelector=function(a,b){var c;try{c=this.resultSelector(a,b)}catch(a){return void this.destination.error(a)}this.lastValue=c,this.hasValue=!0},b.prototype._complete=function(){var a=this.destination;this.hasValue?(a.next(this.lastValue),a.complete()):a.error(new g.EmptyError)},b}(f.Subscriber);return c.exports}),a.registerDynamic("28",["29","2a"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=a("29"),f=a("2a"),g=function(a){function b(b){a.call(this),this._value=b}return d(b,a),Object.defineProperty(b.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),b.prototype._subscribe=function(b){var c=a.prototype._subscribe.call(this,b);return c&&!c.closed&&b.next(this._value),c},b.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new f.ObjectUnsubscribedError;return this._value},b.prototype.next=function(b){a.prototype.next.call(this,this._value=b)},b}(e.Subject);return b.BehaviorSubject=g,c.exports}),a.registerDynamic("2b",["10"],!0,function(a,b,c){"use strict";function d(a,b){return this.lift(new g(a,b))}var e=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=a("10");b.filter=d;var g=function(){function a(a,b){this.predicate=a,this.thisArg=b}return a.prototype.call=function(a,b){return b._subscribe(new h(a,this.predicate,this.thisArg))},a}(),h=function(a){function b(b,c,d){a.call(this,b),this.predicate=c,this.thisArg=d,this.count=0,this.predicate=c}return e(b,a),b.prototype._next=function(a){var b;try{b=this.predicate.call(this.thisArg,a,this.count++)}catch(a){return void this.destination.error(a)}b&&this.destination.next(a)},b}(f.Subscriber);return c.exports}),function(){var e=a.amdDefine;!function(a,f){"object"==typeof c&&"undefined"!=typeof d?f(c,b("@angular/common"),b("@angular/core"),b("rxjs/Subject"),b("rxjs/observable/from"),b("rxjs/observable/of"),b("rxjs/operator/concatMap"),b("rxjs/operator/every"),b("rxjs/operator/map"),b("rxjs/operator/mergeAll"),b("rxjs/operator/mergeMap"),b("rxjs/operator/reduce"),b("rxjs/Observable"),b("rxjs/operator/catch"),b("rxjs/operator/concatAll"),b("rxjs/operator/first"),b("rxjs/util/EmptyError"),b("rxjs/observable/fromPromise"),b("rxjs/operator/last"),b("rxjs/BehaviorSubject"),b("rxjs/operator/filter")):"function"==typeof e&&e.amd?e("2c",["exports","2d","3","29","17","19","1a","1c","2e","22","1b","1f","9","20","23","24","25","26","27","28","2b"],f):f((a.ng=a.ng||{},a.ng.router=a.ng.router||{}),a.ng.common,a.ng.core,a.Rx,a.Rx.Observable,a.Rx.Observable,a.rxjs_operator_concatMap,a.Rx.Observable.prototype,a.Rx.Observable.prototype,a.Rx.Observable.prototype,a.Rx.Observable.prototype,a.Rx.Observable.prototype,a.Rx,a.Rx.Observable.prototype,a.Rx.Observable.prototype,a.Rx.Observable.prototype,a.Rx,a.Rx.Observable,a.Rx.Observable.prototype,a.Rx,a.Rx.Observable.prototype)}(this,function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){"use strict";function v(a,b){if(a.length!==b.length)return!1;for(var c=0;c<a.length;++c)if(!w(a[c],b[c]))return!1;return!0}function w(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e,f=0;f<c.length;f++)if(e=c[f],a[e]!==b[e])return!1;return!0}function x(a){for(var b=[],c=0;c<a.length;++c)for(var d=0;d<a[c].length;++d)b.push(a[c][d]);return b}function y(a){return a.length>0?a[a.length-1]:null}function z(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c}function A(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)}function B(a,b){var c=[],d={};if(A(a,function(a,e){e===vb&&c.push(i.map.call(b(e,a),function(a){return d[e]=a,a}))}),A(a,function(a,e){e!==vb&&c.push(i.map.call(b(e,a),function(a){return d[e]=a,a}))}),c.length>0){var e=o.concatAll.call(f.of.apply(void 0,c)),g=s.last.call(e);return i.map.call(g,function(){return d})}return f.of(d)}function C(a){var b=j.mergeAll.call(a);return h.every.call(b,function(a){return a===!0})}function D(a){return a instanceof m.Observable?a:a instanceof Promise?r.fromPromise(a):f.of(a)}function E(){return new Ab(new Bb([],{}),{},null)}function F(a,b,c){return c?G(a.root,b.root):H(a.root,b.root)}function G(a,b){if(!J(a.segments,b.segments))return!1;if(a.numberOfChildren!==b.numberOfChildren)return!1;for(var c in b.children){if(!a.children[c])return!1;if(!G(a.children[c],b.children[c]))return!1}return!0}function H(a,b){return I(a,b,b.segments)}function I(a,b,c){if(a.segments.length>c.length){var d=a.segments.slice(0,c.length);return!!J(d,c)&&!b.hasChildren()}if(a.segments.length===c.length){if(!J(a.segments,c))return!1;for(var e in b.children){if(!a.children[e])return!1;if(!H(a.children[e],b.children[e]))return!1}return!0}var d=c.slice(0,a.segments.length),f=c.slice(a.segments.length);return!!J(a.segments,d)&&(!!a.children[vb]&&I(a.children[vb],b,f))}function J(a,b){if(a.length!==b.length)return!1;for(var c=0;c<a.length;++c)if(a[c].path!==b[c].path)return!1;return!0}function K(a,b){var c=[];return A(a.children,function(a,d){d===vb&&(c=c.concat(b(a,d)))}),A(a.children,function(a,d){d!==vb&&(c=c.concat(b(a,d)))}),c}function L(a){return a.segments.map(function(a){return P(a)}).join("/")}function M(a,b){if(a.hasChildren()&&b){var c=a.children[vb]?M(a.children[vb],!1):"",d=[];return A(a.children,function(a,b){b!==vb&&d.push(b+":"+M(a,!1))}),d.length>0?c+"("+d.join("//")+")":""+c}if(a.hasChildren()&&!b){var e=K(a,function(b,c){return c===vb?[M(a.children[vb],!1)]:[c+":"+M(b,!1)]});return L(a)+"/("+e.join("//")+")"}return L(a)}function N(a){return encodeURIComponent(a)}function O(a){return decodeURIComponent(a)}function P(a){return""+N(a.path)+Q(a.parameters)}function Q(a){return S(a).map(function(a){return";"+N(a.first)+"="+N(a.second)}).join("")}function R(a){var b=S(a).map(function(a){return N(a.first)+"="+N(a.second)});return b.length>0?"?"+b.join("&"):""}function S(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(new Fb(c,a[c]));return b}function T(a){Gb.lastIndex=0;var b=a.match(Gb);return b?b[0]:""}function U(a){Hb.lastIndex=0;var b=a.match(Gb);return b?b[0]:""}function V(a){Ib.lastIndex=0;var b=a.match(Ib);return b?b[0]:""}function W(a){return new m.Observable(function(b){return b.error(new Kb(a))})}function X(a){return new m.Observable(function(b){return b.error(new Lb(a))})}function Y(a){return new m.Observable(function(b){return b.error(new wb("Cannot load children because the guard of the route \"path: '"+a.path+"'\" returned false"))})}function Z(a,b,c,d){return new Mb(a,b,c,d).apply()}function $(a,b){var c=b.canLoad;if(!c||0===c.length)return f.of(!0);var d=i.map.call(e.from(c),function(c){var d=a.get(c);return D(d.canLoad?d.canLoad(b):d(b))});return C(d)}function _(a,b,c){var d={matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}};if(""===b.path)return"full"===b.pathMatch&&(a.hasChildren()||c.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};for(var e=b.path,f=e.split("/"),g={},h=[],i=0,j=0;j<f.length;++j){if(i>=c.length)return d;var k=c[i],l=f[j],m=l.startsWith(":");if(!m&&l!==k.path)return d;m&&(g[l.substring(1)]=k),h.push(k),i++}return"full"===b.pathMatch&&(a.hasChildren()||i<c.length)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:h,lastChild:i,positionalParamSegments:g}}function aa(a,b,c){var d=b.startsWith("/")?b.substring(1):b;return""===d?[]:ba(b,d.split("/"),a,c)}function ba(a,b,c,d){return b.map(function(b){return b.startsWith(":")?ca(b,d,a):da(b,c)})}function ca(a,b,c){var d=a.substring(1),e=b[d];if(!e)throw new Error("Cannot redirect to '"+c+"'. Cannot find '"+a+"'.");return e}function da(a,b){for(var c=0,d=0,e=b;d<e.length;d++){var f=e[d];if(f.path===a)return b.splice(c),f;c++}return new Cb(a,{})}function ea(a,b,c,d){if(c.length>0&&ia(a,c,d)){var e=new Bb(b,ha(d,new Bb(c,a.children)));return{segmentGroup:fa(e),slicedSegments:[]}}if(0===c.length&&ja(a,c,d)){var e=new Bb(a.segments,ga(a,c,d,a.children));return{segmentGroup:fa(e),slicedSegments:c}}return{segmentGroup:a,slicedSegments:c}}function fa(a){if(1===a.numberOfChildren&&a.children[vb]){var b=a.children[vb];return new Bb(a.segments.concat(b.segments),b.children)}return a}function ga(a,b,c,d){for(var e={},f=0,g=c;f<g.length;f++){var h=g[f];ka(a,b,h)&&!d[la(h)]&&(e[la(h)]=new Bb([],{}))}return z(d,e)}function ha(a,b){var c={};c[vb]=b;for(var d=0,e=a;d<e.length;d++){var f=e[d];""===f.path&&la(f)!==vb&&(c[la(f)]=new Bb([],{}))}return c}function ia(a,b,c){return c.filter(function(c){return ka(a,b,c)&&la(c)!==vb}).length>0}function ja(a,b,c){return c.filter(function(c){return ka(a,b,c)}).length>0}function ka(a,b,c){return(!(a.hasChildren()||b.length>0)||"full"!==c.pathMatch)&&(""===c.path&&void 0!==c.redirectTo)}function la(a){return a.outlet?a.outlet:vb}function ma(a){a.forEach(na)}function na(a){if(Array.isArray(a))throw new Error("Invalid route configuration: Array cannot be specified");if(void 0===a.component&&a.outlet&&a.outlet!==vb)throw new Error("Invalid route configuration of route '"+a.path+"': a componentless route cannot have a named outlet set");if(a.redirectTo&&a.children)throw new Error("Invalid configuration of route '"+a.path+"': redirectTo and children cannot be used together");if(a.redirectTo&&a.loadChildren)throw new Error("Invalid configuration of route '"+a.path+"': redirectTo and loadChildren cannot be used together");if(a.children&&a.loadChildren)throw new Error("Invalid configuration of route '"+a.path+"': children and loadChildren cannot be used together");if(a.redirectTo&&a.component)throw new Error("Invalid configuration of route '"+a.path+"': redirectTo and component cannot be used together");if(void 0===a.redirectTo&&!a.component&&!a.children&&!a.loadChildren)throw new Error("Invalid configuration of route '"+a.path+"': one of the following must be provided (component or redirectTo or children or loadChildren)");if(void 0===a.path)throw new Error("Invalid route configuration: routes must have path specified");if(a.path.startsWith("/"))throw new Error("Invalid route configuration of route '"+a.path+"': path cannot start with a slash");if(""===a.path&&void 0!==a.redirectTo&&void 0===a.pathMatch){var b="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error("Invalid route configuration of route '{path: \""+a.path+'", redirectTo: "'+a.redirectTo+"\"}': please provide 'pathMatch'. "+b)}if(void 0!==a.pathMatch&&"full"!==a.pathMatch&&"prefix"!==a.pathMatch)throw new Error("Invalid configuration of route '"+a.path+"': pathMatch can only be set to 'prefix' or 'full'")}function oa(a,b){if(a===b.value)return b;for(var c=0,d=b.children;c<d.length;c++){var e=d[c],f=oa(a,e);if(f)return f}return null}function pa(a,b,c){if(c.push(b),a===b.value)return c;for(var d=0,e=b.children;d<e.length;d++){var f=e[d],g=c.slice(0),h=pa(a,f,g);if(h.length>0)return h}return[]}function qa(a,b){var c=ra(a,b),d=new t.BehaviorSubject([new Cb("",{})]),e=new t.BehaviorSubject({}),f=new t.BehaviorSubject({}),g=new t.BehaviorSubject({}),h=new t.BehaviorSubject(""),i=new Rb(d,e,g,h,f,vb,b,c.root);return i.snapshot=c.root,new Qb(new Ob(i,[]),c)}function ra(a,b){var c={},d={},e={},f="",g=new Sb([],c,e,f,d,vb,b,null,a.root,-1,{});return new Tb("",new Ob(g,[]))}function sa(a){for(var b=a.pathFromRoot,c=b.length-1;c>=1;){var d=b[c],e=b[c-1];if(d.routeConfig&&""===d.routeConfig.path)c--;else{if(e.component)break;c--}}return b.slice(c).reduce(function(a,b){var c=z(a.params,b.params),d=z(a.data,b.data),e=z(a.resolve,b._resolvedData);return{params:c,data:d,resolve:e}},{params:{},data:{},resolve:{}})}function ta(a,b){b.value._routerState=a,b.children.forEach(function(b){return ta(a,b)})}function ua(a){var b=a.children.length>0?" { "+a.children.map(ua).join(", ")+" } ":"";return""+a.value+b}function va(a){a.snapshot?(w(a.snapshot.queryParams,a._futureSnapshot.queryParams)||a.queryParams.next(a._futureSnapshot.queryParams),a.snapshot.fragment!==a._futureSnapshot.fragment&&a.fragment.next(a._futureSnapshot.fragment),w(a.snapshot.params,a._futureSnapshot.params)||(a.params.next(a._futureSnapshot.params),a.data.next(a._futureSnapshot.data)),v(a.snapshot.url,a._futureSnapshot.url)||a.url.next(a._futureSnapshot.url),a.snapshot=a._futureSnapshot):(a.snapshot=a._futureSnapshot,a.data.next(a._futureSnapshot.data))}function wa(a,b){var c=xa(a._root,b?b._root:void 0);return new Qb(c,a)}function xa(a,b){if(b&&Aa(b.value.snapshot,a.value)){var c=b.value;c._futureSnapshot=a.value;var d=ya(a,b);return new Ob(c,d)}var c=za(a.value),d=a.children.map(function(a){return xa(a)});return new Ob(c,d)}function ya(a,b){return a.children.map(function(a){for(var c=0,d=b.children;c<d.length;c++){var e=d[c];if(Aa(e.value.snapshot,a.value))return xa(a,e)}return xa(a)})}function za(a){return new Rb(new t.BehaviorSubject(a.url),new t.BehaviorSubject(a.params),new t.BehaviorSubject(a.queryParams),new t.BehaviorSubject(a.fragment),new t.BehaviorSubject(a.data),a.outlet,a.component,a)}function Aa(a,b){return a._routeConfig===b._routeConfig}function Ba(a,b,c,d,e){if(0===c.length)return Ea(b.root,b.root,b,d,e);var f=Ha(c);if(Ca(f),Ga(f))return Ea(b.root,new Bb([],{}),b,d,e);var g=Ia(f,b,a),h=g.processChildren?Na(g.segmentGroup,g.index,f.commands):Ma(g.segmentGroup,g.index,f.commands);return Ea(g.segmentGroup,h,b,d,e)}function Ca(a){if(a.isAbsolute&&a.commands.length>0&&Da(a.commands[0]))throw new Error("Root segment cannot have matrix parameters");var b=a.commands.filter(function(a){return"object"==typeof a&&void 0!==a.outlets});if(b.length>0&&b[0]!==a.commands[a.commands.length-1])throw new Error("{outlets:{}} has to be the last command")}function Da(a){return"object"==typeof a&&void 0===a.outlets&&void 0===a.segmentPath}function Ea(a,b,c,d,e){return c.root===a?new Ab(b,Ra(d),e):new Ab(Fa(c.root,a,b),Ra(d),e)}function Fa(a,b,c){var d={};return A(a.children,function(a,e){a===b?d[e]=c:d[e]=Fa(a,b,c)}),new Bb(a.segments,d)}function Ga(a){return a.isAbsolute&&1===a.commands.length&&"/"==a.commands[0]}function Ha(a){if("string"==typeof a[0]&&1===a.length&&"/"==a[0])return new Ub(!0,0,a);for(var b=0,c=!1,d=[],e=function(e){var f=a[e];if("object"==typeof f&&void 0!==f.outlets){var g={};return A(f.outlets,function(a,b){"string"==typeof a?g[b]=a.split("/"):g[b]=a}),d.push({outlets:g}),"continue"}if("object"==typeof f&&void 0!==f.segmentPath)return d.push(f.segmentPath),"continue";if("string"!=typeof f)return d.push(f),"continue";if(0===e)for(var h=f.split("/"),i=0;i<h.length;++i){var j=h[i];0==i&&"."==j||(0==i&&""==j?c=!0:".."==j?b++:""!=j&&d.push(j))}else d.push(f)},f=0;f<a.length;++f)e(f);return new Ub(c,b,d)}function Ia(a,b,c){if(a.isAbsolute)return new Vb(b.root,!0,0);if(c.snapshot._lastPathIndex===-1)return new Vb(c.snapshot._urlSegment,!0,0);var d=Da(a.commands[0])?0:1,e=c.snapshot._lastPathIndex+d;return Ja(c.snapshot._urlSegment,e,a.numberOfDoubleDots)}function Ja(a,b,c){for(var d=a,e=b,f=c;f>e;){if(f-=e,d=d.parent,!d)throw new Error("Invalid number of '../'");e=d.segments.length}return new Vb(d,!1,e-f)}function Ka(a){return"object"==typeof a&&a.outlets?a.outlets[vb]:""+a}function La(a){return"object"!=typeof a[0]?(b={},b[vb]=a,b):void 0===a[0].outlets?(c={},c[vb]=a,c):a[0].outlets;var b,c}function Ma(a,b,c){if(a||(a=new Bb([],{})),0===a.segments.length&&a.hasChildren())return Na(a,b,c);var d=Oa(a,b,c),e=c.slice(d.commandIndex);if(d.match&&d.pathIndex<a.segments.length){var f=new Bb(a.segments.slice(0,d.pathIndex),{});return f.children[vb]=new Bb(a.segments.slice(d.pathIndex),a.children),Na(f,0,e)}return d.match&&0===e.length?new Bb(a.segments,{}):d.match&&!a.hasChildren()?Pa(a,b,c):d.match?Na(a,0,e):Pa(a,b,c)}function Na(a,b,c){if(0===c.length)return new Bb(a.segments,{});var d=La(c),e={};return A(d,function(c,d){null!==c&&(e[d]=Ma(a.children[d],b,c))}),A(a.children,function(a,b){void 0===d[b]&&(e[b]=a)}),new Bb(a.segments,e)}function Oa(a,b,c){for(var d=0,e=b,f={match:!1,pathIndex:0,commandIndex:0};e<a.segments.length;){if(d>=c.length)return f;var g=a.segments[e],h=Ka(c[d]),i=d<c.length-1?c[d+1]:null;if(e>0&&void 0===h)break;if(h&&i&&"object"==typeof i&&void 0===i.outlets){if(!Sa(h,i,g))return f;d+=2}else{if(!Sa(h,{},g))return f;d++}e++}return{match:!0,pathIndex:e,commandIndex:d}}function Pa(a,b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){if("object"==typeof c[e]&&void 0!==c[e].outlets){var f=Qa(c[e].outlets);return new Bb(d,f)}if(0===e&&Da(c[0])){var g=a.segments[b];d.push(new Cb(g.path,c[0])),e++}else{var h=Ka(c[e]),i=e<c.length-1?c[e+1]:null;h&&i&&Da(i)?(d.push(new Cb(h,Ra(i))),e+=2):(d.push(new Cb(h,{})),e++)}}return new Bb(d,{})}function Qa(a){var b={};return A(a,function(a,c){null!==a&&(b[c]=Pa(new Bb([],{}),0,a))}),b}function Ra(a){var b={};return A(a,function(a,c){return b[c]=""+a}),b}function Sa(a,b,c){return a==c.path&&w(b,c.parameters)}function Ta(a,b,c,d){return new Xb(a,b,c,d).recognize()}function Ua(a){a.sort(function(a,b){return a.value.outlet===vb?-1:b.value.outlet===vb?1:a.value.outlet.localeCompare(b.value.outlet)})}function Va(a){return a.children?a.children:a.loadChildren?a._loadedConfig.routes:[]}function Wa(a,b,c){if(""===b.path){if("full"===b.pathMatch&&(a.hasChildren()||c.length>0))throw new Wb;return{consumedSegments:[],lastChild:0,parameters:{}}}for(var d=b.path,e=d.split("/"),f={},g=[],h=0,i=0;i<e.length;++i){if(h>=c.length)throw new Wb;
  var j=c[h],k=e[i],l=k.startsWith(":");if(!l&&k!==j.path)throw new Wb;l&&(f[k.substring(1)]=j.path),g.push(j),h++}if("full"===b.pathMatch&&(a.hasChildren()||h<c.length))throw new Wb;var m=z(f,g[g.length-1].parameters);return{consumedSegments:g,lastChild:h,parameters:m}}function Xa(a){var b={};a.forEach(function(a){var c=b[a.value.outlet];if(c){var d=c.url.map(function(a){return a.toString()}).join("/"),e=a.value.url.map(function(a){return a.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+d+"' and '"+e+"'.")}b[a.value.outlet]=a.value})}function Ya(a){for(var b=a;b._sourceSegment;)b=b._sourceSegment;return b}function Za(a){for(var b=a,c=b._segmentIndexShift?b._segmentIndexShift:0;b._sourceSegment;)b=b._sourceSegment,c+=b._segmentIndexShift?b._segmentIndexShift:0;return c-1}function $a(a,b,c,d){if(c.length>0&&bb(a,c,d)){var e=new Bb(b,ab(a,b,d,new Bb(c,a.children)));return e._sourceSegment=a,e._segmentIndexShift=b.length,{segmentGroup:e,slicedSegments:[]}}if(0===c.length&&cb(a,c,d)){var e=new Bb(a.segments,_a(a,c,d,a.children));return e._sourceSegment=a,e._segmentIndexShift=b.length,{segmentGroup:e,slicedSegments:c}}var e=new Bb(a.segments,a.children);return e._sourceSegment=a,e._segmentIndexShift=b.length,{segmentGroup:e,slicedSegments:c}}function _a(a,b,c,d){for(var e={},f=0,g=c;f<g.length;f++){var h=g[f];if(db(a,b,h)&&!d[eb(h)]){var i=new Bb([],{});i._sourceSegment=a,i._segmentIndexShift=a.segments.length,e[eb(h)]=i}}return z(d,e)}function ab(a,b,c,d){var e={};e[vb]=d,d._sourceSegment=a,d._segmentIndexShift=b.length;for(var f=0,g=c;f<g.length;f++){var h=g[f];if(""===h.path&&eb(h)!==vb){var i=new Bb([],{});i._sourceSegment=a,i._segmentIndexShift=b.length,e[eb(h)]=i}}return e}function bb(a,b,c){return c.filter(function(c){return db(a,b,c)&&eb(c)!==vb}).length>0}function cb(a,b,c){return c.filter(function(c){return db(a,b,c)}).length>0}function db(a,b,c){return(!(a.hasChildren()||b.length>0)||"full"!==c.pathMatch)&&(""===c.path&&void 0===c.redirectTo)}function eb(a){return a.outlet?a.outlet:vb}function fb(a){return a.data?a.data:{}}function gb(a){return a.resolve?a.resolve:{}}function hb(a){throw a}function ib(a){for(var b=a.parent;b;){var c=b._routeConfig;if(c&&c._loadedConfig)return c._loadedConfig;if(c&&c.component)return null;b=b.parent}return null}function jb(a){if(!a)return null;for(var b=a.parent;b;){var c=b._routeConfig;if(c&&c._loadedConfig)return c._loadedConfig;b=b.parent}return null}function kb(a){return a?a.children.reduce(function(a,b){return a[b.value.outlet]=b,a},{}):{}}function lb(a,b){var c=a._outlets[b.outlet];if(!c){var d=b.component.name;throw b.outlet===vb?new Error("Cannot find primary outlet to load '"+d+"'"):new Error("Cannot find the outlet "+b.outlet+" to load '"+d+"'")}return c}function mb(a){return""===a||!!a}function nb(a,c,d){return void 0===d&&(d={}),d.useHash?new b.HashLocationStrategy(a,c):new b.PathLocationStrategy(a,c)}function ob(a){if(a)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function pb(a){return[{provide:c.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:a},{provide:xb,multi:!0,useValue:a}]}function qb(a,b,c,d,e,f,g,h,i){void 0===i&&(i={});var j=new cc(null,b,c,d,e,f,g,x(h));return i.errorHandler&&(j.errorHandler=i.errorHandler),i.enableTracing&&j.events.subscribe(function(a){console.group("Router Event: "+a.constructor.name),console.log(a.toString()),console.log(a),console.groupEnd()}),j}function rb(a){return a.routerState.root}function sb(a,b,c,d){return function(){a.resetRootComponentType(b.componentTypes[0]),c.setUpPreloading(),d.initialNavigation===!1?a.setUpLocationChangeListener():a.initialNavigation()}}function tb(){return{provide:c.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:sb,deps:[cc,c.ApplicationRef,oc,qc]}}var ub=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},vb="primary",wb=function(a){function b(b){a.call(this,b),this.message=b,this.stack=new Error(b).stack}return ub(b,a),b.prototype.toString=function(){return this.message},b}(Error),xb=new c.OpaqueToken("ROUTES"),yb=function(){function a(a,b,c){this.routes=a,this.injector=b,this.factoryResolver=c}return a}(),zb=function(){function a(a,b){this.loader=a,this.compiler=b}return a.prototype.load=function(a,b){return i.map.call(this.loadModuleFactory(b),function(b){var c=b.create(a);return new yb(x(c.injector.get(xb)),c.injector,c.componentFactoryResolver)})},a.prototype.loadModuleFactory=function(a){var b=this;if("string"==typeof a)return r.fromPromise(this.loader.load(a));var d=this.compiler instanceof c.Compiler;return k.mergeMap.call(D(a()),function(a){return d?f.of(a):r.fromPromise(b.compiler.compileModuleAsync(a))})},a}(),Ab=function(){function a(a,b,c){this.root=a,this.queryParams=b,this.fragment=c}return a.prototype.toString=function(){return(new Eb).serialize(this)},a}(),Bb=function(){function a(a,b){var c=this;this.segments=a,this.children=b,this.parent=null,A(b,function(a,b){return a.parent=c})}return a.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(a.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),a.prototype.toString=function(){return L(this)},a}(),Cb=function(){function a(a,b){this.path=a,this.parameters=b}return a.prototype.toString=function(){return P(this)},a}(),Db=function(){function a(){}return a}(),Eb=function(){function a(){}return a.prototype.parse=function(a){var b=new Jb(a);return new Ab(b.parseRootSegment(),b.parseQueryParams(),b.parseFragment())},a.prototype.serialize=function(a){var b="/"+M(a.root,!0),c=R(a.queryParams),d=null!==a.fragment&&void 0!==a.fragment?"#"+encodeURI(a.fragment):"";return""+b+c+d},a}(),Fb=function(){function a(a,b){this.first=a,this.second=b}return a}(),Gb=/^[^\/\(\)\?;=&#]+/,Hb=/^[^=\?&#]+/,Ib=/^[^\?&#]+/,Jb=function(){function a(a){this.url=a,this.remaining=a}return a.prototype.peekStartsWith=function(a){return this.remaining.startsWith(a)},a.prototype.capture=function(a){if(!this.remaining.startsWith(a))throw new Error('Expected "'+a+'".');this.remaining=this.remaining.substring(a.length)},a.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new Bb([],{}):new Bb([],this.parseChildren())},a.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var a=[];for(this.peekStartsWith("(")||a.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegments());var b={};this.peekStartsWith("/(")&&(this.capture("/"),b=this.parseParens(!0));var c={};return this.peekStartsWith("(")&&(c=this.parseParens(!1)),(a.length>0||Object.keys(b).length>0)&&(c[vb]=new Bb(a,b)),c},a.prototype.parseSegments=function(){var a=T(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(a);var b={};return this.peekStartsWith(";")&&(b=this.parseMatrixParams()),new Cb(O(a),b)},a.prototype.parseQueryParams=function(){var a={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(a);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(a);return a},a.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURI(this.remaining.substring(1)):null},a.prototype.parseMatrixParams=function(){for(var a={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(a);return a},a.prototype.parseParam=function(a){var b=T(this.remaining);if(b){this.capture(b);var c="";if(this.peekStartsWith("=")){this.capture("=");var d=T(this.remaining);d&&(c=d,this.capture(c))}a[O(b)]=O(c)}},a.prototype.parseQueryParam=function(a){var b=U(this.remaining);if(b){this.capture(b);var c="";if(this.peekStartsWith("=")){this.capture("=");var d=V(this.remaining);d&&(c=d,this.capture(c))}a[O(b)]=O(c)}},a.prototype.parseParens=function(a){var b={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var c=T(this.remaining),d=this.remaining[c.length];if("/"!==d&&")"!==d&&";"!==d)throw new Error("Cannot parse url '"+this.url+"'");var e=void 0;c.indexOf(":")>-1?(e=c.substr(0,c.indexOf(":")),this.capture(e),this.capture(":")):a&&(e=vb);var f=this.parseChildren();b[e]=1===Object.keys(f).length?f[vb]:new Bb([],f),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),b},a}(),Kb=function(){function a(a){void 0===a&&(a=null),this.segmentGroup=a}return a}(),Lb=function(){function a(a){this.segments=a}return a}(),Mb=function(){function a(a,b,c,d){this.injector=a,this.configLoader=b,this.urlTree=c,this.config=d,this.allowRedirects=!0}return a.prototype.apply=function(){var a=this,b=this.expandSegmentGroup(this.injector,this.config,this.urlTree.root,vb),c=i.map.call(b,function(b){return a.createUrlTree(b)});return n._catch.call(c,function(b){if(b instanceof Lb){a.allowRedirects=!1;var c=new Bb([],(d={},d[vb]=new Bb(b.segments,{}),d));return a.match(c)}throw b instanceof Kb?a.noMatchError(b):b;var d})},a.prototype.match=function(a){var b=this,c=this.expandSegmentGroup(this.injector,this.config,a,vb),d=i.map.call(c,function(a){return b.createUrlTree(a)});return n._catch.call(d,function(a){throw a instanceof Kb?b.noMatchError(a):a})},a.prototype.noMatchError=function(a){return new Error("Cannot match any routes. URL Segment: '"+a.segmentGroup+"'")},a.prototype.createUrlTree=function(a){var b=a.segments.length>0?new Bb([],(c={},c[vb]=a,c)):a;return new Ab(b,this.urlTree.queryParams,this.urlTree.fragment);var c},a.prototype.expandSegmentGroup=function(a,b,c,d){return 0===c.segments.length&&c.hasChildren()?i.map.call(this.expandChildren(a,b,c),function(a){return new Bb([],a)}):this.expandSegment(a,c,b,c.segments,d,!0)},a.prototype.expandChildren=function(a,b,c){var d=this;return B(c.children,function(c,e){return d.expandSegmentGroup(a,b,e,c)})},a.prototype.expandSegment=function(a,b,c,d,e,g){var h=this,j=f.of.apply(void 0,c),k=i.map.call(j,function(i){var j=h.expandSegmentAgainstRoute(a,b,c,i,d,e,g);return n._catch.call(j,function(a){if(a instanceof Kb)return f.of(null);throw a})}),l=o.concatAll.call(k),m=p.first.call(l,function(a){return!!a});return n._catch.call(m,function(a,c){throw a instanceof q.EmptyError?new Kb(b):a})},a.prototype.expandSegmentAgainstRoute=function(a,b,c,d,e,f,g){return la(d)!==f?W(b):void 0===d.redirectTo||g&&this.allowRedirects?void 0===d.redirectTo?this.matchSegmentAgainstRoute(a,b,d,e):this.expandSegmentAgainstRouteUsingRedirect(a,b,c,d,e,f):W(b)},a.prototype.expandSegmentAgainstRouteUsingRedirect=function(a,b,c,d,e,f){return"**"===d.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,c,d,f):this.expandRegularSegmentAgainstRouteUsingRedirect(a,b,c,d,e,f)},a.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(a,b,c,d){var e=aa([],c.redirectTo,{});if(c.redirectTo.startsWith("/"))return X(e);var f=new Bb(e,{});return this.expandSegment(a,f,b,e,d,!1)},a.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(a,b,c,d,e,f){var g=_(b,d,e),h=g.matched,i=g.consumedSegments,j=g.lastChild,k=g.positionalParamSegments;if(!h)return W(b);var l=aa(i,d.redirectTo,k);return d.redirectTo.startsWith("/")?X(l):this.expandSegment(a,b,c,l.concat(e.slice(j)),f,!1)},a.prototype.matchSegmentAgainstRoute=function(a,b,c,d){var e=this;if("**"===c.path)return c.loadChildren?i.map.call(this.configLoader.load(a,c.loadChildren),function(a){return c._loadedConfig=a,f.of(new Bb(d,{}))}):f.of(new Bb(d,{}));var g=_(b,c,d),h=g.matched,j=g.consumedSegments,l=g.lastChild;if(!h)return W(b);var m=d.slice(l),n=this.getChildConfig(a,c);return k.mergeMap.call(n,function(a){var c=a.injector,d=a.routes,g=ea(b,j,m,d),h=g.segmentGroup,k=g.slicedSegments;if(0===k.length&&h.hasChildren()){var l=e.expandChildren(c,d,h);return i.map.call(l,function(a){return new Bb(j,a)})}if(0===d.length&&0===k.length)return f.of(new Bb(j,{}));var l=e.expandSegment(c,h,d,k,vb,!0);return i.map.call(l,function(a){return new Bb(j.concat(a.segments),a.children)})})},a.prototype.getChildConfig=function(a,b){var c=this;return b.children?f.of(new yb(b.children,a,null)):b.loadChildren?k.mergeMap.call($(a,b),function(d){return d?b._loadedConfig?f.of(b._loadedConfig):i.map.call(c.configLoader.load(a,b.loadChildren),function(a){return b._loadedConfig=a,a}):Y(b)}):f.of(new yb([],a,null))},a}(),Nb=function(){function a(a){this._root=a}return Object.defineProperty(a.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),a.prototype.parent=function(a){var b=this.pathFromRoot(a);return b.length>1?b[b.length-2]:null},a.prototype.children=function(a){var b=oa(a,this._root);return b?b.children.map(function(a){return a.value}):[]},a.prototype.firstChild=function(a){var b=oa(a,this._root);return b&&b.children.length>0?b.children[0].value:null},a.prototype.siblings=function(a){var b=pa(a,this._root,[]);if(b.length<2)return[];var c=b[b.length-2].children.map(function(a){return a.value});return c.filter(function(b){return b!==a})},a.prototype.pathFromRoot=function(a){return pa(a,this._root,[]).map(function(a){return a.value})},a}(),Ob=function(){function a(a,b){this.value=a,this.children=b}return a.prototype.toString=function(){return"TreeNode("+this.value+")"},a}(),Pb=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Qb=function(a){function b(b,c){a.call(this,b),this.snapshot=c,ta(this,b)}return Pb(b,a),b.prototype.toString=function(){return this.snapshot.toString()},b}(Nb),Rb=function(){function a(a,b,c,d,e,f,g,h){this.url=a,this.params=b,this.queryParams=c,this.fragment=d,this.data=e,this.outlet=f,this.component=g,this._futureSnapshot=h}return Object.defineProperty(a.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),a.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},a}(),Sb=function(){function a(a,b,c,d,e,f,g,h,i,j,k){this.url=a,this.params=b,this.queryParams=c,this.fragment=d,this.data=e,this.outlet=f,this.component=g,this._routeConfig=h,this._urlSegment=i,this._lastPathIndex=j,this._resolve=k}return Object.defineProperty(a.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),a.prototype.toString=function(){var a=this.url.map(function(a){return a.toString()}).join("/"),b=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+a+"', path:'"+b+"')"},a}(),Tb=function(a){function b(b,c){a.call(this,c),this.url=b,ta(this,c)}return Pb(b,a),b.prototype.toString=function(){return ua(this._root)},b}(Nb),Ub=function(){function a(a,b,c){this.isAbsolute=a,this.numberOfDoubleDots=b,this.commands=c}return a}(),Vb=function(){function a(a,b,c){this.segmentGroup=a,this.processChildren=b,this.index=c}return a}(),Wb=function(){function a(){}return a}(),Xb=function(){function a(a,b,c,d){this.rootComponentType=a,this.config=b,this.urlTree=c,this.url=d}return a.prototype.recognize=function(){try{var a=$a(this.urlTree.root,[],[],this.config).segmentGroup,b=this.processSegmentGroup(this.config,a,vb),c=new Sb([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},vb,this.rootComponentType,null,this.urlTree.root,-1,{}),d=new Ob(c,b),e=new Tb(this.url,d);return this.inheriteParamsAndData(e._root),f.of(e)}catch(a){return new m.Observable(function(b){return b.error(a)})}},a.prototype.inheriteParamsAndData=function(a){var b=this,c=a.value,d=sa(c);c.params=Object.freeze(d.params),c.data=Object.freeze(d.data),a.children.forEach(function(a){return b.inheriteParamsAndData(a)})},a.prototype.processSegmentGroup=function(a,b,c){return 0===b.segments.length&&b.hasChildren()?this.processChildren(a,b):this.processSegment(a,b,0,b.segments,c)},a.prototype.processChildren=function(a,b){var c=this,d=K(b,function(b,d){return c.processSegmentGroup(a,b,d)});return Xa(d),Ua(d),d},a.prototype.processSegment=function(a,b,c,d,e){for(var f=0,g=a;f<g.length;f++){var h=g[f];try{return this.processSegmentAgainstRoute(h,b,c,d,e)}catch(a){if(!(a instanceof Wb))throw a}}throw new Wb},a.prototype.processSegmentAgainstRoute=function(a,b,c,d,e){if(a.redirectTo)throw new Wb;if((a.outlet?a.outlet:vb)!==e)throw new Wb;if("**"===a.path){var f=d.length>0?y(d).parameters:{},g=new Sb(d,f,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,fb(a),e,a.component,a,Ya(b),Za(b)+d.length,gb(a));return[new Ob(g,[])]}var h=Wa(b,a,d),i=h.consumedSegments,j=h.parameters,k=h.lastChild,l=d.slice(k),m=Va(a),n=$a(b,i,l,m),o=n.segmentGroup,p=n.slicedSegments,q=new Sb(i,j,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,fb(a),e,a.component,a,Ya(b),Za(b)+i.length,gb(a));if(0===p.length&&o.hasChildren()){var r=this.processChildren(m,o);return[new Ob(q,r)]}if(0===m.length&&0===p.length)return[new Ob(q,[])];var r=this.processSegment(m,o,c+k,p,vb);return[new Ob(q,r)]},a}(),Yb=function(){function a(){this._outlets={}}return a.prototype.registerOutlet=function(a,b){this._outlets[a]=b},a.prototype.removeOutlet=function(a){this._outlets[a]=void 0},a}(),Zb=function(){function a(a,b){this.id=a,this.url=b}return a.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},a}(),$b=function(){function a(a,b,c){this.id=a,this.url=b,this.urlAfterRedirects=c}return a.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},a}(),_b=function(){function a(a,b,c){this.id=a,this.url=b,this.reason=c}return a.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},a}(),ac=function(){function a(a,b,c){this.id=a,this.url=b,this.error=c}return a.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},a}(),bc=function(){function a(a,b,c,d){this.id=a,this.url=b,this.urlAfterRedirects=c,this.state=d}return a.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},a}(),cc=function(){function a(a,b,c,e,f,g,h,i){this.rootComponentType=a,this.urlSerializer=b,this.outletMap=c,this.location=e,this.injector=f,this.config=i,this.navigationId=0,this.errorHandler=hb,this.navigated=!1,this.resetConfig(i),this.routerEvents=new d.Subject,this.currentUrlTree=E(),this.configLoader=new zb(g,h),this.currentRouterState=qa(this.currentUrlTree,this.rootComponentType)}return a.prototype.resetRootComponentType=function(a){this.rootComponentType=a,this.currentRouterState.root.component=this.rootComponentType},a.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},a.prototype.setUpLocationChangeListener=function(){var a=this;this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(b){var c=a.urlSerializer.parse(b.url);return a.currentUrlTree.toString()!==c.toString()?a.scheduleNavigation(c,{skipLocationChange:b.pop,replaceUrl:!0}):null}))},Object.defineProperty(a.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),a.prototype.resetConfig=function(a){ma(a),this.config=a},a.prototype.ngOnDestroy=function(){this.dispose()},a.prototype.dispose=function(){this.locationSubscription.unsubscribe()},a.prototype.createUrlTree=function(a,b){var c=void 0===b?{}:b,d=c.relativeTo,e=c.queryParams,f=c.fragment,g=c.preserveQueryParams,h=c.preserveFragment,i=d?d:this.routerState.root,j=g?this.currentUrlTree.queryParams:e,k=h?this.currentUrlTree.fragment:f;return Ba(i,this.currentUrlTree,a,j,k)},a.prototype.navigateByUrl=function(a,b){if(void 0===b&&(b={skipLocationChange:!1}),a instanceof Ab)return this.scheduleNavigation(a,b);var c=this.urlSerializer.parse(a);return this.scheduleNavigation(c,b)},a.prototype.navigate=function(a,b){return void 0===b&&(b={skipLocationChange:!1}),this.scheduleNavigation(this.createUrlTree(a,b),b)},a.prototype.serializeUrl=function(a){return this.urlSerializer.serialize(a)},a.prototype.parseUrl=function(a){return this.urlSerializer.parse(a)},a.prototype.isActive=function(a,b){if(a instanceof Ab)return F(this.currentUrlTree,a,b);var c=this.urlSerializer.parse(a);return F(this.currentUrlTree,c,b)},a.prototype.scheduleNavigation=function(a,b){var c=this,d=++this.navigationId;return this.routerEvents.next(new Zb(d,this.serializeUrl(a))),Promise.resolve().then(function(e){return c.runNavigate(a,b.skipLocationChange,b.replaceUrl,d)})},a.prototype.runNavigate=function(a,b,c,d){var e=this;return d!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new _b(d,this.serializeUrl(a),"Navigation ID "+d+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(g,h){var j,l,m,n,o=e.currentRouterState,p=e.currentUrlTree,q=Z(e.injector,e.configLoader,a,e.config),r=k.mergeMap.call(q,function(a){return n=a,Ta(e.rootComponentType,e.config,n,e.serializeUrl(n))}),s=i.map.call(r,function(b){return e.routerEvents.next(new bc(d,e.serializeUrl(a),e.serializeUrl(n),b)),b}),t=i.map.call(s,function(a){return wa(a,e.currentRouterState)}),u=i.map.call(t,function(a){j=a,m=new fc(j.snapshot,e.currentRouterState.snapshot,e.injector),m.traverse(e.outletMap)}),v=k.mergeMap.call(u,function(){return m.checkGuards()}),w=k.mergeMap.call(v,function(a){return a?i.map.call(m.resolveData(),function(){return a}):f.of(a)});w.forEach(function(a){if(!a||d!==e.navigationId)return void(l=!1);if(e.currentUrlTree=n,e.currentRouterState=j,!b){var f=e.urlSerializer.serialize(n);e.location.isCurrentPathEqualTo(f)||c?e.location.replaceState(f):e.location.go(f)}new gc(j,o).activate(e.outletMap),l=!0}).then(function(){e.navigated=!0,l?(e.routerEvents.next(new $b(d,e.serializeUrl(a),e.serializeUrl(n))),g(!0)):(e.routerEvents.next(new _b(d,e.serializeUrl(a),"")),g(!1))},function(b){if(b instanceof wb)e.navigated=!0,e.routerEvents.next(new _b(d,e.serializeUrl(a),b.message)),g(!1);else{e.routerEvents.next(new ac(d,e.serializeUrl(a),b));try{g(e.errorHandler(b))}catch(a){h(a)}}d===e.navigationId&&(e.currentRouterState=o,e.currentUrlTree=p,e.location.replaceState(e.serializeUrl(p)))})})},a}(),dc=function(){function a(a){this.path=a}return Object.defineProperty(a.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),a}(),ec=function(){function a(a,b){this.component=a,this.route=b}return a}(),fc=function(){function a(a,b,c){this.future=a,this.curr=b,this.injector=c,this.checks=[]}return a.prototype.traverse=function(a){var b=this.future._root,c=this.curr?this.curr._root:null;this.traverseChildRoutes(b,c,a,[b.value])},a.prototype.checkGuards=function(){var a=this;if(0===this.checks.length)return f.of(!0);var b=e.from(this.checks),c=i.map.call(b,function(b){if(b instanceof dc)return C(e.from([a.runCanActivateChild(b.path),a.runCanActivate(b.route)]));if(b instanceof ec){var c=b;return a.runCanDeactivate(c.component,c.route)}throw new Error("Cannot be reached")}),d=j.mergeAll.call(c);return h.every.call(d,function(a){return a===!0})},a.prototype.resolveData=function(){var a=this;if(0===this.checks.length)return f.of(null);var b=e.from(this.checks),c=g.concatMap.call(b,function(b){return b instanceof dc?a.runResolve(b.route):f.of(null)});return l.reduce.call(c,function(a,b){return a})},a.prototype.traverseChildRoutes=function(a,b,c,d){var e=this,f=kb(b);a.children.forEach(function(a){e.traverseRoutes(a,f[a.value.outlet],c,d.concat([a.value])),delete f[a.value.outlet]}),A(f,function(a,b){return e.deactiveRouteAndItsChildren(a,c._outlets[b])})},a.prototype.traverseRoutes=function(a,b,c,d){var e=a.value,f=b?b.value:null,g=c?c._outlets[a.value.outlet]:null;f&&e._routeConfig===f._routeConfig?(w(e.params,f.params)?(e.data=f.data,e._resolvedData=f._resolvedData):this.checks.push(new ec(g.component,f),new dc(d)),e.component?this.traverseChildRoutes(a,b,g?g.outletMap:null,d):this.traverseChildRoutes(a,b,c,d)):(f&&this.deactiveRouteAndItsChildren(b,g),this.checks.push(new dc(d)),e.component?this.traverseChildRoutes(a,null,g?g.outletMap:null,d):this.traverseChildRoutes(a,null,c,d))},a.prototype.deactiveRouteAndItsChildren=function(a,b){var c=this,d=kb(a);A(d,function(a,d){var e=b?b.outletMap._outlets[d]:null;c.deactiveRouteAndItsChildren(a,e)});var e=b&&b.isActivated?b.component:null;this.checks.push(new ec(e,a.value))},a.prototype.runCanActivate=function(a){var b=this,c=a._routeConfig?a._routeConfig.canActivate:null;if(!c||0===c.length)return f.of(!0);var d=i.map.call(e.from(c),function(c){var d=b.getToken(c,a);return D(d.canActivate?d.canActivate(a,b.future):d(a,b.future))});return C(d)},a.prototype.runCanActivateChild=function(a){var b=this,c=a[a.length-1],d=a.slice(0,a.length-1).reverse().map(function(a){return b.extractCanActivateChild(a)}).filter(function(a){return null!==a});return C(i.map.call(e.from(d),function(a){var d=i.map.call(e.from(a.guards),function(a){var d=b.getToken(a,a.node);return D(d.canActivateChild?d.canActivateChild(c,b.future):d(c,b.future))});return C(d)}))},a.prototype.extractCanActivateChild=function(a){var b=a._routeConfig?a._routeConfig.canActivateChild:null;return b&&0!==b.length?{node:a,guards:b}:null},a.prototype.runCanDeactivate=function(a,b){var c=this,d=b&&b._routeConfig?b._routeConfig.canDeactivate:null;if(!d||0===d.length)return f.of(!0);var g=i.map.call(e.from(d),function(d){var e=c.getToken(d,b);return D(e.canDeactivate?e.canDeactivate(a,b,c.curr):e(a,b,c.curr))}),k=j.mergeAll.call(g);return h.every.call(k,function(a){return a===!0})},a.prototype.runResolve=function(a){var b=a._resolve;return i.map.call(this.resolveNode(b,a),function(b){return a._resolvedData=b,a.data=z(a.data,sa(a).resolve),null})},a.prototype.resolveNode=function(a,b){var c=this;return B(a,function(a,d){var e=c.getToken(d,b);return D(e.resolve?e.resolve(b,c.future):e(b,c.future))})},a.prototype.getToken=function(a,b){var c=jb(b),d=c?c.injector:this.injector;return d.get(a)},a}(),gc=function(){function a(a,b){this.futureState=a,this.currState=b}return a.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;va(this.futureState.root),this.activateChildRoutes(b,c,a)},a.prototype.activateChildRoutes=function(a,b,c){var d=this,e=kb(b);a.children.forEach(function(a){d.activateRoutes(a,e[a.value.outlet],c),delete e[a.value.outlet]}),A(e,function(a,b){return d.deactiveRouteAndItsChildren(a,c)})},a.prototype.activateRoutes=function(a,b,c){var d=a.value,e=b?b.value:null;if(d===e)if(va(d),d.component){var f=lb(c,d);this.activateChildRoutes(a,b,f.outletMap)}else this.activateChildRoutes(a,b,c);else if(e&&this.deactiveRouteAndItsChildren(b,c),d.component){va(d);var f=lb(c,a.value),g=new Yb;this.placeComponentIntoOutlet(g,d,f),this.activateChildRoutes(a,null,g)}else va(d),this.activateChildRoutes(a,null,c)},a.prototype.placeComponentIntoOutlet=function(a,b,d){var e=[{provide:Rb,useValue:b},{provide:Yb,useValue:a}],f=ib(b.snapshot),g=null,h=null;f&&(g=f.factoryResolver,h=f.injector,e.push({provide:c.ComponentFactoryResolver,useValue:g})),d.activate(b,g,h,c.ReflectiveInjector.resolve(e),a)},a.prototype.deactiveRouteAndItsChildren=function(a,b){var c=this,d=kb(a),e=null;try{e=lb(b,a.value)}catch(a){return}var f=e.outletMap;A(d,function(d,e){a.value.component?c.deactiveRouteAndItsChildren(d,f):c.deactiveRouteAndItsChildren(d,b)}),e&&e.isActivated&&e.deactivate()},a}(),hc=function(){function a(a,b,c){this.router=a,this.route=b,this.locationStrategy=c,this.commands=[]}return Object.defineProperty(a.prototype,"routerLink",{set:function(a){Array.isArray(a)?this.commands=a:this.commands=[a]},enumerable:!0,configurable:!0}),a.prototype.onClick=function(a,b,c){return!(0===a&&!b&&!c)||(this.router.navigateByUrl(this.urlTree),!1)},Object.defineProperty(a.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:mb(this.preserveQueryParams),preserveFragment:mb(this.preserveFragment)})},enumerable:!0,configurable:!0}),a.decorators=[{type:c.Directive,args:[{selector:":not(a)[routerLink]"}]}],a.ctorParameters=[{type:cc},{type:Rb},{type:b.LocationStrategy}],a.propDecorators={queryParams:[{type:c.Input}],fragment:[{type:c.Input}],preserveQueryParams:[{type:c.Input}],preserveFragment:[{type:c.Input}],routerLink:[{type:c.Input}],onClick:[{type:c.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},a}(),ic=function(){function a(a,b,c){var d=this;this.router=a,this.route=b,this.locationStrategy=c,this.commands=[],this.subscription=a.events.subscribe(function(a){a instanceof $b&&d.updateTargetUrlAndHref()})}return Object.defineProperty(a.prototype,"routerLink",{set:function(a){Array.isArray(a)?this.commands=a:this.commands=[a]},enumerable:!0,configurable:!0}),a.prototype.ngOnChanges=function(a){this.updateTargetUrlAndHref()},a.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},a.prototype.onClick=function(a,b,c){return!(0===a&&!b&&!c)||("string"==typeof this.target&&"_self"!=this.target||(this.router.navigateByUrl(this.urlTree),!1))},a.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(a.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:mb(this.preserveQueryParams),preserveFragment:mb(this.preserveFragment)})},enumerable:!0,configurable:!0}),a.decorators=[{type:c.Directive,args:[{selector:"a[routerLink]"}]}],a.ctorParameters=[{type:cc},{type:Rb},{type:b.LocationStrategy}],a.propDecorators={target:[{
  type:c.Input}],queryParams:[{type:c.Input}],fragment:[{type:c.Input}],routerLinkOptions:[{type:c.Input}],preserveQueryParams:[{type:c.Input}],preserveFragment:[{type:c.Input}],href:[{type:c.HostBinding}],routerLink:[{type:c.Input}],onClick:[{type:c.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},a}(),jc=function(){function a(a,b,c){var d=this;this.router=a,this.element=b,this.renderer=c,this.classes=[],this.routerLinkActiveOptions={exact:!1},this.subscription=a.events.subscribe(function(a){a instanceof $b&&d.update()})}return a.prototype.ngAfterContentInit=function(){var a=this;this.links.changes.subscribe(function(b){return a.update()}),this.linksWithHrefs.changes.subscribe(function(b){return a.update()}),this.update()},Object.defineProperty(a.prototype,"routerLinkActive",{set:function(a){Array.isArray(a)?this.classes=a:this.classes=a.split(" ")},enumerable:!0,configurable:!0}),a.prototype.ngOnChanges=function(a){this.update()},a.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},a.prototype.update=function(){var a=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var b=this.hasActiveLink();this.classes.forEach(function(c){return a.renderer.setElementClass(a.element.nativeElement,c,b)})}},a.prototype.isLinkActive=function(a){var b=this;return function(c){return a.isActive(c.urlTree,b.routerLinkActiveOptions.exact)}},a.prototype.hasActiveLink=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},a.decorators=[{type:c.Directive,args:[{selector:"[routerLinkActive]"}]}],a.ctorParameters=[{type:cc},{type:c.ElementRef},{type:c.Renderer}],a.propDecorators={links:[{type:c.ContentChildren,args:[hc,{descendants:!0}]}],linksWithHrefs:[{type:c.ContentChildren,args:[ic,{descendants:!0}]}],routerLinkActiveOptions:[{type:c.Input}],routerLinkActive:[{type:c.Input}]},a}(),kc=function(){function a(a,b,d,e){this.parentOutletMap=a,this.location=b,this.resolver=d,this.name=e,this.activateEvents=new c.EventEmitter,this.deactivateEvents=new c.EventEmitter,a.registerOutlet(e?e:vb,this)}return a.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:vb)},Object.defineProperty(a.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),a.prototype.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy(),this.activated=null,this.deactivateEvents.emit(a)}},a.prototype.activate=function(a,b,d,e,f){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=f,this._activatedRoute=a;var g,h=a._futureSnapshot,i=h._routeConfig.component;g=b?b.resolveComponentFactory(i):this.resolver.resolveComponentFactory(i);var j=d?d:this.location.parentInjector,k=c.ReflectiveInjector.fromResolvedProviders(e,j);this.activated=this.location.createComponent(g,this.location.length,k,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},a.decorators=[{type:c.Directive,args:[{selector:"router-outlet"}]}],a.ctorParameters=[{type:Yb},{type:c.ViewContainerRef},{type:c.ComponentFactoryResolver},{type:void 0,decorators:[{type:c.Attribute,args:["name"]}]}],a.propDecorators={activateEvents:[{type:c.Output,args:["activate"]}],deactivateEvents:[{type:c.Output,args:["deactivate"]}]},a}(),lc=function(){function a(){}return a}(),mc=function(){function a(){}return a.prototype.preload=function(a,b){return n._catch.call(b(),function(){return f.of(null)})},a}(),nc=function(){function a(){}return a.prototype.preload=function(a,b){return f.of(null)},a}(),oc=function(){function a(a,b,c,d,e){this.router=a,this.injector=d,this.preloadingStrategy=e,this.loader=new zb(b,c)}return a.prototype.setUpPreloading=function(){var a=this,b=u.filter.call(this.router.events,function(a){return a instanceof $b});this.subscription=g.concatMap.call(b,function(){return a.preload()}).subscribe(function(a){})},a.prototype.preload=function(){return this.processRoutes(this.injector,this.router.config)},a.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},a.prototype.processRoutes=function(a,b){for(var c=[],d=0,f=b;d<f.length;d++){var g=f[d];if(g.loadChildren&&!g.canLoad&&g._loadedConfig){var h=g._loadedConfig;c.push(this.processRoutes(h.injector,h.routes))}else g.loadChildren&&!g.canLoad?c.push(this.preloadConfig(a,g)):g.children&&c.push(this.processRoutes(a,g.children))}return j.mergeAll.call(e.from(c))},a.prototype.preloadConfig=function(a,b){var c=this;return this.preloadingStrategy.preload(b,function(){var d=c.loader.load(a,b.loadChildren);return k.mergeMap.call(d,function(a){var d=b;return d._loadedConfig=a,c.processRoutes(a.injector,a.routes)})})},a.decorators=[{type:c.Injectable}],a.ctorParameters=[{type:cc},{type:c.NgModuleFactoryLoader},{type:c.Compiler},{type:c.Injector},{type:lc}],a}(),pc=[kc,hc,ic,jc],qc=new c.OpaqueToken("ROUTER_CONFIGURATION"),rc=new c.OpaqueToken("ROUTER_FORROOT_GUARD"),sc=[b.Location,{provide:Db,useClass:Eb},{provide:cc,useFactory:qb,deps:[c.ApplicationRef,Db,Yb,b.Location,c.Injector,c.NgModuleFactoryLoader,c.Compiler,xb,qc]},Yb,{provide:Rb,useFactory:rb,deps:[cc]},{provide:c.NgModuleFactoryLoader,useClass:c.SystemJsNgModuleLoader},oc,nc,mc,{provide:qc,useValue:{enableTracing:!1}}],tc=function(){function a(a){}return a.forRoot=function(d,e){return{ngModule:a,providers:[sc,pb(d),{provide:rc,useFactory:ob,deps:[[cc,new c.Optional,new c.SkipSelf]]},{provide:qc,useValue:e?e:{}},{provide:b.LocationStrategy,useFactory:nb,deps:[b.PlatformLocation,[new c.Inject(b.APP_BASE_HREF),new c.Optional],qc]},{provide:lc,useExisting:e&&e.preloadingStrategy?e.preloadingStrategy:nc},tb()]}},a.forChild=function(b){return{ngModule:a,providers:[pb(b)]}},a.decorators=[{type:c.NgModule,args:[{declarations:pc,exports:pc}]}],a.ctorParameters=[{type:void 0,decorators:[{type:c.Optional},{type:c.Inject,args:[rc]}]}],a}(),uc={ROUTER_PROVIDERS:sc,ROUTES:xb,flatten:x};a.RouterLink=hc,a.RouterLinkWithHref=ic,a.RouterLinkActive=jc,a.RouterOutlet=kc,a.NavigationCancel=_b,a.NavigationEnd=$b,a.NavigationError=ac,a.NavigationStart=Zb,a.Router=cc,a.RoutesRecognized=bc,a.RouterModule=tc,a.provideRoutes=pb,a.RouterOutletMap=Yb,a.NoPreloading=nc,a.PreloadAllModules=mc,a.PreloadingStrategy=lc,a.ActivatedRoute=Rb,a.ActivatedRouteSnapshot=Sb,a.RouterState=Qb,a.RouterStateSnapshot=Tb,a.PRIMARY_OUTLET=vb,a.DefaultUrlSerializer=Eb,a.UrlSegment=Cb,a.UrlSerializer=Db,a.UrlTree=Ab,a.__router_private__=uc})}(),a.registerDynamic("2f",["3","2c"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=f<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(f<3?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g}),e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=a("3"),g=a("2c"),h=function(){function a(a){var b=this;this.params=a,this.name="About Us",a.params.subscribe(function(a){return b.param=a.id})}return a=d([f.Component({selector:"my-about",templateUrl:"components/about/about.component.html",styleUrls:["components/about/about.component.css"]}),e("design:paramtypes",[g.ActivatedRoute])],a)}();return b.AboutComponent=h,c.exports}),a.registerDynamic("30",["2c","31","2f"],!0,function(a,b,c){"use strict";var d=(this||self,a("2c")),e=a("31"),f=a("2f");return b.routes=[{path:"",pathMatch:"full",component:e.HomeComponent},{path:"about",component:f.AboutComponent}],b.routing=d.RouterModule.forRoot(b.routes,{useHash:!0}),c.exports}),function(){var e=a.amdDefine;!function(a,f){"object"==typeof c&&"undefined"!=typeof d?f(c,b("@angular/core")):"function"==typeof e&&e.amd?e("2d",["exports","3"],f):f((a.ng=a.ng||{},a.ng.common=a.ng.common||{}),a.ng.core)}(this,function(a,b){"use strict";function c(a){return a.name||typeof a}function d(a){return null!=a}function e(a){return null==a}function f(a){return a instanceof Date&&!isNaN(a.valueOf())}function g(a){if("string"==typeof a)return a;if(void 0===a||null===a)return""+a;if(a.overriddenName)return a.overriddenName;if(a.name)return a.name;var b=a.toString(),c=b.indexOf("\n");return c===-1?b:b.substring(0,c)}function h(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function i(){if(!J)if(C.Symbol&&Symbol.iterator)J=Symbol.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(J=c)}return J}function j(a,b){return a.length>0&&b.startsWith(a)?b.substring(a.length):b}function k(a){return/\/index.html$/g.test(a)?a.substring(0,a.length-11):a}function l(a,b,c){var d="="+a;return b.indexOf(d)>-1?d:c.getPluralCategory(a)}function m(a,b){"string"==typeof b&&(b=parseInt(b,10));var c=b,d=c.toString().replace(/^[^.]*\.?/,""),e=Math.floor(Math.abs(c)),f=d.length,g=parseInt(d,10),h=parseInt(c.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,i=a.split("-")[0].toLowerCase();switch(i){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===c?H.One:H.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 c===Math.floor(c)&&c>=0&&c<=1?H.One:H.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===e||1===c?H.One:H.Other;case"ar":return 0===c?H.Zero:1===c?H.One:2===c?H.Two:c%100===Math.floor(c%100)&&c%100>=3&&c%100<=10?H.Few:c%100===Math.floor(c%100)&&c%100>=11&&c%100<=99?H.Many:H.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===e&&0===f?H.One:H.Other;case"be":return c%10===1&&c%100!==11?H.One:c%10===Math.floor(c%10)&&c%10>=2&&c%10<=4&&!(c%100>=12&&c%100<=14)?H.Few:c%10===0||c%10===Math.floor(c%10)&&c%10>=5&&c%10<=9||c%100===Math.floor(c%100)&&c%100>=11&&c%100<=14?H.Many:H.Other;case"br":return c%10===1&&c%100!==11&&c%100!==71&&c%100!==91?H.One:c%10===2&&c%100!==12&&c%100!==72&&c%100!==92?H.Two:c%10===Math.floor(c%10)&&(c%10>=3&&c%10<=4||c%10===9)&&!(c%100>=10&&c%100<=19||c%100>=70&&c%100<=79||c%100>=90&&c%100<=99)?H.Few:0!==c&&c%1e6===0?H.Many:H.Other;case"bs":case"hr":case"sr":return 0===f&&e%10===1&&e%100!==11||g%10===1&&g%100!==11?H.One:0===f&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)||g%10===Math.floor(g%10)&&g%10>=2&&g%10<=4&&!(g%100>=12&&g%100<=14)?H.Few:H.Other;case"cs":case"sk":return 1===e&&0===f?H.One:e===Math.floor(e)&&e>=2&&e<=4&&0===f?H.Few:0!==f?H.Many:H.Other;case"cy":return 0===c?H.Zero:1===c?H.One:2===c?H.Two:3===c?H.Few:6===c?H.Many:H.Other;case"da":return 1===c||0!==h&&(0===e||1===e)?H.One:H.Other;case"dsb":case"hsb":return 0===f&&e%100===1||g%100===1?H.One:0===f&&e%100===2||g%100===2?H.Two:0===f&&e%100===Math.floor(e%100)&&e%100>=3&&e%100<=4||g%100===Math.floor(g%100)&&g%100>=3&&g%100<=4?H.Few:H.Other;case"ff":case"fr":case"hy":case"kab":return 0===e||1===e?H.One:H.Other;case"fil":return 0===f&&(1===e||2===e||3===e)||0===f&&e%10!==4&&e%10!==6&&e%10!==9||0!==f&&g%10!==4&&g%10!==6&&g%10!==9?H.One:H.Other;case"ga":return 1===c?H.One:2===c?H.Two:c===Math.floor(c)&&c>=3&&c<=6?H.Few:c===Math.floor(c)&&c>=7&&c<=10?H.Many:H.Other;case"gd":return 1===c||11===c?H.One:2===c||12===c?H.Two:c===Math.floor(c)&&(c>=3&&c<=10||c>=13&&c<=19)?H.Few:H.Other;case"gv":return 0===f&&e%10===1?H.One:0===f&&e%10===2?H.Two:0!==f||e%100!==0&&e%100!==20&&e%100!==40&&e%100!==60&&e%100!==80?0!==f?H.Many:H.Other:H.Few;case"he":return 1===e&&0===f?H.One:2===e&&0===f?H.Two:0!==f||c>=0&&c<=10||c%10!==0?H.Other:H.Many;case"is":return 0===h&&e%10===1&&e%100!==11||0!==h?H.One:H.Other;case"ksh":return 0===c?H.Zero:1===c?H.One:H.Other;case"kw":case"naq":case"se":case"smn":return 1===c?H.One:2===c?H.Two:H.Other;case"lag":return 0===c?H.Zero:0!==e&&1!==e||0===c?H.Other:H.One;case"lt":return c%10!==1||c%100>=11&&c%100<=19?c%10===Math.floor(c%10)&&c%10>=2&&c%10<=9&&!(c%100>=11&&c%100<=19)?H.Few:0!==g?H.Many:H.Other:H.One;case"lv":case"prg":return c%10===0||c%100===Math.floor(c%100)&&c%100>=11&&c%100<=19||2===f&&g%100===Math.floor(g%100)&&g%100>=11&&g%100<=19?H.Zero:c%10===1&&c%100!==11||2===f&&g%10===1&&g%100!==11||2!==f&&g%10===1?H.One:H.Other;case"mk":return 0===f&&e%10===1||g%10===1?H.One:H.Other;case"mt":return 1===c?H.One:0===c||c%100===Math.floor(c%100)&&c%100>=2&&c%100<=10?H.Few:c%100===Math.floor(c%100)&&c%100>=11&&c%100<=19?H.Many:H.Other;case"pl":return 1===e&&0===f?H.One:0===f&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?H.Few:0===f&&1!==e&&e%10===Math.floor(e%10)&&e%10>=0&&e%10<=1||0===f&&e%10===Math.floor(e%10)&&e%10>=5&&e%10<=9||0===f&&e%100===Math.floor(e%100)&&e%100>=12&&e%100<=14?H.Many:H.Other;case"pt":return c===Math.floor(c)&&c>=0&&c<=2&&2!==c?H.One:H.Other;case"ro":return 1===e&&0===f?H.One:0!==f||0===c||1!==c&&c%100===Math.floor(c%100)&&c%100>=1&&c%100<=19?H.Few:H.Other;case"ru":case"uk":return 0===f&&e%10===1&&e%100!==11?H.One:0===f&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?H.Few:0===f&&e%10===0||0===f&&e%10===Math.floor(e%10)&&e%10>=5&&e%10<=9||0===f&&e%100===Math.floor(e%100)&&e%100>=11&&e%100<=14?H.Many:H.Other;case"shi":return 0===e||1===c?H.One:c===Math.floor(c)&&c>=2&&c<=10?H.Few:H.Other;case"si":return 0===c||1===c||0===e&&1===g?H.One:H.Other;case"sl":return 0===f&&e%100===1?H.One:0===f&&e%100===2?H.Two:0===f&&e%100===Math.floor(e%100)&&e%100>=3&&e%100<=4||0!==f?H.Few:H.Other;case"tzm":return c===Math.floor(c)&&c>=0&&c<=1||c===Math.floor(c)&&c>=11&&c<=99?H.One:H.Other;default:return H.Other}}function n(a,b){if(d(a))for(var c=0;c<a.length;c++){var e=a[c];Array.isArray(e)?n(e,b):b.push(e)}return b}function o(a){return!!h(a)&&(Array.isArray(a)||!(a instanceof Map)&&i()in a)}function p(a){return function(b,c){var d=a(b,c);return 1==d.length?"0"+d:d}}function q(a){return function(b,c){var d=a(b,c);return d.split(" ")[1]}}function r(a){return function(b,c){var d=a(b,c);return d.split(" ")[0]}}function s(a,b,c){return new Intl.DateTimeFormat(b,c).format(a).replace(/[\u200e\u200f]/g,"")}function t(a){var b={hour:"2-digit",hour12:!1,timeZoneName:a};return function(a,c){var d=s(a,c,b);return d?d.substring(3):""}}function u(a,b){return a.hour12=b,a}function v(a,b){var c={};return c[a]=2==b?"2-digit":"numeric",c}function w(a,b){var c={};return c[a]=b<4?"short":"long",c}function x(a){var b={};return a.forEach(function(a){Object.assign(b,a)}),b}function y(a){return function(b,c){return s(b,c,a)}}function z(a,b,c){var d,e,f="",g=[];if(ta[a])return ta[a](b,c);if(va.has(a))g=va.get(a);else{for(sa.exec(a);a;)d=sa.exec(a),d?(g=A(g,d,1),a=g.pop()):(g.push(a),a=null);va.set(a,g)}return g.forEach(function(a){e=ua[a],f+=e?e(b,c):"''"===a?"'":a.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),f}function A(a,b,c){return a.concat(wa.call(b,c))}function B(a,b,c,f,g,h,i){if(void 0===h&&(h=null),void 0===i&&(i=!1),e(c))return null;if(c="string"==typeof c&&I.isNumeric(c)?+c:c,"number"!=typeof c)throw new la(a,c);var j,k,l;if(f!==S.Currency&&(j=1,k=0,l=3),g){var m=g.match(Ea);if(null===m)throw new Error(g+" is not a valid digit info for number pipes");d(m[1])&&(j=I.parseIntAutoRadix(m[1])),d(m[3])&&(k=I.parseIntAutoRadix(m[3])),d(m[5])&&(l=I.parseIntAutoRadix(m[5]))}return ra.format(c,b,f,{minimumIntegerDigits:j,minimumFractionDigits:k,maximumFractionDigits:l,currency:h,currencyAsSymbol:i})}var C,D=function(){function a(){}return Object.defineProperty(a.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),a}(),E=function(){function a(){}return a}(),F=new b.OpaqueToken("appBaseHref");C="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var G=C;G.assert=function(a){};var H,I=function(){function a(){}return a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new Error("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new Error("Invalid integer literal when parsing "+a+" in base "+b)},a.isNumeric=function(a){return!isNaN(a-parseFloat(a))},a}(),J=null,K=function(){function a(c){var d=this;this._subject=new b.EventEmitter,this._platformStrategy=c;var e=this._platformStrategy.getBaseHref();this._baseHref=a.stripTrailingSlash(k(e)),this._platformStrategy.onPopState(function(a){d._subject.emit({url:d.path(!0),pop:!0,type:a.type})})}return a.prototype.path=function(a){return void 0===a&&(a=!1),this.normalize(this._platformStrategy.path(a))},a.prototype.isCurrentPathEqualTo=function(b,c){return void 0===c&&(c=""),this.path()==this.normalize(b+a.normalizeQueryParams(c))},a.prototype.normalize=function(b){return a.stripTrailingSlash(j(this._baseHref,k(b)))},a.prototype.prepareExternalUrl=function(a){return a.length>0&&!a.startsWith("/")&&(a="/"+a),this._platformStrategy.prepareExternalUrl(a)},a.prototype.go=function(a,b){void 0===b&&(b=""),this._platformStrategy.pushState(null,"",a,b)},a.prototype.replaceState=function(a,b){void 0===b&&(b=""),this._platformStrategy.replaceState(null,"",a,b)},a.prototype.forward=function(){this._platformStrategy.forward()},a.prototype.back=function(){this._platformStrategy.back()},a.prototype.subscribe=function(a,b,c){return void 0===b&&(b=null),void 0===c&&(c=null),this._subject.subscribe({next:a,error:b,complete:c})},a.normalizeQueryParams=function(a){return a.length>0&&"?"!=a.substring(0,1)?"?"+a:a},a.joinWithSlash=function(a,b){if(0==a.length)return b;if(0==b.length)return a;var c=0;return a.endsWith("/")&&c++,b.startsWith("/")&&c++,2==c?a+b.substring(1):1==c?a+b:a+"/"+b},a.stripTrailingSlash=function(a){return/\/$/g.test(a)&&(a=a.substring(0,a.length-1)),a},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:E}],a}(),L=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},M=function(a){function c(b,c){a.call(this),this._platformLocation=b,this._baseHref="",d(c)&&(this._baseHref=c)}return L(c,a),c.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},c.prototype.getBaseHref=function(){return this._baseHref},c.prototype.path=function(a){void 0===a&&(a=!1);var b=this._platformLocation.hash;return d(b)||(b="#"),b.length>0?b.substring(1):b},c.prototype.prepareExternalUrl=function(a){var b=K.joinWithSlash(this._baseHref,a);return b.length>0?"#"+b:b},c.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+K.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.pushState(a,b,e)},c.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+K.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.replaceState(a,b,e)},c.prototype.forward=function(){this._platformLocation.forward()},c.prototype.back=function(){this._platformLocation.back()},c.decorators=[{type:b.Injectable}],c.ctorParameters=[{type:D},{type:void 0,decorators:[{type:b.Optional},{type:b.Inject,args:[F]}]}],c}(E),N=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},O=function(a){function c(b,c){if(a.call(this),this._platformLocation=b,e(c)&&(c=this._platformLocation.getBaseHrefFromDOM()),e(c))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.");this._baseHref=c}return N(c,a),c.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},c.prototype.getBaseHref=function(){return this._baseHref},c.prototype.prepareExternalUrl=function(a){return K.joinWithSlash(this._baseHref,a)},c.prototype.path=function(a){void 0===a&&(a=!1);var b=this._platformLocation.pathname+K.normalizeQueryParams(this._platformLocation.search),c=this._platformLocation.hash;return c&&a?""+b+c:b},c.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+K.normalizeQueryParams(d));this._platformLocation.pushState(a,b,e)},c.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+K.normalizeQueryParams(d));this._platformLocation.replaceState(a,b,e)},c.prototype.forward=function(){this._platformLocation.forward()},c.prototype.back=function(){this._platformLocation.back()},c.decorators=[{type:b.Injectable}],c.ctorParameters=[{type:D},{type:void 0,decorators:[{type:b.Optional},{type:b.Inject,args:[F]}]}],c}(E),P=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Q=function(){function a(){}return a}(),R=function(a){function c(b){a.call(this),this._locale=b}return P(c,a),c.prototype.getPluralCategory=function(a){var b=m(this._locale,a);switch(b){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}},c.decorators=[{type:b.Injectable}],c.ctorParameters=[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}],c}(Q);!function(a){a[a.Zero=0]="Zero",a[a.One=1]="One",a[a.Two=2]="Two",a[a.Few=3]="Few",a[a.Many=4]="Many",a[a.Other=5]="Other"}(H||(H={}));var S,T=(function(){try{if((new Map).values().next)return function(a,b){return b?Array.from(a.values()):Array.from(a.keys())}}catch(a){}return function(a,b){var c=new Array(a.size),d=0;return a.forEach(function(a,e){c[d]=b?a:e,d++}),c}}(),function(){function a(){}return a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1&&(a.splice(c,1),!0)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.maximum=function(a,b){if(0==a.length)return null;for(var c=null,d=-(1/0),e=0;e<a.length;e++){var f=a[e];if(null!=f){var g=b(f);g>d&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return n(a,b),b},a}()),U=function(){function a(a,b,c,d){this._iterableDiffers=a,this._keyValueDiffers=b,this._ngEl=c,this._renderer=d,this._initialClasses=[]}return Object.defineProperty(a.prototype,"klass",{set:function(a){this._applyInitialClasses(!0),this._initialClasses="string"==typeof a?a.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngClass",{set:function(a){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof a?a.split(/\s+/):a,this._rawClass&&(o(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create(null):this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create(null))},enumerable:!0,configurable:!0}),a.prototype.ngDoCheck=function(){if(this._iterableDiffer){var a=this._iterableDiffer.diff(this._rawClass);a&&this._applyIterableChanges(a)}else if(this._keyValueDiffer){var a=this._keyValueDiffer.diff(this._rawClass);a&&this._applyKeyValueChanges(a)}},a.prototype._cleanupClasses=function(a){this._applyClasses(a,!0),this._applyInitialClasses(!1)},a.prototype._applyKeyValueChanges=function(a){var b=this;a.forEachAddedItem(function(a){return b._toggleClass(a.key,a.currentValue)}),a.forEachChangedItem(function(a){return b._toggleClass(a.key,a.currentValue)}),a.forEachRemovedItem(function(a){a.previousValue&&b._toggleClass(a.key,!1)})},a.prototype._applyIterableChanges=function(a){var b=this;a.forEachAddedItem(function(a){return b._toggleClass(a.item,!0)}),a.forEachRemovedItem(function(a){return b._toggleClass(a.item,!1)})},a.prototype._applyInitialClasses=function(a){var b=this;this._initialClasses.forEach(function(c){return b._toggleClass(c,!a)})},a.prototype._applyClasses=function(a,b){var c=this;a&&(Array.isArray(a)||a instanceof Set?a.forEach(function(a){return c._toggleClass(a,!b)}):Object.keys(a).forEach(function(e){d(a[e])&&c._toggleClass(e,!b)}))},a.prototype._toggleClass=function(a,b){var c=this;a=a.trim(),a&&a.split(/\s+/g).forEach(function(a){c._renderer.setElementClass(c._ngEl.nativeElement,a,b)})},a.decorators=[{type:b.Directive,args:[{selector:"[ngClass]"}]}],a.ctorParameters=[{type:b.IterableDiffers},{type:b.KeyValueDiffers},{type:b.ElementRef},{type:b.Renderer}],a.propDecorators={klass:[{type:b.Input,args:["class"]}],ngClass:[{type:b.Input}]},a}(),V=function(){function a(a,b,c){this.$implicit=a,this.index=b,this.count=c}return Object.defineProperty(a.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),a}(),W=function(){function a(a,b,c,d){this._viewContainer=a,this._template=b,this._differs=c,this._cdr=d,this._differ=null}return Object.defineProperty(a.prototype,"ngForTemplate",{set:function(a){a&&(this._template=a)},enumerable:!0,configurable:!0}),a.prototype.ngOnChanges=function(a){if("ngForOf"in a){var b=a.ngForOf.currentValue;if(!this._differ&&b)try{this._differ=this._differs.find(b).create(this._cdr,this.ngForTrackBy)}catch(a){throw new Error("Cannot find a differ supporting object '"+b+"' of type '"+c(b)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},a.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this.ngForOf);a&&this._applyChanges(a)}},a.prototype._applyChanges=function(a){var b=this,c=[];a.forEachOperation(function(a,d,e){if(null==a.previousIndex){var f=b._viewContainer.createEmbeddedView(b._template,new V(null,null,null),e),g=new X(a,f);c.push(g)}else if(null==e)b._viewContainer.remove(d);else{var f=b._viewContainer.get(d);b._viewContainer.move(f,e);var g=new X(a,f);c.push(g)}});for(var d=0;d<c.length;d++)this._perViewChange(c[d].view,c[d].record);for(var d=0,e=this._viewContainer.length;d<e;d++){var f=this._viewContainer.get(d);f.context.index=d,f.context.count=e}a.forEachIdentityChange(function(a){var c=b._viewContainer.get(a.currentIndex);c.context.$implicit=a.item})},a.prototype._perViewChange=function(a,b){a.context.$implicit=b.item},a.decorators=[{type:b.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],a.ctorParameters=[{type:b.ViewContainerRef},{type:b.TemplateRef},{type:b.IterableDiffers},{type:b.ChangeDetectorRef}],a.propDecorators={ngForOf:[{type:b.Input}],ngForTrackBy:[{type:b.Input}],ngForTemplate:[{type:b.Input}]},a}(),X=function(){function a(a,b){this.record=a,this.view=b}return a}(),Y=function(){function a(a,b){this._viewContainer=a,this._template=b,this._hasView=!1}return Object.defineProperty(a.prototype,"ngIf",{set:function(a){a&&!this._hasView?(this._hasView=!0,this._viewContainer.createEmbeddedView(this._template)):!a&&this._hasView&&(this._hasView=!1,this._viewContainer.clear())},enumerable:!0,configurable:!0}),a.decorators=[{type:b.Directive,args:[{selector:"[ngIf]"}]}],a.ctorParameters=[{type:b.ViewContainerRef},{type:b.TemplateRef}],a.propDecorators={ngIf:[{type:b.Input}]},a}(),Z={},$=function(){function a(a,b){this._viewContainerRef=a,this._templateRef=b}return a.prototype.create=function(){this._viewContainerRef.createEmbeddedView(this._templateRef)},a.prototype.destroy=function(){this._viewContainerRef.clear()},a}(),_=function(){function a(){this._useDefault=!1,this._valueViews=new Map,this._activeViews=[]}return Object.defineProperty(a.prototype,"ngSwitch",{set:function(a){var b=this._valueViews.get(a);if(b)this._useDefault=!1;else{if(this._useDefault)return;this._useDefault=!0,b=this._valueViews.get(Z)}this._emptyAllActiveViews(),this._activateViews(b),this._switchValue=a},enumerable:!0,configurable:!0}),a.prototype._onCaseValueChanged=function(a,b,c){this._deregisterView(a,c),this._registerView(b,c),a===this._switchValue?(c.destroy(),T.remove(this._activeViews,c)):b===this._switchValue&&(this._useDefault&&(this._useDefault=!1,this._emptyAllActiveViews()),c.create(),this._activeViews.push(c)),0!==this._activeViews.length||this._useDefault||(this._useDefault=!0,this._activateViews(this._valueViews.get(Z)))},a.prototype._emptyAllActiveViews=function(){for(var a=this._activeViews,b=0;b<a.length;b++)a[b].destroy();this._activeViews=[]},a.prototype._activateViews=function(a){if(a){for(var b=0;b<a.length;b++)a[b].create();this._activeViews=a}},a.prototype._registerView=function(a,b){var c=this._valueViews.get(a);c||(c=[],this._valueViews.set(a,c)),c.push(b)},a.prototype._deregisterView=function(a,b){if(a!==Z){var c=this._valueViews.get(a);1==c.length?this._valueViews.delete(a):T.remove(c,b)}},a.decorators=[{type:b.Directive,args:[{selector:"[ngSwitch]"}]}],a.ctorParameters=[],a.propDecorators={ngSwitch:[{type:b.Input}]},a}(),aa=function(){function a(a,b,c){this._value=Z,this._switch=c,this._view=new $(a,b)}return Object.defineProperty(a.prototype,"ngSwitchCase",{set:function(a){this._switch._onCaseValueChanged(this._value,a,this._view),this._value=a},enumerable:!0,configurable:!0}),a.decorators=[{type:b.Directive,args:[{selector:"[ngSwitchCase]"}]}],a.ctorParameters=[{type:b.ViewContainerRef},{type:b.TemplateRef},{type:_,decorators:[{type:b.Host}]}],a.propDecorators={ngSwitchCase:[{type:b.Input}]},a}(),ba=function(){function a(a,b,c){c._registerView(Z,new $(a,b))}return a.decorators=[{type:b.Directive,args:[{selector:"[ngSwitchDefault]"}]}],a.ctorParameters=[{type:b.ViewContainerRef},{type:b.TemplateRef},{type:_,decorators:[{type:b.Host}]}],a}(),ca=function(){function a(a){this._localization=a,this._caseViews={}}return Object.defineProperty(a.prototype,"ngPlural",{set:function(a){this._switchValue=a,this._updateView()},enumerable:!0,configurable:!0}),a.prototype.addCase=function(a,b){this._caseViews[a]=b},a.prototype._updateView=function(){this._clearViews();var a=Object.keys(this._caseViews),b=l(this._switchValue,a,this._localization);
  this._activateView(this._caseViews[b])},a.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},a.prototype._activateView=function(a){a&&(this._activeView=a,this._activeView.create())},a.decorators=[{type:b.Directive,args:[{selector:"[ngPlural]"}]}],a.ctorParameters=[{type:Q}],a.propDecorators={ngPlural:[{type:b.Input}]},a}(),da=function(){function a(a,b,c,d){this.value=a,d.addCase(a,new $(c,b))}return a.decorators=[{type:b.Directive,args:[{selector:"[ngPluralCase]"}]}],a.ctorParameters=[{type:void 0,decorators:[{type:b.Attribute,args:["ngPluralCase"]}]},{type:b.TemplateRef},{type:b.ViewContainerRef},{type:ca,decorators:[{type:b.Host}]}],a}(),ea=function(){function a(a,b,c){this._differs=a,this._ngEl=b,this._renderer=c}return Object.defineProperty(a.prototype,"ngStyle",{set:function(a){this._ngStyle=a,!this._differ&&a&&(this._differ=this._differs.find(a).create(null))},enumerable:!0,configurable:!0}),a.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}},a.prototype._applyChanges=function(a){var b=this;a.forEachRemovedItem(function(a){return b._setStyle(a.key,null)}),a.forEachAddedItem(function(a){return b._setStyle(a.key,a.currentValue)}),a.forEachChangedItem(function(a){return b._setStyle(a.key,a.currentValue)})},a.prototype._setStyle=function(a,b){var c=a.split("."),d=c[0],e=c[1];b=b&&e?""+b+e:b,this._renderer.setElementStyle(this._ngEl.nativeElement,d,b)},a.decorators=[{type:b.Directive,args:[{selector:"[ngStyle]"}]}],a.ctorParameters=[{type:b.KeyValueDiffers},{type:b.ElementRef},{type:b.Renderer}],a.propDecorators={ngStyle:[{type:b.Input}]},a}(),fa=function(){function a(a){this._viewContainerRef=a}return Object.defineProperty(a.prototype,"ngOutletContext",{set:function(a){this._context=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngTemplateOutlet",{set:function(a){this._templateRef=a},enumerable:!0,configurable:!0}),a.prototype.ngOnChanges=function(a){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this._templateRef&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this._templateRef,this._context))},a.decorators=[{type:b.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],a.ctorParameters=[{type:b.ViewContainerRef}],a.propDecorators={ngOutletContext:[{type:b.Input}],ngTemplateOutlet:[{type:b.Input}]},a}(),ga=[U,W,Y,fa,ea,_,aa,ba,ca,da],ha=b.__core_private__.isPromise,ia=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},ja=function(a){function b(b){var c=a.call(this,b);this._nativeError=c}return ia(b,a),Object.defineProperty(b.prototype,"message",{get:function(){return this._nativeError.message},set:function(a){this._nativeError.message=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(a){this._nativeError.stack=a},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return this._nativeError.toString()},b}(Error),ka=(function(a){function b(b,c){a.call(this,b+" caused by: "+(c instanceof Error?c.message:c)),this.originalError=c}return ia(b,a),Object.defineProperty(b.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),b}(ja),this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),la=function(a){function b(b,c){a.call(this,"Invalid argument '"+c+"' for pipe '"+g(b)+"'")}return ka(b,a),b}(ja),ma=function(){function a(){}return a.prototype.createSubscription=function(a,b){return a.subscribe({next:b,error:function(a){throw a}})},a.prototype.dispose=function(a){a.unsubscribe()},a.prototype.onDestroy=function(a){a.unsubscribe()},a}(),na=function(){function a(){}return a.prototype.createSubscription=function(a,b){return a.then(b,function(a){throw a})},a.prototype.dispose=function(a){},a.prototype.onDestroy=function(a){},a}(),oa=new na,pa=new ma,qa=function(){function a(a){this._ref=a,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return a.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},a.prototype.transform=function(a){return this._obj?a!==this._obj?(this._dispose(),this.transform(a)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,b.WrappedValue.wrap(this._latestValue)):(a&&this._subscribe(a),this._latestReturnedValue=this._latestValue,this._latestValue)},a.prototype._subscribe=function(a){var b=this;this._obj=a,this._strategy=this._selectStrategy(a),this._subscription=this._strategy.createSubscription(a,function(c){return b._updateLatestValue(a,c)})},a.prototype._selectStrategy=function(b){if(ha(b))return oa;if(b.subscribe)return pa;throw new la(a,b)},a.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},a.prototype._updateLatestValue=function(a,b){a===this._obj&&(this._latestValue=b,this._ref.markForCheck())},a.decorators=[{type:b.Pipe,args:[{name:"async",pure:!1}]}],a.ctorParameters=[{type:b.ChangeDetectorRef}],a}();!function(a){a[a.Decimal=0]="Decimal",a[a.Percent=1]="Percent",a[a.Currency=2]="Currency"}(S||(S={}));var ra=function(){function a(){}return a.format=function(a,b,c,d){var e=void 0===d?{}:d,f=e.minimumIntegerDigits,g=e.minimumFractionDigits,h=e.maximumFractionDigits,i=e.currency,j=e.currencyAsSymbol,k=void 0!==j&&j,l={minimumIntegerDigits:f,minimumFractionDigits:g,maximumFractionDigits:h,style:S[c].toLowerCase()};return c==S.Currency&&(l.currency=i,l.currencyDisplay=k?"symbol":"code"),new Intl.NumberFormat(b,l).format(a)},a}(),sa=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,ta={yMMMdjms:y(x([v("year",1),w("month",3),v("day",1),v("hour",1),v("minute",1),v("second",1)])),yMdjm:y(x([v("year",1),v("month",1),v("day",1),v("hour",1),v("minute",1)])),yMMMMEEEEd:y(x([v("year",1),w("month",4),w("weekday",4),v("day",1)])),yMMMMd:y(x([v("year",1),w("month",4),v("day",1)])),yMMMd:y(x([v("year",1),w("month",3),v("day",1)])),yMd:y(x([v("year",1),v("month",1),v("day",1)])),jms:y(x([v("hour",1),v("second",1),v("minute",1)])),jm:y(x([v("hour",1),v("minute",1)]))},ua={yyyy:y(v("year",4)),yy:y(v("year",2)),y:y(v("year",1)),MMMM:y(w("month",4)),MMM:y(w("month",3)),MM:y(v("month",2)),M:y(v("month",1)),LLLL:y(w("month",4)),dd:y(v("day",2)),d:y(v("day",1)),HH:p(r(y(u(v("hour",2),!1)))),H:r(y(u(v("hour",1),!1))),hh:p(r(y(u(v("hour",2),!0)))),h:r(y(u(v("hour",1),!0))),jj:y(v("hour",2)),j:y(v("hour",1)),mm:p(y(v("minute",2))),m:y(v("minute",1)),ss:p(y(v("second",2))),s:y(v("second",1)),sss:y(v("second",3)),EEEE:y(w("weekday",4)),EEE:y(w("weekday",3)),EE:y(w("weekday",2)),E:y(w("weekday",1)),a:q(y(u(v("hour",1),!0))),Z:t("short"),z:t("long"),ww:y({}),w:y({}),G:y(w("era",1)),GG:y(w("era",2)),GGG:y(w("era",3)),GGGG:y(w("era",4))},va=new Map,wa=[].slice,xa=function(){function a(){}return a.format=function(a,b,c){return z(c,a,b)},a}(),ya=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c){if(void 0===c&&(c="mediumDate"),e(b))return null;if(!this.supports(b))throw new la(a,b);return I.isNumeric(b)&&(b=parseFloat(b)),xa.format(new Date(b),this._locale,a._ALIASES[c]||c)},a.prototype.supports=function(a){return f(a)||I.isNumeric(a)||"string"==typeof a&&f(new Date(a))},a._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},a.decorators=[{type:b.Pipe,args:[{name:"date",pure:!0}]}],a.ctorParameters=[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}],a}(),za=/#/g,Aa=function(){function a(a){this._localization=a}return a.prototype.transform=function(b,c){if(e(b))return"";if("object"!=typeof c||null===c)throw new la(a,c);var d=l(b,Object.keys(c),this._localization);return c[d].replace(za,b.toString())},a.decorators=[{type:b.Pipe,args:[{name:"i18nPlural",pure:!0}]}],a.ctorParameters=[{type:Q}],a}(),Ba=function(){function a(){}return a.prototype.transform=function(b,c){if(e(b))return"";if("object"!=typeof c||null===c)throw new la(a,c);return c[b]||""},a.decorators=[{type:b.Pipe,args:[{name:"i18nSelect",pure:!0}]}],a.ctorParameters=[],a}(),Ca=function(){function a(){}return a.prototype.transform=function(a){return JSON.stringify(a,null,2)},a.decorators=[{type:b.Pipe,args:[{name:"json",pure:!1}]}],a.ctorParameters=[],a}(),Da=function(){function a(){}return a.prototype.transform=function(b){if(e(b))return b;if("string"!=typeof b)throw new la(a,b);return b.toLowerCase()},a.decorators=[{type:b.Pipe,args:[{name:"lowercase"}]}],a.ctorParameters=[],a}(),Ea=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Fa=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c){return void 0===c&&(c=null),B(a,this._locale,b,S.Decimal,c)},a.decorators=[{type:b.Pipe,args:[{name:"number"}]}],a.ctorParameters=[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}],a}(),Ga=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c){return void 0===c&&(c=null),B(a,this._locale,b,S.Percent,c)},a.decorators=[{type:b.Pipe,args:[{name:"percent"}]}],a.ctorParameters=[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}],a}(),Ha=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c,d,e){return void 0===c&&(c="USD"),void 0===d&&(d=!1),void 0===e&&(e=null),B(a,this._locale,b,S.Currency,e,c,d)},a.decorators=[{type:b.Pipe,args:[{name:"currency"}]}],a.ctorParameters=[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}],a}(),Ia=function(){function a(){}return a.prototype.transform=function(b,c,d){if(e(b))return b;if(!this.supports(b))throw new la(a,b);return b.slice(c,d)},a.prototype.supports=function(a){return"string"==typeof a||Array.isArray(a)},a.decorators=[{type:b.Pipe,args:[{name:"slice",pure:!1}]}],a.ctorParameters=[],a}(),Ja=function(){function a(){}return a.prototype.transform=function(b){if(e(b))return b;if("string"!=typeof b)throw new la(a,b);return b.toUpperCase()},a.decorators=[{type:b.Pipe,args:[{name:"uppercase"}]}],a.ctorParameters=[],a}(),Ka=[qa,Ja,Da,Ca,Ia,Fa,Ga,Ha,ya,Aa,Ba],La=function(){function a(){}return a.decorators=[{type:b.NgModule,args:[{declarations:[ga,Ka],exports:[ga,Ka],providers:[{provide:Q,useClass:R}]}]}],a.ctorParameters=[],a}();a.NgLocalization=Q,a.CommonModule=La,a.NgClass=U,a.NgFor=W,a.NgIf=Y,a.NgPlural=ca,a.NgPluralCase=da,a.NgStyle=ea,a.NgSwitch=_,a.NgSwitchCase=aa,a.NgSwitchDefault=ba,a.NgTemplateOutlet=fa,a.AsyncPipe=qa,a.DatePipe=ya,a.I18nPluralPipe=Aa,a.I18nSelectPipe=Ba,a.JsonPipe=Ca,a.LowerCasePipe=Da,a.CurrencyPipe=Ha,a.DecimalPipe=Fa,a.PercentPipe=Ga,a.SlicePipe=Ia,a.UpperCasePipe=Ja,a.PlatformLocation=D,a.LocationStrategy=E,a.APP_BASE_HREF=F,a.HashLocationStrategy=M,a.PathLocationStrategy=O,a.Location=K})}(),a.registerDynamic("2a",[],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=function(a){function b(){var b=a.call(this,"object unsubscribed");this.name=b.name="ObjectUnsubscribedError",this.stack=b.stack,this.message=b.message}return d(b,a),b}(Error);return b.ObjectUnsubscribedError=e,c.exports}),a.registerDynamic("32",["33"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=a("33"),f=function(a){function b(b,c){a.call(this),this.subject=b,this.subscriber=c,this.closed=!1}return d(b,a),b.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this.subject,b=a.observers;if(this.subject=null,b&&0!==b.length&&!a.isStopped&&!a.closed){var c=b.indexOf(this.subscriber);c!==-1&&b.splice(c,1)}}},b}(e.Subscription);return b.SubjectSubscription=f,c.exports}),a.registerDynamic("29",["9","10","33","2a","32","34"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=a("9"),f=a("10"),g=a("33"),h=a("2a"),i=a("32"),j=a("34"),k=function(a){function b(b){a.call(this,b),this.destination=b}return d(b,a),b}(f.Subscriber);b.SubjectSubscriber=k;var l=function(a){function b(){a.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return d(b,a),b.prototype[j.$$rxSubscriber]=function(){return new k(this)},b.prototype.lift=function(a){var b=new m(this,this);return b.operator=a,b},b.prototype.next=function(a){if(this.closed)throw new h.ObjectUnsubscribedError;if(!this.isStopped)for(var b=this.observers,c=b.length,d=b.slice(),e=0;e<c;e++)d[e].next(a)},b.prototype.error=function(a){if(this.closed)throw new h.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=a,this.isStopped=!0;for(var b=this.observers,c=b.length,d=b.slice(),e=0;e<c;e++)d[e].error(a);this.observers.length=0},b.prototype.complete=function(){if(this.closed)throw new h.ObjectUnsubscribedError;this.isStopped=!0;for(var a=this.observers,b=a.length,c=a.slice(),d=0;d<b;d++)c[d].complete();this.observers.length=0},b.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},b.prototype._subscribe=function(a){if(this.closed)throw new h.ObjectUnsubscribedError;return this.hasError?(a.error(this.thrownError),g.Subscription.EMPTY):this.isStopped?(a.complete(),g.Subscription.EMPTY):(this.observers.push(a),new i.SubjectSubscription(this,a))},b.prototype.asObservable=function(){var a=new e.Observable;return a.source=this,a},b.create=function(a,b){return new m(a,b)},b}(e.Observable);b.Subject=l;var m=function(a){function b(b,c){a.call(this),this.destination=b,this.source=c}return d(b,a),b.prototype.next=function(a){var b=this.destination;b&&b.next&&b.next(a)},b.prototype.error=function(a){var b=this.destination;b&&b.error&&this.destination.error(a)},b.prototype.complete=function(){var a=this.destination;a&&a.complete&&this.destination.complete()},b.prototype._subscribe=function(a){var b=this.source;return b?this.source.subscribe(a):g.Subscription.EMPTY},b}(l);return b.AnonymousSubject=m,c.exports}),function(){var e=a.amdDefine;!function(a,f){"object"==typeof c&&"undefined"!=typeof d?f(c,b("rxjs/Subject"),b("rxjs/Observable")):"function"==typeof e&&e.amd?e("3",["exports","29","9"],f):f((a.ng=a.ng||{},a.ng.core=a.ng.core||{}),a.Rx,a.Rx)}(this,function(a,b,c){"use strict";function d(a){Zone.current.scheduleMicroTask("scheduleMicrotask",a)}function e(a){return a.name||typeof a}function f(a){return null!=a}function g(a){return null==a}function h(a){if("string"==typeof a)return a;if(void 0===a||null===a)return""+a;if(a.overriddenName)return a.overriddenName;if(a.name)return a.name;var b=a.toString(),c=b.indexOf("\n");return c===-1?b:b.substring(0,c)}function i(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function j(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function k(a){console.log(a)}function l(a){console.warn(a)}function m(){if(!ib)if(gb.Symbol&&Symbol.iterator)ib=Symbol.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(ib=c)}return ib}function n(a){return!j(a)}function o(a){return"function"==typeof a&&a.hasOwnProperty("annotation")&&(a=a.annotation),a}function p(a,b){if(a===Object||a===String||a===Function||a===Number||a===Array)throw new Error("Can not use native "+h(a)+" as constructor");if("function"==typeof a)return a;if(Array.isArray(a)){var c=a,d=c.length-1,e=a[d];if("function"!=typeof e)throw new Error("Last position of Class method array must be Function in key "+b+" was '"+h(e)+"'");if(d!=e.length)throw new Error("Number of annotations ("+d+") does not match number of arguments ("+e.length+") in the function: "+h(e));for(var f=[],g=0,i=c.length-1;g<i;g++){var j=[];f.push(j);var k=c[g];if(Array.isArray(k))for(var l=0;l<k.length;l++)j.push(o(k[l]));else"function"==typeof k?j.push(o(k)):j.push(k)}return kb.defineMetadata("parameters",f,e),e}throw new Error("Only Function or Array is supported in Class definition for key '"+b+"' is '"+h(a)+"'")}function q(a){var b=p(a.hasOwnProperty("constructor")?a.constructor:void 0,"constructor"),c=b.prototype;if(a.hasOwnProperty("extends")){if("function"!=typeof a.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+h(a.extends));b.prototype=c=Object.create(a.extends.prototype)}for(var d in a)"extends"!==d&&"prototype"!==d&&a.hasOwnProperty(d)&&(c[d]=p(a[d],d));this&&this.annotations instanceof Array&&kb.defineMetadata("annotations",this.annotations,b);var e=b.name;return e&&"constructor"!==e||(b.overriddenName="class"+jb++),b}function r(a,b,c,d){function e(a){if(!kb||!kb.getMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof e)return f.call(this,a),this;var b=new e(a),c="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];c.push(b);var g=function(a){var c=kb.getOwnMetadata("annotations",a)||[];return c.push(b),kb.defineMetadata("annotations",c,a),a};return g.annotations=c,g.Class=q,d&&d(g),g}void 0===d&&(d=null);var f=s([b]);return c&&(e.prototype=Object.create(c.prototype)),e.prototype.toString=function(){return"@"+a},e.annotationCls=e,e}function s(a){return function(){for(var b=this,c=[],d=0;d<arguments.length;d++)c[d-0]=arguments[d];a.forEach(function(a,d){var e=c[d];if(Array.isArray(a))b[a[0]]=void 0===e?a[1]:e;else for(var f in a)b[f]=e&&e.hasOwnProperty(f)?e[f]:a[f]})}}function t(a,b,c){function d(){function a(a,b,c){for(var d=kb.getMetadata("parameters",a)||[];d.length<=c;)d.push(null);return d[c]=d[c]||[],d[c].push(f),kb.defineMetadata("parameters",d,a),a}for(var b=[],c=0;c<arguments.length;c++)b[c-0]=arguments[c];if(this instanceof d)return e.apply(this,b),this;var f=new((g=d).bind.apply(g,[void 0].concat(b)));return a.annotation=f,a;var g}var e=s(b);return c&&(d.prototype=Object.create(c.prototype)),d.prototype.toString=function(){return"@"+a},d.annotationCls=d,d}function u(a,b,c){function d(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];if(this instanceof d)return e.apply(this,a),this;var c=new((f=d).bind.apply(f,[void 0].concat(a)));return function(a,b){var d=kb.getOwnMetadata("propMetadata",a.constructor)||{};d[b]=d.hasOwnProperty(b)&&d[b]||[],d[b].unshift(c),kb.defineMetadata("propMetadata",d,a.constructor)};var f}var e=s(b);return c&&(d.prototype=Object.create(c.prototype)),d.prototype.toString=function(){return"@"+a},d.annotationCls=d,d}function v(b){return g(b)||b===a.ChangeDetectionStrategy.Default}function w(a){return a.__forward_ref__=w,a.toString=function(){return h(this())},a}function x(a){return"function"==typeof a&&a.hasOwnProperty("__forward_ref__")&&a.__forward_ref__===w?a():a}function y(){throw new Error("unimplemented")}function z(a){for(var b=[],c=0;c<a.length;++c){if(b.indexOf(a[c])>-1)return b.push(a[c]),b;b.push(a[c])}return b}function A(a){if(a.length>1){var b=z(a.slice().reverse()),c=b.map(function(a){return h(a.token)});return" ("+c.join(" -> ")+")"}return""}function B(a,b){if(f(a))for(var c=0;c<a.length;c++){var d=a[c];Array.isArray(d)?B(d,b):b.push(d)}return b}function C(a){return!!j(a)&&(Array.isArray(a)||!(a instanceof Map)&&m()in a)}function D(a,b,c){for(var d=a[m()](),e=b[m()]();;){var f=d.next(),g=e.next();if(f.done&&g.done)return!0;if(f.done||g.done)return!1;if(!c(f.value,g.value))return!1}}function E(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(var d=a[m()](),e=void 0;!(e=d.next()).done;)b(e.value)}function F(a){return a?a.map(function(a){var b=a.type,c=b.annotationCls,d=a.args?a.args:[];return new(c.bind.apply(c,[void 0].concat(d)))}):[]}function G(a){var b,c;if(f(a.useClass)){var d=x(a.useClass);b=vc.factory(d),c=M(d)}else f(a.useExisting)?(b=function(a){return a},c=[wc.fromKey(jc.get(a.useExisting))]):f(a.useFactory)?(b=a.useFactory,c=L(a.useFactory,a.deps)):(b=function(){return a.useValue},c=xc);return new zc(b,c)}function H(a){return new yc(jc.get(a.provide),[G(a)],a.multi)}function I(a){var b=K(a,[]),c=b.map(H);return nc.values(J(c,new Map))}function J(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=b.get(d.key.id);if(f(e)){if(d.multiProvider!==e.multiProvider)throw new ic(e,d);if(d.multiProvider)for(var g=0;g<d.resolvedFactories.length;g++)e.resolvedFactories.push(d.resolvedFactories[g]);else b.set(d.key.id,d)}else{var h;h=d.multiProvider?new yc(d.key,d.resolvedFactories.slice(),d.multiProvider):d,b.set(d.key.id,h)}}return b}function K(a,b){return a.forEach(function(a){if(a instanceof qc)b.push({provide:a,useClass:a});else if(a&&"object"==typeof a&&void 0!==a.provide)b.push(a);else{if(!(a instanceof Array))throw new fc(a);K(a,b)}}),b}function L(a,b){if(b){var c=b.map(function(a){return[a]});return b.map(function(b){return N(a,b,c)})}return M(a)}function M(a){var b=vc.parameters(a);if(!b)return[];if(b.some(g))throw new gc(a,b);return b.map(function(c){return N(a,c,b)})}function N(a,b,c){var d=[],e=null,g=!1;if(!Array.isArray(b))return b instanceof lb?O(b.token,g,null,null,d):O(b,g,null,null,d);for(var h=null,i=null,j=0;j<b.length;++j){var k=b[j];k instanceof qc?e=k:k instanceof lb?e=k.token:k instanceof mb?g=!0:k instanceof ob?i=k:k instanceof qb?i=k:k instanceof pb&&(h=k)}if(e=x(e),f(e))return O(e,g,h,i,d);throw new gc(a,c)}function O(a,b,c,d,e){return new wc(jc.get(a),b,c,d,e)}function P(a,b){for(var c=new Array(a._proto.numberOfProviders),d=0;d<a._proto.numberOfProviders;++d)c[d]=b(a._proto.getProviderAtIndex(d));return c}function Q(a){return!!a&&"function"==typeof a.then}function R(){return""+S()+S()+S()}function S(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function T(){throw new Error("Runtime compiler is not loaded")}function U(a,b,c){var d=a.previousIndex;if(null===d)return d;var e=0;return c&&d<c.length&&(e=c[d]),d+b+e}function V(a,b){return C(a)&&C(b)?D(a,b,V):!(C(a)||n(a)||C(b)||n(b))||i(a,b)}function W(){var a=hb.wtf;return!(!a||!(vd=a.trace))&&(wd=vd.events,!0)}function X(a,b){return void 0===b&&(b=null),wd.createScope(a,b)}function Y(a,b){return vd.leaveScope(a,b),b}function Z(a,b){return vd.beginTimeRange(a,b)}function $(a){vd.endTimeRange(a)}function _(a,b){return null}function aa(a){return ba(a,[])}function ba(a,b){for(var c=0;c<a.length;c++){var d=a[c];if(d instanceof Id){var e=d;if(b.push(e.nativeElement),f(e.nestedViews))for(var g=0;g<e.nestedViews.length;g++)ba(e.nestedViews[g].rootNodesOrAppElements,b)}else b.push(d)}return b}function ca(a,b){var c;if(a)if(a.length<b){var d=a.length;c=new Array(b);for(var e=0;e<b;e++)c[e]=e<d?a[e]:Od}else c=a;else c=Od;return c}function da(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){switch(a){case 1:return b+ea(c)+d;case 2:return b+ea(c)+d+ea(e)+f;case 3:return b+ea(c)+d+ea(e)+f+ea(g)+h;case 4:return b+ea(c)+d+ea(e)+f+ea(g)+h+ea(i)+j;case 5:return b+ea(c)+d+ea(e)+f+ea(g)+h+ea(i)+j+ea(k)+l;case 6:return b+ea(c)+d+ea(e)+f+ea(g)+h+ea(i)+j+ea(k)+l+ea(m)+n;case 7:return b+ea(c)+d+ea(e)+f+ea(g)+h+ea(i)+j+ea(k)+l+ea(m)+n+ea(o)+p;case 8:return b+ea(c)+d+ea(e)+f+ea(g)+h+ea(i)+j+ea(k)+l+ea(m)+n+ea(o)+p+ea(q)+r;case 9:return b+ea(c)+d+ea(e)+f+ea(g)+h+ea(i)+j+ea(k)+l+ea(m)+n+ea(o)+p+ea(q)+r+ea(s)+t;default:throw new Error("Does not support more than 9 expressions")}}function ea(a){return null!=a?a.toString():""}function fa(a,b,c){if(a){if(!V(b,c))throw new Kd(b,c);return!1}return!i(b,c)}function ga(a,b){return a}function ha(a){var b,c=id;return function(d){return i(c,d)||(c=d,b=a(d)),b}}function ia(a){var b,c=id,d=id;return function(e,f){return i(c,e)&&i(d,f)||(c=e,d=f,b=a(e,f)),b}}function ja(a){var b,c=id,d=id,e=id;return function(f,g,h){return i(c,f)&&i(d,g)&&i(e,h)||(c=f,d=g,e=h,b=a(f,g,h)),b}}function ka(a){var b,c,d,e,f;return c=d=e=f=id,function(g,h,j,k){return i(c,g)&&i(d,h)&&i(e,j)&&i(f,k)||(c=g,d=h,e=j,f=k,b=a(g,h,j,k)),b}}function la(a){var b,c,d,e,f,g;return c=d=e=f=g=id,function(h,j,k,l,m){return i(c,h)&&i(d,j)&&i(e,k)&&i(f,l)&&i(g,m)||(c=h,d=j,e=k,f=l,g=m,b=a(h,j,k,l,m)),b}}function ma(a){var b,c,d,e,f,g,h;return c=d=e=f=g=h=id,function(j,k,l,m,n,o){return i(c,j)&&i(d,k)&&i(e,l)&&i(f,m)&&i(g,n)&&i(h,o)||(c=j,d=k,e=l,f=m,g=n,h=o,b=a(j,k,l,m,n,o)),b}}function na(a){var b,c,d,e,f,g,h,j;return c=d=e=f=g=h=j=id,function(k,l,m,n,o,p,q){return i(c,k)&&i(d,l)&&i(e,m)&&i(f,n)&&i(g,o)&&i(h,p)&&i(j,q)||(c=k,d=l,e=m,f=n,g=o,h=p,j=q,b=a(k,l,m,n,o,p,q)),b}}function oa(a){var b,c,d,e,f,g,h,j,k;return c=d=e=f=g=h=j=k=id,function(l,m,n,o,p,q,r,s){return i(c,l)&&i(d,m)&&i(e,n)&&i(f,o)&&i(g,p)&&i(h,q)&&i(j,r)&&i(k,s)||(c=l,d=m,e=n,f=o,g=p,h=q,j=r,k=s,b=a(l,m,n,o,p,q,r,s)),b}}function pa(a){var b,c,d,e,f,g,h,j,k,l;return c=d=e=f=g=h=j=k=l=id,function(m,n,o,p,q,r,s,t,u){return i(c,m)&&i(d,n)&&i(e,o)&&i(f,p)&&i(g,q)&&i(h,r)&&i(j,s)&&i(k,t)&&i(l,u)||(c=m,d=n,e=o,f=p,g=q,h=r,j=s,k=t,l=u,b=a(m,n,o,p,q,r,s,t,u)),b}}function qa(a){var b,c,d,e,f,g,h,j,k,l,m;return c=d=e=f=g=h=j=k=l=m=id,function(n,o,p,q,r,s,t,u,v,w){return i(c,n)&&i(d,o)&&i(e,p)&&i(f,q)&&i(g,r)&&i(h,s)&&i(j,t)&&i(k,u)&&i(l,v)&&i(m,w)||(c=n,d=o,e=p,f=q,g=r,h=s,j=t,k=u,l=v,m=w,b=a(n,o,p,q,r,s,t,u,v,w)),b}}function ra(a,b,c){Object.keys(c).forEach(function(d){sa(a,b,d,c[d].currentValue)})}function sa(a,b,c,d){try{a.setBindingDebugInfo(b,"ng-reflect-"+ta(c),d?d.toString():null)}catch(d){a.setBindingDebugInfo(b,"ng-reflect-"+ta(c),"[ERROR] Exception while trying to serialize the value")}}function ta(a){return a.replace(Sd,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return"-"+a[1].toLowerCase()})}function ua(a,b,c,d,e){for(var f=a.createElement(b,c,e),g=0;g<d.length;g+=2)a.setElementAttribute(f,d.get(g),d.get(g+1));return f}function va(a,b,c,d,e){var g;return g=f(d)?a.selectRootElement(d,e):ua(a,null,b,c,e)}function wa(a){pe=a}function xa(){if(se)throw new Error("Cannot enable prod mode after platform setup.");re=!1}function ya(){return se=!0,re}function za(a){if(Hd&&!Hd.destroyed)throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Hd=a.get(te);var b=a.get(Pc,null);return b&&b.forEach(function(a){return a()}),Hd}function Aa(a,b,c){void 0===c&&(c=[]);var d=new rb("Platform: "+b);return function(b){return void 0===b&&(b=[]),Da()||(a?a(c.concat(b).concat({provide:d,useValue:!0})):za(Hc.resolveAndCreate(c.concat(b).concat({provide:d,useValue:!0})))),Ba(d)}}function Ba(a){var b=Da();if(!b)throw new Error("No platform exists!");if(!b.injector.get(a,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return b}function Ca(){Hd&&!Hd.destroyed&&Hd.destroy()}function Da(){return Hd&&!Hd.destroyed?Hd:null}function Ea(a,b){try{var c=b();return Q(c)?c.catch(function(b){throw a.handleError(b),b}):c}catch(b){throw a.handleError(b),b}}function Fa(a,b){var c=De.get(a);if(c)throw new Error("Duplicate module registered for "+a+" - "+c.moduleType.name+" vs "+b.moduleType.name);De.set(a,b)}function Ga(a){var b=De.get(a);if(!b)throw new Error("No module with ID "+a+" loaded");return b}function Ha(a,b,c){if(!a)throw new Error("Cannot find '"+c+"' in '"+b+"'");return a}function Ia(a){Ne.push(a)}function Ja(){for(var a=0;a<Ne.length;a++){var b=Ne[a];b.play()}Ne=[]}function Ka(a){return a.map(function(a){return a.nativeElement})}function La(a,b,c){a.childNodes.forEach(function(a){a instanceof Ve&&(b(a)&&c.push(a),La(a,b,c))})}function Ma(a,b,c){a instanceof Ve&&a.childNodes.forEach(function(a){b(a)&&c.push(a),a instanceof Ve&&Ma(a,b,c)})}function Na(a){return We.get(a)}function Oa(a){We.set(a.nativeNode,a)}function Pa(a){We.delete(a.nativeNode)}function Qa(){return vc}function Ra(){return pd}function Sa(){return qd}function Ta(a,b){void 0===b&&(b=null);var c=b;if(!f(c)){var d={};c=new tf([d],1)}return new uf(a,c)}function Ua(a){return new xf(a)}function Va(a){return new wf(a)}function Wa(a){var b,c=null;return"string"==typeof a?b=[a]:(b=Array.isArray(a)?a:[a],b.forEach(function(a){var b=a.offset;f(b)&&(c=null==c?parseFloat(b):c)})),new tf(b,c)}function Xa(a,b){return new pf(a,b)}function Ya(a){return new sf(a)}function Za(a,b){var c=Array.isArray(b)?new wf(b):b;return new qf(a,c)}function $a(a,b){return new nf(a,b)}function _a(a,b,c){void 0===c&&(c=null);var d={};return Object.keys(b).forEach(function(a){var e=b[a];d[a]=e==mf?c:e.toString()}),Object.keys(a).forEach(function(a){f(d[a])||(d[a]=c)}),d}function ab(a,b,c){var d=c.length-1,e=c[0],g=eb(e.styles.styles),h={},i=!1;Object.keys(a).forEach(function(b){var c=a[b];g[b]||(g[b]=c,h[b]=c,i=!0)});var j=oc.merge({},g),k=c[d];k.styles.styles.unshift(b);var l=eb(k.styles.styles),m={},n=!1;return Object.keys(j).forEach(function(a){f(l[a])||(m[a]=mf,n=!0)}),n&&k.styles.styles.push(m),Object.keys(l).forEach(function(a){f(g[a])||(h[a]=mf,i=!0)}),i&&e.styles.styles.push(h),c}function bb(a){var b={};return Object.keys(a).forEach(function(a){b[a]=null}),b}function cb(a,b){return b.map(function(b){var c={};return Object.keys(b).forEach(function(d){var e=b[d];e==bf&&(e=a[d],f(e)||(e=mf)),a[d]=e,c[d]=e}),c})}function db(a,b,c){Object.keys(c).forEach(function(d){b.setElementStyle(a,d,c[d])})}function eb(a){var b={};return a.forEach(function(a){Object.keys(a).forEach(function(c){b[c]=a[c]})}),b}function fb(a){var b;if(a instanceof Id){var c=a;if(b=c.nativeElement,f(c.nestedViews))for(var d=c.nestedViews.length-1;d>=0;d--){var e=c.nestedViews[d];e.rootNodesOrAppElements.length>0&&(b=fb(e.rootNodesOrAppElements[e.rootNodesOrAppElements.length-1]))}}else b=a;return b}var gb;gb="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var hb=gb;hb.assert=function(a){};var ib=null,jb=0,kb=hb.Reflect,lb=t("Inject",[["token",void 0]]),mb=t("Optional",[]),nb=t("Injectable",[]),ob=t("Self",[]),pb=t("SkipSelf",[]),qb=t("Host",[]),rb=function(){function a(a){this._desc=a}return a.prototype.toString=function(){return"Token "+this._desc},a.decorators=[{type:nb}],a.ctorParameters=[null],a}(),sb=new rb("AnalyzeForEntryComponents"),tb=t("Attribute",[["attributeName",void 0]]),ub=function(){function a(){}return a}(),vb=u("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],ub),wb=u("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],ub),xb=u("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],ub),yb=u("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],ub);a.ChangeDetectionStrategy,function(a){a[a.OnPush=0]="OnPush",a[a.Default=1]="Default"}(a.ChangeDetectionStrategy||(a.ChangeDetectionStrategy={}));var zb;!function(a){a[a.CheckOnce=0]="CheckOnce",a[a.Checked=1]="Checked",a[a.CheckAlways=2]="CheckAlways",a[a.Detached=3]="Detached",a[a.Errored=4]="Errored",a[a.Destroyed=5]="Destroyed"}(zb||(zb={}));var Ab,Bb=r("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),Cb=r("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:a.ChangeDetectionStrategy.Default,
  queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},Bb),Db=r("Pipe",{name:void 0,pure:!0}),Eb=u("Input",[["bindingPropertyName",void 0]]),Fb=u("Output",[["bindingPropertyName",void 0]]),Gb=u("HostBinding",[["hostPropertyName",void 0]]),Hb=u("HostListener",[["eventName",void 0],["args",[]]]);!function(a){a[a.OnInit=0]="OnInit",a[a.OnDestroy=1]="OnDestroy",a[a.DoCheck=2]="DoCheck",a[a.OnChanges=3]="OnChanges",a[a.AfterContentInit=4]="AfterContentInit",a[a.AfterContentChecked=5]="AfterContentChecked",a[a.AfterViewInit=6]="AfterViewInit",a[a.AfterViewChecked=7]="AfterViewChecked"}(Ab||(Ab={}));var Ib=[Ab.OnInit,Ab.OnDestroy,Ab.DoCheck,Ab.OnChanges,Ab.AfterContentInit,Ab.AfterContentChecked,Ab.AfterViewInit,Ab.AfterViewChecked],Jb=function(){function a(){}return a}(),Kb=function(){function a(){}return a}(),Lb=function(){function a(){}return a}(),Mb=function(){function a(){}return a}(),Nb=function(){function a(){}return a}(),Ob=function(){function a(){}return a}(),Pb=function(){function a(){}return a}(),Qb=function(){function a(){}return a}(),Rb={name:"custom-elements"},Sb={name:"no-errors-schema"},Tb=r("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0});a.ViewEncapsulation,function(a){a[a.Emulated=0]="Emulated",a[a.Native=1]="Native",a[a.None=2]="None"}(a.ViewEncapsulation||(a.ViewEncapsulation={}));var Ub=function(){function a(a){var b=void 0===a?{}:a,c=b.templateUrl,d=b.template,e=b.encapsulation,f=b.styles,g=b.styleUrls,h=b.animations,i=b.interpolation;this.templateUrl=c,this.template=d,this.styleUrls=g,this.styles=f,this.encapsulation=e,this.animations=h,this.interpolation=i}return a}(),Vb=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Wb=function(a){function b(b){var c=a.call(this,b);this._nativeError=c}return Vb(b,a),Object.defineProperty(b.prototype,"message",{get:function(){return this._nativeError.message},set:function(a){this._nativeError.message=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(a){this._nativeError.stack=a},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return this._nativeError.toString()},b}(Error),Xb=function(a){function b(b,c){a.call(this,b+" caused by: "+(c instanceof Error?c.message:c)),this.originalError=c}return Vb(b,a),Object.defineProperty(b.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),b}(Wb),Yb=new Object,Zb=Yb,$b=function(){function a(){}return a.prototype.get=function(a,b){if(void 0===b&&(b=Yb),b===Yb)throw new Error("No provider for "+h(a)+"!");return b},a}(),_b=function(){function a(){}return a.prototype.get=function(a,b){return y()},a.THROW_IF_NOT_FOUND=Yb,a.NULL=new $b,a}(),ac=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},bc=function(a){function b(b,c,d){a.call(this,"DI Error"),this.keys=[c],this.injectors=[b],this.constructResolvingMessage=d,this.message=this.constructResolvingMessage(this.keys)}return ac(b,a),b.prototype.addKey=function(a,b){this.injectors.push(a),this.keys.push(b),this.message=this.constructResolvingMessage(this.keys)},b}(Wb),cc=function(a){function b(b,c){a.call(this,b,c,function(a){var b=h(a[0].token);return"No provider for "+b+"!"+A(a)})}return ac(b,a),b}(bc),dc=function(a){function b(b,c){a.call(this,b,c,function(a){return"Cannot instantiate cyclic dependency!"+A(a)})}return ac(b,a),b}(bc),ec=function(a){function b(b,c,d,e){a.call(this,"DI Error",c),this.keys=[e],this.injectors=[b]}return ac(b,a),b.prototype.addKey=function(a,b){this.injectors.push(a),this.keys.push(b)},Object.defineProperty(b.prototype,"message",{get:function(){var a=h(this.keys[0].token);return this.originalError.message+": Error during instantiation of "+a+"!"+A(this.keys)+"."},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),b}(Xb),fc=function(a){function b(b){a.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+b)}return ac(b,a),b}(Wb),gc=function(a){function b(c,d){a.call(this,b._genMessage(c,d))}return ac(b,a),b._genMessage=function(a,b){for(var c=[],d=0,e=b.length;d<e;d++){var f=b[d];f&&0!=f.length?c.push(f.map(h).join(" ")):c.push("?")}return"Cannot resolve all parameters for '"+h(a)+"'("+c.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+h(a)+"' is decorated with Injectable."},b}(Wb),hc=function(a){function b(b){a.call(this,"Index "+b+" is out-of-bounds.")}return ac(b,a),b}(Wb),ic=function(a){function b(b,c){a.call(this,"Cannot mix multi providers and regular providers, got: "+b.toString()+" "+c.toString())}return ac(b,a),b}(Wb),jc=function(){function a(a,b){if(this.token=a,this.id=b,!a)throw new Error("Token must be defined!")}return Object.defineProperty(a.prototype,"displayName",{get:function(){return h(this.token)},enumerable:!0,configurable:!0}),a.get=function(a){return lc.get(x(a))},Object.defineProperty(a,"numberOfKeys",{get:function(){return lc.numberOfKeys},enumerable:!0,configurable:!0}),a}(),kc=function(){function a(){this._allKeys=new Map}return a.prototype.get=function(a){if(a instanceof jc)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var b=new jc(a,jc.numberOfKeys);return this._allKeys.set(a,b),b},Object.defineProperty(a.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),a}(),lc=new kc,mc=function(){try{if((new Map).values().next)return function(a,b){return b?Array.from(a.values()):Array.from(a.keys())}}catch(a){}return function(a,b){var c=new Array(a.size),d=0;return a.forEach(function(a,e){c[d]=b?a:e,d++}),c}}(),nc=function(){function a(){}return a.createFromStringMap=function(a){var b=new Map;for(var c in a)b.set(c,a[c]);return b},a.keys=function(a){return mc(a,!1)},a.values=function(a){return mc(a,!0)},a}(),oc=function(){function a(){}return a.merge=function(a,b){for(var c={},d=0,e=Object.keys(a);d<e.length;d++){var f=e[d];c[f]=a[f]}for(var g=0,h=Object.keys(b);g<h.length;g++){var f=h[g];c[f]=b[f]}return c},a.equals=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e=0;e<c.length;e++){var f=c[e];if(a[f]!==b[f])return!1}return!0},a}(),pc=function(){function a(){}return a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1&&(a.splice(c,1),!0)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.maximum=function(a,b){if(0==a.length)return null;for(var c=null,d=-(1/0),e=0;e<a.length;e++){var f=a[e];if(null!=f){var g=b(f);g>d&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return B(a,b),b},a}(),qc=Function,rc=function(){function a(a){this._reflect=a||hb.Reflect}return a.prototype.isReflectionEnabled=function(){return!0},a.prototype.factory=function(a){return function(){for(var b=[],c=0;c<arguments.length;c++)b[c-0]=arguments[c];return new(a.bind.apply(a,[void 0].concat(b)))}},a.prototype._zipTypesAndAnnotations=function(a,b){var c;c="undefined"==typeof a?new Array(b.length):new Array(a.length);for(var d=0;d<c.length;d++)"undefined"==typeof a?c[d]=[]:a[d]!=Object?c[d]=[a[d]]:c[d]=[],b&&f(b[d])&&(c[d]=c[d].concat(b[d]));return c},a.prototype.parameters=function(a){if(a.parameters)return a.parameters;if(a.ctorParameters){var b=a.ctorParameters,c=b.map(function(a){return a&&a.type}),d=b.map(function(a){return a&&F(a.decorators)});return this._zipTypesAndAnnotations(c,d)}if(f(this._reflect)&&f(this._reflect.getMetadata)){var d=this._reflect.getMetadata("parameters",a),c=this._reflect.getMetadata("design:paramtypes",a);if(c||d)return this._zipTypesAndAnnotations(c,d)}return new Array(a.length).fill(void 0)},a.prototype.annotations=function(a){if(a.annotations){var b=a.annotations;return"function"==typeof b&&b.annotations&&(b=b.annotations),b}if(a.decorators)return F(a.decorators);if(this._reflect&&this._reflect.getMetadata){var b=this._reflect.getMetadata("annotations",a);if(b)return b}return[]},a.prototype.propMetadata=function(a){if(a.propMetadata){var b=a.propMetadata;return"function"==typeof b&&b.propMetadata&&(b=b.propMetadata),b}if(a.propDecorators){var c=a.propDecorators,d={};return Object.keys(c).forEach(function(a){d[a]=F(c[a])}),d}if(this._reflect&&this._reflect.getMetadata){var b=this._reflect.getMetadata("propMetadata",a);if(b)return b}return{}},a.prototype.hasLifecycleHook=function(a,b){return a instanceof qc&&b in a.prototype},a.prototype.getter=function(a){return new Function("o","return o."+a+";")},a.prototype.setter=function(a){return new Function("o","v","return o."+a+" = v;")},a.prototype.method=function(a){var b="if (!o."+a+") throw new Error('\""+a+"\" is undefined');\n        return o."+a+".apply(o, args);";return new Function("o","args",b)},a.prototype.importUri=function(a){return"object"==typeof a&&a.filePath?a.filePath:"./"+h(a)},a.prototype.resolveIdentifier=function(a,b,c){return c},a.prototype.resolveEnum=function(a,b){return a[b]},a}(),sc=function(){function a(){}return a}(),tc=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},uc=function(a){function b(b){a.call(this),this.reflectionCapabilities=b}return tc(b,a),b.prototype.updateCapabilities=function(a){this.reflectionCapabilities=a},b.prototype.factory=function(a){return this.reflectionCapabilities.factory(a)},b.prototype.parameters=function(a){return this.reflectionCapabilities.parameters(a)},b.prototype.annotations=function(a){return this.reflectionCapabilities.annotations(a)},b.prototype.propMetadata=function(a){return this.reflectionCapabilities.propMetadata(a)},b.prototype.hasLifecycleHook=function(a,b){return this.reflectionCapabilities.hasLifecycleHook(a,b)},b.prototype.getter=function(a){return this.reflectionCapabilities.getter(a)},b.prototype.setter=function(a){return this.reflectionCapabilities.setter(a)},b.prototype.method=function(a){return this.reflectionCapabilities.method(a)},b.prototype.importUri=function(a){return this.reflectionCapabilities.importUri(a)},b.prototype.resolveIdentifier=function(a,b,c){return this.reflectionCapabilities.resolveIdentifier(a,b,c)},b.prototype.resolveEnum=function(a,b){return this.reflectionCapabilities.resolveEnum(a,b)},b}(sc),vc=new uc(new rc),wc=function(){function a(a,b,c,d,e){this.key=a,this.optional=b,this.lowerBoundVisibility=c,this.upperBoundVisibility=d,this.properties=e}return a.fromKey=function(b){return new a(b,!1,null,null,[])},a}(),xc=[],yc=function(){function a(a,b,c){this.key=a,this.resolvedFactories=b,this.multiProvider=c}return Object.defineProperty(a.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),a}(),zc=function(){function a(a,b){this.factory=a,this.dependencies=b}return a}(),Ac=10,Bc=new Object,Cc=function(){function a(a,b){this.provider0=null,this.provider1=null,this.provider2=null,this.provider3=null,this.provider4=null,this.provider5=null,this.provider6=null,this.provider7=null,this.provider8=null,this.provider9=null,this.keyId0=null,this.keyId1=null,this.keyId2=null,this.keyId3=null,this.keyId4=null,this.keyId5=null,this.keyId6=null,this.keyId7=null,this.keyId8=null,this.keyId9=null;var c=b.length;c>0&&(this.provider0=b[0],this.keyId0=b[0].key.id),c>1&&(this.provider1=b[1],this.keyId1=b[1].key.id),c>2&&(this.provider2=b[2],this.keyId2=b[2].key.id),c>3&&(this.provider3=b[3],this.keyId3=b[3].key.id),c>4&&(this.provider4=b[4],this.keyId4=b[4].key.id),c>5&&(this.provider5=b[5],this.keyId5=b[5].key.id),c>6&&(this.provider6=b[6],this.keyId6=b[6].key.id),c>7&&(this.provider7=b[7],this.keyId7=b[7].key.id),c>8&&(this.provider8=b[8],this.keyId8=b[8].key.id),c>9&&(this.provider9=b[9],this.keyId9=b[9].key.id)}return a.prototype.getProviderAtIndex=function(a){if(0==a)return this.provider0;if(1==a)return this.provider1;if(2==a)return this.provider2;if(3==a)return this.provider3;if(4==a)return this.provider4;if(5==a)return this.provider5;if(6==a)return this.provider6;if(7==a)return this.provider7;if(8==a)return this.provider8;if(9==a)return this.provider9;throw new hc(a)},a.prototype.createInjectorStrategy=function(a){return new Fc(a,this)},a}(),Dc=function(){function a(a,b){this.providers=b;var c=b.length;this.keyIds=new Array(c);for(var d=0;d<c;d++)this.keyIds[d]=b[d].key.id}return a.prototype.getProviderAtIndex=function(a){if(a<0||a>=this.providers.length)throw new hc(a);return this.providers[a]},a.prototype.createInjectorStrategy=function(a){return new Gc(this,a)},a}(),Ec=function(){function a(a){this.numberOfProviders=a.length,this._strategy=a.length>Ac?new Dc(this,a):new Cc(this,a)}return a.fromResolvedProviders=function(b){return new a(b)},a.prototype.getProviderAtIndex=function(a){return this._strategy.getProviderAtIndex(a)},a}(),Fc=function(){function a(a,b){this.injector=a,this.protoStrategy=b,this.obj0=Bc,this.obj1=Bc,this.obj2=Bc,this.obj3=Bc,this.obj4=Bc,this.obj5=Bc,this.obj6=Bc,this.obj7=Bc,this.obj8=Bc,this.obj9=Bc}return a.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0},a.prototype.instantiateProvider=function(a){return this.injector._new(a)},a.prototype.getObjByKeyId=function(a){var b=this.protoStrategy,c=this.injector;return b.keyId0===a?(this.obj0===Bc&&(this.obj0=c._new(b.provider0)),this.obj0):b.keyId1===a?(this.obj1===Bc&&(this.obj1=c._new(b.provider1)),this.obj1):b.keyId2===a?(this.obj2===Bc&&(this.obj2=c._new(b.provider2)),this.obj2):b.keyId3===a?(this.obj3===Bc&&(this.obj3=c._new(b.provider3)),this.obj3):b.keyId4===a?(this.obj4===Bc&&(this.obj4=c._new(b.provider4)),this.obj4):b.keyId5===a?(this.obj5===Bc&&(this.obj5=c._new(b.provider5)),this.obj5):b.keyId6===a?(this.obj6===Bc&&(this.obj6=c._new(b.provider6)),this.obj6):b.keyId7===a?(this.obj7===Bc&&(this.obj7=c._new(b.provider7)),this.obj7):b.keyId8===a?(this.obj8===Bc&&(this.obj8=c._new(b.provider8)),this.obj8):b.keyId9===a?(this.obj9===Bc&&(this.obj9=c._new(b.provider9)),this.obj9):Bc},a.prototype.getObjAtIndex=function(a){if(0==a)return this.obj0;if(1==a)return this.obj1;if(2==a)return this.obj2;if(3==a)return this.obj3;if(4==a)return this.obj4;if(5==a)return this.obj5;if(6==a)return this.obj6;if(7==a)return this.obj7;if(8==a)return this.obj8;if(9==a)return this.obj9;throw new hc(a)},a.prototype.getMaxNumberOfObjects=function(){return Ac},a}(),Gc=function(){function a(a,b){this.protoStrategy=a,this.injector=b,this.objs=new Array(a.providers.length).fill(Bc)}return a.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0},a.prototype.instantiateProvider=function(a){return this.injector._new(a)},a.prototype.getObjByKeyId=function(a){for(var b=this.protoStrategy,c=0;c<b.keyIds.length;c++)if(b.keyIds[c]===a)return this.objs[c]===Bc&&(this.objs[c]=this.injector._new(b.providers[c])),this.objs[c];return Bc},a.prototype.getObjAtIndex=function(a){if(a<0||a>=this.objs.length)throw new hc(a);return this.objs[a]},a.prototype.getMaxNumberOfObjects=function(){return this.objs.length},a}(),Hc=function(){function a(){}return a.resolve=function(a){return I(a)},a.resolveAndCreate=function(b,c){void 0===c&&(c=null);var d=a.resolve(b);return a.fromResolvedProviders(d,c)},a.fromResolvedProviders=function(a,b){return void 0===b&&(b=null),new Ic(Ec.fromResolvedProviders(a),b)},Object.defineProperty(a.prototype,"parent",{get:function(){return y()},enumerable:!0,configurable:!0}),a.prototype.resolveAndCreateChild=function(a){return y()},a.prototype.createChildFromResolved=function(a){return y()},a.prototype.resolveAndInstantiate=function(a){return y()},a.prototype.instantiateResolved=function(a){return y()},a}(),Ic=function(){function a(a,b){void 0===b&&(b=null),this._constructionCounter=0,this._proto=a,this._parent=b,this._strategy=a._strategy.createInjectorStrategy(this)}return a.prototype.get=function(a,b){return void 0===b&&(b=Zb),this._getByKey(jc.get(a),null,null,b)},a.prototype.getAt=function(a){return this._strategy.getObjAtIndex(a)},Object.defineProperty(a.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"internalStrategy",{get:function(){return this._strategy},enumerable:!0,configurable:!0}),a.prototype.resolveAndCreateChild=function(a){var b=Hc.resolve(a);return this.createChildFromResolved(b)},a.prototype.createChildFromResolved=function(b){var c=new Ec(b),d=new a(c);return d._parent=this,d},a.prototype.resolveAndInstantiate=function(a){return this.instantiateResolved(Hc.resolve([a])[0])},a.prototype.instantiateResolved=function(a){return this._instantiateProvider(a)},a.prototype._new=function(a){if(this._constructionCounter++>this._strategy.getMaxNumberOfObjects())throw new dc(this,a.key);return this._instantiateProvider(a)},a.prototype._instantiateProvider=function(a){if(a.multiProvider){for(var b=new Array(a.resolvedFactories.length),c=0;c<a.resolvedFactories.length;++c)b[c]=this._instantiate(a,a.resolvedFactories[c]);return b}return this._instantiate(a,a.resolvedFactories[0])},a.prototype._instantiate=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w=b.factory,x=b.dependencies,y=x.length;try{c=y>0?this._getByReflectiveDependency(a,x[0]):null,d=y>1?this._getByReflectiveDependency(a,x[1]):null,e=y>2?this._getByReflectiveDependency(a,x[2]):null,f=y>3?this._getByReflectiveDependency(a,x[3]):null,g=y>4?this._getByReflectiveDependency(a,x[4]):null,h=y>5?this._getByReflectiveDependency(a,x[5]):null,i=y>6?this._getByReflectiveDependency(a,x[6]):null,j=y>7?this._getByReflectiveDependency(a,x[7]):null,k=y>8?this._getByReflectiveDependency(a,x[8]):null,l=y>9?this._getByReflectiveDependency(a,x[9]):null,m=y>10?this._getByReflectiveDependency(a,x[10]):null,n=y>11?this._getByReflectiveDependency(a,x[11]):null,o=y>12?this._getByReflectiveDependency(a,x[12]):null,p=y>13?this._getByReflectiveDependency(a,x[13]):null,q=y>14?this._getByReflectiveDependency(a,x[14]):null,r=y>15?this._getByReflectiveDependency(a,x[15]):null,s=y>16?this._getByReflectiveDependency(a,x[16]):null,t=y>17?this._getByReflectiveDependency(a,x[17]):null,u=y>18?this._getByReflectiveDependency(a,x[18]):null,v=y>19?this._getByReflectiveDependency(a,x[19]):null}catch(b){throw(b instanceof bc||b instanceof ec)&&b.addKey(this,a.key),b}var z;try{switch(y){case 0:z=w();break;case 1:z=w(c);break;case 2:z=w(c,d);break;case 3:z=w(c,d,e);break;case 4:z=w(c,d,e,f);break;case 5:z=w(c,d,e,f,g);break;case 6:z=w(c,d,e,f,g,h);break;case 7:z=w(c,d,e,f,g,h,i);break;case 8:z=w(c,d,e,f,g,h,i,j);break;case 9:z=w(c,d,e,f,g,h,i,j,k);break;case 10:z=w(c,d,e,f,g,h,i,j,k,l);break;case 11:z=w(c,d,e,f,g,h,i,j,k,l,m);break;case 12:z=w(c,d,e,f,g,h,i,j,k,l,m,n);break;case 13:z=w(c,d,e,f,g,h,i,j,k,l,m,n,o);break;case 14:z=w(c,d,e,f,g,h,i,j,k,l,m,n,o,p);break;case 15:z=w(c,d,e,f,g,h,i,j,k,l,m,n,o,p,q);break;case 16:z=w(c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r);break;case 17:z=w(c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s);break;case 18:z=w(c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t);break;case 19:z=w(c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u);break;case 20:z=w(c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v);break;default:throw new Error("Cannot instantiate '"+a.key.displayName+"' because it has more than 20 dependencies")}}catch(b){throw new ec(this,b,b.stack,a.key)}return z},a.prototype._getByReflectiveDependency=function(a,b){return this._getByKey(b.key,b.lowerBoundVisibility,b.upperBoundVisibility,b.optional?null:Zb)},a.prototype._getByKey=function(a,b,c,d){return a===Jc?this:c instanceof ob?this._getByKeySelf(a,d):this._getByKeyDefault(a,d,b)},a.prototype._throwOrNull=function(a,b){if(b!==Zb)return b;throw new cc(this,a)},a.prototype._getByKeySelf=function(a,b){var c=this._strategy.getObjByKeyId(a.id);return c!==Bc?c:this._throwOrNull(a,b)},a.prototype._getByKeyDefault=function(b,c,d){var e;for(e=d instanceof pb?this._parent:this;e instanceof a;){var f=e,g=f._strategy.getObjByKeyId(b.id);if(g!==Bc)return g;e=f._parent}return null!==e?e.get(b.token,c):this._throwOrNull(b,c)},Object.defineProperty(a.prototype,"displayName",{get:function(){var a=P(this,function(a){return' "'+a.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: ["+a+"])"},enumerable:!0,configurable:!0}),a.prototype.toString=function(){return this.displayName},a}(),Jc=jc.get(_b),Kc=function(){function a(a){void 0===a&&(a=!0),this._console=console,this.rethrowError=a}return a.prototype.handleError=function(a){var b=this._findOriginalError(a),c=this._findOriginalStack(a),d=this._findContext(a);if(this._console.error("EXCEPTION: "+this._extractMessage(a)),b&&this._console.error("ORIGINAL EXCEPTION: "+this._extractMessage(b)),c&&(this._console.error("ORIGINAL STACKTRACE:"),this._console.error(c)),d&&(this._console.error("ERROR CONTEXT:"),this._console.error(d)),this.rethrowError)throw a},a.prototype._extractMessage=function(a){return a instanceof Error?a.message:a.toString()},a.prototype._findContext=function(a){return a?a.context?a.context:this._findContext(a.originalError):null},a.prototype._findOriginalError=function(a){for(var b=a.originalError;b&&b.originalError;)b=b.originalError;return b},a.prototype._findOriginalStack=function(a){if(!(a instanceof Error))return null;for(var b=a,c=b.stack;b instanceof Error&&b.originalError;)b=b.originalError,b instanceof Error&&b.stack&&(c=b.stack);return c},a}(),Lc=new rb("Application Initializer"),Mc=function(){function a(a){var b=this;this._done=!1;var c=[];if(a)for(var d=0;d<a.length;d++){var e=a[d]();Q(e)&&c.push(e)}this._donePromise=Promise.all(c).then(function(){b._done=!0}),0===c.length&&(this._done=!0)}return Object.defineProperty(a.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),a.decorators=[{type:nb}],a.ctorParameters=[{type:Array,decorators:[{type:lb,args:[Lc]},{type:mb}]}],a}(),Nc=new rb("AppId"),Oc={provide:Nc,useFactory:R,deps:[]},Pc=new rb("Platform Initializer"),Qc=new rb("appBootstrapListener"),Rc=new rb("Application Packages Root URL"),Sc=function(){function a(){}return a.prototype.log=function(a){k(a)},a.prototype.warn=function(a){l(a)},a.decorators=[{type:nb}],a.ctorParameters=[],a}(),Tc=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Uc=function(a){function b(b){a.call(this,"Can't compile synchronously as "+h(b)+" is still being loaded!"),this.compType=b}return Tc(b,a),b}(Wb),Vc=function(){function a(a,b){this.ngModuleFactory=a,this.componentFactories=b}return a}(),Wc=function(){function a(){}return a.prototype.compileModuleSync=function(a){throw T()},a.prototype.compileModuleAsync=function(a){throw T()},a.prototype.compileModuleAndAllComponentsSync=function(a){throw T()},a.prototype.compileModuleAndAllComponentsAsync=function(a){throw T()},a.prototype.clearCache=function(){},a.prototype.clearCacheFor=function(a){},a}(),Xc=new rb("compilerOptions"),Yc=function(){function a(){}return a}(),Zc=function(){function a(){}return a.prototype.supports=function(a){return C(a)},a.prototype.create=function(a,b){return new _c(b)},a}(),$c=function(a,b){return b},_c=function(){function a(a){this._trackByFn=a,this._length=null,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=this._trackByFn||$c}return Object.defineProperty(a.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),a.prototype.forEachItem=function(a){var b;for(b=this._itHead;null!==b;b=b._next)a(b)},a.prototype.forEachOperation=function(a){for(var b=this._itHead,c=this._removalsHead,d=0,e=null;b||c;){var f=!c||b&&b.currentIndex<U(c,d,e)?b:c,g=U(f,d,e),h=f.currentIndex;if(f===c)d--,c=c._nextRemoved;else if(b=b._next,null==f.previousIndex)d++;else{e||(e=[]);var i=g-d,j=h-d;if(i!=j){for(var k=0;k<i;k++){var l=k<e.length?e[k]:e[k]=0,m=l+k;j<=m&&m<i&&(e[k]=l+1)}var n=f.previousIndex;e[n]=j-i}}g!==h&&a(f,g,h)}},a.prototype.forEachPreviousItem=function(a){var b;for(b=this._previousItHead;null!==b;b=b._nextPrevious)a(b)},a.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)},a.prototype.forEachMovedItem=function(a){var b;for(b=this._movesHead;null!==b;b=b._nextMoved)a(b)},a.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)},a.prototype.forEachIdentityChange=function(a){var b;for(b=this._identityChangesHead;null!==b;b=b._nextIdentityChange)a(b)},a.prototype.diff=function(a){if(g(a)&&(a=[]),!C(a))throw new Error("Error trying to diff '"+a+"'");return this.check(a)?this:null},a.prototype.onDestroy=function(){},a.prototype.check=function(a){var b=this;this._reset();var c,d,e,f=this._itHead,g=!1;if(Array.isArray(a)){var h=a;this._length=a.length;for(var j=0;j<this._length;j++)d=h[j],e=this._trackByFn(j,d),null!==f&&i(f.trackById,e)?(g&&(f=this._verifyReinsertion(f,d,e,j)),i(f.item,d)||this._addIdentityChange(f,d)):(f=this._mismatch(f,d,e,j),g=!0),f=f._next}else c=0,E(a,function(a){e=b._trackByFn(c,a),null!==f&&i(f.trackById,e)?(g&&(f=b._verifyReinsertion(f,a,e,c)),i(f.item,a)||b._addIdentityChange(f,a)):(f=b._mismatch(f,a,e,c),g=!0),f=f._next,c++}),this._length=c;return this._truncate(f),this._collection=a,this.isDirty},Object.defineProperty(a.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),a.prototype._reset=function(){if(this.isDirty){var a,b;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;for(this._additionsHead=this._additionsTail=null,a=this._movesHead;null!==a;a=b)a.previousIndex=a.currentIndex,b=a._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},a.prototype._mismatch=function(a,b,c,d){var e;return null===a?e=this._itTail:(e=a._prev,this._remove(a)),a=null===this._linkedRecords?null:this._linkedRecords.get(c,d),null!==a?(i(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):(a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c),null!==a?(i(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):a=this._addAfter(new ad(b,c),e,d)),a},a.prototype._verifyReinsertion=function(a,b,c,d){var e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c);return null!==e?a=this._reinsertAfter(e,a._prev,d):a.currentIndex!=d&&(a.currentIndex=d,this._addToMoves(a,d)),a},a.prototype._truncate=function(a){for(;null!==a;){var b=a._next;this._addToRemovals(this._unlink(a)),a=b}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},a.prototype._reinsertAfter=function(a,b,c){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);var d=a._prevRemoved,e=a._nextRemoved;return null===d?this._removalsHead=e:d._nextRemoved=e,null===e?this._removalsTail=d:e._prevRemoved=d,this._insertAfter(a,b,c),this._addToMoves(a,c),a},a.prototype._moveAfter=function(a,b,c){return this._unlink(a),this._insertAfter(a,b,c),this._addToMoves(a,c),a},a.prototype._addAfter=function(a,b,c){return this._insertAfter(a,b,c),null===this._additionsTail?this._additionsTail=this._additionsHead=a:this._additionsTail=this._additionsTail._nextAdded=a,a},a.prototype._insertAfter=function(a,b,c){var d=null===b?this._itHead:b._next;return a._next=d,a._prev=b,null===d?this._itTail=a:d._prev=a,null===b?this._itHead=a:b._next=a,null===this._linkedRecords&&(this._linkedRecords=new cd),this._linkedRecords.put(a),a.currentIndex=c,a},a.prototype._remove=function(a){return this._addToRemovals(this._unlink(a))},a.prototype._unlink=function(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);var b=a._prev,c=a._next;return null===b?this._itHead=c:b._next=c,null===c?this._itTail=b:c._prev=b,a},a.prototype._addToMoves=function(a,b){return a.previousIndex===b?a:(null===this._movesTail?this._movesTail=this._movesHead=a:this._movesTail=this._movesTail._nextMoved=a,a)},a.prototype._addToRemovals=function(a){return null===this._unlinkedRecords&&(this._unlinkedRecords=new cd),this._unlinkedRecords.put(a),a.currentIndex=null,a._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a),a},a.prototype._addIdentityChange=function(a,b){return a.item=b,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=a:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=a,a},a.prototype.toString=function(){var a=[];this.forEachItem(function(b){return a.push(b)});var b=[];this.forEachPreviousItem(function(a){return b.push(a)});var c=[];this.forEachAddedItem(function(a){return c.push(a)});var d=[];this.forEachMovedItem(function(a){return d.push(a)});var e=[];this.forEachRemovedItem(function(a){return e.push(a)});var f=[];return this.forEachIdentityChange(function(a){return f.push(a)}),"collection: "+a.join(", ")+"\nprevious: "+b.join(", ")+"\nadditions: "+c.join(", ")+"\nmoves: "+d.join(", ")+"\nremovals: "+e.join(", ")+"\nidentityChanges: "+f.join(", ")+"\n"},a}(),ad=function(){function a(a,b){this.item=a,this.trackById=b,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return a.prototype.toString=function(){return this.previousIndex===this.currentIndex?h(this.item):h(this.item)+"["+h(this.previousIndex)+"->"+h(this.currentIndex)+"]"},a}(),bd=function(){function a(){this._head=null,this._tail=null}return a.prototype.add=function(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)},a.prototype.get=function(a,b){var c;for(c=this._head;null!==c;c=c._nextDup)if((null===b||b<c.currentIndex)&&i(c.trackById,a))return c;return null},a.prototype.remove=function(a){var b=a._prevDup,c=a._nextDup;return null===b?this._head=c:b._nextDup=c,null===c?this._tail=b:c._prevDup=b,null===this._head},a}(),cd=function(){
  function a(){this.map=new Map}return a.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new bd,this.map.set(b,c)),c.add(a)},a.prototype.get=function(a,b){void 0===b&&(b=null);var c=a,d=this.map.get(c);return d?d.get(a,b):null},a.prototype.remove=function(a){var b=a.trackById,c=this.map.get(b);return c.remove(a)&&this.map.delete(b),a},Object.defineProperty(a.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),a.prototype.clear=function(){this.map.clear()},a.prototype.toString=function(){return"_DuplicateMap("+h(this.map)+")"},a}(),dd=function(){function a(){}return a.prototype.supports=function(a){return a instanceof Map||j(a)},a.prototype.create=function(a){return new ed},a}(),ed=function(){function a(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(a.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),a.prototype.forEachItem=function(a){var b;for(b=this._mapHead;null!==b;b=b._next)a(b)},a.prototype.forEachPreviousItem=function(a){var b;for(b=this._previousMapHead;null!==b;b=b._nextPrevious)a(b)},a.prototype.forEachChangedItem=function(a){var b;for(b=this._changesHead;null!==b;b=b._nextChanged)a(b)},a.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)},a.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)},a.prototype.diff=function(a){if(a){if(!(a instanceof Map||j(a)))throw new Error("Error trying to diff '"+a+"'")}else a=new Map;return this.check(a)?this:null},a.prototype.onDestroy=function(){},a.prototype.check=function(a){var b=this;this._reset();var c=this._records,d=this._mapHead,e=null,f=null,g=!1;return this._forEach(a,function(a,h){var i;d&&h===d.key?(i=d,b._maybeAddToChanges(i,a)):(g=!0,null!==d&&(b._removeFromSeq(e,d),b._addToRemovals(d)),c.has(h)?(i=c.get(h),b._maybeAddToChanges(i,a)):(i=new fd(h),c.set(h,i),i.currentValue=a,b._addToAdditions(i))),g&&(b._isInRemovals(i)&&b._removeFromRemovals(i),null==f?b._mapHead=i:f._next=i),e=d,f=i,d=d&&d._next}),this._truncate(e,d),this.isDirty},a.prototype._reset=function(){if(this.isDirty){var a=void 0;for(a=this._previousMapHead=this._mapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},a.prototype._truncate=function(a,b){for(;null!==b;){null===a?this._mapHead=null:a._next=null;var c=b._next;this._addToRemovals(b),a=b,b=c}for(var d=this._removalsHead;null!==d;d=d._nextRemoved)d.previousValue=d.currentValue,d.currentValue=null,this._records.delete(d.key)},a.prototype._maybeAddToChanges=function(a,b){i(b,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=b,this._addToChanges(a))},a.prototype._isInRemovals=function(a){return a===this._removalsHead||null!==a._nextRemoved||null!==a._prevRemoved},a.prototype._addToRemovals=function(a){null===this._removalsHead?this._removalsHead=this._removalsTail=a:(this._removalsTail._nextRemoved=a,a._prevRemoved=this._removalsTail,this._removalsTail=a)},a.prototype._removeFromSeq=function(a,b){var c=b._next;null===a?this._mapHead=c:a._next=c,b._next=null},a.prototype._removeFromRemovals=function(a){var b=a._prevRemoved,c=a._nextRemoved;null===b?this._removalsHead=c:b._nextRemoved=c,null===c?this._removalsTail=b:c._prevRemoved=b,a._prevRemoved=a._nextRemoved=null},a.prototype._addToAdditions=function(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:(this._additionsTail._nextAdded=a,this._additionsTail=a)},a.prototype._addToChanges=function(a){null===this._changesHead?this._changesHead=this._changesTail=a:(this._changesTail._nextChanged=a,this._changesTail=a)},a.prototype.toString=function(){var a,b=[],c=[],d=[],e=[],f=[];for(a=this._mapHead;null!==a;a=a._next)b.push(h(a));for(a=this._previousMapHead;null!==a;a=a._nextPrevious)c.push(h(a));for(a=this._changesHead;null!==a;a=a._nextChanged)d.push(h(a));for(a=this._additionsHead;null!==a;a=a._nextAdded)e.push(h(a));for(a=this._removalsHead;null!==a;a=a._nextRemoved)f.push(h(a));return"map: "+b.join(", ")+"\nprevious: "+c.join(", ")+"\nadditions: "+e.join(", ")+"\nchanges: "+d.join(", ")+"\nremovals: "+f.join(", ")+"\n"},a.prototype._forEach=function(a,b){a instanceof Map?a.forEach(b):Object.keys(a).forEach(function(c){return b(a[c],c)})},a}(),fd=function(){function a(a){this.key=a,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return a.prototype.toString=function(){return i(this.previousValue,this.currentValue)?h(this.key):h(this.key)+"["+h(this.previousValue)+"->"+h(this.currentValue)+"]"},a}(),gd=function(){function a(a){this.factories=a}return a.create=function(b,c){if(f(c)){var d=c.factories.slice();return b=b.concat(d),new a(b)}return new a(b)},a.extend=function(b){return{provide:a,useFactory:function(c){if(!c)throw new Error("Cannot extend IterableDiffers without a parent injector");return a.create(b,c)},deps:[[a,new pb,new mb]]}},a.prototype.find=function(a){var b=this.factories.find(function(b){return b.supports(a)});if(f(b))return b;throw new Error("Cannot find a differ supporting object '"+a+"' of type '"+e(a)+"'")},a}(),hd=function(){function a(a){this.factories=a}return a.create=function(b,c){if(f(c)){var d=c.factories.slice();return b=b.concat(d),new a(b)}return new a(b)},a.extend=function(b){return{provide:a,useFactory:function(c){if(!c)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return a.create(b,c)},deps:[[a,new pb,new mb]]}},a.prototype.find=function(a){var b=this.factories.find(function(b){return b.supports(a)});if(f(b))return b;throw new Error("Cannot find a differ supporting object '"+a+"'")},a}(),id={toString:function(){return"CD_INIT_VALUE"}},jd=function(){function a(a){this.wrapped=a}return a.wrap=function(b){return new a(b)},a}(),kd=function(){function a(){this.hasWrappedValue=!1}return a.prototype.unwrap=function(a){return a instanceof jd?(this.hasWrappedValue=!0,a.wrapped):a},a.prototype.reset=function(){this.hasWrappedValue=!1},a}(),ld=function(){function a(a,b){this.previousValue=a,this.currentValue=b}return a.prototype.isFirstChange=function(){return this.previousValue===id},a}(),md=function(){function a(){}return a}(),nd=[new dd],od=[new Zc],pd=new gd(od),qd=new hd(nd),rd=function(){function a(a,b,c,d,e,f){this.id=a,this.templateUrl=b,this.slotCount=c,this.encapsulation=d,this.styles=e,this.animations=f}return a}(),sd=function(){function a(){}return Object.defineProperty(a.prototype,"injector",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"component",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"providerTokens",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"references",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"source",{get:function(){return y()},enumerable:!0,configurable:!0}),a}(),td=function(){function a(){}return a}(),ud=function(){function a(){}return a}();a.SecurityContext,function(a){a[a.NONE=0]="NONE",a[a.HTML=1]="HTML",a[a.STYLE=2]="STYLE",a[a.SCRIPT=3]="SCRIPT",a[a.URL=4]="URL",a[a.RESOURCE_URL=5]="RESOURCE_URL"}(a.SecurityContext||(a.SecurityContext={}));var vd,wd,xd,yd=function(){function a(){}return a}(),zd=function(){function a(a){this.nativeElement=a}return a}(),Ad=W(),Bd=Ad?X:function(a,b){return _},Cd=Ad?Y:function(a,b){return b},Dd=Ad?Z:function(a,b){return null},Ed=Ad?$:function(a){return null},Fd=function(){function a(){}return Object.defineProperty(a.prototype,"element",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parentInjector",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"length",{get:function(){return y()},enumerable:!0,configurable:!0}),a}(),Gd=function(){function a(a){this._element=a,this._createComponentInContainerScope=Bd("ViewContainerRef#createComponent()"),this._insertScope=Bd("ViewContainerRef#insert()"),this._removeScope=Bd("ViewContainerRef#remove()"),this._detachScope=Bd("ViewContainerRef#detach()")}return a.prototype.get=function(a){return this._element.nestedViews[a].ref},Object.defineProperty(a.prototype,"length",{get:function(){var a=this._element.nestedViews;return f(a)?a.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"element",{get:function(){return this._element.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return this._element.injector},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parentInjector",{get:function(){return this._element.parentInjector},enumerable:!0,configurable:!0}),a.prototype.createEmbeddedView=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=-1);var d=a.createEmbeddedView(b);return this.insert(d,c),d},a.prototype.createComponent=function(a,b,c,d){void 0===b&&(b=-1),void 0===c&&(c=null),void 0===d&&(d=null);var e=this._createComponentInContainerScope(),f=c||this._element.parentInjector,g=a.create(f,d);return this.insert(g.hostView,b),Cd(e,g)},a.prototype.insert=function(a,b){void 0===b&&(b=-1);var c=this._insertScope();b==-1&&(b=this.length);var d=a;return this._element.attachView(d.internalView,b),Cd(c,d)},a.prototype.move=function(a,b){var c=this._insertScope();if(b!=-1){var d=a;return this._element.moveView(d.internalView,b),Cd(c,d)}},a.prototype.indexOf=function(a){return this._element.nestedViews.indexOf(a.internalView)},a.prototype.remove=function(a){void 0===a&&(a=-1);var b=this._removeScope();a==-1&&(a=this.length-1);var c=this._element.detachView(a);c.destroy(),Cd(b)},a.prototype.detach=function(a){void 0===a&&(a=-1);var b=this._detachScope();a==-1&&(a=this.length-1);var c=this._element.detachView(a);return Cd(b,c.ref)},a.prototype.clear=function(){for(var a=this.length-1;a>=0;a--)this.remove(a)},a}();!function(a){a[a.HOST=0]="HOST",a[a.COMPONENT=1]="COMPONENT",a[a.EMBEDDED=2]="EMBEDDED"}(xd||(xd={}));var Hd,Id=function(){function a(a,b,c,d){this.index=a,this.parentIndex=b,this.parentView=c,this.nativeElement=d,this.nestedViews=null,this.componentView=null}return Object.defineProperty(a.prototype,"elementRef",{get:function(){return new zd(this.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"vcRef",{get:function(){return new Gd(this)},enumerable:!0,configurable:!0}),a.prototype.initComponent=function(a,b,c){this.component=a,this.componentConstructorViewQueries=b,this.componentView=c},Object.defineProperty(a.prototype,"parentInjector",{get:function(){return this.parentView.injector(this.parentIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return this.parentView.injector(this.index)},enumerable:!0,configurable:!0}),a.prototype.mapNestedViews=function(a,b){var c=[];return f(this.nestedViews)&&this.nestedViews.forEach(function(d){d.clazz===a&&c.push(b(d))}),c},a.prototype.moveView=function(a,b){var c=this.nestedViews.indexOf(a);if(a.type===xd.COMPONENT)throw new Error("Component views can't be moved!");var d=this.nestedViews;null==d&&(d=[],this.nestedViews=d),d.splice(c,1),d.splice(b,0,a);var e;if(b>0){var g=d[b-1];e=g.lastRootNode}else e=this.nativeElement;f(e)&&a.renderer.attachViewAfter(e,a.flatRootNodes),a.markContentChildAsMoved(this)},a.prototype.attachView=function(a,b){if(a.type===xd.COMPONENT)throw new Error("Component views can't be moved!");var c=this.nestedViews;null==c&&(c=[],this.nestedViews=c),c.splice(b,0,a);var d;if(b>0){var e=c[b-1];d=e.lastRootNode}else d=this.nativeElement;f(d)&&a.renderer.attachViewAfter(d,a.flatRootNodes),a.addToContentChildren(this)},a.prototype.detachView=function(a){var b=this.nestedViews.splice(a,1)[0];if(b.type===xd.COMPONENT)throw new Error("Component views can't be moved!");return b.detach(),b.removeFromContentChildren(this),b},a}(),Jd=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Kd=function(a){function b(b,c){var d="Expression has changed after it was checked. Previous value: '"+b+"'. Current value: '"+c+"'.";b===id&&(d+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),a.call(this,d)}return Jd(b,a),b}(Wb),Ld=function(a){function b(b,c){a.call(this,"Error in "+c.source,b),this.context=c}return Jd(b,a),b}(Xb),Md=function(a){function b(b){a.call(this,"Attempt to use a destroyed view: "+b)}return Jd(b,a),b}(Wb),Nd=function(){function a(a,b,c){this._renderer=a,this._appId=b,this._nextCompTypeId=0,this.sanitizer=c}return a.prototype.createRenderComponentType=function(a,b,c,d,e){return new rd(this._appId+"-"+this._nextCompTypeId++,a,b,c,d,e)},a.prototype.renderComponent=function(a){return this._renderer.renderComponent(a)},a.decorators=[{type:nb}],a.ctorParameters=[{type:ud},{type:void 0,decorators:[{type:lb,args:[Nc]}]},{type:yd}],a}(),Od=[],Pd=9,Qd=[],Rd={},Sd=/([A-Z])/g,Td=function(){function a(){this.length=0}return a.prototype.get=function(a){},a}(),Ud=function(){function a(a,b,c){this.length=a,this._v0=b,this._v1=c}return a.prototype.get=function(a){switch(a){case 0:return this._v0;case 1:return this._v1;default:return}},a}(),Vd=function(){function a(a,b,c,d,e){this.length=a,this._v0=b,this._v1=c,this._v2=d,this._v3=e}return a.prototype.get=function(a){switch(a){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;default:return}},a}(),Wd=function(){function a(a,b,c,d,e,f,g,h,i){this.length=a,this._v0=b,this._v1=c,this._v2=d,this._v3=e,this._v4=f,this._v5=g,this._v6=h,this._v7=i}return a.prototype.get=function(a){switch(a){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;default:return}},a}(),Xd=function(){function a(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){this.length=a,this._v0=b,this._v1=c,this._v2=d,this._v3=e,this._v4=f,this._v5=g,this._v6=h,this._v7=i,this._v8=j,this._v9=k,this._v10=l,this._v11=m,this._v12=n,this._v13=o,this._v14=p,this._v15=q}return a.prototype.get=function(a){switch(a){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;case 8:return this._v8;case 9:return this._v9;case 10:return this._v10;case 11:return this._v11;case 12:return this._v12;case 13:return this._v13;case 14:return this._v14;case 15:return this._v15;default:return}},a}(),Yd=function(){function a(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];this.length=a,this._values=b}return a.prototype.get=function(a){return this._values[a]},a}(),Zd=new Td,$d=Object.freeze({ViewUtils:Nd,flattenNestedViewRenderNodes:aa,ensureSlotCount:ca,MAX_INTERPOLATION_VALUES:Pd,interpolate:da,checkBinding:fa,castByValue:ga,EMPTY_ARRAY:Qd,EMPTY_MAP:Rd,pureProxy1:ha,pureProxy2:ia,pureProxy3:ja,pureProxy4:ka,pureProxy5:la,pureProxy6:ma,pureProxy7:na,pureProxy8:oa,pureProxy9:pa,pureProxy10:qa,setBindingDebugInfoForChanges:ra,setBindingDebugInfo:sa,createRenderElement:ua,selectOrCreateRenderHostElement:va,InlineArray2:Ud,InlineArray4:Vd,InlineArray8:Wd,InlineArray16:Xd,InlineArrayDynamic:Yd,EMPTY_INLINE_ARRAY:Zd}),_d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},ae=function(){function a(){}return Object.defineProperty(a.prototype,"location",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"instance",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hostView",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"changeDetectorRef",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentType",{get:function(){return y()},enumerable:!0,configurable:!0}),a}(),be=function(a){function b(b,c){a.call(this),this._hostElement=b,this._componentType=c}return _d(b,a),Object.defineProperty(b.prototype,"location",{get:function(){return this._hostElement.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"injector",{get:function(){return this._hostElement.injector},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"instance",{get:function(){return this._hostElement.component},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hostView",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"changeDetectorRef",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),b.prototype.destroy=function(){this._hostElement.parentView.destroy()},b.prototype.onDestroy=function(a){this.hostView.onDestroy(a)},b}(ae),ce=new Object,de=function(){function a(a,b,c){this.selector=a,this._viewFactory=b,this._componentType=c}return Object.defineProperty(a.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),a.prototype.create=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=null);var d=a.get(Nd);b||(b=[]);var e=this._viewFactory(d,a,null),f=e.create(ce,b,c);return new be(f,this._componentType)},a}(),ee=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},fe=function(a){function b(b){a.call(this,"No component factory found for "+h(b)),this.component=b}return ee(b,a),b}(Wb),ge=function(){function a(){}return a.prototype.resolveComponentFactory=function(a){throw new fe(a)},a}(),he=function(){function a(){}return a.NULL=new ge,a}(),ie=function(){function a(a,b){this._parent=b,this._factories=new Map;for(var c=0;c<a.length;c++){var d=a[c];this._factories.set(d.componentType,d)}}return a.prototype.resolveComponentFactory=function(a){var b=this._factories.get(a);return b||(b=this._parent.resolveComponentFactory(a)),b},a}(),je=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},ke=function(a){function b(b){void 0===b&&(b=!1),a.call(this),this.__isAsync=b}return je(b,a),b.prototype.emit=function(b){a.prototype.next.call(this,b)},b.prototype.subscribe=function(b,c,d){var e,f=function(a){return null},g=function(){return null};return b&&"object"==typeof b?(e=this.__isAsync?function(a){setTimeout(function(){return b.next(a)})}:function(a){b.next(a)},b.error&&(f=this.__isAsync?function(a){setTimeout(function(){return b.error(a)})}:function(a){b.error(a)}),b.complete&&(g=this.__isAsync?function(){setTimeout(function(){return b.complete()})}:function(){b.complete()})):(e=this.__isAsync?function(a){setTimeout(function(){return b(a)})}:function(a){b(a)},c&&(f=this.__isAsync?function(a){setTimeout(function(){return c(a)})}:function(a){c(a)}),d&&(g=this.__isAsync?function(){setTimeout(function(){return d()})}:function(){d()})),a.prototype.subscribe.call(this,e,f,g)},b}(b.Subject),le=function(){function a(a){var b=a.enableLongStackTrace,c=void 0!==b&&b;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new ke(!1),this._onMicrotaskEmpty=new ke(!1),this._onStable=new ke(!1),this._onErrorEvents=new ke(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return a.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},a.assertInAngularZone=function(){if(!a.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},a.assertNotInAngularZone=function(){if(a.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},a.prototype.run=function(a){return this.inner.run(a)},a.prototype.runGuarded=function(a){return this.inner.runGuarded(a)},a.prototype.runOutsideAngular=function(a){return this.outer.run(a)},Object.defineProperty(a.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),a.prototype.checkStable=function(){var a=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return a._onStable.emit(null)})}finally{this._isStable=!0}}},a.prototype.forkInnerZoneWithAngularBehavior=function(){var a=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(b,c,d,e,f,g){try{return a.onEnter(),b.invokeTask(d,e,f,g)}finally{a.onLeave()}},onInvoke:function(b,c,d,e,f,g,h){try{return a.onEnter(),b.invoke(d,e,f,g,h)}finally{a.onLeave()}},onHasTask:function(b,c,d,e){b.hasTask(d,e),c===d&&("microTask"==e.change?a.setHasMicrotask(e.microTask):"macroTask"==e.change&&a.setHasMacrotask(e.macroTask))},onHandleError:function(b,c,d,e){return b.handleError(d,e),a.triggerError(e),!1}})},a.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},a.prototype.onLeave=function(){this._nesting--,this.checkStable()},a.prototype.setHasMicrotask=function(a){this._hasPendingMicrotasks=a,this.checkStable()},a.prototype.setHasMacrotask=function(a){this._hasPendingMacrotasks=a},a.prototype.triggerError=function(a){this._onErrorEvents.emit(a)},a}(),me=function(){function a(a){this._ngZone=a,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return a.prototype._watchAngularEvents=function(){var a=this;this._ngZone.onUnstable.subscribe({next:function(){a._didWork=!0,a._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.subscribe({next:function(){le.assertNotInAngularZone(),d(function(){a._isZoneStable=!0,a._runCallbacksIfReady()})}})})},a.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},a.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},a.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},a.prototype._runCallbacksIfReady=function(){var a=this;this.isStable()?d(function(){for(;0!==a._callbacks.length;)a._callbacks.pop()(a._didWork);a._didWork=!1}):this._didWork=!0},a.prototype.whenStable=function(a){this._callbacks.push(a),this._runCallbacksIfReady()},a.prototype.getPendingRequestCount=function(){return this._pendingCount},a.prototype.findBindings=function(a,b,c){return[]},a.prototype.findProviders=function(a,b,c){return[]},a.decorators=[{type:nb}],a.ctorParameters=[{type:le}],a}(),ne=function(){function a(){this._applications=new Map,pe.addToWindow(this)}return a.prototype.registerApplication=function(a,b){this._applications.set(a,b)},a.prototype.getTestability=function(a){return this._applications.get(a)},a.prototype.getAllTestabilities=function(){return nc.values(this._applications)},a.prototype.getAllRootElements=function(){return nc.keys(this._applications)},a.prototype.findTestabilityInTree=function(a,b){return void 0===b&&(b=!0),pe.findTestabilityInTree(this,a,b)},a.decorators=[{type:nb}],a.ctorParameters=[],a}(),oe=function(){function a(){}return a.prototype.addToWindow=function(a){},a.prototype.findTestabilityInTree=function(a,b,c){return null},a}(),pe=new oe,qe=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},re=!0,se=!1,te=function(){function a(){}return a.prototype.bootstrapModuleFactory=function(a){throw y()},a.prototype.bootstrapModule=function(a,b){throw void 0===b&&(b=[]),y()},Object.defineProperty(a.prototype,"injector",{get:function(){throw y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"destroyed",{get:function(){throw y()},enumerable:!0,configurable:!0}),a}(),ue=function(a){function b(b){a.call(this),this._injector=b,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return qe(b,a),b.prototype.onDestroy=function(a){this._destroyListeners.push(a)},Object.defineProperty(b.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),b.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(a){return a.destroy()}),this._destroyListeners.forEach(function(a){return a()}),this._destroyed=!0},b.prototype.bootstrapModuleFactory=function(a){return this._bootstrapModuleFactoryWithZone(a,null)},b.prototype._bootstrapModuleFactoryWithZone=function(a,b){var c=this;return b||(b=new le({enableLongStackTrace:ya()})),b.run(function(){var d=Hc.resolveAndCreate([{provide:le,useValue:b}],c.injector),e=a.create(d),f=e.injector.get(Kc,null);if(!f)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return e.onDestroy(function(){return pc.remove(c._modules,e)}),b.onError.subscribe({next:function(a){f.handleError(a)}}),Ea(f,function(){var a=e.injector.get(Mc);return a.donePromise.then(function(){return c._moduleDoBootstrap(e),e})})})},b.prototype.bootstrapModule=function(a,b){return void 0===b&&(b=[]),this._bootstrapModuleWithZone(a,b,null)},b.prototype._bootstrapModuleWithZone=function(a,b,c,d){var e=this;void 0===b&&(b=[]);var f=this.injector.get(Yc),g=f.createCompiler(Array.isArray(b)?b:[b]);return d?g.compileModuleAndAllComponentsAsync(a).then(function(a){var b=a.ngModuleFactory,f=a.componentFactories;return d(f),e._bootstrapModuleFactoryWithZone(b,c)}):g.compileModuleAsync(a).then(function(a){return e._bootstrapModuleFactoryWithZone(a,c)})},b.prototype._moduleDoBootstrap=function(a){var b=a.injector.get(ve);if(a.bootstrapFactories.length>0)a.bootstrapFactories.forEach(function(a){return b.bootstrap(a)});else{if(!a.instance.ngDoBootstrap)throw new Error("The module "+h(a.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');a.instance.ngDoBootstrap(b)}},b.decorators=[{type:nb}],b.ctorParameters=[{type:_b}],b}(te),ve=function(){function a(){}return Object.defineProperty(a.prototype,"componentTypes",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"components",{get:function(){return y()},enumerable:!0,configurable:!0}),a}(),we=function(a){function b(b,c,d,e,f,g,h,i){var j=this;a.call(this),this._zone=b,this._console=c,this._injector=d,this._exceptionHandler=e,this._componentFactoryResolver=f,this._initStatus=g,this._testabilityRegistry=h,this._testability=i,this._bootstrapListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._changeDetectorRefs=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._enforceNoNewChanges=ya(),this._zone.onMicrotaskEmpty.subscribe({next:function(){j._zone.run(function(){j.tick()})}})}return qe(b,a),b.prototype.registerChangeDetector=function(a){this._changeDetectorRefs.push(a)},b.prototype.unregisterChangeDetector=function(a){pc.remove(this._changeDetectorRefs,a)},b.prototype.bootstrap=function(a){var b=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 c;c=a instanceof de?a:this._componentFactoryResolver.resolveComponentFactory(a),this._rootComponentTypes.push(c.componentType);var d=c.create(this._injector,[],c.selector);d.onDestroy(function(){b._unloadComponent(d)});var e=d.injector.get(me,null);return e&&d.injector.get(ne).registerApplication(d.location.nativeElement,e),this._loadComponent(d),ya()&&this._console.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode."),d},b.prototype._loadComponent=function(a){this._changeDetectorRefs.push(a.changeDetectorRef),this.tick(),this._rootComponents.push(a);var b=this._injector.get(Qc,[]).concat(this._bootstrapListeners);b.forEach(function(b){return b(a)})},b.prototype._unloadComponent=function(a){this._rootComponents.indexOf(a)!=-1&&(this.unregisterChangeDetector(a.changeDetectorRef),pc.remove(this._rootComponents,a))},b.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var a=b._tickScope();try{this._runningTick=!0,this._changeDetectorRefs.forEach(function(a){return a.detectChanges()}),this._enforceNoNewChanges&&this._changeDetectorRefs.forEach(function(a){return a.checkNoChanges()})}finally{this._runningTick=!1,Cd(a)}},b.prototype.ngOnDestroy=function(){this._rootComponents.slice().forEach(function(a){return a.destroy()})},Object.defineProperty(b.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),b._tickScope=Bd("ApplicationRef#tick()"),b.decorators=[{type:nb}],b.ctorParameters=[{type:le},{type:Sc},{type:_b},{type:Kc},{type:he},{type:Mc},{type:ne,decorators:[{type:mb}]},{type:me,decorators:[{type:mb}]}],b}(ve),xe=this&&this.__extends||function(a,b){function c(){this.constructor=a;
  }for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},ye=function(){function a(){}return Object.defineProperty(a.prototype,"injector",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentFactoryResolver",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"instance",{get:function(){return y()},enumerable:!0,configurable:!0}),a}(),ze=function(){function a(a,b){this._injectorClass=a,this._moduleType=b}return Object.defineProperty(a.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),a.prototype.create=function(a){a||(a=_b.NULL);var b=new this._injectorClass(a);return b.create(),b},a}(),Ae=new Object,Be=function(a){function b(b,c,d){a.call(this,c,b.get(he,he.NULL)),this.parent=b,this.bootstrapFactories=d,this._destroyListeners=[],this._destroyed=!1}return xe(b,a),b.prototype.create=function(){this.instance=this.createInternal()},b.prototype.get=function(a,b){if(void 0===b&&(b=Zb),a===_b||a===he)return this;var c=this.getInternal(a,Ae);return c===Ae?this.parent.get(a,b):c},Object.defineProperty(b.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"componentFactoryResolver",{get:function(){return this},enumerable:!0,configurable:!0}),b.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+h(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(a){return a()})},b.prototype.onDestroy=function(a){this._destroyListeners.push(a)},b}(ie),Ce=function(){function a(){}return a}(),De=new Map,Ee=function(){function a(){this._dirty=!0,this._results=[],this._emitter=new ke}return Object.defineProperty(a.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),a.prototype.map=function(a){return this._results.map(a)},a.prototype.filter=function(a){return this._results.filter(a)},a.prototype.reduce=function(a,b){return this._results.reduce(a,b)},a.prototype.forEach=function(a){this._results.forEach(a)},a.prototype.some=function(a){return this._results.some(a)},a.prototype.toArray=function(){return this._results.slice()},a.prototype[m()]=function(){return this._results[m()]()},a.prototype.toString=function(){return this._results.toString()},a.prototype.reset=function(a){this._results=pc.flatten(a),this._dirty=!1},a.prototype.notifyOnChanges=function(){this._emitter.emit(this)},a.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(a.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),a}(),Fe="#",Ge="NgFactory",He=function(){function a(){}return a}(),Ie={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Je=function(){function a(a,b){this._compiler=a,this._config=b||Ie}return a.prototype.load=function(a){var b=this._compiler instanceof Wc;return b?this.loadFactory(a):this.loadAndCompile(a)},a.prototype.loadAndCompile=function(a){var b=this,c=a.split(Fe),d=c[0],e=c[1];return void 0===e&&(e="default"),System.import(d).then(function(a){return a[e]}).then(function(a){return Ha(a,d,e)}).then(function(a){return b._compiler.compileModuleAsync(a)})},a.prototype.loadFactory=function(a){var b=a.split(Fe),c=b[0],d=b[1],e=Ge;return void 0===d&&(d="default",e=""),System.import(this._config.factoryPathPrefix+c+this._config.factoryPathSuffix).then(function(a){return a[d+e]}).then(function(a){return Ha(a,c,d)})},a.decorators=[{type:nb}],a.ctorParameters=[{type:Wc},{type:He,decorators:[{type:mb}]}],a}(),Ke=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Le=function(){function a(){}return Object.defineProperty(a.prototype,"elementRef",{get:function(){return null},enumerable:!0,configurable:!0}),a}(),Me=function(a){function b(b,c){a.call(this),this._appElement=b,this._viewFactory=c}return Ke(b,a),b.prototype.createEmbeddedView=function(a){var b=this._viewFactory(this._appElement.parentView.viewUtils,this._appElement.parentInjector,this._appElement);return b.create(a||{},null,null),b.ref},Object.defineProperty(b.prototype,"elementRef",{get:function(){return this._appElement.elementRef},enumerable:!0,configurable:!0}),b}(Le),Ne=[],Oe=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Pe=function(){function a(){}return Object.defineProperty(a.prototype,"destroyed",{get:function(){return y()},enumerable:!0,configurable:!0}),a}(),Qe=function(a){function b(){a.apply(this,arguments)}return Oe(b,a),Object.defineProperty(b.prototype,"context",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rootNodes",{get:function(){return y()},enumerable:!0,configurable:!0}),b}(Pe),Re=function(){function a(a){this._view=a,this._view=a,this._originalMode=this._view.cdMode}return Object.defineProperty(a.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0}),a.prototype.markForCheck=function(){this._view.markPathToRootAsCheckOnce()},a.prototype.detach=function(){this._view.cdMode=zb.Detached},a.prototype.detectChanges=function(){this._view.detectChanges(!1),Ja()},a.prototype.checkNoChanges=function(){this._view.detectChanges(!0)},a.prototype.reattach=function(){this._view.cdMode=this._originalMode,this.markForCheck()},a.prototype.onDestroy=function(a){this._view.disposables.push(a)},a.prototype.destroy=function(){this._view.destroy()},a}(),Se=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Te=function(){function a(a,b){this.name=a,this.callback=b}return a}(),Ue=function(){function a(a,b,c){this._debugInfo=c,this.nativeNode=a,f(b)&&b instanceof Ve?b.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(a.prototype,"injector",{get:function(){return f(this._debugInfo)?this._debugInfo.injector:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentInstance",{get:function(){return f(this._debugInfo)?this._debugInfo.component:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return f(this._debugInfo)?this._debugInfo.context:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"references",{get:function(){return f(this._debugInfo)?this._debugInfo.references:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"providerTokens",{get:function(){return f(this._debugInfo)?this._debugInfo.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"source",{get:function(){return f(this._debugInfo)?this._debugInfo.source:null},enumerable:!0,configurable:!0}),a}(),Ve=function(a){function b(b,c,d){a.call(this,b,c,d),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=b}return Se(b,a),b.prototype.addChild=function(a){f(a)&&(this.childNodes.push(a),a.parent=this)},b.prototype.removeChild=function(a){var b=this.childNodes.indexOf(a);b!==-1&&(a.parent=null,this.childNodes.splice(b,1))},b.prototype.insertChildrenAfter=function(a,b){var c=this.childNodes.indexOf(a);if(c!==-1){var d=this.childNodes.slice(0,c+1),e=this.childNodes.slice(c+1);this.childNodes=d.concat(b,e);for(var g=0;g<b.length;++g){var h=b[g];f(h.parent)&&h.parent.removeChild(h),h.parent=this}}},b.prototype.query=function(a){var b=this.queryAll(a);return b.length>0?b[0]:null},b.prototype.queryAll=function(a){var b=[];return La(this,a,b),b},b.prototype.queryAllNodes=function(a){var b=[];return Ma(this,a,b),b},Object.defineProperty(b.prototype,"children",{get:function(){var a=[];return this.childNodes.forEach(function(c){c instanceof b&&a.push(c)}),a},enumerable:!0,configurable:!0}),b.prototype.triggerEventHandler=function(a,b){this.listeners.forEach(function(c){c.name==a&&c.callback(b)})},b}(Ue),We=new Map,Xe=[ue,{provide:te,useExisting:ue},{provide:uc,useFactory:Qa,deps:[]},{provide:sc,useExisting:uc},ne,Sc],Ye=Aa(null,"core",Xe),Ze=new rb("LocaleId"),$e=new rb("Translations"),_e=new rb("TranslationsFormat"),af=function(){function a(){}return a.decorators=[{type:Tb,args:[{providers:[we,{provide:ve,useExisting:we},Mc,Wc,Oc,Nd,{provide:gd,useFactory:Ra},{provide:hd,useFactory:Sa},{provide:Ze,useValue:"en-US"}]}]}],a.ctorParameters=[],a}(),bf="true",cf="*",df="*",ef="void",ff=function(){function a(a){var b=this;this._players=a,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this.parentPlayer=null;var c=0,e=this._players.length;0==e?d(function(){return b._onFinish()}):this._players.forEach(function(a){a.parentPlayer=b,a.onDone(function(){++c>=e&&b._onFinish()})})}return a.prototype._onFinish=function(){this._finished||(this._finished=!0,f(this.parentPlayer)||this.destroy(),this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])},a.prototype.init=function(){this._players.forEach(function(a){return a.init()})},a.prototype.onStart=function(a){this._onStartFns.push(a)},a.prototype.onDone=function(a){this._onDoneFns.push(a)},a.prototype.hasStarted=function(){return this._started},a.prototype.play=function(){f(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(a){return a.play()})},a.prototype.pause=function(){this._players.forEach(function(a){return a.pause()})},a.prototype.restart=function(){this._players.forEach(function(a){return a.restart()})},a.prototype.finish=function(){this._onFinish(),this._players.forEach(function(a){return a.finish()})},a.prototype.destroy=function(){this._onFinish(),this._players.forEach(function(a){return a.destroy()})},a.prototype.reset=function(){this._players.forEach(function(a){return a.reset()})},a.prototype.setPosition=function(a){this._players.forEach(function(b){b.setPosition(a)})},a.prototype.getPosition=function(){var a=0;return this._players.forEach(function(b){var c=b.getPosition();a=Math.min(c,a)}),a},a}(),gf=function(){function a(a,b){this.offset=a,this.styles=b}return a}(),hf=function(){function a(){}return Object.defineProperty(a.prototype,"parentPlayer",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(a){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),a}(),jf=function(){function a(){var a=this;this._onDoneFns=[],this._onStartFns=[],this._started=!1,this.parentPlayer=null,d(function(){return a._onFinish()})}return a.prototype._onFinish=function(){this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[]},a.prototype.onStart=function(a){this._onStartFns.push(a)},a.prototype.onDone=function(a){this._onDoneFns.push(a)},a.prototype.hasStarted=function(){return this._started},a.prototype.init=function(){},a.prototype.play=function(){this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[]),this._started=!0},a.prototype.pause=function(){},a.prototype.restart=function(){},a.prototype.finish=function(){this._onFinish()},a.prototype.destroy=function(){},a.prototype.reset=function(){},a.prototype.setPosition=function(a){},a.prototype.getPosition=function(){return 0},a}(),kf=function(){function a(a){var b=this;this._players=a,this._currentIndex=0,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this.parentPlayer=null,this._players.forEach(function(a){a.parentPlayer=b}),this._onNext(!1)}return a.prototype._onNext=function(a){var b=this;if(!this._finished)if(0==this._players.length)this._activePlayer=new jf,d(function(){return b._onFinish()});else if(this._currentIndex>=this._players.length)this._activePlayer=new jf,this._onFinish();else{var c=this._players[this._currentIndex++];c.onDone(function(){return b._onNext(!0)}),this._activePlayer=c,a&&c.play()}},a.prototype._onFinish=function(){this._finished||(this._finished=!0,f(this.parentPlayer)||this.destroy(),this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])},a.prototype.init=function(){this._players.forEach(function(a){return a.init()})},a.prototype.onStart=function(a){this._onStartFns.push(a)},a.prototype.onDone=function(a){this._onDoneFns.push(a)},a.prototype.hasStarted=function(){return this._started},a.prototype.play=function(){f(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0),this._activePlayer.play()},a.prototype.pause=function(){this._activePlayer.pause()},a.prototype.restart=function(){this._players.length>0&&(this.reset(),this._players[0].restart())},a.prototype.reset=function(){this._players.forEach(function(a){return a.reset()})},a.prototype.finish=function(){this._onFinish(),this._players.forEach(function(a){return a.finish()})},a.prototype.destroy=function(){this._onFinish(),this._players.forEach(function(a){return a.destroy()})},a.prototype.setPosition=function(a){this._players[0].setPosition(a)},a.prototype.getPosition=function(){return this._players[0].getPosition()},a}(),lf=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},mf="*",nf=function(){function a(a,b){this.name=a,this.definitions=b}return a}(),of=function(){function a(){}return a}(),pf=function(a){function b(b,c){a.call(this),this.stateNameExpr=b,this.styles=c}return lf(b,a),b}(of),qf=function(a){function b(b,c){a.call(this),this.stateChangeExpr=b,this.steps=c}return lf(b,a),b}(of),rf=function(){function a(){}return a}(),sf=function(a){function b(b){a.call(this),this.steps=b}return lf(b,a),b}(rf),tf=function(a){function b(b,c){void 0===c&&(c=null),a.call(this),this.styles=b,this.offset=c}return lf(b,a),b}(rf),uf=function(a){function b(b,c){a.call(this),this.timings=b,this.styles=c}return lf(b,a),b}(rf),vf=function(a){function b(){a.call(this)}return lf(b,a),Object.defineProperty(b.prototype,"steps",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),b}(rf),wf=function(a){function b(b){a.call(this),this._steps=b}return lf(b,a),Object.defineProperty(b.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),b}(vf),xf=function(a){function b(b){a.call(this),this._steps=b}return lf(b,a),Object.defineProperty(b.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),b}(vf),yf=function(){function a(a){this.styles=a}return a}(),zf=function(){function a(a){var b=a.fromState,c=a.toState,d=a.totalTime,e=a.phaseName;this.fromState=b,this.toState=c,this.totalTime=d,this.phaseName=e}return a}(),Af=function(){function a(a,b,c,d){this._player=a,this._fromState=b,this._toState=c,this._totalTime=d}return a.prototype._createEvent=function(a){return new zf({fromState:this._fromState,toState:this._toState,totalTime:this._totalTime,phaseName:a})},a.prototype.onStart=function(a){var b=this._createEvent("start");this._player.onStart(function(){return a(b)})},a.prototype.onDone=function(a){var b=this._createEvent("done");this._player.onDone(function(){return a(b)})},a}(),Bf=function(){function a(a){this._delegate=a}return a.prototype.renderComponent=function(a){return new Cf(this._delegate.renderComponent(a))},a}(),Cf=function(){function a(a){this._delegate=a}return a.prototype.selectRootElement=function(a,b){var c=this._delegate.selectRootElement(a,b),d=new Ve(c,null,b);return Oa(d),c},a.prototype.createElement=function(a,b,c){var d=this._delegate.createElement(a,b,c),e=new Ve(d,Na(a),c);return e.name=b,Oa(e),d},a.prototype.createViewRoot=function(a){return this._delegate.createViewRoot(a)},a.prototype.createTemplateAnchor=function(a,b){var c=this._delegate.createTemplateAnchor(a,b),d=new Ue(c,Na(a),b);return Oa(d),c},a.prototype.createText=function(a,b,c){var d=this._delegate.createText(a,b,c),e=new Ue(d,Na(a),c);return Oa(e),d},a.prototype.projectNodes=function(a,b){var c=Na(a);if(f(c)&&c instanceof Ve){var d=c;b.forEach(function(a){d.addChild(Na(a))})}this._delegate.projectNodes(a,b)},a.prototype.attachViewAfter=function(a,b){var c=Na(a);if(f(c)){var d=c.parent;if(b.length>0&&f(d)){var e=[];b.forEach(function(a){return e.push(Na(a))}),d.insertChildrenAfter(c,e)}}this._delegate.attachViewAfter(a,b)},a.prototype.detachView=function(a){a.forEach(function(a){var b=Na(a);f(b)&&f(b.parent)&&b.parent.removeChild(b)}),this._delegate.detachView(a)},a.prototype.destroyView=function(a,b){b.forEach(function(a){Pa(Na(a))}),this._delegate.destroyView(a,b)},a.prototype.listen=function(a,b,c){var d=Na(a);return f(d)&&d.listeners.push(new Te(b,c)),this._delegate.listen(a,b,c)},a.prototype.listenGlobal=function(a,b,c){return this._delegate.listenGlobal(a,b,c)},a.prototype.setElementProperty=function(a,b,c){var d=Na(a);f(d)&&d instanceof Ve&&(d.properties[b]=c),this._delegate.setElementProperty(a,b,c)},a.prototype.setElementAttribute=function(a,b,c){var d=Na(a);f(d)&&d instanceof Ve&&(d.attributes[b]=c),this._delegate.setElementAttribute(a,b,c)},a.prototype.setBindingDebugInfo=function(a,b,c){this._delegate.setBindingDebugInfo(a,b,c)},a.prototype.setElementClass=function(a,b,c){var d=Na(a);f(d)&&d instanceof Ve&&(d.classes[b]=c),this._delegate.setElementClass(a,b,c)},a.prototype.setElementStyle=function(a,b,c){var d=Na(a);f(d)&&d instanceof Ve&&(d.styles[b]=c),this._delegate.setElementStyle(a,b,c)},a.prototype.invokeElementMethod=function(a,b,c){this._delegate.invokeElementMethod(a,b,c)},a.prototype.setText=function(a,b){this._delegate.setText(a,b)},a.prototype.animate=function(a,b,c,d,e,f){return this._delegate.animate(a,b,c,d,e,f)},a}(),Df=function(){function a(a,b,c){this.providerTokens=a,this.componentToken=b,this.refTokens=c}return a}(),Ef=function(){function a(a,b,c,d){this._view=a,this._nodeIndex=b,this._tplRow=c,this._tplCol=d}return Object.defineProperty(a.prototype,"_staticNodeInfo",{get:function(){return f(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"component",{get:function(){var a=this._staticNodeInfo;return f(a)&&f(a.componentToken)?this.injector.get(a.componentToken):null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentRenderElement",{get:function(){for(var a=this._view;f(a.declarationAppElement)&&a.type!==xd.COMPONENT;)a=a.declarationAppElement.parentView;return f(a.declarationAppElement)?a.declarationAppElement.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderNode",{get:function(){return f(this._nodeIndex)&&this._view.allNodes?this._view.allNodes[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"providerTokens",{get:function(){var a=this._staticNodeInfo;return f(a)?a.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"source",{get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"references",{get:function(){var a=this,b={},c=this._staticNodeInfo;if(f(c)){var d=c.refTokens;Object.keys(d).forEach(function(c){var e,f=d[c];e=g(f)?a._view.allNodes?a._view.allNodes[a._nodeIndex]:null:a._view.injectorGet(f,a._nodeIndex,null),b[c]=e})}return b},enumerable:!0,configurable:!0}),a}(),Ff=function(){function a(){this._map=new Map,this._allPlayers=[]}return a.prototype.find=function(a,b){var c=this._map.get(a);if(f(c))return c[b]},a.prototype.findAllPlayersByElement=function(a){var b=this._map.get(a);return b?Object.keys(b).map(function(a){return b[a]}):[]},a.prototype.set=function(a,b,c){var d=this._map.get(a);f(d)||(d={});var e=d[b];f(e)&&this.remove(a,b),d[b]=c,this._allPlayers.push(c),this._map.set(a,d)},a.prototype.getAllPlayers=function(){return this._allPlayers},a.prototype.remove=function(a,b){var c=this._map.get(a);if(c){var d=c[b];delete c[b];var e=this._allPlayers.indexOf(d);this._allPlayers.splice(e,1),0===Object.keys(c).length&&this._map.delete(a)}},a}(),Gf=function(){function a(){this._players=new Ff}return a.prototype.onAllActiveAnimationsDone=function(a){var b=this._players.getAllPlayers();b.length?new ff(b).onDone(function(){return a()}):a()},a.prototype.queueAnimation=function(a,b,c){Ia(c),this._players.set(a,b,c)},a.prototype.cancelActiveAnimation=function(a,b,c){if(void 0===c&&(c=!1),c)this._players.findAllPlayersByElement(a).forEach(function(a){return a.destroy()});else{var d=this._players.find(a,b);d&&d.destroy()}},a}(),Hf=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},If=new Object,Jf=function(a){function b(b,c){a.call(this),this._view=b,this._nodeIndex=c}return Hf(b,a),b.prototype.get=function(a,b){void 0===b&&(b=Zb);var c=If;return c===If&&(c=this._view.injectorGet(a,this._nodeIndex,If)),c===If&&(c=this._view.parentInjector.get(a,b)),c},b}(_b),Kf=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Lf=Bd("AppView#check(ascii id)"),Mf=function(){function a(a,b,c,d,e,f,g){this.clazz=a,this.componentType=b,this.type=c,this.viewUtils=d,this.parentInjector=e,this.declarationAppElement=f,this.cdMode=g,this.contentChildren=[],this.viewChildren=[],this.viewContainerElement=null,this.numberOfChecks=0,this.ref=new Re(this),c===xd.COMPONENT||c===xd.HOST?this.renderer=d.renderComponent(b):this.renderer=f.parentView.renderer}return Object.defineProperty(a.prototype,"animationContext",{get:function(){return this._animationContext||(this._animationContext=new Gf),this._animationContext},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"destroyed",{get:function(){return this.cdMode===zb.Destroyed},enumerable:!0,configurable:!0}),a.prototype.create=function(a,b,c){this.context=a;var d;switch(this.type){case xd.COMPONENT:d=ca(b,this.componentType.slotCount);break;case xd.EMBEDDED:d=this.declarationAppElement.parentView.projectableNodes;break;case xd.HOST:d=b}return this._hasExternalHostElement=f(c),this.projectableNodes=d,this.createInternal(c)},a.prototype.createInternal=function(a){return null},a.prototype.init=function(a,b,c,d){this.rootNodesOrAppElements=a,this.allNodes=b,this.disposables=c,this.subscriptions=d,this.type===xd.COMPONENT&&(this.declarationAppElement.parentView.viewChildren.push(this),this.dirtyParentQueriesInternal())},a.prototype.injectorGet=function(a,b,c){return this.injectorGetInternal(a,b,c)},a.prototype.injectorGetInternal=function(a,b,c){return c},a.prototype.injector=function(a){return f(a)?new Jf(this,a):this.parentInjector},a.prototype.destroy=function(){this._hasExternalHostElement?this.renderer.detachView(this.flatRootNodes):f(this.viewContainerElement)&&this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this)),this._destroyRecurse()},a.prototype._destroyRecurse=function(){if(this.cdMode!==zb.Destroyed){for(var a=this.contentChildren,b=0;b<a.length;b++)a[b]._destroyRecurse();a=this.viewChildren;for(var b=0;b<a.length;b++)a[b]._destroyRecurse();this.destroyLocal(),this.cdMode=zb.Destroyed}},a.prototype.destroyLocal=function(){for(var a=this,b=this.type===xd.COMPONENT?this.declarationAppElement.nativeElement:null,c=0;c<this.disposables.length;c++)this.disposables[c]();for(var c=0;c<this.subscriptions.length;c++)this.subscriptions[c].unsubscribe();this.destroyInternal(),this.dirtyParentQueriesInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return a.renderer.destroyView(b,a.allNodes)}):this.renderer.destroyView(b,this.allNodes)},a.prototype.destroyInternal=function(){},a.prototype.detachInternal=function(){},a.prototype.detach=function(){var a=this;this.detachInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return a.renderer.detachView(a.flatRootNodes)}):this.renderer.detachView(this.flatRootNodes)},Object.defineProperty(a.prototype,"changeDetectorRef",{get:function(){return this.ref},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parent",{get:function(){return f(this.declarationAppElement)?this.declarationAppElement.parentView:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"flatRootNodes",{get:function(){return aa(this.rootNodesOrAppElements)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"lastRootNode",{get:function(){var a=this.rootNodesOrAppElements.length>0?this.rootNodesOrAppElements[this.rootNodesOrAppElements.length-1]:null;return fb(a)},enumerable:!0,configurable:!0}),a.prototype.dirtyParentQueriesInternal=function(){},a.prototype.detectChanges=function(a){var b=Lf(this.clazz);this.cdMode!==zb.Checked&&this.cdMode!==zb.Errored&&(this.cdMode===zb.Destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(a),this.cdMode===zb.CheckOnce&&(this.cdMode=zb.Checked),this.numberOfChecks++,Cd(b))},a.prototype.detectChangesInternal=function(a){this.detectContentChildrenChanges(a),this.detectViewChildrenChanges(a)},a.prototype.detectContentChildrenChanges=function(a){for(var b=0;b<this.contentChildren.length;++b){var c=this.contentChildren[b];c.cdMode!==zb.Detached&&c.detectChanges(a)}},a.prototype.detectViewChildrenChanges=function(a){for(var b=0;b<this.viewChildren.length;++b){var c=this.viewChildren[b];c.cdMode!==zb.Detached&&c.detectChanges(a)}},a.prototype.markContentChildAsMoved=function(a){this.dirtyParentQueriesInternal()},a.prototype.addToContentChildren=function(a){a.parentView.contentChildren.push(this),this.viewContainerElement=a,this.dirtyParentQueriesInternal()},a.prototype.removeFromContentChildren=function(a){pc.remove(a.parentView.contentChildren,this),this.dirtyParentQueriesInternal(),this.viewContainerElement=null},a.prototype.markAsCheckOnce=function(){this.cdMode=zb.CheckOnce},a.prototype.markPathToRootAsCheckOnce=function(){for(var a=this;f(a)&&a.cdMode!==zb.Detached;){a.cdMode===zb.Checked&&(a.cdMode=zb.CheckOnce);var b=a.type===xd.COMPONENT?a.declarationAppElement:a.viewContainerElement;a=f(b)?b.parentView:null}},a.prototype.eventHandler=function(a){return a},a.prototype.throwDestroyedError=function(a){throw new Md(a)},a}(),Nf=function(a){function b(b,c,d,e,f,g,h,i){a.call(this,b,c,d,e,f,g,h),this.staticNodeDebugInfos=i,this._currentDebugContext=null}return Kf(b,a),b.prototype.create=function(b,c,d){this._resetDebug();try{return a.prototype.create.call(this,b,c,d)}catch(a){throw this._rethrowWithContext(a),a}},b.prototype.injectorGet=function(b,c,d){this._resetDebug();try{return a.prototype.injectorGet.call(this,b,c,d)}catch(a){throw this._rethrowWithContext(a),a}},b.prototype.detach=function(){this._resetDebug();try{a.prototype.detach.call(this)}catch(a){throw this._rethrowWithContext(a),a}},b.prototype.destroyLocal=function(){this._resetDebug();try{a.prototype.destroyLocal.call(this)}catch(a){throw this._rethrowWithContext(a),a}},b.prototype.detectChanges=function(b){this._resetDebug();try{a.prototype.detectChanges.call(this,b)}catch(a){throw this._rethrowWithContext(a),a}},b.prototype._resetDebug=function(){this._currentDebugContext=null},b.prototype.debug=function(a,b,c){return this._currentDebugContext=new Ef(this,a,b,c)},b.prototype._rethrowWithContext=function(a){if(!(a instanceof Ld)&&(a instanceof Kd||(this.cdMode=zb.Errored),f(this._currentDebugContext)))throw new Ld(a,this._currentDebugContext)},b.prototype.eventHandler=function(b){var c=this,d=a.prototype.eventHandler.call(this,b);return function(a){c._resetDebug();try{return d(a)}catch(a){throw c._rethrowWithContext(a),a}}},b}(Mf),Of={isDefaultChangeDetectionStrategy:v,ChangeDetectorStatus:zb,constructDependencies:L,LifecycleHooks:Ab,LIFECYCLE_HOOKS_VALUES:Ib,ReflectorReader:sc,CodegenComponentFactoryResolver:ie,AppElement:Id,AppView:Mf,DebugAppView:Nf,NgModuleInjector:Be,registerModuleFactory:Fa,ViewType:xd,view_utils:$d,ViewMetadata:Ub,DebugContext:Ef,StaticNodeDebugInfo:Df,devModeEqual:V,UNINITIALIZED:id,ValueUnwrapper:kd,RenderDebugInfo:sd,TemplateRef_:Me,ReflectionCapabilities:rc,makeDecorator:r,DebugDomRootRenderer:Bf,Console:Sc,reflector:vc,Reflector:uc,NoOpAnimationPlayer:jf,AnimationPlayer:hf,AnimationSequencePlayer:kf,AnimationGroupPlayer:ff,AnimationKeyframe:gf,prepareFinalAnimationStyles:_a,balanceAnimationKeyframes:ab,flattenStyles:eb,clearStyles:bb,renderStyles:db,collectAndResolveStyles:cb,AnimationStyles:yf,ANY_STATE:cf,DEFAULT_STATE:df,EMPTY_STATE:ef,FILL_STYLE_FLAG:bf,ComponentStillLoadingError:Uc,isPromise:Q,AnimationTransition:Af};a.createPlatform=za,a.assertPlatform=Ba,a.destroyPlatform=Ca,a.getPlatform=Da,a.PlatformRef=te,a.ApplicationRef=ve,a.enableProdMode=xa,a.isDevMode=ya,a.createPlatformFactory=Aa,a.APP_ID=Nc,a.PACKAGE_ROOT_URL=Rc,a.PLATFORM_INITIALIZER=Pc,a.APP_BOOTSTRAP_LISTENER=Qc,a.APP_INITIALIZER=Lc,a.ApplicationInitStatus=Mc,a.DebugElement=Ve,a.DebugNode=Ue,a.asNativeElements=Ka,a.getDebugNode=Na,a.Testability=me,a.TestabilityRegistry=ne,a.setTestabilityGetter=wa,a.TRANSLATIONS=$e,a.TRANSLATIONS_FORMAT=_e,a.LOCALE_ID=Ze,a.ApplicationModule=af,a.wtfCreateScope=Bd,a.wtfLeave=Cd,a.wtfStartTimeRange=Dd,a.wtfEndTimeRange=Ed,a.Type=qc,a.EventEmitter=ke,a.ErrorHandler=Kc,a.AnimationTransitionEvent=zf,a.AnimationPlayer=hf,a.Sanitizer=yd,a.ANALYZE_FOR_ENTRY_COMPONENTS=sb,a.Attribute=tb,a.ContentChild=wb,a.ContentChildren=vb,a.Query=ub,a.ViewChild=yb,a.ViewChildren=xb,a.Component=Cb,a.Directive=Bb,a.HostBinding=Gb,a.HostListener=Hb,a.Input=Eb,a.Output=Fb,a.Pipe=Db,a.AfterContentChecked=Ob,a.AfterContentInit=Nb,a.AfterViewChecked=Qb,a.AfterViewInit=Pb,a.DoCheck=Lb,a.OnChanges=Jb,a.OnDestroy=Mb,a.OnInit=Kb,a.CUSTOM_ELEMENTS_SCHEMA=Rb,a.NO_ERRORS_SCHEMA=Sb,a.NgModule=Tb,a.Class=q,a.forwardRef=w,a.resolveForwardRef=x,a.Injector=_b,a.ReflectiveInjector=Hc,a.ResolvedReflectiveFactory=zc,a.ReflectiveKey=jc,a.OpaqueToken=rb,a.Inject=lb,a.Optional=mb,a.Injectable=nb,a.Self=ob,a.SkipSelf=pb,a.Host=qb,a.NgZone=le,a.RenderComponentType=rd,a.Renderer=td,a.RootRenderer=ud,a.COMPILER_OPTIONS=Xc,a.Compiler=Wc,a.CompilerFactory=Yc,a.ModuleWithComponentFactories=Vc,a.ComponentFactory=de,a.ComponentRef=ae,a.ComponentFactoryResolver=he,a.ElementRef=zd,a.NgModuleFactory=ze,a.NgModuleRef=ye,a.NgModuleFactoryLoader=Ce,a.getModuleFactory=Ga,a.QueryList=Ee,a.SystemJsNgModuleLoader=Je,a.SystemJsNgModuleLoaderConfig=He,a.TemplateRef=Le,a.ViewContainerRef=Fd,a.EmbeddedViewRef=Qe,a.ViewRef=Pe,a.ChangeDetectorRef=md,
  a.CollectionChangeRecord=ad,a.DefaultIterableDiffer=_c,a.IterableDiffers=gd,a.KeyValueChangeRecord=fd,a.KeyValueDiffers=hd,a.SimpleChange=ld,a.WrappedValue=jd,a.platformCore=Ye,a.__core_private__=Of,a.AUTO_STYLE=mf,a.AnimationEntryMetadata=nf,a.AnimationStateMetadata=of,a.AnimationStateDeclarationMetadata=pf,a.AnimationStateTransitionMetadata=qf,a.AnimationMetadata=rf,a.AnimationKeyframesSequenceMetadata=sf,a.AnimationStyleMetadata=tf,a.AnimationAnimateMetadata=uf,a.AnimationWithStepsMetadata=vf,a.AnimationSequenceMetadata=wf,a.AnimationGroupMetadata=xf,a.animate=Ta,a.group=Ua,a.sequence=Va,a.style=Wa,a.state=Xa,a.keyframes=Ya,a.transition=Za,a.trigger=$a})}(),function(){var e=a.amdDefine;!function(a,f){"object"==typeof c&&"undefined"!=typeof d?f(c,b("@angular/common"),b("@angular/core")):"function"==typeof e&&e.amd?e("5",["exports","2d","3"],f):f((a.ng=a.ng||{},a.ng.platformBrowser=a.ng.platformBrowser||{}),a.ng.common,a.ng.core)}(this,function(a,b,c){"use strict";function d(a){return null!=a}function e(a){return null==a}function f(a){if("string"==typeof a)return a;if(void 0===a||null===a)return""+a;if(a.overriddenName)return a.overriddenName;if(a.name)return a.name;var b=a.toString(),c=b.indexOf("\n");return c===-1?b:b.substring(0,c)}function g(a,b,c){for(var e=b.split("."),f=a;e.length>1;){var g=e.shift();f=f.hasOwnProperty(g)&&d(f[g])?f[g]:f[g]={}}void 0!==f&&null!==f||(f={}),f[e.shift()]=c}function h(a){return a.replace(ba,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return"-"+a[1].toLowerCase()})}function i(a){return a.replace(ca,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a[1].toUpperCase()})}function j(){return da}function k(a){da||(da=a)}function l(a,b){return j().getComputedStyle(a)[b]}function m(a,b,e){var f={};return b.styles.forEach(function(a){Object.keys(a).forEach(function(b){var d=a[b],e=i(b);f[e]=d==c.AUTO_STYLE?d:d.toString()+n(d,b,e)})}),Object.keys(e).forEach(function(a){d(f[a])||(f[a]=e[a])}),f}function n(a,b,c){var d="";if(p(c)&&0!=a&&"0"!=a)if("number"==typeof a)d="px";else if(0==o(a.toString()).length)throw new Error("Please provide a CSS unit value for "+b+":"+a);return d}function o(a){for(var b=0;b<a.length;b++){var c=a.charCodeAt(b);if(!(c>=ha&&c<=ia||c==ja))return a.substring(b,a.length)}return""}function p(a){switch(a){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function q(){return sa||(sa=document.querySelector("base"))?sa.getAttribute("href"):null}function r(a){return aa||(aa=document.createElement("a")),aa.setAttribute("href",a),"/"===aa.pathname.charAt(0)?aa.pathname:"/"+aa.pathname}function s(a,b){b=encodeURIComponent(b);for(var c=0,d=a.split(";");c<d.length;c++){var e=d[c],f=e.indexOf("="),g=f==-1?[e,""]:[e.slice(0,f),e.slice(f+1)],h=g[0],i=g[1];if(h.trim()===b)return decodeURIComponent(i)}return null}function t(){return!!window.history.pushState}function u(a,b){if(d(a))for(var c=0;c<a.length;c++){var e=a[c];Array.isArray(e)?u(e,b):b.push(e)}return b}function v(a,b){var c=j().parentElement(a);if(b.length>0&&d(c)){var e=j().nextSibling(a);if(d(e))for(var f=0;f<b.length;f++)j().insertBefore(e,b[f]);else for(var f=0;f<b.length;f++)j().appendChild(c,b[f])}}function w(a,b){for(var c=0;c<b.length;c++)j().appendChild(a,b[c])}function x(a){return function(b){var c=a(b);c===!1&&j().preventDefault(b)}}function y(a){return Qa.replace(Na,a)}function z(a){return Pa.replace(Na,a)}function A(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];Array.isArray(e)?A(a,e,c):(e=e.replace(Na,a),c.push(e))}return c}function B(a){if(":"!=a[0])return[null,a];var b=a.match(Ra);return[b[1],b[2]]}function C(a){return c.getDebugNode(a)}function D(a,b){return c.isDevMode()?E(a,b):a}function E(a,b){return j().setGlobalVar(Ta,C),j().setGlobalVar(Ua,xa.merge(Sa,F(b||[]))),new X(a)}function F(a){return a.reduce(function(a,b){return a[b.name]=b.token,a},{})}function G(a){return a=String(a),a.match(ib)||a.match(jb)?a:(c.isDevMode()&&j().log("WARNING: sanitizing unsafe URL value "+a+" (see http://g.co/ng/security#xss)"),"unsafe:"+a)}function H(a){return a=String(a),a.split(",").map(function(a){return G(a.trim())}).join(", ")}function I(){if(kb)return kb;lb=j();var a=lb.createElement("template");if("content"in a)return a;var b=lb.createHtmlDocument();if(kb=lb.querySelector(b,"body"),null==kb){var c=lb.createElement("html",b);kb=lb.createElement("body",b),lb.appendChild(c,kb),lb.appendChild(b,c)}return kb}function J(a){for(var b={},c=0,d=a.split(",");c<d.length;c++){var e=d[c];b[e]=!0}return b}function K(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c={},d=0,e=a;d<e.length;d++){var f=e[d];for(var g in f)f.hasOwnProperty(g)&&(c[g]=!0)}return c}function L(a){return a.replace(/&/g,"&amp;").replace(yb,function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1);return"&#"+(1024*(b-55296)+(c-56320)+65536)+";"}).replace(zb,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function M(a){lb.attributeMap(a).forEach(function(b,c){"xmlns:ns1"!==c&&0!==c.indexOf("ns1:")||lb.removeAttribute(a,c)});for(var b=0,c=lb.childNodesAsList(a);b<c.length;b++){var d=c[b];lb.isElementNode(d)&&M(d)}}function N(a){try{var b=I(),d=a?String(a):"",e=5,f=d;do{if(0===e)throw new Error("Failed to sanitize html because the input is unstable");e--,d=f,lb.setInnerHTML(b,d),lb.defaultDoc().documentMode&&M(b),f=lb.getInnerHTML(b)}while(d!==f);for(var g=new xb,h=g.sanitizeChildren(lb.getTemplateContent(b)||b),i=lb.getTemplateContent(b)||b,j=0,k=lb.childNodesAsList(i);j<k.length;j++){var l=k[j];lb.removeChild(i,l)}return c.isDevMode()&&g.sanitizedSomething&&lb.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),h}catch(a){throw kb=null,a}}function O(a){for(var b=!0,c=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"===e&&c?b=!b:'"'===e&&b&&(c=!c)}return b&&c}function P(a){if(a=String(a).trim(),!a)return"";var b=a.match(Fb);return b&&G(b[1])===b[1]||a.match(Eb)&&O(a)?a:(c.isDevMode()&&j().log("WARNING: sanitizing unsafe style value "+a+" (see http://g.co/ng/security#xss)."),"unsafe")}function Q(){ra.makeCurrent(),va.init()}function R(){return new c.ErrorHandler}function S(){return j().defaultDoc()}function T(){return j().supportsWebAnimation()?new ga:$.NOOP}function U(a){return Xb.ng=new Vb(a),a}function V(){delete Xb.ng}var W,X=c.__core_private__.DebugDomRootRenderer,Y=c.__core_private__.NoOpAnimationPlayer,Z=function(){function a(){}return a.prototype.animate=function(a,b,c,d,e,f){return new Y},a}(),$=function(){function a(){}return a.NOOP=new Z,a}();W="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var _=W;_.assert=function(a){};var aa,ba=/([A-Z])/g,ca=/-([a-z])/g,da=null,ea=function(){function a(){this.resourceLoaderType=null}return Object.defineProperty(a.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(a){this._attrToPropMap=a},enumerable:!0,configurable:!0}),a}(),fa=function(){function a(a,b,c){this.element=a,this.keyframes=b,this.options=c,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._initialized=!1,this._started=!1,this.parentPlayer=null,this._duration=c.duration}return a.prototype._onFinish=function(){this._finished||(this._finished=!0,d(this.parentPlayer)||this.destroy(),this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])},a.prototype.init=function(){var a=this;if(!this._initialized){this._initialized=!0;var b=this.keyframes.map(function(b){var d={};return Object.keys(b).forEach(function(e){var f=b[e];d[e]=f==c.AUTO_STYLE?l(a.element,e):f}),d});this._player=this._triggerWebAnimation(this.element,b,this.options),this.reset(),this._player.onfinish=function(){return a._onFinish()}}},a.prototype._triggerWebAnimation=function(a,b,c){return a.animate(b,c)},a.prototype.onStart=function(a){this._onStartFns.push(a)},a.prototype.onDone=function(a){this._onDoneFns.push(a)},a.prototype.play=function(){this.init(),this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0),this._player.play()},a.prototype.pause=function(){this.init(),this._player.pause()},a.prototype.finish=function(){this.init(),this._onFinish(),this._player.finish()},a.prototype.reset=function(){this._player.cancel()},a.prototype.restart=function(){this.reset(),this.play()},a.prototype.hasStarted=function(){return this._started},a.prototype.destroy=function(){this.reset(),this._onFinish()},Object.defineProperty(a.prototype,"totalTime",{get:function(){return this._duration},enumerable:!0,configurable:!0}),a.prototype.setPosition=function(a){this._player.currentTime=a*this.totalTime},a.prototype.getPosition=function(){return this._player.currentTime/this.totalTime},a}(),ga=function(){function a(){}return a.prototype.animate=function(a,b,c,e,f,g){var h=[],i={};if(d(b)&&b.styles.length>0&&(i=m(a,b,{}),i.offset=0,h.push(i)),c.forEach(function(b){var c=m(a,b.styles,i);c.offset=b.offset,h.push(c)}),1==h.length){var j=h[0];j.offset=null,h=[j,j]}var k={duration:e,delay:f,fill:"both"};return g&&(k.easing=g),new fa(a,h,k)},a}(),ha=48,ia=57,ja=46,ka=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},la=function(a){function b(){var b=this;a.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var c=this.createElement("div",this.defaultDoc());if(d(this.getStyle(c,"animationName")))this._animationPrefix="";else for(var e=["Webkit","Moz","O","ms"],f=0;f<e.length;f++)if(d(this.getStyle(c,e[f]+"AnimationName"))){this._animationPrefix="-"+e[f].toLowerCase()+"-";break}var g={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(g).forEach(function(a){d(b.getStyle(c,a))&&(b._transitionEnd=g[a])})}catch(a){this._animationPrefix=null,this._transitionEnd=null}}return ka(b,a),b.prototype.getDistributedNodes=function(a){return a.getDistributedNodes()},b.prototype.resolveAndSetHref=function(a,b,c){a.href=null==c?b:b+"/../"+c},b.prototype.supportsDOMEvents=function(){return!0},b.prototype.supportsNativeShadowDOM=function(){return"function"==typeof this.defaultDoc().body.createShadowRoot},b.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},b.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},b.prototype.supportsAnimation=function(){return d(this._animationPrefix)&&d(this._transitionEnd)},b}(ea),ma=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},na={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},oa=3,pa={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},qa={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},ra=function(a){function b(){a.apply(this,arguments)}return ma(b,a),b.prototype.parse=function(a){throw new Error("parse not implemented")},b.makeCurrent=function(){k(new b)},b.prototype.hasProperty=function(a,b){return b in a},b.prototype.setProperty=function(a,b,c){a[b]=c},b.prototype.getProperty=function(a,b){return a[b]},b.prototype.invoke=function(a,b,c){(d=a)[b].apply(d,c);var d},b.prototype.logError=function(a){(window.console.error||window.console.log)(a)},b.prototype.log=function(a){window.console.log(a)},b.prototype.logGroup=function(a){window.console.group&&window.console.group(a),this.logError(a)},b.prototype.logGroupEnd=function(){window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(b.prototype,"attrToPropMap",{get:function(){return na},enumerable:!0,configurable:!0}),b.prototype.query=function(a){return document.querySelector(a)},b.prototype.querySelector=function(a,b){return a.querySelector(b)},b.prototype.querySelectorAll=function(a,b){return a.querySelectorAll(b)},b.prototype.on=function(a,b,c){a.addEventListener(b,c,!1)},b.prototype.onAndCancel=function(a,b,c){return a.addEventListener(b,c,!1),function(){a.removeEventListener(b,c,!1)}},b.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)},b.prototype.createMouseEvent=function(a){var b=document.createEvent("MouseEvent");return b.initEvent(a,!0,!0),b},b.prototype.createEvent=function(a){var b=document.createEvent("Event");return b.initEvent(a,!0,!0),b},b.prototype.preventDefault=function(a){a.preventDefault(),a.returnValue=!1},b.prototype.isPrevented=function(a){return a.defaultPrevented||d(a.returnValue)&&!a.returnValue},b.prototype.getInnerHTML=function(a){return a.innerHTML},b.prototype.getTemplateContent=function(a){return"content"in a&&a instanceof HTMLTemplateElement?a.content:null},b.prototype.getOuterHTML=function(a){return a.outerHTML},b.prototype.nodeName=function(a){return a.nodeName},b.prototype.nodeValue=function(a){return a.nodeValue},b.prototype.type=function(a){return a.type},b.prototype.content=function(a){return this.hasProperty(a,"content")?a.content:a},b.prototype.firstChild=function(a){return a.firstChild},b.prototype.nextSibling=function(a){return a.nextSibling},b.prototype.parentElement=function(a){return a.parentNode},b.prototype.childNodes=function(a){return a.childNodes},b.prototype.childNodesAsList=function(a){for(var b=a.childNodes,c=new Array(b.length),d=0;d<b.length;d++)c[d]=b[d];return c},b.prototype.clearNodes=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},b.prototype.appendChild=function(a,b){a.appendChild(b)},b.prototype.removeChild=function(a,b){a.removeChild(b)},b.prototype.replaceChild=function(a,b,c){a.replaceChild(b,c)},b.prototype.remove=function(a){return a.parentNode&&a.parentNode.removeChild(a),a},b.prototype.insertBefore=function(a,b){a.parentNode.insertBefore(b,a)},b.prototype.insertAllBefore=function(a,b){b.forEach(function(b){return a.parentNode.insertBefore(b,a)})},b.prototype.insertAfter=function(a,b){a.parentNode.insertBefore(b,a.nextSibling)},b.prototype.setInnerHTML=function(a,b){a.innerHTML=b},b.prototype.getText=function(a){return a.textContent},b.prototype.setText=function(a,b){a.textContent=b},b.prototype.getValue=function(a){return a.value},b.prototype.setValue=function(a,b){a.value=b},b.prototype.getChecked=function(a){return a.checked},b.prototype.setChecked=function(a,b){a.checked=b},b.prototype.createComment=function(a){return document.createComment(a)},b.prototype.createTemplate=function(a){var b=document.createElement("template");return b.innerHTML=a,b},b.prototype.createElement=function(a,b){return void 0===b&&(b=document),b.createElement(a)},b.prototype.createElementNS=function(a,b,c){return void 0===c&&(c=document),c.createElementNS(a,b)},b.prototype.createTextNode=function(a,b){return void 0===b&&(b=document),b.createTextNode(a)},b.prototype.createScriptTag=function(a,b,c){void 0===c&&(c=document);var d=c.createElement("SCRIPT");return d.setAttribute(a,b),d},b.prototype.createStyleElement=function(a,b){void 0===b&&(b=document);var c=b.createElement("style");return this.appendChild(c,this.createTextNode(a)),c},b.prototype.createShadowRoot=function(a){return a.createShadowRoot()},b.prototype.getShadowRoot=function(a){return a.shadowRoot},b.prototype.getHost=function(a){return a.host},b.prototype.clone=function(a){return a.cloneNode(!0)},b.prototype.getElementsByClassName=function(a,b){return a.getElementsByClassName(b)},b.prototype.getElementsByTagName=function(a,b){return a.getElementsByTagName(b)},b.prototype.classList=function(a){return Array.prototype.slice.call(a.classList,0)},b.prototype.addClass=function(a,b){a.classList.add(b)},b.prototype.removeClass=function(a,b){a.classList.remove(b)},b.prototype.hasClass=function(a,b){return a.classList.contains(b)},b.prototype.setStyle=function(a,b,c){a.style[b]=c},b.prototype.removeStyle=function(a,b){a.style[b]=""},b.prototype.getStyle=function(a,b){return a.style[b]},b.prototype.hasStyle=function(a,b,c){void 0===c&&(c=null);var d=this.getStyle(a,b)||"";return c?d==c:d.length>0},b.prototype.tagName=function(a){return a.tagName},b.prototype.attributeMap=function(a){for(var b=new Map,c=a.attributes,d=0;d<c.length;d++){var e=c[d];b.set(e.name,e.value)}return b},b.prototype.hasAttribute=function(a,b){return a.hasAttribute(b)},b.prototype.hasAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)},b.prototype.getAttribute=function(a,b){return a.getAttribute(b)},b.prototype.getAttributeNS=function(a,b,c){return a.getAttributeNS(b,c)},b.prototype.setAttribute=function(a,b,c){a.setAttribute(b,c)},b.prototype.setAttributeNS=function(a,b,c,d){a.setAttributeNS(b,c,d)},b.prototype.removeAttribute=function(a,b){a.removeAttribute(b)},b.prototype.removeAttributeNS=function(a,b,c){a.removeAttributeNS(b,c)},b.prototype.templateAwareRoot=function(a){return this.isTemplateElement(a)?this.content(a):a},b.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},b.prototype.defaultDoc=function(){return document},b.prototype.getBoundingClientRect=function(a){try{return a.getBoundingClientRect()}catch(a){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},b.prototype.getTitle=function(){return document.title},b.prototype.setTitle=function(a){document.title=a||""},b.prototype.elementMatches=function(a,b){return a instanceof HTMLElement&&(a.matches&&a.matches(b)||a.msMatchesSelector&&a.msMatchesSelector(b)||a.webkitMatchesSelector&&a.webkitMatchesSelector(b))},b.prototype.isTemplateElement=function(a){return a instanceof HTMLElement&&"TEMPLATE"==a.nodeName},b.prototype.isTextNode=function(a){return a.nodeType===Node.TEXT_NODE},b.prototype.isCommentNode=function(a){return a.nodeType===Node.COMMENT_NODE},b.prototype.isElementNode=function(a){return a.nodeType===Node.ELEMENT_NODE},b.prototype.hasShadowRoot=function(a){return d(a.shadowRoot)&&a instanceof HTMLElement},b.prototype.isShadowRoot=function(a){return a instanceof DocumentFragment},b.prototype.importIntoDoc=function(a){return document.importNode(this.templateAwareRoot(a),!0)},b.prototype.adoptNode=function(a){return document.adoptNode(a)},b.prototype.getHref=function(a){return a.href},b.prototype.getEventKey=function(a){var b=a.key;if(e(b)){if(b=a.keyIdentifier,e(b))return"Unidentified";b.startsWith("U+")&&(b=String.fromCharCode(parseInt(b.substring(2),16)),a.location===oa&&qa.hasOwnProperty(b)&&(b=qa[b]))}return pa[b]||b},b.prototype.getGlobalEventTarget=function(a){return"window"===a?window:"document"===a?document:"body"===a?document.body:void 0},b.prototype.getHistory=function(){return window.history},b.prototype.getLocation=function(){return window.location},b.prototype.getBaseHref=function(){var a=q();return e(a)?null:r(a)},b.prototype.resetBaseElement=function(){sa=null},b.prototype.getUserAgent=function(){return window.navigator.userAgent},b.prototype.setData=function(a,b,c){this.setAttribute(a,"data-"+b,c)},b.prototype.getData=function(a,b){return this.getAttribute(a,"data-"+b)},b.prototype.getComputedStyle=function(a){return getComputedStyle(a)},b.prototype.setGlobalVar=function(a,b){g(_,a,b)},b.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},b.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},b.prototype.supportsCookies=function(){return!0},b.prototype.getCookie=function(a){return s(document.cookie,a)},b.prototype.setCookie=function(a,b){document.cookie=encodeURIComponent(a)+"="+encodeURIComponent(b)},b}(la),sa=null,ta=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},ua=function(a){function b(){a.call(this),this._init()}return ta(b,a),b.prototype._init=function(){this._location=j().getLocation(),this._history=j().getHistory()},Object.defineProperty(b.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),b.prototype.getBaseHrefFromDOM=function(){return j().getBaseHref()},b.prototype.onPopState=function(a){j().getGlobalEventTarget("window").addEventListener("popstate",a,!1)},b.prototype.onHashChange=function(a){j().getGlobalEventTarget("window").addEventListener("hashchange",a,!1)},Object.defineProperty(b.prototype,"pathname",{get:function(){return this._location.pathname},set:function(a){this._location.pathname=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),b.prototype.pushState=function(a,b,c){t()?this._history.pushState(a,b,c):this._location.hash=c},b.prototype.replaceState=function(a,b,c){t()?this._history.replaceState(a,b,c):this._location.hash=c},b.prototype.forward=function(){this._history.forward()},b.prototype.back=function(){this._history.back()},b.decorators=[{type:c.Injectable}],b.ctorParameters=[],b}(b.PlatformLocation),va=function(){function a(){}return a.init=function(){c.setTestabilityGetter(new a)},a.prototype.addToWindow=function(a){_.getAngularTestability=function(b,c){void 0===c&&(c=!0);var d=a.findTestabilityInTree(b,c);if(null==d)throw new Error("Could not find testability for element.");return d},_.getAllAngularTestabilities=function(){return a.getAllTestabilities()},_.getAllAngularRootElements=function(){return a.getAllRootElements()};var b=function(a){var b=_.getAllAngularTestabilities(),c=b.length,d=!1,e=function(b){d=d||b,c--,0==c&&a(d)};b.forEach(function(a){a.whenStable(e)})};_.frameworkStabilizers||(_.frameworkStabilizers=[]),_.frameworkStabilizers.push(b)},a.prototype.findTestabilityInTree=function(a,b,c){if(null==b)return null;var e=a.getTestability(b);return d(e)?e:c?j().isShadowRoot(b)?this.findTestabilityInTree(a,j().getHost(b),!0):this.findTestabilityInTree(a,j().parentElement(b),!0):null},a}(),wa=function(){function a(){}return a.prototype.getTitle=function(){return j().getTitle()},a.prototype.setTitle=function(a){j().setTitle(a)},a}(),xa=(function(){try{if((new Map).values().next)return function(a,b){return b?Array.from(a.values()):Array.from(a.keys())}}catch(a){}return function(a,b){var c=new Array(a.size),d=0;return a.forEach(function(a,e){c[d]=b?a:e,d++}),c}}(),function(){function a(){}return a.merge=function(a,b){for(var c={},d=0,e=Object.keys(a);d<e.length;d++){var f=e[d];c[f]=a[f]}for(var g=0,h=Object.keys(b);g<h.length;g++){var f=h[g];c[f]=b[f]}return c},a.equals=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e=0;e<c.length;e++){var f=c[e];if(a[f]!==b[f])return!1}return!0},a}()),ya=function(){function a(){}return a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1&&(a.splice(c,1),!0)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.maximum=function(a,b){if(0==a.length)return null;for(var c=null,d=-(1/0),e=0;e<a.length;e++){var f=a[e];if(null!=f){var g=b(f);g>d&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return u(a,b),b},a}(),za=new c.OpaqueToken("DocumentToken"),Aa=new c.OpaqueToken("EventManagerPlugins"),Ba=function(){function a(a,b){var c=this;this._zone=b,a.forEach(function(a){return a.manager=c}),this._plugins=a.slice().reverse()}return a.prototype.addEventListener=function(a,b,c){var d=this._findPluginFor(b);return d.addEventListener(a,b,c)},a.prototype.addGlobalEventListener=function(a,b,c){var d=this._findPluginFor(b);return d.addGlobalEventListener(a,b,c)},a.prototype.getZone=function(){return this._zone},a.prototype._findPluginFor=function(a){for(var b=this._plugins,c=0;c<b.length;c++){var d=b[c];if(d.supports(a))return d}throw new Error("No event manager plugin found for event "+a)},a.decorators=[{type:c.Injectable}],a.ctorParameters=[{type:Array,decorators:[{type:c.Inject,args:[Aa]}]},{type:c.NgZone}],a}(),Ca=function(){function a(){}return a.prototype.supports=function(a){return!1},a.prototype.addEventListener=function(a,b,c){throw"not implemented"},a.prototype.addGlobalEventListener=function(a,b,c){throw"not implemented"},a}(),Da=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Ea=function(){function a(){this._styles=[],this._stylesSet=new Set}return a.prototype.addStyles=function(a){var b=this,c=[];a.forEach(function(a){b._stylesSet.has(a)||(b._stylesSet.add(a),b._styles.push(a),c.push(a))}),this.onStylesAdded(c)},a.prototype.onStylesAdded=function(a){},a.prototype.getAllStyles=function(){return this._styles},a.decorators=[{type:c.Injectable}],a.ctorParameters=[],a}(),Fa=function(a){function b(b){a.call(this),this._hostNodes=new Set,this._hostNodes.add(b.head)}return Da(b,a),b.prototype._addStylesToHost=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];j().appendChild(b,j().createStyleElement(d))}},b.prototype.addHost=function(a){this._addStylesToHost(this._styles,a),this._hostNodes.add(a)},b.prototype.removeHost=function(a){this._hostNodes.delete(a)},b.prototype.onStylesAdded=function(a){var b=this;this._hostNodes.forEach(function(c){b._addStylesToHost(a,c)})},b.decorators=[{type:c.Injectable}],b.ctorParameters=[{type:void 0,decorators:[{type:c.Inject,args:[za]}]}],b}(Ea),Ga=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Ha={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml"},Ia="template bindings={}",Ja=/^template bindings=(.*)$/,Ka=function(){function a(a,b,c,d){this.document=a,this.eventManager=b,this.sharedStylesHost=c,this.animationDriver=d,this.registeredComponents=new Map}return a.prototype.renderComponent=function(a){var b=this.registeredComponents.get(a.id);return b||(b=new Ma(this,a,this.animationDriver),this.registeredComponents.set(a.id,b)),b},a}(),La=function(a){function b(b,c,d,e){a.call(this,b,c,d,e)}return Ga(b,a),b.decorators=[{type:c.Injectable}],b.ctorParameters=[{type:void 0,decorators:[{type:c.Inject,args:[za]}]},{type:Ba},{type:Fa},{type:$}],b}(Ka),Ma=function(){function a(a,b,d){this._rootRenderer=a,this.componentProto=b,this._animationDriver=d,this._styles=A(b.id,b.styles,[]),b.encapsulation!==c.ViewEncapsulation.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===c.ViewEncapsulation.Emulated?(this._contentAttr=y(b.id),this._hostAttr=z(b.id)):(this._contentAttr=null,this._hostAttr=null)}return a.prototype.selectRootElement=function(a,b){var c;if("string"==typeof a){if(c=j().querySelector(this._rootRenderer.document,a),e(c))throw new Error('The selector "'+a+'" did not match any elements')}else c=a;return j().clearNodes(c),c},a.prototype.createElement=function(a,b,c){var e=B(b),f=d(e[0])?j().createElementNS(Ha[e[0]],e[1]):j().createElement(e[1]);return d(this._contentAttr)&&j().setAttribute(f,this._contentAttr,""),d(a)&&j().appendChild(a,f),f},a.prototype.createViewRoot=function(a){var b;if(this.componentProto.encapsulation===c.ViewEncapsulation.Native){b=j().createShadowRoot(a),this._rootRenderer.sharedStylesHost.addHost(b);for(var e=0;e<this._styles.length;e++)j().appendChild(b,j().createStyleElement(this._styles[e]))}else d(this._hostAttr)&&j().setAttribute(a,this._hostAttr,""),b=a;return b},a.prototype.createTemplateAnchor=function(a,b){var c=j().createComment(Ia);return d(a)&&j().appendChild(a,c),c},a.prototype.createText=function(a,b,c){var e=j().createTextNode(b);return d(a)&&j().appendChild(a,e),e},a.prototype.projectNodes=function(a,b){e(a)||w(a,b)},a.prototype.attachViewAfter=function(a,b){v(a,b)},a.prototype.detachView=function(a){for(var b=0;b<a.length;b++)j().remove(a[b])},a.prototype.destroyView=function(a,b){this.componentProto.encapsulation===c.ViewEncapsulation.Native&&d(a)&&this._rootRenderer.sharedStylesHost.removeHost(j().getShadowRoot(a))},a.prototype.listen=function(a,b,c){return this._rootRenderer.eventManager.addEventListener(a,b,x(c))},a.prototype.listenGlobal=function(a,b,c){return this._rootRenderer.eventManager.addGlobalEventListener(a,b,x(c))},a.prototype.setElementProperty=function(a,b,c){j().setProperty(a,b,c)},a.prototype.setElementAttribute=function(a,b,c){var e,f=B(b);d(f[0])&&(b=f[0]+":"+f[1],e=Ha[f[0]]),d(c)?d(e)?j().setAttributeNS(a,e,b,c):j().setAttribute(a,b,c):d(e)?j().removeAttributeNS(a,e,f[1]):j().removeAttribute(a,b)},a.prototype.setBindingDebugInfo=function(a,b,c){var d=h(b);if(j().isCommentNode(a)){var e=j().getText(a).replace(/\n/g,"").match(Ja),f=JSON.parse(e[1]);f[d]=c,j().setText(a,Ia.replace("{}",JSON.stringify(f,null,2)))}else this.setElementAttribute(a,b,c)},a.prototype.setElementClass=function(a,b,c){c?j().addClass(a,b):j().removeClass(a,b)},a.prototype.setElementStyle=function(a,b,c){d(c)?j().setStyle(a,b,f(c)):j().removeStyle(a,b)},a.prototype.invokeElementMethod=function(a,b,c){j().invoke(a,b,c)},a.prototype.setText=function(a,b){j().setText(a,b)},a.prototype.animate=function(a,b,c,d,e,f){return this._animationDriver.animate(a,b,c,d,e,f)},a}(),Na=/%COMP%/g,Oa="%COMP%",Pa="_nghost-"+Oa,Qa="_ngcontent-"+Oa,Ra=/^:([^:]+):(.+)$/,Sa={ApplicationRef:c.ApplicationRef,NgZone:c.NgZone},Ta="ng.probe",Ua="ng.coreTokens",Va=function(){function a(a,b){this.name=a,this.token=b}return a}(),Wa=[{provide:c.RootRenderer,useFactory:D,deps:[Ka,[Va,new c.Optional]]}],Xa=([{provide:c.RootRenderer,useFactory:E,deps:[Ka,[Va,new c.Optional]]}],this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),Ya=function(a){function b(){a.apply(this,arguments)}return Xa(b,a),b.prototype.supports=function(a){return!0},b.prototype.addEventListener=function(a,b,c){var d=this.manager.getZone(),e=function(a){return d.runGuarded(function(){return c(a)})};return this.manager.getZone().runOutsideAngular(function(){return j().onAndCancel(a,b,e)})},b.prototype.addGlobalEventListener=function(a,b,c){var d=j().getGlobalEventTarget(a),e=this.manager.getZone(),f=function(a){return e.runGuarded(function(){return c(a)})};return this.manager.getZone().runOutsideAngular(function(){return j().onAndCancel(d,b,f)})},b.decorators=[{type:c.Injectable}],b.ctorParameters=[],b}(Ca),Za=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},$a={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},_a=function(a){function b(){a.call(this)}return Za(b,a),b.prototype.supports=function(a){return $a.hasOwnProperty(a.toLowerCase());
  },b}(Ca),ab=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},bb=new c.OpaqueToken("HammerGestureConfig"),cb=function(){function a(){this.events=[],this.overrides={}}return a.prototype.buildHammer=function(a){var b=new Hammer(a);b.get("pinch").set({enable:!0}),b.get("rotate").set({enable:!0});for(var c in this.overrides)b.get(c).set(this.overrides[c]);return b},a.decorators=[{type:c.Injectable}],a.ctorParameters=[],a}(),db=function(a){function b(b){a.call(this),this._config=b}return ab(b,a),b.prototype.supports=function(b){if(!a.prototype.supports.call(this,b)&&!this.isCustomEvent(b))return!1;if(!d(window.Hammer))throw new Error("Hammer.js is not loaded, can not bind "+b+" event");return!0},b.prototype.addEventListener=function(a,b,c){var d=this,e=this.manager.getZone();return b=b.toLowerCase(),e.runOutsideAngular(function(){var f=d._config.buildHammer(a),g=function(a){e.runGuarded(function(){c(a)})};return f.on(b,g),function(){f.off(b,g)}})},b.prototype.isCustomEvent=function(a){return this._config.events.indexOf(a)>-1},b.decorators=[{type:c.Injectable}],b.ctorParameters=[{type:cb,decorators:[{type:c.Inject,args:[bb]}]}],b}(_a),eb=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},fb=["alt","control","meta","shift"],gb={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},hb=function(a){function b(){a.call(this)}return eb(b,a),b.prototype.supports=function(a){return d(b.parseEventName(a))},b.prototype.addEventListener=function(a,c,d){var e=b.parseEventName(c),f=b.eventCallback(a,e.fullKey,d,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return j().onAndCancel(a,e.domEventName,f)})},b.parseEventName=function(a){var c=a.toLowerCase().split("."),d=c.shift();if(0===c.length||"keydown"!==d&&"keyup"!==d)return null;var e=b._normalizeKey(c.pop()),f="";if(fb.forEach(function(a){c.indexOf(a)>-1&&(ya.remove(c,a),f+=a+".")}),f+=e,0!=c.length||0===e.length)return null;var g={};return g.domEventName=d,g.fullKey=f,g},b.getEventFullKey=function(a){var b="",c=j().getEventKey(a);return c=c.toLowerCase()," "===c?c="space":"."===c&&(c="dot"),fb.forEach(function(d){if(d!=c){var e=gb[d];e(a)&&(b+=d+".")}}),b+=c},b.eventCallback=function(a,c,d,e){return function(a){b.getEventFullKey(a)===c&&e.runGuarded(function(){return d(a)})}},b._normalizeKey=function(a){switch(a){case"esc":return"escape";default:return a}},b.decorators=[{type:c.Injectable}],b.ctorParameters=[],b}(Ca),ib=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,jb=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,kb=null,lb=null,mb=J("area,br,col,hr,img,wbr"),nb=J("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ob=J("rp,rt"),pb=K(ob,nb),qb=K(nb,J("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")),rb=K(ob,J("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")),sb=K(mb,qb,rb,pb),tb=J("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ub=J("srcset"),vb=J("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"),wb=K(tb,ub,vb),xb=function(){function a(){this.sanitizedSomething=!1,this.buf=[]}return a.prototype.sanitizeChildren=function(a){for(var b=a.firstChild;b;)if(lb.isElementNode(b)?this.startElement(b):lb.isTextNode(b)?this.chars(lb.nodeValue(b)):this.sanitizedSomething=!0,lb.firstChild(b))b=lb.firstChild(b);else for(;b;){if(lb.isElementNode(b)&&this.endElement(b),lb.nextSibling(b)){b=lb.nextSibling(b);break}b=lb.parentElement(b)}return this.buf.join("")},a.prototype.startElement=function(a){var b=this,c=lb.nodeName(a).toLowerCase();return sb.hasOwnProperty(c)?(this.buf.push("<"),this.buf.push(c),lb.attributeMap(a).forEach(function(a,c){var d=c.toLowerCase();return wb.hasOwnProperty(d)?(tb[d]&&(a=G(a)),ub[d]&&(a=H(a)),b.buf.push(" "),b.buf.push(c),b.buf.push('="'),b.buf.push(L(a)),void b.buf.push('"')):void(b.sanitizedSomething=!0)}),void this.buf.push(">")):void(this.sanitizedSomething=!0)},a.prototype.endElement=function(a){var b=lb.nodeName(a).toLowerCase();sb.hasOwnProperty(b)&&!mb.hasOwnProperty(b)&&(this.buf.push("</"),this.buf.push(b),this.buf.push(">"))},a.prototype.chars=function(a){this.buf.push(L(a))},a}(),yb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zb=/([^\#-~ |!])/g,Ab="[-,.\"'%_!# a-zA-Z0-9]+",Bb="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",Cb="(?:rgb|hsl)a?",Db="\\([-0-9.%, a-zA-Z]+\\)",Eb=new RegExp("^("+Ab+"|(?:"+Bb+"|"+Cb+")"+Db+")$","g"),Fb=/^url\(([^)]+)\)$/,Gb=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},Hb=function(){function a(){}return a}(),Ib=function(a){function b(){a.apply(this,arguments)}return Gb(b,a),b.prototype.sanitize=function(a,b){if(null==b)return null;switch(a){case c.SecurityContext.NONE:return b;case c.SecurityContext.HTML:return b instanceof Kb?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"HTML"),N(String(b)));case c.SecurityContext.STYLE:return b instanceof Lb?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"Style"),P(b));case c.SecurityContext.SCRIPT:if(b instanceof Mb)return b.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(b,"Script"),new Error("unsafe value used in a script context");case c.SecurityContext.URL:return b instanceof Ob||b instanceof Nb?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"URL"),G(String(b)));case c.SecurityContext.RESOURCE_URL:if(b instanceof Ob)return b.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(b,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+a+" (see http://g.co/ng/security#xss)")}},b.prototype.checkNotSafeValue=function(a,b){if(a instanceof Jb)throw new Error("Required a safe "+b+", got a "+a.getTypeName()+" (see http://g.co/ng/security#xss)")},b.prototype.bypassSecurityTrustHtml=function(a){return new Kb(a)},b.prototype.bypassSecurityTrustStyle=function(a){return new Lb(a)},b.prototype.bypassSecurityTrustScript=function(a){return new Mb(a)},b.prototype.bypassSecurityTrustUrl=function(a){return new Nb(a)},b.prototype.bypassSecurityTrustResourceUrl=function(a){return new Ob(a)},b.decorators=[{type:c.Injectable}],b.ctorParameters=[],b}(Hb),Jb=function(){function a(a){this.changingThisBreaksApplicationSecurity=a}return a.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},a}(),Kb=function(a){function b(){a.apply(this,arguments)}return Gb(b,a),b.prototype.getTypeName=function(){return"HTML"},b}(Jb),Lb=function(a){function b(){a.apply(this,arguments)}return Gb(b,a),b.prototype.getTypeName=function(){return"Style"},b}(Jb),Mb=function(a){function b(){a.apply(this,arguments)}return Gb(b,a),b.prototype.getTypeName=function(){return"Script"},b}(Jb),Nb=function(a){function b(){a.apply(this,arguments)}return Gb(b,a),b.prototype.getTypeName=function(){return"URL"},b}(Jb),Ob=function(a){function b(){a.apply(this,arguments)}return Gb(b,a),b.prototype.getTypeName=function(){return"ResourceURL"},b}(Jb),Pb=[{provide:c.PLATFORM_INITIALIZER,useValue:Q,multi:!0},{provide:b.PlatformLocation,useClass:ua}],Qb=[{provide:c.Sanitizer,useExisting:Hb},{provide:Hb,useClass:Ib}],Rb=c.createPlatformFactory(c.platformCore,"browser",Pb),Sb=function(){function a(a){if(a)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 a.decorators=[{type:c.NgModule,args:[{providers:[Qb,{provide:c.ErrorHandler,useFactory:R,deps:[]},{provide:za,useFactory:S,deps:[]},{provide:Aa,useClass:Ya,multi:!0},{provide:Aa,useClass:hb,multi:!0},{provide:Aa,useClass:db,multi:!0},{provide:bb,useClass:cb},{provide:Ka,useClass:La},{provide:c.RootRenderer,useExisting:Ka},{provide:Ea,useExisting:Fa},{provide:$,useFactory:T},Fa,c.Testability,Ba,Wa,wa],exports:[b.CommonModule,c.ApplicationModule]}]}],a.ctorParameters=[{type:a,decorators:[{type:c.Optional},{type:c.SkipSelf}]}],a}(),Tb="undefined"!=typeof window&&window||{},Ub=function(){function a(a,b){this.msPerTick=a,this.numTicks=b}return a}(),Vb=function(){function a(a){this.profiler=new Wb(a)}return a}(),Wb=function(){function a(a){this.appRef=a.injector.get(c.ApplicationRef)}return a.prototype.timeChangeDetection=function(a){var b=a&&a.record,c="Change Detection",e=d(Tb.console.profile);b&&e&&Tb.console.profile(c);for(var f=j().performanceNow(),g=0;g<5||j().performanceNow()-f<500;)this.appRef.tick(),g++;var h=j().performanceNow();b&&e&&Tb.console.profileEnd(c);var i=(h-f)/g;return Tb.console.log("ran "+g+" change detection cycles"),Tb.console.log(i.toFixed(2)+" ms per check"),new Ub(i,g)},a}(),Xb=_,Yb=function(){function a(){}return a.all=function(){return function(a){return!0}},a.css=function(a){return function(b){return!!d(b.nativeElement)&&j().elementMatches(b.nativeElement,a)}},a.directive=function(a){return function(b){return b.providerTokens.indexOf(a)!==-1}},a}(),Zb={BrowserPlatformLocation:ua,DomAdapter:ea,BrowserDomAdapter:ra,BrowserGetTestability:va,getDOM:j,setRootDomAdapter:k,DomRootRenderer_:La,DomRootRenderer:Ka,DomSharedStylesHost:Fa,SharedStylesHost:Ea,ELEMENT_PROBE_PROVIDERS:Wa,DomEventsPlugin:Ya,KeyEventsPlugin:hb,HammerGesturesPlugin:db,initDomAdapter:Q,INTERNAL_BROWSER_PLATFORM_PROVIDERS:Pb,BROWSER_SANITIZATION_PROVIDERS:Qb};a.BrowserModule=Sb,a.platformBrowser=Rb,a.Title=wa,a.disableDebugTools=V,a.enableDebugTools=U,a.AnimationDriver=$,a.By=Yb,a.NgProbeToken=Va,a.DOCUMENT=za,a.EVENT_MANAGER_PLUGINS=Aa,a.EventManager=Ba,a.HAMMER_GESTURE_CONFIG=bb,a.HammerGestureConfig=cb,a.DomSanitizer=Hb,a.__platform_browser_private__=Zb})}(),function(){var e=a.amdDefine;!function(a,f){"object"==typeof c&&"undefined"!=typeof d?f(c,b("@angular/core"),b("rxjs/Observable"),b("@angular/platform-browser")):"function"==typeof e&&e.amd?e("35",["exports","3","9","5"],f):f((a.ng=a.ng||{},a.ng.http=a.ng.http||{}),a.ng.core,a.Rx,a.ng.platformBrowser)}(this,function(a,b,c,d){"use strict";function e(a){return null!=a}function f(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function g(b){if("string"!=typeof b)return b;switch(b.toUpperCase()){case"GET":return a.RequestMethod.Get;case"POST":return a.RequestMethod.Post;case"PUT":return a.RequestMethod.Put;case"DELETE":return a.RequestMethod.Delete;case"OPTIONS":return a.RequestMethod.Options;case"HEAD":return a.RequestMethod.Head;case"PATCH":return a.RequestMethod.Patch}throw new Error('Invalid request method. The method "'+b+'" is not supported.')}function h(a){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}function i(a){for(var b=new Uint16Array(a.length),c=0,d=a.length;c<d;c++)b[c]=a.charCodeAt(c);return b.buffer}function j(a){void 0===a&&(a="");var b=new Map;if(a.length>0){var c=a.split("&");c.forEach(function(a){var c=a.indexOf("="),d=c==-1?[a,""]:[a.slice(0,c),a.slice(c+1)],e=d[0],f=d[1],g=b.get(e)||[];g.push(f),b.set(e,g)})}return b}function k(a){return encodeURIComponent(a).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 l(){return null===M&&(M=t[L]={}),M}function m(a,b){return a.createConnection(b).response}function n(a,b,c,d){var f=a;return e(b)?f.merge(new $({method:b.method||c,url:b.url||d,search:b.search,headers:b.headers,body:b.body,withCredentials:b.withCredentials,responseType:b.responseType})):e(c)?f.merge(new $({method:c,url:d})):f.merge(new $({url:d}))}function o(){return new X}function p(a,b){return new ia(a,b)}function q(a,b){return new ja(a,b)}var r,s=function(){function a(){}return a.prototype.build=function(){return new XMLHttpRequest},a.decorators=[{type:b.Injectable}],a.ctorParameters=[],a}();r="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var t=r;t.assert=function(a){},a.RequestMethod,function(a){a[a.Get=0]="Get",a[a.Post=1]="Post",a[a.Put=2]="Put",a[a.Delete=3]="Delete",a[a.Options=4]="Options",a[a.Head=5]="Head",a[a.Patch=6]="Patch"}(a.RequestMethod||(a.RequestMethod={})),a.ReadyState,function(a){a[a.Unsent=0]="Unsent",a[a.Open=1]="Open",a[a.HeadersReceived=2]="HeadersReceived",a[a.Loading=3]="Loading",a[a.Done=4]="Done",a[a.Cancelled=5]="Cancelled"}(a.ReadyState||(a.ReadyState={})),a.ResponseType,function(a){a[a.Basic=0]="Basic",a[a.Cors=1]="Cors",a[a.Default=2]="Default",a[a.Error=3]="Error",a[a.Opaque=4]="Opaque"}(a.ResponseType||(a.ResponseType={}));var u;!function(a){a[a.NONE=0]="NONE",a[a.JSON=1]="JSON",a[a.FORM=2]="FORM",a[a.FORM_DATA=3]="FORM_DATA",a[a.TEXT=4]="TEXT",a[a.BLOB=5]="BLOB",a[a.ARRAY_BUFFER=6]="ARRAY_BUFFER"}(u||(u={})),a.ResponseContentType,function(a){a[a.Text=0]="Text",a[a.Json=1]="Json",a[a.ArrayBuffer=2]="ArrayBuffer",a[a.Blob=3]="Blob"}(a.ResponseContentType||(a.ResponseContentType={}));var v=function(){try{if((new Map).values().next)return function(a,b){return b?Array.from(a.values()):Array.from(a.keys())}}catch(a){}return function(a,b){var c=new Array(a.size),d=0;return a.forEach(function(a,e){c[d]=b?a:e,d++}),c}}(),w=function(){function a(){}return a.createFromStringMap=function(a){var b=new Map;for(var c in a)b.set(c,a[c]);return b},a.keys=function(a){return v(a,!1)},a.values=function(a){return v(a,!0)},a}(),x=function(){function a(b){var c=this;if(this._headers=new Map,this._normalizedNames=new Map,b)return b instanceof a?void b._headers.forEach(function(a,b){a.forEach(function(a){return c.append(b,a)})}):void Object.keys(b).forEach(function(a){var d=Array.isArray(b[a])?b[a]:[b[a]];c.delete(a),d.forEach(function(b){return c.append(a,b)})})}return a.fromResponseHeaderString=function(b){var c=new a;return b.split("\n").forEach(function(a){var b=a.indexOf(":");if(b>0){var d=a.slice(0,b),e=a.slice(b+1).trim();c.set(d,e)}}),c},a.prototype.append=function(a,b){var c=this.getAll(a);null===c?this.set(a,b):c.push(b)},a.prototype.delete=function(a){var b=a.toLowerCase();this._normalizedNames.delete(b),this._headers.delete(b)},a.prototype.forEach=function(a){var b=this;this._headers.forEach(function(c,d){return a(c,b._normalizedNames.get(d),b._headers)})},a.prototype.get=function(a){var b=this.getAll(a);return null===b?null:b.length>0?b[0]:null},a.prototype.has=function(a){return this._headers.has(a.toLowerCase())},a.prototype.keys=function(){return w.values(this._normalizedNames)},a.prototype.set=function(a,b){Array.isArray(b)?b.length&&this._headers.set(a.toLowerCase(),[b.join(",")]):this._headers.set(a.toLowerCase(),[b]),this.mayBeSetNormalizedName(a)},a.prototype.values=function(){return w.values(this._headers)},a.prototype.toJSON=function(){var a=this,b={};return this._headers.forEach(function(c,d){var e=[];c.forEach(function(a){return e.push.apply(e,a.split(","))}),b[a._normalizedNames.get(d)]=e}),b},a.prototype.getAll=function(a){return this.has(a)?this._headers.get(a.toLowerCase()):null},a.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},a.prototype.mayBeSetNormalizedName=function(a){var b=a.toLowerCase();this._normalizedNames.has(b)||this._normalizedNames.set(b,a)},a}(),y=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},z=function(){function a(a){var b=void 0===a?{}:a,c=b.body,d=b.status,f=b.headers,g=b.statusText,h=b.type,i=b.url;this.body=e(c)?c:null,this.status=e(d)?d:null,this.headers=e(f)?f:null,this.statusText=e(g)?g:null,this.type=e(h)?h:null,this.url=e(i)?i:null}return a.prototype.merge=function(b){return new a({body:e(b)&&e(b.body)?b.body:this.body,status:e(b)&&e(b.status)?b.status:this.status,headers:e(b)&&e(b.headers)?b.headers:this.headers,statusText:e(b)&&e(b.statusText)?b.statusText:this.statusText,type:e(b)&&e(b.type)?b.type:this.type,url:e(b)&&e(b.url)?b.url:this.url})},a}(),A=function(c){function d(){c.call(this,{status:200,statusText:"Ok",type:a.ResponseType.Default,headers:new x})}return y(d,c),d.decorators=[{type:b.Injectable}],d.ctorParameters=[],d}(z),B=function(){function a(){}return a}(),C=function(){function a(){}return a}(),D=function(){function a(){}return a}(),E=function(a){return a>=200&&a<300},F=function(){function a(){}return a.prototype.encodeKey=function(a){return k(a)},a.prototype.encodeValue=function(a){return k(a)},a}(),G=function(){function a(a,b){void 0===a&&(a=""),void 0===b&&(b=new F),this.rawParams=a,this.queryEncoder=b,this.paramsMap=j(a)}return a.prototype.clone=function(){var b=new a("",this.queryEncoder);return b.appendAll(this),b},a.prototype.has=function(a){return this.paramsMap.has(a)},a.prototype.get=function(a){var b=this.paramsMap.get(a);return Array.isArray(b)?b[0]:null},a.prototype.getAll=function(a){return this.paramsMap.get(a)||[]},a.prototype.set=function(a,b){if(void 0===b||null===b)return void this.delete(a);var c=this.paramsMap.get(a)||[];c.length=0,c.push(b),this.paramsMap.set(a,c)},a.prototype.setAll=function(a){var b=this;a.paramsMap.forEach(function(a,c){var d=b.paramsMap.get(c)||[];d.length=0,d.push(a[0]),b.paramsMap.set(c,d)})},a.prototype.append=function(a,b){if(void 0!==b&&null!==b){var c=this.paramsMap.get(a)||[];c.push(b),this.paramsMap.set(a,c)}},a.prototype.appendAll=function(a){var b=this;a.paramsMap.forEach(function(a,c){for(var d=b.paramsMap.get(c)||[],e=0;e<a.length;++e)d.push(a[e]);b.paramsMap.set(c,d)})},a.prototype.replaceAll=function(a){var b=this;a.paramsMap.forEach(function(a,c){var d=b.paramsMap.get(c)||[];d.length=0;for(var e=0;e<a.length;++e)d.push(a[e]);b.paramsMap.set(c,d)})},a.prototype.toString=function(){var a=this,b=[];return this.paramsMap.forEach(function(c,d){c.forEach(function(c){return b.push(a.queryEncoder.encodeKey(d)+"="+a.queryEncoder.encodeValue(c))})}),b.join("&")},a.prototype.delete=function(a){this.paramsMap.delete(a)},a}(),H=function(){function a(){}return a.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},a.prototype.text=function(){return this._body instanceof G?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null===this._body?"":f(this._body)?JSON.stringify(this._body,null,2):this._body.toString()},a.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:i(this.text())},a.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},a}(),I=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},J=function(a){function b(b){a.call(this),this._body=b.body,this.status=b.status,this.ok=this.status>=200&&this.status<=299,this.statusText=b.statusText,this.headers=b.headers,this.type=b.type,this.url=b.url}return I(b,a),b.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},b}(H),K=0,L="__ng_jsonp__",M=null,N=function(){function a(){}return a.prototype.build=function(a){var b=document.createElement("script");return b.src=a,b},a.prototype.nextRequestID=function(){return"__req"+K++},a.prototype.requestCallback=function(a){return L+"."+a+".finished"},a.prototype.exposeConnection=function(a,b){var c=l();c[a]=b},a.prototype.removeConnection=function(a){var b=l();b[a]=null},a.prototype.send=function(a){document.body.appendChild(a)},a.prototype.cleanup=function(a){a.parentNode&&a.parentNode.removeChild(a)},a.decorators=[{type:b.Injectable}],a.ctorParameters=[],a}(),O=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},P="JSONP injected script did not invoke callback.",Q="JSONP requests must use GET request method.",R=function(){function a(){}return a}(),S=function(b){function d(d,f,g){var h=this;if(b.call(this),this._dom=f,this.baseResponseOptions=g,this._finished=!1,d.method!==a.RequestMethod.Get)throw new TypeError(Q);this.request=d,this.response=new c.Observable(function(b){h.readyState=a.ReadyState.Loading;var c=h._id=f.nextRequestID();f.exposeConnection(c,h);var i=f.requestCallback(h._id),j=d.url;j.indexOf("=JSONP_CALLBACK&")>-1?j=j.replace("=JSONP_CALLBACK&","="+i+"&"):j.lastIndexOf("=JSONP_CALLBACK")===j.length-"=JSONP_CALLBACK".length&&(j=j.substring(0,j.length-"=JSONP_CALLBACK".length)+("="+i));var k=h._script=f.build(j),l=function(c){if(h.readyState!==a.ReadyState.Cancelled){if(h.readyState=a.ReadyState.Done,f.cleanup(k),!h._finished){var d=new z({body:P,type:a.ResponseType.Error,url:j});return e(g)&&(d=g.merge(d)),void b.error(new J(d))}var i=new z({body:h._responseData,url:j});e(h.baseResponseOptions)&&(i=h.baseResponseOptions.merge(i)),b.next(new J(i)),b.complete()}},m=function(c){if(h.readyState!==a.ReadyState.Cancelled){h.readyState=a.ReadyState.Done,f.cleanup(k);var d=new z({body:c.message,type:a.ResponseType.Error});e(g)&&(d=g.merge(d)),b.error(new J(d))}};return k.addEventListener("load",l),k.addEventListener("error",m),f.send(k),function(){h.readyState=a.ReadyState.Cancelled,k.removeEventListener("load",l),k.removeEventListener("error",m),e(k)&&h._dom.cleanup(k)}})}return O(d,b),d.prototype.finished=function(b){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==a.ReadyState.Cancelled&&(this._responseData=b)},d}(R),T=function(a){function b(){a.apply(this,arguments)}return O(b,a),b}(B),U=function(a){function c(b,c){a.call(this),this._browserJSONP=b,this._baseResponseOptions=c}return O(c,a),c.prototype.createConnection=function(a){return new S(a,this._browserJSONP,this._baseResponseOptions)},c.decorators=[{type:b.Injectable}],c.ctorParameters=[{type:N},{type:z}],c}(T),V=/^\)\]\}',?\n/,W=function(){function b(b,d,f){var g=this;this.request=b,this.response=new c.Observable(function(c){var i=d.build();i.open(a.RequestMethod[b.method].toUpperCase(),b.url),e(b.withCredentials)&&(i.withCredentials=b.withCredentials);var j=function(){var a=void 0===i.response?i.responseText:i.response;"string"==typeof a&&(a=a.replace(V,""));var b=x.fromResponseHeaderString(i.getAllResponseHeaders()),d=h(i),g=1223===i.status?204:i.status;0===g&&(g=a?200:0);var j=i.statusText||"OK",k=new z({body:a,status:g,headers:b,statusText:j,url:d});e(f)&&(k=f.merge(k));var l=new J(k);return l.ok=E(g),l.ok?(c.next(l),void c.complete()):void c.error(l)},k=function(b){var d=new z({body:b,type:a.ResponseType.Error,status:i.status,statusText:i.statusText});e(f)&&(d=f.merge(d)),c.error(new J(d))};if(g.setDetectedContentType(b,i),e(b.headers)&&b.headers.forEach(function(a,b){return i.setRequestHeader(b,a.join(","))}),e(b.responseType)&&e(i.responseType))switch(b.responseType){case a.ResponseContentType.ArrayBuffer:i.responseType="arraybuffer";break;case a.ResponseContentType.Json:i.responseType="json";break;case a.ResponseContentType.Text:i.responseType="text";break;case a.ResponseContentType.Blob:i.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return i.addEventListener("load",j),i.addEventListener("error",k),i.send(g.request.getBody()),function(){i.removeEventListener("load",j),i.removeEventListener("error",k),i.abort()}})}return b.prototype.setDetectedContentType=function(a,b){if(!e(a.headers)||!e(a.headers.get("Content-Type")))switch(a.contentType){case u.NONE:break;case u.JSON:b.setRequestHeader("content-type","application/json");break;case u.FORM:b.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case u.TEXT:b.setRequestHeader("content-type","text/plain");break;case u.BLOB:var c=a.blob();c.type&&b.setRequestHeader("content-type",c.type)}},b}(),X=function(){function a(a,b){void 0===a&&(a="XSRF-TOKEN"),void 0===b&&(b="X-XSRF-TOKEN"),this._cookieName=a,this._headerName=b}return a.prototype.configureRequest=function(a){var b=d.__platform_browser_private__.getDOM().getCookie(this._cookieName);b&&a.headers.set(this._headerName,b)},a}(),Y=function(){function a(a,b,c){this._browserXHR=a,this._baseResponseOptions=b,this._xsrfStrategy=c}return a.prototype.createConnection=function(a){return this._xsrfStrategy.configureRequest(a),new W(a,this._browserXHR,this._baseResponseOptions)},a.decorators=[{type:b.Injectable}],a.ctorParameters=[{type:s},{type:z},{type:D}],a}(),Z=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},$=function(){function a(a){var b=void 0===a?{}:a,c=b.method,d=b.headers,f=b.body,h=b.url,i=b.search,j=b.withCredentials,k=b.responseType;this.method=e(c)?g(c):null,this.headers=e(d)?d:null,this.body=e(f)?f:null,this.url=e(h)?h:null,this.search=e(i)?"string"==typeof i?new G(i):i:null,this.withCredentials=e(j)?j:null,this.responseType=e(k)?k:null}return a.prototype.merge=function(b){return new a({method:b&&e(b.method)?b.method:this.method,headers:b&&e(b.headers)?b.headers:this.headers,body:b&&e(b.body)?b.body:this.body,url:b&&e(b.url)?b.url:this.url,search:b&&e(b.search)?"string"==typeof b.search?new G(b.search):b.search.clone():this.search,withCredentials:b&&e(b.withCredentials)?b.withCredentials:this.withCredentials,responseType:b&&e(b.responseType)?b.responseType:this.responseType})},a}(),_=function(c){function d(){c.call(this,{method:a.RequestMethod.Get,headers:new x})}return Z(d,c),d.decorators=[{type:b.Injectable}],d.ctorParameters=[],d}($),aa=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},ba=function(a){function b(b){a.call(this);var c=b.url;if(this.url=b.url,e(b.search)){var d=b.search.toString();if(d.length>0){var f="?";this.url.indexOf("?")!=-1&&(f="&"==this.url[this.url.length-1]?"":"&"),this.url=c+f+d}}this._body=b.body,this.method=g(b.method),this.headers=new x(b.headers),this.contentType=this.detectContentType(),this.withCredentials=b.withCredentials,this.responseType=b.responseType}return aa(b,a),b.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return u.JSON;case"application/x-www-form-urlencoded":return u.FORM;case"multipart/form-data":return u.FORM_DATA;case"text/plain":case"text/html":return u.TEXT;case"application/octet-stream":return u.BLOB;default:return this.detectContentTypeFromBody()}},b.prototype.detectContentTypeFromBody=function(){return null==this._body?u.NONE:this._body instanceof G?u.FORM:this._body instanceof ea?u.FORM_DATA:this._body instanceof fa?u.BLOB:this._body instanceof ga?u.ARRAY_BUFFER:this._body&&"object"==typeof this._body?u.JSON:u.TEXT},b.prototype.getBody=function(){switch(this.contentType){case u.JSON:return this.text();case u.FORM:return this.text();case u.FORM_DATA:return this._body;case u.TEXT:return this.text();case u.BLOB:return this.blob();case u.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},b}(H),ca=function(){},da="object"==typeof window?window:ca,ea=da.FormData||ca,fa=da.Blob||ca,ga=da.ArrayBuffer||ca,ha=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},ia=function(){function c(a,b){this._backend=a,this._defaultOptions=b}return c.prototype.request=function(b,c){var d;if("string"==typeof b)d=m(this._backend,new ba(n(this._defaultOptions,c,a.RequestMethod.Get,b)));else{if(!(b instanceof ba))throw new Error("First argument must be a url string or Request instance.");d=m(this._backend,b)}return d},c.prototype.get=function(b,c){return this.request(new ba(n(this._defaultOptions,c,a.RequestMethod.Get,b)))},c.prototype.post=function(b,c,d){return this.request(new ba(n(this._defaultOptions.merge(new $({body:c})),d,a.RequestMethod.Post,b)))},c.prototype.put=function(b,c,d){return this.request(new ba(n(this._defaultOptions.merge(new $({body:c})),d,a.RequestMethod.Put,b)))},c.prototype.delete=function(b,c){return this.request(new ba(n(this._defaultOptions,c,a.RequestMethod.Delete,b)))},c.prototype.patch=function(b,c,d){return this.request(new ba(n(this._defaultOptions.merge(new $({body:c})),d,a.RequestMethod.Patch,b)))},c.prototype.head=function(b,c){return this.request(new ba(n(this._defaultOptions,c,a.RequestMethod.Head,b)))},c.prototype.options=function(b,c){return this.request(new ba(n(this._defaultOptions,c,a.RequestMethod.Options,b)))},c.decorators=[{type:b.Injectable}],c.ctorParameters=[{type:B},{type:$}],c}(),ja=function(c){function d(a,b){c.call(this,a,b)}return ha(d,c),d.prototype.request=function(b,c){var d;if("string"==typeof b&&(b=new ba(n(this._defaultOptions,c,a.RequestMethod.Get,b))),!(b instanceof ba))throw new Error("First argument must be a url string or Request instance.");if(b.method!==a.RequestMethod.Get)throw new Error("JSONP requests must use GET request method.");return d=m(this._backend,b)},d.decorators=[{type:b.Injectable}],d.ctorParameters=[{type:B},{type:$}],d}(ia),ka=function(){function a(){}return a.decorators=[{type:b.NgModule,args:[{providers:[{provide:ia,useFactory:p,deps:[Y,$]},s,{provide:$,useClass:_},{provide:z,useClass:A},Y,{provide:D,useFactory:o}]}]}],a.ctorParameters=[],a}(),la=function(){function a(){}return a.decorators=[{type:b.NgModule,args:[{providers:[{provide:ja,useFactory:q,deps:[T,$]},N,{provide:$,useClass:_},{provide:z,useClass:A},{provide:T,useClass:U}]}]}],a.ctorParameters=[],a}();a.BrowserXhr=s,a.JSONPBackend=T,a.JSONPConnection=R,a.CookieXSRFStrategy=X,a.XHRBackend=Y,a.XHRConnection=W,a.BaseRequestOptions=_,a.RequestOptions=$,a.BaseResponseOptions=A,a.ResponseOptions=z,a.Headers=x,a.Http=ia,a.Jsonp=ja,a.HttpModule=ka,a.JsonpModule=la,a.Connection=C,a.ConnectionBackend=B,a.XSRFStrategy=D,a.Request=ba,a.Response=J,a.QueryEncoder=F,a.URLSearchParams=G})}(),a.registerDynamic("36",["10","34"],!0,function(a,b,c){"use strict";function d(a,b,c){if(a){if(a instanceof e.Subscriber)return a;if(a[f.$$rxSubscriber])return a[f.$$rxSubscriber]()}return a||b||c?new e.Subscriber(a,b,c):new e.Subscriber}var e=(this||self,a("10")),f=a("34");return b.toSubscriber=d,c.exports}),a.registerDynamic("16",["8"],!0,function(a,b,c){"use strict";function d(a){var b,c=a.Symbol;return"function"==typeof c?c.observable?b=c.observable:(b=c("observable"),
  c.observable=b):b="@@observable",b}var e=(this||self,a("8"));return b.getSymbolObservable=d,b.$$observable=d(e.root),c.exports}),a.registerDynamic("9",["8","36","16"],!0,function(a,b,c){"use strict";var d=(this||self,a("8")),e=a("36"),f=a("16"),g=function(){function a(a){this._isScalar=!1,a&&(this._subscribe=a)}return a.prototype.lift=function(b){var c=new a;return c.source=this,c.operator=b,c},a.prototype.subscribe=function(a,b,c){var d=this.operator,f=e.toSubscriber(a,b,c);if(d?d.call(f,this):f.add(this._subscribe(f)),f.syncErrorThrowable&&(f.syncErrorThrowable=!1,f.syncErrorThrown))throw f.syncErrorValue;return f},a.prototype.forEach=function(a,b){var c=this;if(b||(d.root.Rx&&d.root.Rx.config&&d.root.Rx.config.Promise?b=d.root.Rx.config.Promise:d.root.Promise&&(b=d.root.Promise)),!b)throw new Error("no Promise impl found");return new b(function(b,d){var e=c.subscribe(function(b){if(e)try{a(b)}catch(a){d(a),e.unsubscribe()}else a(b)},d,b)})},a.prototype._subscribe=function(a){return this.source.subscribe(a)},a.prototype[f.$$observable]=function(){return this},a.create=function(b){return new a(b)},a}();return b.Observable=g,c.exports}),a.registerDynamic("12",[],!0,function(a,b,c){"use strict";this||self;return b.isArray=Array.isArray||function(a){return a&&"number"==typeof a.length},c.exports}),a.registerDynamic("37",[],!0,function(a,b,c){"use strict";function d(a){return null!=a&&"object"==typeof a}this||self;return b.isObject=d,c.exports}),a.registerDynamic("38",[],!0,function(a,b,c){"use strict";function d(a){return"function"==typeof a}this||self;return b.isFunction=d,c.exports}),a.registerDynamic("39",["3a"],!0,function(a,b,c){"use strict";function d(){try{return f.apply(this,arguments)}catch(a){return g.errorObject.e=a,g.errorObject}}function e(a){return f=a,d}var f,g=(this||self,a("3a"));return b.tryCatch=e,c.exports}),a.registerDynamic("3a",[],!0,function(a,b,c){"use strict";this||self;return b.errorObject={e:{}},c.exports}),a.registerDynamic("3b",[],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=function(a){function b(b){a.call(this),this.errors=b;var c=Error.call(this,b?b.length+" errors occurred during unsubscription:\n  "+b.map(function(a,b){return b+1+") "+a.toString()}).join("\n  "):"");this.name=c.name="UnsubscriptionError",this.stack=c.stack,this.message=c.message}return d(b,a),b}(Error);return b.UnsubscriptionError=e,c.exports}),a.registerDynamic("33",["12","37","38","39","3a","3b"],!0,function(a,b,c){"use strict";var d=(this||self,a("12")),e=a("37"),f=a("38"),g=a("39"),h=a("3a"),i=a("3b"),j=function(){function a(a){this.closed=!1,a&&(this._unsubscribe=a)}return a.prototype.unsubscribe=function(){var a,b=!1;if(!this.closed){this.closed=!0;var c=this,j=c._unsubscribe,k=c._subscriptions;if(this._subscriptions=null,f.isFunction(j)){var l=g.tryCatch(j).call(this);l===h.errorObject&&(b=!0,(a=a||[]).push(h.errorObject.e))}if(d.isArray(k))for(var m=-1,n=k.length;++m<n;){var o=k[m];if(e.isObject(o)){var l=g.tryCatch(o.unsubscribe).call(o);if(l===h.errorObject){b=!0,a=a||[];var p=h.errorObject.e;p instanceof i.UnsubscriptionError?a=a.concat(p.errors):a.push(p)}}}if(b)throw new i.UnsubscriptionError(a)}},a.prototype.add=function(b){if(!b||b===a.EMPTY)return a.EMPTY;if(b===this)return this;var c=b;switch(typeof b){case"function":c=new a(b);case"object":if(c.closed||"function"!=typeof c.unsubscribe)break;this.closed?c.unsubscribe():(this._subscriptions||(this._subscriptions=[])).push(c);break;default:throw new Error("unrecognized teardown "+b+" added to Subscription.")}return c},a.prototype.remove=function(b){if(null!=b&&b!==this&&b!==a.EMPTY){var c=this._subscriptions;if(c){var d=c.indexOf(b);d!==-1&&c.splice(d,1)}}},a.EMPTY=function(a){return a.closed=!0,a}(new a),a}();return b.Subscription=j,c.exports}),a.registerDynamic("3c",[],!0,function(a,b,c){"use strict";this||self;return b.empty={closed:!0,next:function(a){},error:function(a){throw a},complete:function(){}},c.exports}),a.registerDynamic("8",[],!0,function(a,b,c){"use strict";var d=this||self,e={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1};b.root=e[typeof self]&&self||e[typeof window]&&window;var f=e[typeof d]&&d;return!f||f.global!==f&&f.window!==f||(b.root=f),c.exports}),a.registerDynamic("34",["8"],!0,function(a,b,c){"use strict";var d=(this||self,a("8")),e=d.root.Symbol;return b.$$rxSubscriber="function"==typeof e&&"function"==typeof e.for?e.for("rxSubscriber"):"@@rxSubscriber",c.exports}),a.registerDynamic("10",["38","33","3c","34"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),e=a("38"),f=a("33"),g=a("3c"),h=a("34"),i=function(a){function b(c,d,e){switch(a.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=g.empty;break;case 1:if(!c){this.destination=g.empty;break}if("object"==typeof c){c instanceof b?(this.destination=c,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new j(this,c));break}default:this.syncErrorThrowable=!0,this.destination=new j(this,c,d,e)}}return d(b,a),b.prototype[h.$$rxSubscriber]=function(){return this},b.create=function(a,c,d){var e=new b(a,c,d);return e.syncErrorThrowable=!1,e},b.prototype.next=function(a){this.isStopped||this._next(a)},b.prototype.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))},b.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},b.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,a.prototype.unsubscribe.call(this))},b.prototype._next=function(a){this.destination.next(a)},b.prototype._error=function(a){this.destination.error(a),this.unsubscribe()},b.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},b}(f.Subscription);b.Subscriber=i;var j=function(a){function b(b,c,d,f){a.call(this),this._parent=b;var g,h=this;e.isFunction(c)?g=c:c&&(h=c,g=c.next,d=c.error,f=c.complete,e.isFunction(h.unsubscribe)&&this.add(h.unsubscribe.bind(h)),h.unsubscribe=this.unsubscribe.bind(this)),this._context=h,this._next=g,this._error=d,this._complete=f}return d(b,a),b.prototype.next=function(a){if(!this.isStopped&&this._next){var b=this._parent;b.syncErrorThrowable?this.__tryOrSetError(b,this._next,a)&&this.unsubscribe():this.__tryOrUnsub(this._next,a)}},b.prototype.error=function(a){if(!this.isStopped){var b=this._parent;if(this._error)b.syncErrorThrowable?(this.__tryOrSetError(b,this._error,a),this.unsubscribe()):(this.__tryOrUnsub(this._error,a),this.unsubscribe());else{if(!b.syncErrorThrowable)throw this.unsubscribe(),a;b.syncErrorValue=a,b.syncErrorThrown=!0,this.unsubscribe()}}},b.prototype.complete=function(){if(!this.isStopped){var a=this._parent;this._complete?a.syncErrorThrowable?(this.__tryOrSetError(a,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},b.prototype.__tryOrUnsub=function(a,b){try{a.call(this._context,b)}catch(a){throw this.unsubscribe(),a}},b.prototype.__tryOrSetError=function(a,b,c){try{b.call(this._context,c)}catch(b){return a.syncErrorValue=b,a.syncErrorThrown=!0,!0}return!1},b.prototype._unsubscribe=function(){var a=this._parent;this._context=null,this._parent=null,a.unsubscribe()},b}(i);return c.exports}),a.registerDynamic("2e",["10"],!0,function(a,b,c){"use strict";function d(a,b){if("function"!=typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new g(a,b))}var e=(this||self,this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=a("10");b.map=d;var g=function(){function a(a,b){this.project=a,this.thisArg=b}return a.prototype.call=function(a,b){return b._subscribe(new h(a,this.project,this.thisArg))},a}();b.MapOperator=g;var h=function(a){function b(b,c,d){a.call(this,b),this.project=c,this.count=0,this.thisArg=d||this}return e(b,a),b.prototype._next=function(a){var b;try{b=this.project.call(this.thisArg,a,this.count++)}catch(a){return void this.destination.error(a)}this.destination.next(b)},b}(f.Subscriber);return c.exports}),a.registerDynamic("3d",["9","2e"],!0,function(a,b,c){"use strict";var d=(this||self,a("9")),e=a("2e");return d.Observable.prototype.map=e.map,c.exports}),a.registerDynamic("31",["3","35","3d"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=f<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(f<3?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g}),e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=a("3"),g=a("35");a("3d");var h=function(){function a(a){var b=this;this.name="Home page",a.get("/users").map(function(a){return a.json()}).subscribe(function(a){return b.users=a})}return a=d([f.Component({selector:"my-home",templateUrl:"components/home/home.component.html",styleUrls:["components/home/home.component.css"]}),e("design:paramtypes",[g.Http])],a)}();return b.HomeComponent=h,c.exports}),a.registerDynamic("3e",["3","5","35","6","2f","30","31"],!0,function(a,b,c){"use strict";var d=(this||self,this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=f<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(f<3?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g}),e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=a("3"),g=a("5"),h=a("35"),i=a("6"),j=a("2f"),k=a("30"),l=a("31"),m=function(){function a(){}return a=d([f.NgModule({imports:[g.BrowserModule,h.HttpModule,h.JsonpModule,k.routing],declarations:[i.AppComponent,j.AboutComponent,l.HomeComponent],bootstrap:[i.AppComponent]}),e("design:paramtypes",[])],a)}();return b.AppModule=m,c.exports}),a.registerDynamic("1",["4","3e"],!0,function(a,b,c){"use strict";var d=(this||self,a("4")),e=a("3e"),f=d.platformBrowserDynamic();return f.bootstrapModule(e.AppModule),c.exports})})(function(a){"function"==typeof define&&define.amd?define([],a):"object"==typeof module&&module.exports&&"function"==typeof require?module.exports=a():a()});