ng2-adal
Version:
Use Azure AD Library - ADAL in Angular 4 & 2. For Angular 4, use latest version 1.x.x. For Angular 2 use 0.3.1 version.
2 lines • 297 kB
JavaScript
"bundle";System.registerDynamic("ng2-adal/services.js",["./services/adal.service","./services/authHttp.service"],!0,function(a,b,c){"use strict";this||self;Object.defineProperty(b,"__esModule",{value:!0});var d=a("./services/adal.service");b.AdalService=d.AdalService;var e=a("./services/authHttp.service");b.AuthHttp=e.AuthHttp}),System.registerDynamic("ng2-adal/modules/adal.module.js",["@angular/core","./../services/adal.service"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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});Object.defineProperty(b,"__esModule",{value:!0});var e=a("@angular/core"),f=a("./../services/adal.service"),g=function(){function a(){}return a=d([e.NgModule({imports:[],exports:[],declarations:[],providers:[f.AdalService]})],a)}();b.AdalModule=g}),function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("@angular/core")):System.registerDynamic("@angular/common/bundles/common.umd.js",["@angular/core"],!1,function(a,c,d){return"function"==typeof b?b.call(c,c,a("@angular/core")):b})}(0,function(a,b){"use strict";function c(a,b){function c(){this.constructor=a}I(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}function d(a,b){return a&&b.startsWith(a)?b.substring(a.length):b}function e(a){return a.replace(/\/index.html$/,"")}function f(a,b,c){var d="="+a;if(b.indexOf(d)>-1)return d;if(d=c.getPluralCategory(a),b.indexOf(d)>-1)return d;if(b.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+a+'"')}function g(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;switch(a.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===c?S.One:S.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return c===Math.floor(c)&&c>=0&&c<=1?S.One:S.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===e||1===c?S.One:S.Other;case"ar":return 0===c?S.Zero:1===c?S.One:2===c?S.Two:c%100===Math.floor(c%100)&&c%100>=3&&c%100<=10?S.Few:c%100===Math.floor(c%100)&&c%100>=11&&c%100<=99?S.Many:S.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?S.One:S.Other;case"be":return c%10==1&&c%100!=11?S.One:c%10===Math.floor(c%10)&&c%10>=2&&c%10<=4&&!(c%100>=12&&c%100<=14)?S.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?S.Many:S.Other;case"br":return c%10==1&&c%100!=11&&c%100!=71&&c%100!=91?S.One:c%10==2&&c%100!=12&&c%100!=72&&c%100!=92?S.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)?S.Few:0!==c&&c%1e6==0?S.Many:S.Other;case"bs":case"hr":case"sr":return 0===f&&e%10==1&&e%100!=11||g%10==1&&g%100!=11?S.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)?S.Few:S.Other;case"cs":case"sk":return 1===e&&0===f?S.One:e===Math.floor(e)&&e>=2&&e<=4&&0===f?S.Few:0!==f?S.Many:S.Other;case"cy":return 0===c?S.Zero:1===c?S.One:2===c?S.Two:3===c?S.Few:6===c?S.Many:S.Other;case"da":return 1===c||0!==h&&(0===e||1===e)?S.One:S.Other;case"dsb":case"hsb":return 0===f&&e%100==1||g%100==1?S.One:0===f&&e%100==2||g%100==2?S.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?S.Few:S.Other;case"ff":case"fr":case"hy":case"kab":return 0===e||1===e?S.One:S.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?S.One:S.Other;case"ga":return 1===c?S.One:2===c?S.Two:c===Math.floor(c)&&c>=3&&c<=6?S.Few:c===Math.floor(c)&&c>=7&&c<=10?S.Many:S.Other;case"gd":return 1===c||11===c?S.One:2===c||12===c?S.Two:c===Math.floor(c)&&(c>=3&&c<=10||c>=13&&c<=19)?S.Few:S.Other;case"gv":return 0===f&&e%10==1?S.One:0===f&&e%10==2?S.Two:0!==f||e%100!=0&&e%100!=20&&e%100!=40&&e%100!=60&&e%100!=80?0!==f?S.Many:S.Other:S.Few;case"he":return 1===e&&0===f?S.One:2===e&&0===f?S.Two:0!==f||c>=0&&c<=10||c%10!=0?S.Other:S.Many;case"is":return 0===h&&e%10==1&&e%100!=11||0!==h?S.One:S.Other;case"ksh":return 0===c?S.Zero:1===c?S.One:S.Other;case"kw":case"naq":case"se":case"smn":return 1===c?S.One:2===c?S.Two:S.Other;case"lag":return 0===c?S.Zero:0!==e&&1!==e||0===c?S.Other:S.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)?S.Few:0!==g?S.Many:S.Other:S.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?S.Zero:c%10==1&&c%100!=11||2===f&&g%10==1&&g%100!=11||2!==f&&g%10==1?S.One:S.Other;case"mk":return 0===f&&e%10==1||g%10==1?S.One:S.Other;case"mt":return 1===c?S.One:0===c||c%100===Math.floor(c%100)&&c%100>=2&&c%100<=10?S.Few:c%100===Math.floor(c%100)&&c%100>=11&&c%100<=19?S.Many:S.Other;case"pl":return 1===e&&0===f?S.One:0===f&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?S.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?S.Many:S.Other;case"pt":return c===Math.floor(c)&&c>=0&&c<=2&&2!==c?S.One:S.Other;case"ro":return 1===e&&0===f?S.One:0!==f||0===c||1!==c&&c%100===Math.floor(c%100)&&c%100>=1&&c%100<=19?S.Few:S.Other;case"ru":case"uk":return 0===f&&e%10==1&&e%100!=11?S.One:0===f&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?S.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?S.Many:S.Other;case"shi":return 0===e||1===c?S.One:c===Math.floor(c)&&c>=2&&c<=10?S.Few:S.Other;case"si":return 0===c||1===c||0===e&&1===g?S.One:S.Other;case"sl":return 0===f&&e%100==1?S.One:0===f&&e%100==2?S.Two:0===f&&e%100===Math.floor(e%100)&&e%100>=3&&e%100<=4||0!==f?S.Few:S.Other;case"tzm":return c===Math.floor(c)&&c>=0&&c<=1||c===Math.floor(c)&&c>=11&&c<=99?S.One:S.Other;default:return S.Other}}function h(a,b){b=encodeURIComponent(b);for(var c=0,d=a.split(";");c<d.length;c++){var e=d[c],f=e.indexOf("="),g=-1==f?[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 i(a){return a.name||typeof a}function j(a,c){return Error("InvalidPipeArgument: '"+c+"' for pipe '"+b.ɵstringify(a)+"'")}function k(a){return a?a[0].toUpperCase()+a.substr(1).toLowerCase():a}function l(a){return function(b,c){var d=a(b,c);return 1==d.length?"0"+d:d}}function m(a){return function(b,c){return a(b,c).split(" ")[1]}}function n(a){return function(b,c){return a(b,c).split(" ")[0]}}function o(a,b,c){return new Intl.DateTimeFormat(b,c).format(a).replace(/[\u200e\u200f]/g,"")}function p(a){var b={hour:"2-digit",hour12:!1,timeZoneName:a};return function(a,c){var d=o(a,c,b);return d?d.substring(3):""}}function q(a,b){return a.hour12=b,a}function r(a,b){var c={};return c[a]=2===b?"2-digit":"numeric",c}function s(a,b){var c={};return c[a]=b<4?b>1?"short":"narrow":"long",c}function t(a){return a.reduce(function(a,b){return Object.assign({},a,b)},{})}function u(a){return function(b,c){return o(b,c,a)}}function v(a,b,c){var d=ta[a];if(d)return d(b,c);var e=a,f=va.get(e);if(!f){f=[];var g=void 0;sa.exec(a);for(var h=a;h;)g=sa.exec(h),g?(f=f.concat(g.slice(1)),h=f.pop()):(f.push(h),h=null);va.set(e,f)}return f.reduce(function(a,d){var e=ua[d];return a+(e?e(b,c):w(d))},"")}function w(a){return"''"===a?"'":a.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function x(a,b,c,d,e,f,g){if(void 0===f&&(f=null),void 0===g&&(g=!1),null==c)return null;if("number"!=typeof(c="string"==typeof c&&z(c)?+c:c))throw j(a,c);var h=void 0,i=void 0,k=void 0;if(d!==qa.Currency&&(h=1,i=0,k=3),e){var l=e.match(xa);if(null===l)throw new Error(e+" is not a valid digit info for number pipes");null!=l[1]&&(h=y(l[1])),null!=l[3]&&(i=y(l[3])),null!=l[5]&&(k=y(l[5]))}return ra.format(c,b,d,{minimumIntegerDigits:h,minimumFractionDigits:i,maximumFractionDigits:k,currency:f,currencyAsSymbol:g})}function y(a){var b=parseInt(a);if(isNaN(b))throw new Error("Invalid integer literal when parsing "+a);return b}function z(a){return!isNaN(a-parseFloat(a))}function A(a){return null==a||""===a}function B(a){return a instanceof Date&&!isNaN(a.valueOf())}function C(a){var b=new Date(0),c=0,d=0,e=a[8]?b.setUTCFullYear:b.setFullYear,f=a[8]?b.setUTCHours:b.setHours;a[9]&&(c=D(a[9]+a[10]),d=D(a[9]+a[11])),e.call(b,D(a[1]),D(a[2])-1,D(a[3]));var g=D(a[4]||"0")-c,h=D(a[5]||"0")-d,i=D(a[6]||"0"),j=Math.round(1e3*parseFloat("0."+(a[7]||0)));return f.call(b,g,h,i,j),b}function D(a){return parseInt(a,10)}function E(a){return a===Ma}function F(a){return a===Na}function G(a){return a===Oa}function H(a){return a===Pa}var I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},J=function(){function a(){}return a.prototype.getBaseHrefFromDOM=function(){},a.prototype.onPopState=function(a){},a.prototype.onHashChange=function(a){},a.prototype.pathname=function(){},a.prototype.search=function(){},a.prototype.hash=function(){},a.prototype.replaceState=function(a,b,c){},a.prototype.pushState=function(a,b,c){},a.prototype.forward=function(){},a.prototype.back=function(){},a}(),K=new b.InjectionToken("Location Initialized"),L=function(){function a(){}return a.prototype.path=function(a){},a.prototype.prepareExternalUrl=function(a){},a.prototype.pushState=function(a,b,c,d){},a.prototype.replaceState=function(a,b,c,d){},a.prototype.forward=function(){},a.prototype.back=function(){},a.prototype.onPopState=function(a){},a.prototype.getBaseHref=function(){},a}(),M=new b.InjectionToken("appBaseHref"),N=function(){function a(c){var d=this;this._subject=new b.EventEmitter,this._platformStrategy=c;var f=this._platformStrategy.getBaseHref();this._baseHref=a.stripTrailingSlash(e(f)),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(d(this._baseHref,e(b)))},a.prototype.prepareExternalUrl=function(a){return a&&"/"!==a[0]&&(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 this._subject.subscribe({next:a,error:b,complete:c})},a.normalizeQueryParams=function(a){return a&&"?"!==a[0]?"?"+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){var b=a.match(/#|\?|$/),c=b&&b.index||a.length,d=c-("/"===a[c-1]?1:0);return a.slice(0,d)+a.slice(c)},a}();N.decorators=[{type:b.Injectable}],N.ctorParameters=function(){return[{type:L}]};var O=function(a){function b(b,c){var d=a.call(this)||this;return d._platformLocation=b,d._baseHref="",null!=c&&(d._baseHref=c),d}return c(b,a),b.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},b.prototype.getBaseHref=function(){return this._baseHref},b.prototype.path=function(a){void 0===a&&(a=!1);var b=this._platformLocation.hash;return null==b&&(b="#"),b.length>0?b.substring(1):b},b.prototype.prepareExternalUrl=function(a){var b=N.joinWithSlash(this._baseHref,a);return b.length>0?"#"+b:b},b.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+N.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.pushState(a,b,e)},b.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+N.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.replaceState(a,b,e)},b.prototype.forward=function(){this._platformLocation.forward()},b.prototype.back=function(){this._platformLocation.back()},b}(L);O.decorators=[{type:b.Injectable}],O.ctorParameters=function(){return[{type:J},{type:void 0,decorators:[{type:b.Optional},{type:b.Inject,args:[M]}]}]};var P=function(a){function b(b,c){var d=a.call(this)||this;if(d._platformLocation=b,null==c&&(c=d._platformLocation.getBaseHrefFromDOM()),null==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.");return d._baseHref=c,d}return c(b,a),b.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},b.prototype.getBaseHref=function(){return this._baseHref},b.prototype.prepareExternalUrl=function(a){return N.joinWithSlash(this._baseHref,a)},b.prototype.path=function(a){void 0===a&&(a=!1);var b=this._platformLocation.pathname+N.normalizeQueryParams(this._platformLocation.search),c=this._platformLocation.hash;return c&&a?""+b+c:b},b.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+N.normalizeQueryParams(d));this._platformLocation.pushState(a,b,e)},b.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+N.normalizeQueryParams(d));this._platformLocation.replaceState(a,b,e)},b.prototype.forward=function(){this._platformLocation.forward()},b.prototype.back=function(){this._platformLocation.back()},b}(L);P.decorators=[{type:b.Injectable}],P.ctorParameters=function(){return[{type:J},{type:void 0,decorators:[{type:b.Optional},{type:b.Inject,args:[M]}]}]};var Q=function(){function a(){}return a.prototype.getPluralCategory=function(a){},a}(),R=function(a){function b(b){var c=a.call(this)||this;return c.locale=b,c}return c(b,a),b.prototype.getPluralCategory=function(a){switch(g(this.locale,a)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.Many:return"many";default:return"other"}},b}(Q);R.decorators=[{type:b.Injectable}],R.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]};var S={};S.Zero=0,S.One=1,S.Two=2,S.Few=3,S.Many=4,S.Other=5,S[S.Zero]="Zero",S[S.One]="One",S[S.Two]="Two",S[S.Few]="Few",S[S.Many]="Many",S[S.Other]="Other";var T=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&&(b.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},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 b=this._keyValueDiffer.diff(this._rawClass);b&&this._applyKeyValueChanges(b)}},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 c=this;a.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+b.ɵstringify(a.item));c._toggleClass(a.item,!0)}),a.forEachRemovedItem(function(a){return c._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(d){null!=a[d]&&c._toggleClass(d,!b)}))},a.prototype._toggleClass=function(a,b){var c=this;(a=a.trim())&&a.split(/\s+/g).forEach(function(a){c._renderer.setElementClass(c._ngEl.nativeElement,a,!!b)})},a}();T.decorators=[{type:b.Directive,args:[{selector:"[ngClass]"}]}],T.ctorParameters=function(){return[{type:b.IterableDiffers},{type:b.KeyValueDiffers},{type:b.ElementRef},{type:b.Renderer}]},T.propDecorators={klass:[{type:b.Input,args:["class"]}],ngClass:[{type:b.Input}]};var U=function(){function a(a){this._viewContainerRef=a,this._componentRef=null,this._moduleRef=null}return a.prototype.ngOnChanges=function(a){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var c=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(a.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var d=c.get(b.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(d.injector)}else this._moduleRef=null;var e=this._moduleRef?this._moduleRef.componentFactoryResolver:c.get(b.ComponentFactoryResolver),f=e.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(f,this._viewContainerRef.length,c,this.ngComponentOutletContent)}},a.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},a}();U.decorators=[{type:b.Directive,args:[{selector:"[ngComponentOutlet]"}]}],U.ctorParameters=function(){return[{type:b.ViewContainerRef}]},U.propDecorators={ngComponentOutlet:[{type:b.Input}],ngComponentOutletInjector:[{type:b.Input}],ngComponentOutletContent:[{type:b.Input}],ngComponentOutletNgModuleFactory:[{type:b.Input}]};var V=function(){function a(a,b,c,d){this.$implicit=a,this.ngForOf=b,this.index=c,this.count=d}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){this._viewContainer=a,this._template=b,this._differs=c,this._differ=null}return Object.defineProperty(a.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(a){b.isDevMode()&&null!=a&&"function"!=typeof a&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(a)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=a},enumerable:!0,configurable:!0}),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.ngForTrackBy)}catch(a){throw new Error("Cannot find a differ supporting object '"+b+"' of type '"+i(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,b.ngForOf,-1,-1),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){b._viewContainer.get(a.currentIndex).context.$implicit=a.item})},a.prototype._perViewChange=function(a,b){a.context.$implicit=b.item},a}();W.decorators=[{type:b.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],W.ctorParameters=function(){return[{type:b.ViewContainerRef},{type:b.TemplateRef},{type:b.IterableDiffers}]},W.propDecorators={ngForOf:[{type:b.Input}],ngForTrackBy:[{type:b.Input}],ngForTemplate:[{type:b.Input}]};var X=function(){function a(a,b){this.record=a,this.view=b}return a}(),Y=W,Z=function(){function a(a,b){this._viewContainer=a,this._context=new $,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=b}return Object.defineProperty(a.prototype,"ngIf",{set:function(a){this._context.$implicit=this._context.ngIf=a,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngIfThen",{set:function(a){this._thenTemplateRef=a,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngIfElse",{set:function(a){this._elseTemplateRef=a,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),a.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},a}();Z.decorators=[{type:b.Directive,args:[{selector:"[ngIf]"}]}],Z.ctorParameters=function(){return[{type:b.ViewContainerRef},{type:b.TemplateRef}]},Z.propDecorators={ngIf:[{type:b.Input}],ngIfThen:[{type:b.Input}],ngIfElse:[{type:b.Input}]};var $=function(){function a(){this.$implicit=null,this.ngIf=null}return a}(),_=function(){function a(a,b){this._viewContainerRef=a,this._templateRef=b,this._created=!1}return a.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},a.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},a.prototype.enforceState=function(a){a&&!this._created?this.create():!a&&this._created&&this.destroy()},a}(),aa=function(){function a(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(a.prototype,"ngSwitch",{set:function(a){this._ngSwitch=a,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),a.prototype._addCase=function(){return this._caseCount++},a.prototype._addDefault=function(a){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(a)},a.prototype._matchCase=function(a){var b=a==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||b,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),b},a.prototype._updateDefaultCases=function(a){if(this._defaultViews&&a!==this._defaultUsed){this._defaultUsed=a;for(var b=0;b<this._defaultViews.length;b++){this._defaultViews[b].enforceState(a)}}},a}();aa.decorators=[{type:b.Directive,args:[{selector:"[ngSwitch]"}]}],aa.ctorParameters=function(){return[]},aa.propDecorators={ngSwitch:[{type:b.Input}]};var ba=function(){function a(a,b,c){this.ngSwitch=c,c._addCase(),this._view=new _(a,b)}return a.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},a}();ba.decorators=[{type:b.Directive,args:[{selector:"[ngSwitchCase]"}]}],ba.ctorParameters=function(){return[{type:b.ViewContainerRef},{type:b.TemplateRef},{type:aa,decorators:[{type:b.Host}]}]},ba.propDecorators={ngSwitchCase:[{type:b.Input}]};var ca=function(){function a(a,b,c){c._addDefault(new _(a,b))}return a}();ca.decorators=[{type:b.Directive,args:[{selector:"[ngSwitchDefault]"}]}],ca.ctorParameters=function(){return[{type:b.ViewContainerRef},{type:b.TemplateRef},{type:aa,decorators:[{type:b.Host}]}]};var da=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=f(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}();da.decorators=[{type:b.Directive,args:[{selector:"[ngPlural]"}]}],da.ctorParameters=function(){return[{type:Q}]},da.propDecorators={ngPlural:[{type:b.Input}]};var ea=function(){function a(a,b,c,d){this.value=a;var e=!isNaN(Number(a));d.addCase(e?"="+a:a,new _(c,b))}return a}();ea.decorators=[{type:b.Directive,args:[{selector:"[ngPluralCase]"}]}],ea.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Attribute,args:["ngPluralCase"]}]},{type:b.TemplateRef},{type:b.ViewContainerRef},{type:da,decorators:[{type:b.Host}]}]};var fa=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())},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=null!=b&&e?""+b+e:b,this._renderer.setElementStyle(this._ngEl.nativeElement,d,b)},a}();fa.decorators=[{type:b.Directive,args:[{selector:"[ngStyle]"}]}],fa.ctorParameters=function(){return[{type:b.KeyValueDiffers},{type:b.ElementRef},{type:b.Renderer}]},fa.propDecorators={ngStyle:[{type:b.Input}]};var ga=function(){function a(a){this._viewContainerRef=a}return Object.defineProperty(a.prototype,"ngOutletContext",{set:function(a){this.ngTemplateOutletContext=a},enumerable:!0,configurable:!0}),a.prototype.ngOnChanges=function(a){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},a}();ga.decorators=[{type:b.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],ga.ctorParameters=function(){return[{type:b.ViewContainerRef}]},ga.propDecorators={ngTemplateOutletContext:[{type:b.Input}],ngTemplateOutlet:[{type:b.Input}],ngOutletContext:[{type:b.Input}]};var ha=[T,U,W,Z,ga,fa,aa,ba,ca,da,ea],ia=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}(),ja=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}(),ka=new ja,la=new ia,ma=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(c){if(b.ɵisPromise(c))return ka;if(b.ɵisObservable(c))return la;throw j(a,c)},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}();ma.decorators=[{type:b.Pipe,args:[{name:"async",pure:!1}]}],ma.ctorParameters=function(){return[{type:b.ChangeDetectorRef}]};var na=function(){function a(){}return a.prototype.transform=function(b){if(!b)return b;if("string"!=typeof b)throw j(a,b);return b.toLowerCase()},a}();na.decorators=[{type:b.Pipe,args:[{name:"lowercase"}]}],na.ctorParameters=function(){return[]};var oa=function(){function a(){}return a.prototype.transform=function(b){if(!b)return b;if("string"!=typeof b)throw j(a,b);return b.split(/\b/g).map(function(a){return k(a)}).join("")},a}();oa.decorators=[{type:b.Pipe,args:[{name:"titlecase"}]}],oa.ctorParameters=function(){return[]};var pa=function(){function a(){}return a.prototype.transform=function(b){if(!b)return b;if("string"!=typeof b)throw j(a,b);return b.toUpperCase()},a}();pa.decorators=[{type:b.Pipe,args:[{name:"uppercase"}]}],pa.ctorParameters=function(){return[]};var qa={};qa.Decimal=0,qa.Percent=1,qa.Currency=2,qa[qa.Decimal]="Decimal",qa[qa.Percent]="Percent",qa[qa.Currency]="Currency";var ra=function(){function a(){}return a.format=function(a,b,c,d){void 0===d&&(d={});var e=d.minimumIntegerDigits,f=d.minimumFractionDigits,g=d.maximumFractionDigits,h=d.currency,i=d.currencyAsSymbol,j=void 0!==i&&i,k={minimumIntegerDigits:e,minimumFractionDigits:f,maximumFractionDigits:g,style:qa[c].toLowerCase()};return c==qa.Currency&&(k.currency="string"==typeof h?h:void 0,k.currencyDisplay=j?"symbol":"code"),new Intl.NumberFormat(b,k).format(a)},a}(),sa=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,ta={yMMMdjms:u(t([r("year",1),s("month",3),r("day",1),r("hour",1),r("minute",1),r("second",1)])),yMdjm:u(t([r("year",1),r("month",1),r("day",1),r("hour",1),r("minute",1)])),yMMMMEEEEd:u(t([r("year",1),s("month",4),s("weekday",4),r("day",1)])),yMMMMd:u(t([r("year",1),s("month",4),r("day",1)])),yMMMd:u(t([r("year",1),s("month",3),r("day",1)])),yMd:u(t([r("year",1),r("month",1),r("day",1)])),jms:u(t([r("hour",1),r("second",1),r("minute",1)])),jm:u(t([r("hour",1),r("minute",1)]))},ua={yyyy:u(r("year",4)),yy:u(r("year",2)),y:u(r("year",1)),MMMM:u(s("month",4)),MMM:u(s("month",3)),MM:u(r("month",2)),M:u(r("month",1)),LLLL:u(s("month",4)),L:u(s("month",1)),dd:u(r("day",2)),d:u(r("day",1)),HH:l(n(u(q(r("hour",2),!1)))),H:n(u(q(r("hour",1),!1))),hh:l(n(u(q(r("hour",2),!0)))),h:n(u(q(r("hour",1),!0))),jj:u(r("hour",2)),j:u(r("hour",1)),mm:l(u(r("minute",2))),m:u(r("minute",1)),ss:l(u(r("second",2))),s:u(r("second",1)),sss:u(r("second",3)),EEEE:u(s("weekday",4)),EEE:u(s("weekday",3)),EE:u(s("weekday",2)),E:u(s("weekday",1)),a:m(u(q(r("hour",1),!0))),Z:p("short"),z:p("long"),ww:u({}),w:u({}),G:u(s("era",1)),GG:u(s("era",2)),GGG:u(s("era",3)),GGGG:u(s("era",4))},va=new Map,wa=function(){function a(){}return a.format=function(a,b,c){return v(c,a,b)},a}(),xa=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ya=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c){return x(a,this._locale,b,qa.Decimal,c)},a}();ya.decorators=[{type:b.Pipe,args:[{name:"number"}]}],ya.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]};var za=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c){return x(a,this._locale,b,qa.Percent,c)},a}();za.decorators=[{type:b.Pipe,args:[{name:"percent"}]}],za.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]};var Aa=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),x(a,this._locale,b,qa.Currency,e,c,d)},a}();Aa.decorators=[{type:b.Pipe,args:[{name:"currency"}]}],Aa.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]};var Ba=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ca=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c){void 0===c&&(c="mediumDate");var d;if(A(b)||b!==b)return null;if("string"==typeof b&&(b=b.trim()),B(b))d=b;else if(z(b))d=new Date(parseFloat(b));else if("string"==typeof b&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(b)){var e=b.split("-").map(function(a){return parseInt(a,10)}),f=e[0],g=e[1],h=e[2];d=new Date(f,g-1,h)}else d=new Date(b);if(!B(d)){var i=void 0;if("string"!=typeof b||!(i=b.match(Ba)))throw j(a,b);d=C(i)}return wa.format(d,this._locale,a._ALIASES[c]||c)},a}();Ca._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Ca.decorators=[{type:b.Pipe,args:[{name:"date",pure:!0}]}],Ca.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]};var Da=/#/g,Ea=function(){function a(a){this._localization=a}return a.prototype.transform=function(b,c){if(null==b)return"";if("object"!=typeof c||null===c)throw j(a,c);return c[f(b,Object.keys(c),this._localization)].replace(Da,b.toString())},a}();Ea.decorators=[{type:b.Pipe,args:[{name:"i18nPlural",pure:!0}]}],Ea.ctorParameters=function(){return[{type:Q}]};var Fa=function(){function a(){}return a.prototype.transform=function(b,c){if(null==b)return"";if("object"!=typeof c||"string"!=typeof b)throw j(a,c);return c.hasOwnProperty(b)?c[b]:c.hasOwnProperty("other")?c.other:""},a}();Fa.decorators=[{type:b.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Fa.ctorParameters=function(){return[]};var Ga=function(){function a(){}return a.prototype.transform=function(a){return JSON.stringify(a,null,2)},a}();Ga.decorators=[{type:b.Pipe,args:[{name:"json",pure:!1}]}],Ga.ctorParameters=function(){return[]};var Ha=function(){function a(){}return a.prototype.transform=function(b,c,d){if(null==b)return b;if(!this.supports(b))throw j(a,b);return b.slice(c,d)},a.prototype.supports=function(a){return"string"==typeof a||Array.isArray(a)},a}();Ha.decorators=[{type:b.Pipe,args:[{name:"slice",pure:!1}]}],Ha.ctorParameters=function(){return[]};var Ia=[ma,pa,na,Ga,Ha,ya,za,oa,Aa,Ca,Ea,Fa],Ja=function(){function a(){}return a}();Ja.decorators=[{type:b.NgModule,args:[{declarations:[ha,Ia],exports:[ha,Ia],providers:[{provide:Q,useClass:R}]}]}],Ja.ctorParameters=function(){return[]};var Ka=function(){function a(){}return a}();Ka.decorators=[{type:b.NgModule,args:[{declarations:[],exports:[]}]}],Ka.ctorParameters=function(){return[]};var La=new b.InjectionToken("DocumentToken"),Ma="browser",Na="server",Oa="browserWorkerApp",Pa="browserWorkerUi",Qa=new b.Version("4.4.1");a.NgLocaleLocalization=R,a.NgLocalization=Q,a.ɵparseCookieValue=h,a.CommonModule=Ja,a.DeprecatedI18NPipesModule=Ka,a.NgClass=T,a.NgFor=Y,a.NgForOf=W,a.NgForOfContext=V,a.NgIf=Z,a.NgIfContext=$,a.NgPlural=da,a.NgPluralCase=ea,a.NgStyle=fa,a.NgSwitch=aa,a.NgSwitchCase=ba,a.NgSwitchDefault=ca,a.NgTemplateOutlet=ga,a.NgComponentOutlet=U,a.DOCUMENT=La,a.AsyncPipe=ma,a.DatePipe=Ca,a.I18nPluralPipe=Ea,a.I18nSelectPipe=Fa,a.JsonPipe=Ga,a.LowerCasePipe=na,a.CurrencyPipe=Aa,a.DecimalPipe=ya,a.PercentPipe=za,a.SlicePipe=Ha,a.UpperCasePipe=pa,a.TitleCasePipe=oa,a.ɵPLATFORM_BROWSER_ID=Ma,a.ɵPLATFORM_SERVER_ID=Na,a.ɵPLATFORM_WORKER_APP_ID=Oa,a.ɵPLATFORM_WORKER_UI_ID=Pa,a.isPlatformBrowser=E,a.isPlatformServer=F,a.isPlatformWorkerApp=G,a.isPlatformWorkerUi=H,a.VERSION=Qa,a.PlatformLocation=J,a.LOCATION_INITIALIZED=K,a.LocationStrategy=L,a.APP_BASE_HREF=M,a.HashLocationStrategy=O,a.PathLocationStrategy=P,a.Location=N,a.ɵa=ha,a.ɵb=Ia,Object.defineProperty(a,"__esModule",{value:!0})}),function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("@angular/common"),require("@angular/core")):System.registerDynamic("@angular/platform-browser/bundles/platform-browser.umd.js",["@angular/common","@angular/core"],!1,function(a,c,d){return"function"==typeof b?b.call(c,c,a("@angular/common"),a("@angular/core")):b})}(0,function(a,b,c){"use strict";function d(a,b){function c(){this.constructor=a}K(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}function e(){return L}function f(a){L||(L=a)}function g(){return U||(U=document.querySelector("base"))?U.getAttribute("href"):null}function h(a){return S||(S=document.createElement("a")),S.setAttribute("href",a),"/"===S.pathname.charAt(0)?S.pathname:"/"+S.pathname}function i(){return!!window.history.pushState}function j(a,b,d){return function(){d.get(c.ApplicationInitStatus).donePromise.then(function(){var c=e();Array.prototype.slice.apply(c.querySelectorAll(b,"style[ng-transition]")).filter(function(b){return c.getAttribute(b,"ng-transition")===a}).forEach(function(a){return c.remove(a)})})}}function k(a,b){aa||(c.ɵglobal.ng=aa=c.ɵglobal.ng||{}),aa[a]=b}function l(a){return c.getDebugNode(a)}function m(a,b){var c=(a||[]).concat(b||[]);return k(ca,l),k(da,Object.assign({},ba,n(c||[]))),function(){return l}}function n(a){return a.reduce(function(a,b){return a[b.name]=b.token,a},{})}function o(a){return pa.replace(ma,a)}function p(a){return oa.replace(ma,a)}function q(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];Array.isArray(e)?q(a,e,c):(e=e.replace(ma,a),c.push(e))}return c}function r(a){return function(b){!1===a(b)&&(b.preventDefault(),b.returnValue=!1)}}function s(a,b){if(a.charCodeAt(0)===sa)throw new Error("Found the synthetic "+b+" "+a+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function t(a){return a=String(a),a.match(Da)||a.match(Ea)?a:(c.isDevMode()&&e().log("WARNING: sanitizing unsafe URL value "+a+" (see http://g.co/ng/security#xss)"),"unsafe:"+a)}function u(a){return a=String(a),a.split(",").map(function(a){return t(a.trim())}).join(", ")}function v(){if(Fa)return Fa;Ga=e();var a=Ga.createElement("template");if("content"in a)return a;var b=Ga.createHtmlDocument();if(null==(Fa=Ga.querySelector(b,"body"))){var c=Ga.createElement("html",b);Fa=Ga.createElement("body",b),Ga.appendChild(c,Fa),Ga.appendChild(b,c)}return Fa}function w(a){for(var b={},c=0,d=a.split(",");c<d.length;c++){b[d[c]]=!0}return b}function x(){for(var a=[],b=0;b<arguments.length;b++)a[b]=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 y(a,b){if(b&&Ga.contains(a,b))throw new Error("Failed to sanitize html because the element is clobbered: "+Ga.getOuterHTML(a));return b}function z(a){return a.replace(/&/g,"&").replace(Ta,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(Ua,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function A(a){Ga.attributeMap(a).forEach(function(b,c){"xmlns:ns1"!==c&&0!==c.indexOf("ns1:")||Ga.removeAttribute(a,c)});for(var b=0,c=Ga.childNodesAsList(a);b<c.length;b++){var d=c[b];Ga.isElementNode(d)&&A(d)}}function B(a,b){try{var d=v(),e=b?String(b):"",f=5,g=e;do{if(0===f)throw new Error("Failed to sanitize html because the input is unstable");f--,e=g,Ga.setInnerHTML(d,e),a.documentMode&&A(d),g=Ga.getInnerHTML(d)}while(e!==g);for(var h=new Sa,i=h.sanitizeChildren(Ga.getTemplateContent(d)||d),j=Ga.getTemplateContent(d)||d,k=0,l=Ga.childNodesAsList(j);k<l.length;k++){var m=l[k];Ga.removeChild(j,m)}return c.isDevMode()&&h.sanitizedSomething&&Ga.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),i}catch(a){throw Fa=null,a}}function C(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 D(a){if(!(a=String(a).trim()))return"";var b=a.match(ab);return b&&t(b[1])===b[1]||a.match(_a)&&C(a)?a:(c.isDevMode()&&e().log("WARNING: sanitizing unsafe style value "+a+" (see http://g.co/ng/security#xss)."),"unsafe")}function E(){T.makeCurrent(),$.init()}function F(){return new c.ErrorHandler}function G(){return document}function H(a){return k(qb,new pb(a)),a}function I(){k(qb,null)}var J,K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},L=null,M=function(){function a(){this.resourceLoaderType=null}return a.prototype.hasProperty=function(a,b){},a.prototype.setProperty=function(a,b,c){},a.prototype.getProperty=function(a,b){},a.prototype.invoke=function(a,b,c){},a.prototype.logError=function(a){},a.prototype.log=function(a){},a.prototype.logGroup=function(a){},a.prototype.logGroupEnd=function(){},Object.defineProperty(a.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(a){this._attrToPropMap=a},enumerable:!0,configurable:!0}),a.prototype.contains=function(a,b){},a.prototype.parse=function(a){},a.prototype.querySelector=function(a,b){},a.prototype.querySelectorAll=function(a,b){},a.prototype.on=function(a,b,c){},a.prototype.onAndCancel=function(a,b,c){},a.prototype.dispatchEvent=function(a,b){},a.prototype.createMouseEvent=function(a){},a.prototype.createEvent=function(a){},a.prototype.preventDefault=function(a){},a.prototype.isPrevented=function(a){},a.prototype.getInnerHTML=function(a){},a.prototype.getTemplateContent=function(a){},a.prototype.getOuterHTML=function(a){},a.prototype.nodeName=function(a){},a.prototype.nodeValue=function(a){},a.prototype.type=function(a){},a.prototype.content=function(a){},a.prototype.firstChild=function(a){},a.prototype.nextSibling=function(a){},a.prototype.parentElement=function(a){},a.prototype.childNodes=function(a){},a.prototype.childNodesAsList=function(a){},a.prototype.clearNodes=function(a){},a.prototype.appendChild=function(a,b){},a.prototype.removeChild=function(a,b){},a.prototype.replaceChild=function(a,b,c){},a.prototype.remove=function(a){},a.prototype.insertBefore=function(a,b,c){},a.prototype.insertAllBefore=function(a,b,c){},a.prototype.insertAfter=function(a,b,c){},a.prototype.setInnerHTML=function(a,b){},a.prototype.getText=function(a){},a.prototype.setText=function(a,b){},a.prototype.getValue=function(a){},a.prototype.setValue=function(a,b){},a.prototype.getChecked=function(a){},a.prototype.setChecked=function(a,b){},a.prototype.createComment=function(a){},a.prototype.createTemplate=function(a){},a.prototype.createElement=function(a,b){},a.prototype.createElementNS=function(a,b,c){},a.prototype.createTextNode=function(a,b){},a.prototype.createScriptTag=function(a,b,c){},a.prototype.createStyleElement=function(a,b){},a.prototype.createShadowRoot=function(a){},a.prototype.getShadowRoot=function(a){},a.prototype.getHost=function(a){},a.prototype.getDistributedNodes=function(a){},a.prototype.clone=function(a){},a.prototype.getElementsByClassName=function(a,b){},a.prototype.getElementsByTagName=function(a,b){},a.prototype.classList=function(a){},a.prototype.addClass=function(a,b){},a.prototype.removeClass=function(a,b){},a.prototype.hasClass=function(a,b){},a.prototype.setStyle=function(a,b,c){},a.prototype.removeStyle=function(a,b){},a.prototype.getStyle=function(a,b){},a.prototype.hasStyle=function(a,b,c){},a.prototype.tagName=function(a){},a.prototype.attributeMap=function(a){},a.prototype.hasAttribute=function(a,b){},a.prototype.hasAttributeNS=function(a,b,c){},a.prototype.getAttribute=function(a,b){},a.prototype.getAttributeNS=function(a,b,c){},a.prototype.setAttribute=function(a,b,c){},a.prototype.setAttributeNS=function(a,b,c,d){},a.prototype.removeAttribute=function(a,b){},a.prototype.removeAttributeNS=function(a,b,c){},a.prototype.templateAwareRoot=function(a){},a.prototype.createHtmlDocument=function(){},a.prototype.getBoundingClientRect=function(a){},a.prototype.getTitle=function(a){},a.prototype.setTitle=function(a,b){},a.prototype.elementMatches=function(a,b){},a.prototype.isTemplateElement=function(a){},a.prototype.isTextNode=function(a){},a.prototype.isCommentNode=function(a){},a.prototype.isElementNode=function(a){},a.prototype.hasShadowRoot=function(a){},a.prototype.isShadowRoot=function(a){},a.prototype.importIntoDoc=function(a){},a.prototype.adoptNode=function(a){},a.prototype.getHref=function(a){},a.prototype.getEventKey=function(a){},a.prototype.resolveAndSetHref=function(a,b,c){},a.prototype.supportsDOMEvents=function(){},a.prototype.supportsNativeShadowDOM=function(){},a.prototype.getGlobalEventTarget=function(a,b){},a.prototype.getHistory=function(){},a.prototype.getLocation=function(){},a.prototype.getBaseHref=function(a){},a.prototype.resetBaseElement=function(){},a.prototype.getUserAgent=function(){},a.prototype.setData=function(a,b,c){},a.prototype.getComputedStyle=function(a){},a.prototype.getData=function(a,b){},a.prototype.supportsWebAnimation=function(){},a.prototype.performanceNow=function(){},a.prototype.getAnimationPrefix=function(){},a.prototype.getTransitionEnd=function(){},a.prototype.supportsAnimation=function(){},a.prototype.supportsCookies=function(){},a.prototype.getCookie=function(a){},a.prototype.setCookie=function(a,b){},a}(),N=function(a){function b(){var b=a.call(this)||this;b._animationPrefix=null,b._transitionEnd=null;try{var c=b.createElement("div",document);if(null!=b.getStyle(c,"animationName"))b._animationPrefix="";else for(var d=["Webkit","Moz","O","ms"],e=0;e<d.length;e++)if(null!=b.getStyle(c,d[e]+"AnimationName")){b._animationPrefix="-"+d[e].toLowerCase()+"-";break}var f={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(f).forEach(function(a){null!=b.getStyle(c,a)&&(b._transitionEnd=f[a])})}catch(a){b._animationPrefix=null,b._transitionEnd=null}return b}return d(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 document.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 null!=this._animationPrefix&&null!=this._transitionEnd},b}(M),O={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},P=3,Q={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},R={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"};c.ɵglobal.Node&&(J=c.ɵglobal.Node.prototype.contains||function(a){return!!(16&this.compareDocumentPosition(a))});var S,T=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}return d(c,a),c.prototype.parse=function(a){throw new Error("parse not implemented")},c.makeCurrent=function(){f(new c)},c.prototype.hasProperty=function(a,b){return b in a},c.prototype.setProperty=function(a,b,c){a[b]=c},c.prototype.getProperty=function(a,b){return a[b]},c.prototype.invoke=function(a,b,c){a[b].apply(a,c)},c.prototype.logError=function(a){window.console&&(console.error?console.error(a):console.log(a))},c.prototype.log=function(a){window.console&&window.console.log&&window.console.log(a)},c.prototype.logGroup=function(a){window.console&&window.console.group&&window.console.group(a)},c.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(c.prototype,"attrToPropMap",{get:function(){return O},enumerable:!0,configurable:!0}),c.prototype.contains=function(a,b){return J.call(a,b)},c.prototype.querySelector=function(a,b){return a.querySelector(b)},c.prototype.querySelectorAll=function(a,b){return a.querySelectorAll(b)},c.prototype.on=function(a,b,c){a.addEventListener(b,c,!1)},c.prototype.onAndCancel=function(a,b,c){return a.addEventListener(b,c,!1),function(){a.removeEventListener(b,c,!1)}},c.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)},c.prototype.createMouseEvent=function(a){var b=document.createEvent("MouseEvent");return b.initEvent(a,!0,!0),b},c.prototype.createEvent=function(a){var b=document.createEvent("Event");return b.initEvent(a,!0,!0),b},c.prototype.preventDefault=function(a){a.preventDefault(),a.returnValue=!1},c.prototype.isPrevented=function(a){return a.defaultPrevented||null!=a.returnValue&&!a.returnValue},c.prototype.getInnerHTML=function(a){return a.innerHTML},c.prototype.getTemplateContent=function(a){return"content"in a&&a instanceof HTMLTemplateElement?a.content:null},c.prototype.getOuterHTML=function(a){return a.outerHTML},c.prototype.nodeName=function(a){return a.nodeName},c.prototype.nodeValue=function(a){return a.nodeValue},c.prototype.type=function(a){return a.type},c.prototype.content=function(a){return this.hasProperty(a,"content")?a.content:a},c.prototype.firstChild=function(a){return a.firstChild},c.prototype.nextSibling=function(a){return a.nextSibling},c.prototype.parentElement=function(a){return a.parentNode},c.prototype.childNodes=function(a){return a.childNodes},c.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},c.prototype.clearNodes=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},c.prototype.appendChild=function(a,b){a.appendChild(b)},c.prototype.removeChild=function(a,b){a.removeChild(b)},c.prototype.replaceChild=function(a,b,c){a.replaceChild(b,c)},c.prototype.remove=function(a){return a.parentNode&&a.parentNode.removeChild(a),a},c.prototype.insertBefore=function(a,b,c){a.insertBefore(c,b)},c.prototype.insertAllBefore=function(a,b,c){c.forEach(function(c){return a.insertBefore(c,b)})},c.prototype.insertAfter=function(a,b,c){a.insertBefore(c,b.nextSibling)},c.prototype.setInnerHTML=function(a,b){a.innerHTML=b},c.prototype.getText=function(a){return a.textContent},c.prototype.setText=function(a,b){a.textContent=b},c.prototype.getValue=function(a){return a.value},c.prototype.setValue=function(a,b){a.value=b},c.prototype.getChecked=function(a){return a.checked},c.prototype.setChecked=function(a,b){a.checked=b},c.prototype.createComment=function(a){return document.createComment(a)},c.prototype.createTemplate=function(a){var b=document.createElement("template");return b.innerHTML=a,b},c.prototype.createElement=function(a,b){return void 0===b&&(b=document),b.createElement(a)},c.prototype.createElementNS=function(a,b,c){return void 0===c&&(c=document),c.createElementNS(a,b)},c.prototype.createTextNode=function(a,b){return void 0===b&&(b=document),b.createTextNode(a)},c.prototype.createScriptTag=function(a,b,c){void 0===c&&(c=document);var d=c.createElement("SCRIPT");return d.setAttribute(a,b),d},c.prototype.createStyleElement=function(a,b){void 0===b&&(b=document);var c=b.createElement("style");return this.appendChild(c,this.createTextNode(a)),c},c.prototype.createShadowRoot=function(a){return a.createShadowRoot()},c.prototype.getShadowRoot=function(a){return a.shadowRoot},c.prototype.getHost=function(a){return a.host},c.prototype.clone=function(a){return a.cloneNode(!0)},c.prototype.getElementsByClassName=function(a,b){return a.getElementsByClassName(b)},c.prototype.getElementsByTagName=function(a,b){return a.getElementsByTagName(b)},c.prototype.classList=function(a){return Array.prototype.slice.call(a.classList,0)},c.prototype.addClass=function(a,b){a.classList.add(b)},c.prototype.removeClass=function(a,b){a.classList.remove(b)},c.prototype.hasClass=function(a,b){return a.classList.contains(b)},c.prototype.setStyle=function(a,b,c){a.style[b]=c},c.prototype.removeStyle=function(a,b){a.style[b]=""},c.prototype.getStyle=function(a,b){return a.style[b]},c.prototype.hasStyle=function(a,b,c){var d=this.getStyle(a,b)||"";return c?d==c:d.length>0},c.prototype.tagName=function(a){return a.tagName},c.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},c.prototype.hasAttribute=function(a,b){return a.hasAttribute(b)},c.prototype.hasAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)},c.prototype.getAttribute=function(a,b){return a.getAttribute(b)},c.prototype.getAttributeNS=function(a,b,c){return a.getAttributeNS(b,c)},c.prototype.setAttribute=function(a,b,c){a.setAttribute(b,c)},c.prototype.setAttributeNS=function(a,b,c,d){a.setAttributeNS(b,c,d)},c.prototype.removeAttribute=function(a,b){a.removeAttribute(b)},c.prototype.removeAttributeNS=function(a,b,c){a.removeAttributeNS(b,c)},c.prototype.templateAwareRoot=function(a){return this.isTemplateElement(a)?this.content(a):a},c.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},c.prototype.getBoundingClientRect=function(a){try{return a.getBoundingClientRect()}catch(a){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},c.prototype.getTitle=function(a){return document.title},c.prototype.setTitle=function(a,b){document.title=b||""},c.prototype.elementMatches=function(a,b){return a instanceof HTMLElement&&(a.matches&&a.matches(b)||a.msMatchesSelector&&a.msMatchesSelector(b)||a.webkitMatchesSelector&&a.webkitMatchesSelector(b))},c.prototype.isTemplateElement=function(a){return a instanceof HTMLElement&&"TEMPLATE"==a.nodeName},c.prototype.isTextNode=function(a){return a.nodeType===Node.TEXT_NODE},c.prototype.isCommentNode=function(a){return a.nodeType===Node.COMMENT_NODE},c.prototype.isElementNode=function(a){return a.nodeType===Node.ELEMENT_NODE},c.prototype.hasShadowRoot=function(a){return null!=a.shadowRoot&&a instanceof HTMLElement},c.prototype.isShadowRoot=function(a){return a instanceof DocumentFragment},c.prototype.importIntoDoc=function(a){return document.importNode(this.templateAwareRoot(a),!0)},c.prototype.adoptNode=function(a){return document.adoptNode(a)},c.prototype.getHref=function(a){return a.href},c.prototype.getEventKey=function(a){var b=a.key;if(null==b){if(null==(b=a.keyIdentifier))return"Unidentified";b.startsWith("U+")&&(b=String.fromCharCode(parseInt(b.substring(2),16)),a.location===P&&R.hasOwnProperty(b)&&(b=R[b]))}return Q[b]||b},c.prototype.getGlobalEventTarget=function(a,b){return"window"===b?window:"document"===b?document:"body"===b?document.body:null},c.prototype.getHistory=function(){return window.history},c.prototype.getLocation=function(){return window.location},c.prototype.getBaseHref=function(a){var b=g();return null==b?null:h(b)},c.prototype.resetBaseElement=function(){U=null},c.prototype.getUserAgent=function(){return window.navigator.userAgent},c.prototype.setData=function(a,b,c){this.setAttribute(a,"data-"+b,c)},c.prototype.getData=function(a,b){return this.getAttribute(a,"data-"+b)},c.prototype.getComputedStyle=function(a){return getComputedStyle(a)},c.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},c.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},c.prototype.supportsCookies=function(){return!0},c.prototype.getCookie=function(a){return b.ɵparseCookieValue(document.cookie,a)},c.prototype.setCookie=function(a,b){document.cookie=encodeURIComponent(a)+"="+encodeURIComponent(b)},c}(N),U=null,V=b.DOCUMENT,W=function(a){function b(b){var c=a.call(this)||this;return c._doc=b,c._init(),c}return d(b,a),b.prototype._init=function(){this._location=e().getLocation(),this._history=e().getHistory()},Object.defineProperty(b.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),b.prototype.getBaseHrefFromDOM=function(){return e().getBaseHref(this._doc)},b.prototype.onPopState=function(a){e().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",a,!1)},b.prototype.onHashChange=function(a){e().getGlobalEventTarget(this._doc,"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){i()?this._history.pushState(a,b,c):this._location.hash=c},b.prototype.replaceState=function(a,b,c){i()?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}(b.PlatformLocation);W.decorators=[{type:c.Injectable}],W.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[V]}]}]};var X=function(){function a(a){this._doc=a,this._dom=e()}return a.prototype.addTag=function(a,b){return void 0===b&&(b=!1),a?this._getOrCreateElement(a,b):null},a.prototype.addTags=function(a,b){var c=this;return void 0===b&&(b=!1),a?a.reduce(function(a,d){return d&&a.push(c._getOrCreateElement(d,b)),a},[]):[]},a.prototype.getTag=function(a){return a?this._dom.querySelector(this._doc,"meta["+a+"]"):null},a.prototype.getTags=function(a){if(!a)return[];var b=this._dom.querySelectorAll(this._doc,"meta["+a+"]");return b?[].slice.call(b):[]},a.prototype.updateTag=function(a,b){if(!a)return null;b=b||this._parseSelector(a);var c=this.getTag(b);return c?this._setMetaElementAttributes(a,c):this._getOrCreateElement(a,!0)},a.prototype.removeTag=function(a){this.removeTagElement(this.getTag(a))},a.prototype.removeTagElement=function(a){a&&this._dom.remove(a)},a.prototype._getOrCreateElement=function(a,b){if(void 0===b&&(b=!1),!b){var c=this._parseSelector(a),d=this.getTag(c);if(d&&this._containsAttributes(a,d))return d}var e=this._dom.createElement("meta");this._setMetaElementAttributes(a,e);var f=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(f,e),e},a.prototype._setMetaElementAttributes=function(a,b){var c=this;return Object.keys(a).forEach(function(d){return c._dom.setAttribute(b,d,a[d])}),b},a.prototype._parseSelector=function(a){var b=a.name?"name":"property";return b+'="'+a[b]+'"'},a.prototype._containsAttributes=function(a,b){var c=this;return Object.keys(a).every(function(d){return c._dom.getAttribute(b,d)===a[d]})},a}();X.decorators=[{type:c.Injectable}],X.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[V]}]}]};var Y=new c.InjectionToken("TRANSITION_ID"),Z=[{provide:c.APP_INITIALIZER,useFactory:j,deps:[Y,V,c.Injector],multi:!0}],$=function(){function a(){}return a.init=function(){c.setTestabilityGetter(new a)},a.prototype.addToWindow=function(a){c.ɵglobal.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},c.ɵglobal.getAllAngularTestabilities=function(){return a.getAllTestabilities()},c.ɵglobal.getAllAngularRootElements=function(){return a.getAllRootElements()};var b=function(a){var b=c.ɵglobal.getAllAngularTestabilities(),d=b.length,e=!1,f=function(b){e=e||b,0==--d&&a(e)};b.forEach(function(a){a.whenStable(f)})};c.ɵglobal.frameworkStabilizers||(c.ɵglobal.frameworkStabilizers=[]),c.ɵglobal.frameworkStabilizers.push(b)},a.prototype.findTestabilityInTree=function(a,b,c){if(null==b)return null;var d=a.getTestability(b);return null!=d?d:c?e().isShadowRoot(b)?this.findTestabilityInTree(a,e().getHost(b),!0):this.findTestabilityInTree(a,e().parentElement(b),!0):null},a}(),_=function(){function a(a){this._doc=a}return a.prototype.getTitle=function(){return e().getTitle(this._doc)},a.prototype.setTitle=function(a){e().setTitle(this._doc,a)},a}();_.decorators=[{type:c.Injectable}],_.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[V]}]}]};var aa,ba={ApplicationRef:c.ApplicationRef,NgZone:c.NgZone},ca="probe",da="coreTokens",ea=function(){function a(a,b){this.name=a,this.token=b}return a}(),fa=[{provide:c.APP_INITIALIZER,useFactory:m,deps:[[ea,new c.Optional],[c.NgProbeToken,new c.Optional]],multi:!0}],ga=new c.InjectionToken("EventManagerPlugins"),ha=function(){function a(a,b){var c=this;this._zone=b,this._eventNameToPlugin=new Map,a.forEach(function(a){return a.manager=c}),this._plugins=a.slice().reverse()}return a.prototype.addEventListener=function(a,b,c){return this._findPluginFor(b).addEventListener(a,b,c)},a.prototype.addGlobalEventListener=function(a,b,c){return this._findPluginFor(b).addGlobalEventListener(a,b,c)},a.prototype.getZone=function(){return this._zone},a.prototype._findPluginFor=function(a){var b=this._eventNameToPlugin.get(a);if(b)return b;for(var c=this._plugins,d=0;d<c.length;d++){var e=c[d];if(e.supports(a))return this._eventNameToPlugin.set(a,e),e}throw new Error("No event manager plugin found for event "+a)},a}();ha.decorators=[{type:c.Injectable}],ha.ctorParameters=function(){return[{type:Array,decorators:[{type:c.Inject,args:[ga]}]},{type:c.NgZone}]};var ia=function(){function a(a){this._doc=a}return a.prototype.supports=function(a){},a.prototype.addEventListener=function(a,b,c){},a.prototype.addGlobalEventListener=function(a,b,c){var d=e().getGlobalEventTarget(this._doc,a);if(!d)throw new Error("Unsupported event target "+d+" for event "+b);return this.addEventListener(d,b,c)},a}(),ja=function(){function a(){this._stylesSet=new Set}return a.prototype.addStyles=function(a){var b=this,c=new Set;a.forEach(function(a){b._stylesSet.has(a)||(b._stylesSet.add(a),c.add(a))}),this.onStylesAdded(c)},a.prototype.onStylesAdded=function(a){},a.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},a}();ja.decorators=[{type:c.Injectable}],ja.ctorParameters=function(){return[]};var ka=function(a){function b(b){var c=a.call(this)||this;return c._doc=b,c._hostNodes=new Set,c._styleNodes=new Set,c._hostNodes.add(b.head),c}return d(b,a),b.prototype._addStylesToHost=function(a,b){var c=this;a.forEach(function(a){var d=c._doc.createElement("style");d.textContent=a,c._styleNodes.add(b.appendChild(d))})},b.prototype.addHost=function(a){this._addStylesToHost(this._stylesSet,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){return b._addStylesToHost(a,c)})},b.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(a){return e().remove(a)})},b}(ja);ka.decorators=[{type:c.Injectable}],ka.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[V]}]}]};var la={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ma=/%COMP%/g,na="%COMP%",oa="_nghost-"+na,pa="_ngcontent-"+na,qa=function(){function a(a,b){this.eventManager=a,this.sharedStylesHost=b,this.rendererByCompId=new Map,this.defaultRenderer=new ra(a)}return a.prototype.createRenderer=function(a,b){if(!a||!b)return this.defaultRenderer;switch(b.encapsulation){case c.ViewEncapsulation.Emulated:var d=this.rendererByCompId.get(b.id);return d||(d=new ta(this.eventManager,this.sharedStylesHost,b),this.rendererByCompId.set(b.id,d)),d.applyToHost(a),d;case c.ViewEncapsulation.Native:return new ua(this.eventManager,this.sharedStylesHost,a,b);default:if(!this.rendererByCompId.has(b.id)){var e=q(b.id,b.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(b.id,this.defaultRenderer)}return this.defaultRenderer}},a.prototype.begin=function(){},a.prototype.end=function(){},a}();qa.decorators=[{type:c.Injectable}],qa.ctorParameters=function(){return[{type:ha},{type:ka}]};var ra=function(){function a(a){this.eventManager=a,this.data=Object.create(null)}return a.prototype.destroy=function(){},a.prototype.createElement=function(a,b){return b?document.createElementNS(la[b],a):document.createElement(a)},a.prototype.createComment=function(a){return document.createComment(a)},a.prototype.createText=function(a){return document.createTextNode(a)},a.prototype.appendChild=function(a,b){a.appendChild(b)},a.prototype.insertBefore=function(a,b,c){a&&a.insertBefore(b,c)},a.prototype.removeChild=function(a,b){a&&a.removeChild(b)},a.prototype.selectRootElement=function(a){var b="string"==typeof a?document.querySelector(a):a;if(!b)throw new Error('The selector "'+a+'" did not match any elements');return b.textContent="",b},a.prototype.parentNode=function(a){return a.parentNode},a.prototype.nextSibling=function(a){return a.nextSibling},a.prototype.setAttribute=function(a,b,c,d){if(d){b=d+":"+b;var e=la[d];e?a.setAttributeNS(e,b,c):a.setAttribute(b,c)}else a.setAttribute(b,c)},a.prototype.removeAttribute=function(a,b,c){if(c){var d=la[c];d?a.removeAttributeNS(d,b):a.removeAttribute(c+":"+b)}else a.removeAttribute(b)},a.prototype.addClass=function(a,b){a.classList.add(b)},a.prototype.removeClass=function(a,b){a.classList.remove(b)},a.prototype.setStyle=function(a,b,d,e){e&c.RendererStyleFlags2.DashCase?a.style.setProperty(b,d,e&c.RendererStyleFlags2.Important?"important":""):a.style[b]=d},a.prototype.removeStyle=function(a,b,d){d&c.RendererStyleFlags2.DashCase?a.style.removeProperty(b):a.style[b]=""},a.prototype.setProperty=function(a,b,c){s(b,"property"),a[b]=c},a.prototype.setValue=function(a,b){a.nodeValue=b},a.prototype.listen=function(a,b,c){return s(b,"listener"),"string"==typeof a?this.eventManager.addGlobalEventListener(a,b,r(c)):this.eventManager.addEventListener(a,b,r(c))},a}(),sa="@".charCodeAt(0),ta=function(a){function b(b,c,d){var e=a.call(this,b)||this;e.component=d;var f=q(d.id,d.styles,[]);return c.addStyles(f),e.contentAttr=o(d.id),e.hostAttr=p(d.id),e}return d(b,a),b.prototype.applyToHost=function(b){a.prototype.setAttribute.call(this,b,this.hostAttr,"")},b.prototype.createElement=function(b,c){var d=a.prototype.createElement.call(this,b,c);return a.prototype.setAttribute.call(this,d,this.contentAttr,""),d},b}(ra),ua=function(a){function b(b,c,d,e){var f=a.call(this,b)||this;f.sharedStylesHost=c,f.hostEl=d,f.component=e,f.shadowRoot=d.createShadowRoot(),f.sharedStylesHost.addHost(f.shadowRoot);for(var g=q(e.id,e.styles,[]),h=0;h<g.length;h++){var i=document.createElement("style");i.textContent=g[h],f.shadowRoot.appendChild(i)}return f}return d(b,a),b.prototype.nodeOrShadowRoot=function(a){return a===this.hostEl?this.shadowRoot:a},b.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},b.prototype.appendChild=function(b,c){return a.prototype.appendChild.call(this,this.nodeOrShadowRoot(b),c)},b.prototype.insertBefore=function(b,c,d){return a.prototype.insertBefore.call(this,this.nodeOrShadowRoot(b),c,d)},b.prototype.removeChild=function(b,c){return a.prototype.removeChild.call(this,this.nodeOrShadowRoot(b),c)},b.prototype.parentNode=function(b){return this.nodeOrShadowRoot(a.prototype.parentNode.call(this,this.nodeOrShadowRoot(b)))},b}(ra),va=function(a){function b(b){return a.call(this,b)||this}return d(b,a),b.prototype.supports=function(a){return!0},b.prototype.addEventListener=function(a,b,c){return a.addEventListener(b,c,!1),function(){return a.removeEventListener(b,c,!1)}},b}(ia);va.decorators=[{type:c.Injectable}],va.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[V]}]}]};var wa={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},xa=new c.InjectionToken("HammerGestureConfig"),ya=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}();ya.decorators=[{type:c.Injectable}],ya.ctorParameters=function(){return[]};var za=function(a){function b(b,c){var d=a.call(this,b)||this;return d._config=c,d}return d(b,a),b.prototype.supports=function(a){if(!wa.hasOwnProperty(a.toLowerCase())&&!this.isCustomEvent(a))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+a+" 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(){return f.off(b,g)}})},b.prototype.isCustomEvent=function(a){return this._config.events.indexOf(a)>-1},b}(ia);za.decorators=[{type:c.Injectable}],za.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[V]}]},{type:ya,decorators:[{type:c.Inject,args:[xa]}]}]};var Aa=["alt","control","meta","shift"],Ba={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},Ca=function(a){function b(b){return a.call(this,b)||this}return d(b,a),b.prototype.supports=function(a){return null!=b.parseEventName(a)},b.prototype.addEventListener=function(a,c,d){var f=b.parseEventName(c),g=b.eventCallback(f.fullKey,d,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return e().onAndCancel(a,f.domEventName,g)})},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(Aa.forEach(function(a){var b=c.indexOf(a);b>-1&&(c.splice(b,1),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=e().getEventKey(a);return c=c.toLowerCase()," "===c?c="space":"."===c&&(c="dot"),Aa.forEach(function(d){if(d!=c){(0,Ba[d])(a)&&(b+=d+".")}}),b+=c},b.eventCallback=function(a,c,d){return function(e){b.getEventFullKey(e)===a&&d.runGuarded(function(){return c(e)})}},b._normalizeKey=function(a){switch(a){case"esc":return"escape";default:return a}},b}(ia);Ca.decorators=[{type:c.Injectable}],Ca.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[V]}]}]};var Da=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Ea=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Fa=null,Ga=null,Ha=w("area,br,col,hr,img,wbr"),Ia=w("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ja=w("rp,rt"),Ka=x(Ja,Ia),La=x(Ia,w("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")),Ma=x(Ja,w("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")),Na=x(Ha,La,Ma,Ka),Oa=w("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pa=w("srcset"),Qa=w("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"),Ra=x(Oa,Pa,Qa),Sa=function(){function a(){this.sanitizedSomething=!1,this.buf=[]}return a.prototype.sanitizeChildren=function(a){for(var b=a.firstChild;b;)if(Ga.isElementNode(b)?this.startElement(b):Ga.isTextNode(b)?this.chars(Ga.nodeValue(b)):this.sanitizedSomething=!0,Ga.firstChild(b))b=Ga.firstChild(b);else for(;b;){Ga.isElementNode(b)&&this.endElement(b);var c=y(b,Ga.nextSibling(b));if(c){b=c;break}b=y(b,Ga.parentElement(b))}return this.buf.join("")},a.prototype.startElement=function(a){var b=this,c=Ga.nodeName(a).toLowerCase();if(!Na.hasOwnProperty(c))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(c),Ga.attributeMap(a).forEach(function(a,c){var d=c.toLowerCase();if(!Ra.hasOwnProperty(d))return void(b.sanitizedSomething=!0);Oa[d]&&(a=t(a)),Pa[d]&&(a=u(a)),b.buf.push(" "),b.buf.push(c),b.buf.push('="'),b.buf.push(z(a)),b.buf.push('"')}),this.buf.push(">")},a.prototype.endElement=function(a){var b=Ga.nodeName(a).toLowerCase();Na.hasOwnProperty(b)&&!Ha.hasOwnProperty(b)&&(this.buf.push("</"),this.buf.push(b),this.buf.push(">"))},a.prototype.chars=function(a){this.buf.push(z(a))},a}(),Ta=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ua=/([^\#-~ |!])/g,Va="[-,.\"'%_!# a-zA-Z0-9]+",Wa="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",Xa="(?:rgb|hsl)a?",Ya="(?:repeating-)?(?:linear|radial)-gradient",Za="(?:calc|attr)",$a="\\([-0-9.%, #a-zA-Z]+\\)",_a=new RegExp("^("+Va+"|(?:"+Wa+"|"+Xa+"|"+Ya+"|"+Za+")"+$a+")$","g"),ab=/^url\(([^)]+)\)$/,bb=function(){function a(){}return a.prototype.sanitize=function(a,b){},a.prototype.bypassSecurityTrustHtml=function(a){},a.prototype.bypassSecurityTrustStyle=function(a){},a.prototype.bypassSecurityTrustScript=function(a){},a.prototype.bypassSecurityTrustUrl=function(a){},a.prototype.bypassSecurityTrustResourceUrl=function(a){},a}(),cb=function(a){function b(b){var c=a.call(this)||this;return c._doc=b,c}return d(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 eb?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"HTML"),B(this._doc,String(b)));case c.SecurityContext.STYLE:return b instanceof fb?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"Style"),D(b));case c.SecurityContext.SCRIPT:if(b instanceof gb)return b.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(b,"Script"),new Error("unsafe value used in a script context");case c.SecurityContext.URL:return b instanceof ib||b instanceof hb?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"URL"),t(String(b)));case c.SecurityContext.RESOURCE_URL:if(b instanceof ib)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 db)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 eb(a)},b.prototype.bypassSecurityTrustStyle=function(a){return new fb(a)},b.prototype.bypassSecurityTrustScript=function(a){return new gb(a)},b.prototype.bypassSecurityTrustUrl=function(a){return new hb(a)},b.prototype.bypassSecurityTrustResourceUrl=function(a){return new ib(a)},b}(bb);cb.decorators=[{type:c.Injectable}],cb.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[V]}]}]};var db=function(){function a(a){this.changingThisBreaksApplicationSecurity=a}return a.prototype.getTypeName=function(){},a.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},a}(),eb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return d(b,a),b.prototype.getTypeName=function(){return"HTML"},b}(db),fb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return d(b,a),b.prototype.getTypeName=function(){return"Style"},b}(db),gb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return d(b,a),b.prototype.getTypeName=function(){return"Script"},b}(db),hb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return d(b,a),b.prototype.getTypeName=function(){return"URL"},b}(db),ib=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return d(b,a),b.prototype.getTypeName=function(){return"ResourceURL"},b}(db),jb=[{provide:c.PLATFORM_ID,useValue:b.ɵPLATFORM_BROWSER_ID},{provide:c.PLATFORM_INITIALIZER,useValue:E,multi:!0},{provide:b.PlatformLocation,useClass:W},{provide:V,useFactory:G,deps:[]}],kb=[{provide:c.Sanitizer,useExisting:bb},{provide:bb,useClass:cb}],lb=c.createPlatformFactory(c.platformCore,"browser",jb),mb=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.withServerTransition=function(b){return{ngModule:a,providers:[{provide:c.APP_ID,useValue:b.appId},{provide:Y,useExisting:c.APP_ID},Z]}},a}();mb.decorators=[{type:c.NgModule,args:[{providers:[kb,{provide:c.ErrorHandler,useFactory:F,deps:[]},{provide:ga,useClass:va,multi:!0},{provide:ga,useClass:Ca,multi:!0},{provide:ga,useClass:za,multi:!0},{provide:xa,useClass:ya},qa,{provide:c.RendererFactory2,useExisting:qa},{provide:ja,useExisting:ka},ka,c.Testability,ha,fa,X,_],exports:[b.CommonModule,c.ApplicationModule]}]}],mb.ctorParameters=function(){return[{type:mb,decorators:[{type:c.Optional},{type:c.SkipSelf}]}]};var nb="undefined"!=typeof window&&window||{},ob=function(){function a(a,b){this.msPerTick=a,this.numTicks=b}return a}(),pb=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",d=null!=nb.console.profile;b&&d&&nb.console.profile(c);for(var f=e().performanceNow(),g=0;g<5||e().performanceNow()-f<500;)this.appRef.tick(),g++;var h=e().performanceNow();b&&d&&nb.console.profileEnd(c);var i=(h-f)/g;return nb.console.log("ran "+g+" change detection cycles"),nb.console.log(i.toFixed(2)+" ms per check"),new ob(i,g)},a}(),qb="profiler",rb=function(){function a(){}return a.all=function(){return function(a){return!0}},a.css=function(a){return function(b){return null!=b.nativeElement&&e().elementMatches(b.nativeElement,a)}},a.directive=function(a){return function(b){return-1!==b.providerTokens.indexOf(a)}},a}(),sb=new c.Version("4.4.1");a.BrowserModule=mb,a.platformBrowser=lb,a.Meta=X,a.Title=_,a.disableDebugTools=I,a.enableDebugTools=H,a.By=rb,a.NgProbeToken=ea,a.DOCUMENT=V,a.EVENT_MANAGER_PLUGINS=ga,a.EventManager=ha,a.HAMMER_GESTURE_CONFIG=xa,a.HammerGestureConfig=ya,a.DomSanitizer=bb,a.VERSION=sb,a.ɵBROWSER_SANITIZATION_PROVIDERS=kb,a.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=jb,a.ɵinitDomAdapter=E,a.ɵBrowserDomAdapter=T,a.ɵBrowserPlatformLocation=W,a.ɵTRANSITION_ID=Y,a.ɵBrowserGetTestability=$,a.ɵELEMENT_PROBE_PROVIDERS=fa,a.ɵDomAdapter=M,a.ɵgetDOM=e,a.ɵsetRootDomAdapter=f,a.ɵDomRendererFactory2=qa,a.ɵNAMESPACE_URIS=la,a.ɵflattenStyles=q,a.ɵshimContentAttribute=o,a.ɵshimHostAttribute=p,a.ɵDomEventsPlugin=va,a.ɵHammerGesturesPlugin=za,a.ɵKeyEventsPlugin=Ca,a.ɵDomSharedStylesHost=ka,a.ɵSharedStylesHost=ja,a.ɵb=G,a.ɵa=F,a.ɵh=N,a.ɵg=Z,a.ɵf=j,a.ɵc=m,a.ɵd=ia,a.ɵe=cb,Object.defineProperty(a,"__esModule",{value:!0})}),function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("@angular/core"),require("rxjs/Observable"),require("@angular/platform-browser")):System.registerDynamic("@angular/http/bundles/http.umd.js",["@angular/core","rxjs/Observable","@angular/platform-browser"],!1,function(a,c,d){return"function"==typeof b?b.call(c,c,a("@angular/core"),a("rxjs/Observable"),a("@angular/platform-browser")):b})}(0,function(a,b,c,d){"use strict";function e(a,b){function c(){this.constructor=a}r(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}function f(a){if("string"!=typeof a)return a;switch(a.toUpperCase()){case"GET":return t.Get;case"POST":return t.Post;case"PUT":return t.Put;case"DELETE":return t.Delete;case"OPTIONS":return t.Options;case"HEAD":return t.Head;case"PATCH":return t.Patch}throw new Error('Invalid request method. The method "'+a+'" is not supported.')}function g(a){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null}function h(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 i(a){void 0===a&&(a="");var b=new Map;if(a.length>0){a.split("&").forEach(function(a){var c=a.indexOf("="),d=-1==c?[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 j(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 k(){var a="object"==typeof window?window:{};return null===L&&(L=a[K]={}),L}function l(a){var b=new G;return Object.keys(a).forEach(function(c){var d=a[c];d&&Array.isArray(d)?d.forEach(function(a){return b.append(c,a.toString())}):b.append(c,d.toString())}),b}function m(a,b){return a.createConnection(b).response}function n(a,b,c,d){var e=a;return b?e.merge(new X({method:b.method||c,url:b.url||d,search:b.search,params:b.params,headers:b.headers,body:b.body,withCredentials:b.withCredentials,responseType:b.responseType})):e.merge(new X({method:c,url:d}))}function o(){return new V}function p(a,b){return new da(a,b)}function q(a,b){return new ea(a,b)}var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},s=function(){function a(){}return a.prototype.build=function(){return new XMLHttpRequest},a}();s.decorators=[{type:b.Injectable}],s.ctorParameters=function(){return[]};var t={};t.Get=0,t.Post=1,t.Put=2,t.Delete=3,t.Options=4,t.Head=5,t.Patch=6,t[t.Get]="Get",t[t.Post]="Post",t[t.Put]="Put",t[t.Delete]="Delete",t[t.Options]="Options",t[t.Head]="Head",t[t.Patch]="Patch";var u={};u.Unsent=0,u.Open=1,u.HeadersReceived=2,u.Loading=3,u.Done=4,u.Cancelled=5,u[u.Unsent]="Unsent",u[u.Open]="Open",u[u.HeadersReceived]="HeadersReceived",u[u.Loading]="Loading",u[u.Done]="Done",u[u.Cancelled]="Cancelled";var v={};v.Basic=0,v.Cors=1,v.Default=2,v.Error=3,v.Opaque=4,v[v.Basic]="Basic",v[v.Cors]="Cors",v[v.Default]="Default",v[v.Error]="Error",v[v.Opaque]="Opaque";var w={};w.NONE=0,w.JSON=1,w.FORM=2,w.FORM_DATA=3,w.TEXT=4,w.BLOB=5,w.ARRAY_BUFFER=6,w[w.NONE]="NONE",w[w.JSON]="JSON",w[w.FORM]="FORM",w[w.FORM_DATA]="FORM_DATA",w[w.TEXT]="TEXT",w[w.BLOB]="BLOB",w[w.ARRAY_BUFFER]="ARRAY_BUFFER";var x={};x.Text=0,x.Json=1,x.ArrayBuffer=2,x.Blob=3,x[x.Text]="Text",x[x.Json]="Json",x[x.ArrayBuffer]="ArrayBuffer",x[x.Blob]="Blob";var y=function(){function a(b){var c=this;if(this._headers=new Map,this._normalizedNames=new Map,b)return b instanceof a?void b.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 Array.from(this._normalizedNames.values())},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 Array.from(this._headers.values())},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: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}(),z=function(){function a(a){void 0===a&&(a={});var b=a.body,c=a.status,d=a.headers,e=a.statusText,f=a.type,g=a.url;this.body=null!=b?b:null,this.status=null!=c?c:null,this.headers=null!=d?d:null,this.statusText=null!=e?e:null,this.type=null!=f?f:null,this.url=null!=g?g:null}return a.prototype.merge=function(b){return new a({body:b&&null!=b.body?b.body:this.body,status:b&&null!=b.status?b.status:this.status,headers:b&&null!=b.headers?b.headers:this.headers,statusText:b&&null!=b.statusText?b.statusText:this.statusText,type:b&&null!=b.type?b.type:this.type,url:b&&null!=b.url?b.url:this.url})},a}(),A=function(a){function b(){return a.call(this,{status:200,statusText:"Ok",type:v.Default,headers:new y})||this}return e(b,a),b}(z);A.decorators=[{type:b.Injectable}],A.ctorParameters=function(){return[]};var B=function(){function a(){}return a.prototype.createConnection=function(a){},a}(),C=function(){function a(){}return a}(),D=function(){function a(){}return a.prototype.configureRequest=function(a){},a}(),E=function(a){return a>=200&&a<300},F=function(){function a(){}return a.prototype.encodeKey=function(a){return j(a)},a.prototype.encodeValue=function(a){return j(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=i(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(a){if(void 0===a&&(a="legacy"),this._body instanceof G)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(a){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+a)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},a.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:h(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=function(a){function b(b){var c=a.call(this)||this;return c._body=b.body,c.status=b.status,c.ok=c.status>=200&&c.status<=299,c.statusText=b.statusText,c.headers=b.headers,c.type=b.type,c.url=b.url,c}return e(b,a),b.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},b}(H),J=0,K="__ng_jsonp__",L=null,M=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"+J++},a.prototype.requestCallback=function(a){return K+"."+a+".finished"},a.prototype.exposeConnection=function(a,b){k()[a]=b},a.prototype.removeConnection=function(a){k()[a]=null},a.prototype.send=function(a){document.body.appendChild(a)},a.prototype.cleanup=function(a){a.parentNode&&a.parentNode.removeChild(a)},a}();M.decorators=[{type:b.Injectable}],M.ctorParameters=function(){return[]};var N="JSONP injected script did not invoke callback.",O="JSONP requests must use GET request method.",P=function(){function a(){}return a.prototype.finished=function(a){},a}(),Q=function(a){function b(b,d,e){var f=a.call(this)||this;if(f._dom=d,f.baseResponseOptions=e,f._finished=!1,b.method!==t.Get)throw new TypeError(O);return f.request=b,f.response=new c.Observable(function(a){f.readyState=u.Loading;var c=f._id=d.nextRequestID();d.exposeConnection(c,f);var g=d.requestCallback(f._id),h=b.url;h.indexOf("=JSONP_CALLBACK&")>-1?h=h.replace("=JSONP_CALLBACK&","="+g+"&"):h.lastIndexOf("=JSONP_CALLBACK")===h.length-"=JSONP_CALLBACK".length&&(h=h.substring(0,h.length-"=JSONP_CALLBACK".length)+"="+g);var i=f._script=d.build(h),j=function(b){if(f.readyState!==u.Cancelled){if(f.readyState=u.Done,d.cleanup(i),!f._finished){var c=new z({body:N,type:v.Error,url:h});return e&&(c=e.merge(c)),void a.error(new I(c))}var g=new z({body:f._responseData,url:h});f.baseResponseOptions&&(g=f.baseResponseOptions.merge(g)),a.next(new I(g)),a.complete()}},k=function(b){if(f.readyState!==u.Cancelled){f.readyState=u.Done,d.cleanup(i);var c=new z({body:b.message,type:v.Error});e&&(c=e.merge(c)),a.error(new I(c))}};return i.addEventListener("load",j),i.addEventListener("error",k),d.send(i),function(){f.readyState=u.Cancelled,i.removeEventListener("load",j),i.removeEventListener("error",k),f._dom.cleanup(i)}}),f}return e(b,a),b.prototype.finished=function(a){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==u.Cancelled&&(this._responseData=a)},b}(P),R=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),b}(B),S=function(a){function b(b,c){var d=a.call(this)||this;return d._browserJSONP=b,d._baseResponseOptions=c,d}return e(b,a),b.prototype.createConnection=function(a){return new Q(a,this._browserJSONP,this._baseResponseOptions)},b}(R);S.decorators=[{type:b.Injectable}],S.ctorParameters=function(){return[{type:M},{type:z}]};var T=/^\)\]\}',?\n/,U=function(){function a(a,b,d){var e=this;this.request=a,this.response=new c.Observable(function(c){var f=b.build();f.open(t[a.method].toUpperCase(),a.url),null!=a.withCredentials&&(f.withCredentials=a.withCredentials);var h=function(){var b=1223===f.status?204:f.status,e=null;204!==b&&"string"==typeof(e=void 0===f.response?f.responseText:f.response)&&(e=e.replace(T,"")),0===b&&(b=e?200:0);var h=y.fromResponseHeaderString(f.getAllResponseHeaders()),i=g(f)||a.url,j=f.statusText||"OK",k=new z({body:e,status:b,headers:h,statusText:j,url:i});null!=d&&(k=d.merge(k));var l=new I(k);if(l.ok=E(b),l.ok)return c.next(l),void c.complete();c.error(l)},i=function(a){var b=new z({body:a,type:v.Error,status:f.status,statusText:f.statusText});null!=d&&(b=d.merge(b)),c.error(new I(b))};if(e.setDetectedContentType(a,f),null==a.headers&&(a.headers=new y),a.headers.has("Accept")||a.headers.append("Accept","application/json, text/plain, */*"),a.headers.forEach(function(a,b){return f.setRequestHeader(b,a.join(","))}),null!=a.responseType&&null!=f.responseType)switch(a.responseType){case x.ArrayBuffer:f.responseType="arraybuffer";break;case x.Json:f.responseType="json";break;case x.Text:f.responseType="text";break;case x.Blob:f.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return f.addEventListener("load",h),f.addEventListener("error",i),f.send(e.request.getBody()),function(){f.removeEventListener("load",h),f.removeEventListener("error",i),f.abort()}})}return a.prototype.setDetectedContentType=function(a,b){if(null==a.headers||null==a.headers.get("Content-Type"))switch(a.contentType){case w.NONE:break;case w.JSON:b.setRequestHeader("content-type","application/json");break;case w.FORM:b.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case w.TEXT:b.setRequestHeader("content-type","text/plain");break;case w.BLOB:var c=a.blob();c.type&&b.setRequestHeader("content-type",c.type)}},a}(),V=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.ɵgetDOM().getCookie(this._cookieName);b&&a.headers.set(this._headerName,b)},a}(),W=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 U(a,this._browserXHR,this._baseResponseOptions)},a}();W.decorators=[{type:b.Injectable}],W.ctorParameters=function(){return[{type:s},{type:z},{type:D}]};var X=function(){function a(a){void 0===a&&(a={});var b=a.method,c=a.headers,d=a.body,e=a.url,g=a.search,h=a.params,i=a.withCredentials,j=a.responseType;this.method=null!=b?f(b):null,this.headers=null!=c?c:null,this.body=null!=d?d:null,this.url=null!=e?e:null,this.params=this._mergeSearchParams(h||g),this.withCredentials=null!=i?i:null,this.responseType=null!=j?j:null}return Object.defineProperty(a.prototype,"search",{get:function(){return this.params},set:function(a){this.params=a},enumerable:!0,configurable:!0}),a.prototype.merge=function(b){return new a({method:b&&null!=b.method?b.method:this.method,headers:b&&null!=b.headers?b.headers:new y(this.headers),body:b&&null!=b.body?b.body:this.body,url:b&&null!=b.url?b.url:this.url,params:b&&this._mergeSearchParams(b.params||b.search),withCredentials:b&&null!=b.withCredentials?b.withCredentials:this.withCredentials,responseType:b&&null!=b.responseType?b.responseType:this.responseType})},a.prototype._mergeSearchParams=function(a){return a?a instanceof G?a.clone():"string"==typeof a?new G(a):this._parseParams(a):this.params},a.prototype._parseParams=function(a){var b=this;void 0===a&&(a={});var c=new G;return Object.keys(a).forEach(function(d){var e=a[d];Array.isArray(e)?e.forEach(function(a){return b._appendParam(d,a,c)}):b._appendParam(d,e,c)}),c},a.prototype._appendParam=function(a,b,c){"string"!=typeof b&&(b=JSON.stringify(b)),c.append(a,b)},a}(),Y=function(a){function b(){return a.call(this,{method:t.Get,headers:new y})||this}return e(b,a),b}(X);Y.decorators=[{type:b.Injectable}],Y.ctorParameters=function(){return[]};var Z=function(a){function b(b){var c=a.call(this)||this,d=b.url;c.url=b.url;var e=b.params||b.search;if(e){var g=void 0;if(g="object"!=typeof e||e instanceof G?e.toString():l(e).toString(),g.length>0){var h="?";-1!=c.url.indexOf("?")&&(h="&"==c.url[c.url.length-1]?"":"&"),c.url=d+h+g}}return c._body=b.body,c.method=f(b.method),c.headers=new y(b.headers),c.contentType=c.detectContentType(),c.withCredentials=b.withCredentials,c.responseType=b.responseType,c}return e(b,a),b.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return w.JSON;case"application/x-www-form-urlencoded":return w.FORM;case"multipart/form-data":return w.FORM_DATA;case"text/plain":case"text/html":return w.TEXT;case"application/octet-stream":return this._body instanceof ca?w.ARRAY_BUFFER:w.BLOB;default:return this.detectContentTypeFromBody()}},b.prototype.detectContentTypeFromBody=function(){return null==this._body?w.NONE:this._body instanceof G?w.FORM:this._body instanceof aa?w.FORM_DATA:this._body instanceof ba?w.BLOB:this._body instanceof ca?w.ARRAY_BUFFER:this._body&&"object"==typeof this._body?w.JSON:w.TEXT},b.prototype.getBody=function(){switch(this.contentType){case w.JSON:case w.FORM:return this.text();case w.FORM_DATA:return this._body;case w.TEXT:return this.text();case w.BLOB:return this.blob();case w.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},b}(H),$=function(){},_="object"==typeof window?window:$,aa=_.FormData||$,ba=_.Blob||$,ca=_.ArrayBuffer||$,da=function(){function a(a,b){this._backend=a,this._defaultOptions=b}return a.prototype.request=function(a,b){var c;if("string"==typeof a)c=m(this._backend,new Z(n(this._defaultOptions,b,t.Get,a)));else{if(!(a instanceof Z))throw new Error("First argument must be a url string or Request instance.");c=m(this._backend,a)}return c},a.prototype.get=function(a,b){return this.request(new Z(n(this._defaultOptions,b,t.Get,a)))},a.prototype.post=function(a,b,c){return this.request(new Z(n(this._defaultOptions.merge(new X({body:b})),c,t.Post,a)))},a.prototype.put=function(a,b,c){return this.request(new Z(n(this._defaultOptions.merge(new X({body:b})),c,t.Put,a)))},a.prototype.delete=function(a,b){return this.request(new Z(n(this._defaultOptions,b,t.Delete,a)))},a.prototype.patch=function(a,b,c){return this.request(new Z(n(this._defaultOptions.merge(new X({body:b})),c,t.Patch,a)))},a.prototype.head=function(a,b){return this.request(new Z(n(this._defaultOptions,b,t.Head,a)))},a.prototype.options=function(a,b){return this.request(new Z(n(this._defaultOptions,b,t.Options,a)))},a}();da.decorators=[{type:b.Injectable}],da.ctorParameters=function(){return[{type:B},{type:X}]};var ea=function(a){function b(b,c){return a.call(this,b,c)||this}return e(b,a),b.prototype.request=function(a,b){if("string"==typeof a&&(a=new Z(n(this._defaultOptions,b,t.Get,a))),!(a instanceof Z))throw new Error("First argument must be a url string or Request instance.");if(a.method!==t.Get)throw new Error("JSONP requests must use GET request method.");return m(this._backend,a)},b}(da);ea.decorators=[{type:b.Injectable}],ea.ctorParameters=function(){return[{type:B},{type:X}]};var fa=function(){function a(){}return a}();fa.decorators=[{type:b.NgModule,args:[{providers:[{provide:da,useFactory:p,deps:[W,X]},s,{provide:X,useClass:Y},{provide:z,useClass:A},W,{provide:D,useFactory:o}]}]}],fa.ctorParameters=function(){return[]};var ga=function(){function a(){}return a}();ga.decorators=[{type:b.NgModule,args:[{providers:[{provide:ea,useFactory:q,deps:[R,X]},M,{provide:X,useClass:Y},{provide:z,useClass:A},{provide:R,useClass:S}]}]}],ga.ctorParameters=function(){return[]};var ha=new b.Version("4.4.1");a.BrowserXhr=s,a.JSONPBackend=R,a.JSONPConnection=P,a.CookieXSRFStrategy=V,a.XHRBackend=W,a.XHRConnection=U,a.BaseRequestOptions=Y,a.RequestOptions=X,a.BaseResponseOptions=A,a.ResponseOptions=z,a.ReadyState=u,a.RequestMethod=t,a.ResponseContentType=x,a.ResponseType=v,a.Headers=y,a.Http=da,a.Jsonp=ea,a.HttpModule=fa,a.JsonpModule=ga,a.Connection=C,a.ConnectionBackend=B,a.XSRFStrategy=D,a.Request=Z,a.Response=I,a.QueryEncoder=F,a.URLSearchParams=G,a.VERSION=ha,a.ɵg=M,a.ɵa=S,a.ɵf=H,a.ɵb=o,a.ɵc=p,a.ɵd=q,Object.defineProperty(a,"__esModule",{value:!0})}),System.registerDynamic("rxjs/observable/ScalarObservable.js",["../Observable"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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("../Observable"),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;if(b)return void d.complete();d.next(c),d.closed||(a.done=!0,this.schedule(a))},b.prototype._subscribe=function(a){var c=this.value,d=this.scheduler;if(d)return d.schedule(b.dispatch,0,{done:!1,value:c,subscriber:a});a.next(c),a.closed||a.complete()},b}(e.Observable);b.ScalarObservable=f}),System.registerDynamic("rxjs/observable/EmptyObservable.js",["../Observable"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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("../Observable"),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){a.subscriber.complete()},b.prototype._subscribe=function(a){var c=this.scheduler;if(c)return c.schedule(b.dispatch,0,{subscriber:a});a.complete()},b}(e.Observable);b.EmptyObservable=f}),System.registerDynamic("rxjs/observable/ArrayObservable.js",["../Observable","./ScalarObservable","./EmptyObservable","../util/isScheduler"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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("../Observable"),f=a("./ScalarObservable"),g=a("./EmptyObservable"),h=a("../util/isScheduler"),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;if(c>=d)return void e.complete();e.next(b[c]),e.closed||(a.index=c+1,this.schedule(a))},b.prototype._subscribe=function(a){var c=this.array,d=c.length,e=this.scheduler;if(e)return e.schedule(b.dispatch,0,{array:c,index:0,count:d,subscriber:a});for(var f=0;f<d&&!a.closed;f++)a.next(c[f]);a.complete()},b}(e.Observable);b.ArrayObservable=i}),System.registerDynamic("rxjs/operator/mergeAll.js",["../OuterSubscriber","../util/subscribeToResult"],!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,b&&b.__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("../OuterSubscriber"),g=a("../util/subscribeToResult");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);b.MergeAllSubscriber=i}),System.registerDynamic("rxjs/util/isScheduler.js",[],!0,function(a,b,c){"use strict";function d(a){return a&&"function"==typeof a.schedule}this||self;b.isScheduler=d}),System.registerDynamic("rxjs/operator/merge.js",["../Observable","../observable/ArrayObservable","./mergeAll","../util/isScheduler"],!0,function(a,b,c){"use strict";function d(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return this.lift.call(e.apply(void 0,[this].concat(a)))}function e(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var c=Number.POSITIVE_INFINITY,d=null,e=a[a.length-1];return i.isScheduler(e)?(d=a.pop(),a.length>1&&"number"==typeof a[a.length-1]&&(c=a.pop())):"number"==typeof e&&(c=a.pop()),null===d&&1===a.length&&a[0]instanceof f.Observable?a[0]:new g.ArrayObservable(a,d).lift(new h.MergeAllOperator(c))}var f=(this||self,a("../Observable")),g=a("../observable/ArrayObservable"),h=a("./mergeAll"),i=a("../util/isScheduler");b.merge=d,b.mergeStatic=e}),System.registerDynamic("rxjs/observable/merge.js",["../operator/merge"],!0,function(a,b,c){"use strict";var d=(this||self,a("../operator/merge"));b.merge=d.mergeStatic}),System.registerDynamic("rxjs/observable/ConnectableObservable.js",["../Subject","../Observable","../Subscriber","../Subscription"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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("../Subject"),f=a("../Observable"),g=a("../Subscriber"),h=a("../Subscription"),i=function(a){function b(b,c){a.call(this),this.source=b,this.subjectFactory=c,this._refCount=0,this._isComplete=!1}return d(b,a),b.prototype._subscribe=function(a){return this.getSubject().subscribe(a)},b.prototype.getSubject=function(){var a=this._subject;return a&&!a.isStopped||(this._subject=this.subjectFactory()),this._subject},b.prototype.connect=function(){var a=this._connection;return a||(this._isComplete=!1,a=this._connection=new h.Subscription,a.add(this.source.subscribe(new k(this.getSubject(),this))),a.closed?(this._connection=null,a=h.Subscription.EMPTY):this._connection=a),a},b.prototype.refCount=function(){return this.lift(new l(this))},b}(f.Observable);b.ConnectableObservable=i;var j=i.prototype;b.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:j._subscribe},_isComplete:{value:j._isComplete,writable:!0},getSubject:{value:j.getSubject},connect:{value:j.connect},refCount:{value:j.refCount}};var k=function(a){function b(b,c){a.call(this,b),this.connectable=c}return d(b,a),b.prototype._error=function(b){this._unsubscribe(),a.prototype._error.call(this,b)},b.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),a.prototype._complete.call(this)},b.prototype._unsubscribe=function(){var a=this.connectable;if(a){this.connectable=null;var b=a._connection;a._refCount=0,a._subject=null,a._connection=null,b&&b.unsubscribe()}},b}(e.SubjectSubscriber),l=function(){function a(a){this.connectable=a}return a.prototype.call=function(a,b){var c=this.connectable;c._refCount++;var d=new m(a,c),e=b.subscribe(d);return d.closed||(d.connection=c.connect()),e},a}(),m=function(a){function b(b,c){a.call(this,b),this.connectable=c}return d(b,a),b.prototype._unsubscribe=function(){var a=this.connectable;if(!a)return void(this.connection=null);this.connectable=null;var b=a._refCount;if(b<=0)return void(this.connection=null);if(a._refCount=b-1,b>1)return void(this.connection=null);var c=this.connection,d=a._connection;this.connection=null,!d||c&&d!==c||d.unsubscribe()},b}(g.Subscriber)}),System.registerDynamic("rxjs/operator/multicast.js",["../observable/ConnectableObservable"],!0,function(a,b,c){"use strict";function d(a,b){var c;if(c="function"==typeof a?a:function(){return a},"function"==typeof b)return this.lift(new f(c,b));var d=Object.create(this,e.connectableObservableDescriptor);return d.source=this,d.subjectFactory=c,d}var e=(this||self,a("../observable/ConnectableObservable"));b.multicast=d;var f=function(){function a(a,b){this.subjectFactory=a,this.selector=b}return a.prototype.call=function(a,b){var c=this.selector,d=this.subjectFactory(),e=c(d).subscribe(a);return e.add(b.subscribe(d)),e},a}();b.MulticastOperator=f}),System.registerDynamic("rxjs/operator/share.js",["./multicast","../Subject"],!0,function(a,b,c){"use strict";function d(){return new g.Subject}function e(){return f.multicast.call(this,d).refCount()}var f=(this||self,a("./multicast")),g=a("../Subject");b.share=e}),function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("rxjs/Observable"),require("rxjs/observable/merge"),require("rxjs/operator/share"),require("rxjs/Subject")):System.registerDynamic("@angular/core/bundles/core.umd.js",["rxjs/Observable","rxjs/observable/merge","rxjs/operator/share","rxjs/Subject"],!1,function(a,c,d){return"function"==typeof b?b.call(c,c,a("rxjs/Observable"),a("rxjs/observable/merge"),a("rxjs/operator/share"),a("rxjs/Subject")):b})}(0,function(a,b,c,d,e){"use strict";function f(a,b){function c(){this.constructor=a}ze(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}function g(){if(!Ge){var a=Fe.Symbol;if(a&&a.iterator)Ge=a.iterator;else for(var b=Object.getOwnPropertyNames(Map.prototype),c=0;c<b.length;++c){var d=b[c];"entries"!==d&&"size"!==d&&Map.prototype[d]===Map.prototype.entries&&(Ge=d)}}return Ge}function h(a){Zone.current.scheduleMicroTask("scheduleMicrotask",a)}function i(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function j(a){if("string"==typeof a)return a;if(null==a)return""+a;if(a.overriddenName)return""+a.overriddenName;if(a.name)return""+a.name;var b=a.toString();if(null==b)return""+b;var c=b.indexOf("\n");return-1===c?b:b.substring(0,c)}function k(a){return"function"==typeof a&&a.hasOwnProperty("annotation")&&(a=a.annotation),a}function l(a,b){if(a===Object||a===String||a===Function||a===Number||a===Array)throw new Error("Can not use native "+j(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 '"+j(e)+"'");if(d!=e.length)throw new Error("Number of annotations ("+d+") does not match number of arguments ("+e.length+") in the function: "+j(e));for(var f=[],g=0,h=c.length-1;g<h;g++){var i=[];f.push(i);var l=c[g];if(Array.isArray(l))for(var m=0;m<l.length;m++)i.push(k(l[m]));else"function"==typeof l?i.push(k(l)):i.push(l)}return Ie.defineMetadata("parameters",f,e),e}throw new Error("Only Function or Array is supported in Class definition for key '"+b+"' is '"+j(a)+"'")}function m(a){var b=l(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: "+j(a.extends));b.prototype=c=Object.create(a.extends.prototype)}for(var d in a)"extends"!==d&&"prototype"!==d&&a.hasOwnProperty(d)&&(c[d]=l(a[d],d));this&&this.annotations instanceof Array&&Ie.defineMetadata("annotations",this.annotations,b);var e=b.name;return e&&"constructor"!==e||(b.overriddenName="class"+He++),b}function n(a,b,c,d){function e(a){if(!Ie||!Ie.getOwnMetadata)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=Ie.getOwnMetadata("annotations",a)||[];return c.push(b),Ie.defineMetadata("annotations",c,a),a};return g.annotations=c,g.Class=m,d&&d(g),g}var f=o(b);return c&&(e.prototype=Object.create(c.prototype)),e.prototype.toString=function(){return"@"+a},e.annotationCls=e,e}function o(a){return function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];if(a){var d=a.apply(void 0,b);for(var e in d)this[e]=d[e]}}}function p(a,b,c){function d(){function a(a,b,c){for(var d=Ie.getOwnMetadata("parameters",a)||[];d.length<=c;)d.push(null);return d[c]=d[c]||[],d[c].push(f),Ie.defineMetadata("parameters",d,a),a}for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];if(this instanceof d)return e.apply(this,b),this;var f=new(d.bind.apply(d,[void 0].concat(b)));return a.annotation=f,a}var e=o(b);return c&&(d.prototype=Object.create(c.prototype)),d.prototype.toString=function(){return"@"+a},d.annotationCls=d,d}function q(a,b,c){function d(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];if(this instanceof d)return e.apply(this,a),this;var c=new(d.bind.apply(d,[void 0].concat(a)));return function(a,b){var d=Ie.getOwnMetadata("propMetadata",a.constructor)||{};d[b]=d.hasOwnProperty(b)&&d[b]||[],d[b].unshift(c),Ie.defineMetadata("propMetadata",d,a.constructor)}}var e=o(b);return c&&(d.prototype=Object.create(c.prototype)),d.prototype.toString=function(){return"@"+a},d.annotationCls=d,d}function r(a){return null==a||a===Qe.Default}function s(a){return a.__forward_ref__=s,a.toString=function(){return j(this())},a}function t(a){return"function"==typeof a&&a.hasOwnProperty("__forward_ref__")&&a.__forward_ref__===s?a():a}function u(a){return a[qf]}function v(a){return a[rf]}function w(a){return a[sf]||x}function x(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];a.error.apply(a,b)}function y(a,b){var c=a+" caused by: "+(b instanceof Error?b.message:b),d=Error(c);return d[rf]=b,d}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){return" ("+z(a.slice().reverse()).map(function(a){return j(a.token)}).join(" -> ")+")"}return""}function B(a,b,c,d){var e=[b],f=c(e),g=d?y(f,d):Error(f);return g.addKey=C,g.keys=e,g.injectors=[a],g.constructResolvingMessage=c,g[rf]=d,g}function C(a,b){this.injectors.push(a),this.keys.push(b),this.message=this.constructResolvingMessage(this.keys)}function D(a,b){return B(a,b,function(a){return"No provider for "+j(a[0].token)+"!"+A(a)})}function E(a,b){return B(a,b,function(a){return"Cannot instantiate cyclic dependency!"+A(a)})}function F(a,b,c,d){return B(a,d,function(a){var c=j(a[0].token);return b.message+": Error during instantiation of "+c+"!"+A(a)+"."},b)}function G(a){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+a)}function H(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(j).join(" ")):c.push("?")}return Error("Cannot resolve all parameters for '"+j(a)+"'("+c.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+j(a)+"' is decorated with Injectable.")}function I(a){return Error("Index "+a+" is out-of-bounds.")}function J(a,b){return Error("Cannot mix multi providers and regular providers, got: "+a+" "+b)}function K(a){return"function"==typeof a}function L(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 M(a){var b=Object.getPrototypeOf(a.prototype);return(b?b.constructor:null)||Object}function N(a){var b,c;if(a.useClass){var d=t(a.useClass);b=Bf.factory(d),c=T(d)}else a.useExisting?(b=function(a){return a},c=[Cf.fromKey(uf.get(a.useExisting))]):a.useFactory?(b=a.useFactory,c=S(a.useFactory,a.deps)):(b=function(){return a.useValue},c=Df);return new Ff(b,c)}function O(a){return new Ef(uf.get(a.provide),[N(a)],a.multi||!1)}function P(a){var b=R(a,[]),c=b.map(O),d=Q(c,new Map);return Array.from(d.values())}function Q(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=b.get(d.key.id);if(e){if(d.multiProvider!==e.multiProvider)throw J(e,d);if(d.multiProvider)for(var f=0;f<d.resolvedFactories.length;f++)e.resolvedFactories.push(d.resolvedFactories[f]);else b.set(d.key.id,d)}else{var g=void 0;g=d.multiProvider?new Ef(d.key,d.resolvedFactories.slice(),d.multiProvider):d,b.set(d.key.id,g)}}return b}function R(a,b){return a.forEach(function(a){if(a instanceof xf)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 G(a);R(a,b)}}),b}function S(a,b){if(b){var c=b.map(function(a){return[a]});return b.map(function(b){return U(a,b,c)})}return T(a)}function T(a){var b=Bf.parameters(a);if(!b)return[];if(b.some(function(a){return null==a}))throw H(a,b);return b.map(function(c){return U(a,c,b)})}function U(a,b,c){var d=null,e=!1;if(!Array.isArray(b))return b instanceof ef?V(b.token,e,null):V(b,e,null);for(var f=null,g=0;g<b.length;++g){var h=b[g];h instanceof xf?d=h:h instanceof ef?d=h.token:h instanceof ff?e=!0:h instanceof hf||h instanceof jf?f=h:h instanceof Be&&(d=h)}if(null!=(d=t(d)))return V(d,e,f);throw H(a,c)}function V(a,b,c){return new Cf(uf.get(a),b,c)}function W(a,b){for(var c=new Array(a._providers.length),d=0;d<a._providers.length;++d)c[d]=b(a.getProviderAtIndex(d));return c}function X(a){return!!a&&"function"==typeof a.then}function Y(a){return!!a&&"function"==typeof a.subscribe}function Z(){return""+$()+$()+$()}function $(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function _(){throw new Error("Runtime compiler is not loaded")}function aa(a){var b=Error("No component factory found for "+j(a)+". Did you add it to @NgModule.entryComponents?");return b[Zf]=a,b}function ba(){var a=Fe.wtf;return!(!a||!(ag=a.trace))&&(bg=ag.events,!0)}function ca(a,b){return void 0===b&&(b=null),bg.createScope(a,b)}function da(a,b){return ag.leaveScope(a,b),b}function ea(a,b){return ag.beginTimeRange(a,b)}function fa(a){ag.endTimeRange(a)}function ga(a,b){return null}function ha(a){if(0==a._nesting&&!a.hasPendingMicrotasks&&!a.isStable)try{a._nesting++,a.onMicrotaskEmpty.emit(null)}finally{if(a._nesting--,!a.hasPendingMicrotasks)try{a.runOutsideAngular(function(){return a.onStable.emit(null)})}finally{a.isStable=!0}}}function ia(a){a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(b,c,d,e,f,g){try{return ja(a),b.invokeTask(d,e,f,g)}finally{ka(a)}},onInvoke:function(b,c,d,e,f,g,h){try{return ja(a),b.invoke(d,e,f,g,h)}finally{ka(a)}},onHasTask:function(b,c,d,e){b.hasTask(d,e),c===d&&("microTask"==e.change?(a.hasPendingMicrotasks=e.microTask,ha(a)):"macroTask"==e.change&&(a.hasPendingMacrotasks=e.macroTask))},onHandleError:function(b,c,d,e){return b.handleError(d,e),a.runOutsideAngular(function(){return a.onError.emit(e)}),!1}})}function ja(a){a._nesting++,a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))}function ka(a){a._nesting--,ha(a)}function la(a){rg=a}function ma(){if(tg)throw new Error("Cannot enable prod mode after platform setup.");sg=!1}function na(){return tg=!0,sg}function oa(a){if(pg&&!pg.destroyed&&!pg.injector.get(ug,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");pg=a.get(wg);var b=a.get(Of,null);return b&&b.forEach(function(a){return a()}),pg}function pa(a,b,c){void 0===c&&(c=[]);var d=new Be("Platform: "+b);return function(b){void 0===b&&(b=[]);var e=sa();return e&&!e.injector.get(ug,!1)||(a?a(c.concat(b).concat({provide:d,useValue:!0})):oa(Hf.resolveAndCreate(c.concat(b).concat({provide:d,useValue:!0})))),qa(d)}}function qa(a){var b=sa();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 ra(){pg&&!pg.destroyed&&pg.destroy()}function sa(){return pg&&!pg.destroyed?pg:null}function ta(a,b,c){try{var d=c();return X(d)?d.catch(function(c){throw b.runOutsideAngular(function(){return a.handleError(c)}),c}):d}catch(c){throw b.runOutsideAngular(function(){return a.handleError(c)}),c}}function ua(a,b){var c=a.indexOf(b);c>-1&&a.splice(c,1)}function va(a,b){var c=Jg.get(a);if(c)throw new Error("Duplicate module registered for "+a+" - "+c.moduleType.name+" vs "+b.moduleType.name);Jg.set(a,b)}function wa(a){var b=Jg.get(a);if(!b)throw new Error("No module with ID "+a+" loaded");return b}function xa(a){return a.reduce(function(a,b){var c=Array.isArray(b)?xa(b):b;return a.concat(c)},[])}function ya(a,b,c){if(!a)throw new Error("Cannot find '"+c+"' in '"+b+"'");return a}function za(a){return a.map(function(a){return a.nativeElement})}function Aa(a,b,c){a.childNodes.forEach(function(a){a instanceof Xg&&(b(a)&&c.push(a),Aa(a,b,c))})}function Ba(a,b,c){a instanceof Xg&&a.childNodes.forEach(function(a){b(a)&&c.push(a),a instanceof Xg&&Ba(a,b,c)})}function Ca(a){return Yg.get(a)||null}function Da(a){Yg.set(a.nativeNode,a)}function Ea(a){Yg.delete(a.nativeNode)}function Fa(a,b){var c=Ga(a),d=Ga(b);if(c&&d)return Ha(a,b,Fa);var e=a&&("object"==typeof a||"function"==typeof a),f=b&&("object"==typeof b||"function"==typeof b);return!(c||!e||d||!f)||i(a,b)}function Ga(a){return!!Ja(a)&&(Array.isArray(a)||!(a instanceof Map)&&g()in a)}function Ha(a,b,c){for(var d=a[g()](),e=b[g()]();;){var f=d.next(),h=e.next();if(f.done&&h.done)return!0;if(f.done||h.done)return!1;if(!c(f.value,h.value))return!1}}function Ia(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(var d=a[g()](),e=void 0;!(e=d.next()).done;)b(e.value)}function Ja(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function Ka(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 La(a){return a.name||typeof a}function Ma(){return Bf}function Na(){return nh}function Oa(){return oh}function Pa(a){return a||"en-US"}function Qa(a,b){return a.nodes[b]}function Ra(a,b){return a.nodes[b]}function Sa(a,b){return a.nodes[b]}function Ta(a,b){return a.nodes[b]}function Ua(a,b){return a.nodes[b]}function Va(a,b,c,d){var e="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+b+"'. Current value: '"+c+"'.";return d&&(e+=" 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 ?"),Xa(e,a)}function Wa(a,b){return a instanceof Error||(a=new Error(a.toString())),Ya(a,b),a}function Xa(a,b){var c=new Error(a);return Ya(c,b),c}function Ya(a,b){a[qf]=b,a[sf]=b.logError.bind(b)}function Za(a){return!!u(a)}function $a(a){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+a)}function _a(a){var b=Bh.get(a);return b||(b=j(a)+"_"+Bh.size,Bh.set(a,b)),b}function ab(a,b,c,d){if(d instanceof Zg){d=d.wrapped;var e=a.def.nodes[b].bindingIndex+c,f=a.oldValues[e];f instanceof Zg&&(f=f.wrapped),a.oldValues[e]=new Zg(f)}return d}function bb(a){return{id:Ch,styles:a.styles,encapsulation:a.encapsulation,data:a.data}}function cb(a){if(a&&a.id===Ch){var b=null!=a.encapsulation&&a.encapsulation!==af.None||a.styles.length||Object.keys(a.data).length;a.id=b?"c"+Eh++:Dh}return a&&a.id===Dh&&(a=null),a||null}function db(a,b,c,d){var e=a.oldValues;return!(!(2&a.state)&&i(e[b.bindingIndex+c],d))}function eb(a,b,c,d){return!!db(a,b,c,d)&&(a.oldValues[b.bindingIndex+c]=d,!0)}function fb(a,b,c,d){var e=a.oldValues[b.bindingIndex+c];if(1&a.state||!Fa(e,d))throw Va(zh.createDebugContext(a,b.index),e,d,0!=(1&a.state))}function gb(a){for(var b=a;b;)2&b.def.flags&&(b.state|=8),b=b.viewContainerParent||b.parent}function hb(a,b){for(var c=a;c&&c!==b;)c.state|=64,c=c.viewContainerParent||c.parent}function ib(a,b,c,d){return gb(33554432&a.def.nodes[b].flags?Ra(a,b).componentView:a),zh.handleEvent(a,b,c,d)}function jb(a){if(a.parent){return Ra(a.parent,a.parentNodeDef.index)}return null}function kb(a){return a.parent?a.parentNodeDef.parent:null}function lb(a,b){switch(201347067&b.flags){case 1:return Ra(a,b.index).renderElement;case 2:return Qa(a,b.index).renderText}}function mb(a,b){return a?a+":"+b:b}function nb(a){return!!a.parent&&!!(32768&a.parentNodeDef.flags)}function ob(a){return!(!a.parent||32768&a.parentNodeDef.flags)}function pb(a){return 1<<a%32}function qb(a){var b={},c=0,d={};return a&&a.forEach(function(a){var e=a[0],f=a[1];"number"==typeof e?(b[e]=f,c|=pb(e)):d[e]=f}),{matchedQueries:b,references:d,matchedQueryIds:c}}function rb(a){return a.map(function(a){var b,c;return Array.isArray(a)?(c=a[0],b=a[1]):(c=0,b=a),{flags:c,token:b,tokenKey:_a(b)}})}function sb(a,b,c){var d=c.renderParent;return d?0==(1&d.flags)||0==(33554432&d.flags)||d.element.componentRendererType&&d.element.componentRendererType.encapsulation===af.Native?Ra(a,c.renderParent.index).renderElement:void 0:b}function tb(a){var b=Fh.get(a);return b||(b=a(function(){return Ah}),b.factory=a,Fh.set(a,b)),b}function ub(a){var b=[];return vb(a,0,void 0,void 0,b),b}function vb(a,b,c,d,e){3===b&&(c=a.renderer.parentNode(lb(a,a.def.lastRenderRootNode))),wb(a,b,0,a.def.nodes.length-1,c,d,e)}function wb(a,b,c,d,e,f,g){for(var h=c;h<=d;h++){var i=a.def.nodes[h];11&i.flags&&yb(a,i,b,e,f,g),h+=i.childCount}}function xb(a,b,c,d,e,f){for(var g=a;g&&!nb(g);)g=g.parent;for(var h=g.parent,i=kb(g),j=i.index+1,k=i.index+i.childCount,l=j;l<=k;l++){var m=h.def.nodes[l];m.ngContentIndex===b&&yb(h,m,c,d,e,f),l+=m.childCount}if(!h.parent){var n=a.root.projectableNodes[b];if(n)for(var l=0;l<n.length;l++)zb(a,n[l],c,d,e,f)}}function yb(a,b,c,d,e,f){if(8&b.flags)xb(a,b.ngContent.index,c,d,e,f);else{var g=lb(a,b);if(3===c&&33554432&b.flags&&48&b.bindingFlags){if(16&b.bindingFlags&&zb(a,g,c,d,e,f),32&b.bindingFlags){var h=Ra(a,b.index).componentView;zb(h,g,c,d,e,f)}}else zb(a,g,c,d,e,f);if(16777216&b.flags)for(var i=Ra(a,b.index).viewContainer._embeddedViews,j=0;j<i.length;j++)vb(i[j],c,d,e,f);1&b.flags&&!b.element.name&&wb(a,c,b.index+1,b.index+b.childCount,d,e,f)}}function zb(a,b,c,d,e,f){var g=a.renderer;switch(c){case 1:g.appendChild(d,b);break;case 2:g.insertBefore(d,b,e);break;case 3:g.removeChild(d,b);break;case 0:f.push(b)}}function Ab(a){if(":"===a[0]){var b=a.match(Gh);return[b[1],b[2]]}return["",a]}function Bb(a){for(var b=0,c=0;c<a.length;c++)b|=a[c].flags;return b}function Cb(a,b){for(var c="",d=0;d<2*a;d+=2)c=c+b[d]+Eb(b[d+1]);return c+b[2*a]}function Db(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+Eb(c)+d;case 2:return b+Eb(c)+d+Eb(e)+f;case 3:return b+Eb(c)+d+Eb(e)+f+Eb(g)+h;case 4:return b+Eb(c)+d+Eb(e)+f+Eb(g)+h+Eb(i)+j;case 5:return b+Eb(c)+d+Eb(e)+f+Eb(g)+h+Eb(i)+j+Eb(k)+l;case 6:return b+Eb(c)+d+Eb(e)+f+Eb(g)+h+Eb(i)+j+Eb(k)+l+Eb(m)+n;case 7:return b+Eb(c)+d+Eb(e)+f+Eb(g)+h+Eb(i)+j+Eb(k)+l+Eb(m)+n+Eb(o)+p;case 8:return b+Eb(c)+d+Eb(e)+f+Eb(g)+h+Eb(i)+j+Eb(k)+l+Eb(m)+n+Eb(o)+p+Eb(q)+r;case 9:return b+Eb(c)+d+Eb(e)+f+Eb(g)+h+Eb(i)+j+Eb(k)+l+Eb(m)+n+Eb(o)+p+Eb(q)+r+Eb(s)+t;default:throw new Error("Does not support more than 9 expressions")}}function Eb(a){return null!=a?a.toString():""}function Fb(a,b,c,d,e,f){a|=1;var g=qb(b),h=g.matchedQueries,i=g.references;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:a,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:g.matchedQueryIds,references:i,ngContentIndex:c,childCount:d,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:f?tb(f):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:e||Ah},provider:null,text:null,query:null,ngContent:null}}function Gb(a,b,c,d,e,f,g,h,i,j,k){void 0===f&&(f=[]),i||(i=Ah);var l=qb(b),m=l.matchedQueries,n=l.references,o=l.matchedQueryIds,p=null,q=null;e&&(H=Ab(e),p=H[0],q=H[1]),g=g||[];for(var r=new Array(g.length),s=0;s<g.length;s++){var t=g[s],u=t[0],v=t[1],w=t[2],x=Ab(v),y=x[0],z=x[1],A=void 0,B=void 0;switch(15&u){case 4:B=w;break;case 1:case 8:A=w}r[s]={flags:u,ns:y,name:z,nonMinifiedName:z,securityContext:A,suffix:B}}h=h||[];for(var C=new Array(h.length),s=0;s<h.length;s++){var D=h[s],E=D[0],F=D[1];C[s]={type:0,target:E,eventName:F,propName:null}}f=f||[];var G=f.map(function(a){var b=a[0],c=a[1],d=Ab(b);return[d[0],d[1],c]});return k=cb(k),j&&(a|=33554432),a|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:a,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:m,matchedQueryIds:o,references:n,ngContentIndex:c,childCount:d,bindings:r,bindingFlags:Bb(r),outputs:C,element:{ns:p,name:q,attrs:G,template:null,componentProvider:null,componentView:j||null,componentRendererType:k,publicProviders:null,allProviders:null,handleEvent:i||Ah},provider:null,text:null,query:null,ngContent:null};var H}function Hb(a,b,c){var d,e=c.element,f=a.root.selectorOrNode,g=a.renderer;if(a.parent||!f){d=e.name?g.createElement(e.name,e.ns):g.createComment("");var h=sb(a,b,c);h&&g.appendChild(h,d)}else d=g.selectRootElement(f);if(e.attrs)for(var i=0;i<e.attrs.length;i++){var j=e.attrs[i],k=j[0],l=j[1],m=j[2];g.setAttribute(d,l,m,k)}return d}function Ib(a,b,c,d){for(var e=0;e<c.outputs.length;e++){var f=c.outputs[e],g=Jb(a,c.index,mb(f.target,f.eventName)),h=f.target,i=a;"component"===f.target&&(h=null,i=b);var j=i.renderer.listen(h||d,f.eventName,g);a.disposables[c.outputIndex+e]=j}}function Jb(a,b,c){return function(d){try{return ib(a,b,c,d)}catch(b){a.root.errorHandler.handleError(b)}}}function Kb(a,b,c,d,e,f,g,h,i,j,k,l){var m=b.bindings.length,n=!1;return m>0&&Mb(a,b,0,c)&&(n=!0),m>1&&Mb(a,b,1,d)&&(n=!0),m>2&&Mb(a,b,2,e)&&(n=!0),m>3&&Mb(a,b,3,f)&&(n=!0),m>4&&Mb(a,b,4,g)&&(n=!0),m>5&&Mb(a,b,5,h)&&(n=!0),m>6&&Mb(a,b,6,i)&&(n=!0),m>7&&Mb(a,b,7,j)&&(n=!0),m>8&&Mb(a,b,8,k)&&(n=!0),m>9&&Mb(a,b,9,l)&&(n=!0),n}function Lb(a,b,c){for(var d=!1,e=0;e<c.length;e++)Mb(a,b,e,c[e])&&(d=!0);return d}function Mb(a,b,c,d){if(!eb(a,b,c,d))return!1;var e=b.bindings[c],f=Ra(a,b.index),g=f.renderElement,h=e.name;switch(15&e.flags){case 1:Nb(a,e,g,e.ns,h,d);break;case 2:Ob(a,g,h,d);break;case 4:Pb(a,e,g,h,d);break;case 8:Qb(33554432&b.flags&&32&e.flags?f.componentView:a,e,g,h,d)}return!0}function Nb(a,b,c,d,e,f){var g=b.securityContext,h=g?a.root.sanitizer.sanitize(g,f):f;h=null!=h?h.toString():null;var i=a.renderer;null!=f?i.setAttribute(c,e,h,d):i.removeAttribute(c,e,d)}function Ob(a,b,c,d){var e=a.renderer;d?e.addClass(b,c):e.removeClass(b,c)}function Pb(a,b,c,d,e){var f=a.root.sanitizer.sanitize(wh.STYLE,e);if(null!=f){f=f.toString();var g=b.suffix;null!=g&&(f+=g)}else f=null;var h=a.renderer;null!=f?h.setStyle(c,d,f):h.removeStyle(c,d)}function Qb(a,b,c,d,e){var f=b.securityContext,g=f?a.root.sanitizer.sanitize(f,e):e;a.renderer.setProperty(c,d,g)}function Rb(a,b,c,d){return{index:-1,deps:rb(d),flags:a,token:b,value:c}}function Sb(a){for(var b={},c=0;c<a.length;c++){var d=a[c];d.index=c,b[_a(d.token)]=d}return{factory:null,providersByKey:b,providers:a}}function Tb(a){for(var b=a._def,c=a._providers=new Array(b.providers.length),d=0;d<b.providers.length;d++){var e=b.providers[d];c[d]=4096&e.flags?Jh:Vb(a,e)}}function Ub(a,b,c){if(void 0===c&&(c=of.THROW_IF_NOT_FOUND),8&b.flags)return b.token;if(2&b.flags&&(c=null),1&b.flags)return a._parent.get(b.token,c);var d=b.tokenKey;switch(d){case Kh:case Lh:return a}var e=a._def.providersByKey[d];if(e){var f=a._providers[e.index];return f===Jh&&(f=a._providers[e.index]=Vb(a,e)),f}return a._parent.get(b.token,c)}function Vb(a,b){var c;switch(201347067&b.flags){case 512:c=Wb(a,b.value,b.deps);break;case 1024:c=Xb(a,b.value,b.deps);break;case 2048:c=Ub(a,b.deps[0]);break;case 256:c=b.value}return c}function Wb(a,b,c){var d,e=c.length;switch(e){case 0:d=new b;break;case 1:d=new b(Ub(a,c[0]));break;case 2:d=new b(Ub(a,c[0]),Ub(a,c[1]));break;case 3:d=new b(Ub(a,c[0]),Ub(a,c[1]),Ub(a,c[2]));break;default:for(var f=new Array(e),g=0;g<e;g++)f[g]=Ub(a,c[g]);d=new(b.bind.apply(b,[void 0].concat(f)))}return d}function Xb(a,b,c){var d,e=c.length;switch(e){case 0:d=b();break;case 1:d=b(Ub(a,c[0]));break;case 2:d=b(Ub(a,c[0]),Ub(a,c[1]));break;case 3:d=b(Ub(a,c[0]),Ub(a,c[1]),Ub(a,c[2]));break;default:for(var f=Array(e),g=0;g<e;g++)f[g]=Ub(a,c[g]);d=b.apply(void 0,f)}return d}function Yb(a,b){for(var c=a._def,d=0;d<c.providers.length;d++){if(131072&c.providers[d].flags){var e=a._providers[d];e&&e!==Jh&&e.ngOnDestroy()}}}function Zb(a,b,c,d){var e=b.viewContainer._embeddedViews;null!==c&&void 0!==c||(c=e.length),d.viewContainerParent=a,fc(e,c,d),$b(b,d),zh.dirtyParentQueries(d),dc(b,c>0?e[c-1]:null,d)}function $b(a,b){var c=jb(b);if(c&&c!==a&&!(16&b.state)){b.state|=16;var d=c.template._projectedViews;d||(d=c.template._projectedViews=[]),d.push(b),_b(b.parent.def,b.parentNodeDef)}}function _b(a,b){if(!(4&b.flags)){a.nodeFlags|=4,b.flags|=4;for(var c=b.parent;c;)c.childFlags|=4,c=c.parent}}function ac(a,b){var c=a.viewContainer._embeddedViews;if((null==b||b>=c.length)&&(b=c.length-1),b<0)return null;var d=c[b];return d.viewContainerParent=null,gc(c,b),zh.dirtyParentQueries(d),ec(d),d}function bc(a){if(16&a.state){var b=jb(a);if(b){var c=b.template._projectedViews;c&&(gc(c,c.indexOf(a)),zh.dirtyParentQueries(a))}}}function cc(a,b,c){var d=a.viewContainer._embeddedViews,e=d[b];return gc(d,b),null==c&&(c=d.length),fc(d,c,e),zh.dirtyParentQueries(e),ec(e),dc(a,c>0?d[c-1]:null,e),e}function dc(a,b,c){var d=b?lb(b,b.def.lastRenderRootNode):a.renderElement;vb(c,2,c.renderer.parentNode(d),c.renderer.nextSibling(d),void 0)}function ec(a){vb(a,3,null,null,void 0)}function fc(a,b,c){b>=a.length?a.push(c):a.splice(b,0,c)}function gc(a,b){b>=a.length-1?a.pop():a.splice(b,1)}function hc(a,b,c,d,e,f){return new Nh(a,b,c,d,e,f)}function ic(a){return a.viewDefFactory}function jc(a,b,c){return new Ph(a,b,c)}function kc(a){return new Qh(a)}function lc(a,b){return new Rh(a,b)}function mc(a,b){return new Sh(a,b)}function nc(a,b){var c=a.def.nodes[b];if(1&c.flags){var d=Ra(a,c.index);return c.element.template?d.template:d.renderElement}if(2&c.flags)return Qa(a,c.index).renderText;if(20240&c.flags)return Sa(a,c.index).instance;throw new Error("Illegal state: read nodeValue for node index "+b)}function oc(a){return new Th(a.renderer)}function pc(a,b,c,d){return new Uh(a,b,c,d)}function qc(a,b,c,d,e,f,g){var h=[];if(f)for(var i in f){var j=f[i],k=j[0],l=j[1];h[k]={flags:8,name:i,nonMinifiedName:l,ns:null,securityContext:null,suffix:null}}var m=[];if(g)for(var n in g)m.push({type:1,propName:n,target:null,eventName:g[n]});return a|=16384,tc(a,b,c,d,d,e,h,m)}function rc(a,b,c){return a|=16,tc(a,null,0,b,b,c)}function sc(a,b,c,d,e){return tc(a,b,0,c,d,e)}function tc(a,b,c,d,e,f,g,h){var i=qb(b),j=i.matchedQueries,k=i.references,l=i.matchedQueryIds;h||(h=[]),g||(g=[]);var m=rb(f);return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:a,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:j,matchedQueryIds:l,references:k,ngContentIndex:-1,childCount:c,bindings:g,bindingFlags:Bb(g),outputs:h,element:null,provider:{token:d,value:e,deps:m},text:null,query:null,ngContent:null}}function uc(a,b){return 4096&b.flags?ai:Ac(a,b)}function vc(a,b){for(var c=a;c.parent&&!nb(c);)c=c.parent;return Bc(c.parent,kb(c),!0,b.provider.value,b.provider.deps)}function wc(a,b){var c=(32768&b.flags)>0,d=Bc(a,b.parent,c,b.provider.value,b.provider.deps);if(b.outputs.length)for(var e=0;e<b.outputs.length;e++){var f=b.outputs[e],g=d[f.propName].subscribe(xc(a,b.parent.index,f.eventName));a.disposables[b.outputIndex+e]=g.unsubscribe.bind(g)}return d}function xc(a,b,c){return function(d){try{return ib(a,b,c,d)}catch(b){a.root.errorHandler.handleError(b)}}}function yc(a,b,c,d,e,f,g,h,i,j,k,l){var m=Sa(a,b.index),n=m.instance,o=!1,p=void 0,q=b.bindings.length;return q>0&&db(a,b,0,c)&&(o=!0,p=Fc(a,m,b,0,c,p)),q>1&&db(a,b,1,d)&&(o=!0,p=Fc(a,m,b,1,d,p)),q>2&&db(a,b,2,e)&&(o=!0,p=Fc(a,m,b,2,e,p)),q>3&&db(a,b,3,f)&&(o=!0,p=Fc(a,m,b,3,f,p)),q>4&&db(a,b,4,g)&&(o=!0,p=Fc(a,m,b,4,g,p)),q>5&&db(a,b,5,h)&&(o=!0,p=Fc(a,m,b,5,h,p)),q>6&&db(a,b,6,i)&&(o=!0,p=Fc(a,m,b,6,i,p)),q>7&&db(a,b,7,j)&&(o=!0,p=Fc(a,m,b,7,j,p)),q>8&&db(a,b,8,k)&&(o=!0,p=Fc(a,m,b,8,k,p)),q>9&&db(a,b,9,l)&&(o=!0,p=Fc(a,m,b,9,l,p)),p&&n.ngOnChanges(p),2&a.state&&65536&b.flags&&n.ngOnInit(),262144&b.flags&&n.ngDoCheck(),o}function zc(a,b,c){for(var d=Sa(a,b.index),e=d.instance,f=!1,g=void 0,h=0;h<c.length;h++)db(a,b,h,c[h])&&(f=!0,g=Fc(a,d,b,h,c[h],g));return g&&e.ngOnChanges(g),2&a.state&&65536&b.flags&&e.ngOnInit(),262144&b.flags&&e.ngDoCheck(),f}function Ac(a,b){var c,d=(8192&b.flags)>0,e=b.provider;switch(201347067&b.flags){case 512:c=Bc(a,b.parent,d,e.value,e.deps);break;case 1024:c=Cc(a,b.parent,d,e.value,e.deps);break;case 2048:c=Dc(a,b.parent,d,e.deps[0]);break;case 256:c=e.value}return c}function Bc(a,b,c,d,e){var f,g=e.length;switch(g){case 0:f=new d;break;case 1:f=new d(Dc(a,b,c,e[0]));break;case 2:f=new d(Dc(a,b,c,e[0]),Dc(a,b,c,e[1]));break;case 3:f=new d(Dc(a,b,c,e[0]),Dc(a,b,c,e[1]),Dc(a,b,c,e[2]));break;default:for(var h=new Array(g),i=0;i<g;i++)h[i]=Dc(a,b,c,e[i]);f=new(d.bind.apply(d,[void 0].concat(h)))}return f}function Cc(a,b,c,d,e){var f,g=e.length;switch(g){case 0:f=d();break;case 1:f=d(Dc(a,b,c,e[0]));break;case 2:f=d(Dc(a,b,c,e[0]),Dc(a,b,c,e[1]));break;case 3:f=d(Dc(a,b,c,e[0]),Dc(a,b,c,e[1]),Dc(a,b,c,e[2]));break;default:for(var h=Array(g),i=0;i<g;i++)h[i]=Dc(a,b,c,e[i]);f=d.apply(void 0,h)}return f}function Dc(a,b,c,d,e){if(void 0===e&&(e=of.THROW_IF_NOT_FOUND),8&d.flags)return d.token;var f=a;2&d.flags&&(e=null);var g=d.tokenKey;for(g===$h&&(c=!(!b||!b.element.componentView)),b&&1&d.flags&&(c=!1,b=b.parent);a;){if(b)switch(g){case Vh:var h=Ec(a,b,c);return oc(h);case Wh:var h=Ec(a,b,c);return h.renderer;case Xh:return new Hg(Ra(a,b.index).renderElement);case Yh:return Ra(a,b.index).viewContainer;case Zh:if(b.element.template)return Ra(a,b.index).template;break;case $h:return kc(Ec(a,b,c));case _h:return mc(a,b);default:var i=(c?b.element.allProviders:b.element.publicProviders)[g];if(i){var j=Sa(a,i.index);return j.instance===ai&&(j.instance=Ac(a,i)),j.instance}}c=nb(a),b=kb(a),a=a.parent}var k=f.root.injector.get(d.token,bi);return k!==bi||e===bi?k:f.root.ngModule.injector.get(d.token,e)}function Ec(a,b,c){var d;if(c)d=Ra(a,b.index).componentView;else for(d=a;d.parent&&!nb(d);)d=d.parent;return d}function Fc(a,b,c,d,e,f){if(32768&c.flags){var g=Ra(a,c.parent.index).componentView;2&g.def.flags&&(g.state|=8)}var h=c.bindings[d],i=h.name;if(b.instance[i]=e,524288&c.flags){f=f||{};var j=a.oldValues[c.bindingIndex+d];j instanceof Zg&&(j=j.wrapped);f[c.bindings[d].nonMinifiedName]=new _g(j,e,0!=(2&a.state))}return a.oldValues[c.bindingIndex+d]=e,f}function Gc(a,b){if(a.def.nodeFlags&b)for(var c=a.def.nodes,d=0;d<c.length;d++){var e=c[d],f=e.parent;for(!f&&e.flags&b&&Ic(a,d,e.flags&b),0==(e.childFlags&b)&&(d+=e.childCount);f&&1&f.flags&&d===f.index+f.childCount;)f.directChildFlags&b&&Hc(a,f,b),f=f.parent}}function Hc(a,b,c){for(var d=b.index+1;d<=b.index+b.childCount;d++){var e=a.def.nodes[d];e.flags&c&&Ic(a,d,e.flags&c),d+=e.childCount}}function Ic(a,b,c){var d=Sa(a,b).instance;d!==ai&&(zh.setCurrentNode(a,b),1048576&c&&d.ngAfterContentInit(),2097152&c&&d.ngAfterContentChecked(),4194304&c&&d.ngAfterViewInit(),8388608&c&&d.ngAfterViewChecked(),131072&c&&d.ngOnDestroy())}function Jc(a,b,c){var d=[];for(var e in c){var f=c[e];d.push({propName:e,bindingType:f})}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:a,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:b,filterId:pb(b),bindings:d},ngContent:null}}function Kc(){return new Kg}function Lc(a){for(var b=a.def.nodeMatchedQueries;a.parent&&ob(a);){var c=a.parentNodeDef;a=a.parent;for(var d=c.index+c.childCount,e=0;e<=d;e++){var f=a.def.nodes[e];67108864&f.flags&&536870912&f.flags&&(f.query.filterId&b)===f.query.filterId&&Ua(a,e).setDirty(),!(1&f.flags&&e+f.childCount<c.index)&&67108864&f.childFlags&&536870912&f.childFlags||(e+=f.childCount)}}if(134217728&a.def.nodeFlags)for(var e=0;e<a.def.nodes.length;e++){var f=a.def.nodes[e];134217728&f.flags&&536870912&f.flags&&Ua(a,e).setDirty(),e+=f.childCount}}function Mc(a,b){var c=Ua(a,b.index);if(c.dirty){var d,e=void 0;if(67108864&b.flags){var f=b.parent.parent;e=Nc(a,f.index,f.index+f.childCount,b.query,[]),d=Sa(a,b.parent.index).instance}else 134217728&b.flags&&(e=Nc(a,0,a.def.nodes.length-1,b.query,[]),d=a.component);c.reset(e);for(var g=b.query.bindings,h=!1,i=0;i<g.length;i++){var j=g[i],k=void 0;switch(j.bindingType){case 0:k=c.first;break;case 1:k=c,h=!0}d[j.propName]=k}h&&c.notifyOnChanges()}}function Nc(a,b,c,d,e){for(var f=b;f<=c;f++){var g=a.def.nodes[f],h=g.matchedQueries[d.id];if(null!=h&&e.push(Oc(a,g,h)),1&g.flags&&g.element.template&&(g.element.template.nodeMatchedQueries&d.filterId)===d.filterId){var i=Ra(a,f);if((g.childMatchedQueries&d.filterId)===d.filterId&&(Nc(a,f+1,f+g.childCount,d,e),f+=g.childCount),16777216&g.flags)for(var j=i.viewContainer._embeddedViews,k=0;k<j.length;k++){var l=j[k],m=jb(l);m&&m===i&&Nc(l,0,l.def.nodes.length-1,d,e)}var n=i.template._projectedViews;if(n)for(var k=0;k<n.length;k++){var o=n[k];Nc(o,0,o.def.nodes.length-1,d,e)}}(g.childMatchedQueries&d.filterId)!==d.filterId&&(f+=g.childCount)}return e}function Oc(a,b,c){if(null!=c){var d=void 0;switch(c){case 1:d=Ra(a,b.index).renderElement;break;case 0:d=new Hg(Ra(a,b.index).renderElement);break;case 2:d=Ra(a,b.index).template;break;case 3:d=Ra(a,b.index).viewContainer;break;case 4:d=Sa(a,b.index).instance}return d}}function Pc(a,b){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:a,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:b}}}function Qc(a,b,c){var d=sb(a,b,c);if(d){xb(a,c.ngContent.index,1,d,null,void 0)}}function Rc(a){return Uc(128,new Array(a+1))}function Sc(a){return Uc(32,new Array(a))}function Tc(a){for(var b=Object.keys(a),c=b.length,d=new Array(c),e=0;e<c;e++){var f=b[e];d[a[f]]=f}return Uc(64,d)}function Uc(a,b){for(var c=new Array(b.length),d=0;d<b.length;d++){var e=b[d];c[d]={flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:a,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:c,bindingFlags:Bb(c),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Vc(a,b){return{value:void 0}}function Wc(a,b,c,d,e,f,g,h,i,j,k,l){var m=b.bindings,n=!1,o=m.length;if(o>0&&eb(a,b,0,c)&&(n=!0),o>1&&eb(a,b,1,d)&&(n=!0),o>2&&eb(a,b,2,e)&&(n=!0),o>3&&eb(a,b,3,f)&&(n=!0),o>4&&eb(a,b,4,g)&&(n=!0),o>5&&eb(a,b,5,h)&&(n=!0),o>6&&eb(a,b,6,i)&&(n=!0),o>7&&eb(a,b,7,j)&&(n=!0),o>8&&eb(a,b,8,k)&&(n=!0),o>9&&eb(a,b,9,l)&&(n=!0),n){var p=Ta(a,b.index),q=void 0;switch(201347067&b.flags){case 32:q=new Array(m.length),o>0&&(q[0]=c),o>1&&(q[1]=d),o>2&&(q[2]=e),o>3&&(q[3]=f),o>4&&(q[4]=g),o>5&&(q[5]=h),o>6&&(q[6]=i),o>7&&(q[7]=j),o>8&&(q[8]=k),o>9&&(q[9]=l);break;case 64:q={},o>0&&(q[m[0].name]=c),o>1&&(q[m[1].name]=d),o>2&&(q[m[2].name]=e),o>3&&(q[m[3].name]=f),o>4&&(q[m[4].name]=g),o>5&&(q[m[5].name]=h),o>6&&(q[m[6].name]=i),o>7&&(q[m[7].name]=j),o>8&&(q[m[8].name]=k),o>9&&(q[m[9].name]=l);break;case 128:var r=c;switch(o){case 1:q=r.transform(c);break;case 2:q=r.transform(d);break;case 3:q=r.transform(d,e);break;case 4:q=r.transform(d,e,f);break;case 5:q=r.transform(d,e,f,g);break;case 6:q=r.transform(d,e,f,g,h);break;case 7:q=r.transform(d,e,f,g,h,i);break;case 8:q=r.transform(d,e,f,g,h,i,j);break;case 9:q=r.transform(d,e,f,g,h,i,j,k);break;case 10:q=r.transform(d,e,f,g,h,i,j,k,l)}}p.value=q}return n}function Xc(a,b,c){for(var d=b.bindings,e=!1,f=0;f<c.length;f++)eb(a,b,f,c[f])&&(e=!0);if(e){var g=Ta(a,b.index),h=void 0;switch(201347067&b.flags){case 32:h=c;break;case 64:h={};for(var f=0;f<c.length;f++)h[d[f].name]=c[f];break;case 128:var i=c[0],j=c.slice(1);h=i.transform.apply(i,j)}g.value=h}return e}function Yc(a,b){for(var c=new Array(b.length-1),d=1;d<b.length;d++)c[d-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:b[d]};return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:a,childCount:0,bindings:c,bindingFlags:Bb(c),outputs:[],element:null,provider:null,text:{prefix:b[0]},query:null,ngContent:null}}function Zc(a,b,c){var d,e=a.renderer;d=e.createText(c.text.prefix);var f=sb(a,b,c);return f&&e.appendChild(f,d),{renderText:d}}function $c(a,b,c,d,e,f,g,h,i,j,k,l){var m=!1,n=b.bindings,o=n.length;if(o>0&&eb(a,b,0,c)&&(m=!0),o>1&&eb(a,b,1,d)&&(m=!0),o>2&&eb(a,b,2,e)&&(m=!0),o>3&&eb(a,b,3,f)&&(m=!0),o>4&&eb(a,b,4,g)&&(m=!0),o>5&&eb(a,b,5,h)&&(m=!0),o>6&&eb(a,b,6,i)&&(m=!0),o>7&&eb(a,b,7,j)&&(m=!0),o>8&&eb(a,b,8,k)&&(m=!0),o>9&&eb(a,b,9,l)&&(m=!0),m){var p=b.text.prefix;o>0&&(p+=ad(c,n[0])),o>1&&(p+=ad(d,n[1])),o>2&&(p+=ad(e,n[2])),o>3&&(p+=ad(f,n[3])),o>4&&(p+=ad(g,n[4])),o>5&&(p+=ad(h,n[5])),o>6&&(p+=ad(i,n[6])),o>7&&(p+=ad(j,n[7])),o>8&&(p+=ad(k,n[8])),o>9&&(p+=ad(l,n[9]));var q=Qa(a,b.index).renderText;a.renderer.setValue(q,p)}return m}function _c(a,b,c){for(var d=b.bindings,e=!1,f=0;f<c.length;f++)eb(a,b,f,c[f])&&(e=!0);if(e){for(var g="",f=0;f<c.length;f++)g+=ad(c[f],d[f]);g=b.text.prefix+g;var h=Qa(a,b.index).renderText;a.renderer.setValue(h,g)}return e}function ad(a,b){return(null!=a?a.toString():"")+b.suffix}function bd(a,b,c,d){for(var e=0,f=0,g=0,h=0,i=0,j=null,k=!1,l=!1,m=null,n=0;n<b.length;n++){for(;j&&n>j.index+j.childCount;){var o=j.parent;o&&(o.childFlags|=j.childFlags,o.childMatchedQueries|=j.childMatchedQueries),j=o}var p=b[n];p.index=n,p.parent=j,p.bindingIndex=e,p.outputIndex=f;var q=void 0;if(q=j&&1&j.flags&&!j.element.name?j.renderParent:j,p.renderParent=q,p.element){var r=p.element;r.publicProviders=j?j.element.publicProviders:Object.create(null),r.allProviders=r.publicProviders,k=!1,l=!1}if(cd(j,p,b.length),g|=p.flags,i|=p.matchedQueryIds,p.element&&p.element.template&&(i|=p.element.template.nodeMatchedQueries),j?(j.childFlags|=p.flags,j.directChildFlags|=p.flags,j.childMatchedQueries|=p.matchedQueryIds,p.element&&p.element.template&&(j.childMatchedQueries|=p.element.template.nodeMatchedQueries)):h|=p.flags,e+=p.bindings.length,f+=p.outputs.length,!q&&3&p.flags&&(m=p),20224&p.flags){k||(k=!0,j.element.publicProviders=Object.create(j.element.publicProviders),j.element.allProviders=j.element.publicProviders);var s=0!=(8192&p.flags),t=0!=(32768&p.flags);!s||t?j.element.publicProviders[_a(p.provider.token)]=p:(l||(l=!0,j.element.allProviders=Object.create(j.element.publicProviders)),j.element.allProviders[_a(p.provider.token)]=p),t&&(j.element.componentProvider=p)}p.childCount&&(j=p)}for(;j;){var o=j.parent;o&&(o.childFlags|=j.childFlags,o.childMatchedQueries|=j.childMatchedQueries),j=o}var u=function(a,c,d,e){return b[c].element.handleEvent(a,d,e)};return{factory:null,nodeFlags:g,rootNodeFlags:h,nodeMatchedQueries:i,flags:a,nodes:b,updateDirectives:c||Ah,updateRenderer:d||Ah,handleEvent:u||Ah,bindingCount:e,outputCount:f,lastRenderRootNode:m}}function cd(a,b,c){var d=b.element&&b.element.template;if(d){if(!d.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(d.lastRenderRootNode&&16777216&d.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+b.index+"!")}if(20224&b.flags){if(0==(1&(a?a.flags:0)))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+b.index+"!")}if(b.query){if(67108864&b.flags&&(!a||0==(16384&a.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+b.index+"!");if(134217728&b.flags&&a)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+b.index+"!")}if(b.childCount){var e=a?a.index+a.childCount:c-1;if(b.index<=e&&b.index+b.childCount>e)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+b.index+"!")}}function dd(a,b,c,d){var e=gd(a.root,a.renderer,a,b,c);return hd(e,a.component,d),id(e),e}function ed(a,b,c){var d=gd(a,a.renderer,null,null,b);return hd(d,c,c),id(d),d}function fd(a,b,c,d){var e,f=b.element.componentRendererType;return e=f?a.root.rendererFactory.createRenderer(d,f):a.root.renderer,gd(a.root,e,a,b.element.componentProvider,c)}function gd(a,b,c,d,e){var f=new Array(e.nodes.length),g=e.outputCount?new Array(e.outputCount):null;return{def:e,parent:c,viewContainerParent:null,parentNodeDef:d,context:null,component:null,nodes:f,state:13,root:a,renderer:b,oldValues:new Array(e.bindingCount),disposables:g}}function hd(a,b,c){a.component=b,a.context=c}function id(a){var b;if(nb(a)){var c=a.parentNodeDef;b=Ra(a.parent,c.parent.index).renderElement}for(var d=a.def,e=a.nodes,f=0;f<d.nodes.length;f++){var g=d.nodes[f];zh.setCurrentNode(a,f);var h=void 0;switch(201347067&g.flags){case 1:var i=Hb(a,b,g),j=void 0;if(33554432&g.flags){var k=tb(g.element.componentView);j=zh.createComponentView(a,g,k,i)}Ib(a,j,g,i),h={renderElement:i,componentView:j,viewContainer:null,template:g.element.template?lc(a,g):void 0},16777216&g.flags&&(h.viewContainer=jc(a,g,h));break;case 2:h=Zc(a,b,g);break;case 512:case 1024:case 2048:case 256:var l=uc(a,g);h={instance:l};break;case 16:var l=vc(a,g);h={instance:l};break;case 16384:var l=wc(a,g);if(h={instance:l},32768&g.flags){hd(Ra(a,g.parent.index).componentView,l,l)}break;case 32:case 64:case 128:h=Vc(a,g);break;case 67108864:case 134217728:h=Kc();break;case 8:Qc(a,b,g),h=void 0}e[f]=h}vd(a,ci.CreateViewNodes),zd(a,201326592,268435456,0)}function jd(a){md(a),zh.updateDirectives(a,1),wd(a,ci.CheckNoChanges),zh.updateRenderer(a,1),vd(a,ci.CheckNoChanges),a.state&=-97}function kd(a){1&a.state?(a.state&=-2,a.state|=2):a.state&=-3,md(a),zh.updateDirectives(a,0),wd(a,ci.CheckAndUpdate),zd(a,67108864,536870912,0),Gc(a,2097152|(2&a.state?1048576:0)),zh.updateRenderer(a,0),vd(a,ci.CheckAndUpdate),zd(a,134217728,536870912,0),Gc(a,8388608|(2&a.state?4194304:0)),2&a.def.flags&&(a.state&=-9),a.state&=-97}function ld(a,b,c,d,e,f,g,h,i,j,k,l,m){return 0===c?nd(a,b,d,e,f,g,h,i,j,k,l,m):od(a,b,d)}function md(a){var b=a.def;if(4&b.nodeFlags)for(var c=0;c<b.nodes.length;c++){var d=b.nodes[c];if(4&d.flags){var e=Ra(a,c).template._projectedViews;if(e)for(var f=0;f<e.length;f++){var g=e[f];g.state|=32,hb(g,a)}}else 0==(4&d.childFlags)&&(c+=d.childCount)}}function nd(a,b,c,d,e,f,g,h,i,j,k,l){var m=!1;switch(201347067&b.flags){case 1:m=Kb(a,b,c,d,e,f,g,h,i,j,k,l);break;case 2:m=$c(a,b,c,d,e,f,g,h,i,j,k,l);break;case 16384:m=yc(a,b,c,d,e,f,g,h,i,j,k,l);break;case 32:case 64:case 128:m=Wc(a,b,c,d,e,f,g,h,i,j,k,l)}return m}function od(a,b,c){var d=!1;switch(201347067&b.flags){case 1:d=Lb(a,b,c);break;case 2:d=_c(a,b,c);break;case 16384:d=zc(a,b,c);break;case 32:case 64:case 128:d=Xc(a,b,c)}if(d)for(var e=b.bindings.length,f=b.bindingIndex,g=a.oldValues,h=0;h<e;h++)g[f+h]=c[h];return d}function pd(a,b,c,d,e,f,g,h,i,j,k,l,m){return 0===c?qd(a,b,d,e,f,g,h,i,j,k,l,m):rd(a,b,d),!1}function qd(a,b,c,d,e,f,g,h,i,j,k,l){var m=b.bindings.length;m>0&&fb(a,b,0,c),m>1&&fb(a,b,1,d),m>2&&fb(a,b,2,e),m>3&&fb(a,b,3,f),m>4&&fb(a,b,4,g),m>5&&fb(a,b,5,h),m>6&&fb(a,b,6,i),m>7&&fb(a,b,7,j),m>8&&fb(a,b,8,k),m>9&&fb(a,b,9,l)}function rd(a,b,c){for(var d=0;d<c.length;d++)fb(a,b,d,c[d])}function sd(a,b){if(Ua(a,b.index).dirty)throw Va(zh.createDebugContext(a,b.index),"Query "+b.query.id+" not dirty","Query "+b.query.id+" dirty",0!=(1&a.state))}function td(a){if(!(128&a.state)){if(wd(a,ci.Destroy),vd(a,ci.Destroy),Gc(a,131072),a.disposables)for(var b=0;b<a.disposables.length;b++)a.disposables[b]();bc(a),a.renderer.destroyNode&&ud(a),nb(a)&&a.renderer.destroy(),a.state|=128}}function ud(a){for(var b=a.def.nodes.length,c=0;c<b;c++){var d=a.def.nodes[c];1&d.flags?a.renderer.destroyNode(Ra(a,c).renderElement):2&d.flags?a.renderer.destroyNode(Qa(a,c).renderText):(67108864&d.flags||134217728&d.flags)&&Ua(a,c).destroy()}}function vd(a,b){var c=a.def;if(33554432&c.nodeFlags)for(var d=0;d<c.nodes.length;d++){var e=c.nodes[d];33554432&e.flags?xd(Ra(a,d).componentView,b):0==(33554432&e.childFlags)&&(d+=e.childCount)}}function wd(a,b){var c=a.def;if(16777216&c.nodeFlags)for(var d=0;d<c.nodes.length;d++){var e=c.nodes[d];if(16777216&e.flags)for(var f=Ra(a,d).viewContainer._embeddedViews,g=0;g<f.length;g++)xd(f[g],b);else 0==(16777216&e.childFlags)&&(d+=e.childCount)}}function xd(a,b){var c=a.state;switch(b){case ci.CheckNoChanges:0==(128&c)&&(12==(12&c)?jd(a):64&c&&yd(a,ci.CheckNoChangesProjectedViews));break;case ci.CheckNoChangesProjectedViews:0==(128&c)&&(32&c?jd(a):64&c&&yd(a,b));break;case ci.CheckAndUpdate:0==(128&c)&&(12==(12&c)?kd(a):64&c&&yd(a,ci.CheckAndUpdateProjectedViews));break;case ci.CheckAndUpdateProjectedViews:0==(128&c)&&(32&c?kd(a):64&c&&yd(a,b));break;case ci.Destroy:td(a);break;case ci.CreateViewNodes:id(a)}}function yd(a,b){wd(a,b),vd(a,b)}function zd(a,b,c,d){if(a.def.nodeFlags&b&&a.def.nodeFlags&c)for(var e=a.def.nodes.length,f=0;f<e;f++){var g=a.def.nodes[f];if(g.flags&b&&g.flags&c)switch(zh.setCurrentNode(a,g.index),d){case 0:Mc(a,g);break;case 1:sd(a,g)}g.childFlags&b&&g.childFlags&c||(f+=g.childCount)}}function Ad(){if(!di){di=!0;var a=na()?Cd():Bd();zh.setCurrentNode=a.setCurrentNode,zh.createRootView=a.createRootView,zh.createEmbeddedView=a.createEmbeddedView,zh.createComponentView=a.createComponentView,zh.createNgModuleRef=a.createNgModuleRef,zh.overrideProvider=a.overrideProvider,zh.clearProviderOverrides=a.clearProviderOverrides,zh.checkAndUpdateView=a.checkAndUpdateView,zh.checkNoChangesView=a.checkNoChangesView,zh.destroyView=a.destroyView,zh.resolveDep=Dc,zh.createDebugContext=a.createDebugContext,zh.handleEvent=a.handleEvent,zh.updateDirectives=a.updateDirectives,zh.updateRenderer=a.updateRenderer,zh.dirtyParentQueries=Lc}}function Bd(){return{setCurrentNode:function(){},createRootView:Dd,createEmbeddedView:dd,createComponentView:fd,createNgModuleRef:pc,overrideProvider:Ah,clearProviderOverrides:Ah,checkAndUpdateView:kd,checkNoChangesView:jd,destroyView:td,createDebugContext:function(a,b){return new ki(a,b)},handleEvent:function(a,b,c,d){return a.def.handleEvent(a,b,c,d)},updateDirectives:function(a,b){return a.def.updateDirectives(0===b?Nd:Od,a)},updateRenderer:function(a,b){return a.def.updateRenderer(0===b?Nd:Od,a)}}}function Cd(){return{setCurrentNode:Sd,createRootView:Ed,createEmbeddedView:Gd,createComponentView:Hd,createNgModuleRef:Id,overrideProvider:Jd,clearProviderOverrides:Kd,checkAndUpdateView:Pd,checkNoChangesView:Qd,destroyView:Rd,createDebugContext:function(a,b){return new ki(a,b)},handleEvent:Td,updateDirectives:Ud,updateRenderer:Vd}}function Dd(a,b,c,d,e,f){return ed(Fd(a,e,e.injector.get(Eg),b,c),d,f)}function Ed(a,b,c,d,e,f){var g=e.injector.get(Eg),h=Fd(a,e,new li(g),b,c),i=Ld(d);return ee(fi.create,ed,null,[h,i,f])}function Fd(a,b,c,d,e){var f=b.injector.get(xh),g=b.injector.get(tf);return{ngModule:b,injector:a,projectableNodes:d,selectorOrNode:e,sanitizer:f,rendererFactory:c,renderer:c.createRenderer(null,null),errorHandler:g}}function Gd(a,b,c,d){var e=Ld(c);return ee(fi.create,dd,null,[a,b,e,d])}function Hd(a,b,c,d){var e=Ld(c);return ee(fi.create,fd,null,[a,b,e,d])}function Id(a,b,c,d){return pc(a,b,c,Md(d))}function Jd(a){ei.set(a.token,a)}function Kd(){ei.clear()}function Ld(a){function b(a){for(var b=[],c=null,d=0;d<a.nodes.length;d++){var e=a.nodes[d];1&e.flags&&(c=e),c&&3840&e.flags&&ei.has(e.provider.token)&&(b.push(c.index),c=null)}return b}function c(a,b){for(var c=b+1;c<a.nodes.length;c++){var d=a.nodes[c];if(1&d.flags)return;if(3840&d.flags){d.flags|=4096;var e=d.provider,f=ei.get(e.token);f&&(d.flags=-3841&d.flags|f.flags,e.deps=rb(f.deps),e.value=f.value)}}}if(0===ei.size)return a;var d=b(a);if(0===d.length)return a;a=a.factory(function(){return Ah});for(var e=0;e<d.length;e++)c(a,d[e]);return a}function Md(a){function b(a){return a.providers.some(function(a){return!!(3840&a.flags)&&ei.has(a.token)})}function c(a){for(var b=0;b<a.providers.length;b++){var c=a.providers[b];c.flags|=4096;var d=ei.get(c.token);d&&(c.flags=-3841&c.flags|d.flags,c.deps=rb(d.deps),c.value=d.value)}}return 0!==ei.size&&b(a)?(a=a.factory(function(){return Ah}),c(a),a):a}function Nd(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=a.def.nodes[b];return ld(a,n,c,d,e,f,g,h,i,j,k,l,m),224&n.flags?Ta(a,b).value:void 0}function Od(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=a.def.nodes[b];return pd(a,n,c,d,e,f,g,h,i,j,k,l,m),224&n.flags?Ta(a,b).value:void 0}function Pd(a){return ee(fi.detectChanges,kd,null,[a])}function Qd(a){return ee(fi.checkNoChanges,jd,null,[a])}function Rd(a){return ee(fi.destroy,td,null,[a])}function Sd(a,b){hi=a,ii=b}function Td(a,b,c,d){return Sd(a,b),ee(fi.handleEvent,a.def.handleEvent,null,[a,b,c,d])}function Ud(a,b){function c(a,c,d){for(var e=[],f=3;f<arguments.length;f++)e[f-3]=arguments[f];var g=a.def.nodes[c];return 0===b?Wd(a,g,d,e):Xd(a,g,d,e),16384&g.flags&&Sd(a,_d(a,c)),224&g.flags?Ta(a,g.index).value:void 0}if(128&a.state)throw $a(fi[gi]);return Sd(a,_d(a,0)),a.def.updateDirectives(c,a)}function Vd(a,b){function c(a,c,d){for(var e=[],f=3;f<arguments.length;f++)e[f-3]=arguments[f];var g=a.def.nodes[c];return 0===b?Wd(a,g,d,e):Xd(a,g,d,e),3&g.flags&&Sd(a,ae(a,c)),224&g.flags?Ta(a,g.index).value:void 0}if(128&a.state)throw $a(fi[gi]);return Sd(a,ae(a,0)),a.def.updateRenderer(c,a)}function Wd(a,b,c,d){if(ld.apply(void 0,[a,b,c].concat(d))){var e=1===c?d[0]:d;if(16384&b.flags){for(var f={},g=0;g<b.bindings.length;g++){var h=b.bindings[g],i=e[g];8&h.flags&&(f[Yd(h.nonMinifiedName)]=$d(i))}var j=b.parent,k=Ra(a,j.index).renderElement;if(j.element.name)for(var l in f){var i=f[l];null!=i?a.renderer.setAttribute(k,l,i):a.renderer.removeAttribute(k,l)}else a.renderer.setValue(k,"bindings="+JSON.stringify(f,null,2))}}}function Xd(a,b,c,d){pd.apply(void 0,[a,b,c].concat(d))}function Yd(a){return"ng-reflect-"+(a=Zd(a.replace(/[$@]/g,"_")))}function Zd(a){return a.replace(ji,function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return"-"+a[1].toLowerCase()})}function $d(a){try{return null!=a?a.toString().slice(0,30):a}catch(a){return"[ERROR] Exception while trying to serialize the value"}}function _d(a,b){for(var c=b;c<a.def.nodes.length;c++){var d=a.def.nodes[c];if(16384&d.flags&&d.bindings&&d.bindings.length)return c}return null}function ae(a,b){for(var c=b;c<a.def.nodes.length;c++){var d=a.def.nodes[c];if(3&d.flags&&d.bindings&&d.bindings.length)return c}return null}function be(a,b){for(var c=-1,d=0;d<=b;d++){3&a.nodes[d].flags&&c++}return c}function ce(a){for(;a&&!nb(a);)a=a.parent;return a.parent?Ra(a.parent,kb(a).index):null}function de(a,b,c){for(var d in b.references)c[d]=Oc(a,b,b.references[d])}function ee(a,b,c,d){var e=gi,f=hi,g=ii;try{gi=a;var h=b.apply(c,d);return hi=f,ii=g,gi=e,h}catch(a){if(Za(a)||!hi)throw a;throw Wa(a,fe())}}function fe(){return hi?new ki(hi,ii):null}function ge(a){return Ad(),zh.overrideProvider(a)}function he(){return Ad(),zh.clearProviderOverrides()}function ie(a,b,c){return new ni(a,b,c)}function je(a,b){return{type:7,name:a,definitions:b,options:{}}}function ke(a,b){return void 0===b&&(b=null),{type:4,styles:b,timings:a}}function le(a,b){return void 0===b&&(b=null),{type:3,steps:a,options:b}}function me(a,b){return void 0===b&&(b=null),{type:2,steps:a,options:b}}function ne(a){return{type:6,styles:a,offset:null}}function oe(a,b,c){return{type:0,name:a,styles:b,options:c}}function pe(a){return{type:5,steps:a}}function qe(a,b,c){return void 0===c&&(c=null),{type:1,expr:a,animation:b,options:c}}function re(a,b){return je(a,b)}function se(a,b){return ke(a,b)}function te(a){return le(a)}function ue(a){return me(a)}function ve(a){return ne(a)}function we(a,b){return oe(a,b)}function xe(a){return pe(a)}function ye(a,b){return qe(a,b)}var ze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},Ae=function(){function a(a){this._desc=a}return a.prototype.toString=function(){return"Token "+this._desc},a}(),Be=function(a){function b(b){return a.call(this,b)||this}return f(b,a),b.prototype.toString=function(){return"InjectionToken "+this._desc},b}(Ae),Ce="undefined"!=typeof window&&window,De="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ee="undefined"!=typeof global&&global,Fe=Ce||Ee||De,Ge=null,He=0,Ie=Fe.Reflect,Je=new Be("AnalyzeForEntryComponents"),Ke=p("Attribute",function(a){return{attributeName:a}}),Le=function(){function a(){}return a}(),Me=q("ContentChildren",function(a,b){return void 0===b&&(b={}),Object.assign({selector:a,first:!1,isViewQuery:!1,descendants:!1},b)},Le),Ne=q("ContentChild",function(a,b){return void 0===b&&(b={}),Object.assign({selector:a,first:!0,isViewQuery:!1,descendants:!0},b)},Le),Oe=q("ViewChildren",function(a,b){return void 0===b&&(b={}),Object.assign({selector:a,first:!1,isViewQuery:!0,descendants:!0},b)},Le),Pe=q("ViewChild",function(a,b){return Object.assign({selector:a,first:!0,isViewQuery:!0,descendants:!0},b)},Le),Qe={};Qe.OnPush=0,Qe.Default=1,Qe[Qe.OnPush]="OnPush",Qe[Qe.Default]="Default";var Re={};Re.CheckOnce=0,Re.Checked=1,Re.CheckAlways=2,Re.Detached=3,Re.Errored=4,Re.Destroyed=5,Re[Re.CheckOnce]="CheckOnce",Re[Re.Checked]="Checked",Re[Re.CheckAlways]="CheckAlways",Re[Re.Detached]="Detached",Re[Re.Errored]="Errored",Re[Re.Destroyed]="Destroyed";var Se=n("Directive",function(a){return void 0===a&&(a={}),a}),Te=n("Component",function(a){return void 0===a&&(a={}),Object.assign({changeDetection:Qe.Default},a)},Se),Ue=n("Pipe",function(a){return Object.assign({pure:!0},a)}),Ve=q("Input",function(a){return{bindingPropertyName:a}}),We=q("Output",function(a){return{bindingPropertyName:a}}),Xe=q("HostBinding",function(a){return{hostPropertyName:a}}),Ye=q("HostListener",function(a,b){return{eventName:a,args:b}}),Ze={name:"custom-elements"},$e={name:"no-errors-schema"},_e=n("NgModule",function(a){return a}),af={};af.Emulated=0,af.Native=1,af.None=2,af[af.Emulated]="Emulated",af[af.Native]="Native",af[af.None]="None";var bf=function(){function a(a){void 0===a&&(a={}),this.templateUrl=a.templateUrl,this.template=a.template,this.styleUrls=a.styleUrls,this.styles=a.styles,this.encapsulation=a.encapsulation,this.animations=a.animations,this.interpolation=a.interpolation}return a}(),cf=function(){function a(a){this.full=a}return Object.defineProperty(a.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),a}(),df=new cf("4.4.1"),ef=p("Inject",function(a){return{token:a}}),ff=p("Optional"),gf=n("Injectable"),hf=p("Self"),jf=p("SkipSelf"),kf=p("Host"),lf=new Object,mf=lf,nf=function(){function a(){}return a.prototype.get=function(a,b){if(void 0===b&&(b=lf),b===lf)throw new Error("No provider for "+j(a)+"!");return b},a}(),of=function(){function a(){}return a.prototype.get=function(a,b){},a.prototype.get=function(a,b){},a}();of.THROW_IF_NOT_FOUND=lf,of.NULL=new nf;var pf="ngComponentType",qf="ngDebugContext",rf="ngOriginalError",sf="ngErrorLogger",tf=function(){function a(a){this._console=console}return a.prototype.handleError=function(a){var b=this._findOriginalError(a),c=this._findContext(a),d=w(a);d(this._console,"ERROR",a),b&&d(this._console,"ORIGINAL ERROR",b),c&&d(this._console,"ERROR CONTEXT",c)},a.prototype._findContext=function(a){return a?u(a)?u(a):this._findContext(v(a)):null},a.prototype._findOriginalError=function(a){for(var b=v(a);b&&v(b);)b=v(b);return b},a}(),uf=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 j(this.token)},enumerable:!0,configurable:!0}),a.get=function(a){return wf.get(t(a))},Object.defineProperty(a,"numberOfKeys",{get:function(){return wf.numberOfKeys},enumerable:!0,configurable:!0}),a}(),vf=function(){function a(){this._allKeys=new Map}return a.prototype.get=function(a){if(a instanceof uf)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var b=new uf(a,uf.numberOfKeys);return this._allKeys.set(a,b),b},Object.defineProperty(a.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),a}(),wf=new vf,xf=Function,yf=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,zf=function(){function a(a){this._reflect=a||Fe.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]=arguments[c];return new(a.bind.apply(a,[void 0].concat(b)))}},a.prototype._zipTypesAndAnnotations=function(a,b){var c;c=void 0===a?new Array(b.length):new Array(a.length);for(var d=0;d<c.length;d++)void 0===a?c[d]=[]:a[d]!=Object?c[d]=[a[d]]:c[d]=[],b&&null!=b[d]&&(c[d]=c[d].concat(b[d]));return c},a.prototype._ownParameters=function(a,b){if(yf.exec(a.toString()))return null;if(a.parameters&&a.parameters!==b.parameters)return a.parameters;var c=a.ctorParameters;if(c&&c!==b.ctorParameters){var d="function"==typeof c?c():c,e=d.map(function(a){return a&&a.type}),f=d.map(function(a){return a&&L(a.decorators)});return this._zipTypesAndAnnotations(e,f)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){var f=this._reflect.getOwnMetadata("parameters",a),e=this._reflect.getOwnMetadata("design:paramtypes",a);if(e||f)return this._zipTypesAndAnnotations(e,f)}return new Array(a.length).fill(void 0)},a.prototype.parameters=function(a){if(!K(a))return[];var b=M(a),c=this._ownParameters(a,b);return c||b===Object||(c=this.parameters(b)),c||[]},a.prototype._ownAnnotations=function(a,b){if(a.annotations&&a.annotations!==b.annotations){var c=a.annotations;return"function"==typeof c&&c.annotations&&(c=c.annotations),c}return a.decorators&&a.decorators!==b.decorators?L(a.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",a):null},a.prototype.annotations=function(a){if(!K(a))return[];var b=M(a),c=this._ownAnnotations(a,b)||[];return(b!==Object?this.annotations(b):[]).concat(c)},a.prototype._ownPropMetadata=function(a,b){if(a.propMetadata&&a.propMetadata!==b.propMetadata){var c=a.propMetadata;return"function"==typeof c&&c.propMetadata&&(c=c.propMetadata),c}if(a.propDecorators&&a.propDecorators!==b.propDecorators){var d=a.propDecorators,e={};return Object.keys(d).forEach(function(a){e[a]=L(d[a])}),e}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",a):null},a.prototype.propMetadata=function(a){if(!K(a))return{};var b=M(a),c={};if(b!==Object){var d=this.propMetadata(b);Object.keys(d).forEach(function(a){c[a]=d[a]})}var e=this._ownPropMetadata(a,b);return e&&Object.keys(e).forEach(function(a){var b=[];c.hasOwnProperty(a)&&b.push.apply(b,c[a]),b.push.apply(b,e[a]),c[a]=b}),c},a.prototype.hasLifecycleHook=function(a,b){return a instanceof xf&&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:"./"+j(a)},a.prototype.resourceUri=function(a){return"./"+j(a)},a.prototype.resolveIdentifier=function(a,b,c,d){return d},a.prototype.resolveEnum=function(a,b){return a[b]},a}(),Af=function(){function a(a){this.reflectionCapabilities=a}return a.prototype.updateCapabilities=function(a){this.reflectionCapabilities=a},a.prototype.factory=function(a){return this.reflectionCapabilities.factory(a)},a.prototype.parameters=function(a){return this.reflectionCapabilities.parameters(a)},a.prototype.annotations=function(a){return this.reflectionCapabilities.annotations(a)},a.prototype.propMetadata=function(a){return this.reflectionCapabilities.propMetadata(a)},a.prototype.hasLifecycleHook=function(a,b){return this.reflectionCapabilities.hasLifecycleHook(a,b)},a.prototype.getter=function(a){return this.reflectionCapabilities.getter(a)},a.prototype.setter=function(a){return this.reflectionCapabilities.setter(a)},a.prototype.method=function(a){return this.reflectionCapabilities.method(a)},a.prototype.importUri=function(a){return this.reflectionCapabilities.importUri(a)},a.prototype.resourceUri=function(a){return this.reflectionCapabilities.resourceUri(a)},a.prototype.resolveIdentifier=function(a,b,c,d){return this.reflectionCapabilities.resolveIdentifier(a,b,c,d)},a.prototype.resolveEnum=function(a,b){return this.reflectionCapabilities.resolveEnum(a,b)},a}(),Bf=new Af(new zf),Cf=function(){function a(a,b,c){this.key=a,this.optional=b,this.visibility=c}return a.fromKey=function(b){return new a(b,!1,null)},a}(),Df=[],Ef=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}(),Ff=function(){function a(a,b){this.factory=a,this.dependencies=b}return a}(),Gf=new Object,Hf=function(){function a(){}return a.resolve=function(a){return P(a)},a.resolveAndCreate=function(b,c){var d=a.resolve(b);return a.fromResolvedProviders(d,c)},a.fromResolvedProviders=function(a,b){return new If(a,b)},a.prototype.parent=function(){},a.prototype.resolveAndCreateChild=function(a){},a.prototype.createChildFromResolved=function(a){},a.prototype.resolveAndInstantiate=function(a){},a.prototype.instantiateResolved=function(a){},a.prototype.get=function(a,b){},a}(),If=function(){function a(a,b){this._constructionCounter=0,this._providers=a,this._parent=b||null;var c=a.length;this.keyIds=new Array(c),this.objs=new Array(c);for(var d=0;d<c;d++)this.keyIds[d]=a[d].key.id,this.objs[d]=Gf}return a.prototype.get=function(a,b){return void 0===b&&(b=mf),this._getByKey(uf.get(a),null,b)},Object.defineProperty(a.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),a.prototype.resolveAndCreateChild=function(a){var b=Hf.resolve(a);return this.createChildFromResolved(b)},a.prototype.createChildFromResolved=function(b){var c=new a(b);return c._parent=this,c},a.prototype.resolveAndInstantiate=function(a){return this.instantiateResolved(Hf.resolve([a])[0])},a.prototype.instantiateResolved=function(a){return this._instantiateProvider(a)},a.prototype.getProviderAtIndex=function(a){if(a<0||a>=this._providers.length)throw I(a);return this._providers[a]},a.prototype._new=function(a){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw E(this,a.key);return this._instantiateProvider(a)},a.prototype._getMaxNumberOfObjects=function(){return this.objs.length},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=this,e=b.factory;try{c=b.dependencies.map(function(a){return d._getByReflectiveDependency(a)})}catch(b){throw b.addKey&&b.addKey(this,a.key),b}var f;try{f=e.apply(void 0,c)}catch(b){throw F(this,b,b.stack,a.key)}return f},a.prototype._getByReflectiveDependency=function(a){return this._getByKey(a.key,a.visibility,a.optional?null:mf)},a.prototype._getByKey=function(a,b,c){return a===Jf?this:b instanceof hf?this._getByKeySelf(a,c):this._getByKeyDefault(a,c,b)},a.prototype._getObjByKeyId=function(a){for(var b=0;b<this.keyIds.length;b++)if(this.keyIds[b]===a)return this.objs[b]===Gf&&(this.objs[b]=this._new(this._providers[b])),this.objs[b];return Gf},a.prototype._throwOrNull=function(a,b){if(b!==mf)return b;throw D(this,a)},a.prototype._getByKeySelf=function(a,b){var c=this._getObjByKeyId(a.id);return c!==Gf?c:this._throwOrNull(a,b)},a.prototype._getByKeyDefault=function(b,c,d){var e;for(e=d instanceof jf?this._parent:this;e instanceof a;){var f=e,g=f._getObjByKeyId(b.id);if(g!==Gf)return g;e=f._parent}return null!==e?e.get(b.token,c):this._throwOrNull(b,c)},Object.defineProperty(a.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+W(this,function(a){return' "'+a.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),a.prototype.toString=function(){return this.displayName},a}(),Jf=uf.get(of),Kf=new Be("Application Initializer"),Lf=function(){function a(a){var b=this;this.appInits=a,this.initialized=!1,this._done=!1,this._donePromise=new Promise(function(a,c){b.resolve=a,b.reject=c})}return a.prototype.runInitializers=function(){var a=this;if(!this.initialized){var b=[],c=function(){a._done=!0,a.resolve()};if(this.appInits)for(var d=0;d<this.appInits.length;d++){var e=this.appInits[d]();X(e)&&b.push(e)}Promise.all(b).then(function(){c()}).catch(function(b){a.reject(b)}),0===b.length&&c(),this.initialized=!0}},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}();Lf.decorators=[{type:gf}],Lf.ctorParameters=function(){return[{type:Array,decorators:[{type:ef,args:[Kf]},{type:ff}]}]};var Mf=new Be("AppId"),Nf={provide:Mf,useFactory:Z,deps:[]},Of=new Be("Platform Initializer"),Pf=new Be("Platform ID"),Qf=new Be("appBootstrapListener"),Rf=new Be("Application Packages Root URL"),Sf=function(){function a(){}return a.prototype.log=function(a){console.log(a)},a.prototype.warn=function(a){console.warn(a)},a}();Sf.decorators=[{type:gf}],Sf.ctorParameters=function(){return[]};var Tf=function(){function a(a,b){this.ngModuleFactory=a,this.componentFactories=b}return a}(),Uf=function(){function a(){}return a.prototype.compileModuleSync=function(a){throw _()},a.prototype.compileModuleAsync=function(a){throw _()},a.prototype.compileModuleAndAllComponentsSync=function(a){throw _()},a.prototype.compileModuleAndAllComponentsAsync=function(a){throw _()},a.prototype.getNgContentSelectors=function(a){throw _()},a.prototype.clearCache=function(){},a.prototype.clearCacheFor=function(a){},a}();Uf.decorators=[{type:gf}],Uf.ctorParameters=function(){return[]};var Vf=new Be("compilerOptions"),Wf=function(){function a(){}return a.prototype.createCompiler=function(a){},a}(),Xf=function(){function a(){}return a.prototype.location=function(){},a.prototype.injector=function(){},a.prototype.instance=function(){},a.prototype.hostView=function(){},a.prototype.changeDetectorRef=function(){},a.prototype.componentType=function(){},a.prototype.destroy=function(){},a.prototype.onDestroy=function(a){},a}(),Yf=function(){function a(){}return a.prototype.selector=function(){},a.prototype.componentType=function(){},a.prototype.ngContentSelectors=function(){},a.prototype.inputs=function(){},a.prototype.outputs=function(){},a.prototype.create=function(a,b,c,d){},a}(),Zf="ngComponent",$f=function(){function a(){}return a.prototype.resolveComponentFactory=function(a){throw aa(a)},a}(),_f=function(){function a(){}return a.prototype.resolveComponentFactory=function(a){},a}();_f.NULL=new $f;var ag,bg,cg=function(){function a(a,b,c){this._parent=b,this._ngModule=c,this._factories=new Map;for(var d=0;d<a.length;d++){var e=a[d];this._factories.set(e.componentType,e)}}return a.prototype.resolveComponentFactory=function(a){var b=this._factories.get(a);if(!b&&this._parent&&(b=this._parent.resolveComponentFactory(a)),!b)throw aa(a);return new dg(b,this._ngModule)},a}(),dg=function(a){function b(b,c){var d=a.call(this)||this;return d.factory=b,d.ngModule=c,d}return f(b,a),Object.defineProperty(b.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),b.prototype.create=function(a,b,c,d){return this.factory.create(a,b,c,d||this.ngModule)},b}(Yf),eg=function(){function a(){}return a.prototype.injector=function(){},a.prototype.componentFactoryResolver=function(){},a.prototype.instance=function(){},a.prototype.destroy=function(){},a.prototype.onDestroy=function(a){},a}(),fg=function(){function a(){}return a.prototype.moduleType=function(){},a.prototype.create=function(a){},a}(),gg=ba(),hg=gg?ca:function(a,b){return ga},ig=gg?da:function(a,b){return b},jg=gg?ea:function(a,b){return null},kg=gg?fa:function(a){return null},lg=function(a){function b(b){void 0===b&&(b=!1);var c=a.call(this)||this;return c.__isAsync=b,c}return f(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}(e.Subject),mg=function(){function a(a){var b=a.enableLongStackTrace,c=void 0!==b&&b;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lg(!1),this.onMicrotaskEmpty=new lg(!1),this.onStable=new lg(!1),this.onError=new lg(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched();var d=this;d._nesting=0,d._outer=d._inner=Zone.current,Zone.wtfZoneSpec&&(d._inner=d._inner.fork(Zone.wtfZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(d._inner=d._inner.fork(Zone.longStackTraceZoneSpec)),ia(d)}return a.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},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)},a}(),ng=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(){mg.assertNotInAngularZone(),h(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()?h(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}();ng.decorators=[{type:gf}],ng.ctorParameters=function(){return[{type:mg}]};var og=function(){function a(){this._applications=new Map,rg.addToWindow(this)}return a.prototype.registerApplication=function(a,b){this._applications.set(a,b)},a.prototype.getTestability=function(a){return this._applications.get(a)||null},a.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},a.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},a.prototype.findTestabilityInTree=function(a,b){return void 0===b&&(b=!0),rg.findTestabilityInTree(this,a,b)},a}();og.decorators=[{type:gf}],og.ctorParameters=function(){return[]};var pg,qg=function(){function a(){}return a.prototype.addToWindow=function(a){},a.prototype.findTestabilityInTree=function(a,b,c){return null},a}(),rg=new qg,sg=!0,tg=!1,ug=new Be("AllowMultipleToken"),vg=function(){function a(a,b){this.name=a,this.token=b}return a}(),wg=function(){function a(){}return a.prototype.bootstrapModuleFactory=function(a){},a.prototype.bootstrapModule=function(a,b){},a.prototype.onDestroy=function(a){},a.prototype.injector=function(){},a.prototype.destroy=function(){},a.prototype.destroyed=function(){},a}(),xg=function(a){function b(b){var c=a.call(this)||this;return c._injector=b,c._modules=[],c._destroyListeners=[],c._destroyed=!1,c}return f(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)},b.prototype._bootstrapModuleFactoryWithZone=function(a,b){var c=this;return b||(b=new mg({enableLongStackTrace:na()})),b.run(function(){var d=Hf.resolveAndCreate([{provide:mg,useValue:b}],c.injector),e=a.create(d),f=e.injector.get(tf,null);if(!f)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return e.onDestroy(function(){return ua(c._modules,e)}),b.runOutsideAngular(function(){return b.onError.subscribe({next:function(a){f.handleError(a)}})}),ta(f,b,function(){var a=e.injector.get(Lf);return a.runInitializers(),a.donePromise.then(function(){return c._moduleDoBootstrap(e),e})})})},b.prototype.bootstrapModule=function(a,b){return void 0===b&&(b=[]),this._bootstrapModuleWithZone(a,b)},b.prototype._bootstrapModuleWithZone=function(a,b,c){var d=this;return void 0===b&&(b=[]),this.injector.get(Wf).createCompiler(Array.isArray(b)?b:[b]).compileModuleAsync(a).then(function(a){return d._bootstrapModuleFactoryWithZone(a,c)})},b.prototype._moduleDoBootstrap=function(a){var b=a.injector.get(yg);if(a._bootstrapComponents.length>0)a._bootstrapComponents.forEach(function(a){return b.bootstrap(a)});else{if(!a.instance.ngDoBootstrap)throw new Error("The module "+j(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)}this._modules.push(a)},b}(wg);xg.decorators=[{type:gf}],xg.ctorParameters=function(){return[{type:of}]};var yg=function(){function a(){}return a.prototype.bootstrap=function(a,b){},a.prototype.tick=function(){},a.prototype.componentTypes=function(){},a.prototype.components=function(){},a.prototype.attachView=function(a){},a.prototype.detachView=function(a){},a.prototype.viewCount=function(){},a.prototype.isStable=function(){},a}(),zg=function(a){function e(e,f,g,i,j,k){var l=a.call(this)||this;l._zone=e,l._console=f,l._injector=g,l._exceptionHandler=i,l._componentFactoryResolver=j,l._initStatus=k,l._bootstrapListeners=[],l._rootComponents=[],l._rootComponentTypes=[],l._views=[],l._runningTick=!1,l._enforceNoNewChanges=!1,l._stable=!0,l._enforceNoNewChanges=na(),l._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var m=new b.Observable(function(a){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){a.next(l._stable),a.complete()})}),n=new b.Observable(function(a){var b;l._zone.runOutsideAngular(function(){b=l._zone.onStable.subscribe(function(){mg.assertNotInAngularZone(),h(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,a.next(!0))})})});var c=l._zone.onUnstable.subscribe(function(){mg.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){a.next(!1)}))});return function(){b.unsubscribe(),c.unsubscribe()}});return l._isStable=c.merge(m,d.share.call(n)),l}return f(e,a),e.prototype.attachView=function(a){var b=a;this._views.push(b),b.attachToAppRef(this)},e.prototype.detachView=function(a){var b=a;ua(this._views,b),b.detachFromAppRef()},e.prototype.bootstrap=function(a,b){var c=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 d;d=a instanceof Yf?a:this._componentFactoryResolver.resolveComponentFactory(a),this._rootComponentTypes.push(d.componentType);var e=d instanceof dg?null:this._injector.get(eg),f=b||d.selector,g=d.create(of.NULL,[],f,e);g.onDestroy(function(){c._unloadComponent(g)});var h=g.injector.get(ng,null);return h&&g.injector.get(og).registerApplication(g.location.nativeElement,h),this._loadComponent(g),na()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),g},e.prototype._loadComponent=function(a){this.attachView(a.hostView),this.tick(),this._rootComponents.push(a),this._injector.get(Qf,[]).concat(this._bootstrapListeners).forEach(function(b){return b(a)})},e.prototype._unloadComponent=function(a){this.detachView(a.hostView),ua(this._rootComponents,a)},e.prototype.tick=function(){var a=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var b=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(a){return a.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(a){return a.checkNoChanges()})}catch(b){this._zone.runOutsideAngular(function(){return a._exceptionHandler.handleError(b)})}finally{this._runningTick=!1,ig(b)}},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(a){return a.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),e}(yg);zg._tickScope=hg("ApplicationRef#tick()"),zg.decorators=[{type:gf}],zg.ctorParameters=function(){return[{type:mg},{type:Sf},{type:of},{type:tf},{type:_f},{type:Lf}]};var Ag=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}(),Bg=function(){function a(){}return a.prototype.injector=function(){},a.prototype.component=function(){},a.prototype.providerTokens=function(){},a.prototype.references=function(){},a.prototype.context=function(){},a.prototype.source=function(){},a}(),Cg=function(){function a(){}return a.prototype.selectRootElement=function(a,b){},a.prototype.createElement=function(a,b,c){},a.prototype.createViewRoot=function(a){},a.prototype.createTemplateAnchor=function(a,b){},a.prototype.createText=function(a,b,c){},a.prototype.projectNodes=function(a,b){},a.prototype.attachViewAfter=function(a,b){},a.prototype.detachView=function(a){},a.prototype.destroyView=function(a,b){},a.prototype.listen=function(a,b,c){},a.prototype.listenGlobal=function(a,b,c){},a.prototype.setElementProperty=function(a,b,c){},a.prototype.setElementAttribute=function(a,b,c){},a.prototype.setBindingDebugInfo=function(a,b,c){},a.prototype.setElementClass=function(a,b,c){},a.prototype.setElementStyle=function(a,b,c){},a.prototype.invokeElementMethod=function(a,b,c){},a.prototype.setText=function(a,b){},a.prototype.animate=function(a,b,c,d,e,f,g){},a}(),Dg=(new Be("Renderer2Interceptor"),function(){function a(){}return a.prototype.renderComponent=function(a){},a}()),Eg=function(){function a(){}return a.prototype.createRenderer=function(a,b){},a.prototype.begin=function(){},a.prototype.end=function(){},a.prototype.whenRenderingDone=function(){},a}(),Fg={};Fg.Important=1,Fg.DashCase=2,Fg[Fg.Important]="Important",Fg[Fg.DashCase]="DashCase";var Gg=function(){function a(){}return a.prototype.data=function(){},a.prototype.destroy=function(){},a.prototype.createElement=function(a,b){},a.prototype.createComment=function(a){},a.prototype.createText=function(a){},a.prototype.appendChild=function(a,b){},a.prototype.insertBefore=function(a,b,c){},a.prototype.removeChild=function(a,b){},a.prototype.selectRootElement=function(a){},a.prototype.parentNode=function(a){},a.prototype.nextSibling=function(a){},a.prototype.setAttribute=function(a,b,c,d){},a.prototype.removeAttribute=function(a,b,c){},a.prototype.addClass=function(a,b){},a.prototype.removeClass=function(a,b){},a.prototype.setStyle=function(a,b,c,d){},a.prototype.removeStyle=function(a,b,c){},a.prototype.setProperty=function(a,b,c){},a.prototype.setValue=function(a,b){},a.prototype.listen=function(a,b,c){},a}(),Hg=function(){function a(a){this.nativeElement=a}return a}(),Ig=function(){function a(){}return a.prototype.load=function(a){},a}(),Jg=new Map,Kg=function(){function a(){this._dirty=!0,this._results=[],this._emitter=new lg}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.find=function(a){return this._results.find(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[g()]=function(){return this._results[g()]()},a.prototype.toString=function(){return this._results.toString()},a.prototype.reset=function(a){this._results=xa(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.prototype.destroy=function(){this._emitter.complete(),this._emitter.unsubscribe()},a}(),Lg="#",Mg="NgFactory",Ng=function(){function a(){}return a}(),Og={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Pg=function(){function a(a,b){this._compiler=a,this._config=b||Og}return a.prototype.load=function(a){return this._compiler instanceof Uf?this.loadFactory(a):this.loadAndCompile(a)},a.prototype.loadAndCompile=function(a){var b=this,c=a.split(Lg),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 ya(a,d,e)}).then(function(a){return b._compiler.compileModuleAsync(a)})},a.prototype.loadFactory=function(a){var b=a.split(Lg),c=b[0],d=b[1],e=Mg;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 ya(a,c,d)})},a}();Pg.decorators=[{type:gf}],Pg.ctorParameters=function(){return[{type:Uf},{type:Ng,decorators:[{type:ff}]}]};var Qg=function(){function a(){}return a.prototype.elementRef=function(){},a.prototype.createEmbeddedView=function(a){},a}(),Rg=function(){function a(){}return a.prototype.element=function(){},a.prototype.injector=function(){},a.prototype.parentInjector=function(){},a.prototype.clear=function(){},a.prototype.get=function(a){},a.prototype.length=function(){},a.prototype.createEmbeddedView=function(a,b,c){},a.prototype.createComponent=function(a,b,c,d,e){},a.prototype.insert=function(a,b){},a.prototype.move=function(a,b){},a.prototype.indexOf=function(a){},a.prototype.remove=function(a){},a.prototype.detach=function(a){},a}(),Sg=function(){function a(){}return a.prototype.markForCheck=function(){},a.prototype.detach=function(){},a.prototype.detectChanges=function(){},a.prototype.checkNoChanges=function(){},a.prototype.reattach=function(){},a}(),Tg=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return f(b,a),b.prototype.destroy=function(){},b.prototype.destroyed=function(){},b.prototype.onDestroy=function(a){},b}(Sg),Ug=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return f(b,a),b.prototype.context=function(){},b.prototype.rootNodes=function(){},b}(Tg),Vg=function(){function a(a,b){this.name=a,this.callback=b}return a}(),Wg=function(){function a(a,b,c){this._debugContext=c,this.nativeNode=a,b&&b instanceof Xg?b.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(a.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),a}(),Xg=function(a){function b(b,c,d){var e=a.call(this,b,c,d)||this;return e.properties={},e.attributes={},e.classes={},e.styles={},e.childNodes=[],e.nativeElement=b,e}return f(b,a),b.prototype.addChild=function(a){a&&(this.childNodes.push(a),a.parent=this)},b.prototype.removeChild=function(a){var b=this.childNodes.indexOf(a);-1!==b&&(a.parent=null,this.childNodes.splice(b,1))},b.prototype.insertChildrenAfter=function(a,b){var c=this,d=this.childNodes.indexOf(a);-1!==d&&((e=this.childNodes).splice.apply(e,[d+1,0].concat(b)),b.forEach(function(a){a.parent&&a.parent.removeChild(a),a.parent=c}));var e},b.prototype.insertBefore=function(a,b){var c=this.childNodes.indexOf(a);-1===c?this.addChild(b):(b.parent&&b.parent.removeChild(b),b.parent=this,this.childNodes.splice(c,0,b))},b.prototype.query=function(a){return this.queryAll(a)[0]||null},b.prototype.queryAll=function(a){var b=[];return Aa(this,a,b),b},b.prototype.queryAllNodes=function(a){var b=[];return Ba(this,a,b),b},Object.defineProperty(b.prototype,"children",{get:function(){return this.childNodes.filter(function(a){return a instanceof b})},enumerable:!0,configurable:!0}),b.prototype.triggerEventHandler=function(a,b){this.listeners.forEach(function(c){c.name==a&&c.callback(b)})},b}(Wg),Yg=new Map,Zg=function(){function a(a){this.wrapped=a}return a.wrap=function(b){return new a(b)},a}(),$g=function(){function a(){this.hasWrappedValue=!1}return a.prototype.unwrap=function(a){return a instanceof Zg?(this.hasWrappedValue=!0,a.wrapped):a},a.prototype.reset=function(){this.hasWrappedValue=!1},a}(),_g=function(){function a(a,b,c){this.previousValue=a,this.currentValue=b,this.firstChange=c}return a.prototype.isFirstChange=function(){return this.firstChange},a}(),ah=function(){function a(){}return a.prototype.supports=function(a){return Ga(a)},a.prototype.create=function(a,b){return new ch(b||a)},a}(),bh=function(a,b){return b},ch=function(){function a(a){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=a||bh}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<Ka(c,d,e)?b:c,g=Ka(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(null==a&&(a=[]),!Ga(a))throw new Error("Error trying to diff '"+j(a)+"'. Only arrays and iterables are allowed");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)){this._length=a.length;for(var h=0;h<this._length;h++)d=a[h],e=this._trackByFn(h,d),null!==f&&i(f.trackById,e)?(g&&(f=this._verifyReinsertion(f,d,e,h)),i(f.item,d)||this._addIdentityChange(f,d)):(f=this._mismatch(f,d,e,h),g=!0),f=f._next}else c=0,Ia(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=void 0,b=void 0;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),null!==a?(i(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):a=this._addAfter(new dh(b,c),e,d)),a},a.prototype._verifyReinsertion=function(a,b,c,d){var e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null);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 fh),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 fh),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}(),dh=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?j(this.item):j(this.item)+"["+j(this.previousIndex)+"->"+j(this.currentIndex)+"]"},a}(),eh=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}(),fh=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 eh,this.map.set(b,c)),c.add(a)},a.prototype.get=function(a,b){var c=a,d=this.map.get(c);return d?d.get(a,b):null},a.prototype.remove=function(a){var b=a.trackById;return this.map.get(b).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("+j(this.map)+")"},a}(),gh=function(){function a(){}return a.prototype.supports=function(a){return a instanceof Map||Ja(a)},a.prototype.create=function(a){return new hh},a}(),hh=function(){function a(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(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||Ja(a)))throw new Error("Error trying to diff '"+j(a)+"'. Only maps and objects are allowed")}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._mapHead;if(this._appendAfter=null,this._forEach(a,function(a,d){if(c&&c.key===d)b._maybeAddToChanges(c,a),b._appendAfter=c,c=c._next;else{var e=b._getOrCreateRecordForKey(d,a);c=b._insertBeforeOrAppend(c,e)}}),c){c._prev&&(c._prev._next=null),this._removalsHead=c;for(var d=c;null!==d;d=d._nextRemoved)d===this._mapHead&&(this._mapHead=null),this._records.delete(d.key),d._nextRemoved=d._next,d.previousValue=d.currentValue,d.currentValue=null,d._prev=null,d._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},a.prototype._insertBeforeOrAppend=function(a,b){if(a){var c=a._prev;return b._next=a,b._prev=c,a._prev=b,c&&(c._next=b),a===this._mapHead&&(this._mapHead=b),this._appendAfter=a,a}return this._appendAfter?(this._appendAfter._next=b,b._prev=this._appendAfter):this._mapHead=b,this._appendAfter=b,null},a.prototype._getOrCreateRecordForKey=function(a,b){if(this._records.has(a)){var c=this._records.get(a);this._maybeAddToChanges(c,b);var d=c._prev,e=c._next;return d&&(d._next=e),e&&(e._prev=d),c._next=null,c._prev=null,c}var f=new ih(a);return this._records.set(a,f),f.currentValue=b,this._addToAdditions(f),f},a.prototype._reset=function(){if(this.isDirty){var a=void 0;for(this._previousMapHead=this._mapHead,a=this._previousMapHead;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=null}},a.prototype._maybeAddToChanges=function(a,b){i(b,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=b,this._addToChanges(a))},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._forEach=function(a,b){a instanceof Map?a.forEach(b):Object.keys(a).forEach(function(c){return b(a[c],c)})},a}(),ih=function(){function a(a){this.key=a,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return a}(),jh=function(){function a(a){this.factories=a}return a.create=function(b,c){if(null!=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 jf,new ff]]}},a.prototype.find=function(a){var b=this.factories.find(function(b){return b.supports(a)});if(null!=b)return b;throw new Error("Cannot find a differ supporting object '"+a+"' of type '"+La(a)+"'")},a}(),kh=function(){function a(a){this.factories=a}return a.create=function(b,c){if(c){var d=c.factories.slice();b=b.concat(d)}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 jf,new ff]]}},a.prototype.find=function(a){var b=this.factories.find(function(b){return b.supports(a)});if(b)return b;throw new Error("Cannot find a differ supporting object '"+a+"'")},a}(),lh=[new gh],mh=[new ah],nh=new jh(mh),oh=new kh(lh),ph=[{provide:Pf,useValue:"unknown"},xg,{provide:wg,useExisting:xg},{provide:Af,useFactory:Ma,deps:[]},og,Sf],qh=pa(null,"core",ph),rh=new Be("LocaleId"),sh=new Be("Translations"),th=new Be("TranslationsFormat"),uh={};uh.Error=0,uh.Warning=1,uh.Ignore=2,uh[uh.Error]="Error",uh[uh.Warning]="Warning",uh[uh.Ignore]="Ignore";var vh=function(){function a(a){}return a}();vh.decorators=[{type:_e,args:[{providers:[zg,{provide:yg,useExisting:zg},Lf,Uf,Nf,{provide:jh,useFactory:Na},{provide:kh,useFactory:Oa},{provide:rh,useFactory:Pa,deps:[[new ef(rh),new ff,new jf]]}]}]}],vh.ctorParameters=function(){return[{type:yg}]};var wh={};wh.NONE=0,wh.HTML=1,wh.STYLE=2,wh.SCRIPT=3,wh.URL=4,wh.RESOURCE_URL=5,wh[wh.NONE]="NONE",wh[wh.HTML]="HTML",wh[wh.STYLE]="STYLE",wh[wh.SCRIPT]="SCRIPT",wh[wh.URL]="URL",wh[wh.RESOURCE_URL]="RESOURCE_URL";var xh=function(){function a(){}return a.prototype.sanitize=function(a,b){},a}(),yh=function(){function a(){}return a.prototype.view=function(){},a.prototype.nodeIndex=function(){},a.prototype.injector=function(){},a.prototype.component=function(){},a.prototype.providerTokens=function(){},a.prototype.references=function(){},a.prototype.context=function(){},a.prototype.componentRenderElement=function(){},a.prototype.renderNode=function(){},a.prototype.logError=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c]},a}(),zh={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,clearProviderOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Ah=function(){},Bh=new Map,Ch="$$undefined",Dh="$$empty",Eh=0,Fh=new WeakMap,Gh=/^:([^:]+):(.+)$/,Hh=[],Ih={},Jh=new Object,Kh=_a(of),Lh=_a(eg),Mh=new Object,Nh=function(a){function b(b,c,d,e,f,g){var h=a.call(this)||this;return h.selector=b,h.componentType=c,h._inputs=e,h._outputs=f,h.ngContentSelectors=g,h.viewDefFactory=d,h}return f(b,a),Object.defineProperty(b.prototype,"inputs",{get:function(){var a=[],b=this._inputs;for(var c in b){var d=b[c];a.push({propName:c,templateName:d})}return a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"outputs",{get:function(){var a=[];for(var b in this._outputs){var c=this._outputs[b];a.push({propName:b,templateName:c})}return a},enumerable:!0,configurable:!0}),b.prototype.create=function(a,b,c,d){if(!d)throw new Error("ngModule should be provided");var e=tb(this.viewDefFactory),f=e.nodes[0].element.componentProvider.index,g=zh.createRootView(a,b||[],c,e,d,Mh),h=Sa(g,f).instance;return c&&g.renderer.setAttribute(Ra(g,0).renderElement,"ng-version",df.full),new Oh(g,new Qh(g),h)},b}(Yf),Oh=function(a){function b(b,c,d){var e=a.call(this)||this;return e._view=b,e._viewRef=c,e._component=d,e._elDef=e._view.def.nodes[0],e}return f(b,a),Object.defineProperty(b.prototype,"location",{get:function(){return new Hg(Ra(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"injector",{get:function(){return new Sh(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"changeDetectorRef",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),b.prototype.destroy=function(){this._viewRef.destroy()},b.prototype.onDestroy=function(a){this._viewRef.onDestroy(a)},b}(Xf),Ph=function(){function a(a,b,c){this._view=a,this._elDef=b,this._data=c,this._embeddedViews=[]}return Object.defineProperty(a.prototype,"element",{get:function(){return new Hg(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return new Sh(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parentInjector",{get:function(){for(var a=this._view,b=this._elDef.parent;!b&&a;)b=kb(a),a=a.parent;return a?new Sh(a,b):new Sh(this._view,null)},enumerable:!0,configurable:!0}),a.prototype.clear=function(){for(var a=this._embeddedViews.length,b=a-1;b>=0;b--){var c=ac(this._data,b);zh.destroyView(c)}},a.prototype.get=function(a){var b=this._embeddedViews[a];if(b){var c=new Qh(b);return c.attachToViewContainerRef(this),c}return null},Object.defineProperty(a.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),a.prototype.createEmbeddedView=function(a,b,c){var d=a.createEmbeddedView(b||{});return this.insert(d,c),d},a.prototype.createComponent=function(a,b,c,d,e){var f=c||this.parentInjector;e||a instanceof dg||(e=f.get(eg));var g=a.create(f,d,void 0,e);return this.insert(g.hostView,b),g},a.prototype.insert=function(a,b){if(a.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var c=a,d=c._view;return Zb(this._view,this._data,b,d),c.attachToViewContainerRef(this),a},a.prototype.move=function(a,b){if(a.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var c=this._embeddedViews.indexOf(a._view);return cc(this._data,c,b),a},a.prototype.indexOf=function(a){return this._embeddedViews.indexOf(a._view)},a.prototype.remove=function(a){var b=ac(this._data,a);b&&zh.destroyView(b)},a.prototype.detach=function(a){var b=ac(this._data,a);return b?new Qh(b):null},a}(),Qh=function(){function a(a){this._view=a,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(a.prototype,"rootNodes",{get:function(){return ub(this._view)},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 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),a.prototype.markForCheck=function(){gb(this._view)},a.prototype.detach=function(){this._view.state&=-5},a.prototype.detectChanges=function(){var a=this._view.root.rendererFactory;a.begin&&a.begin(),zh.checkAndUpdateView(this._view),a.end&&a.end()},a.prototype.checkNoChanges=function(){zh.checkNoChangesView(this._view)},a.prototype.reattach=function(){this._view.state|=4},a.prototype.onDestroy=function(a){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(a)},a.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),zh.destroyView(this._view)},a.prototype.detachFromAppRef=function(){this._appRef=null,ec(this._view),zh.dirtyParentQueries(this._view)},a.prototype.attachToAppRef=function(a){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=a},a.prototype.attachToViewContainerRef=function(a){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=a},a}(),Rh=function(a){function b(b,c){var d=a.call(this)||this;return d._parentView=b,d._def=c,d}return f(b,a),b.prototype.createEmbeddedView=function(a){return new Qh(zh.createEmbeddedView(this._parentView,this._def,this._def.element.template,a))},Object.defineProperty(b.prototype,"elementRef",{get:function(){return new Hg(Ra(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),b}(Qg),Sh=function(){function a(a,b){this.view=a,this.elDef=b}return a.prototype.get=function(a,b){void 0===b&&(b=of.THROW_IF_NOT_FOUND);var c=!!this.elDef&&0!=(33554432&this.elDef.flags);return zh.resolveDep(this.view,this.elDef,c,{flags:0,token:a,tokenKey:_a(a)},b)},a}(),Th=function(){function a(a){this.delegate=a}return a.prototype.selectRootElement=function(a){return this.delegate.selectRootElement(a)},a.prototype.createElement=function(a,b){var c=Ab(b),d=c[0],e=c[1],f=this.delegate.createElement(e,d);return a&&this.delegate.appendChild(a,f),f},a.prototype.createViewRoot=function(a){return a},a.prototype.createTemplateAnchor=function(a){var b=this.delegate.createComment("");return a&&this.delegate.appendChild(a,b),b},a.prototype.createText=function(a,b){var c=this.delegate.createText(b);return a&&this.delegate.appendChild(a,c),c},a.prototype.projectNodes=function(a,b){for(var c=0;c<b.length;c++)this.delegate.appendChild(a,b[c])},a.prototype.attachViewAfter=function(a,b){for(var c=this.delegate.parentNode(a),d=this.delegate.nextSibling(a),e=0;e<b.length;e++)this.delegate.insertBefore(c,b[e],d)},a.prototype.detachView=function(a){for(var b=0;b<a.length;b++){var c=a[b],d=this.delegate.parentNode(c);this.delegate.removeChild(d,c)}},a.prototype.destroyView=function(a,b){for(var c=0;c<b.length;c++)this.delegate.destroyNode(b[c])},a.prototype.listen=function(a,b,c){return this.delegate.listen(a,b,c)},a.prototype.listenGlobal=function(a,b,c){return this.delegate.listen(a,b,c)},a.prototype.setElementProperty=function(a,b,c){this.delegate.setProperty(a,b,c)},a.prototype.setElementAttribute=function(a,b,c){var d=Ab(b),e=d[0],f=d[1];null!=c?this.delegate.setAttribute(a,f,c,e):this.delegate.removeAttribute(a,f,e)},a.prototype.setBindingDebugInfo=function(a,b,c){},a.prototype.setElementClass=function(a,b,c){c?this.delegate.addClass(a,b):this.delegate.removeClass(a,b)},a.prototype.setElementStyle=function(a,b,c){null!=c?this.delegate.setStyle(a,b,c):this.delegate.removeStyle(a,b)},a.prototype.invokeElementMethod=function(a,b,c){a[b].apply(a,c)},a.prototype.setText=function(a,b){this.delegate.setValue(a,b)},a.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},a}(),Uh=function(){function a(a,b,c,d){this._moduleType=a,this._parent=b,this._bootstrapComponents=c,this._def=d,this._destroyListeners=[],this._destroyed=!1,Tb(this)}return a.prototype.get=function(a,b){return void 0===b&&(b=of.THROW_IF_NOT_FOUND),Ub(this,{token:a,tokenKey:_a(a),flags:0},b)},Object.defineProperty(a.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentFactoryResolver",{get:function(){return this.get(_f)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),a.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+j(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,Yb(this,131072),this._destroyListeners.forEach(function(a){return a()})},a.prototype.onDestroy=function(a){this._destroyListeners.push(a)},a}(),Vh=_a(Cg),Wh=_a(Gg),Xh=_a(Hg),Yh=_a(Rg),Zh=_a(Qg),$h=_a(Sg),_h=_a(of),ai=new Object,bi={},ci={};ci.CreateViewNodes=0,ci.CheckNoChanges=1,ci.CheckNoChangesProjectedViews=2,ci.CheckAndUpdate=3,ci.CheckAndUpdateProjectedViews=4,ci.Destroy=5,ci[ci.CreateViewNodes]="CreateViewNodes",ci[ci.CheckNoChanges]="CheckNoChanges",ci[ci.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",ci[ci.CheckAndUpdate]="CheckAndUpdate",ci[ci.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",ci[ci.Destroy]="Destroy";var di=!1,ei=new Map,fi={};fi.create=0,fi.detectChanges=1,fi.checkNoChanges=2,fi.destroy=3,fi.handleEvent=4,fi[fi.create]="create",fi[fi.detectChanges]="detectChanges",fi[fi.checkNoChanges]="checkNoChanges",fi[fi.destroy]="destroy",fi[fi.handleEvent]="handleEvent";var gi,hi,ii,ji=/([A-Z])/g,ki=function(){function a(a,b){this.view=a,this.nodeIndex=b,null==b&&(this.nodeIndex=b=0),this.nodeDef=a.def.nodes[b];for(var c=this.nodeDef,d=a;c&&0==(1&c.flags);)c=c.parent;if(!c)for(;!c&&d;)c=kb(d),d=d.parent;this.elDef=c,this.elView=d}return Object.defineProperty(a.prototype,"elOrCompView",{get:function(){return Ra(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return mc(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"providerTokens",{get:function(){var a=[];if(this.elDef)for(var b=this.elDef.index+1;b<=this.elDef.index+this.elDef.childCount;b++){var c=this.elView.def.nodes[b];20224&c.flags&&a.push(c.provider.token),b+=c.childCount}return a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"references",{get:function(){var a={};if(this.elDef){de(this.elView,this.elDef,a);for(var b=this.elDef.index+1;b<=this.elDef.index+this.elDef.childCount;b++){var c=this.elView.def.nodes[b];20224&c.flags&&de(this.elView,c,a),b+=c.childCount}}return a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentRenderElement",{get:function(){var a=ce(this.elOrCompView);return a?a.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?lb(this.view,this.nodeDef):lb(this.elView,this.elDef)},enumerable:!0,configurable:!0}),a.prototype.logError=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];var d,e;2&this.nodeDef.flags?(d=this.view.def,e=this.nodeDef.index):(d=this.elView.def,e=this.elDef.index);var f=be(d,e),g=-1,h=function(){return g++,g===f?(c=a.error).bind.apply(c,[a].concat(b)):Ah;var c};d.factory(h),g<f&&(a.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),a.error.apply(a,b))},a}(),li=function(){function a(a){this.delegate=a}return a.prototype.createRenderer=function(a,b){return new mi(this.delegate.createRenderer(a,b))},a.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},a.prototype.end=function(){this.delegate.end&&this.delegate.end()},a.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},a}(),mi=function(){function a(a){this.delegate=a}return Object.defineProperty(a.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),a.prototype.destroyNode=function(a){Ea(Ca(a)),this.delegate.destroyNode&&this.delegate.destroyNode(a)},a.prototype.destroy=function(){this.delegate.destroy()},a.prototype.createElement=function(a,b){var c=this.delegate.createElement(a,b),d=fe();if(d){var e=new Xg(c,null,d);e.name=a,Da(e)}return c},a.prototype.createComment=function(a){var b=this.delegate.createComment(a),c=fe();return c&&Da(new Wg(b,null,c)),b},a.prototype.createText=function(a){var b=this.delegate.createText(a),c=fe();return c&&Da(new Wg(b,null,c)),b},a.prototype.appendChild=function(a,b){var c=Ca(a),d=Ca(b);c&&d&&c instanceof Xg&&c.addChild(d),this.delegate.appendChild(a,b)},a.prototype.insertBefore=function(a,b,c){var d=Ca(a),e=Ca(b),f=Ca(c);d&&e&&d instanceof Xg&&d.insertBefore(f,e),this.delegate.insertBefore(a,b,c)},a.prototype.removeChild=function(a,b){var c=Ca(a),d=Ca(b);c&&d&&c instanceof Xg&&c.removeChild(d),this.delegate.removeChild(a,b)},a.prototype.selectRootElement=function(a){var b=this.delegate.selectRootElement(a),c=fe();return c&&Da(new Xg(b,null,c)),b},a.prototype.setAttribute=function(a,b,c,d){var e=Ca(a);if(e&&e instanceof Xg){var f=d?d+":"+b:b;e.attributes[f]=c}this.delegate.setAttribute(a,b,c,d)},a.prototype.removeAttribute=function(a,b,c){var d=Ca(a);if(d&&d instanceof Xg){var e=c?c+":"+b:b;d.attributes[e]=null}this.delegate.removeAttribute(a,b,c)},a.prototype.addClass=function(a,b){var c=Ca(a);c&&c instanceof Xg&&(c.classes[b]=!0),this.delegate.addClass(a,b)},a.prototype.removeClass=function(a,b){var c=Ca(a);c&&c instanceof Xg&&(c.classes[b]=!1),this.delegate.removeClass(a,b)},a.prototype.setStyle=function(a,b,c,d){var e=Ca(a);e&&e instanceof Xg&&(e.styles[b]=c),this.delegate.setStyle(a,b,c,d)},a.prototype.removeStyle=function(a,b,c){var d=Ca(a);d&&d instanceof Xg&&(d.styles[b]=null),this.delegate.removeStyle(a,b,c)},a.prototype.setProperty=function(a,b,c){var d=Ca(a);d&&d instanceof Xg&&(d.properties[b]=c),this.delegate.setProperty(a,b,c)},a.prototype.listen=function(a,b,c){if("string"!=typeof a){var d=Ca(a);d&&d.listeners.push(new Vg(b,c))}return this.delegate.listen(a,b,c)},a.prototype.parentNode=function(a){return this.delegate.parentNode(a)},a.prototype.nextSibling=function(a){return this.delegate.nextSibling(a)},a.prototype.setValue=function(a,b){return this.delegate.setValue(a,b)},a}(),ni=function(a){function b(b,c,d){var e=a.call(this)||this;return e.moduleType=b,e._bootstrapComponents=c,e._ngModuleDefFactory=d,e}return f(b,a),b.prototype.create=function(a){Ad();var b=tb(this._ngModuleDefFactory);return zh.createNgModuleRef(this.moduleType,a||of.NULL,this._bootstrapComponents,b)},b}(fg);a.Class=m,a.createPlatform=oa,a.assertPlatform=qa,a.destroyPlatform=ra,a.getPlatform=sa,a.PlatformRef=wg,a.ApplicationRef=yg,a.enableProdMode=ma,a.isDevMode=na,a.createPlatformFactory=pa,a.NgProbeToken=vg,a.APP_ID=Mf,a.PACKAGE_ROOT_URL=Rf,a.PLATFORM_INITIALIZER=Of,a.PLATFORM_ID=Pf,a.APP_BOOTSTRAP_LISTENER=Qf,a.APP_INITIALIZER=Kf,a.ApplicationInitStatus=Lf,a.DebugElement=Xg,a.DebugNode=Wg,a.asNativeElements=za,a.getDebugNode=Ca,a.Testability=ng,a.TestabilityRegistry=og,a.setTestabilityGetter=la,a.TRANSLATIONS=sh,a.TRANSLATIONS_FORMAT=th,a.LOCALE_ID=rh,a.MissingTranslationStrategy=uh,a.ApplicationModule=vh,a.wtfCreateScope=hg,a.wtfLeave=ig,a.wtfStartTimeRange=jg,a.wtfEndTimeRange=kg,a.Type=xf,a.EventEmitter=lg,a.ErrorHandler=tf,a.Sanitizer=xh,a.SecurityContext=wh,a.ANALYZE_FOR_ENTRY_COMPONENTS=Je,a.Attribute=Ke,a.ContentChild=Ne,a.ContentChildren=Me,a.Query=Le,a.ViewChild=Pe,a.ViewChildren=Oe,a.Component=Te,a.Directive=Se,a.HostBinding=Xe,a.HostListener=Ye,a.Input=Ve,a.Output=We,a.Pipe=Ue,a.CUSTOM_ELEMENTS_SCHEMA=Ze,a.NO_ERRORS_SCHEMA=$e,a.NgModule=_e,a.ViewEncapsulation=af,a.Version=cf,a.VERSION=df,a.forwardRef=s,a.resolveForwardRef=t,a.Injector=of,a.ReflectiveInjector=Hf,a.ResolvedReflectiveFactory=Ff,a.ReflectiveKey=uf,a.InjectionToken=Be,a.OpaqueToken=Ae,a.Inject=ef,a.Optional=ff,a.Injectable=gf,a.Self=hf,a.SkipSelf=jf,a.Host=kf,a.NgZone=mg,a.RenderComponentType=Ag,a.Renderer=Cg,a.Renderer2=Gg,a.RendererFactory2=Eg,a.RendererStyleFlags2=Fg,a.RootRenderer=Dg,a.COMPILER_OPTIONS=Vf,a.Compiler=Uf,a.CompilerFactory=Wf,a.ModuleWithComponentFactories=Tf,a.ComponentFactory=Yf,a.ComponentRef=Xf,a.ComponentFactoryResolver=_f,a.ElementRef=Hg,a.NgModuleFactory=fg,a.NgModuleRef=eg,a.NgModuleFactoryLoader=Ig,a.getModuleFactory=wa,a.QueryList=Kg,a.SystemJsNgModuleLoader=Pg,a.SystemJsNgModuleLoaderConfig=Ng,a.TemplateRef=Qg,a.ViewContainerRef=Rg,a.EmbeddedViewRef=Ug,a.ViewRef=Tg,a.ChangeDetectionStrategy=Qe,a.ChangeDetectorRef=Sg,a.DefaultIterableDiffer=ch,a.IterableDiffers=jh,a.KeyValueDiffers=kh,a.SimpleChange=_g,a.WrappedValue=Zg,a.platformCore=qh,a.ɵALLOW_MULTIPLE_PLATFORMS=ug,a.ɵAPP_ID_RANDOM_PROVIDER=Nf,a.ɵValueUnwrapper=$g,a.ɵdevModeEqual=Fa,a.ɵisListLikeIterable=Ga,a.ɵChangeDetectorStatus=Re,a.ɵisDefaultChangeDetectionStrategy=r,a.ɵConsole=Sf,a.ɵERROR_COMPONENT_TYPE=pf,a.ɵComponentFactory=Yf,a.ɵCodegenComponentFactoryResolver=cg,a.ɵViewMetadata=bf,a.ɵReflectionCapabilities=zf,a.ɵRenderDebugInfo=Bg,a.ɵglobal=Fe,a.ɵlooseIdentical=i,a.ɵstringify=j,a.ɵmakeDecorator=n,a.ɵisObservable=Y,a.ɵisPromise=X,a.ɵclearProviderOverrides=he,a.ɵoverrideProvider=ge,a.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=bi,a.ɵregisterModuleFactory=va,a.ɵEMPTY_ARRAY=Hh,a.ɵEMPTY_MAP=Ih,a.ɵand=Fb,a.ɵccf=hc,a.ɵcmf=ie,a.ɵcrt=bb,a.ɵdid=qc,a.ɵeld=Gb,a.ɵelementEventFullName=mb,a.ɵgetComponentViewDefinitionFactory=ic,a.ɵinlineInterpolate=Db,a.ɵinterpolate=Cb,a.ɵmod=Sb,a.ɵmpd=Rb,a.ɵncd=Pc,a.ɵnov=nc,a.ɵpid=rc,a.ɵprd=sc,a.ɵpad=Sc,a.ɵpod=Tc,a.ɵppd=Rc,a.ɵqud=Jc,a.ɵted=Yc,a.ɵunv=ab,a.ɵvid=bd,a.AUTO_STYLE="*",a.trigger=re,a.animate=se,a.group=te,a.sequence=ue,a.style=ve,a.state=we,a.keyframes=xe,a.transition=ye,a.ɵx=ke,a.ɵy=le,a.ɵbc=pe,a.ɵz=me,a.ɵbb=oe,a.ɵba=ne,a.ɵbd=qe,a.ɵw=je,a.ɵk=Na,a.ɵl=Oa,a.ɵm=Pa,a.ɵe=zg,a.ɵf=Z,a.ɵg=nh,a.ɵh=oh,a.ɵi=ah,a.ɵj=gh,a.ɵb=If,a.ɵc=Cf,a.ɵd=P,a.ɵn=gg,a.ɵp=ca,a.ɵo=ba,a.ɵs=fa,a.ɵq=da,a.ɵr=ea,a.ɵa=p,a.ɵt=tc,a.ɵu=yh,Object.defineProperty(a,"__esModule",{value:!0})}),System.registerDynamic("rxjs/util/ObjectUnsubscribedError.js",[],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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);b.ObjectUnsubscribedError=e}),System.registerDynamic("rxjs/SubjectSubscription.js",["./Subscription"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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("./Subscription"),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);-1!==c&&b.splice(c,1)}}},b}(e.Subscription);b.SubjectSubscription=f}),System.registerDynamic("rxjs/Subject.js",["./Observable","./Subscriber","./Subscription","./util/ObjectUnsubscribedError","./SubjectSubscription","./symbol/rxSubscriber"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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("./Observable"),f=a("./Subscriber"),g=a("./Subscription"),h=a("./util/ObjectUnsubscribedError"),i=a("./SubjectSubscription"),j=a("./symbol/rxSubscriber"),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._trySubscribe=function(b){if(this.closed)throw new h.ObjectUnsubscribedError;return a.prototype._trySubscribe.call(this,b)},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){return this.source?this.source.subscribe(a):g.Subscription.EMPTY},b}(l);b.AnonymousSubject=m}),System.registerDynamic("rxjs/AsyncSubject.js",["./Subject","./Subscription"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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("./Subject"),f=a("./Subscription"),g=function(a){function b(){a.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return d(b,a),b.prototype._subscribe=function(b){return this.hasError?(b.error(this.thrownError),f.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(b.next(this.value),b.complete(),f.Subscription.EMPTY):a.prototype._subscribe.call(this,b)},b.prototype.next=function(a){this.hasCompleted||(this.value=a,this.hasNext=!0)},b.prototype.error=function(b){this.hasCompleted||a.prototype.error.call(this,b)},b.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&a.prototype.next.call(this,this.value),a.prototype.complete.call(this)},b}(e.Subject);b.AsyncSubject=g}),System.registerDynamic("rxjs/observable/BoundCallbackObservable.js",["../Observable","../util/tryCatch","../util/errorObject","../AsyncSubject"],!0,function(a,b,c){"use strict";function d(a){var b=a.value,c=a.subject;c.next(b),c.complete()}function e(a){var b=a.err;a.subject.error(b)}var f=(this||self,b&&b.__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("../Observable"),h=a("../util/tryCatch"),i=a("../util/errorObject"),j=a("../AsyncSubject"),k=function(a){function b(b,c,d,e,f){a.call(this),this.callbackFunc=b,this.selector=c,this.args=d,this.context=e,this.scheduler=f}return f(b,a),b.create=function(a,c,d){return void 0===c&&(c=void 0),function(){for(var e=[],f=0;f<arguments.length;f++)e[f-0]=arguments[f];return new b(a,c,e,this,d)}},b.prototype._subscribe=function(a){var c=this.callbackFunc,d=this.args,e=this.scheduler,f=this.subject;if(e)return e.schedule(b.dispatch,0,{source:this,subscriber:a,context:this.context});if(!f){f=this.subject=new j.AsyncSubject;var g=function a(){for(var b=[],c=0;c<arguments.length;c++)b[c-0]=arguments[c];var d=a.source,e=d.selector,f=d.subject;if(e){var g=h.tryCatch(e).apply(this,b);g===i.errorObject?f.error(i.errorObject.e):(f.next(g),f.complete())}else f.next(b.length<=1?b[0]:b),f.complete()};g.source=this;h.tryCatch(c).apply(this.context,d.concat(g))===i.errorObject&&f.error(i.errorObject.e)}return f.subscribe(a)},b.dispatch=function(a){var b=this,c=a.source,f=a.subscriber,g=a.context,k=c.callbackFunc,l=c.args,m=c.scheduler,n=c.subject;if(!n){n=c.subject=new j.AsyncSubject;var o=function a(){for(var c=[],f=0;f<arguments.length;f++)c[f-0]=arguments[f];var g=a.source,j=g.selector,k=g.subject;if(j){var l=h.tryCatch(j).apply(this,c);l===i.errorObject?b.add(m.schedule(e,0,{err:i.errorObject.e,subject:k})):b.add(m.schedule(d,0,{value:l,subject:k}))}else{var n=c.length<=1?c[0]:c;b.add(m.schedule(d,0,{value:n,subject:k}))}};o.source=c;h.tryCatch(k).apply(g,l.concat(o))===i.errorObject&&n.error(i.errorObject.e)}b.add(n.subscribe(f))},b}(g.Observable);b.BoundCallbackObservable=k}),System.registerDynamic("rxjs/observable/bindCallback.js",["./BoundCallbackObservable"],!0,function(a,b,c){"use strict";var d=(this||self,a("./BoundCallbackObservable"));b.bindCallback=d.BoundCallbackObservable.create}),System.registerDynamic("rxjs/add/observable/bindCallback.js",["../../Observable","../../observable/bindCallback"],!0,function(a,b,c){"use strict";var d=(this||self,a("../../Observable")),e=a("../../observable/bindCallback");d.Observable.bindCallback=e.bindCallback}),System.registerDynamic("adal-angular",[],!0,function(a,b,c){var d=(this||self,function(){"use strict";return d=function(a){if(this.REQUEST_TYPE={LOGIN:"LOGIN",RENEW_TOKEN:"RENEW_TOKEN",UNKNOWN:"UNKNOWN"},this.CONSTANTS={ACCESS_TOKEN:"access_token",EXPIRES_IN:"expires_in",ID_TOKEN:"id_token",ERROR_DESCRIPTION:"error_description",SESSION_STATE:"session_state",STORAGE:{TOKEN_KEYS:"adal.token.keys",ACCESS_TOKEN_KEY:"adal.access.token.key",EXPIRATION_KEY:"adal.expiration.key",STATE_LOGIN:"adal.state.login",STATE_RENEW:"adal.state.renew",NONCE_IDTOKEN:"adal.nonce.idtoken",SESSION_STATE:"adal.session.state",USERNAME:"adal.username",IDTOKEN:"adal.idtoken",ERROR:"adal.error",ERROR_DESCRIPTION:"adal.error.description",LOGIN_REQUEST:"adal.login.request",LOGIN_ERROR:"adal.login.error",RENEW_STATUS:"adal.token.renew.status"},RESOURCE_DELIMETER:"|",LOADFRAME_TIMEOUT:"6000",TOKEN_RENEW_STATUS_CANCELED:"Canceled",TOKEN_RENEW_STATUS_COMPLETED:"Completed",TOKEN_RENEW_STATUS_IN_PROGRESS:"In Progress",LOGGING_LEVEL:{ERROR:0,WARN:1,INFO:2,VERBOSE:3},LEVEL_STRING_MAP:{0:"ERROR:",1:"WARNING:",2:"INFO:",3:"VERBOSE:"},POPUP_WIDTH:483,POPUP_HEIGHT:600},d.prototype._singletonInstance)return d.prototype._singletonInstance;if(d.prototype._singletonInstance=this,this.instance="https://login.microsoftonline.com/",this.config={},this.callback=null,this.popUp=!1,this.isAngular=!1,this._user=null,this._activeRenewals={},this._loginInProgress=!1,this._acquireTokenInProgress=!1,window.renewStates=[],window.callBackMappedToRenewStates={},window.callBacksMappedToRenewStates={},a.displayCall&&"function"!=typeof a.displayCall)throw new Error("displayCall is not a function");if(!a.clientId)throw new Error("clientId is required");this.config=this._cloneConfig(a),void 0===this.config.navigateToLoginRequestUrl&&(this.config.navigateToLoginRequestUrl=!0),this.config.popUp&&(this.popUp=!0),this.config.callback&&"function"==typeof this.config.callback&&(this.callback=this.config.callback),this.config.instance&&(this.instance=this.config.instance),this.config.loginResource||(this.config.loginResource=this.config.clientId),this.config.redirectUri||(this.config.redirectUri=window.location.href.split("?")[0].split("#")[0]),this.config.postLogoutRedirectUri||(this.config.postLogoutRedirectUri=window.location.href.split("?")[0].split("#")[0]),this.config.anonymousEndpoints||(this.config.anonymousEndpoints=[]),this.config.isAngular&&(this.isAngular=this.config.isAngular)},window.Logging={level:0,log:function(a){}},d.prototype.login=function(a){if(this._loginInProgress)return void this.info("Login in progress");var b=this._guid();this.config.state=b,this._idTokenNonce=this._guid(),this.verbose("Expected state: "+b+" startPage:"+window.location.href),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST,a||window.location.href),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.STATE_LOGIN,b),this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,this._idTokenNonce),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"");var c=this._getNavigateUrl("id_token",null)+"&nonce="+encodeURIComponent(this._idTokenNonce);this._loginInProgress=!0,this.config.displayCall?this.config.displayCall(c):this.popUp?this._loginPopup(c):this.promptUser(c)},d.prototype._openPopup=function(a,b,c,d){try{var e=window.screenLeft?window.screenLeft:window.screenX,f=window.screenTop?window.screenTop:window.screenY,g=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,i=g/2-c/2+e,j=h/2-d/2+f,k=window.open(a,b,"width="+c+", height="+d+", top="+j+", left="+i);return k.focus&&k.focus(),k}catch(a){return this.warn("Error opening popup, "+a.message),this._loginInProgress=!1,null}},d.prototype._loginPopup=function(a,b,c){var d=this._openPopup(a,"login",this.CONSTANTS.POPUP_WIDTH,this.CONSTANTS.POPUP_HEIGHT),e=c||this.callback;if(null==d)return this.warn("Popup Window is null. This can happen if you are using IE"),this._saveItem(this.CONSTANTS.STORAGE.ERROR,"Error opening popup"),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"Popup Window is null. This can happen if you are using IE"),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,"Popup Window is null. This can happen if you are using IE"),b&&this._activeRenewals[b]&&(this._activeRenewals[b]=null),this._loginInProgress=!1,this._acquireTokenInProgress=!1,void(e&&e(this._getItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION),null,this._getItem(this.CONSTANTS.STORAGE.ERROR)));if(-1!=this.config.redirectUri.indexOf("#"))var f=this.config.redirectUri.split("#")[0];else var f=this.config.redirectUri;var g=this,h=window.setInterval(function(){d&&!d.closed&&void 0!==d.closed||(g._loginInProgress=!1,g._acquireTokenInProgress=!1,b&&g._activeRenewals[b]&&(g._activeRenewals[b]=null),window.clearInterval(h));try{-1!=d.location.href.indexOf(f)&&(g.isAngular?g._onPopUpHashChanged(d.location.hash):g.handleWindowCallback(d.location.hash),window.clearInterval(h),g._loginInProgress=!1,g._acquireTokenInProgress=!1,g.info("Closing popup window"),d.close())}catch(a){}},1)},d.prototype._onPopUpHashChanged=function(a){!function(){function a(a,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var c=document.createEvent("CustomEvent");return c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),c}if("function"==typeof window.CustomEvent)return!1;a.prototype=window.Event.prototype,window.CustomEvent=a}();var b=new CustomEvent("adal:popUpHashChanged",{detail:a});window.dispatchEvent(b)},d.prototype.loginInProgress=function(){return this._loginInProgress},d.prototype._hasResource=function(a){var b=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS);return b&&!this._isEmpty(b)&&b.indexOf(a+this.CONSTANTS.RESOURCE_DELIMETER)>-1},d.prototype.getCachedToken=function(a){if(!this._hasResource(a))return null;var b=this._getItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+a),c=this._getItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+a),d=this.config.expireOffsetSeconds||300;return c&&c>this._now()+d?b:(this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+a,""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+a,0),null)},d.prototype.getCachedUser=function(){if(this._user)return this._user;var a=this._getItem(this.CONSTANTS.STORAGE.IDTOKEN);return this._user=this._createUser(a),this._user},d.prototype.registerCallback=function(a,b,c){this._activeRenewals[b]=a,window.callBacksMappedToRenewStates[a]||(window.callBacksMappedToRenewStates[a]=[]);var d=this;window.callBacksMappedToRenewStates[a].push(c),window.callBackMappedToRenewStates[a]||(window.callBackMappedToRenewStates[a]=function(c,e,f){d._activeRenewals[b]=null;for(var g=0;g<window.callBacksMappedToRenewStates[a].length;++g)try{window.callBacksMappedToRenewStates[a][g](c,e,f)}catch(f){d.warn(f)}window.callBacksMappedToRenewStates[a]=null,window.callBackMappedToRenewStates[a]=null})},d.prototype._renewToken=function(a,b){this.info("renewToken is called for resource:"+a);var c=this._addAdalFrame("adalRenewFrame"+a),d=this._guid()+"|"+a;this.config.state=d,window.renewStates.push(d),this.verbose("Renew token Expected state: "+d);var e=this._getNavigateUrl("token",a)+"&prompt=none";e=this._addHintParameters(e),this.registerCallback(d,a,b),this.verbose("Navigate to:"+e),c.src="about:blank",this._loadFrameTimeout(e,"adalRenewFrame"+a,a)},d.prototype._renewIdToken=function(a){this.info("renewIdToken is called");var b=this._addAdalFrame("adalIdTokenFrame"),c=this._guid()+"|"+this.config.clientId;this._idTokenNonce=this._guid(),this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,this._idTokenNonce),this.config.state=c,window.renewStates.push(c),this.verbose("Renew Idtoken Expected state: "+c);var d=this._getNavigateUrl("id_token",null)+"&prompt=none";d=this._addHintParameters(d),d+="&nonce="+encodeURIComponent(this._idTokenNonce),this.registerCallback(c,this.config.clientId,a),this.idTokenNonce=null,this.verbose("Navigate to:"+d),b.src="about:blank",this._loadFrameTimeout(d,"adalIdTokenFrame",this.config.clientId)},d.prototype._urlContainsQueryStringParameter=function(a,b){return new RegExp("[\\?&]"+a+"=").test(b)},d.prototype._loadFrameTimeout=function(a,b,c){this.verbose("Set loading state to pending for: "+c),this._saveItem(this.CONSTANTS.STORAGE.RENEW_STATUS+c,this.CONSTANTS.TOKEN_RENEW_STATUS_IN_PROGRESS),this._loadFrame(a,b);var d=this;setTimeout(function(){if(d._getItem(d.CONSTANTS.STORAGE.RENEW_STATUS+c)===d.CONSTANTS.TOKEN_RENEW_STATUS_IN_PROGRESS){d.verbose("Loading frame has timed out after: "+d.CONSTANTS.LOADFRAME_TIMEOUT/1e3+" seconds for resource "+c);var a=d._activeRenewals[c];a&&window.callBackMappedToRenewStates[a]&&window.callBackMappedToRenewStates[a]("Token renewal operation failed due to timeout",null,"Token Renewal Failed"),d._saveItem(d.CONSTANTS.STORAGE.RENEW_STATUS+c,d.CONSTANTS.TOKEN_RENEW_STATUS_CANCELED)}},d.CONSTANTS.LOADFRAME_TIMEOUT)},d.prototype._loadFrame=function(a,b){var c=this;c.info("LoadFrame: "+b);var d=b;setTimeout(function(){var b=c._addAdalFrame(d);""!==b.src&&"about:blank"!==b.src||(b.src=a,c._loadFrame(a,d))},500)},d.prototype.acquireToken=function(a,b){if(this._isEmpty(a))return this.warn("resource is required"),void b("resource is required",null,"resource is required");var c=this.getCachedToken(a);return c?(this.info("Token is already in cache for resource:"+a),void b(null,c,null)):this._user?void(this._activeRenewals[a]?this.registerCallback(this._activeRenewals[a],a,b):a===this.config.clientId?(this.verbose("renewing idtoken"),this._renewIdToken(b)):this._renewToken(a,b)):(this.warn("User login is required"),void b("User login is required",null,"login required"))},d.prototype.acquireTokenPopup=function(a,b,c,d){if(this._isEmpty(a))return this.warn("resource is required"),void d("resource is required",null,"resource is required");if(!this._user)return this.warn("User login is required"),void d("User login is required",null,"login required");if(this._acquireTokenInProgress)return this.warn("Acquire token interactive is already in progress"),void d("Acquire token interactive is already in progress",null,"Acquire token interactive is already in progress");var e=this._guid()+"|"+a;this.config.state=e,window.renewStates.push(e),this.verbose("Renew token Expected state: "+e);var f=this._getNavigateUrl("token",a)+"&prompt=select_account";if(b&&(f+=encodeURIComponent(b)),c&&-1===f.indexOf("&claims"))f+="&claims="+encodeURIComponent(c);else if(c&&-1!==f.indexOf("&claims"))throw new Error("Claims cannot be passed as an extraQueryParameter");f=this._addHintParameters(f),this._acquireTokenInProgress=!0,this.info("acquireToken interactive is called for the resource "+a),this.registerCallback(e,a,d),this._loginPopup(f,a,d)},d.prototype.acquireTokenRedirect=function(a,b,c){if(this._isEmpty(a))return this.warn("resource is required"),void callback("resource is required",null,"resource is required");if(!this._user)return this.warn("User login is required"),void callback("User login is required",null,"login required");if(this._acquireTokenInProgress)return this.warn("Acquire token interactive is already in progress"),void callback("Acquire token interactive is already in progress",null,"Acquire token interactive is already in progress");var d=this._guid()+"|"+a;this.config.state=d,window.renewStates.push(d),this.verbose("Renew token Expected state: "+d);var e=this._getNavigateUrl("token",a)+"&prompt=select_account";if(b&&(e+=encodeURIComponent(b)),c&&-1===e.indexOf("&claims"))e+="&claims="+encodeURIComponent(c);else if(c&&-1!==e.indexOf("&claims"))throw new Error("Claims cannot be passed as an extraQueryParameter");e=this._addHintParameters(e),this._acquireTokenInProgress=!0,this.info("acquireToken interactive is called for the resource "+a),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST,window.location.href),this._saveItem(this.CONSTANTS.STORAGE.STATE_RENEW,d),this.promptUser(e)},d.prototype.promptUser=function(a){a?(this.info("Navigate to:"+a),window.location.replace(a)):this.info("Navigate url is empty")},d.prototype.clearCache=function(){this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY,""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY,0),this._saveItem(this.CONSTANTS.STORAGE.SESSION_STATE,""),this._saveItem(this.CONSTANTS.STORAGE.STATE_LOGIN,""),window.renewStates=[],this._saveItem(this.CONSTANTS.STORAGE.USERNAME,""),this._saveItem(this.CONSTANTS.STORAGE.IDTOKEN,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"");var a=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS);if(!this._isEmpty(a)){a=a.split(this.CONSTANTS.RESOURCE_DELIMETER);for(var b=0;b<a.length;b++)this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+a[b],""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+a[b],0)}this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,"")},d.prototype.clearCacheForResource=function(a){this._saveItem(this.CONSTANTS.STORAGE.STATE_RENEW,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,""),this._hasResource(a)&&(this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+a,""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+a,0))},d.prototype.logOut=function(){this.clearCache(),this._user=null;var a;if(this.config.logOutUri)a=this.config.logOutUri;else{var b="common",c="";this.config.tenant&&(b=this.config.tenant),this.config.postLogoutRedirectUri&&(c="post_logout_redirect_uri="+encodeURIComponent(this.config.postLogoutRedirectUri)),a=this.instance+b+"/oauth2/logout?"+c}this.info("Logout navigate to: "+a),this.promptUser(a)},d.prototype._isEmpty=function(a){return void 0===a||!a||0===a.length},d.prototype.getUser=function(a){if("function"!=typeof a)throw new Error("callback is not a function");if(this._user)return void a(null,this._user);var b=this._getItem(this.CONSTANTS.STORAGE.IDTOKEN);this._isEmpty(b)?(this.warn("User information is not available"),a("User information is not available",null)):(this.info("User exists in cache: "),this._user=this._createUser(b),a(null,this._user))},d.prototype._addHintParameters=function(a){if(this._user&&this._user.profile&&this._user.profile.hasOwnProperty("upn")&&(this._urlContainsQueryStringParameter("login_hint",a)||(a+="&login_hint="+encodeURIComponent(this._user.profile.upn)),!this._urlContainsQueryStringParameter("domain_hint",a)&&this._user.profile.upn.indexOf("@")>-1)){var b=this._user.profile.upn.split("@");a+="&domain_hint="+encodeURIComponent(b[b.length-1])}return a},d.prototype._createUser=function(a){var b=null,c=this._extractIdToken(a);return c&&c.hasOwnProperty("aud")&&(c.aud.toLowerCase()===this.config.clientId.toLowerCase()?(b={userName:"",profile:c},c.hasOwnProperty("upn")?b.userName=c.upn:c.hasOwnProperty("email")&&(b.userName=c.email)):this.warn("IdToken has invalid aud field")),b},d.prototype._getHash=function(a){return a.indexOf("#/")>-1?a=a.substring(a.indexOf("#/")+2):a.indexOf("#")>-1&&(a=a.substring(1)),a},d.prototype.isCallback=function(a){a=this._getHash(a);var b=this._deserialize(a);return b.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)||b.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)||b.hasOwnProperty(this.CONSTANTS.ID_TOKEN)},d.prototype.getLoginError=function(){return this._getItem(this.CONSTANTS.STORAGE.LOGIN_ERROR)},d.prototype.getRequestInfo=function(a){a=this._getHash(a);var b=this._deserialize(a),c={valid:!1,parameters:{},stateMatch:!1,stateResponse:"",requestType:this.REQUEST_TYPE.UNKNOWN};if(b&&(c.parameters=b,b.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)||b.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)||b.hasOwnProperty(this.CONSTANTS.ID_TOKEN))){c.valid=!0;var d="";if(!b.hasOwnProperty("state"))return this.warn("No state returned"),c;if(this.verbose("State: "+b.state),d=b.state,c.stateResponse=d,d===this._getItem(this.CONSTANTS.STORAGE.STATE_LOGIN))return c.requestType=this.REQUEST_TYPE.LOGIN,c.stateMatch=!0,c;if(d===this._getItem(this.CONSTANTS.STORAGE.STATE_RENEW))return c.requestType=this.REQUEST_TYPE.RENEW_TOKEN,c.stateMatch=!0,c;if(!c.stateMatch&&window.parent)for(var e=window.parent.renewStates,f=0;f<e.length;f++)if(e[f]===c.stateResponse){c.requestType=this.REQUEST_TYPE.RENEW_TOKEN,c.stateMatch=!0;break}}return c},d.prototype._getResourceFromState=function(a){if(a){var b=a.indexOf("|");if(b>-1&&b+1<a.length)return a.substring(b+1)}return""},d.prototype.saveTokenFromHash=function(a){this.info("State status:"+a.stateMatch+"; Request type:"+a.requestType),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"");var b=this._getResourceFromState(a.stateResponse);if(a.parameters.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION))this.info("Error :"+a.parameters.error+"; Error description:"+a.parameters[this.CONSTANTS.ERROR_DESCRIPTION]),this._saveItem(this.CONSTANTS.STORAGE.ERROR,a.parameters.error),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,a.parameters[this.CONSTANTS.ERROR_DESCRIPTION]),a.requestType===this.REQUEST_TYPE.LOGIN&&(this._loginInProgress=!1,this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,a.parameters.error_description));else if(a.stateMatch){this.info("State is right"),a.parameters.hasOwnProperty(this.CONSTANTS.SESSION_STATE)&&this._saveItem(this.CONSTANTS.STORAGE.SESSION_STATE,a.parameters[this.CONSTANTS.SESSION_STATE]);var c;a.parameters.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)&&(this.info("Fragment has access token"),this._hasResource(b)||(c=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS)||"",this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,c+b+this.CONSTANTS.RESOURCE_DELIMETER)),this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+b,a.parameters[this.CONSTANTS.ACCESS_TOKEN]),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+b,this._expiresIn(a.parameters[this.CONSTANTS.EXPIRES_IN]))),a.parameters.hasOwnProperty(this.CONSTANTS.ID_TOKEN)&&(this.info("Fragment has id token"),this._loginInProgress=!1,this._user=this._createUser(a.parameters[this.CONSTANTS.ID_TOKEN]),this._user&&this._user.profile?this._user.profile.nonce!==this._getItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN)?(this._user=null,this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,"Nonce is not same as "+this._idTokenNonce)):(this._saveItem(this.CONSTANTS.STORAGE.IDTOKEN,a.parameters[this.CONSTANTS.ID_TOKEN]),b=this.config.loginResource?this.config.loginResource:this.config.clientId,this._hasResource(b)||(c=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS)||"",this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,c+b+this.CONSTANTS.RESOURCE_DELIMETER)),this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+b,a.parameters[this.CONSTANTS.ID_TOKEN]),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+b,this._user.profile.exp)):(this._saveItem(this.CONSTANTS.STORAGE.ERROR,"invalid id_token"),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"Invalid id_token. id_token: "+a.parameters[this.CONSTANTS.ID_TOKEN])))}else this._saveItem(this.CONSTANTS.STORAGE.ERROR,"Invalid_state"),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"Invalid_state. state: "+a.stateResponse);this._saveItem(this.CONSTANTS.STORAGE.RENEW_STATUS+b,this.CONSTANTS.TOKEN_RENEW_STATUS_COMPLETED)},d.prototype.getResourceForEndpoint=function(a){if(this.config&&this.config.anonymousEndpoints)for(var b=0;b<this.config.anonymousEndpoints.length;b++)if(a.indexOf(this.config.anonymousEndpoints[b])>-1)return null;if(this.config&&this.config.endpoints)for(var c in this.config.endpoints)if(a.indexOf(c)>-1)return this.config.endpoints[c];return a.indexOf("http://")>-1||a.indexOf("https://")>-1?this._getHostFromUri(a)===this._getHostFromUri(this.config.redirectUri)?this.config.loginResource:null:this.config.loginResource},d.prototype._getHostFromUri=function(a){var b=String(a).replace(/^(https?:)\/\//,"");return b=b.split("/")[0]},d.prototype.handleWindowCallback=function(a){if(null==a&&(a=window.location.hash),this.isCallback(a)){var b=this.getRequestInfo(a);this.info("Returned from redirect url"),this.saveTokenFromHash(b);var c=null,d=null;b.requestType===this.REQUEST_TYPE.RENEW_TOKEN&&window.parent?(this.verbose("Window is in iframe"),d=window.parent.callBackMappedToRenewStates[b.stateResponse],c=b.parameters[this.CONSTANTS.ACCESS_TOKEN]||b.parameters[this.CONSTANTS.ID_TOKEN]):b.requestType===this.REQUEST_TYPE.LOGIN&&(d=this.callback,c=b.parameters[this.CONSTANTS.ID_TOKEN]);try{d&&d(this._getItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION),c,this._getItem(this.CONSTANTS.STORAGE.ERROR))}catch(a){this.error("Error occurred in user defined callback function",a)}this.popUp||(window.location.hash="",this.config.navigateToLoginRequestUrl&&(window.location.href=this._getItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST)))}},d.prototype._getNavigateUrl=function(a,b){var c="common";this.config.tenant&&(c=this.config.tenant);var d=this.instance+c+"/oauth2/authorize"+this._serialize(a,this.config,b)+this._addLibMetadata();return this.info("Navigate url:"+d),d},d.prototype._extractIdToken=function(a){var b=this._decodeJwt(a);if(!b)return null;try{var c=b.JWSPayload,d=this._base64DecodeStringUrlSafe(c);return d?JSON.parse(d):(this.info("The returned id_token could not be base64 url safe decoded."),null)}catch(a){this.error("The returned id_token could not be decoded",a)}return null},d.prototype._base64DecodeStringUrlSafe=function(a){return a=a.replace(/-/g,"+").replace(/_/g,"/"),window.atob?decodeURIComponent(escape(window.atob(a))):decodeURIComponent(escape(this._decode(a)))},d.prototype._decode=function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a=String(a).replace(/=+$/,"");var c=a.length;if(c%4==1)throw new Error("The token to be decoded is not correctly encoded.");for(var d,e,f,g,h,i,j,k,l="",m=0;m<c;m+=4){if(d=b.indexOf(a.charAt(m)),e=b.indexOf(a.charAt(m+1)),f=b.indexOf(a.charAt(m+2)),g=b.indexOf(a.charAt(m+3)),m+2===c-1){h=d<<18|e<<12|f<<6,i=h>>16&255,j=h>>8&255,l+=String.fromCharCode(i,j);break}if(m+1===c-1){h=d<<18|e<<12,i=h>>16&255,l+=String.fromCharCode(i);break}h=d<<18|e<<12|f<<6|g,i=h>>16&255,j=h>>8&255,k=255&h,l+=String.fromCharCode(i,j,k)}return l},d.prototype._decodeJwt=function(a){if(this._isEmpty(a))return null;var b=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,c=b.exec(a);return!c||c.length<4?(this.warn("The returned id_token is not parseable."),null):{header:c[1],JWSPayload:c[2],JWSSig:c[3]}},d.prototype._convertUrlSafeToRegularBase64EncodedString=function(a){return a.replace("-","+").replace("_","/")},d.prototype._serialize=function(a,b,c){var d=[];if(null!==b){d.push("?response_type="+a),d.push("client_id="+encodeURIComponent(b.clientId)),c&&d.push("resource="+encodeURIComponent(c)),d.push("redirect_uri="+encodeURIComponent(b.redirectUri)),d.push("state="+encodeURIComponent(b.state)),b.hasOwnProperty("slice")&&d.push("slice="+encodeURIComponent(b.slice)),b.hasOwnProperty("extraQueryParameter")&&d.push(b.extraQueryParameter);var e=b.correlationId?b.correlationId:this._guid();d.push("client-request-id="+encodeURIComponent(e))}return d.join("&")},d.prototype._deserialize=function(a){var b,c=/\+/g,d=/([^&=]+)=([^&]*)/g,e=function(a){return decodeURIComponent(a.replace(c," "))},f={};for(b=d.exec(a);b;)f[e(b[1])]=e(b[2]),b=d.exec(a);return f},d.prototype._decimalToHex=function(a){for(var b=a.toString(16);b.length<2;)b="0"+b;return b},d.prototype._guid=function(){var a=window.crypto||window.msCrypto;if(a&&a.getRandomValues){var b=new Uint8Array(16);return a.getRandomValues(b),b[6]|=64,b[6]&=79,b[8]|=128,b[8]&=191,this._decimalToHex(b[0])+this._decimalToHex(b[1])+this._decimalToHex(b[2])+this._decimalToHex(b[3])+"-"+this._decimalToHex(b[4])+this._decimalToHex(b[5])+"-"+this._decimalToHex(b[6])+this._decimalToHex(b[7])+"-"+this._decimalToHex(b[8])+this._decimalToHex(b[9])+"-"+this._decimalToHex(b[10])+this._decimalToHex(b[11])+this._decimalToHex(b[12])+this._decimalToHex(b[13])+this._decimalToHex(b[14])+this._decimalToHex(b[15])}for(var c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",d="0123456789abcdef",e=0,f="",g=0;g<36;g++)"-"!==c[g]&&"4"!==c[g]&&(e=16*Math.random()|0),"x"===c[g]?f+=d[e]:"y"===c[g]?(e&=3,e|=8,f+=d[e]):f+=c[g];return f},d.prototype._expiresIn=function(a){return a||(a=3599),this._now()+parseInt(a,10)},d.prototype._now=function(){return Math.round((new Date).getTime()/1e3)},d.prototype._addAdalFrame=function(a){if(void 0!==a){this.info("Add adal frame to document:"+a);var b=document.getElementById(a);if(!b){if(document.createElement&&document.documentElement&&(window.opera||-1===window.navigator.userAgent.indexOf("MSIE 5.0"))){var c=document.createElement("iframe");c.setAttribute("id",a),c.style.visibility="hidden",c.style.position="absolute",c.style.width=c.style.height=c.borderWidth="0px",b=document.getElementsByTagName("body")[0].appendChild(c)}else document.body&&document.body.insertAdjacentHTML&&document.body.insertAdjacentHTML("beforeEnd",'<iframe name="'+a+'" id="'+a+'" style="display:none"></iframe>');window.frames&&window.frames[a]&&(b=window.frames[a])}return b}},d.prototype._saveItem=function(a,b){return this.config&&this.config.cacheLocation&&"localStorage"===this.config.cacheLocation?this._supportsLocalStorage()?(localStorage.setItem(a,b),!0):(this.info("Local storage is not supported"),!1):this._supportsSessionStorage()?(sessionStorage.setItem(a,b),!0):(this.info("Session storage is not supported"),!1)},d.prototype._getItem=function(a){return this.config&&this.config.cacheLocation&&"localStorage"===this.config.cacheLocation?this._supportsLocalStorage()?localStorage.getItem(a):(this.info("Local storage is not supported"),null):this._supportsSessionStorage()?sessionStorage.getItem(a):(this.info("Session storage is not supported"),null)},d.prototype._supportsLocalStorage=function(){try{return!!window.localStorage&&(window.localStorage.setItem("storageTest","A"),"A"==window.localStorage.getItem("storageTest")&&(window.localStorage.removeItem("storageTest"),!window.localStorage.getItem("storageTest")))}catch(a){return!1}},d.prototype._supportsSessionStorage=function(){try{return!!window.sessionStorage&&(window.sessionStorage.setItem("storageTest","A"),"A"==window.sessionStorage.getItem("storageTest")&&(window.sessionStorage.removeItem("storageTest"),!window.sessionStorage.getItem("storageTest")))}catch(a){return!1}},d.prototype._cloneConfig=function(a){if(null===a||"object"!=typeof a)return a;var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b},d.prototype._addLibMetadata=function(){return"&x-client-SKU=Js&x-client-Ver="+this._libVersion()},d.prototype.log=function(a,b,c){if(a<=Logging.level){var d=(new Date).toUTCString(),e="";e=this.config.correlationId?d+":"+this.config.correlationId+"-"+this._libVersion()+"-"+this.CONSTANTS.LEVEL_STRING_MAP[a]+" "+b:d+":"+this._libVersion()+"-"+this.CONSTANTS.LEVEL_STRING_MAP[a]+" "+b,c&&(e+="\nstack:\n"+c.stack),Logging.log(e)}},d.prototype.error=function(a,b){this.log(this.CONSTANTS.LOGGING_LEVEL.ERROR,a,b)},d.prototype.warn=function(a){this.log(this.CONSTANTS.LOGGING_LEVEL.WARN,a,null)},d.prototype.info=function(a){this.log(this.CONSTANTS.LOGGING_LEVEL.INFO,a,null)},d.prototype.verbose=function(a){this.log(this.CONSTANTS.LOGGING_LEVEL.VERBOSE,a,null)},d.prototype._libVersion=function(){return"1.0.15"},void 0!==c&&c.exports&&(c.exports=d,c.exports.inject=function(a){return new d(a)}),d}())}),System.registerDynamic("ng2-adal/services/adal.service.js",["@angular/core","rxjs/Observable","rxjs/add/observable/bindCallback","adal-angular"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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});Object.defineProperty(b,"__esModule",{value:!0});var e=a("@angular/core"),f=a("rxjs/Observable");a("rxjs/add/observable/bindCallback");var g=a("adal-angular"),h=function(){function a(){this.oauthData={isAuthenticated:!1,userName:"",loginError:"",profile:{}}}return a.prototype.init=function(a){if(!a)throw new Error("You must set config, when calling init.");var b=window.location.hash,c=window.location.href;b&&(c=c.replace(b,"")),a.redirectUri=a.redirectUri||c,a.postLogoutRedirectUri=a.postLogoutRedirectUri||c,this.adalContext=g.inject(a),window.AuthenticationContext=this.adalContext.constructor,this.updateDataFromCache(this.adalContext.config.loginResource)},Object.defineProperty(a.prototype,"config",{get:function(){return this.adalContext.config},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"userInfo",{get:function(){return this.oauthData},enumerable:!0,configurable:!0}),a.prototype.login=function(){this.adalContext.login()},a.prototype.loginInProgress=function(){return this.adalContext.loginInProgress()},a.prototype.logOut=function(){this.adalContext.logOut()},a.prototype.handleWindowCallback=function(){var a=window.location.hash;if(this.adalContext.isCallback(a)){var b=this.adalContext.getRequestInfo(a);this.adalContext.saveTokenFromHash(b),b.requestType===this.adalContext.REQUEST_TYPE.LOGIN?this.updateDataFromCache(this.adalContext.config.loginResource):b.requestType===this.adalContext.REQUEST_TYPE.RENEW_TOKEN&&(this.adalContext.callback=window.parent.callBackMappedToRenewStates[b.stateResponse]),b.stateMatch&&"function"==typeof this.adalContext.callback&&b.requestType===this.adalContext.REQUEST_TYPE.RENEW_TOKEN&&(b.parameters.access_token?this.adalContext.callback(this.adalContext._getItem(this.adalContext.CONSTANTS.STORAGE.ERROR_DESCRIPTION),b.parameters.access_token):b.parameters.id_token?this.adalContext.callback(this.adalContext._getItem(this.adalContext.CONSTANTS.STORAGE.ERROR_DESCRIPTION),b.parameters.id_token):b.parameters.error&&(this.adalContext.callback(this.adalContext._getItem(this.adalContext.CONSTANTS.STORAGE.ERROR_DESCRIPTION),null),this.adalContext._renewFailed=!0))}},a.prototype.getCachedToken=function(a){return this.adalContext.getCachedToken(a)},a.prototype.acquireToken=function(a){function b(b){var e="";return d.adalContext.acquireToken(a,function(f,g){f?(d.adalContext.error("Error when acquiring token for resource: "+a,f),c=f,b(null)):(b(g),e=g)}),e}var c,d=this;return f.Observable.bindCallback(b,function(a){if(!a&&c)throw c;return a})()},a.prototype.getUser=function(){var a=this;return f.Observable.bindCallback(function(b){a.adalContext.getUser(function(a,c){a?(this.adalContext.error("Error when getting user",a),b(null)):b(c)})})()},a.prototype.clearCache=function(){this.adalContext.clearCache()},a.prototype.clearCacheForResource=function(a){this.adalContext.clearCacheForResource(a)},a.prototype.info=function(a){this.adalContext.info(a)},a.prototype.verbose=function(a){this.adalContext.verbose(a)},a.prototype.GetResourceForEndpoint=function(a){return this.adalContext.getResourceForEndpoint(a)},a.prototype.refreshDataFromCache=function(){this.updateDataFromCache(this.adalContext.config.loginResource)},a.prototype.updateDataFromCache=function(a){var b=this.adalContext.getCachedToken(a);this.oauthData.isAuthenticated=null!==b&&b.length>0;var c=this.adalContext.getCachedUser()||{userName:"",profile:void 0};this.oauthData.userName=c.userName,this.oauthData.profile=c.profile,this.oauthData.loginError=this.adalContext.getLoginError()},a=d([e.Injectable()],a)}();b.AdalService=h}),System.registerDynamic("rxjs/operator/catch.js",["../OuterSubscriber","../util/subscribeToResult"],!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,b&&b.__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("../OuterSubscriber"),g=a("../util/subscribeToResult");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(b){if(!this.isStopped){var c=void 0;try{c=this.selector(b,this.caught)}catch(b){return void a.prototype.error.call(this,b)}this._unsubscribeAndRecycle(),this.add(g.subscribeToResult(this,c))}},b}(f.OuterSubscriber)}),System.registerDynamic("rxjs/add/operator/catch.js",["../../Observable","../../operator/catch"],!0,function(a,b,c){"use strict";var d=(this||self,a("../../Observable")),e=a("../../operator/catch");d.Observable.prototype.catch=e._catch,d.Observable.prototype._catch=e._catch}),System.registerDynamic("rxjs/operator/map.js",["../Subscriber"],!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,b&&b.__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("../Subscriber");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)}),System.registerDynamic("rxjs/add/operator/map.js",["../../Observable","../../operator/map"],!0,function(a,b,c){"use strict";var d=(this||self,a("../../Observable")),e=a("../../operator/map");d.Observable.prototype.map=e.map}),System.registerDynamic("rxjs/util/isArrayLike.js",[],!0,function(a,b,c){"use strict";this||self;b.isArrayLike=function(a){return a&&"number"==typeof a.length}}),System.registerDynamic("rxjs/util/isPromise.js",[],!0,function(a,b,c){"use strict";function d(a){return a&&"function"!=typeof a.subscribe&&"function"==typeof a.then}this||self;b.isPromise=d}),System.registerDynamic("rxjs/symbol/iterator.js",["../util/root"],!0,function(a,b,c){"use strict";function d(a){var b=a.Symbol;if("function"==typeof b)return b.iterator||(b.iterator=b("iterator polyfill")),b.iterator;var c=a.Set;if(c&&"function"==typeof(new c)["@@iterator"])return"@@iterator";var d=a.Map;if(d)for(var e=Object.getOwnPropertyNames(d.prototype),f=0;f<e.length;++f){var g=e[f];if("entries"!==g&&"size"!==g&&d.prototype[g]===d.prototype.entries)return g}return"@@iterator"}var e=(this||self,a("../util/root"));b.symbolIteratorPonyfill=d,b.iterator=d(e.root),b.$$iterator=b.iterator}),System.registerDynamic("rxjs/InnerSubscriber.js",["./Subscriber"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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("./Subscriber"),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);b.InnerSubscriber=f}),System.registerDynamic("rxjs/util/subscribeToResult.js",["./root","./isArrayLike","./isPromise","./isObject","../Observable","../symbol/iterator","../InnerSubscriber","../symbol/observable"],!0,function(a,b,c){"use strict";function d(a,b,c,d){var m=new k.InnerSubscriber(a,c,d);if(m.closed)return null;if(b instanceof i.Observable)return b._isScalar?(m.next(b.value),m.complete(),null):b.subscribe(m);if(f.isArrayLike(b)){for(var n=0,o=b.length;n<o&&!m.closed;n++)m.next(b[n]);m.closed||m.complete()}else{if(g.isPromise(b))return b.then(function(a){m.closed||(m.next(a),m.complete())},function(a){return m.error(a)}).then(null,function(a){e.root.setTimeout(function(){throw a})}),m;if(b&&"function"==typeof b[j.iterator])for(var p=b[j.iterator]();;){var q=p.next();if(q.done){m.complete();break}if(m.next(q.value),m.closed)break}else if(b&&"function"==typeof b[l.observable]){var r=b[l.observable]();if("function"==typeof r.subscribe)return r.subscribe(new k.InnerSubscriber(a,c,d));m.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var s=h.isObject(b)?"an invalid object":"'"+b+"'",t="You provided "+s+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";m.error(new TypeError(t))}}return null}var e=(this||self,a("./root")),f=a("./isArrayLike"),g=a("./isPromise"),h=a("./isObject"),i=a("../Observable"),j=a("../symbol/iterator"),k=a("../InnerSubscriber"),l=a("../symbol/observable");b.subscribeToResult=d}),System.registerDynamic("rxjs/OuterSubscriber.js",["./Subscriber"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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("./Subscriber"),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);b.OuterSubscriber=f}),System.registerDynamic("rxjs/operator/mergeMap.js",["../util/subscribeToResult","../OuterSubscriber"],!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,b&&b.__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("../util/subscribeToResult"),g=a("../OuterSubscriber");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);b.MergeMapSubscriber=i}),System.registerDynamic("rxjs/add/operator/mergeMap.js",["../../Observable","../../operator/mergeMap"],!0,function(a,b,c){"use strict";var d=(this||self,a("../../Observable")),e=a("../../operator/mergeMap");d.Observable.prototype.mergeMap=e.mergeMap,d.Observable.prototype.flatMap=e.mergeMap}),System.registerDynamic("rxjs/util/isArray.js",[],!0,function(a,b,c){"use strict";this||self;b.isArray=Array.isArray||function(a){return a&&"number"==typeof a.length}}),System.registerDynamic("rxjs/util/isObject.js",[],!0,function(a,b,c){"use strict";function d(a){return null!=a&&"object"==typeof a}this||self;b.isObject=d}),System.registerDynamic("rxjs/util/isFunction.js",[],!0,function(a,b,c){"use strict";function d(a){return"function"==typeof a}this||self;b.isFunction=d}),System.registerDynamic("rxjs/util/tryCatch.js",["./errorObject"],!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("./errorObject"));b.tryCatch=e}),System.registerDynamic("rxjs/util/errorObject.js",[],!0,function(a,b,c){"use strict";this||self;b.errorObject={e:{}}}),System.registerDynamic("rxjs/util/UnsubscriptionError.js",[],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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);b.UnsubscriptionError=e}),System.registerDynamic("rxjs/Subscription.js",["./util/isArray","./util/isObject","./util/isFunction","./util/tryCatch","./util/errorObject","./util/UnsubscriptionError"],!0,function(a,b,c){"use strict";function d(a){return a.reduce(function(a,b){return a.concat(b instanceof j.UnsubscriptionError?b.errors:b)},[])}var e=(this||self,a("./util/isArray")),f=a("./util/isObject"),g=a("./util/isFunction"),h=a("./util/tryCatch"),i=a("./util/errorObject"),j=a("./util/UnsubscriptionError"),k=function(){function a(a){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,a&&(this._unsubscribe=a)}return a.prototype.unsubscribe=function(){var a,b=!1;if(!this.closed){var c=this,k=c._parent,l=c._parents,m=c._unsubscribe,n=c._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var o=-1,p=l?l.length:0;k;)k.remove(this),k=++o<p&&l[o]||null;if(g.isFunction(m)){var q=h.tryCatch(m).call(this);q===i.errorObject&&(b=!0,a=a||(i.errorObject.e instanceof j.UnsubscriptionError?d(i.errorObject.e.errors):[i.errorObject.e]))}if(e.isArray(n))for(o=-1,p=n.length;++o<p;){var r=n[o];if(f.isObject(r)){var q=h.tryCatch(r.unsubscribe).call(r);if(q===i.errorObject){b=!0,a=a||[];var s=i.errorObject.e;s instanceof j.UnsubscriptionError?a=a.concat(d(s.errors)):a.push(s)}}}if(b)throw new j.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)return c;if(this.closed)return c.unsubscribe(),c;if("function"!=typeof c._addParent){var d=c;c=new a,c._subscriptions=[d]}break;default:throw new Error("unrecognized teardown "+b+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(c),c._addParent(this),c},a.prototype.remove=function(a){var b=this._subscriptions;if(b){var c=b.indexOf(a);-1!==c&&b.splice(c,1)}},a.prototype._addParent=function(a){var b=this,c=b._parent,d=b._parents;c&&c!==a?d?-1===d.indexOf(a)&&d.push(a):this._parents=[a]:this._parent=a},a.EMPTY=function(a){return a.closed=!0,a}(new a),a}();b.Subscription=k}),System.registerDynamic("rxjs/Subscriber.js",["./util/isFunction","./Subscription","./Observer","./symbol/rxSubscriber"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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("./util/isFunction"),f=a("./Subscription"),g=a("./Observer"),h=a("./symbol/rxSubscriber"),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.prototype._unsubscribeAndRecycle=function(){var a=this,b=a._parent,c=a._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=b,this._parents=c,this},b}(f.Subscription);b.Subscriber=i;var j=function(a){function b(b,c,d,f){a.call(this),this._parentSubscriber=b;var h,i=this;e.isFunction(c)?h=c:c&&(h=c.next,d=c.error,f=c.complete,c!==g.empty&&(i=Object.create(c),e.isFunction(i.unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=h,this._error=d,this._complete=f}return d(b,a),b.prototype.next=function(a){if(!this.isStopped&&this._next){var b=this._parentSubscriber;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._parentSubscriber;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(){var a=this;if(!this.isStopped){var b=this._parentSubscriber;if(this._complete){var c=function(){return a._complete.call(a._context)};b.syncErrorThrowable?(this.__tryOrSetError(b,c),this.unsubscribe()):(this.__tryOrUnsub(c),this.unsubscribe())}else 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._parentSubscriber;this._context=null,this._parentSubscriber=null,a.unsubscribe()},b}(i)}),System.registerDynamic("rxjs/symbol/rxSubscriber.js",["../util/root"],!0,function(a,b,c){"use strict";var d=(this||self,a("../util/root")),e=d.root.Symbol;b.rxSubscriber="function"==typeof e&&"function"==typeof e.for?e.for("rxSubscriber"):"@@rxSubscriber",b.$$rxSubscriber=b.rxSubscriber}),System.registerDynamic("rxjs/Observer.js",[],!0,function(a,b,c){"use strict";this||self;b.empty={closed:!0,next:function(a){},error:function(a){throw a},complete:function(){}}}),System.registerDynamic("rxjs/util/toSubscriber.js",["../Subscriber","../symbol/rxSubscriber","../Observer"],!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(g.empty)}var e=(this||self,a("../Subscriber")),f=a("../symbol/rxSubscriber"),g=a("../Observer");b.toSubscriber=d}),System.registerDynamic("rxjs/util/root.js",[],!0,function(a,b,c){"use strict";var d=this||self,e="undefined"!=typeof window&&window,f="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,g=void 0!==d&&d,h=e||g||f;b.root=h,function(){if(!h)throw new Error("RxJS could not find any global context (window, self, global)")}()}),System.registerDynamic("rxjs/symbol/observable.js",["../util/root"],!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("../util/root"));b.getSymbolObservable=d,b.observable=d(e.root),b.$$observable=b.observable}),System.registerDynamic("rxjs/Observable.js",["./util/root","./util/toSubscriber","./symbol/observable"],!0,function(a,b,c){"use strict";var d=(this||self,a("./util/root")),e=a("./util/toSubscriber"),f=a("./symbol/observable"),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.source):f.add(this.source?this._subscribe(f):this._trySubscribe(f)),f.syncErrorThrowable&&(f.syncErrorThrowable=!1,f.syncErrorThrown))throw f.syncErrorValue;return f},a.prototype._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){a.syncErrorThrown=!0,a.syncErrorValue=b,a.error(b)}},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;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}();b.Observable=g}),System.registerDynamic("rxjs/observable/ErrorObservable.js",["../Observable"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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("../Observable"),f=function(a){function b(b,c){a.call(this),this.error=b,this.scheduler=c}return d(b,a),b.create=function(a,c){return new b(a,c)},b.dispatch=function(a){var b=a.error;a.subscriber.error(b)},b.prototype._subscribe=function(a){var c=this.error,d=this.scheduler;if(a.syncErrorThrowable=!0,d)return d.schedule(b.dispatch,0,{error:c,subscriber:a});a.error(c)},b}(e.Observable);b.ErrorObservable=f}),System.registerDynamic("rxjs/observable/throw.js",["./ErrorObservable"],!0,function(a,b,c){"use strict";var d=(this||self,a("./ErrorObservable"));b._throw=d.ErrorObservable.create}),System.registerDynamic("rxjs/add/observable/throw.js",["../../Observable","../../observable/throw"],!0,function(a,b,c){"use strict";var d=(this||self,a("../../Observable")),e=a("../../observable/throw");d.Observable.throw=e._throw}),System.registerDynamic("ng2-adal/services/authHttp.service.js",["@angular/core","@angular/http","rxjs/Observable","./adal.service","rxjs/add/operator/catch","rxjs/add/operator/map","rxjs/add/operator/mergeMap","rxjs/add/observable/throw"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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=b&&b.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)};Object.defineProperty(b,"__esModule",{value:!0});var f=a("@angular/core"),g=a("@angular/http"),h=a("rxjs/Observable"),i=a("./adal.service");a("rxjs/add/operator/catch"),a("rxjs/add/operator/map"),a("rxjs/add/operator/mergeMap"),a("rxjs/add/observable/throw");var j=function(){function a(a,b){this.http=a,this.adalService=b}return a.prototype.get=function(a,b){var c=new g.RequestOptions({method:g.RequestMethod.Get});return c=c.merge(b),this.sendRequest(a,c)},a.prototype.post=function(a,b,c){var d=new g.RequestOptions({method:g.RequestMethod.Post,body:b});return d=d.merge(c),this.sendRequest(a,d)},a.prototype.delete=function(a,b){var c=new g.RequestOptions({method:g.RequestMethod.Delete});return c=c.merge(b),this.sendRequest(a,c)},a.prototype.patch=function(a,b,c){var d=new g.RequestOptions({method:g.RequestMethod.Patch,body:b});return d=d.merge(c),this.sendRequest(a,d)},a.prototype.put=function(a,b,c){var d=new g.RequestOptions({method:g.RequestMethod.Put,body:b});return d=d.merge(c),this.sendRequest(a,d)},a.prototype.head=function(a,b){var c=new g.RequestOptions({method:g.RequestMethod.Put});return c=c.merge(b),this.sendRequest(a,c)},a.prototype.sendRequest=function(a,b){var c=this,d=new g.RequestOptions;d.method=b.method,d=d.merge(b);var e=this.adalService.GetResourceForEndpoint(a);return e?this.adalService.userInfo.isAuthenticated?this.adalService.acquireToken(e).flatMap(function(b){return null==d.headers&&(d.headers=new g.Headers),d.headers.set("Authorization","Bearer "+b),c.http.request(a,d).catch(c.handleError)}):h.Observable.throw(new Error("User Not Authenticated.")):this.http.request(a,b).map(this.extractData).catch(this.handleError)},a.prototype.extractData=function(a){if(a.status<200||a.status>=300)throw new Error("Bad response status: "+a.status);var b={};return 204!==a.status&&(b=a.json()),b||{}},a.prototype.handleError=function(a){return h.Observable.throw(a)},a=d([f.Injectable(),e("design:paramtypes",[g.Http,i.AdalService])],a)}();b.AuthHttp=j}),System.registerDynamic("ng2-adal/modules/authHttp.module.js",["@angular/core","./adal.module","./../services/authHttp.service"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__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});Object.defineProperty(b,"__esModule",{value:!0});var e=a("@angular/core"),f=a("./adal.module"),g=a("./../services/authHttp.service"),h=function(){function a(){}return a=d([e.NgModule({imports:[f.AdalModule],exports:[],declarations:[],providers:[g.AuthHttp]})],a)}();b.AuthHttpModule=h}),System.registerDynamic("ng2-adal/modules.js",["./modules/adal.module","./modules/authHttp.module"],!0,function(a,b,c){"use strict";this||self;Object.defineProperty(b,"__esModule",{value:!0});var d=a("./modules/adal.module");b.AdalModule=d.AdalModule;var e=a("./modules/authHttp.module");b.AuthHttpModule=e.AuthHttpModule}),System.registerDynamic("ng2-adal/core.js",["./services","./modules"],!0,function(a,b,c){"use strict";this||self;Object.defineProperty(b,"__esModule",{value:!0});var d=a("./services");b.AdalService=d.AdalService,b.AuthHttp=d.AuthHttp;var e=a("./modules");b.AdalModule=e.AdalModule,b.AuthHttpModule=e.AuthHttpModule});
//# sourceMappingURL=ng2-adal.min.js.map